mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-23 16:43:52 +00:00
Fix Raised Black Levels on Steam Deck OLED (#1265)
Add getDecoderColorRange to plvk
This commit is contained in:
1 parent
1cd588f25c
commit
58e27875ae
2 files changed
+7
No files matched your search
@@ -905,6 +905,12 @@ int PlVkRenderer::getRendererAttributes()
|
||||
return attributes;
|
||||
}
|
||||
|
||||
int PlVkRenderer::getDecoderColorRange()
|
||||
{
|
||||
// Explicitly set the color range to full to fix raised black levels on OLED displays
|
||||
return COLOR_RANGE_FULL;
|
||||
}
|
||||
|
||||
int PlVkRenderer::getDecoderCapabilities()
|
||||
{
|
||||
return CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC |
|
||||
|
||||
@@ -23,6 +23,7 @@ public:
|
||||
virtual void notifyOverlayUpdated(Overlay::OverlayType) override;
|
||||
virtual bool notifyWindowChanged(PWINDOW_STATE_CHANGE_INFO) override;
|
||||
virtual int getRendererAttributes() override;
|
||||
virtual int getDecoderColorRange() override;
|
||||
virtual int getDecoderCapabilities() override;
|
||||
virtual bool needsTestFrame() override;
|
||||
virtual bool isPixelFormatSupported(int videoFormat, enum AVPixelFormat pixelFormat) override;
|
||||
|
||||
Reference in new issue
Block a user