[idd/client/obs] hdr: wire up the SdrWhiteLevel from the capture

This commit is contained in:
Geoffrey McRae committed 2026-07-23 09:43:59 +10:00
1 parent 0d2dc2694e
commit 845c612d0f
17 files changed
+111 -66

No files matched your search

+9 -1
View File
@@ -28,7 +28,11 @@
#include "types.h"
#define KVMFR_MAGIC "KVMFR---"
#define KVMFR_VERSION 20
#define KVMFR_VERSION 21
// Fallback used by producers that cannot report the source display's SDR
// white level. IDD frames override this with IDDCX_METADATA2::SdrWhiteLevel.
#define KVMFR_SDR_WHITE_LEVEL_DEFAULT 203u
#define KVMFR_MAX_DAMAGE_RECTS 64
@@ -175,6 +179,10 @@ typedef struct KVMFRFrame
uint32_t hdrMinDisplayLuminance; // Min mastering display luminance (0.0001 cd/m²)
uint32_t hdrMaxContentLightLevel; // MaxCLL (cd/m²)
uint32_t hdrMaxFrameAverageLightLevel; // MaxFALL (cd/m²)
// White level in nits for SDR content composited into an HDR frame, such as
// the hardware cursor. Valid for all frames; SDR modes normally report 80.
uint32_t sdrWhiteLevel;
}
KVMFRFrame;