SDL_TransferCharacteristics

Struct SDL_TransferCharacteristics 

Source
#[repr(transparent)]
pub struct SDL_TransferCharacteristics(pub c_uint);
Expand description

Colorspace transfer characteristics.

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 constantGlobal constantDescription
UNKNOWNSDL_TRANSFER_CHARACTERISTICS_UNKNOWN
BT709SDL_TRANSFER_CHARACTERISTICS_BT709Rec. ITU-R BT.709-6 / ITU-R BT1361
UNSPECIFIEDSDL_TRANSFER_CHARACTERISTICS_UNSPECIFIED
GAMMA22SDL_TRANSFER_CHARACTERISTICS_GAMMA22ITU-R BT.470-6 System M / ITU-R BT1700 625 PAL & SECAM
GAMMA28SDL_TRANSFER_CHARACTERISTICS_GAMMA28ITU-R BT.470-6 System B, G
BT601SDL_TRANSFER_CHARACTERISTICS_BT601SMPTE ST 170M / ITU-R BT.601-7 525 or 625
SMPTE240SDL_TRANSFER_CHARACTERISTICS_SMPTE240SMPTE ST 240M
LINEARSDL_TRANSFER_CHARACTERISTICS_LINEAR
LOG100SDL_TRANSFER_CHARACTERISTICS_LOG100
LOG100_SQRT10SDL_TRANSFER_CHARACTERISTICS_LOG100_SQRT10
IEC61966SDL_TRANSFER_CHARACTERISTICS_IEC61966IEC 61966-2-4
BT1361SDL_TRANSFER_CHARACTERISTICS_BT1361ITU-R BT1361 Extended Colour Gamut
SRGBSDL_TRANSFER_CHARACTERISTICS_SRGBIEC 61966-2-1 (sRGB or sYCC)
BT2020_10BITSDL_TRANSFER_CHARACTERISTICS_BT2020_10BITITU-R BT2020 for 10-bit system
BT2020_12BITSDL_TRANSFER_CHARACTERISTICS_BT2020_12BITITU-R BT2020 for 12-bit system
PQSDL_TRANSFER_CHARACTERISTICS_PQSMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems
SMPTE428SDL_TRANSFER_CHARACTERISTICS_SMPTE428SMPTE ST 428-1
HLGSDL_TRANSFER_CHARACTERISTICS_HLGARIB STD-B67, known as “hybrid log-gamma” (HLG)
CUSTOMSDL_TRANSFER_CHARACTERISTICS_CUSTOM

Tuple Fields§

§0: c_uint

Implementations§

Source§

impl SDL_TransferCharacteristics

Source

pub const UNKNOWN: Self

Source

pub const BT709: Self

Rec. ITU-R BT.709-6 / ITU-R BT1361

Source

pub const UNSPECIFIED: Self

Source

pub const GAMMA22: Self

ITU-R BT.470-6 System M / ITU-R BT1700 625 PAL & SECAM

Source

pub const GAMMA28: Self

ITU-R BT.470-6 System B, G

Source

pub const BT601: Self

SMPTE ST 170M / ITU-R BT.601-7 525 or 625

Source

pub const SMPTE240: Self

SMPTE ST 240M

Source

pub const LINEAR: Self

Source

pub const LOG100: Self

Source

pub const LOG100_SQRT10: Self

Source

pub const IEC61966: Self

IEC 61966-2-4

Source

pub const BT1361: Self

ITU-R BT1361 Extended Colour Gamut

Source

pub const SRGB: Self

IEC 61966-2-1 (sRGB or sYCC)

Source

pub const BT2020_10BIT: Self

ITU-R BT2020 for 10-bit system

Source

pub const BT2020_12BIT: Self

ITU-R BT2020 for 12-bit system

Source

pub const PQ: Self

SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems

Source

pub const SMPTE428: Self

SMPTE ST 428-1

Source

pub const HLG: Self

ARIB STD-B67, known as “hybrid log-gamma” (HLG)

Source

pub const CUSTOM: Self

Trait Implementations§

Source§

impl Clone for SDL_TransferCharacteristics

Source§

fn clone(&self) -> SDL_TransferCharacteristics

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SDL_TransferCharacteristics

Available on crate feature debug-impls only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SDL_TransferCharacteristics

Source§

fn default() -> SDL_TransferCharacteristics

Returns the “default value” for a type. Read more
Source§

impl From<SDL_TransferCharacteristics> for c_uint

Source§

fn from(value: SDL_TransferCharacteristics) -> Self

Converts to this type from the input type.
Source§

impl GroupMetadata for SDL_TransferCharacteristics

Available on crate feature metadata only.
Source§

const GROUP_METADATA: &'static Group

Metadata for this group
Source§

impl Hash for SDL_TransferCharacteristics

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

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

impl Ord for SDL_TransferCharacteristics

Source§

fn cmp(&self, other: &SDL_TransferCharacteristics) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<SDL_TransferCharacteristics> for c_uint

Source§

fn eq(&self, other: &SDL_TransferCharacteristics) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<u32> for SDL_TransferCharacteristics

Source§

fn eq(&self, other: &c_uint) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for SDL_TransferCharacteristics

Source§

fn eq(&self, other: &SDL_TransferCharacteristics) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for SDL_TransferCharacteristics

Source§

fn partial_cmp(&self, other: &SDL_TransferCharacteristics) -> Option<Ordering>

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

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for SDL_TransferCharacteristics

Source§

impl Eq for SDL_TransferCharacteristics

Source§

impl StructuralPartialEq for SDL_TransferCharacteristics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.