IMG_LoadAVIFAnimation_IO(3)

πŸ“¦
version 3.4.8 Β· 5 versions
, in fedora 43, fedora 44

πŸ’– 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 β€” an SDL_IOStream that 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 🌈


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