Enum vapoursynth::format::PresetFormat
source · [−]#[repr(i32)]
pub enum PresetFormat {
Show 35 variants
Gray8,
Gray16,
GrayH,
GrayS,
YUV420P8,
YUV422P8,
YUV444P8,
YUV410P8,
YUV411P8,
YUV440P8,
YUV420P9,
YUV422P9,
YUV444P9,
YUV420P10,
YUV422P10,
YUV444P10,
YUV420P16,
YUV422P16,
YUV444P16,
YUV444PH,
YUV444PS,
YUV420P12,
YUV422P12,
YUV444P12,
YUV420P14,
YUV422P14,
YUV444P14,
RGB24,
RGB27,
RGB30,
RGB48,
RGBH,
RGBS,
CompatBGR32,
CompatYUY2,
}
Expand description
Preset VapourSynth formats.
The presets suffixed with H and S have floating point sample type. The H and S suffixes stand for half precision and single precision, respectively.
The compat formats are the only packed formats in VapourSynth. Everything else is planar. They exist for compatibility with Avisynth plugins. They are not to be implemented in native VapourSynth plugins.
Variants
Gray8
Gray16
GrayH
GrayS
YUV420P8
YUV422P8
YUV444P8
YUV410P8
YUV411P8
YUV440P8
YUV420P9
YUV422P9
YUV444P9
YUV420P10
YUV422P10
YUV444P10
YUV420P16
YUV422P16
YUV444P16
YUV444PH
YUV444PS
YUV420P12
YUV422P12
YUV444P12
YUV420P14
YUV422P14
YUV444P14
RGB24
RGB27
RGB30
RGB48
RGBH
RGBS
CompatBGR32
CompatYUY2
Trait Implementations
sourceimpl Clone for PresetFormat
impl Clone for PresetFormat
sourcefn clone(&self) -> PresetFormat
fn clone(&self) -> PresetFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PresetFormat
impl Debug for PresetFormat
sourceimpl From<PresetFormat> for FormatID
impl From<PresetFormat> for FormatID
sourcefn from(x: PresetFormat) -> Self
fn from(x: PresetFormat) -> Self
Converts to this type from the input type.
sourceimpl Hash for PresetFormat
impl Hash for PresetFormat
sourceimpl Ord for PresetFormat
impl Ord for PresetFormat
sourceimpl PartialEq<PresetFormat> for PresetFormat
impl PartialEq<PresetFormat> for PresetFormat
sourceimpl PartialOrd<PresetFormat> for PresetFormat
impl PartialOrd<PresetFormat> for PresetFormat
sourcefn partial_cmp(&self, other: &PresetFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &PresetFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PresetFormat
impl Eq for PresetFormat
impl StructuralEq for PresetFormat
impl StructuralPartialEq for PresetFormat
Auto Trait Implementations
impl RefUnwindSafe for PresetFormat
impl Send for PresetFormat
impl Sync for PresetFormat
impl Unpin for PresetFormat
impl UnwindSafe for PresetFormat
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more