From 9a796482dc897e3c3ed00d74c0245774ce0d5e81 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 31 Oct 2020 00:37:48 +0900 Subject: [PATCH] d3d11decoder: Allow 10bits only profiles HEVC_VLD_Main10 and VP9_VLD_10bit_Profile2 might not support 8bit format (i.e., NV12) depending on GPU vendor. Part-of: --- sys/d3d11/gstd3d11h265dec.c | 5 +---- sys/d3d11/gstd3d11vp9dec.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/d3d11/gstd3d11h265dec.c b/sys/d3d11/gstd3d11h265dec.c index 4c439c0c6b..7aabf3af42 100644 --- a/sys/d3d11/gstd3d11h265dec.c +++ b/sys/d3d11/gstd3d11h265dec.c @@ -1392,11 +1392,8 @@ gst_d3d11_h265_dec_register (GstPlugin * plugin, GstD3D11Device * device, } else { have_main10 &= gst_d3d11_decoder_supports_format (decoder, &profile, DXGI_FORMAT_P010); - have_main10 &= - gst_d3d11_decoder_supports_format (decoder, &profile, DXGI_FORMAT_NV12); if (!have_main10) { - GST_FIXME_OBJECT (device, - "device does not support P010 and/or NV12 format"); + GST_FIXME_OBJECT (device, "device does not support P010 format"); } } diff --git a/sys/d3d11/gstd3d11vp9dec.c b/sys/d3d11/gstd3d11vp9dec.c index 231f090345..07e04fdc61 100644 --- a/sys/d3d11/gstd3d11vp9dec.c +++ b/sys/d3d11/gstd3d11vp9dec.c @@ -1111,11 +1111,8 @@ gst_d3d11_vp9_dec_register (GstPlugin * plugin, GstD3D11Device * device, } else { have_profile2 &= gst_d3d11_decoder_supports_format (decoder, &profile, DXGI_FORMAT_P010); - have_profile2 &= - gst_d3d11_decoder_supports_format (decoder, &profile, DXGI_FORMAT_NV12); if (!have_profile2) { - GST_FIXME_OBJECT (device, - "device does not support P010 and/or NV12 format"); + GST_FIXME_OBJECT (device, "device does not support P010 format"); } }