imgLoadJxlIo function
Load a JXL image directly.
If you know you definitely have a JXL 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.
\param src an SDL_IOStream to load image data from. \returns SDL surface, or NULL on error.
\since This function is available since SDL_image 3.0.0.
\sa IMG_LoadAVIF_IO \sa IMG_LoadICO_IO \sa IMG_LoadCUR_IO \sa IMG_LoadBMP_IO \sa IMG_LoadGIF_IO \sa IMG_LoadJPG_IO \sa IMG_LoadLBM_IO \sa IMG_LoadPCX_IO \sa IMG_LoadPNG_IO \sa IMG_LoadPNM_IO \sa IMG_LoadSVG_IO \sa IMG_LoadQOI_IO \sa IMG_LoadTGA_IO \sa IMG_LoadTIF_IO \sa IMG_LoadXCF_IO \sa IMG_LoadXPM_IO \sa IMG_LoadXV_IO \sa IMG_LoadWEBP_IO
extern SDL_DECLSPEC SDL_Surface * SDLCALL IMG_LoadJXL_IO(SDL_IOStream *src)
Implementation
Pointer<SdlSurface> imgLoadJxlIo(Pointer<SdlIoStream> src) {
final imgLoadJxlIoLookupFunction = libSdl3Image.lookupFunction<
Pointer<SdlSurface> Function(Pointer<SdlIoStream> src),
Pointer<SdlSurface> Function(Pointer<SdlIoStream> src)>('IMG_LoadJXL_IO');
return imgLoadJxlIoLookupFunction(src);
}