SDL_CreateYUVOverlay(3)
π SDL_CreateYUVOverlay(3) π
okay bestie, this is a page from the SDL API Reference, and it's all about making a YUV video overlay. yes, the naming is a whole thing, we'll get to that. stay with me π«Ά
β¨ NAME β¨
SDL_CreateYUVOverlay β literally just: create a YUV video overlay. that's it, that's the job π
πΈ SYNOPSIS πΈ
#include "SDL.h"
SDL_Overlay *SDL_CreateYUVOverlay(int width, int height, Uint32 format,
SDL_Surface *display);
π¦ DESCRIPTION π¦
so SDL_CreateYUVOverlay makes you a YUV overlay, and you get to pick the width, the height, and the format β head over to SDL_Overlay if you wanna see the list of formats that are actually available, because there IS a list and you should check it π β and it does all this for the display you hand it. what comes back is a SDL_Overlay structure. slay. β¨
okay so here's the tea, and it's important: the word "overlay" is a misnomer. like, a lie, lowkey. because unless the overlay gets created in hardware, the contents of the display surface underneath the area where the overlay is shown are gonna get overwritten when the overlay is displayed. so yeah. not so much "overlaying" as "replacing", bestie. no cap π
π SEE ALSO π
SDL_OverlaySDL_DisplayYUVOverlaySDL_FreeYUVOverlay
and that's the whole page, periodt π this lil cutie is from SDL, dated Tue 11 Sep 2001, 23:01 β iconic vintage energy fr fr, she's been serving since 2001 and she still eats ππ
π¦ where this page comes from
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms