libs: video-format: change GST_VIDEO_FORMAT_AYUV to VUYA.
authorHe Junyan <junyan.he@hotmail.com>
Wed, 6 Nov 2019 14:37:12 +0000 (22:37 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Wed, 6 Nov 2019 14:38:57 +0000 (22:38 +0800)
We only support VUYA format in gst vaapi now, need to correct
the mapping.

gst-libs/gst/vaapi/video-format.c
tests/internal/test-windows.c

index 1463c0e..eac6ac5 100644 (file)
@@ -445,7 +445,7 @@ gst_vaapi_video_format_from_chroma (guint chroma_type)
     case GST_VAAPI_CHROMA_TYPE_YUV420_10BPP:
       return GST_VIDEO_FORMAT_P010_10LE;
     case GST_VAAPI_CHROMA_TYPE_YUV444:
-      return GST_VIDEO_FORMAT_AYUV;
+      return GST_VIDEO_FORMAT_VUYA;
     case GST_VAAPI_CHROMA_TYPE_YUV422_10BPP:
       return GST_VIDEO_FORMAT_Y210;
     case GST_VAAPI_CHROMA_TYPE_YUV444_10BPP:
index 4985e35..595be3f 100644 (file)
@@ -62,7 +62,7 @@ create_test_surface (GstVaapiDisplay * display, guint width, guint height)
     GST_VIDEO_FORMAT_NV12,
     GST_VIDEO_FORMAT_YV12,
     GST_VIDEO_FORMAT_I420,
-    GST_VIDEO_FORMAT_AYUV,
+    GST_VIDEO_FORMAT_VUYA,
     GST_VIDEO_FORMAT_ARGB,
     GST_VIDEO_FORMAT_BGRA,
     GST_VIDEO_FORMAT_RGBA,