diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2008-04-28 17:50:48 -0700 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2008-04-28 17:50:48 -0700 |
commit | 1d44071bb4d082cbba05d3dc31b38ee37b13d28e (patch) | |
tree | fb1591ea05da8738a8457f36d025abae32635ee4 /dummy_drv_video | |
parent | 563092b87a49483b6e0da071e3416723b13ea863 (diff) | |
download | libva-1d44071bb4d082cbba05d3dc31b38ee37b13d28e.tar.gz |
rev 0.29 (02/07/2007 Jonathan Bian) - VC1 parameter fixes,
added VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED
rev 0.28 (12/06/2007 Jonathan Bian) - Added new versions of PutImage and AssociateSubpicture
to enable scaling
rev 0.27 (11/19/2007 Matt Sottek) - Added DeriveImage
Diffstat (limited to 'dummy_drv_video')
-rw-r--r-- | dummy_drv_video/dummy_drv_video.c | 65 | ||||
-rw-r--r-- | dummy_drv_video/dummy_drv_video.h | 2 |
2 files changed, 64 insertions, 3 deletions
diff --git a/dummy_drv_video/dummy_drv_video.c b/dummy_drv_video/dummy_drv_video.c index 7cf1a50..04e9e37 100644 --- a/dummy_drv_video/dummy_drv_video.c +++ b/dummy_drv_video/dummy_drv_video.c @@ -451,6 +451,18 @@ VAStatus dummy_CreateImage( return VA_STATUS_SUCCESS; } +VAStatus dummy_DeriveImage( + VADriverContextP ctx, + VASurfaceID surface, + VAImage *image /* out */ +) +{ + INIT_DRIVER_DATA + + /* TODO */ + return VA_STATUS_SUCCESS; +} + VAStatus dummy_DestroyImage( VADriverContextP ctx, VAImageID image @@ -508,6 +520,26 @@ VAStatus dummy_PutImage( return VA_STATUS_SUCCESS; } +VAStatus dummy_PutImage2( + VADriverContextP ctx, + VASurfaceID surface, + VAImageID image, + int src_x, + int src_y, + unsigned int src_width, + unsigned int src_height, + int dest_x, + int dest_y, + unsigned int dest_width, + unsigned int dest_height +) +{ + INIT_DRIVER_DATA + + /* TODO */ + return VA_STATUS_SUCCESS; +} + VAStatus dummy_QuerySubpictureFormats( VADriverContextP ctx, VAImageFormat *format_list, /* out */ @@ -623,6 +655,32 @@ VAStatus dummy_AssociateSubpicture( return VA_STATUS_SUCCESS; } +VAStatus dummy_AssociateSubpicture2( + VADriverContextP ctx, + VASubpictureID subpicture, + VASurfaceID *target_surfaces, + int num_surfaces, + short src_x, /* upper left offset in subpicture */ + short src_y, + unsigned short src_width, + unsigned short src_height, + short dest_x, /* upper left offset in surface */ + short dest_y, + unsigned short dest_width, + unsigned short dest_height, + /* + * whether to enable chroma-keying or global-alpha + * see VA_SUBPICTURE_XXX values + */ + unsigned int flags +) +{ + INIT_DRIVER_DATA + + /* TODO */ + return VA_STATUS_SUCCESS; +} + VAStatus dummy_DeassociateSubpicture( VADriverContextP ctx, VASubpictureID subpicture, @@ -1141,7 +1199,7 @@ VAStatus dummy_Terminate( VADriverContextP ctx ) return VA_STATUS_SUCCESS; } -VAStatus __vaDriverInit_0_26( VADriverContextP ctx ) +VAStatus __vaDriverInit_0_28( VADriverContextP ctx ) { object_base_p obj; int result; @@ -1149,7 +1207,7 @@ VAStatus __vaDriverInit_0_26( VADriverContextP ctx ) int i; ctx->version_major = 0; - ctx->version_minor = 26; + ctx->version_minor = 28; ctx->max_profiles = DUMMY_MAX_PROFILES; ctx->max_entrypoints = DUMMY_MAX_ENTRYPOINTS; ctx->max_attributes = DUMMY_MAX_CONFIG_ATTRIBUTES; @@ -1183,10 +1241,12 @@ VAStatus __vaDriverInit_0_26( VADriverContextP ctx ) 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.vaPutImage2 = dummy_PutImage2; ctx->vtable.vaQuerySubpictureFormats = dummy_QuerySubpictureFormats; ctx->vtable.vaCreateSubpicture = dummy_CreateSubpicture; ctx->vtable.vaDestroySubpicture = dummy_DestroySubpicture; @@ -1195,6 +1255,7 @@ VAStatus __vaDriverInit_0_26( VADriverContextP ctx ) ctx->vtable.vaSetSubpictureChromakey = dummy_SetSubpictureChromakey; ctx->vtable.vaSetSubpictureGlobalAlpha = dummy_SetSubpictureGlobalAlpha; ctx->vtable.vaAssociateSubpicture = dummy_AssociateSubpicture; + ctx->vtable.vaAssociateSubpicture2 = dummy_AssociateSubpicture2; ctx->vtable.vaDeassociateSubpicture = dummy_DeassociateSubpicture; ctx->vtable.vaQueryDisplayAttributes = dummy_QueryDisplayAttributes; ctx->vtable.vaGetDisplayAttributes = dummy_GetDisplayAttributes; diff --git a/dummy_drv_video/dummy_drv_video.h b/dummy_drv_video/dummy_drv_video.h index d1920ab..3ebd60b 100644 --- a/dummy_drv_video/dummy_drv_video.h +++ b/dummy_drv_video/dummy_drv_video.h @@ -34,7 +34,7 @@ #define DUMMY_MAX_IMAGE_FORMATS 10 #define DUMMY_MAX_SUBPIC_FORMATS 4 #define DUMMY_MAX_DISPLAY_ATTRIBUTES 4 -#define DUMMY_STR_VENDOR "Dummy-dummy-1.0-dummy" +#define DUMMY_STR_VENDOR "Dummy Driver 1.0" struct dummy_driver_data { struct object_heap config_heap; |