diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2010-05-08 02:03:56 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2010-05-08 02:03:56 +0800 |
commit | 70074679333c236bca857a0242ae34442a4874f6 (patch) | |
tree | 8332e3266d31ab1851dcbc7e1ecfef8cb1f95728 /dummy_drv_video/dummy_drv_video.c | |
parent | 03a6cbe5a8c41aa5311a1ddb67bb93a0ae3539b4 (diff) | |
download | libva-70074679333c236bca857a0242ae34442a4874f6.tar.gz |
Seperate 3rd party API (e.g. vaCreateSurfaceFromXXX) into a libva-tpi.so
and driver table memory is allocated by driver if driver wants to support it.
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Diffstat (limited to 'dummy_drv_video/dummy_drv_video.c')
-rw-r--r-- | dummy_drv_video/dummy_drv_video.c | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/dummy_drv_video/dummy_drv_video.c b/dummy_drv_video/dummy_drv_video.c index 98561a9..ed72824 100644 --- a/dummy_drv_video/dummy_drv_video.c +++ b/dummy_drv_video/dummy_drv_video.c @@ -1107,7 +1107,22 @@ VAStatus dummy_SetDisplayAttributes ( } -VAStatus dummy_CopySurfaceToBuffer( +VAStatus dummy_BufferInfo( + VADriverContextP ctx, + VAContextID context, /* in */ + VABufferID buf_id, /* in */ + VABufferType *type, /* out */ + unsigned int *size, /* out */ + unsigned int *num_elements /* out */ + ) +{ + /* TODO */ + return VA_STATUS_ERROR_UNIMPLEMENTED; +} + + + +VAStatus dummy_LockSurface( VADriverContextP ctx, VASurfaceID surface, unsigned int *fourcc, /* following are output argument */ @@ -1117,11 +1132,21 @@ VAStatus dummy_CopySurfaceToBuffer( unsigned int *luma_offset, unsigned int *chroma_u_offset, unsigned int *chroma_v_offset, + unsigned int *buffer_name, void **buffer ) { /* TODO */ - return VA_STATUS_ERROR_UNKNOWN; + return VA_STATUS_ERROR_UNIMPLEMENTED; +} + +VAStatus dummy_UnlockSurface( + VADriverContextP ctx, + VASurfaceID surface + ) +{ + /* TODO */ + return VA_STATUS_ERROR_UNIMPLEMENTED; } VAStatus dummy_Terminate( VADriverContextP ctx ) @@ -1222,8 +1247,9 @@ VAStatus __vaDriverInit_0_31( VADriverContextP ctx ) ctx->vtable.vaQueryDisplayAttributes = dummy_QueryDisplayAttributes; ctx->vtable.vaGetDisplayAttributes = dummy_GetDisplayAttributes; ctx->vtable.vaSetDisplayAttributes = dummy_SetDisplayAttributes; - - ctx->vtable.vaCopySurfaceToBuffer = dummy_CopySurfaceToBuffer; + ctx->vtable.vaLockSurface = dummy_LockSurface; + ctx->vtable.vaUnlockSurface = dummy_UnlockSurface; + ctx->vtable.vaBufferInfo = dummy_BufferInfo; driver_data = (struct dummy_driver_data *) malloc( sizeof(*driver_data) ); ctx->pDriverData = (void *) driver_data; |