IMG_CREATEANIMATIONDECODER(3)
π IMG_CreateAnimationDecoder π
okay bestie, welcome to the SDL_image3 girlies' section of the manual, where we're talking about IMG_CreateAnimationDecoder(3) β yes it's a mouthful, no you don't have to say it out loud, just vibe with me here β¨
β¨ NAME β¨
IMG_CreateAnimationDecoder β makes you a decoder so you can read a whole lil series of images out of a file π
πΈ SYNOPSIS πΈ
#include <SDL3_image/SDL_image.h>
IMG_AnimationDecoder * IMG_CreateAnimationDecoder(const char *file);
π¦ DESCRIPTION π¦
So here's the tea: this is the function that hands you back an animation decoder, which is exactly what it sounds like β a thing that reads a series of images from one file, i.e. an animation, i.e. the moving pictures, i.e. the main character energy π«Ά
These animation types are currently supported, no cap:
- ANI
- APNG
- AVIFS
- GIF
- WEBP
and the way it figures out which one you've got is by peeking at the file extension. so like, "file.webp" is gonna get decoded using WEBP. that's it, that's the whole vibe check π
π FUNCTION PARAMETERS π
fileβ the file that's holding your series of images. your whole animation. the source of the drama π
β RETURN VALUE β
You get back a brand new IMG_AnimationDecoder β¨ β¦or NULL if it flopped π and if it flopped, go call SDL_GetError() for the deets, because that's where the real info lives.
π AVAILABILITY π
This function has been available since SDL_image 3.4.0. periodt.
π§ SEE ALSO π§
IMG_CreateAnimationDecoder_IO(3)IMG_CreateAnimationDecoderWithProperties(3)IMG_GetAnimationDecoderFrame(3)IMG_ResetAnimationDecoder(3)IMG_CloseAnimationDecoder(3)
and that's the page bestie!! it's from SDL_image 3.4.8 (the SDL_image manual, mwah) and you're literally so welcome, go decode something iconic ππΈπ
π¦ 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