mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-22 23:32:03 +00:00
[idd] hdr: complete HDR display and cursor metadata
Publish BT.2020 chromaticities in the virtual monitor EDID so Windows receives a valid HDR colour volume. Extend cursor messages with their IddCx SDR white level and an explicit visibility-valid flag. Consumers can then calibrate cursors without treating colour-transform-only messages as cursor hides.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "types.h"
|
||||
|
||||
#define KVMFR_MAGIC "KVMFR---"
|
||||
#define KVMFR_VERSION 22
|
||||
#define KVMFR_VERSION 23
|
||||
|
||||
// Fallback used by producers that cannot report the source display's SDR
|
||||
// white level. IDD frames override this with IDDCX_METADATA2::SdrWhiteLevel.
|
||||
@@ -54,7 +54,10 @@ enum
|
||||
CURSOR_FLAG_POSITION = 0x1,
|
||||
CURSOR_FLAG_VISIBLE = 0x2,
|
||||
CURSOR_FLAG_SHAPE = 0x4,
|
||||
CURSOR_FLAG_COLOR_TRANSFORM = 0x8
|
||||
CURSOR_FLAG_COLOR_TRANSFORM = 0x8,
|
||||
// CURSOR_FLAG_VISIBLE contains a new visibility state. This distinguishes
|
||||
// an invisible cursor update from messages carrying unrelated cursor data.
|
||||
CURSOR_FLAG_VISIBLE_VALID = 0x10
|
||||
};
|
||||
|
||||
typedef uint32_t KVMFRCursorFlags;
|
||||
@@ -135,6 +138,7 @@ typedef struct KVMFRCursor
|
||||
uint32_t width; // width of the shape
|
||||
uint32_t height; // height of the shape
|
||||
uint32_t pitch; // row length in bytes of the shape
|
||||
uint32_t sdrWhiteLevel; // cursor white level in nits for HDR composition
|
||||
}
|
||||
KVMFRCursor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user