mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-21 14:52:04 +00:00
[idd] hdr: propagate per-frame HDR metadata
Handle DEFAULT, NEW, and UNCHANGED IDDCX HDR10 metadata states and publish valid mastering metadata through KVMFR. Preserve the metadata across post-processing without reallocating resources for metadata-only changes.
This commit is contained in:
@@ -42,6 +42,7 @@ struct D12FrameFormat
|
||||
FrameType format = FRAME_TYPE_INVALID;
|
||||
bool hdr = false;
|
||||
bool hdrPQ = false;
|
||||
bool hdrMetadata = false;
|
||||
uint32_t sdrWhiteLevel = KVMFR_SDR_WHITE_LEVEL_DEFAULT;
|
||||
|
||||
// HDR static metadata (SMPTE ST 2086)
|
||||
@@ -49,9 +50,9 @@ struct D12FrameFormat
|
||||
uint16_t displayPrimary[3][2];
|
||||
// White point in 0.00002 units
|
||||
uint16_t whitePoint[2];
|
||||
// Max display luminance in 0.0001 cd/m² units
|
||||
// Max mastering display luminance in whole cd/m²
|
||||
uint32_t maxDisplayLuminance;
|
||||
// Min display luminance in 0.0001 cd/m² units
|
||||
// Min mastering display luminance in 0.0001 cd/m² units
|
||||
uint32_t minDisplayLuminance;
|
||||
// MaxCLL and MaxFALL in cd/m²
|
||||
uint32_t maxContentLightLevel;
|
||||
|
||||
Reference in New Issue
Block a user