Table of Contents

Enum ColorSpace

Namespace
Sdl3Sharp.Video.Coloring
Assembly
Sdl3Sharp.dll

Represents a color space

public enum ColorSpace : uint

Fields

Bt2020Full = 571483657

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Bt2020Limited = 554706441

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Bt601Full = 571480262

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Bt601Limited = 554703046

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Bt709Full = 571474977

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Bt709Limited = 554697761

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Hdr10 = 301999616

HDR10 is a non-linear HDR colorspace and the default colorspace for 10-bit surfaces

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Jpeg = 570426566

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

RgbDefault = 301991328

The default color space for RGB surfaces if no color space is specified

This is equivalent to Srgb.

Srgb = 301991328

sRGB is a gamma corrected color space, and the default color space for SDL rendering and 8-bit RGB surface

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

SrgbLinear = 301991168

sRGB linear is a linear colorspace and the default color space for floating point surfaces. On Windows this is the scRGB color space, and on Apple platforms this is kCGColorSpaceExtendedLinearSRGB for EDR content.

This is equivalent to the DirectX color space DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 (see https://learn.microsoft.com/en-us/windows/win32/api/dxgicommon/ne-dxgicommon-dxgi_color_space_type).

Unknown = 0

The unknown ColorSpace

YuvDefault = 554703046

The default colorspace for YUV surfaces if no colorspace is specified

This is equivalent Bt601Limited.