#[repr(C, packed(1))]pub struct PixFormatMplane { /* private fields */ }
Expand description
Multiplanar format definition
Implementations§
Source§impl PixFormatMplane
impl PixFormatMplane
Sourcepub fn plane_fmt(&self) -> &[PlanePixFormat]
pub fn plane_fmt(&self) -> &[PlanePixFormat]
Plane formats
Sourcepub fn plane_fmt_mut(&mut self) -> &mut [PlanePixFormat]
pub fn plane_fmt_mut(&mut self) -> &mut [PlanePixFormat]
Plane formats
Source§impl PixFormatMplane
impl PixFormatMplane
Sourcepub fn pixel_format(&self) -> FourCc
pub fn pixel_format(&self) -> FourCc
Pixel format
Sourcepub fn color_space(&self) -> ColorSpace
pub fn color_space(&self) -> ColorSpace
Color space
Sourcepub fn flags(&self) -> PixFmtFlag
pub fn flags(&self) -> PixFmtFlag
Pixel format flags
Sourcepub fn quantization(&self) -> Quantization
pub fn quantization(&self) -> Quantization
Quantization
Source§impl PixFormatMplane
impl PixFormatMplane
Sourcepub fn set_height(&mut self, val: u32) -> &mut Self
pub fn set_height(&mut self, val: u32) -> &mut Self
Height in pixels
Sourcepub fn set_pixel_format(&mut self, val: FourCc) -> &mut Self
pub fn set_pixel_format(&mut self, val: FourCc) -> &mut Self
Pixel format
Sourcepub fn set_color_space(&mut self, val: ColorSpace) -> &mut Self
pub fn set_color_space(&mut self, val: ColorSpace) -> &mut Self
Color space
Sourcepub fn set_flags(&mut self, val: PixFmtFlag) -> &mut Self
pub fn set_flags(&mut self, val: PixFmtFlag) -> &mut Self
Pixel format flags
Sourcepub fn set_quantization(&mut self, val: Quantization) -> &mut Self
pub fn set_quantization(&mut self, val: Quantization) -> &mut Self
Quantization
Sourcepub fn set_xfer_func(&mut self, val: XferFunc) -> &mut Self
pub fn set_xfer_func(&mut self, val: XferFunc) -> &mut Self
Transfer function
Trait Implementations§
Source§impl Clone for PixFormatMplane
impl Clone for PixFormatMplane
Source§fn clone(&self) -> PixFormatMplane
fn clone(&self) -> PixFormatMplane
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Display for PixFormatMplane
impl Display for PixFormatMplane
Source§impl IsFormatData for PixFormatMplane
impl IsFormatData for PixFormatMplane
Source§const TYPES: &'static [BufferType]
const TYPES: &'static [BufferType]
Buffer types which corresponds to format type
impl Copy for PixFormatMplane
Auto Trait Implementations§
impl Freeze for PixFormatMplane
impl RefUnwindSafe for PixFormatMplane
impl Send for PixFormatMplane
impl Sync for PixFormatMplane
impl Unpin for PixFormatMplane
impl UnwindSafe for PixFormatMplane
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