libs: video-format: change GST_VIDEO_FORMAT_AYUV to VUYA.

We only support VUYA format in gst vaapi now, need to correct
the mapping.
This commit is contained in:
He Junyan 2019-11-06 22:37:12 +08:00
parent 1c3b02daf2
commit a8be369840
2 changed files with 2 additions and 2 deletions

View 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:

View 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,