SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
SDL::Colorspace Class Reference

Colorspace definitions. More...

Public Member Functions

constexpr Colorspace (ColorspaceRaw cspace={}) noexcept
 Wraps Colorspace.
constexpr Colorspace (ColorType type, ColorRange range, ColorPrimaries primaries, TransferCharacteristics transfer, MatrixCoefficients matrix, ChromaLocation chroma)
 Define custom Colorspace formats.
constexpr operator ColorspaceRaw () const noexcept
 Unwraps to the underlying Colorspace.
constexpr ColorType GetType () const
 Retrieve the type of a Colorspace.
constexpr ColorRange GetRange () const
 Retrieve the range of a Colorspace.
constexpr ChromaLocation GetChroma () const
 Retrieve the chroma sample location of an Colorspace.
constexpr ColorPrimaries GetPrimaries () const
 Retrieve the primaries of an Colorspace.
constexpr TransferCharacteristics GetTransfer () const
 Retrieve the transfer characteristics of an Colorspace.
constexpr MatrixCoefficients GetMatrix () const
 Retrieve the matrix coefficients of an Colorspace.
constexpr bool IsMatrixBT601 () const
 Determine if a Colorspace uses BT601 (or BT470BG) matrix coefficients.
constexpr bool IsMatrixBT709 () const
 Determine if an Colorspace uses BT709 matrix coefficients.
constexpr bool IsMatrixBT2020_NCL () const
 Determine if an Colorspace uses BT2020_NCL matrix coefficients.
constexpr bool IsLimitedRange () const
 A function to determine if an Colorspace has a limited range.
constexpr bool IsFullRange () const
 A function to determine if an Colorspace has a full range.

Detailed 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.

Since
This enum is available since SDL 3.2.0.
Category:
Wrap state
See also
Colorspaces
ColorPrimaries
ColorRange
ColorType
MatrixCoefficients
TransferCharacteristics

Constructor & Destructor Documentation

◆ Colorspace()

SDL::Colorspace::Colorspace ( ColorspaceRaw cspace = {})
inlineconstexprnoexcept

Wraps Colorspace.

Parameters
cspacethe value to be wrapped

Member Function Documentation

◆ operator ColorspaceRaw()

SDL::Colorspace::operator ColorspaceRaw ( ) const
inlineconstexprnoexcept

Unwraps to the underlying Colorspace.

Returns
the underlying ColorspaceRaw.

The documentation for this class was generated from the following file: