diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2009-06-20 02:20:52 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2009-06-20 02:20:52 +0800 |
commit | 69d3a3c349b0b8c4aad4f8bb6454b3a8033c25de (patch) | |
tree | 205849e68b227049450fff9255d49990ca581808 /dummy_drv_video | |
parent | c21aaad55d016ef0c5d0d1ebc1772c3f3d5d8cb5 (diff) | |
download | libva-69d3a3c349b0b8c4aad4f8bb6454b3a8033c25de.tar.gz |
Proposed new vaCreateSurfaceFromV4L2Buffer to replace origin vaCreateSurfaceFromMrstV4L2 buffer to make it more generic
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Diffstat (limited to 'dummy_drv_video')
-rw-r--r-- | dummy_drv_video/dummy_drv_video.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/dummy_drv_video/dummy_drv_video.c b/dummy_drv_video/dummy_drv_video.c index 4db2e46..20ee3ae 100644 --- a/dummy_drv_video/dummy_drv_video.c +++ b/dummy_drv_video/dummy_drv_video.c @@ -1154,11 +1154,17 @@ VAStatus dummy_SetDisplayAttributes ( } -VAStatus dummy_DbgCopySurfaceToBuffer( +VAStatus dummy_CopySurfaceToBuffer( VADriverContextP ctx, VASurfaceID surface, - void **buffer, /* out */ - unsigned int *stride /* out */ + unsigned int *fourcc, /* following are output argument */ + unsigned int *luma_stride, + unsigned int *chroma_u_stride, + unsigned int *chroma_v_stride, + unsigned int *luma_offset, + unsigned int *chroma_u_offset, + unsigned int *chroma_v_offset, + void **buffer ) { /* TODO */ @@ -1266,7 +1272,7 @@ VAStatus __vaDriverInit_0_29( VADriverContextP ctx ) ctx->vtable.vaGetDisplayAttributes = dummy_GetDisplayAttributes; ctx->vtable.vaSetDisplayAttributes = dummy_SetDisplayAttributes; - ctx->vtable.vaDbgCopySurfaceToBuffer = dummy_DbgCopySurfaceToBuffer; + ctx->vtable.vaCopySurfaceToBuffer = dummy_CopySurfaceToBuffer; driver_data = (struct dummy_driver_data *) malloc( sizeof(*driver_data) ); ctx->pDriverData = (void *) driver_data; |