pub fn apply_gain_map_oriented(
dual: &DualLayerHdrView<'_>,
config: &GainMapApplyConfig,
pulse: Option<&dyn Pulse>,
) -> Result<(PixelBuf, Orientation), At<ConvertError>>Expand description
Reconstruct a PixelBuf and its resulting pending Orientation from a zero-copy
DualLayerHdrView according to config.orientation, with optional cooperative
cancellation and progress via pulse (pass None when not needed):
GainMapOrientation::Bake(default): reconstructs in stored coordinates, then physically appliesdual.orientation(), returning(display_buf, Orientation::Identity)withdisplay_buf.orientation() == Orientation::Identity.GainMapOrientation::Passthrough: reconstructs in stored coordinates with zero transpose cost, returning(stored_buf, dual.orientation())withstored_buf.orientation() == dual.orientation()for EXIF passthrough or GPU UV rotation.GainMapOrientation::RequireIdentity: returnsErr(ConvertError::UnsupportedRoute)ifdual.orientation() != Orientation::Identity.