summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2019-11-06 22:37:12 +0800
committerHe Junyan <junyan.he@hotmail.com>2019-11-06 22:38:57 +0800
commita8be3698406a97a98ce87216275892a110317689 (patch)
tree3b342b7b42d409c4966042a5403571c45fb85d3e
parent1c3b02daf2fed53fa9ca7267d458bd5f6baefe73 (diff)
libs: video-format: change GST_VIDEO_FORMAT_AYUV to VUYA.
We only support VUYA format in gst vaapi now, need to correct the mapping.
-rw-r--r--gst-libs/gst/vaapi/video-format.c2
-rw-r--r--tests/internal/test-windows.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/video-format.c b/gst-libs/gst/vaapi/video-format.c
index 1463c0e7..eac6ac5c 100644
--- a/gst-libs/gst/vaapi/video-format.c
+++ b/gst-libs/gst/vaapi/video-format.c
@@ -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:
diff --git a/tests/internal/test-windows.c b/tests/internal/test-windows.c
index 4985e350..595be3fe 100644
--- a/tests/internal/test-windows.c
+++ b/tests/internal/test-windows.c
@@ -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,