Classes | Defines | Typedefs | Enumerations | Functions | Variables
lodepng.h File Reference
#include <string.h>
Include dependency graph for lodepng.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LodePNGColorMode
struct  LodePNGCompressSettings
struct  LodePNGDecoderSettings
struct  LodePNGDecompressSettings
struct  LodePNGEncoderSettings
struct  LodePNGInfo
struct  LodePNGState
struct  LodePNGTime

Defines

#define LODEPNG_COMPILE_ALLOCATORS
#define LODEPNG_COMPILE_ANCILLARY_CHUNKS
#define LODEPNG_COMPILE_DECODER
#define LODEPNG_COMPILE_DISK
#define LODEPNG_COMPILE_ENCODER
#define LODEPNG_COMPILE_ERROR_TEXT
#define LODEPNG_COMPILE_PNG
#define LODEPNG_COMPILE_ZLIB

Typedefs

typedef enum LodePNGAutoConvert LodePNGAutoConvert
typedef struct LodePNGColorMode LodePNGColorMode
typedef enum LodePNGColorType LodePNGColorType
typedef struct
LodePNGCompressSettings 
LodePNGCompressSettings
typedef struct
LodePNGDecoderSettings 
LodePNGDecoderSettings
typedef struct
LodePNGDecompressSettings 
LodePNGDecompressSettings
typedef struct
LodePNGEncoderSettings 
LodePNGEncoderSettings
typedef enum LodePNGFilterStrategy LodePNGFilterStrategy
typedef struct LodePNGInfo LodePNGInfo
typedef struct LodePNGState LodePNGState
typedef struct LodePNGTime LodePNGTime

Enumerations

enum  LodePNGAutoConvert {
  LAC_NO, LAC_ALPHA, LAC_AUTO, LAC_AUTO_NO_NIBBLES,
  LAC_AUTO_NO_PALETTE, LAC_AUTO_NO_NIBBLES_NO_PALETTE
}
enum  LodePNGColorType {
  LCT_GREY = 0, LCT_RGB = 2, LCT_PALETTE = 3, LCT_GREY_ALPHA = 4,
  LCT_RGBA = 6
}
enum  LodePNGFilterStrategy {
  LFS_ZERO, LFS_MINSUM, LFS_ENTROPY, LFS_BRUTE_FORCE,
  LFS_PREDEFINED
}

Functions

