pub struct PixFormat(/* private fields */);Expand description
Pixel format of a VIDEO_OUTPUT or
VIDEO_CAPTURE buffer.
Implementations§
Source§impl PixFormat
impl PixFormat
pub fn new(width: u32, height: u32, pixel_format: PixelFormat) -> Self
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn pixel_format(&self) -> PixelFormat
pub fn bytes_per_line(&self) -> u32
pub fn size_image(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PixFormat
impl RefUnwindSafe for PixFormat
impl Send for PixFormat
impl Sync for PixFormat
impl Unpin for PixFormat
impl UnwindSafe for PixFormat
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