diff options
author | Luc Verhaegen <libv@skynet.be> | 2009-07-30 01:28:17 +0200 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2009-11-04 15:13:00 +0100 |
commit | 4fd8a42f2091e544ffcd4dabe2f8adcb441e89ec (patch) | |
tree | 32979270daf5a305083c700cd23d589de2e37fa9 | |
parent | 80817b84134067ee14403dccb967aca69e7233f8 (diff) |
XvMC: Fill out the library enough to fool xine.
-rw-r--r-- | lib/xvmc/xvmc_unichrome.c | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/lib/xvmc/xvmc_unichrome.c b/lib/xvmc/xvmc_unichrome.c index 9738ad3..f43b44e 100644 --- a/lib/xvmc/xvmc_unichrome.c +++ b/lib/xvmc/xvmc_unichrome.c @@ -114,7 +114,7 @@ XvMCCreateContext(Display *display, XvPortID port, int surface_type_id, return status; } - return BadImplementation; + return Success; } @@ -141,7 +141,13 @@ XvMCCreateSurface(Display *display, XvMCContext *context, XvMCSurface *surface) { printf("%s\n", __func__); - return BadImplementation; + if (!display || !context) + return XvMCBadContext; + + if (!surface) + return XvMCBadSurface; + + return Success; } @@ -167,7 +173,7 @@ XvMCPutSurface(Display *display, XvMCSurface *surface, Drawable draw, { printf("%s\n", __func__); - return BadImplementation; + return Success; } @@ -291,7 +297,7 @@ XvMCSyncSurface(Display *display, XvMCSurface *surface) { printf("%s\n", __func__); - return BadImplementation; + return Success; } @@ -301,9 +307,9 @@ XvMCSyncSurface(Display *display, XvMCSurface *surface) _X_EXPORT Status XvMCFlushSurface(Display *display, XvMCSurface *surface) { - printf("%s\n", __func__); + //printf("%s\n", __func__); - return BadImplementation; + return Success; } @@ -426,9 +432,7 @@ XvMCDestroyMacroBlocks(Display *display, XvMCMacroBlockArray *blocks) _X_EXPORT XvAttribute * XvMCQueryAttributes(Display *display, XvMCContext *context, int *number) { - printf("%s\n", __func__); - - return NULL; + return XvQueryPortAttributes(display, context->port, number); } @@ -439,9 +443,7 @@ _X_EXPORT Status XvMCSetAttribute(Display *display, XvMCContext *context, Atom Attribute, int value) { - printf("%s\n", __func__); - - return BadImplementation; + return XvSetPortAttribute(display, context->port, Attribute, value); } @@ -452,9 +454,7 @@ _X_EXPORT Status XvMCGetAttribute(Display *display, XvMCContext *context, Atom Attribute, int *value) { - printf("%s\n", __func__); - - + return XvGetPortAttribute(display, context->port, Attribute, value); } @@ -467,9 +467,16 @@ XvMCBeginSurface(Display *display, XvMCContext *context, XvMCSurface *target, XvMCSurface *past, XvMCSurface *future, const XvMCMpegControl *control) { + static int i = 0; + + i++; + printf("%s\n", __func__); - return BadImplementation; + if (i & 0x01) + return Success; + else + return BadValue; } @@ -493,9 +500,9 @@ _X_EXPORT Status XvMCPutSlice(Display *display, XvMCContext *context, char *slice, int size) { - printf("%s\n", __func__); + //printf("%s\n", __func__); - return BadImplementation; + return Success; } @@ -506,7 +513,7 @@ _X_EXPORT Status XvMCPutSlice2(Display *display, XvMCContext *context, char *slice, int size, int slicecode) { - printf("%s\n", __func__); + //printf("%s\n", __func__); - return BadImplementation; + return Success; } |