IMG_LoadJPG_IO3
Load a jpg image directly.
Usage
#include "SDL3_image/SDL_image.h"
SDL_Surface * IMG_LoadJPG_IO(SDL_IOStream *src);
Header file
Defined in SDL3_image/SDL_image.h
Overview
If you know you definitely have a JPG image, you can call this function, which will skip SDL_image's file format detection routines. Generally it's better to use the abstract interfaces; also, there is only an SDL_IOStream interface available here.
Function parameters
- src
-
an SDL_IOStream to load image data from.
Return value
Returns SDL surface, or NULL on error.