IMG_LoadAVIFAnimation_IO(3)
π IMG_LoadAVIFAnimation_IO π
okay bestie, so this one lives in the SDL_image3 FUNCTIONS squad, and it's literally the "I already KNOW what this file is" button. Let's get into it π¦
β¨ NAME β¨
IMG_LoadAVIFAnimation_IO β load an AVIF animation directly from an SDL_IOStream. no detours, no guessing, just vibes β¨
πΈ SYNOPSIS πΈ
#include <SDL3_image/SDL_image.h>
IMG_Animation* IMG_LoadAVIFAnimation_IO(SDL_IOStream *src);
π DESCRIPTION π
so like. if you know β like, you are 100% certain, no cap β that you definitely have an AVIF animation, you can call this function and it will skip SDL_image's file format detection routines entirely. it's giving "I don't need the vibe check, I already know who you are" π
but ngl, generally it's better to use the abstract interfaces instead. also, heads up: there is only an SDL_IOStream interface available here. that's it. that's the whole menu π«Ά
and when you're done with the returned animation? the app should dispose of it with a call to IMG_FreeAnimation(). don't be a litterbug, bestie, free your animation πβ¨
π§ FUNCTION PARAMETERS π§
srcβ anSDL_IOStreamthat data will be read from. that's the source of the whole situation π
β RETURN VALUE β
returns a new IMG_Animation, or NULL on error. so if you get NULL... yeah. something went wrong. π
π AVAILABILITY π
this function is available since SDL_image 3.4.0. periodt π
π SEE ALSO π
IMG_isAVIF(3)IMG_LoadAnimation(3)IMG_LoadAnimation_IO(3)IMG_LoadAnimationTyped_IO(3)IMG_LoadANIAnimation_IO(3)IMG_LoadAPNGAnimation_IO(3)IMG_LoadGIFAnimation_IO(3)IMG_LoadWEBPAnimation_IO(3)IMG_FreeAnimation(3)
and that's the whole page, bestie π₯° this one came to you courtesy of SDL_image, version SDL_image 3.4.8 β go forth and load your AVIF animations, you absolute icon, iykyk πβ¨ππ¦
π¦ where this page comes from
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 43: SDL3_image-devel 3.4.8-1.fc43 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- fedora 44: SDL3_image-devel 3.4.8-1.fc44 Β· Zlib AND (HPND-Pbmplus AND Zlib) AND MIT AND (MIT OR Unlicense) AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms