pub fn generate_gainmap_xmp(metadata: &GainMapParams) -> StringExpand description
Generate XMP for the gain-map (secondary) JPEG: numeric metadata only (no Container:Directory).
Goes in the gain-map JPEG’s APP1 marker. Together with the primary’s
Container:Directory XMP, this matches libultrahdr’s canonical
output.