libs: Add BGR10A2_LE support for color space conversion.

Fix: #179
This commit is contained in:
He Junyan 2019-09-09 18:06:51 +08:00 committed by Víctor Manuel Jáquez Leal
parent 5168611f55
commit b5dd169420
2 changed files with 3 additions and 0 deletions

View file

@ -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'):

View file

@ -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* */