Attach EDR metadata to Metal layer
This improves the accuracy of HDR streaming and enables HDR->SDR tonemapping.
This commit is contained in:
parent
c52a57f0ec
commit
200cab9d17
4 changed files with 98 additions and 74 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue