Commit e0042a99 authored by Yeongjin Jeong's avatar Yeongjin Jeong Committed by Tim-Philipp Müller

msdk: Don't use VA_RT_FORMAT_YUV420_10 if it's undefined

../sys/msdk/gstmsdkallocator_libva.c:99:16: error: ‘VA_RT_FORMAT_YUV420_10’

The minimum required version seems to VA_API_VERSION >= 1.2.0
parent 42adb02a
Pipeline #58623 failed with stages
in 117 minutes and 18 seconds
......@@ -106,7 +106,11 @@ gst_msdk_frame_alloc (mfxHDL pthis, mfxFrameAllocRequest * req,
gst_msdk_get_va_rt_format_from_mfx_rt_format (req->Info.ChromaFormat);
if (format == VA_RT_FORMAT_YUV420 && va_fourcc == VA_FOURCC_P010)
#if VA_CHECK_VERSION(1, 2, 0)
format = VA_RT_FORMAT_YUV420_10;
#else
format = VA_RT_FORMAT_YUV420_10BPP;
#endif
#if VA_CHECK_VERSION(1, 4, 1)
if (format == VA_RT_FORMAT_YUV444 && va_fourcc == VA_FOURCC_A2R10G10B10)
......@@ -501,7 +505,11 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
va_fourcc = VA_FOURCC_YUY2;
break;
case GST_VIDEO_FORMAT_P010_10LE:
#if VA_CHECK_VERSION(1, 2, 0)
va_chroma = VA_RT_FORMAT_YUV420_10;
#else
va_chroma = VA_RT_FORMAT_YUV420_10BPP;
#endif
va_fourcc = VA_FOURCC_P010;
break;
case GST_VIDEO_FORMAT_UYVY:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment