mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 09:48:43 +00:00
Use BT.709 for DrmRenderer
This commit is contained in:
parent
2eee9c019f
commit
c8182dfab3
2 changed files with 9 additions and 0 deletions
|
@ -1064,6 +1064,14 @@ bool DrmRenderer::isDirectRenderingSupported()
|
||||||
return m_SupportsDirectRendering;
|
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)
|
const char* DrmRenderer::getDrmColorEncodingValue(AVFrame* frame)
|
||||||
{
|
{
|
||||||
switch (getFrameColorspace(frame)) {
|
switch (getFrameColorspace(frame)) {
|
||||||
|
|
|
@ -55,6 +55,7 @@ public:
|
||||||
virtual bool needsTestFrame() override;
|
virtual bool needsTestFrame() override;
|
||||||
virtual bool testRenderFrame(AVFrame* frame) override;
|
virtual bool testRenderFrame(AVFrame* frame) override;
|
||||||
virtual bool isDirectRenderingSupported() override;
|
virtual bool isDirectRenderingSupported() override;
|
||||||
|
virtual int getDecoderColorspace() override;
|
||||||
virtual void setHdrMode(bool enabled) override;
|
virtual void setHdrMode(bool enabled) override;
|
||||||
#ifdef HAVE_EGL
|
#ifdef HAVE_EGL
|
||||||
virtual bool canExportEGL() override;
|
virtual bool canExportEGL() override;
|
||||||
|
|
Loading…
Reference in a new issue