unsigned lodepng_add_itext (LodePNGInfo *info, const char *key, const char *langtag, const char *transkey, const char *str)
unsigned lodepng_add_text (LodePNGInfo *info, const char *key, const char *str)
unsigned lodepng_can_have_alpha (const LodePNGColorMode *info)
unsigned char lodepng_chunk_ancillary (const unsigned char *chunk)
unsigned lodepng_chunk_append (unsigned char **out, size_t *outlength, const unsigned char *chunk)
unsigned lodepng_chunk_check_crc (const unsigned char *chunk)
unsigned lodepng_chunk_create (unsigned char **out, size_t *outlength, unsigned length, const char *type, const unsigned char *data)
unsigned char * lodepng_chunk_data (unsigned char *chunk)
const unsigned char * lodepng_chunk_data_const (const unsigned char *chunk)
void lodepng_chunk_generate_crc (unsigned char *chunk)
unsigned lodepng_chunk_length (const unsigned char *chunk)
unsigned char * lodepng_chunk_next (unsigned char *chunk)
const unsigned char * lodepng_chunk_next_const (const unsigned char *chunk)
unsigned char lodepng_chunk_private (const unsigned char *chunk)
unsigned char lodepng_chunk_safetocopy (const unsigned char *chunk)
void lodepng_chunk_type (char type[5], const unsigned char *chunk)
unsigned char lodepng_chunk_type_equals (const unsigned char *chunk, const char *type)
void lodepng_clear_itext (LodePNGInfo *info)
void lodepng_clear_text (LodePNGInfo *info)
void lodepng_color_mode_cleanup (LodePNGColorMode *info)
unsigned lodepng_color_mode_copy (LodePNGColorMode *dest, const LodePNGColorMode *source)
void lodepng_color_mode_init (LodePNGColorMode *info)
void lodepng_compress_settings_init (LodePNGCompressSettings *settings)
unsigned lodepng_convert (unsigned char *out, const unsigned char *in, LodePNGColorMode *mode_out, LodePNGColorMode *mode_in, unsigned w, unsigned h, unsigned fix_png)
unsigned lodepng_crc32 (const unsigned char *buf, size_t len)
unsigned lodepng_decode (unsigned char **out, unsigned *w, unsigned *h, LodePNGState *state, const unsigned char *in, size_t insize)
unsigned lodepng_decode24 (unsigned char **out, unsigned *w, unsigned *h, const unsigned char *in, size_t insize)
unsigned lodepng_decode24_file (unsigned char **out, unsigned *w, unsigned *h, const char *filename)
unsigned lodepng_decode32 (unsigned char **out, unsigned *w, unsigned *h, const unsigned char *in, size_t insize)
unsigned lodepng_decode32_file (unsigned char **out, unsigned *w, unsigned *h, const char *filename)
unsigned lodepng_decode_file (unsigned char **out, unsigned *w, unsigned *h, const char *filename, LodePNGColorType colortype, unsigned bitdepth)
unsigned lodepng_decode_memory (unsigned char **out, unsigned *w, unsigned *h, const unsigned char *in, size_t insize, LodePNGColorType colortype, unsigned bitdepth)
void lodepng_decoder_settings_init (LodePNGDecoderSettings *settings)
void lodepng_decompress_settings_init (LodePNGDecompressSettings *settings)
unsigned lodepng_deflate (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGCompressSettings *settings)
unsigned lodepng_encode (unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h, LodePNGState *state)
unsigned lodepng_encode24 (unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h)
unsigned lodepng_encode24_file (const char *filename, const unsigned char *image, unsigned w, unsigned h)
unsigned lodepng_encode32 (unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h)
unsigned lodepng_encode32_file (const char *filename, const unsigned char *image, unsigned w, unsigned h)
unsigned lodepng_encode_file (const char *filename, const unsigned char *image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth)
unsigned lodepng_encode_memory (unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth)
void lodepng_encoder_settings_init (LodePNGEncoderSettings *settings)
const char * lodepng_error_text (unsigned code)
unsigned lodepng_get_bpp (const LodePNGColorMode *info)
unsigned lodepng_get_channels (const LodePNGColorMode *info)
size_t lodepng_get_raw_size (unsigned w, unsigned h, const LodePNGColorMode *color)
unsigned lodepng_has_palette_alpha (const LodePNGColorMode *info)
unsigned lodepng_huffman_code_lengths (unsigned *lengths, const unsigned *frequencies, size_t numcodes, unsigned maxbitlen)
unsigned lodepng_inflate (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGDecompressSettings *settings)
void lodepng_info_cleanup (LodePNGInfo *info)
unsigned lodepng_info_copy (LodePNGInfo *dest, const LodePNGInfo *source)
void lodepng_info_init (LodePNGInfo *info)
unsigned lodepng_inspect (unsigned *w, unsigned *h, LodePNGState *state, const unsigned char *in, size_t insize)
unsigned lodepng_is_alpha_type (const LodePNGColorMode *info)
unsigned lodepng_is_greyscale_type (const LodePNGColorMode *info)
unsigned lodepng_is_palette_type (const LodePNGColorMode *info)
unsigned lodepng_load_file (unsigned char **out, size_t *outsize, const char *filename)
unsigned lodepng_palette_add (LodePNGColorMode *info, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
void lodepng_palette_clear (LodePNGColorMode *info)
unsigned lodepng_save_file (const unsigned char *buffer, size_t buffersize, const char *filename)
void lodepng_state_cleanup (LodePNGState *state)
void lodepng_state_copy (LodePNGState *dest, const LodePNGState *source)
void lodepng_state_init (LodePNGState *state)
unsigned lodepng_zlib_compress (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGCompressSettings *settings)
unsigned lodepng_zlib_decompress (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGDecompressSettings *settings)

Variables

const LodePNGCompressSettings lodepng_default_compress_settings
const LodePNGDecompressSettings lodepng_default_decompress_settings

Define Documentation

Definition at line 76 of file lodepng.h.

Definition at line 66 of file lodepng.h.

Definition at line 54 of file lodepng.h.

Definition at line 62 of file lodepng.h.

Definition at line 58 of file lodepng.h.

Definition at line 70 of file lodepng.h.

Definition at line 50 of file lodepng.h.

Definition at line 46 of file lodepng.h.


Typedef Documentation

Definition at line 277 of file lodepng.h.

Definition at line 249 of file lodepng.h.

typedef struct LodePNGInfo LodePNGInfo
typedef struct LodePNGState LodePNGState
typedef struct LodePNGTime LodePNGTime

Enumeration Type Documentation

Enumerator:
LAC_NO 
LAC_ALPHA 
LAC_AUTO 
LAC_AUTO_NO_NIBBLES 
LAC_AUTO_NO_PALETTE 
LAC_AUTO_NO_NIBBLES_NO_PALETTE 

Definition at line 552 of file lodepng.h.

Enumerator:
LCT_GREY 
LCT_RGB 
LCT_PALETTE 
LCT_GREY_ALPHA 
LCT_RGBA 

Definition at line 87 of file lodepng.h.

Enumerator:
LFS_ZERO 
LFS_MINSUM 
LFS_ENTROPY 
LFS_BRUTE_FORCE 
LFS_PREDEFINED 

Definition at line 533 of file lodepng.h.


Function Documentation

unsigned lodepng_add_itext ( LodePNGInfo info,
const char *  key,
const char *  langtag,
const char *  transkey,
const char *  str 
)

Definition at line 2805 of file lodepng.cpp.

unsigned lodepng_add_text ( LodePNGInfo info,
const char *  key,
const char *  str 
)

Definition at line 2733 of file lodepng.cpp.

unsigned lodepng_can_have_alpha ( const LodePNGColorMode info)

Definition at line 2641 of file lodepng.cpp.

unsigned char lodepng_chunk_ancillary ( const unsigned char *  chunk)

Definition at line 2384 of file lodepng.cpp.

unsigned lodepng_chunk_append ( unsigned char **  out,
size_t *  outlength,
const unsigned char *  chunk 
)

Definition at line 2438 of file lodepng.cpp.

unsigned lodepng_chunk_check_crc ( const unsigned char *  chunk)

Definition at line 2409 of file lodepng.cpp.

unsigned lodepng_chunk_create ( unsigned char **  out,
size_t *  outlength,
unsigned  length,
const char *  type,
const unsigned char *  data 
)

Definition at line 2457 of file lodepng.cpp.

unsigned char* lodepng_chunk_data ( unsigned char *  chunk)

Definition at line 2399 of file lodepng.cpp.

const unsigned char* lodepng_chunk_data_const ( const unsigned char *  chunk)

Definition at line 2404 of file lodepng.cpp.

void lodepng_chunk_generate_crc ( unsigned char *  chunk)

Definition at line 2419 of file lodepng.cpp.

unsigned lodepng_chunk_length ( const unsigned char *  chunk)

Definition at line 2366 of file lodepng.cpp.

unsigned char* lodepng_chunk_next ( unsigned char *  chunk)

Definition at line 2426 of file lodepng.cpp.

const unsigned char* lodepng_chunk_next_const ( const unsigned char *  chunk)

Definition at line 2432 of file lodepng.cpp.

unsigned char lodepng_chunk_private ( const unsigned char *  chunk)

Definition at line 2389 of file lodepng.cpp.

unsigned char lodepng_chunk_safetocopy ( const unsigned char *  chunk)

Definition at line 2394 of file lodepng.cpp.

void lodepng_chunk_type ( char  type[5],
const unsigned char *  chunk 
)

Definition at line 2371 of file lodepng.cpp.

unsigned char lodepng_chunk_type_equals ( const unsigned char *  chunk,
const char *  type 
)

Definition at line 2378 of file lodepng.cpp.

void lodepng_clear_itext ( LodePNGInfo info)

Definition at line 2800 of file lodepng.cpp.

void lodepng_clear_text ( LodePNGInfo info)

Definition at line 2728 of file lodepng.cpp.

Definition at line 2538 of file lodepng.cpp.

unsigned lodepng_color_mode_copy ( LodePNGColorMode dest,
const LodePNGColorMode source 
)

Definition at line 2543 of file lodepng.cpp.

Definition at line 2528 of file lodepng.cpp.

Definition at line 2223 of file lodepng.cpp.

unsigned lodepng_convert ( unsigned char *  out,
const unsigned char *  in,
LodePNGColorMode mode_out,
LodePNGColorMode mode_in,
unsigned  w,
unsigned  h,
unsigned  fix_png 
)

Definition at line 3396 of file lodepng.cpp.

unsigned lodepng_crc32 ( const unsigned char *  buf,
size_t  len 
)

Definition at line 2307 of file lodepng.cpp.

unsigned lodepng_decode ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
LodePNGState state,
const unsigned char *  in,
size_t  insize 
)

