Struct vapoursynth::format::Format
source · [−]pub struct Format<'core> { /* private fields */ }
Expand description
Contains information about a video format.
Implementations
sourceimpl<'core> Format<'core>
impl<'core> Format<'core>
sourcepub fn plane_count(self) -> usize
pub fn plane_count(self) -> usize
Gets the number of planes of this format.
sourcepub fn color_family(self) -> ColorFamily
pub fn color_family(self) -> ColorFamily
Gets the color family of this format.
sourcepub fn sample_type(self) -> SampleType
pub fn sample_type(self) -> SampleType
Gets the sample type of this format.
sourcepub fn bits_per_sample(self) -> u8
pub fn bits_per_sample(self) -> u8
Gets the number of significant bits per sample.
sourcepub fn bytes_per_sample(self) -> u8
pub fn bytes_per_sample(self) -> u8
Gets the number of bytes needed for a sample. This is always a power of 2 and the smallest possible that can fit the number of bits used per sample.
sourcepub fn sub_sampling_w(self) -> u8
pub fn sub_sampling_w(self) -> u8
log2 subsampling factor, applied to second and third plane.
sourcepub fn sub_sampling_h(self) -> u8
pub fn sub_sampling_h(self) -> u8
log2 subsampling factor, applied to second and third plane.
Trait Implementations
impl<'core> Copy for Format<'core>
impl<'core> Eq for Format<'core>
Auto Trait Implementations
impl<'core> RefUnwindSafe for Format<'core>
impl<'core> Send for Format<'core>
impl<'core> Sync for Format<'core>
impl<'core> Unpin for Format<'core>
impl<'core> UnwindSafe for Format<'core>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more