SO3Engine
Classes | Typedefs | Functions | Variables
stb_image_write.h File Reference

Go to the source code of this file.

Classes

struct  stbi__write_context
 

Typedefs

typedef void stbi_write_func(void *context, void *data, int size)
 
typedef unsigned int stbiw_uint32
 
typedef int stb_image_write_test[sizeof(stbiw_uint32)==4 ? 1 :-1]
 

Functions

STBIWDEF int stbi_write_png (char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes)
 
STBIWDEF int stbi_write_bmp (char const *filename, int w, int h, int comp, const void *data)
 
STBIWDEF int stbi_write_tga (char const *filename, int w, int h, int comp, const void *data)
 
STBIWDEF int stbi_write_hdr (char const *filename, int w, int h, int comp, const float *data)
 
STBIWDEF int stbi_write_jpg (char const *filename, int x, int y, int comp, const void *data, int quality)
 
STBIWDEF int stbiw_convert_wchar_to_utf8 (char *buffer, size_t bufferlen, const wchar_t *input)
 
STBIWDEF int stbi_write_png_to_func (stbi_write_func *func, void *context, int w, int h, int comp, const void *data, int stride_in_bytes)
 
STBIWDEF int stbi_write_bmp_to_func (stbi_write_func *func, void *context, int w, int h, int comp, const void *data)
 
STBIWDEF int stbi_write_tga_to_func (stbi_write_func *func, void *context, int w, int h, int comp, const void *data)
 
STBIWDEF int stbi_write_hdr_to_func (stbi_write_func *func, void *context, int w, int h, int comp, const float *data)
 
STBIWDEF int stbi_write_jpg_to_func (stbi_write_func *func, void *context, int x, int y, int comp, const void *data, int quality)
 
STBIWDEF void stbi_flip_vertically_on_write (int flip_boolean)
 
