IMG_LoadQOI_IO(3)
π IMG_LoadQOI_IO(3) β the QOI speedrun, bestie π
okay so this is from SDL_image3 FUNCTIONS β yes, the IMG_LoadQOI_IO(3) one β and itβs lowkey iconic: your direct little shortcut for loading a QOI image, no detective work required. β¨
πΈ NAME πΈ
IMG_LoadQOI_IO β load a QOI image directly. fr fr. π«Ά
π¦ SYNOPSIS π¦
#include <SDL3_image/SDL_image.h>
SDL_Surface * IMG_LoadQOI_IO(SDL_IOStream *src);
β¨ DESCRIPTION β¨
So if you definitely know you have a QOI image, you can call this function, and it will skip SDL_image's file format detection routines. Itβs giving βI already clocked the vibe, no need to sniff every format.β π
Generally itβs better to use the abstract interfaces; also, there is only an SDL_IOStream interface available here. Noted, bestie. π
π FUNCTION PARAMETERS π
srcβ anSDL_IOStreamto load image data from. π«Ά
π RETURN VALUE π
Returns SDL surface, or NULL on error. Thatβs the whole mood β if itβs NULL, it is not slaying. π
π AVAILABILITY π
This function is available since SDL_image 3.0.0. Periodt. β
π SEE ALSO π
Go give these other loaders some main character energy too:
IMG_LoadAVIF_IO(3)IMG_LoadBMP_IO(3)IMG_LoadCUR_IO(3)IMG_LoadGIF_IO(3)IMG_LoadICO_IO(3)IMG_LoadJPG_IO(3)IMG_LoadJXL_IO(3)IMG_LoadLBM_IO(3)IMG_LoadPCX_IO(3)IMG_LoadPNG_IO(3)IMG_LoadPNM_IO(3)IMG_LoadSVG_IO(3)IMG_LoadTGA_IO(3)IMG_LoadTIF_IO(3)IMG_LoadWEBP_IO(3)IMG_LoadXCF_IO(3)IMG_LoadXPM_IO(3)IMG_LoadXV_IO(3)
Thatβs the tea from SDL_image 3.4.4 β source/version: SDL_image 3.4.4, and no explicit date is printed in the page footer I was handed, so consider this your cute little sign-off. IMG_LoadQOI_IO(3) and out. π
π
π¦ where this page comes from
- ubuntu stonking: libsdl3-image-doc 3.4.4+ds-2 Β· zlib/libpng AND HPND-like AND zlib-like-permissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms