From 35fe2abc3e37776f3ad5dba9c073e29804d3f192 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Tue, 29 Mar 2016 15:34:38 +0300 Subject: [PATCH] video-format: Keep the HW order preference while mapping to GstVideoFormats --- gst-libs/gst/vaapi/video-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/video-format.c b/gst-libs/gst/vaapi/video-format.c index 265df5a..78fb4da 100644 --- a/gst-libs/gst/vaapi/video-format.c +++ b/gst-libs/gst/vaapi/video-format.c @@ -52,7 +52,6 @@ typedef struct /* Image formats, listed in HW order preference */ /* *INDENT-OFF* */ static const GstVideoFormatMap gst_vaapi_video_formats[] = { - DEF_YUV (P010_10LE, ('P', '0', '1', '0'), LSB, 24, 420_10BPP), DEF_YUV (NV12, ('N', 'V', '1', '2'), LSB, 12, 420), DEF_YUV (YV12, ('Y', 'V', '1', '2'), LSB, 12, 420), DEF_YUV (I420, ('I', '4', '2', '0'), LSB, 12, 420), @@ -79,6 +78,7 @@ static const GstVideoFormatMap gst_vaapi_video_formats[] = { 24, 0x000000ff, 0x0000ff00, 0x00ff0000, 0x00000000), #endif DEF_YUV (GRAY8, ('Y', '8', '0', '0'), LSB, 8, 400), + DEF_YUV (P010_10LE, ('P', '0', '1', '0'), LSB, 24, 420_10BPP), {0,} }; /* *INDENT-ON* */ -- 2.7.4