Definition at line 4741 of file lodepng.cpp.

unsigned lodepng_decode24 ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
const unsigned char *  in,
size_t  insize 
)

Definition at line 4803 of file lodepng.cpp.

unsigned lodepng_decode24_file ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
const char *  filename 
)

Definition at line 4826 of file lodepng.cpp.

unsigned lodepng_decode32 ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
const unsigned char *  in,
size_t  insize 
)

Definition at line 4798 of file lodepng.cpp.

unsigned lodepng_decode32_file ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
const char *  filename 
)

Definition at line 4821 of file lodepng.cpp.

unsigned lodepng_decode_file ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
const char *  filename,
LodePNGColorType  colortype,
unsigned  bitdepth 
)

Definition at line 4809 of file lodepng.cpp.

unsigned lodepng_decode_memory ( unsigned char **  out,
unsigned *  w,
unsigned *  h,
const unsigned char *  in,
size_t  insize,
LodePNGColorType  colortype,
unsigned  bitdepth 
)

Definition at line 4785 of file lodepng.cpp.

Definition at line 4832 of file lodepng.cpp.

Definition at line 2245 of file lodepng.cpp.

unsigned lodepng_deflate ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  in,
size_t  insize,
const LodePNGCompressSettings settings 
)

Definition at line 2011 of file lodepng.cpp.

