#[repr(transparent)]pub struct SDL_MatrixCoefficients(pub c_uint);Expand description
Colorspace matrix coefficients.
These are as described by https://www.itu.int/rec/T-REC-H.273-201612-S/en
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
IDENTITY | SDL_MATRIX_COEFFICIENTS_IDENTITY | |
BT709 | SDL_MATRIX_COEFFICIENTS_BT709 | ITU-R BT.709-6 |
UNSPECIFIED | SDL_MATRIX_COEFFICIENTS_UNSPECIFIED | |
FCC | SDL_MATRIX_COEFFICIENTS_FCC | US FCC Title 47 |
BT470BG | SDL_MATRIX_COEFFICIENTS_BT470BG | ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625, functionally the same as SDL_MATRIX_COEFFICIENTS_BT601 |
BT601 | SDL_MATRIX_COEFFICIENTS_BT601 | ITU-R BT.601-7 525 |
SMPTE240 | SDL_MATRIX_COEFFICIENTS_SMPTE240 | SMPTE 240M |
YCGCO | SDL_MATRIX_COEFFICIENTS_YCGCO | |
BT2020_NCL | SDL_MATRIX_COEFFICIENTS_BT2020_NCL | ITU-R BT.2020-2 non-constant luminance |
BT2020_CL | SDL_MATRIX_COEFFICIENTS_BT2020_CL | ITU-R BT.2020-2 constant luminance |
SMPTE2085 | SDL_MATRIX_COEFFICIENTS_SMPTE2085 | SMPTE ST 2085 |
CHROMA_DERIVED_NCL | SDL_MATRIX_COEFFICIENTS_CHROMA_DERIVED_NCL | |
CHROMA_DERIVED_CL | SDL_MATRIX_COEFFICIENTS_CHROMA_DERIVED_CL | |
ICTCP | SDL_MATRIX_COEFFICIENTS_ICTCP | ITU-R BT.2100-0 ICTCP |
CUSTOM | SDL_MATRIX_COEFFICIENTS_CUSTOM |
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_MatrixCoefficients
impl SDL_MatrixCoefficients
pub const IDENTITY: Self
pub const UNSPECIFIED: Self
Sourcepub const BT470BG: Self
pub const BT470BG: Self
ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625, functionally the same as SDL_MATRIX_COEFFICIENTS_BT601
pub const YCGCO: Self
Sourcepub const BT2020_NCL: Self
pub const BT2020_NCL: Self
ITU-R BT.2020-2 non-constant luminance
pub const CHROMA_DERIVED_NCL: Self
pub const CHROMA_DERIVED_CL: Self
pub const CUSTOM: Self
Trait Implementations§
Source§impl Clone for SDL_MatrixCoefficients
impl Clone for SDL_MatrixCoefficients
Source§fn clone(&self) -> SDL_MatrixCoefficients
fn clone(&self) -> SDL_MatrixCoefficients
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 SDL_MatrixCoefficients
Available on crate feature debug-impls only.
impl Debug for SDL_MatrixCoefficients
Available on crate feature
debug-impls only.Source§impl Default for SDL_MatrixCoefficients
impl Default for SDL_MatrixCoefficients
Source§fn default() -> SDL_MatrixCoefficients
fn default() -> SDL_MatrixCoefficients
Returns the “default value” for a type. Read more
Source§impl From<SDL_MatrixCoefficients> for c_uint
impl From<SDL_MatrixCoefficients> for c_uint
Source§fn from(value: SDL_MatrixCoefficients) -> Self
fn from(value: SDL_MatrixCoefficients) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_MatrixCoefficients
Available on crate feature metadata only.
impl GroupMetadata for SDL_MatrixCoefficients
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_MatrixCoefficients
impl Hash for SDL_MatrixCoefficients
Source§impl Ord for SDL_MatrixCoefficients
impl Ord for SDL_MatrixCoefficients
Source§fn cmp(&self, other: &SDL_MatrixCoefficients) -> Ordering
fn cmp(&self, other: &SDL_MatrixCoefficients) -> 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<SDL_MatrixCoefficients> for c_uint
impl PartialEq<SDL_MatrixCoefficients> for c_uint
Source§impl PartialEq<u32> for SDL_MatrixCoefficients
impl PartialEq<u32> for SDL_MatrixCoefficients
Source§impl PartialEq for SDL_MatrixCoefficients
impl PartialEq for SDL_MatrixCoefficients
Source§impl PartialOrd for SDL_MatrixCoefficients
impl PartialOrd for SDL_MatrixCoefficients
impl Copy for SDL_MatrixCoefficients
impl Eq for SDL_MatrixCoefficients
impl StructuralPartialEq for SDL_MatrixCoefficients
Auto Trait Implementations§
impl Freeze for SDL_MatrixCoefficients
impl RefUnwindSafe for SDL_MatrixCoefficients
impl Send for SDL_MatrixCoefficients
impl Sync for SDL_MatrixCoefficients
impl Unpin for SDL_MatrixCoefficients
impl UnwindSafe for SDL_MatrixCoefficients
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