Image

Struct Image 

Source
pub struct Image<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Image<'a>

Source

pub fn chroma_format(&self) -> ChromaFormat

Source

pub fn width(&self, channel: Channel) -> u32

Source

pub fn height(&self, channel: Channel) -> u32

Source

pub fn bits_per_pixel(&self, channel: Channel) -> u32

Source

pub fn plane(&self, channel: Channel) -> (&[u8], usize)

Returns the plane data and bytes per line (stride).

Source

pub fn plane_user_data(&self, channel: Channel) -> *mut c_void

Source

pub fn user_data(&self) -> usize

Source

pub fn pts(&self) -> i64

The presentation time stamp in microseconds.

Source

pub fn nal_header(&self) -> NalHeader

Get NAL-header information of this frame.

Source

pub fn full_range(&self) -> bool

Source

pub fn colour_primaries(&self) -> u8

Source

pub fn transfer_characteristics(&self) -> u8

Source

pub fn matrix_coefficients(&self) -> u8

Trait Implementations§

Source§

impl<'a> Drop for Image<'a>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.