unsigned lodepng_encode ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  image,
unsigned  w,
unsigned  h,
LodePNGState state 
)

Definition at line 5665 of file lodepng.cpp.

unsigned lodepng_encode24 ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  image,
unsigned  w,
unsigned  h 
)

Definition at line 5879 of file lodepng.cpp.

unsigned lodepng_encode24_file ( const char *  filename,
const unsigned char *  image,
unsigned  w,
unsigned  h 
)

Definition at line 5901 of file lodepng.cpp.

unsigned lodepng_encode32 ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  image,
unsigned  w,
unsigned  h 
)

Definition at line 5874 of file lodepng.cpp.

unsigned lodepng_encode32_file ( const char *  filename,
const unsigned char *  image,
unsigned  w,
unsigned  h 
)

Definition at line 5896 of file lodepng.cpp.

unsigned lodepng_encode_file ( const char *  filename,
const unsigned char *  image,
unsigned  w,
unsigned  h,
LodePNGColorType  colortype,
unsigned  bitdepth 
)

Definition at line 5885 of file lodepng.cpp.

unsigned lodepng_encode_memory ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  image,
unsigned  w,
unsigned  h,
LodePNGColorType  colortype,
unsigned  bitdepth 
)

Definition at line 5858 of file lodepng.cpp.

Definition at line 5907 of file lodepng.cpp.

