Struct vpx_image

Source
#[repr(C)]
pub struct vpx_image {
Show 20 fields pub fmt: vpx_img_fmt_t, pub cs: vpx_color_space_t, pub range: vpx_color_range_t, pub w: c_uint, pub h: c_uint, pub bit_depth: c_uint, pub d_w: c_uint, pub d_h: c_uint, pub r_w: c_uint, pub r_h: c_uint, pub x_chroma_shift: c_uint, pub y_chroma_shift: c_uint, pub planes: [*mut c_uchar; 4], pub stride: [c_int; 4], pub bps: c_int, pub user_priv: *mut c_void, pub img_data: *mut c_uchar, pub img_data_owner: c_int, pub self_allocd: c_int, pub fb_priv: *mut c_void,
}
Expand description

\brief Image Descriptor

Fields§

§fmt: vpx_img_fmt_t

< Image Format

§cs: vpx_color_space_t

< Color Space

§range: vpx_color_range_t

< Color Range

§w: c_uint

< Stored image width

§h: c_uint

< Stored image height

§bit_depth: c_uint

< Stored image bit-depth

§d_w: c_uint

< Displayed image width

§d_h: c_uint

< Displayed image height

§r_w: c_uint

< Intended rendering image width

§r_h: c_uint

< Intended rendering image height

§x_chroma_shift: c_uint

< subsampling order, X

§y_chroma_shift: c_uint

< subsampling order, Y

§planes: [*mut c_uchar; 4]

< pointer to the top left pixel for each plane

§stride: [c_int; 4]

< stride between rows for each plane

§bps: c_int

< bits per sample (for packed formats)

§user_priv: *mut c_void

\brief The following member may be set by the application to associate data with this image.

§img_data: *mut c_uchar

< private

§img_data_owner: c_int

< private

§self_allocd: c_int

< private

§fb_priv: *mut c_void

< Frame buffer data associated with the image.

Trait Implementations§

Source§

impl Clone for vpx_image

Source§

fn clone(&self) -> vpx_image

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for vpx_image

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for vpx_image

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.