#[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
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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DualLayerHdrBufParts
impl !UnwindSafe for DualLayerHdrBufParts
impl Freeze for DualLayerHdrBufParts
impl Send for DualLayerHdrBufParts
impl Sync for DualLayerHdrBufParts
impl Unpin for DualLayerHdrBufParts
impl UnsafeUnpin for DualLayerHdrBufParts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more