OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
lodepng.h File Reference
#include <string.h>

Go to the source code of this file.

Data Structures

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

Macros

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

Typedefs

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

Enumerations

enum  LodePNGColorType {
  LCT_GREY = 0 , LCT_RGB = 2 , LCT_PALETTE = 3 , LCT_GREY_ALPHA = 4 ,
  LCT_RGBA = 6 , LCT_MAX_OCTET_VALUE = 255
}
 
enum  LodePNGFilterStrategy {
  LFS_ZERO = 0 , LFS_ONE = 1 , LFS_TWO = 2 , LFS_THREE = 3 ,
  LFS_FOUR = 4 , LFS_MINSUM , LFS_ENTROPY , LFS_BRUTE_FORCE ,
  LFS_PREDEFINED
}
 

Functions

unsigned lodepng_decode_memory (unsigned char **out, unsigned *w, unsigned *h, const unsigned char *in, size_t insize, LodePNGColorType colortype, unsigned bitdepth)
 
unsigned lodepng_decode32 (unsigned char **out, unsigned *w, unsigned *h, 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_decode_file (unsigned char **out, unsigned *w, unsigned *h, const char *filename, LodePNGColorType colortype, unsigned bitdepth)
 
unsigned lodepng_decode32_file (unsigned char **out, unsigned *w, unsigned *h, const char *filename)
 
unsigned lodepng_decode24_file (unsigned char **out, unsigned *w, unsigned *h, const char *filename)
 
unsigned lodepng_encode_memory (unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h, LodePNGColorType colortype, unsigned bitdepth)
 
unsigned lodepng_encode32 (unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h)
 
unsigned lodepng_encode24 (unsigned char **out, size_t *outsize, 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_encode32_file (const char *filename, const unsigned char *image, unsigned w, unsigned h)
 
unsigned lodepng_encode24_file (const char *filename, const unsigned char *image, unsigned w, unsigned h)
 
const char * lodepng_error_text (unsigned code)
 
void lodepng_decompress_settings_init (LodePNGDecompressSettings *settings)
 
void lodepng_compress_settings_init (LodePNGCompressSettings *settings)
 
void lodepng_color_mode_init (LodePNGColorMode *info)
 
void lodepng_color_mode_cleanup (LodePNGColorMode *info)
 
unsigned lodepng_color_mode_copy (LodePNGColorMode *dest, const LodePNGColorMode *source)
 
LodePNGColorMode lodepng_color_mode_make (LodePNGColorType colortype, unsigned bitdepth)
 
void lodepng_palette_clear (LodePNGColorMode *info)
 
unsigned lodepng_palette_add (LodePNGColorMode *info, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 
unsigned lodepng_get_bpp (const LodePNGColorMode *info)
 
unsigned lodepng_get_channels (const LodePNGColorMode *info)
 
unsigned lodepng_is_greyscale_type (const LodePNGColorMode *info)
 
unsigned lodepng_is_alpha_type (const LodePNGColorMode *info)
 
unsigned lodepng_is_palette_type (const LodePNGColorMode *info)
 
unsigned lodepng_has_palette_alpha (const LodePNGColorMode *info)
 
unsigned lodepng_can_have_alpha (const LodePNGColorMode *info)
 
size_t lodepng_get_raw_size (unsigned w, unsigned h, const LodePNGColorMode *color)
 
void lodepng_info_init (LodePNGInfo *info)
 
void lodepng_info_cleanup (LodePNGInfo *info)
 
unsigned lodepng_info_copy (LodePNGInfo *dest, const LodePNGInfo *source)
 
unsigned lodepng_add_text (LodePNGInfo *info, const char *key, const char *str)
 
void lodepng_clear_text (LodePNGInfo *info)
 
unsigned lodepng_add_itext (LodePNGInfo *info, const char *key, const char *langtag, const char *transkey, const char *str)
 
void lodepng_clear_itext (LodePNGInfo *info)
 
unsigned lodepng_set_icc (LodePNGInfo *info, const char *name, const unsigned char *profile, unsigned profile_size)
 
void lodepng_clear_icc (LodePNGInfo *info)
 
unsigned lodepng_convert (unsigned char *out, const unsigned char *in, const LodePNGColorMode *mode_out, const LodePNGColorMode *mode_in, unsigned w, unsigned h)
 
void lodepng_decoder_settings_init (LodePNGDecoderSettings *settings)
 
void lodepng_color_stats_init (LodePNGColorStats *stats)
 
unsigned lodepng_compute_color_stats (LodePNGColorStats *stats, const unsigned char *image, unsigned w, unsigned h, const LodePNGColorMode *mode_in)
 
void lodepng_encoder_settings_init (LodePNGEncoderSettings *settings)
 
void lodepng_state_init (LodePNGState *state)
 
void lodepng_state_cleanup (LodePNGState *state)
 
void lodepng_state_copy (LodePNGState *dest, const LodePNGState *source)
 
unsigned lodepng_decode (unsigned char **out, unsigned *w, unsigned *h, LodePNGState *state, const unsigned char *in, size_t insize)
 
unsigned lodepng_inspect (unsigned *w, unsigned *h, LodePNGState *state, const unsigned char *in, size_t insize)
 
unsigned lodepng_inspect_chunk (LodePNGState *state, size_t pos, const unsigned char *in, size_t insize)
 
unsigned lodepng_encode (unsigned char **out, size_t *outsize, const unsigned char *image, unsigned w, unsigned h, LodePNGState *state)
 
unsigned lodepng_chunk_length (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)
 
unsigned char lodepng_chunk_ancillary (const unsigned char *chunk)
 
unsigned char lodepng_chunk_private (const unsigned char *chunk)
 
unsigned char lodepng_chunk_safetocopy (const unsigned char *chunk)
 
unsigned char * lodepng_chunk_data (unsigned char *chunk)
 
const unsigned char * lodepng_chunk_data_const (const unsigned char *chunk)
 
unsigned lodepng_chunk_check_crc (const unsigned char *chunk)
 
void lodepng_chunk_generate_crc (unsigned char *chunk)
 
unsigned char * lodepng_chunk_next (unsigned char *chunk, unsigned char *end)
 
const unsigned char * lodepng_chunk_next_const (const unsigned char *chunk, const unsigned char *end)
 
unsigned char * lodepng_chunk_find (unsigned char *chunk, unsigned char *end, const char type[5])
 
const unsigned char * lodepng_chunk_find_const (const unsigned char *chunk, const unsigned char *end, const char type[5])
 
unsigned lodepng_chunk_append (unsigned char **out, size_t *outsize, const unsigned char *chunk)
 
unsigned lodepng_chunk_create (unsigned char **out, size_t *outsize, size_t length, const char *type, const unsigned char *data)
 
unsigned lodepng_crc32 (const unsigned char *buf, size_t len)
 
unsigned lodepng_inflate (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGDecompressSettings *settings)
 
unsigned lodepng_zlib_decompress (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGDecompressSettings *settings)
 
unsigned lodepng_zlib_compress (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGCompressSettings *settings)
 
unsigned lodepng_huffman_code_lengths (unsigned *lengths, const unsigned *frequencies, size_t numcodes, unsigned maxbitlen)
 
unsigned lodepng_deflate (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodePNGCompressSettings *settings)
 
unsigned lodepng_load_file (unsigned char **out, size_t *outsize, const char *filename)
 
unsigned lodepng_save_file (const unsigned char *buffer, size_t buffersize, const char *filename)
 

Variables

const char * LODEPNG_VERSION_STRING
 
const LodePNGDecompressSettings lodepng_default_decompress_settings
 
const LodePNGCompressSettings lodepng_default_compress_settings
 

Macro Definition Documentation

◆ LODEPNG_COMPILE_ALLOCATORS

#define LODEPNG_COMPILE_ALLOCATORS

Definition at line 119 of file lodepng.h.

◆ LODEPNG_COMPILE_ANCILLARY_CHUNKS

#define LODEPNG_COMPILE_ANCILLARY_CHUNKS

Definition at line 103 of file lodepng.h.

◆ LODEPNG_COMPILE_CRC

#define LODEPNG_COMPILE_CRC

Definition at line 130 of file lodepng.h.

◆ LODEPNG_COMPILE_DECODER

#define LODEPNG_COMPILE_DECODER

Definition at line 84 of file lodepng.h.

◆ LODEPNG_COMPILE_DISK

#define LODEPNG_COMPILE_DISK

Definition at line 96 of file lodepng.h.

◆ LODEPNG_COMPILE_ENCODER

#define LODEPNG_COMPILE_ENCODER

Definition at line 90 of file lodepng.h.

◆ LODEPNG_COMPILE_ERROR_TEXT

#define LODEPNG_COMPILE_ERROR_TEXT

Definition at line 110 of file lodepng.h.

◆ LODEPNG_COMPILE_PNG

#define LODEPNG_COMPILE_PNG

Definition at line 78 of file lodepng.h.

◆ LODEPNG_COMPILE_ZLIB

#define LODEPNG_COMPILE_ZLIB

Definition at line 72 of file lodepng.h.

Typedef Documentation

◆ LodePNGColorMode

typedef struct LodePNGColorMode LodePNGColorMode

◆ LodePNGColorStats

typedef struct LodePNGColorStats LodePNGColorStats

◆ LodePNGColorType

◆ LodePNGCompressSettings

typedef struct LodePNGCompressSettings LodePNGCompressSettings

Definition at line 378 of file lodepng.h.

◆ LodePNGDecoderSettings

typedef struct LodePNGDecoderSettings LodePNGDecoderSettings

◆ LodePNGDecompressSettings

typedef struct LodePNGDecompressSettings LodePNGDecompressSettings

Definition at line 341 of file lodepng.h.

◆ LodePNGEncoderSettings

typedef struct LodePNGEncoderSettings LodePNGEncoderSettings

◆ LodePNGFilterStrategy

◆ LodePNGInfo

typedef struct LodePNGInfo LodePNGInfo

◆ LodePNGState

typedef struct LodePNGState LodePNGState

◆ LodePNGTime

typedef struct LodePNGTime LodePNGTime

Enumeration Type Documentation

◆ LodePNGColorType

Enumerator
LCT_GREY 
LCT_RGB 
LCT_PALETTE 
LCT_GREY_ALPHA 
LCT_RGBA 
LCT_MAX_OCTET_VALUE 

Definition at line 149 of file lodepng.h.

◆ LodePNGFilterStrategy

Enumerator
LFS_ZERO 
LFS_ONE 
LFS_TWO 
LFS_THREE 
LFS_FOUR 
LFS_MINSUM 
LFS_ENTROPY 
LFS_BRUTE_FORCE 
LFS_PREDEFINED 

Definition at line 795 of file lodepng.h.

Function Documentation

◆ lodepng_add_itext()

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

Definition at line 3313 of file lodepng.c.

◆ lodepng_add_text()

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

Definition at line 3238 of file lodepng.c.

◆ lodepng_can_have_alpha()

unsigned lodepng_can_have_alpha ( const LodePNGColorMode * info)

Definition at line 3101 of file lodepng.c.

◆ lodepng_chunk_ancillary()

unsigned char lodepng_chunk_ancillary ( const unsigned char * chunk)

Definition at line 2797 of file lodepng.c.

◆ lodepng_chunk_append()

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

Definition at line 2878 of file lodepng.c.

◆ lodepng_chunk_check_crc()

unsigned lodepng_chunk_check_crc ( const unsigned char * chunk)

Definition at line 2817 of file lodepng.c.

◆ lodepng_chunk_create()

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

Definition at line 2935 of file lodepng.c.

◆ lodepng_chunk_data()

unsigned char * lodepng_chunk_data ( unsigned char * chunk)

Definition at line 2809 of file lodepng.c.

◆ lodepng_chunk_data_const()

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

Definition at line 2813 of file lodepng.c.

◆ lodepng_chunk_find()

unsigned char * lodepng_chunk_find ( unsigned char * chunk,
unsigned char * end,
const char type[5] )

Definition at line 2862 of file lodepng.c.

◆ lodepng_chunk_find_const()

const unsigned char * lodepng_chunk_find_const ( const unsigned char * chunk,
const unsigned char * end,
const char type[5] )

Definition at line 2870 of file lodepng.c.

◆ lodepng_chunk_generate_crc()

void lodepng_chunk_generate_crc ( unsigned char * chunk)

Definition at line 2826 of file lodepng.c.

◆ lodepng_chunk_length()

unsigned lodepng_chunk_length ( const unsigned char * chunk)

Definition at line 2782 of file lodepng.c.

◆ lodepng_chunk_next()

unsigned char * lodepng_chunk_next ( unsigned char * chunk,
unsigned char * end )

Definition at line 2832 of file lodepng.c.

◆ lodepng_chunk_next_const()

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

Definition at line 2847 of file lodepng.c.

◆ lodepng_chunk_private()

unsigned char lodepng_chunk_private ( const unsigned char * chunk)

Definition at line 2801 of file lodepng.c.

◆ lodepng_chunk_safetocopy()

unsigned char lodepng_chunk_safetocopy ( const unsigned char * chunk)

Definition at line 2805 of file lodepng.c.

◆ lodepng_chunk_type()

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

Definition at line 2786 of file lodepng.c.

◆ lodepng_chunk_type_equals()

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

Definition at line 2792 of file lodepng.c.

◆ lodepng_clear_icc()

void lodepng_clear_icc ( LodePNGInfo * info)

Definition at line 3340 of file lodepng.c.

◆ lodepng_clear_itext()

void lodepng_clear_itext ( LodePNGInfo * info)

Definition at line 3284 of file lodepng.c.

◆ lodepng_clear_text()

void lodepng_clear_text ( LodePNGInfo * info)

Definition at line 3242 of file lodepng.c.

◆ lodepng_color_mode_cleanup()

void lodepng_color_mode_cleanup ( LodePNGColorMode * info)

Definition at line 3009 of file lodepng.c.

◆ lodepng_color_mode_copy()

unsigned lodepng_color_mode_copy ( LodePNGColorMode * dest,
const LodePNGColorMode * source )

Definition at line 3013 of file lodepng.c.

◆ lodepng_color_mode_init()

void lodepng_color_mode_init ( LodePNGColorMode * info)

Definition at line 2982 of file lodepng.c.

◆ lodepng_color_mode_make()

LodePNGColorMode lodepng_color_mode_make ( LodePNGColorType colortype,
unsigned bitdepth )

Definition at line 3024 of file lodepng.c.

◆ lodepng_color_stats_init()

void lodepng_color_stats_init ( LodePNGColorStats * stats)

Definition at line 3977 of file lodepng.c.

◆ lodepng_compress_settings_init()

void lodepng_compress_settings_init ( LodePNGCompressSettings * settings)

Definition at line 2373 of file lodepng.c.

◆ lodepng_compute_color_stats()

unsigned lodepng_compute_color_stats ( LodePNGColorStats * stats,
const unsigned char * image,
unsigned w,
unsigned h,
const LodePNGColorMode * mode_in )

Definition at line 4012 of file lodepng.c.

◆ lodepng_convert()

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

Definition at line 3844 of file lodepng.c.

◆ lodepng_crc32()

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

Definition at line 2704 of file lodepng.c.

◆ lodepng_decode()

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

Definition at line 5411 of file lodepng.c.

◆ lodepng_decode24()

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

Definition at line 5469 of file lodepng.c.

◆ lodepng_decode24_file()

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

Definition at line 5492 of file lodepng.c.

◆ lodepng_decode32()

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

Definition at line 5465 of file lodepng.c.

◆ lodepng_decode32_file()

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

Definition at line 5488 of file lodepng.c.

◆ lodepng_decode_file()

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

Definition at line 5474 of file lodepng.c.

◆ lodepng_decode_memory()

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 5448 of file lodepng.c.

◆ lodepng_decoder_settings_init()

void lodepng_decoder_settings_init ( LodePNGDecoderSettings * settings)

Definition at line 5497 of file lodepng.c.

◆ lodepng_decompress_settings_init()

void lodepng_decompress_settings_init ( LodePNGDecompressSettings * settings)

Definition at line 2394 of file lodepng.c.

◆ lodepng_deflate()

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

Definition at line 2155 of file lodepng.c.

◆ lodepng_encode()

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

Definition at line 6315 of file lodepng.c.

◆ lodepng_encode24()

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

Definition at line 6669 of file lodepng.c.

◆ lodepng_encode24_file()

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

Definition at line 6688 of file lodepng.c.

◆ lodepng_encode32()

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

Definition at line 6665 of file lodepng.c.

◆ lodepng_encode32_file()

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

Definition at line 6684 of file lodepng.c.

◆ lodepng_encode_file()

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

Definition at line 6674 of file lodepng.c.

◆ lodepng_encode_memory()

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 6650 of file lodepng.c.

◆ lodepng_encoder_settings_init()

void lodepng_encoder_settings_init ( LodePNGEncoderSettings * settings)

Definition at line 6693 of file lodepng.c.

◆ lodepng_error_text()

const char * lodepng_error_text ( unsigned code)

Definition at line 6714 of file lodepng.c.

◆ lodepng_get_bpp()

unsigned lodepng_get_bpp ( const LodePNGColorMode * info)

Definition at line 3073 of file lodepng.c.

◆ lodepng_get_channels()

unsigned lodepng_get_channels ( const LodePNGColorMode * info)

Definition at line 3077 of file lodepng.c.

◆ lodepng_get_raw_size()

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

Definition at line 3113 of file lodepng.c.

◆ lodepng_has_palette_alpha()

unsigned lodepng_has_palette_alpha ( const LodePNGColorMode * info)

Definition at line 3093 of file lodepng.c.

◆ lodepng_huffman_code_lengths()

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

Definition at line 988 of file lodepng.c.

◆ lodepng_inflate()

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

Definition at line 1453 of file lodepng.c.

◆ lodepng_info_cleanup()

void lodepng_info_cleanup ( LodePNGInfo * info)

Definition at line 3378 of file lodepng.c.

◆ lodepng_info_copy()

unsigned lodepng_info_copy ( LodePNGInfo * dest,
const LodePNGInfo * source )

Definition at line 3390 of file lodepng.c.

◆ lodepng_info_init()

void lodepng_info_init ( LodePNGInfo * info)

Definition at line 3349 of file lodepng.c.

◆ lodepng_inspect()

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

Definition at line 4356 of file lodepng.c.

◆ lodepng_inspect_chunk()

unsigned lodepng_inspect_chunk ( LodePNGState * state,
size_t pos,
const unsigned char * in,
size_t insize )

Definition at line 5158 of file lodepng.c.

◆ lodepng_is_alpha_type()

unsigned lodepng_is_alpha_type ( const LodePNGColorMode * info)

Definition at line 3085 of file lodepng.c.

◆ lodepng_is_greyscale_type()

unsigned lodepng_is_greyscale_type ( const LodePNGColorMode * info)

Definition at line 3081 of file lodepng.c.

◆ lodepng_is_palette_type()

unsigned lodepng_is_palette_type ( const LodePNGColorMode * info)

Definition at line 3089 of file lodepng.c.

◆ lodepng_load_file()

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

Definition at line 428 of file lodepng.c.

◆ lodepng_palette_add()

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

Definition at line 3055 of file lodepng.c.

◆ lodepng_palette_clear()

void lodepng_palette_clear ( LodePNGColorMode * info)

Definition at line 3049 of file lodepng.c.

◆ lodepng_save_file()

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

Definition at line 440 of file lodepng.c.

◆ lodepng_set_icc()

unsigned lodepng_set_icc ( LodePNGInfo * info,
const char * name,
const unsigned char * profile,
unsigned profile_size )

Definition at line 3333 of file lodepng.c.

◆ lodepng_state_cleanup()

void lodepng_state_cleanup ( LodePNGState * state)

Definition at line 5527 of file lodepng.c.

◆ lodepng_state_copy()

void lodepng_state_copy ( LodePNGState * dest,
const LodePNGState * source )

Definition at line 5532 of file lodepng.c.

◆ lodepng_state_init()

void lodepng_state_init ( LodePNGState * state)

Definition at line 5515 of file lodepng.c.

◆ lodepng_zlib_compress()

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

Definition at line 2295 of file lodepng.c.

◆ lodepng_zlib_decompress()

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

Definition at line 2256 of file lodepng.c.

Variable Documentation

◆ lodepng_default_compress_settings

const LodePNGCompressSettings lodepng_default_compress_settings
extern

Definition at line 2387 of file lodepng.c.

◆ lodepng_default_decompress_settings

const LodePNGDecompressSettings lodepng_default_decompress_settings
extern

Definition at line 2404 of file lodepng.c.

◆ LODEPNG_VERSION_STRING

const char* LODEPNG_VERSION_STRING
extern

Definition at line 47 of file lodepng.c.