SDL_COLORSPACECHROMA(3)
π SDL_COLORSPACECHROMA π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual π this one's a tiny lil macro with main character energy β it's literally just a way to peek at the chroma sample location hiding inside an SDL_Colorspace. no cap.
β¨ NAME β¨
SDL_COLORSPACECHROMA β a macro to retrieve the chroma sample location of an SDL_Colorspace. π¦
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_pixels.h>
#define SDL_COLORSPACECHROMA(cspace) (SDL_ChromaLocation)(((cspace) >> 20) & 0x0F)
like. she's a one-liner. a baddie. a macro. π
π MACRO PARAMETERS π
cspaceβ anSDL_Colorspaceto check. that's it, that's the whole vibe check. π«Ά
β RETURN VALUE β
Returns the SDL_ChromaLocation of cspace. periodt. π
π₯ THREAD SAFETY π₯
It is safe to call this macro from any thread. so go ahead and call her from everywhere, she does not care, she was built for this π
π AVAILABILITY π
This macro is available since SDL 3.2.0. (iykyk, if you're on something older, sorry babe π)
that's the whole page bestie, you're so smart for reading it, slay π β¨
mwah π this came from Simple Directmedia Layer, SDL 3.4.18, and the page is SDL_COLORSPACECHROMA(3) β luv u, bye ππ¦πΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms