libs: Add RGB565 image format support.

This commit is contained in:
He Junyan 2019-04-08 18:29:35 +08:00 committed by Víctor Manuel Jáquez Leal
parent d506dacc6b
commit c048594370
2 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,7 @@ vaapi_image_is_linear (const VAImage * va_image)
break;
case VA_FOURCC ('Y', 'U', 'Y', '2'):
case VA_FOURCC ('U', 'Y', 'V', 'Y'):
case VA_FOURCC ('R', 'G', '1', '6'):
data_size = 2 * width * height;
break;
case VA_FOURCC ('Y', '8', '0', '0'):

View File

@ -86,6 +86,8 @@ static const GstVideoFormatMap gst_vaapi_video_formats[] = {
24, 0x00ff0000, 0x0000ff00, 0x000000ff, 0x00000000),
DEF_RGB (RGBx, ('R', 'G', 'B', 'X'), 32,
24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0x00000000),
DEF_RGB (RGB16, ('R', 'G', '1', '6'), 16,
16, 0x0000f800, 0x000007e0, 0x0000001f, 0x00000000),
{0,}
};
/* *INDENT-ON* */