IMG_LoadWEBPAnimation_IO(3)
π NAME π
IMG_LoadWEBPAnimation_IO β Load a WEBP animation directly. periodt. This is the IMG_LoadWEBPAnimation_IO(3) page from the SDL_image3 FUNCTIONS manual, and itβs giving βI know for a fact this is WEBPβ energy, bestie. π
β¨ SYNOPSIS β¨
okay so hereβs the exact include + signature, no cap:
#include <SDL3_image/SDL_image.h>
IMG_Animation * IMG_LoadWEBPAnimation_IO(SDL_IOStream *src);
π¦ DESCRIPTION π¦
If you know you definitely have a WEBP image, you can call this function, and it will skip SDL_image's file format detection routines β like, no little format-sniffing side quest, it just goes straight in. π
That said, the manual says it's generally better to use the abstract interfaces. Also, there is only an SDL_IOStream interface available here, bestie. That's the whole situation. π
π FUNCTION PARAMETERS π
srcβ anSDL_IOStreamthat data will be read from. That's the source stream, slay.
π₯ RETURN VALUE π₯
Returns a new IMG_Animation, or NULL on error. So if you get NULL, that's an error, no cap. π
π AVAILABILITY π
This function is available since SDL_image 3.0.0. iconic behavior. β¨
π SEE ALSO π
go peek at these besties:
IMG_isWEBP(3)IMG_LoadAnimation(3)IMG_LoadAnimation_IO(3)IMG_LoadAnimationTyped_IO(3)IMG_LoadANIAnimation_IO(3)IMG_LoadAPNGAnimation_IO(3)IMG_LoadAVIFAnimation_IO(3)IMG_LoadGIFAnimation_IO(3)IMG_FreeAnimation(3)
okay thatβs the whole page, bestie! π«Ά source/version check: SDL_image, SDL_image 3.4.4. The footer has no date on it, so Iβm not inventing one β periodt. bye! π
π¦ 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