#[non_exhaustive]pub struct DualLayerHdrBufParts {
pub base: PixelBuf,
pub gain_map: PixelBuf,
pub metadata: GainMapMetadata,
pub alternate_color_space: Option<ColorSpace>,
pub orientation: Orientation,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Complete decomposed parts of a DualLayerHdrBuf carrier, preserving every field losslessly.
When modifying orientation before calling DualLayerHdrBuf::from_parts, keep
base.orientation() and gain_map.orientation() either equal to parts.orientation or
reset to Orientation::Identity (for example, after DualLayerHdrBuf::into_parts, prefer
DualLayerHdrBuf::with_orientation / DualLayerHdrBuf::compose_orientation for O(1) metadata
updates, or update parts.base, parts.gain_map, and parts.orientation together).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.base: PixelBufBase rendition pixel buffer.
gain_map: PixelBufNumeric gain-map pixel buffer (ColorSpace::Untagged, 1 or 3 channels).
metadata: GainMapMetadataExact rational ISO 21496-1 metadata.
alternate_color_space: Option<ColorSpace>Optional alternate rendition color space.
orientation: OrientationShared pending EXIF orientation for the aligned pair.
Trait Implementations§
Source§impl Clone for DualLayerHdrBufParts
impl Clone for DualLayerHdrBufParts
Source§fn clone(&self) -> DualLayerHdrBufParts
fn clone(&self) -> DualLayerHdrBufParts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more