STBIW_EXTERN __declspec (dllimport) int __stdcall MultiByteToWideChar(unsigned int cp
 
STBIWDEF unsigned char * stbi_zlib_compress (unsigned char *data, int data_len, int *out_len, int quality)
 
STBIWDEF unsigned char * stbi_write_png_to_mem (const unsigned char *pixels, int stride_bytes, int x, int y, int n, int *out_len)
 

Variables

int stbi_write_tga_with_rle = 1
 
int stbi_write_png_compression_level = 8
 
int stbi_write_force_png_filter = -1
 
STBIW_EXTERN unsigned long flags
 
STBIW_EXTERN unsigned long const char * str
 
STBIW_EXTERN unsigned long const char int cbmb
 
STBIW_EXTERN unsigned long const char int wchar_t * widestr
 
STBIW_EXTERN unsigned long const char int wchar_t int cchwide
 
STBIW_EXTERN unsigned long const wchar_t int char int const char * defchar
 
STBIW_EXTERN unsigned long const wchar_t int char int const char int * used_default
 

Typedef Documentation

◆ stb_image_write_test

typedef int stb_image_write_test[sizeof(stbiw_uint32)==4 ? 1 :-1]

Definition at line 344 of file stb_image_write.h.

◆ stbi_write_func

typedef void stbi_write_func(void *context, void *data, int size)

Definition at line 186 of file stb_image_write.h.

◆ stbiw_uint32

typedef unsigned int stbiw_uint32

Definition at line 343 of file stb_image_write.h.

Function Documentation

◆ __declspec()

STBIW_EXTERN __declspec ( dllimport  )

◆ stbi_flip_vertically_on_write()

STBIWDEF void stbi_flip_vertically_on_write ( int  flip_boolean)

Definition at line 261 of file stb_image_write.h.

◆ stbi_write_bmp()

STBIWDEF int stbi_write_bmp ( char const *  filename,
int  w,
int  h,
int  comp,
const void *  data 
)

Definition at line 485 of file stb_image_write.h.

◆ stbi_write_bmp_to_func()

STBIWDEF int stbi_write_bmp_to_func ( stbi_write_func func,
void *  context,
int  w,
int  h,
int  comp,
const void *  data 
)

Definition at line 477 of file stb_image_write.h.

◆ stbi_write_hdr()

STBIWDEF int stbi_write_hdr ( char const *  filename,
int  w,
int  h,
int  comp,
const float *  data 
)

Definition at line 757 of file stb_image_write.h.

◆ stbi_write_hdr_to_func()

STBIWDEF int stbi_write_hdr_to_func ( stbi_write_func func,
void *  context,
int  w,
int  h,
int  comp,
const float *  data 
)

Definition at line 749 of file stb_image_write.h.

◆ stbi_write_jpg()

STBIWDEF int stbi_write_jpg ( char const *  filename,
int  x,
int  y,
int  comp,
const void *  data,
int  quality 
)

Definition at line 1518 of file stb_image_write.h.

◆ stbi_write_jpg_to_func()

STBIWDEF int stbi_write_jpg_to_func ( stbi_write_func func,
void *  context,
int  x,
int  y,
int  comp,
const void *  data,
int  quality 
)

Definition at line 1509 of file stb_image_write.h.

◆ stbi_write_png()

STBIWDEF int stbi_write_png ( char const *  filename,
int  w,
int  h,
int  comp,
const void *  data,
int  stride_in_bytes 
)

Definition at line 1161 of file stb_image_write.h.

◆ stbi_write_png_to_func()

STBIWDEF int stbi_write_png_to_func ( stbi_write_func func,
void *  context,
int  w,
int  h,
int  comp,
const void *  data,
int  stride_in_bytes 
)

Definition at line 1177 of file stb_image_write.h.

◆ stbi_write_png_to_mem()

STBIWDEF unsigned char * stbi_write_png_to_mem ( const unsigned char *  pixels,
int  stride_bytes,
int  x,
int  y,
int  n,
int *  out_len 
)

Definition at line 1074 of file stb_image_write.h.

◆ stbi_write_tga()

STBIWDEF int stbi_write_tga ( char const *  filename,
int  w,
int  h,
int  comp,
const void *  data 
)

Definition at line 583 of file stb_image_write.h.

◆ stbi_write_tga_to_func()

STBIWDEF int stbi_write_tga_to_func ( stbi_write_func func,
void *  context,
int  w,
int  h,
int  comp,
const void *  data 
)

Definition at line 575 of file stb_image_write.h.

◆ stbi_zlib_compress()

STBIWDEF unsigned char * stbi_zlib_compress ( unsigned char *  data,
int  data_len,
int *  out_len,
int  quality 
)

Definition at line 858 of file stb_image_write.h.

◆ stbiw_convert_wchar_to_utf8()

STBIWDEF int stbiw_convert_wchar_to_utf8 ( char *  buffer,
size_t  bufferlen,
const wchar_t *  input 
)

Definition at line 295 of file stb_image_write.h.

Variable Documentation

◆ cbmb

STBIW_EXTERN unsigned long const wchar_t int char int cbmb

Definition at line 292 of file stb_image_write.h.

◆ cchwide

STBIW_EXTERN unsigned long const wchar_t int cchwide

Definition at line 292 of file stb_image_write.h.

◆ defchar

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

Definition at line 293 of file stb_image_write.h.

◆ flags

STBIW_EXTERN unsigned long flags

Definition at line 292 of file stb_image_write.h.

◆ stbi_write_force_png_filter

int stbi_write_force_png_filter = -1

Definition at line 253 of file stb_image_write.h.

◆ stbi_write_png_compression_level

int stbi_write_png_compression_level = 8

Definition at line 251 of file stb_image_write.h.

◆ stbi_write_tga_with_rle

int stbi_write_tga_with_rle = 1

Definition at line 252 of file stb_image_write.h.

◆ str

STBIW_EXTERN unsigned long const wchar_t int char* str

Definition at line 292 of file stb_image_write.h.

◆ used_default

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

Definition at line 293 of file stb_image_write.h.

◆ widestr

STBIW_EXTERN unsigned long const wchar_t* widestr

Definition at line 292 of file stb_image_write.h.