#[repr(transparent)]pub struct SDL_ColorPrimaries(pub c_uint);Expand description
Colorspace color primaries, 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 |
|---|---|---|
UNKNOWN | SDL_COLOR_PRIMARIES_UNKNOWN | |
BT709 | SDL_COLOR_PRIMARIES_BT709 | ITU-R BT.709-6 |
UNSPECIFIED | SDL_COLOR_PRIMARIES_UNSPECIFIED | |
BT470M | SDL_COLOR_PRIMARIES_BT470M | ITU-R BT.470-6 System M |
BT470BG | SDL_COLOR_PRIMARIES_BT470BG | ITU-R BT.470-6 System B, G / ITU-R BT.601-7 625 |
BT601 | SDL_COLOR_PRIMARIES_BT601 | ITU-R BT.601-7 525, SMPTE 170M |
SMPTE240 | SDL_COLOR_PRIMARIES_SMPTE240 | SMPTE 240M, functionally the same as SDL_COLOR_PRIMARIES_BT601 |
GENERIC_FILM | SDL_COLOR_PRIMARIES_GENERIC_FILM | Generic film (color filters using Illuminant C) |
BT2020 | SDL_COLOR_PRIMARIES_BT2020 | ITU-R BT.2020-2 / ITU-R BT.2100-0 |
XYZ | SDL_COLOR_PRIMARIES_XYZ | SMPTE ST 428-1 |
SMPTE431 | SDL_COLOR_PRIMARIES_SMPTE431 | SMPTE RP 431-2 |
SMPTE432 | SDL_COLOR_PRIMARIES_SMPTE432 | SMPTE EG 432-1 / DCI P3 |
EBU3213 | SDL_COLOR_PRIMARIES_EBU3213 | EBU Tech. 3213-E |
CUSTOM | SDL_COLOR_PRIMARIES_CUSTOM |
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_ColorPrimaries
impl SDL_ColorPrimaries
pub const UNKNOWN: Self
pub const UNSPECIFIED: Self
Sourcepub const SMPTE240: Self
pub const SMPTE240: Self
SMPTE 240M, functionally the same as SDL_COLOR_PRIMARIES_BT601
Sourcepub const GENERIC_FILM: Self
pub const GENERIC_FILM: Self
Generic film (color filters using Illuminant C)
pub const CUSTOM: Self
Trait Implementations§
Source§impl Clone for SDL_ColorPrimaries
impl Clone for SDL_ColorPrimaries
Source§fn clone(&self) -> SDL_ColorPrimaries
fn clone(&self) -> SDL_ColorPrimaries
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_ColorPrimaries
Available on crate feature debug-impls only.
impl Debug for SDL_ColorPrimaries
Available on crate feature
debug-impls only.Source§impl Default for SDL_ColorPrimaries
impl Default for SDL_ColorPrimaries
Source§fn default() -> SDL_ColorPrimaries
fn default() -> SDL_ColorPrimaries
Returns the “default value” for a type. Read more
Source§impl From<SDL_ColorPrimaries> for c_uint
impl From<SDL_ColorPrimaries> for c_uint
Source§fn from(value: SDL_ColorPrimaries) -> Self
fn from(value: SDL_ColorPrimaries) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_ColorPrimaries
Available on crate feature metadata only.
impl GroupMetadata for SDL_ColorPrimaries
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_ColorPrimaries
impl Hash for SDL_ColorPrimaries
Source§impl Ord for SDL_ColorPrimaries
impl Ord for SDL_ColorPrimaries
Source§fn cmp(&self, other: &SDL_ColorPrimaries) -> Ordering
fn cmp(&self, other: &SDL_ColorPrimaries) -> 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_ColorPrimaries> for c_uint
impl PartialEq<SDL_ColorPrimaries> for c_uint
Source§impl PartialEq<u32> for SDL_ColorPrimaries
impl PartialEq<u32> for SDL_ColorPrimaries
Source§impl PartialEq for SDL_ColorPrimaries
impl PartialEq for SDL_ColorPrimaries
Source§impl PartialOrd for SDL_ColorPrimaries
impl PartialOrd for SDL_ColorPrimaries
impl Copy for SDL_ColorPrimaries
impl Eq for SDL_ColorPrimaries
impl StructuralPartialEq for SDL_ColorPrimaries
Auto Trait Implementations§
impl Freeze for SDL_ColorPrimaries
impl RefUnwindSafe for SDL_ColorPrimaries
impl Send for SDL_ColorPrimaries
impl Sync for SDL_ColorPrimaries
impl Unpin for SDL_ColorPrimaries
impl UnwindSafe for SDL_ColorPrimaries
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