mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1742>
This commit is contained in:
parent
f71493a57c
commit
9a796482dc
2 changed files with 2 additions and 8 deletions
|
@ -1392,11 +1392,8 @@ gst_d3d11_h265_dec_register (GstPlugin * plugin, GstD3D11Device * device,
|
||||||
} else {
|
} else {
|
||||||
have_main10 &=
|
have_main10 &=
|
||||||
gst_d3d11_decoder_supports_format (decoder, &profile, DXGI_FORMAT_P010);
|
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) {
|
if (!have_main10) {
|
||||||
GST_FIXME_OBJECT (device,
|
GST_FIXME_OBJECT (device, "device does not support P010 format");
|
||||||
"device does not support P010 and/or NV12 format");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1111,11 +1111,8 @@ gst_d3d11_vp9_dec_register (GstPlugin * plugin, GstD3D11Device * device,
|
||||||
} else {
|
} else {
|
||||||
have_profile2 &=
|
have_profile2 &=
|
||||||
gst_d3d11_decoder_supports_format (decoder, &profile, DXGI_FORMAT_P010);
|
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) {
|
if (!have_profile2) {
|
||||||
GST_FIXME_OBJECT (device,
|
GST_FIXME_OBJECT (device, "device does not support P010 format");
|
||||||
"device does not support P010 and/or NV12 format");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue