#[repr(i32)]pub enum PresetVideoFormat {
Show 41 variants
None = 0,
Gray8 = 268_959_744,
Gray9 = 269_025_280,
Gray10 = 269_090_816,
Gray12 = 269_221_888,
Gray14 = 269_352_960,
Gray16 = 269_484_032,
Gray32 = 270_532_608,
GrayH = 286_261_248,
GrayS = 287_309_824,
YUV410P8 = 805_831_170,
YUV411P8 = 805_831_168,
YUV440P8 = 805_830_657,
YUV420P8 = 805_830_913,
YUV422P8 = 805_830_912,
YUV444P8 = 805_830_656,
YUV420P9 = 805_896_449,
YUV422P9 = 805_896_448,
YUV444P9 = 805_896_192,
YUV420P10 = 805_961_985,
YUV422P10 = 805_961_984,
YUV444P10 = 805_961_728,
YUV420P12 = 806_093_057,
YUV422P12 = 806_093_056,
YUV444P12 = 806_092_800,
YUV420P14 = 806_224_129,
YUV422P14 = 806_224_128,
YUV444P14 = 806_223_872,
YUV420P16 = 806_355_201,
YUV422P16 = 806_355_200,
YUV444P16 = 806_354_944,
YUV444PH = 823_132_160,
YUV444PS = 824_180_736,
RGB24 = 537_395_200,
RGB27 = 537_460_736,
RGB30 = 537_526_272,
RGB36 = 537_657_344,
RGB42 = 537_788_416,
RGB48 = 537_919_488,
RGBH = 554_696_704,
RGBS = 555_745_280,
}
Expand description
Preset video format IDs as defined by VapourSynth.
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§
None = 0
Gray8 = 268_959_744
Gray9 = 269_025_280
Gray10 = 269_090_816
Gray12 = 269_221_888
Gray14 = 269_352_960
Gray16 = 269_484_032
Gray32 = 270_532_608
GrayH = 286_261_248
GrayS = 287_309_824
YUV410P8 = 805_831_170
YUV411P8 = 805_831_168
YUV440P8 = 805_830_657
YUV420P8 = 805_830_913
YUV422P8 = 805_830_912
YUV444P8 = 805_830_656
YUV420P9 = 805_896_449
YUV422P9 = 805_896_448
YUV444P9 = 805_896_192
YUV420P10 = 805_961_985
YUV422P10 = 805_961_984
YUV444P10 = 805_961_728
YUV420P12 = 806_093_057
YUV422P12 = 806_093_056
YUV444P12 = 806_092_800
YUV420P14 = 806_224_129
YUV422P14 = 806_224_128
YUV444P14 = 806_223_872
YUV420P16 = 806_355_201
YUV422P16 = 806_355_200
YUV444P16 = 806_354_944
YUV444PH = 823_132_160
YUV444PS = 824_180_736
RGB24 = 537_395_200
RGB27 = 537_460_736
RGB30 = 537_526_272
RGB36 = 537_657_344
RGB42 = 537_788_416
RGB48 = 537_919_488
RGBH = 554_696_704
RGBS = 555_745_280
Implementations§
Source§impl PresetVideoFormat
impl PresetVideoFormat
Sourcepub fn into_format(self, core: &CoreRef<'_>) -> VideoFormat
pub fn into_format(self, core: &CoreRef<'_>) -> VideoFormat
Consumes the PresetVideoFormatID and returns the corresponding VideoFormat from the core.
Trait Implementations§
Source§impl Clone for PresetVideoFormat
impl Clone for PresetVideoFormat
Source§fn clone(&self) -> PresetVideoFormat
fn clone(&self) -> PresetVideoFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PresetVideoFormat
impl Debug for PresetVideoFormat
Source§impl Hash for PresetVideoFormat
impl Hash for PresetVideoFormat
Source§impl Ord for PresetVideoFormat
impl Ord for PresetVideoFormat
Source§fn cmp(&self, other: &PresetVideoFormat) -> Ordering
fn cmp(&self, other: &PresetVideoFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PresetVideoFormat
impl PartialEq for PresetVideoFormat
Source§impl PartialOrd for PresetVideoFormat
impl PartialOrd for PresetVideoFormat
impl Copy for PresetVideoFormat
impl Eq for PresetVideoFormat
impl StructuralPartialEq for PresetVideoFormat
Auto Trait Implementations§
impl Freeze for PresetVideoFormat
impl RefUnwindSafe for PresetVideoFormat
impl Send for PresetVideoFormat
impl Sync for PresetVideoFormat
impl Unpin for PresetVideoFormat
impl UnwindSafe for PresetVideoFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more