logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_DEFINE_PIXELFOURCC - A macro for defining custom FourCC pixel formats.

Availability

       This macro is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                          SDL_DEFINE_PIXELFOURCC(3)

Description

       For example, defining SDL_PIXELFORMAT_YV12
        looks like this:

              SDL_DEFINE_PIXELFOURCC('Y', 'V', '1', '2')

Header File

       Defined in SDL3/SDL_pixels.h

Name

       SDL_DEFINE_PIXELFOURCC - A macro for defining custom FourCC pixel formats.

Return Value

       Returns a format value in the style of SDL_PixelFormat .

Synopsis

#include"SDL3/SDL.h"#defineSDL_DEFINE_PIXELFOURCC(A,B,C,D)SDL_FOURCC(A,B,C,D)

Thread Safety

       It is safe to call this macro from any thread.

See Also