diff options
author | Younes Manton <[email protected]> | 2008-07-20 21:30:14 -0400 |
---|---|---|
committer | Younes Manton <[email protected]> | 2008-07-22 22:41:30 -0400 |
commit | 90bd0e338d315c426c2d0255331610055023739e (patch) | |
tree | 0d07d24dfa54f1f6b8733dd69e517ee4032c8874 | |
parent | a3616067fee97f06fb52131ac13c39aeca6dc06a (diff) |
g3dvl: Add stubs for some XvMC functions.
Some of these may need to be implemented on the DDX side.
-rw-r--r-- | src/libXvMC/context.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/libXvMC/context.c b/src/libXvMC/context.c index e5590025777..22eadc1889b 100644 --- a/src/libXvMC/context.c +++ b/src/libXvMC/context.c @@ -155,3 +155,46 @@ Status XvMCDestroyContext(Display *display, XvMCContext *context) return Success; } +/* XXX: The following are here temporarily, need to be implemented in the DDX driver */ +/* TODO: Figure out which of these need to be in DDX, which are better off in DDX, which can stay */ + +Bool XvMCQueryExtension(Display *display, int *event_base, int *err_base) +{ + *event_base = 0; + *err_base = 0; + + return True; +} + +Status XvMCQueryVersion(Display *display, int *major, int *minor) +{ + *major = 1; + *minor = 0; + + return Success; +} + +XvMCSurfaceInfo* XvMCListSurfaceTypes(Display *display, XvPortID port, int *num) +{ + XvMCSurfaceInfo *surface_info = calloc(1, sizeof(XvMCSurfaceInfo)); + + *num = 1; + + surface_info->chroma_format = XVMC_CHROMA_FORMAT_420; + surface_info->max_width = 2048; + surface_info->max_height = 2048; + surface_info->mc_type = XVMC_IDCT | XVMC_MPEG_2; + surface_info->surface_type_id = 123; /* FIXME: XAllocID(display)*/; + surface_info->flags |= XVMC_INTRA_UNSIGNED; + + return surface_info; +} + +XvImageFormatValues* XvMCListSubpictureTypes(Display* display, XvPortID port, int surface_type_id, int *count_return) +{ + /* TODO */ + *count_return = 0; + + return NULL; +} + |