const char* lodepng_error_text ( unsigned  code)

Definition at line 5929 of file lodepng.cpp.

unsigned lodepng_get_bpp ( const LodePNGColorMode info)

Definition at line 2605 of file lodepng.cpp.

unsigned lodepng_get_channels ( const LodePNGColorMode info)

Definition at line 2611 of file lodepng.cpp.

size_t lodepng_get_raw_size ( unsigned  w,
unsigned  h,
const LodePNGColorMode color 
)

Definition at line 2648 of file lodepng.cpp.

unsigned lodepng_has_palette_alpha ( const LodePNGColorMode info)

Definition at line 2631 of file lodepng.cpp.

unsigned lodepng_huffman_code_lengths ( unsigned *  lengths,
const unsigned *  frequencies,
size_t  numcodes,
unsigned  maxbitlen 
)

Definition at line 745 of file lodepng.cpp.

unsigned lodepng_inflate ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  in,
size_t  insize,
const LodePNGDecompressSettings settings 
)

Definition at line 1276 of file lodepng.cpp.

Definition at line 2863 of file lodepng.cpp.

unsigned lodepng_info_copy ( LodePNGInfo dest,
const LodePNGInfo source 
)

Definition at line 2874 of file lodepng.cpp.

void lodepng_info_init ( LodePNGInfo info)

Definition at line 2843 of file lodepng.cpp.

unsigned lodepng_inspect ( unsigned *  w,
unsigned *  h,
LodePNGState state,
const unsigned char *  in,
size_t  insize 
)

Definition at line 3953 of file lodepng.cpp.

unsigned lodepng_is_alpha_type ( const LodePNGColorMode info)

Definition at line 2621 of file lodepng.cpp.

unsigned lodepng_is_greyscale_type ( const LodePNGColorMode info)

Definition at line 2616 of file lodepng.cpp.

unsigned lodepng_is_palette_type ( const LodePNGColorMode info)

Definition at line 2626 of file lodepng.cpp.

unsigned lodepng_load_file ( unsigned char **  out,
size_t *  outsize,
const char *  filename 
)

Definition at line 358 of file lodepng.cpp.

unsigned lodepng_palette_add ( LodePNGColorMode info,
unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
)

Definition at line 2584 of file lodepng.cpp.

Definition at line 2577 of file lodepng.cpp.

unsigned lodepng_save_file ( const unsigned char *  buffer,
size_t  buffersize,
const char *  filename 
)

Definition at line 386 of file lodepng.cpp.

Definition at line 4861 of file lodepng.cpp.

void lodepng_state_copy ( LodePNGState dest,
const LodePNGState source 
)

Definition at line 4867 of file lodepng.cpp.

void lodepng_state_init ( LodePNGState state)

Definition at line 4848 of file lodepng.cpp.

unsigned lodepng_zlib_compress ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  in,
size_t  insize,
const LodePNGCompressSettings settings 
)

Definition at line 2137 of file lodepng.cpp.

unsigned lodepng_zlib_decompress ( unsigned char **  out,
size_t *  outsize,
const unsigned char *  in,
size_t  insize,
const LodePNGDecompressSettings settings 
)

Definition at line 2079 of file lodepng.cpp.


Variable Documentation

Definition at line 2238 of file lodepng.cpp.

Definition at line 2254 of file lodepng.cpp.



libfovis
Author(s): Albert Huang, Maurice Fallon
autogenerated on Thu Jun 6 2019 20:16:12