mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Attach EDR metadata to Metal layer
This improves the accuracy of HDR streaming and enables HDR->SDR tonemapping.
This commit is contained in:
@@ -6,8 +6,15 @@
|
||||
#import <Metal/Metal.h>
|
||||
class VTBaseRenderer : public IFFmpegRenderer {
|
||||
public:
|
||||
VTBaseRenderer(IFFmpegRenderer::RendererType type) : IFFmpegRenderer(type) {}
|
||||
VTBaseRenderer(IFFmpegRenderer::RendererType type);
|
||||
virtual ~VTBaseRenderer();
|
||||
bool checkDecoderCapabilities(id<MTLDevice> device, PDECODER_PARAMETERS params);
|
||||
void setHdrMode(bool enabled) override;
|
||||
|
||||
protected:
|
||||
bool m_HdrMetadataChanged; // Manual reset
|
||||
CFDataRef m_MasteringDisplayColorVolume;
|
||||
CFDataRef m_ContentLightLevelInfo;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user