#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.