mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-02 16:08:30 +00:00
Move default colorspace aliases into enum
This commit is contained in:

committed by
Sam Lantinga

parent
0685b96469
commit
043c876a15
@@ -669,7 +669,7 @@ typedef enum SDL_Colorspace
|
||||
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
||||
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_COLOR_RANGE_FULL,
|
||||
SDL_COLOR_PRIMARIES_BT2020,
|
||||
@@ -677,15 +677,10 @@ typedef enum SDL_Colorspace
|
||||
SDL_MATRIX_COEFFICIENTS_BT2020_NCL,
|
||||
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;
|
||||
|
||||
|
||||
/* 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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user