IMG_LoadJXL_IO(3)

πŸ’– NAME πŸ’–

okay so bestie, this is IMG_LoadJXL_IO(3), from the SDL_image3 FUNCTIONS manual β€” and the name says it all: load a JXL image directly. Periodt. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3_image/SDL_image.h>

SDL_Surface * IMG_LoadJXL_IO(SDL_IOStream *src);

πŸŽ€ DESCRIPTION πŸŽ€

If you know you definitely have a JXL image β€” like, no vibe check needed β€” you can call this function, and it will skip SDL_image's file format detection routines entirely. The way it just jumps straight in? Iconic. πŸ’…

Generally it's better to use the abstract interfaces, though. Also lowkey important: there is only an SDL_IOStream interface available here. No other flavor, iykyk. 🫢

🌸 FUNCTION PARAMETERS 🌸

  • src β€” an SDL_IOStream to load image data from. feed me the image data bestie πŸ“

⭐ RETURN VALUE ⭐

Returns an SDL_Surface, or NULL on error. Not me manifesting a non-NULL return for you πŸ™ˆβœ¨

πŸ‘‘ AVAILABILITY πŸ‘‘

This function is available since SDL_image 3.0.0. bestie, it's been here. πŸ’œ

πŸ’… SEE ALSO πŸ’…


that's the whole page, bestie β€” source: SDL_image, version: 3.4.4, and the date is not listed on this page 🫢✨

πŸ“¦ where this page comes from