IMG_LoadAVIF_IO(3)

okay bestie, welcome to the IMG_LoadAVIF_IO(3) manual page β€” she's part of the SDL_image3 FUNCTIONS crew, and she is literally here to help you load a AVIF image directly πŸ’…


πŸŽ€ NAME πŸŽ€

IMG_LoadAVIF_IO β€” load a AVIF image directly. periodt πŸ’–


✨ SYNOPSIS ✨

#include <SDL3_image/SDL_image.h>

SDL_Surface * IMG_LoadAVIF_IO(SDL_IOStream *src);

πŸ’… DESCRIPTION πŸ’…

If you know you definitely have a AVIF image, you can call this function, and she will skip SDL_image's file format detection routines entirely. No cap, that's the whole move ✨

Ngl, generally it's better to use the abstract interfaces β€” and heads up, there is only an SDL_IOStream interface available here 🫢

🌸 FUNCTION PARAMETERS 🌸

  • src β€” an SDL_IOStream to load image data from. That's the source, bestie πŸŽ€

πŸ¦‹ RETURN VALUE πŸ¦‹

Returns an SDL surface, or NULL on error 😭


πŸ”₯ AVAILABILITY πŸ”₯

This function is available since SDL_image 3.0.0 β€” yes queen, she's been around since 3.0.0 πŸ‘‘


🌈 SEE ALSO 🌈


byeee ✨ this cutie came from SDL_image, version 3.4.4, and this page is IMG_LoadAVIF_IO(3) β€” mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from