#[repr(C)]pub enum YuvStandardMatrix {
Bt601,
Bt709,
Bt2020,
Smpte240,
Bt470_6,
Custom(f32, f32),
}
Expand description
Declares standard prebuilt YUV conversion matrices, check ITU-R information for more info JPEG YUV Matrix corresponds Bt.601 + Full Range
Variants§
Bt601
If you want to encode/decode JPEG YUV use Bt.601 + Full Range
Bt709
Bt2020
Smpte240
Bt470_6
Custom(f32, f32)
Custom parameters first goes for kr, second for kb. Methods will panic if 1.0f32 - kr - kb == 0
Implementations§
Trait Implementations§
Source§impl Clone for YuvStandardMatrix
impl Clone for YuvStandardMatrix
Source§fn clone(&self) -> YuvStandardMatrix
fn clone(&self) -> YuvStandardMatrix
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 YuvStandardMatrix
impl Debug for YuvStandardMatrix
Source§impl PartialEq for YuvStandardMatrix
impl PartialEq for YuvStandardMatrix
Source§impl PartialOrd for YuvStandardMatrix
impl PartialOrd for YuvStandardMatrix
impl Copy for YuvStandardMatrix
impl StructuralPartialEq for YuvStandardMatrix
Auto Trait Implementations§
impl Freeze for YuvStandardMatrix
impl RefUnwindSafe for YuvStandardMatrix
impl Send for YuvStandardMatrix
impl Sync for YuvStandardMatrix
impl Unpin for YuvStandardMatrix
impl UnwindSafe for YuvStandardMatrix
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<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