pub struct DecodedYuv {
pub planes: YuvBuffer,
pub alpha: Option<SamplePlane>,
pub gain_map: Option<GainMapFrame>,
pub bit_depth: BitDepth,
pub chroma: ChromaFormat,
pub color: ColorMetadata,
pub orientation: Orientation,
pub clean_aperture: Option<CleanAperture>,
pub pixel_aspect_ratio: Option<PixelAspectRatio>,
pub exif: Option<Vec<u8>>,
}Expand description
Zero-copy-or-minimal-copy raw YCbCr result. Single-item HEIC images retain their decoder allocation and expose the visible crop through plane offsets and strides. Grid images are naturally tightly packed.
Fields§
§planes: YuvBuffer§alpha: Option<SamplePlane>§gain_map: Option<GainMapFrame>§bit_depth: BitDepth§chroma: ChromaFormat§color: ColorMetadata§orientation: Orientation§clean_aperture: Option<CleanAperture>§pixel_aspect_ratio: Option<PixelAspectRatio>§exif: Option<Vec<u8>>Implementations§
Trait Implementations§
Source§impl Clone for DecodedYuv
impl Clone for DecodedYuv
Source§fn clone(&self) -> DecodedYuv
fn clone(&self) -> DecodedYuv
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 Freeze for DecodedYuv
impl RefUnwindSafe for DecodedYuv
impl Send for DecodedYuv
impl Sync for DecodedYuv
impl Unpin for DecodedYuv
impl UnsafeUnpin for DecodedYuv
impl UnwindSafe for DecodedYuv
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