[−][src]Enum rav1e::prelude::color::ChromaSampling
Chroma subsampling format
Variants
Both vertically and horizontally subsampled.
Horizontally subsampled.
Not subsampled.
Monochrome.
Implementations
impl ChromaSampling
[src]
pub fn get_decimation(self) -> Option<(usize, usize)>
[src]
Provides the amount to right shift the luma plane dimensions to get the chroma plane dimensions. Only values 0 or 1 are ever returned. The plane dimensions must also be rounded up to accommodate odd luma plane sizes. Cs400 returns None, as there are no chroma planes.
pub fn get_chroma_dimensions(
self,
luma_width: usize,
luma_height: usize
) -> (usize, usize)
[src]
self,
luma_width: usize,
luma_height: usize
) -> (usize, usize)
Calculates the size of a chroma plane for this sampling type, given the luma plane dimensions.
Trait Implementations
impl Clone for ChromaSampling
[src]
pub fn clone(&self) -> ChromaSampling
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ChromaSampling
[src]
impl Debug for ChromaSampling
[src]
impl Default for ChromaSampling
[src]
impl Display for ChromaSampling
[src]
impl FromPrimitive for ChromaSampling
[src]
pub fn from_i64(n: i64) -> Option<Self>
[src]
pub fn from_u64(n: u64) -> Option<Self>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl PartialEq<ChromaSampling> for ChromaSampling
[src]
pub fn eq(&self, other: &ChromaSampling) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for ChromaSampling
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChromaSampling
[src]
impl Send for ChromaSampling
[src]
impl Sync for ChromaSampling
[src]
impl Unpin for ChromaSampling
[src]
impl UnwindSafe for ChromaSampling
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,