summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-09-09 18:06:51 +0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-09-10 12:49:39 +0000
commitb5dd1694205551088bc2d295c79bd6d07f50b1c4 (patch)
tree8d0b055f5d545037a369ab63ce7816eedf76dc96 /gst-libs
parent5168611f5564eb1d98ce3e9e0b0a855b6d067eef (diff)
libs: Add BGR10A2_LE support for color space conversion.
Fix: #179
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiimage.c1
-rw-r--r--gst-libs/gst/vaapi/video-format.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiimage.c b/gst-libs/gst/vaapi/gstvaapiimage.c
index 6c10b3b9..a2a62680 100644
--- a/gst-libs/gst/vaapi/gstvaapiimage.c
+++ b/gst-libs/gst/vaapi/gstvaapiimage.c
@@ -94,6 +94,7 @@ vaapi_image_is_linear (const VAImage * va_image)
case VA_FOURCC ('B', 'G', 'R', 'X'):
case VA_FOURCC ('Y', '2', '1', '0'):
case VA_FOURCC ('Y', '4', '1', '0'):
+ case VA_FOURCC ('A', 'R', '3', '0'):
data_size = 4 * width * height;
break;
case VA_FOURCC ('P', '0', '1', '0'):
diff --git a/gst-libs/gst/vaapi/video-format.c b/gst-libs/gst/vaapi/video-format.c
index b1d2d4b1..a22b3095 100644
--- a/gst-libs/gst/vaapi/video-format.c
+++ b/gst-libs/gst/vaapi/video-format.c
@@ -160,6 +160,8 @@ static const GstVideoFormatMap gst_vaapi_video_default_formats[] = {
0x0000f800, 0x000007e0, 0x0000001f, 0x00000000),
DEF_RGB (VA_BYTE_ORDER_NOT_CARE, RGB, ('R', 'G', '2', '4'), 32, 24,
0x00ff0000, 0x0000ff00, 0x000000ff, 0x00000000),
+ DEF_RGB (VA_LSB_FIRST, BGR10A2_LE, ('A', 'R', '3', '0'), 32, 30,
+ 0x3ff00000, 0x000ffc00, 0x000003ff, 0x30000000),
{0,}
};
/* *INDENT-ON* */