pub enum FFPixelFormat {
Show 28 variants
GBRP,
GBRP10LE,
GBRP12L,
GBRP12LE,
GRAY10LE,
GRAY12L,
GRAY12LE,
GRAY8,
NV12,
NV16,
NV20LE,
NV21,
YUV420P,
YUV420P10LE,
YUV420P12LE,
YUV422P,
YUV422P10LE,
YUV422P12LE,
YUV440P,
YUV440P10LE,
YUV440P12LE,
YUV444P,
YUV444P10LE,
YUV444P12LE,
YUVA420P,
YUVJ420P,
YUVJ422P,
YUVJ444P,
}Expand description
Pixel formats supported by ffmpeg
Variants§
GBRP
GBRP10LE
GBRP12L
GBRP12LE
GRAY10LE
GRAY12L
GRAY12LE
GRAY8
NV12
NV16
NV20LE
NV21
YUV420P
YUV420P10LE
YUV420P12LE
YUV422P
YUV422P10LE
YUV422P12LE
YUV440P
YUV440P10LE
YUV440P12LE
YUV444P
YUV444P10LE
YUV444P12LE
YUVA420P
YUVJ420P
YUVJ422P
YUVJ444P
Implementations§
Source§impl FFPixelFormat
impl FFPixelFormat
Sourcepub fn to_pix_fmt_string(&self) -> &'static str
pub fn to_pix_fmt_string(&self) -> &'static str
The string to be used with ffmpeg’s -pix_fmt argument.
pub fn to_vapoursynth_format(&self) -> Result<PresetFormat>
Trait Implementations§
Source§impl Clone for FFPixelFormat
impl Clone for FFPixelFormat
Source§fn clone(&self) -> FFPixelFormat
fn clone(&self) -> FFPixelFormat
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 FFPixelFormat
impl Debug for FFPixelFormat
Source§impl<'de> Deserialize<'de> for FFPixelFormat
impl<'de> Deserialize<'de> for FFPixelFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for FFPixelFormat
impl FromStr for FFPixelFormat
Source§impl PartialEq for FFPixelFormat
impl PartialEq for FFPixelFormat
Source§impl Serialize for FFPixelFormat
impl Serialize for FFPixelFormat
impl Copy for FFPixelFormat
impl Eq for FFPixelFormat
impl StructuralPartialEq for FFPixelFormat
Auto Trait Implementations§
impl Freeze for FFPixelFormat
impl RefUnwindSafe for FFPixelFormat
impl Send for FFPixelFormat
impl Sync for FFPixelFormat
impl Unpin for FFPixelFormat
impl UnwindSafe for FFPixelFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more