logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

IMG_LoadWEBP_IO - Load a WEBP image directly.

Availability

       This function is available since SDL_image 3.0.0.

Description

       If  you  know  you  definitely have a WEBP 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.

Header File

       Defined in SDL3_image/SDL_image.h

Name

       IMG_LoadWEBP_IO - Load a WEBP image directly.

Return Value

       Returns SDL surface, or NULL on error.

See Also

(3), IMG_LoadAVIF_IO(3), (3),  IMG_LoadICO_IO(3),  (3),  IMG_LoadCUR_IO(3),  (3),  IMG_LoadBMP_IO(3),
       (3), IMG_LoadGIF_IO(3), (3), IMG_LoadJPG_IO(3), (3), IMG_LoadJXL_IO(3), (3), IMG_LoadLBM_IO(3), (3),
       IMG_LoadPCX_IO(3),  (3),  IMG_LoadPNG_IO(3),  (3),  IMG_LoadPNM_IO(3),  (3),  IMG_LoadSVG_IO(3), (3),
       IMG_LoadQOI_IO(3), (3),  IMG_LoadTGA_IO(3),  (3),  IMG_LoadTIF_IO(3),  (3),  IMG_LoadXCF_IO(3),  (3),
       IMG_LoadXPM_IO(3), (3), IMG_LoadXV_IO(3)

SDL_image                                        SDL_image 3.2.4                              IMG_LoadWEBP_IO(3)

Synopsis

#include"SDL3_image/SDL_image.h"SDL_Surface*IMG_LoadWEBP_IO(SDL_IOStream*src);

See Also