pub struct Image<'a> { /* private fields */ }Implementations§
Source§impl<'a> Image<'a>
impl<'a> Image<'a>
pub fn chroma_format(&self) -> ChromaFormat
pub fn width(&self, channel: Channel) -> u32
pub fn height(&self, channel: Channel) -> u32
pub fn bits_per_pixel(&self, channel: Channel) -> u32
Sourcepub fn plane(&self, channel: Channel) -> (&[u8], usize)
pub fn plane(&self, channel: Channel) -> (&[u8], usize)
Returns the plane data and bytes per line (stride).
pub fn plane_user_data(&self, channel: Channel) -> *mut c_void
pub fn user_data(&self) -> usize
Sourcepub fn nal_header(&self) -> NalHeader
pub fn nal_header(&self) -> NalHeader
Get NAL-header information of this frame.
pub fn full_range(&self) -> bool
pub fn colour_primaries(&self) -> u8
pub fn transfer_characteristics(&self) -> u8
pub fn matrix_coefficients(&self) -> u8
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Image<'a>
impl<'a> RefUnwindSafe for Image<'a>
impl<'a> !Send for Image<'a>
impl<'a> !Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> UnwindSafe for Image<'a>
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