SDL_ISCOLORSPACE_MATRIX_BT709(3)
π SDL_ISCOLORSPACE_MATRIX_BT709 π
okay bestie, so this is a macro from SDL3, specifically it lives in the SDL_pixels.h zone, and it's literally the vibe-check for whether an SDL_Colorspace is using BT709 matrix coefficients. That's it. That's the whole job. It's giving tiny-but-mighty. β¨
πΈ NAME πΈ
SDL_ISCOLORSPACE_MATRIX_BT709 β a macro to determine if an SDL_Colorspace uses BT709 matrix coefficients. no cap, that's what it does. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_pixels.h>
#define SDL_ISCOLORSPACE_MATRIX_BT709(cspace) (SDL_COLORSPACEMATRIX(cspace) == SDL_MATRIX_COEFFICIENTS_BT709)
look at her. one line. iconic. π
π¦ MACRO PARAMETERS π¦
cspaceβ anSDL_Colorspaceto check. that's the one you're interrogating. be nice to it. π«Ά
π RETURN VALUE π
Returns true if it's BT709, false otherwise. binary queen. either it ate or it didn't. π
π₯ THREAD SAFETY π₯
It is safe to call this macro from any thread. go wild, no locks needed, she's chill like that. π
β AVAILABILITY β
This macro is available since SDL 3.2.0. so if you're on something older... bestie. upgrade. π
Simple Directmedia Layer β this is the SDL 3.4.18 era, and that's the whole sign-off, mwah π hope your colorspaces are always exactly what you think they are, ily, 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