[−][src]Struct av_data::pixel::Chromaton
There are available multiple constructor for yuv/rgb
Methods
impl Chromaton[src]
pub const fn new(
h_ss: u8,
v_ss: u8,
packed: bool,
depth: u8,
shift: u8,
comp_offs: u8,
next_elem: u8
) -> Self[src]
h_ss: u8,
v_ss: u8,
packed: bool,
depth: u8,
shift: u8,
comp_offs: u8,
next_elem: u8
) -> Self
pub const fn yuv8(h_ss: u8, v_ss: u8, comp_offs: u8) -> Chromaton[src]
pub const fn yuvhb(h_ss: u8, v_ss: u8, depth: u8, comp_offs: u8) -> Chromaton[src]
pub const fn packrgb(
depth: u8,
shift: u8,
comp_offs: u8,
next_elem: u8
) -> Chromaton[src]
depth: u8,
shift: u8,
comp_offs: u8,
next_elem: u8
) -> Chromaton
pub const fn pal8(comp_offs: u8) -> Chromaton[src]
pub fn get_subsampling(&self) -> (u8, u8)[src]
pub fn is_packed(self) -> bool[src]
pub fn get_depth(self) -> u8[src]
pub fn get_shift(self) -> u8[src]
pub fn get_offset(self) -> u8[src]
pub fn get_step(self) -> u8[src]
pub fn get_width(self, width: usize) -> usize[src]
pub fn get_height(self, height: usize) -> usize[src]
pub fn get_linesize(self, width: usize, alignment: usize) -> usize[src]
pub fn get_data_size(self, width: usize, height: usize, align: usize) -> usize[src]
Trait Implementations
impl Clone for Chromaton[src]
impl Copy for Chromaton[src]
impl PartialEq<Chromaton> for Chromaton[src]
impl Debug for Chromaton[src]
impl Display for Chromaton[src]
Auto Trait Implementations
impl Send for Chromaton
impl Sync for Chromaton
impl Unpin for Chromaton
impl RefUnwindSafe for Chromaton
impl UnwindSafe for Chromaton
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,