d3d11decoder: Allow 10bits only profiles
authorSeungha Yang <seungha@centricular.com>
Fri, 30 Oct 2020 15:37:48 +0000 (00:37 +0900)
committerSeungha Yang <seungha@centricular.com>
Fri, 30 Oct 2020 15:37:48 +0000 (00:37 +0900)
HEVC_VLD_Main10 and VP9_VLD_10bit_Profile2 might not support
8bit format (i.e., NV12) depending on GPU vendor.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1742>

sys/d3d11/gstd3d11h265dec.c
sys/d3d11/gstd3d11vp9dec.c

index 4c439c0..7aabf3a 100644 (file)
@@ -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");
     }
   }
 
index 231f090..07e04fd 100644 (file)
@@ -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");
     }
   }