Skip to main content

bake_dual_layer_orientation

Function bake_dual_layer_orientation 

Source
pub fn bake_dual_layer_orientation(
    dual: &DualLayerHdrView<'_>,
) -> Result<DualLayerHdrBuf, At<ConvertError>>
Expand description

Physically bake dual.orientation() into both base and gain_map, returning an owned aligned DualLayerHdrBuf with Orientation::Identity.

Both layers receive the exact same dihedral transform so their stored-frame coordinates stay registered (including subsampled ΒΌ-res gain maps under pixel-center siting). For O(1) lossless EXIF passthrough without rebaking pixels, use DualLayerHdrBuf::compose_orientation instead.