IMG_GETANIMATIONDECODERSTATUS(3)

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

πŸ’– IMG_GetAnimationDecoderStatus β€” a lil peek inside your decoder πŸ’–

okay bestie, so this one's from the SDL_image3 FUNCTIONS corner of the SDL_image universe (section 3 of the manual, iykyk), and it's literally the vibe check for your animation decoder. you've got a decoder, it's doing decoder things, and you just wanna know what state is it in right now?? that's the whole job. that's it. she's simple, she's iconic, she serves. πŸŽ€


✨ NAME ✨

IMG_GetAnimationDecoderStatus β€” get the decoder status, aka the current state of the decoder. that's the tea. πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3_image/SDL_image.h>

IMG_AnimationDecoderStatus IMG_GetAnimationDecoderStatus(IMG_AnimationDecoder *decoder);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • decoder β€” the decoder you want the status of. the one you're side-eyeing. the one you're asking "girl, what's going on with you" 🫢

⭐ RETURN VALUE ⭐

she hands you back the status of the underlying decoder πŸ’–

BUT β€” and this is the important part, no cap β€” if the decoder you passed in is invalid, you get IMG_DECODER_STATUS_INVALID back. so like, if you fed her garbage, she tells you it's garbage. respect. 😭


🌈 AVAILABILITY 🌈

this one's been around since SDL_image 3.4.0. vintage-ish, but make it fresh. ✨


πŸ‘‘ SEE ALSO πŸ‘‘


bestie reminder: check that decoder pointer before you go asking for statuses, or you're gonna meet IMG_DECODER_STATUS_INVALID face to face πŸ™ˆ

and that's the whole page, periodt πŸ’œ stay slay, keep decoding, and go read IMG_GetAnimationDecoderFrame(3) next because she's the main character energy follow-up 🌸

later babes β€” this was the SDL_image page for SDL_image 3.4.8 πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from