Project

General

Profile

SO3Engine
stb_image.h File Reference

Go to the source code of this file.

Classes

struct  stbi_io_callbacks
 
struct  stbi__context
 
struct  stbi__result_info
 
struct  stbi__huffman
 
struct  stbi__jpeg
 
struct  stbi__resample
 
struct  stbi__zhuffman
 
struct  stbi__zbuf
 
struct  stbi__pngchunk
 
struct  stbi__png
 
struct  stbi__bmp_data
 
struct  stbi__pic_packet
 
struct  stbi__gif_lzw
 
struct  stbi__gif
 

Typedefs

typedef unsigned char stbi_uc
 
typedef unsigned short stbi_us
 
typedef unsigned short stbi__uint16
 
typedef signed short stbi__int16
 
typedef unsigned int stbi__uint32
 
typedef signed int stbi__int32
 
typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 :-1]
 
typedef stbi_uc *(* resample_row_func) (stbi_uc *out, stbi_uc *in0, stbi_uc *in1, int w, int hs)
 

Enumerations

enum  {
  STBI_default = 0 , STBI_grey = 1 , STBI_grey_alpha = 2 , STBI_rgb = 3 ,
  STBI_rgb_alpha = 4
}
 
enum  { STBI_ORDER_RGB , STBI_ORDER_BGR }
 
enum  { STBI__SCAN_load =0 , STBI__SCAN_type , STBI__SCAN_header }
 
enum  {
  STBI__F_none =0 , STBI__F_sub =1 , STBI__F_up =2 , STBI__F_avg =3 ,
  STBI__F_paeth =4 , STBI__F_avg_first , STBI__F_paeth_first
}
 

Functions

