Table of Contents

Enum ColorSpaceType

Namespace
Stride.Graphics
Assembly
Stride.dll

Specifies color space types.

public enum ColorSpaceType

Fields

Custom = -1

A custom color definition is used.

Reserved = 4

Reserved.

RgbFullG10NoneP709 = 1

ColorspaceRGB Range0-255 Gamma1.0 SitingImage PrimariesBT.709. Use with backbuffer of 16 bit colors, PixelFormat.R16G16B16A16_Float. This is the standard definition for scRGB, and is usually used with 16-bit integer, 16-bit floating point, and 32-bit floating point channels.

RgbFullG2084NoneP2020 = 12

ColorspaceRGB Range0-255 Gamma2084 SitingImage PrimariesBT.2020. Use with backbuffer of 10 bit colors, PixelFormat.R10G10B10A2_UNorm. This is usually used with 10, 12, or 16-bit color channels.

RgbFullG22NoneP2020 = 17

ColorspaceRGB Range0-255 Gamma2.2 SitingImage PrimariesBT.2020. This is usually used with 10, 12, or 16-bit color channels.

RgbFullG22NoneP709 = 0

ColorspaceRGB Range0-255 Gamma2.2 SitingImage PrimariesBT.709. Use with backbuffer of 8 bit colors, such as PixelFormat.B8G8R8A8_UNorm. This is the standard definition for sRGB. Note that this is often implemented with a linear segment, but in that case, the exponent is corrected to stay aligned with a gamma 2.2 curve. This is usually used with 8-bit and 10-bit color channels.

RgbStudioG2084NoneP2020 = 14

ColorspaceRGB Range16-235 Gamma2084 SitingImage PrimariesBT.2020. This is usually used with 10, 12, or 16-bit color channels.

RgbStudioG22NoneP2020 = 3

ColorspaceRGB Range16-235 Gamma2.2 SitingImage PrimariesBT.2020. This is usually used with 10, 12, or 16-bit color channels.

RgbStudioG22NoneP709 = 2

ColorspaceRGB Range16-235 Gamma2.2 SitingImage PrimariesBT.709. This is the standard definition for ITU-R Recommendation BT.709. Note that due to the inclusion of a linear segment, the transfer curve looks similar to a pure exponential gamma of 1.9. This is usually used with 8-bit and 10-bit color channels.

RgbStudioG24NoneP2020 = 21

No documentation.

RgbStudioG24NoneP709 = 20

No documentation.

YcbcrFullG22LeftP2020 = 11

ColorspaceYCbCr Range0-255 Gamma2.2 SitingVideo PrimariesBT.2020. This is usually used with 10, 12, or 16-bit color channels.

YcbcrFullG22LeftP601 = 7

ColorspaceYCbCr Range0-255 Gamma2.2 SitingVideo PrimariesBT.601. This is sometimes used for H.264 camera capture, and is usually used with 8, 10, 12, or 16-bit color channels.

YcbcrFullG22LeftP709 = 9

ColorspaceYCbCr Range0-255 Gamma2.2 SitingVideo PrimariesBT.709. This is sometimes used for H.264 camera capture, and is usually used with 8, 10, 12, or 16-bit color channels.

YcbcrFullG22NoneP709X601 = 5

ColorspaceYCbCr Range0-255 Gamma2.2 SitingImage PrimariesBT.709 TransferBT.601. This definition is commonly used for JPG, and is usually used with 8, 10, 12, or 16-bit color channels.

YcbcrFullGhlgTopleftP2020 = 19

No documentation.

YcbcrStudioG2084LeftP2020 = 13

ColorspaceYCbCr Range16-235 Gamma2084 SitingVideo PrimariesBT.2020. This is usually used with 10, 12, or 16-bit color channels.

YcbcrStudioG2084TopleftP2020 = 16

ColorspaceYCbCr Range16-235 Gamma2084 SitingVideo PrimariesBT.2020. This is usually used with 10, 12, or 16-bit color channels.

YcbcrStudioG22LeftP2020 = 10

ColorspaceYCbCr Range16-235 Gamma2.2 SitingVideo PrimariesBT.2020. This definition may be used by HEVC, and is usually used with 10, 12, or 16-bit color channels.

YcbcrStudioG22LeftP601 = 6

ColorspaceYCbCr Range16-235 Gamma2.2 SitingVideo PrimariesBT.601. This definition is commonly used for MPEG2, and is usually used with 8, 10, 12, or 16-bit color channels.

YcbcrStudioG22LeftP709 = 8

ColorspaceYCbCr Range16-235 Gamma2.2 SitingVideo PrimariesBT.709. This definition is commonly used for H.264 and HEVC, and is usually used with 8, 10, 12, or 16-bit color channels.

YcbcrStudioG22TopleftP2020 = 15

ColorspaceYCbCr Range16-235 Gamma2.2 SitingVideo PrimariesBT.2020. This is usually used with 10, 12, or 16-bit color channels.

YcbcrStudioG24LeftP2020 = 23

No documentation.

YcbcrStudioG24LeftP709 = 22

No documentation.

YcbcrStudioG24TopleftP2020 = 24

No documentation.

YcbcrStudioGhlgTopleftP2020 = 18

A custom color definition is used.

Remarks

This enum is used within DXGI in the CheckColorSpaceSupport, SetColorSpace1 and CheckOverlayColorSpaceSupport methods. It is also referenced in D3D11 video methods such as ID3D11VideoContext1::VideoProcessorSetOutputColorSpace1, and D2D methods such as ID2D1DeviceContext2::CreateImageSourceFromDxgi. The following color parameters are defined: