Skip to content

direct3d11: get the bit depth and chroma subsampling from chroma description

Steve Lhomme requested to merge robUx4/vlc:d3d11_opaque_chroma into master

In D3D11 we try to use an output format that doesn't lose bit depth of chroma sub-sampling when rendering. That requires knowing the memory layout of each opaque chroma that might come on the input of the display module.

This MR tries to make the code to get this information more generic by getting an equivalent CPU chroma for an opaque chroma (D3D11 and NVDEC).

The NVDEC code is split so a generic nvdec header can be included without knowing much about NVDEC/CUDA (the C file might be overkill).

Edited by Steve Lhomme

Merge request reports

Loading