msdk: map MFX_FOURCC_Y410 to VA_FOURCC_Y410
authorHaihao Xiang <haihao.xiang@intel.com>
Fri, 31 May 2019 07:26:50 +0000 (15:26 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 29 Jun 2019 15:33:57 +0000 (17:33 +0200)
sys/msdk/gstmsdkallocator_libva.c
sys/msdk/msdk_libva.c

index 75d703c34fe2ac1825ed1bb9aead63abc911b324..f0243c0d023755d318929117a0587be62dc445f1 100644 (file)
@@ -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),
index 464ad9b0246137edbfcad98f59dd0f15f4252d40..870fd412e034218db25bc0a952a29c7250e539a1 100644 (file)
@@ -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}
 };