STBIDEF stbi_ucstbi_load_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF stbi_ucstbi_load_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF stbi_ucstbi_load (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF stbi_ucstbi_load_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF stbi_ucstbi_load_gif_from_memory (stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)
 
STBIDEF int stbi_convert_wchar_to_utf8 (char *buffer, size_t bufferlen, const wchar_t *input)
 
STBIDEF stbi_usstbi_load_16_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF stbi_usstbi_load_16_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF stbi_usstbi_load_16 (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF stbi_usstbi_load_from_file_16 (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF float * stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF float * stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF float * stbi_loadf (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF float * stbi_loadf_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels)
 
STBIDEF void stbi_hdr_to_ldr_gamma (float gamma)
 
STBIDEF void stbi_hdr_to_ldr_scale (float scale)
 
STBIDEF void stbi_ldr_to_hdr_gamma (float gamma)
 
STBIDEF void stbi_ldr_to_hdr_scale (float scale)
 
STBIDEF int stbi_is_hdr_from_callbacks (stbi_io_callbacks const *clbk, void *user)
 
STBIDEF int stbi_is_hdr_from_memory (stbi_uc const *buffer, int len)
 
STBIDEF int stbi_is_hdr (char const *filename)
 
STBIDEF int stbi_is_hdr_from_file (FILE *f)
 
STBIDEF const char * stbi_failure_reason (void)
 
STBIDEF void stbi_image_free (void *retval_from_stbi_load)
 
STBIDEF int stbi_info_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *comp)
 
STBIDEF int stbi_info_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp)
 
STBIDEF int stbi_is_16_bit_from_memory (stbi_uc const *buffer, int len)
 
STBIDEF int stbi_is_16_bit_from_callbacks (stbi_io_callbacks const *clbk, void *user)
 
STBIDEF int stbi_info (char const *filename, int *x, int *y, int *comp)
 
STBIDEF int stbi_info_from_file (FILE *f, int *x, int *y, int *comp)
 
STBIDEF int stbi_is_16_bit (char const *filename)
 
STBIDEF int stbi_is_16_bit_from_file (FILE *f)
 
STBIDEF void stbi_set_unpremultiply_on_load (int flag_true_if_should_unpremultiply)
 
STBIDEF void stbi_convert_iphone_png_to_rgb (int flag_true_if_should_convert)
 
STBIDEF void stbi_set_flip_vertically_on_load (int flag_true_if_should_flip)
 
STBIDEF char * stbi_zlib_decode_malloc_guesssize (const char *buffer, int len, int initial_size, int *outlen)
 
STBIDEF char * stbi_zlib_decode_malloc_guesssize_headerflag (const char *buffer, int len, int initial_size, int *outlen, int parse_header)
 
STBIDEF char * stbi_zlib_decode_malloc (const char *buffer, int len, int *outlen)
 
STBIDEF int stbi_zlib_decode_buffer (char *obuffer, int olen, const char *ibuffer, int ilen)
 
STBIDEF char * stbi_zlib_decode_noheader_malloc (const char *buffer, int len, int *outlen)
 
STBIDEF int stbi_zlib_decode_noheader_buffer (char *obuffer, int olen, const char *ibuffer, int ilen)
 
STBI_EXTERN __declspec (dllimport) int __stdcall MultiByteToWideChar(unsigned int cp
 

Variables

STBI_EXTERN unsigned long flags
 
STBI_EXTERN unsigned long const char * str
 
STBI_EXTERN unsigned long const char int cbmb
 
STBI_EXTERN unsigned long const char int wchar_t * widestr
 
STBI_EXTERN unsigned long const char int wchar_t int cchwide
 
STBI_EXTERN unsigned long const wchar_t int char int const char * defchar
 
STBI_EXTERN unsigned long const wchar_t int char int const char int * used_default
 

Typedef Documentation

◆ resample_row_func

typedef stbi_uc *(* resample_row_func) (stbi_uc *out, stbi_uc *in0, stbi_uc *in1, int w, int hs)

Definition at line 3226 of file stb_image.h.

◆ stbi__int16

typedef int16_t stbi__int16

Definition at line 569 of file stb_image.h.

◆ stbi__int32

typedef int32_t stbi__int32

Definition at line 571 of file stb_image.h.

◆ stbi__uint16

typedef uint16_t stbi__uint16

Definition at line 568 of file stb_image.h.

◆ stbi__uint32

typedef uint32_t stbi__uint32

Definition at line 570 of file stb_image.h.

◆ stbi_uc

typedef unsigned char stbi_uc

Definition at line 337 of file stb_image.h.

◆ stbi_us

typedef unsigned short stbi_us

Definition at line 338 of file stb_image.h.

◆ validate_uint32

typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 :-1]

Definition at line 581 of file stb_image.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
STBI_default 
STBI_grey 
STBI_grey_alpha 
STBI_rgb 
STBI_rgb_alpha 

Definition at line 326 of file stb_image.h.

◆ anonymous enum

anonymous enum
Enumerator
STBI_ORDER_RGB 
STBI_ORDER_BGR 

Definition at line 806 of file stb_image.h.

◆ anonymous enum

anonymous enum
Enumerator
STBI__SCAN_load 
STBI__SCAN_type 
STBI__SCAN_header 

Definition at line 1446 of file stb_image.h.

◆ anonymous enum

anonymous enum
Enumerator
STBI__F_none 
STBI__F_sub 
STBI__F_up 
STBI__F_avg 
STBI__F_paeth 
STBI__F_avg_first 
STBI__F_paeth_first 

Definition at line 4363 of file stb_image.h.

Function Documentation

◆ __declspec()

STBIW_EXTERN __declspec ( dllimport  )

◆ stbi_convert_iphone_png_to_rgb()

STBIDEF void stbi_convert_iphone_png_to_rgb ( int  flag_true_if_should_convert)

Definition at line 4748 of file stb_image.h.

◆ stbi_convert_wchar_to_utf8()

STBIDEF int stbi_convert_wchar_to_utf8 ( char *  buffer,
size_t  bufferlen,
const wchar_t *  input 
)

Definition at line 1187 of file stb_image.h.

◆ stbi_failure_reason()

STBIDEF const char * stbi_failure_reason ( void  )

Definition at line 879 of file stb_image.h.

◆ stbi_hdr_to_ldr_gamma()

STBIDEF void stbi_hdr_to_ldr_gamma ( float  gamma)

Definition at line 1437 of file stb_image.h.

◆ stbi_hdr_to_ldr_scale()

STBIDEF void stbi_hdr_to_ldr_scale ( float  scale)

Definition at line 1438 of file stb_image.h.

◆ stbi_image_free()

STBIDEF void stbi_image_free ( void *  retval_from_stbi_load)

Definition at line 985 of file stb_image.h.

◆ stbi_info()

STBIDEF int stbi_info ( char const *  filename,
int *  x,
int *  y,
int *  comp 
)

Definition at line 7262 of file stb_image.h.

◆ stbi_info_from_callbacks()

STBIDEF int stbi_info_from_callbacks ( stbi_io_callbacks const *  clbk,
void *  user,
int *  x,
int *  y,
int *  comp 
)

Definition at line 7312 of file stb_image.h.

◆ stbi_info_from_file()

STBIDEF int stbi_info_from_file ( FILE *  f,
int *  x,
int *  y,
int *  comp 
)

Definition at line 7272 of file stb_image.h.

◆ stbi_info_from_memory()

STBIDEF int stbi_info_from_memory ( stbi_uc const *  buffer,
int  len,
int *  x,
int *  y,
int *  comp 
)

Definition at line 7305 of file stb_image.h.

◆ stbi_is_16_bit()

STBIDEF int stbi_is_16_bit ( char const *  filename)

Definition at line 7283 of file stb_image.h.

◆ stbi_is_16_bit_from_callbacks()

STBIDEF int stbi_is_16_bit_from_callbacks ( stbi_io_callbacks const *  clbk,
void *  user 
)

Definition at line 7326 of file stb_image.h.

◆ stbi_is_16_bit_from_file()

STBIDEF int stbi_is_16_bit_from_file ( FILE *  f)

Definition at line 7293 of file stb_image.h.

◆ stbi_is_16_bit_from_memory()

STBIDEF int stbi_is_16_bit_from_memory ( stbi_uc const *  buffer,
int  len 
)

Definition at line 7319 of file stb_image.h.

◆ stbi_is_hdr()

STBIDEF int stbi_is_hdr ( char const *  filename)

Definition at line 1387 of file stb_image.h.

◆ stbi_is_hdr_from_callbacks()

STBIDEF int stbi_is_hdr_from_callbacks ( stbi_io_callbacks const *  clbk,
void *  user 
)

Definition at line 1415 of file stb_image.h.

◆ stbi_is_hdr_from_file()

STBIDEF int stbi_is_hdr_from_file ( FILE *  f)

Definition at line 1398 of file stb_image.h.

◆ stbi_is_hdr_from_memory()

STBIDEF int stbi_is_hdr_from_memory ( stbi_uc const *  buffer,
int  len 
)

Definition at line 1373 of file stb_image.h.

◆ stbi_ldr_to_hdr_gamma()

STBIDEF void stbi_ldr_to_hdr_gamma ( float  gamma)

Definition at line 1431 of file stb_image.h.

◆ stbi_ldr_to_hdr_scale()

STBIDEF void stbi_ldr_to_hdr_scale ( float  scale)

Definition at line 1432 of file stb_image.h.

◆ stbi_load()

STBIDEF stbi_uc * stbi_load ( char const *  filename,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1222 of file stb_image.h.

◆ stbi_load_16()

STBIDEF stbi_us * stbi_load_16 ( char const *  filename,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1258 of file stb_image.h.

◆ stbi_load_16_from_callbacks()

STBIDEF stbi_us * stbi_load_16_from_callbacks ( stbi_io_callbacks const *  clbk,
void *  user,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1278 of file stb_image.h.

◆ stbi_load_16_from_memory()

STBIDEF stbi_us * stbi_load_16_from_memory ( stbi_uc const *  buffer,
int  len,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1271 of file stb_image.h.

◆ stbi_load_from_callbacks()

STBIDEF stbi_uc * stbi_load_from_callbacks ( stbi_io_callbacks const *  clbk,
void *  user,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1292 of file stb_image.h.

◆ stbi_load_from_file()

STBIDEF stbi_uc * stbi_load_from_file ( FILE *  f,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1232 of file stb_image.h.

◆ stbi_load_from_file_16()

STBIDEF stbi__uint16 * stbi_load_from_file_16 ( FILE *  f,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1245 of file stb_image.h.

◆ stbi_load_from_memory()

STBIDEF stbi_uc * stbi_load_from_memory ( stbi_uc const *  buffer,
int  len,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1285 of file stb_image.h.

◆ stbi_load_gif_from_memory()

STBIDEF stbi_uc * stbi_load_gif_from_memory ( stbi_uc const *  buffer,
int  len,
int **  delays,
int *  x,
int *  y,
int *  z,
int *  comp,
int  req_comp 
)

Definition at line 1300 of file stb_image.h.

◆ stbi_loadf()

STBIDEF float * stbi_loadf ( char const *  filename,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1349 of file stb_image.h.

◆ stbi_loadf_from_callbacks()

STBIDEF float * stbi_loadf_from_callbacks ( stbi_io_callbacks const *  clbk,
void *  user,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1341 of file stb_image.h.

◆ stbi_loadf_from_file()

STBIDEF float * stbi_loadf_from_file ( FILE *  f,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1359 of file stb_image.h.

◆ stbi_loadf_from_memory()

STBIDEF float * stbi_loadf_from_memory ( stbi_uc const *  buffer,
int  len,
int *  x,
int *  y,
int *  channels_in_file,
int  desired_channels 
)

Definition at line 1334 of file stb_image.h.

◆ stbi_set_flip_vertically_on_load()

STBIDEF void stbi_set_flip_vertically_on_load ( int  flag_true_if_should_flip)

Definition at line 1000 of file stb_image.h.

◆ stbi_set_unpremultiply_on_load()

STBIDEF void stbi_set_unpremultiply_on_load ( int  flag_true_if_should_unpremultiply)

Definition at line 4743 of file stb_image.h.

◆ stbi_zlib_decode_buffer()

STBIDEF int stbi_zlib_decode_buffer ( char *  obuffer,
int  olen,
const char *  ibuffer,
int  ilen 
)

Definition at line 4282 of file stb_image.h.

◆ stbi_zlib_decode_malloc()

STBIDEF char * stbi_zlib_decode_malloc ( const char *  buffer,
int  len,
int *  outlen 
)

Definition at line 4261 of file stb_image.h.

◆ stbi_zlib_decode_malloc_guesssize()

STBIDEF char * stbi_zlib_decode_malloc_guesssize ( const char *  buffer,
int  len,
int  initial_size,
int *  outlen 
)

Definition at line 4245 of file stb_image.h.

◆ stbi_zlib_decode_malloc_guesssize_headerflag()

STBIDEF char * stbi_zlib_decode_malloc_guesssize_headerflag ( const char *  buffer,
int  len,
int  initial_size,
int *  outlen,
int  parse_header 
)

Definition at line 4266 of file stb_image.h.

◆ stbi_zlib_decode_noheader_buffer()

STBIDEF int stbi_zlib_decode_noheader_buffer ( char *  obuffer,
int  olen,
const char *  ibuffer,
int  ilen 
)

Definition at line 4309 of file stb_image.h.

◆ stbi_zlib_decode_noheader_malloc()

STBIDEF char * stbi_zlib_decode_noheader_malloc ( const char *  buffer,
int  len,
int *  outlen 
)

Definition at line 4293 of file stb_image.h.

Variable Documentation

◆ cbmb

STBIW_EXTERN unsigned long const wchar_t int char int cbmb

Definition at line 1182 of file stb_image.h.

◆ cchwide

STBIW_EXTERN unsigned long const wchar_t int cchwide

Definition at line 1182 of file stb_image.h.

◆ defchar

STBI_EXTERN unsigned long const wchar_t int char int const char* defchar

Definition at line 1183 of file stb_image.h.

◆ flags

STBIW_EXTERN unsigned long flags

Definition at line 1182 of file stb_image.h.

◆ str

STBIW_EXTERN unsigned long const wchar_t int char * str

Definition at line 1182 of file stb_image.h.

◆ used_default

STBI_EXTERN unsigned long const wchar_t int char int const char int* used_default

Definition at line 1183 of file stb_image.h.

◆ widestr

STBIW_EXTERN unsigned long const wchar_t * widestr

Definition at line 1182 of file stb_image.h.