#[repr(transparent)]pub struct SDL_Colorspace(pub Uint32);Expand description
Colorspace definitions.
Since similar colorspaces may vary in their details (matrix, transfer function, etc.), this is not an exhaustive list, but rather a representative sample of the kinds of colorspaces supported in SDL.
§Availability
This enum is available since SDL 3.2.0.
§See also
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
UNKNOWN | SDL_COLORSPACE_UNKNOWN | |
SRGB | SDL_COLORSPACE_SRGB | Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 |
SRGB_LINEAR | SDL_COLORSPACE_SRGB_LINEAR | Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 |
HDR10 | SDL_COLORSPACE_HDR10 | Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 |
JPEG | SDL_COLORSPACE_JPEG | Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 |
BT601_LIMITED | SDL_COLORSPACE_BT601_LIMITED | Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 |
BT601_FULL | SDL_COLORSPACE_BT601_FULL | Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 |
BT709_LIMITED | SDL_COLORSPACE_BT709_LIMITED | Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 |
BT709_FULL | SDL_COLORSPACE_BT709_FULL | Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 |
BT2020_LIMITED | SDL_COLORSPACE_BT2020_LIMITED | Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 |
BT2020_FULL | SDL_COLORSPACE_BT2020_FULL | Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 |
RGB_DEFAULT | SDL_COLORSPACE_RGB_DEFAULT | The default colorspace for RGB surfaces if no colorspace is specified |
YUV_DEFAULT | SDL_COLORSPACE_YUV_DEFAULT | The default colorspace for YUV surfaces if no colorspace is specified |
Tuple Fields§
§0: Uint32Implementations§
Source§impl SDL_Colorspace
impl SDL_Colorspace
pub const UNKNOWN: Self
Sourcepub const SRGB_LINEAR: Self
pub const SRGB_LINEAR: Self
Equivalent to DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709
Sourcepub const BT601_LIMITED: Self
pub const BT601_LIMITED: Self
Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601
Sourcepub const BT601_FULL: Self
pub const BT601_FULL: Self
Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601
Sourcepub const BT709_LIMITED: Self
pub const BT709_LIMITED: Self
Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709
Sourcepub const BT709_FULL: Self
pub const BT709_FULL: Self
Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709
Sourcepub const BT2020_LIMITED: Self
pub const BT2020_LIMITED: Self
Equivalent to DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020
Sourcepub const BT2020_FULL: Self
pub const BT2020_FULL: Self
Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020
Sourcepub const RGB_DEFAULT: Self = SDL_COLORSPACE_SRGB
pub const RGB_DEFAULT: Self = SDL_COLORSPACE_SRGB
The default colorspace for RGB surfaces if no colorspace is specified
Sourcepub const YUV_DEFAULT: Self = SDL_COLORSPACE_BT601_LIMITED
pub const YUV_DEFAULT: Self = SDL_COLORSPACE_BT601_LIMITED
The default colorspace for YUV surfaces if no colorspace is specified
Trait Implementations§
Source§impl Clone for SDL_Colorspace
impl Clone for SDL_Colorspace
Source§fn clone(&self) -> SDL_Colorspace
fn clone(&self) -> SDL_Colorspace
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SDL_Colorspace
Available on crate feature debug-impls only.
impl Debug for SDL_Colorspace
debug-impls only.Source§impl Default for SDL_Colorspace
impl Default for SDL_Colorspace
Source§fn default() -> SDL_Colorspace
fn default() -> SDL_Colorspace
Source§impl From<SDL_Colorspace> for Uint32
impl From<SDL_Colorspace> for Uint32
Source§fn from(value: SDL_Colorspace) -> Self
fn from(value: SDL_Colorspace) -> Self
Source§impl GroupMetadata for SDL_Colorspace
Available on crate feature metadata only.
impl GroupMetadata for SDL_Colorspace
metadata only.