[−][src]Struct av_data::pixel::Formaton
Methods
impl Formaton[src]
pub fn new(
model: ColorModel,
components: &[Chromaton],
elem_size: u8,
be: bool,
alpha: bool,
palette: bool
) -> Self[src]
model: ColorModel,
components: &[Chromaton],
elem_size: u8,
be: bool,
alpha: bool,
palette: bool
) -> Self
pub fn get_model(&self) -> ColorModel[src]
pub fn get_primaries(&self) -> ColorPrimaries[src]
pub fn set_primaries(self, pc: ColorPrimaries)[src]
pub fn set_primaries_from_u32(self, pc: u32) -> Option<ColorPrimaries>[src]
pub fn get_xfer(&self) -> TransferCharacteristic[src]
pub fn set_xfer(self, pc: TransferCharacteristic)[src]
pub fn set_xfer_from_u32(self, tc: u32) -> Option<TransferCharacteristic>[src]
pub fn get_matrix(&self) -> MatrixCoefficients[src]
pub fn set_matrix(self, mc: MatrixCoefficients)[src]
pub fn set_matrix_from_u32(self, mc: u32) -> Option<MatrixCoefficients>[src]
pub fn get_num_comp(&self) -> usize[src]
pub fn get_chromaton(&self, idx: usize) -> Option<Chromaton>[src]
pub fn is_be(&self) -> bool[src]
pub fn has_alpha(&self) -> bool[src]
pub fn is_paletted(&self) -> bool[src]
pub fn get_elem_size(&self) -> u8[src]
pub fn iter<'a>(&'a self) -> Iter<'a, Option<Chromaton>>[src]
Trait Implementations
impl Copy for Formaton[src]
impl PartialEq<Formaton> for Formaton[src]
impl Clone for Formaton[src]
fn clone(&self) -> Formaton[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> IntoIterator for &'a Formaton[src]
type Item = &'a Option<Chromaton>
The type of the elements being iterated over.
type IntoIter = Iter<'a, Option<Chromaton>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter[src]
impl Display for Formaton[src]
impl Debug for Formaton[src]
impl<'a> Index<usize> for &'a Formaton[src]
Auto Trait Implementations
Blanket Implementations
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> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom 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 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 for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut 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,