summaryrefslogtreecommitdiff
path: root/dummy_drv_video
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2011-01-27 10:40:36 +0100
committerAustin Yuan <shengquan.yuan@gmail.com>2011-02-09 11:28:44 +0800
commitabe27fd4b73673f62c37300ec3886921d2ac3e74 (patch)
tree494ea8197092735e236339103e8fd5323fe4ef00 /dummy_drv_video
parent95da3e742bee58383f575bdf1ebcb424fc1ad1a8 (diff)
downloadlibva-abe27fd4b73673f62c37300ec3886921d2ac3e74.tar.gz
dummy_drv_video: make VADriverContext.vtable a pointer.
Diffstat (limited to 'dummy_drv_video')
-rw-r--r--dummy_drv_video/dummy_drv_video.c89
1 files changed, 45 insertions, 44 deletions
diff --git a/dummy_drv_video/dummy_drv_video.c b/dummy_drv_video/dummy_drv_video.c
index 4637147..f06cc0a 100644
--- a/dummy_drv_video/dummy_drv_video.c
+++ b/dummy_drv_video/dummy_drv_video.c
@@ -1196,6 +1196,7 @@ VAStatus dummy_Terminate( VADriverContextP ctx )
VAStatus VA_DRIVER_INIT_FUNC( VADriverContextP ctx )
{
+ struct VADriverVTable * const vtable = ctx->vtable;
object_base_p obj;
int result;
struct dummy_driver_data *driver_data;
@@ -1211,50 +1212,50 @@ VAStatus VA_DRIVER_INIT_FUNC( VADriverContextP ctx )
ctx->max_display_attributes = DUMMY_MAX_DISPLAY_ATTRIBUTES;
ctx->str_vendor = DUMMY_STR_VENDOR;
- ctx->vtable.vaTerminate = dummy_Terminate;
- ctx->vtable.vaQueryConfigEntrypoints = dummy_QueryConfigEntrypoints;
- ctx->vtable.vaQueryConfigProfiles = dummy_QueryConfigProfiles;
- ctx->vtable.vaQueryConfigEntrypoints = dummy_QueryConfigEntrypoints;
- ctx->vtable.vaQueryConfigAttributes = dummy_QueryConfigAttributes;
- ctx->vtable.vaCreateConfig = dummy_CreateConfig;
- ctx->vtable.vaDestroyConfig = dummy_DestroyConfig;
- ctx->vtable.vaGetConfigAttributes = dummy_GetConfigAttributes;
- ctx->vtable.vaCreateSurfaces = dummy_CreateSurfaces;
- ctx->vtable.vaDestroySurfaces = dummy_DestroySurfaces;
- ctx->vtable.vaCreateContext = dummy_CreateContext;
- ctx->vtable.vaDestroyContext = dummy_DestroyContext;
- ctx->vtable.vaCreateBuffer = dummy_CreateBuffer;
- ctx->vtable.vaBufferSetNumElements = dummy_BufferSetNumElements;
- ctx->vtable.vaMapBuffer = dummy_MapBuffer;
- ctx->vtable.vaUnmapBuffer = dummy_UnmapBuffer;
- ctx->vtable.vaDestroyBuffer = dummy_DestroyBuffer;
- ctx->vtable.vaBeginPicture = dummy_BeginPicture;
- ctx->vtable.vaRenderPicture = dummy_RenderPicture;
- ctx->vtable.vaEndPicture = dummy_EndPicture;
- ctx->vtable.vaSyncSurface = dummy_SyncSurface;
- ctx->vtable.vaQuerySurfaceStatus = dummy_QuerySurfaceStatus;
- ctx->vtable.vaPutSurface = dummy_PutSurface;
- ctx->vtable.vaQueryImageFormats = dummy_QueryImageFormats;
- ctx->vtable.vaCreateImage = dummy_CreateImage;
- ctx->vtable.vaDeriveImage = dummy_DeriveImage;
- ctx->vtable.vaDestroyImage = dummy_DestroyImage;
- ctx->vtable.vaSetImagePalette = dummy_SetImagePalette;
- ctx->vtable.vaGetImage = dummy_GetImage;
- ctx->vtable.vaPutImage = dummy_PutImage;
- ctx->vtable.vaQuerySubpictureFormats = dummy_QuerySubpictureFormats;
- ctx->vtable.vaCreateSubpicture = dummy_CreateSubpicture;
- ctx->vtable.vaDestroySubpicture = dummy_DestroySubpicture;
- ctx->vtable.vaSetSubpictureImage = dummy_SetSubpictureImage;
- ctx->vtable.vaSetSubpictureChromakey = dummy_SetSubpictureChromakey;
- ctx->vtable.vaSetSubpictureGlobalAlpha = dummy_SetSubpictureGlobalAlpha;
- ctx->vtable.vaAssociateSubpicture = dummy_AssociateSubpicture;
- ctx->vtable.vaDeassociateSubpicture = dummy_DeassociateSubpicture;
- ctx->vtable.vaQueryDisplayAttributes = dummy_QueryDisplayAttributes;
- ctx->vtable.vaGetDisplayAttributes = dummy_GetDisplayAttributes;
- ctx->vtable.vaSetDisplayAttributes = dummy_SetDisplayAttributes;
- ctx->vtable.vaLockSurface = dummy_LockSurface;
- ctx->vtable.vaUnlockSurface = dummy_UnlockSurface;
- ctx->vtable.vaBufferInfo = dummy_BufferInfo;
+ vtable->vaTerminate = dummy_Terminate;
+ vtable->vaQueryConfigEntrypoints = dummy_QueryConfigEntrypoints;
+ vtable->vaQueryConfigProfiles = dummy_QueryConfigProfiles;
+ vtable->vaQueryConfigEntrypoints = dummy_QueryConfigEntrypoints;
+ vtable->vaQueryConfigAttributes = dummy_QueryConfigAttributes;
+ vtable->vaCreateConfig = dummy_CreateConfig;
+ vtable->vaDestroyConfig = dummy_DestroyConfig;
+ vtable->vaGetConfigAttributes = dummy_GetConfigAttributes;
+ vtable->vaCreateSurfaces = dummy_CreateSurfaces;
+ vtable->vaDestroySurfaces = dummy_DestroySurfaces;
+ vtable->vaCreateContext = dummy_CreateContext;
+ vtable->vaDestroyContext = dummy_DestroyContext;
+ vtable->vaCreateBuffer = dummy_CreateBuffer;
+ vtable->vaBufferSetNumElements = dummy_BufferSetNumElements;
+ vtable->vaMapBuffer = dummy_MapBuffer;
+ vtable->vaUnmapBuffer = dummy_UnmapBuffer;
+ vtable->vaDestroyBuffer = dummy_DestroyBuffer;
+ vtable->vaBeginPicture = dummy_BeginPicture;
+ vtable->vaRenderPicture = dummy_RenderPicture;
+ vtable->vaEndPicture = dummy_EndPicture;
+ vtable->vaSyncSurface = dummy_SyncSurface;
+ vtable->vaQuerySurfaceStatus = dummy_QuerySurfaceStatus;
+ vtable->vaPutSurface = dummy_PutSurface;
+ vtable->vaQueryImageFormats = dummy_QueryImageFormats;
+ vtable->vaCreateImage = dummy_CreateImage;
+ vtable->vaDeriveImage = dummy_DeriveImage;
+ vtable->vaDestroyImage = dummy_DestroyImage;
+ vtable->vaSetImagePalette = dummy_SetImagePalette;
+ vtable->vaGetImage = dummy_GetImage;
+ vtable->vaPutImage = dummy_PutImage;
+ vtable->vaQuerySubpictureFormats = dummy_QuerySubpictureFormats;
+ vtable->vaCreateSubpicture = dummy_CreateSubpicture;
+ vtable->vaDestroySubpicture = dummy_DestroySubpicture;
+ vtable->vaSetSubpictureImage = dummy_SetSubpictureImage;
+ vtable->vaSetSubpictureChromakey = dummy_SetSubpictureChromakey;
+ vtable->vaSetSubpictureGlobalAlpha = dummy_SetSubpictureGlobalAlpha;
+ vtable->vaAssociateSubpicture = dummy_AssociateSubpicture;
+ vtable->vaDeassociateSubpicture = dummy_DeassociateSubpicture;
+ vtable->vaQueryDisplayAttributes = dummy_QueryDisplayAttributes;
+ vtable->vaGetDisplayAttributes = dummy_GetDisplayAttributes;
+ vtable->vaSetDisplayAttributes = dummy_SetDisplayAttributes;
+ vtable->vaLockSurface = dummy_LockSurface;
+ vtable->vaUnlockSurface = dummy_UnlockSurface;
+ vtable->vaBufferInfo = dummy_BufferInfo;
driver_data = (struct dummy_driver_data *) malloc( sizeof(*driver_data) );
ctx->pDriverData = (void *) driver_data;