pub fn encode_mastering_display_sei(md: &MasteringDisplay) -> [u8; 24]Expand description
Serialises a MasteringDisplay into the 24-byte SMPTE ST 2086 SEI payload
format used by HEVC and (via the same layout) AV1 metadata OBUs.
The layout is:
2 bytes × 3 primaries (x,y) + 2 bytes × white point (x,y) = 10 × u16
4 bytes max_luminance (u32, units: 0.0001 cd/m²)
4 bytes min_luminance (u32, units: 0.0001 cd/m²)