diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2019-05-31 15:26:50 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-06-29 17:33:57 +0200 |
commit | bc3a43bdb45351671efa95e8f126b67dbaa6c6e6 (patch) | |
tree | 643e14a57e2f16a18ab2846d12b230168cc9b753 | |
parent | 365f6cf0c80d1ba1b3de9441411feb31dc9893bb (diff) | |
download | gstreamer-plugins-bad-bc3a43bdb45351671efa95e8f126b67dbaa6c6e6.tar.gz |
msdk: map MFX_FOURCC_Y410 to VA_FOURCC_Y410
-rw-r--r-- | sys/msdk/gstmsdkallocator_libva.c | 2 | ||||
-rw-r--r-- | sys/msdk/msdk_libva.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/msdk/gstmsdkallocator_libva.c b/sys/msdk/gstmsdkallocator_libva.c index 75d703c34..f0243c0d0 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 464ad9b02..870fd412e 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} }; |