Raw HDR10 metadata integers need field-specific unit conversion. Microsoft’s DXGI_HDR_METADATA_HDR10 structure does not use a single common scale for all its members. Applying one divisor to every field can produce a report that looks precise while misrepresenting chromaticity coordinates, mastering brightness or content-light values.
Decode the coordinate arrays
Each primary and white-point array contains two CIE 1931 chromaticity coordinates, with index zero holding x and index one holding y. The stored coordinate values are normalized to 50,000. An illustrative pair of 15,000 and 30,000 therefore represents x = 0.3000 and y = 0.6000. These dimensionless chromaticity coordinates are not pixel positions, RGB sample intensities or nit measurements. Their array order is part of the API contract.
Give the two mastering fields different scales
MaxMasteringLuminance uses whole nits in this structure. MinMasteringLuminance uses ten-thousandths of a nit. Consequently, illustrative raw values of 600 and 50 represent a 600-nit maximum and a 0.005-nit minimum. Dividing both by 10,000 would turn the maximum into a false 0.06 nits. Leaving both unscaled would instead turn the minimum into a false 50 nits. Retain the member names during conversion.
Label the content fields separately
MaxContentLightLevel and MaxFrameAverageLightLevel also represent nit values, but summarize the content rather than the mastering display. Their numerical interpretation should not be borrowed from the chromaticity arrays. A useful exported table includes raw value, exact structure member, divisor and interpreted unit. This also makes it possible to distinguish a conversion bug from a genuinely unexpected metadata declaration without silently correcting the original data.
Do not generalize the API’s packing
Microsoft specifically distinguishes this HDR10 metadata structure from the related ST.2086 definition. A field name that looks familiar in another container, codec structure or library is not enough to establish identical integer units. Identify the representation at each conversion boundary and consult its documentation. The arithmetic here interprets this named API structure; it neither certifies the metadata’s accuracy nor predicts the physical light output of a particular television or ProMax playback path.
