mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
Move default colorspace aliases into enum
This commit is contained in:
parent
0685b96469
commit
043c876a15
1 changed files with 3 additions and 8 deletions
|
@ -669,7 +669,7 @@ typedef enum SDL_Colorspace
|
||||||
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
SDL_CHROMA_LOCATION_LEFT), */
|
||||||
|
|
||||||
SDL_COLORSPACE_BT2020_FULL = 0x22102609u /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 */
|
SDL_COLORSPACE_BT2020_FULL = 0x22102609u, /**< Equivalent to DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 */
|
||||||
/* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
/* SDL_DEFINE_COLORSPACE(SDL_COLOR_TYPE_YCBCR,
|
||||||
SDL_COLOR_RANGE_FULL,
|
SDL_COLOR_RANGE_FULL,
|
||||||
SDL_COLOR_PRIMARIES_BT2020,
|
SDL_COLOR_PRIMARIES_BT2020,
|
||||||
|
@ -677,15 +677,10 @@ typedef enum SDL_Colorspace
|
||||||
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
||||||
SDL_CHROMA_LOCATION_LEFT), */
|
SDL_CHROMA_LOCATION_LEFT), */
|
||||||
|
|
||||||
|
SDL_COLORSPACE_RGB_DEFAULT = SDL_COLORSPACE_SRGB, /**< The default colorspace for RGB surfaces if no colorspace is specified */
|
||||||
|
SDL_COLORSPACE_YUV_DEFAULT = SDL_COLORSPACE_JPEG /**< The default colorspace for YUV surfaces if no colorspace is specified */
|
||||||
} SDL_Colorspace;
|
} SDL_Colorspace;
|
||||||
|
|
||||||
|
|
||||||
/* The default colorspace for RGB surfaces if no colorspace is specified */
|
|
||||||
#define SDL_COLORSPACE_RGB_DEFAULT SDL_COLORSPACE_SRGB
|
|
||||||
|
|
||||||
/* The default colorspace for YUV surfaces if no colorspace is specified */
|
|
||||||
#define SDL_COLORSPACE_YUV_DEFAULT SDL_COLORSPACE_JPEG
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A structure that represents a color as RGBA components.
|
* A structure that represents a color as RGBA components.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue