From bc3a43bdb45351671efa95e8f126b67dbaa6c6e6 Mon Sep 17 00:00:00 2001 From: Haihao Xiang Date: Fri, 31 May 2019 15:26:50 +0800 Subject: [PATCH] msdk: map MFX_FOURCC_Y410 to VA_FOURCC_Y410 --- sys/msdk/gstmsdkallocator_libva.c | 2 ++ sys/msdk/msdk_libva.c | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c index 75d703c..f0243c0 100644 --- a/sys/msdk/gstmsdkallocator_libva.c +++ b/sys/msdk/gstmsdkallocator_libva.c @@ -106,6 +106,8 @@ gst_msdk_frame_alloc (mfxHDL pthis, mfxFrameAllocRequest * req, #if ((MFX_VERSION >= 1027) && VA_CHECK_VERSION(1, 2, 0)) if (format == VA_RT_FORMAT_YUV422 && va_fourcc == VA_FOURCC_Y210) format = VA_RT_FORMAT_YUV422_10; + else if (format == VA_RT_FORMAT_YUV444 && va_fourcc == VA_FOURCC_Y410) + format = VA_RT_FORMAT_YUV444_10; #endif va_status = vaCreateSurfaces (gst_msdk_context_get_handle (context), diff --git a/sys/msdk/msdk_libva.c b/sys/msdk/msdk_libva.c index 464ad9b..870fd41 100644 --- a/sys/msdk/msdk_libva.c +++ b/sys/msdk/msdk_libva.c @@ -71,6 +71,7 @@ static const struct fourcc_map gst_msdk_fourcc_mfx_to_va[] = { #endif #if ((MFX_VERSION >= 1027) && VA_CHECK_VERSION(1, 2, 0)) FOURCC_MFX_TO_VA (Y210, Y210), + FOURCC_MFX_TO_VA (Y410, Y410), #endif {0, 0} }; -- 2.7.4