mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Select correct color matrix for 10-bit SDR
This commit is contained in:
@@ -709,7 +709,7 @@ void D3D11VARenderer::bindColorConversion(AVFrame* frame)
|
|||||||
bool fullRange = isFrameFullRange(frame);
|
bool fullRange = isFrameFullRange(frame);
|
||||||
int colorspace = getFrameColorspace(frame);
|
int colorspace = getFrameColorspace(frame);
|
||||||
bool yuv444 = (m_DecoderParams.videoFormat & VIDEO_FORMAT_MASK_YUV444);
|
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) {
|
if (yuv444) {
|
||||||
// We'll need to use one of the 4:4:4 shaders for this pixel format
|
// We'll need to use one of the 4:4:4 shaders for this pixel format
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ public:
|
|||||||
if (colorspace != m_LastColorSpace || fullRange != m_LastFullRange || m_HdrMetadataChanged) {
|
if (colorspace != m_LastColorSpace || fullRange != m_LastFullRange || m_HdrMetadataChanged) {
|
||||||
CGColorSpaceRef newColorSpace;
|
CGColorSpaceRef newColorSpace;
|
||||||
ParamBuffer paramBuffer;
|
ParamBuffer paramBuffer;
|
||||||
int bits = (colorspace == COLORSPACE_REC_2020) ? 10 : 8;
|
int bits = (m_VideoFormat & VIDEO_FORMAT_MASK_10BIT) ? 10 : 8;
|
||||||
|
|
||||||
// Stop the display link before changing the Metal layer
|
// Stop the display link before changing the Metal layer
|
||||||
stopDisplayLink();
|
stopDisplayLink();
|
||||||
|
|||||||
Reference in New Issue
Block a user