mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Use BT.709 for DrmRenderer
This commit is contained in:
1 parent
2eee9c019f
commit
c8182dfab3
2 files changed
+9
No files matched your search
@@ -1064,6 +1064,14 @@ bool DrmRenderer::isDirectRenderingSupported()
|
||||
return m_SupportsDirectRendering;
|
||||
}
|
||||
|
||||
int DrmRenderer::getDecoderColorspace()
|
||||
{
|
||||
// Some DRM implementations (VisionFive) don't support BT.601 color encoding,
|
||||
// so let's default to BT.709, which all drivers that support COLOR_ENCODING
|
||||
// seem to support.
|
||||
return COLORSPACE_REC_709;
|
||||
}
|
||||
|
||||
const char* DrmRenderer::getDrmColorEncodingValue(AVFrame* frame)
|
||||
{
|
||||
switch (getFrameColorspace(frame)) {
|
||||
|
||||
Reference in new issue
Block a user