summaryrefslogtreecommitdiff
path: root/sys/va/gstvavideoformat.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2021-03-31 09:59:21 +0200
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-07 11:06:59 +0000
commit60db766a0d2cc7e85544b88b568f0011861c9249 (patch)
tree2db86ffc1a11ed2ad67003d9e0d7833908f34b5d /sys/va/gstvavideoformat.c
parentd932dcf6be5800567c69cf34f9f1eae283216307 (diff)
downloadgstreamer-plugins-bad-60db766a0d2cc7e85544b88b568f0011861c9249.tar.gz
va: videoformats: Map more color formats.
Added Y212_LE, Y412_LE, P012_LE, Y444, RGB16, RGB and BGR10A2_LE in the static map betwen VA and GStreamer color formats. This synchronize the map used in gstremaer-vaapi and this plugin. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2129>
Diffstat (limited to 'sys/va/gstvavideoformat.c')
-rw-r--r--sys/va/gstvavideoformat.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/va/gstvavideoformat.c b/sys/va/gstvavideoformat.c
index a81886b1a..6b4c1a921 100644
--- a/sys/va/gstvavideoformat.c
+++ b/sys/va/gstvavideoformat.c
@@ -84,9 +84,12 @@ static struct FormatMap
G (Y210, ('Y', '2', '1', '0'), YUV422_10, NSB, 32),
/* F (????, Y216), */
G (Y410, ('Y', '4', '1', '0'), YUV444_10, NSB, 32),
+ G (Y212_LE, ('Y', '2', '1', '2'), YUV422_12, NSB, 32),
+ G (Y412_LE, ('Y', '4', '1', '2'), YUV422_12, NSB, 32),
/* F (????, Y416), */
/* F (????, YV16), */
G (P010_10LE, ('P', '0', '1', '0'), YUV420_10, NSB, 24),
+ G (P012_LE, ('P', '0', '1', '2'), YUV420_12, NSB, 24),
/* F (P016_LE, P016, ????), */
/* F (????, I010), */
/* F (????, IYUV), */
@@ -95,11 +98,18 @@ static struct FormatMap
/* F (????, X2R10G10B10), */
/* F (????, X2B10G10R10), */
G (GRAY8, ('Y', '8', '0', '0'), YUV400, NSB, 8),
+ G (Y444, ('4', '4', '4', 'P'), YUV444, NSB, 24),
/* F (????, Y16), */
/* G (VYUY, VYUY, YUV422), */
/* G (YVYU, YVYU, YUV422), */
/* F (ARGB64, ARGB64, ????), */
/* F (????, ABGR64), */
+ F (RGB16, ('R', 'G', '1', '6'), RGB16, NSB, 16, 16, 0x0000f800,
+ 0x000007e0, 0x0000001f, 0x00000000),
+ F (RGB, ('R', 'G', '2', '4'), RGB32, NSB, 32, 24, 0x00ff0000,
+ 0x0000ff00, 0x000000ff, 0x00000000),
+ F (BGR10A2_LE, ('A', 'R', '3', '0'), RGB32, LSB, 32, 30, 0x3ff00000,
+ 0x000ffc00, 0x000003ff, 0x30000000),
#undef F
#undef G
};