Select correct color matrix for 10-bit SDR
This commit is contained in:
parent
181dba5864
commit
af37002a60
2 changed files with 2 additions and 2 deletions
|
|
@ -709,7 +709,7 @@ void D3D11VARenderer::bindColorConversion(AVFrame* frame)
|
|||
bool fullRange = isFrameFullRange(frame);
|
||||
int colorspace = getFrameColorspace(frame);
|
||||
bool yuv444 = (m_DecoderParams.videoFormat & VIDEO_FORMAT_MASK_YUV444);
|
||||
int bits = (colorspace == COLORSPACE_REC_2020) ? 10 : 8;
|
||||
int bits = (m_DecoderParams.videoFormat & VIDEO_FORMAT_MASK_10BIT) ? 10 : 8;
|
||||
|
||||
if (yuv444) {
|
||||
// We'll need to use one of the 4:4:4 shaders for this pixel format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue