summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-01-03 15:23:42 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-01-03 16:01:03 +0100
commit72816e637f9be59be89cebfdc50668fa5345f946 (patch)
tree27c412d2a4534cb7fe915bb916bb95bb5ed835fe /src
parenta140c632046e50a41bf75da097834fd9954b9561 (diff)
downloadvaapi-intel-driver-72816e637f9be59be89cebfdc50668fa5345f946.tar.gz
vaapi-intel-driver-72816e637f9be59be89cebfdc50668fa5345f946.tar.bz2
vaapi-intel-driver-72816e637f9be59be89cebfdc50668fa5345f946.zip
subpicture: expose "global-alpha" is supported.
Make sure vaQuerySubpictureFormats() reports that "global-alpha" is supported, along with "screen-coords". Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/i965_drv_video.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index c0b4fe6..5159658 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -136,28 +136,32 @@ typedef struct {
unsigned int va_flags;
} i965_subpic_format_map_t;
+#define COMMON_SUBPICTURE_FLAGS \
+ (VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD| \
+ VA_SUBPICTURE_GLOBAL_ALPHA)
+
static const i965_subpic_format_map_t
i965_subpic_formats_map[I965_MAX_SUBPIC_FORMATS + 1] = {
{ I965_SURFACETYPE_INDEXED, I965_SURFACEFORMAT_P4A4_UNORM,
{ VA_FOURCC('I','A','4','4'), VA_MSB_FIRST, 8, },
- VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD },
+ COMMON_SUBPICTURE_FLAGS },
{ I965_SURFACETYPE_INDEXED, I965_SURFACEFORMAT_A4P4_UNORM,
{ VA_FOURCC('A','I','4','4'), VA_MSB_FIRST, 8, },
- VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD },
+ COMMON_SUBPICTURE_FLAGS },
{ I965_SURFACETYPE_INDEXED, I965_SURFACEFORMAT_P8A8_UNORM,
{ VA_FOURCC('I','A','8','8'), VA_MSB_FIRST, 16, },
- VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD },
+ COMMON_SUBPICTURE_FLAGS },
{ I965_SURFACETYPE_INDEXED, I965_SURFACEFORMAT_A8P8_UNORM,
{ VA_FOURCC('A','I','8','8'), VA_MSB_FIRST, 16, },
- VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD },
+ COMMON_SUBPICTURE_FLAGS },
{ I965_SURFACETYPE_RGBA, I965_SURFACEFORMAT_B8G8R8A8_UNORM,
{ VA_FOURCC('B','G','R','A'), VA_LSB_FIRST, 32,
32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 },
- VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD },
+ COMMON_SUBPICTURE_FLAGS },
{ I965_SURFACETYPE_RGBA, I965_SURFACEFORMAT_R8G8B8A8_UNORM,
{ VA_FOURCC('R','G','B','A'), VA_LSB_FIRST, 32,
32, 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000 },
- VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD },
+ COMMON_SUBPICTURE_FLAGS },
};
static const i965_subpic_format_map_t *