#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | LodeZlib_DeflateSettings |
struct | LodePNG_InfoColor |
struct | LodePNG_InfoPng |
struct | LodePNG_InfoRaw |
struct | LodePNG_EncodeSettings |
struct | LodePNG_Encoder |
Macros | |
#define | LODEPNG_COMPILE_ZLIB /*deflate&zlib encoder and deflate&zlib decoder*/ |
#define | LODEPNG_COMPILE_PNG /*png encoder and png decoder*/ |
#define | LODEPNG_COMPILE_ENCODER /*deflate&zlib encoder and png encoder*/ |
#define | LODEPNG_COMPILE_DISK /*the optional built in harddisk file loading and saving functions*/ |
Typedefs | |
typedef struct LodeZlib_DeflateSettings | LodeZlib_DeflateSettings |
typedef struct LodePNG_InfoColor | LodePNG_InfoColor |
typedef struct LodePNG_InfoPng | LodePNG_InfoPng |
typedef struct LodePNG_InfoRaw | LodePNG_InfoRaw |
typedef struct LodePNG_EncodeSettings | LodePNG_EncodeSettings |
typedef struct LodePNG_Encoder | LodePNG_Encoder |
Functions | |
void | LodeZlib_DeflateSettings_init (LodeZlib_DeflateSettings *settings) |
unsigned | LodeZlib_compress (unsigned char **out, size_t *outsize, const unsigned char *in, size_t insize, const LodeZlib_DeflateSettings *settings) |
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_critical (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) |
const unsigned char * | LodePNG_chunk_next_const (const unsigned char *chunk) |
unsigned | LodePNG_append_chunk (unsigned char **out, size_t *outlength, const unsigned char *chunk) |
unsigned | LodePNG_create_chunk (unsigned char **out, size_t *outlength, unsigned length, const char *type, const unsigned char *data) |
void | LodePNG_InfoColor_init (LodePNG_InfoColor *info) |
void | LodePNG_InfoColor_cleanup (LodePNG_InfoColor *info) |
unsigned | LodePNG_InfoColor_copy (LodePNG_InfoColor *dest, const LodePNG_InfoColor *source) |
void | LodePNG_InfoColor_clearPalette (LodePNG_InfoColor *info) |
unsigned | LodePNG_InfoColor_addPalette (LodePNG_InfoColor *info, unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
unsigned | LodePNG_InfoColor_getBpp (const LodePNG_InfoColor *info) |
unsigned | LodePNG_InfoColor_getChannels (const LodePNG_InfoColor *info) |
unsigned | LodePNG_InfoColor_isGreyscaleType (const LodePNG_InfoColor *info) |
unsigned | LodePNG_InfoColor_isAlphaType (const LodePNG_InfoColor *info) |
void | LodePNG_InfoPng_init (LodePNG_InfoPng *info) |
void | LodePNG_InfoPng_cleanup (LodePNG_InfoPng *info) |
unsigned | LodePNG_InfoPng_copy (LodePNG_InfoPng *dest, const LodePNG_InfoPng *source) |
void | LodePNG_InfoRaw_init (LodePNG_InfoRaw *info) |
void | LodePNG_InfoRaw_cleanup (LodePNG_InfoRaw *info) |
unsigned | LodePNG_InfoRaw_copy (LodePNG_InfoRaw *dest, const LodePNG_InfoRaw *source) |
unsigned | LodePNG_convert (unsigned char *out, const unsigned char *in, LodePNG_InfoColor *infoOut, LodePNG_InfoColor *infoIn, unsigned w, unsigned h) |
void | LodePNG_EncodeSettings_init (LodePNG_EncodeSettings *settings) |
void | LodePNG_Encoder_init (LodePNG_Encoder *encoder) |
void | LodePNG_Encoder_cleanup (LodePNG_Encoder *encoder) |
void | LodePNG_Encoder_copy (LodePNG_Encoder *dest, const LodePNG_Encoder *source) |
void | LodePNG_encode (LodePNG_Encoder *encoder, unsigned char **out, size_t *outsize, 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_encode32f (const char *filename, const unsigned char *image, unsigned w, unsigned h) |
unsigned | LodePNG_loadFile (unsigned char **out, size_t *outsize, const char *filename) |
unsigned | LodePNG_saveFile (const unsigned char *buffer, size_t buffersize, const char *filename) |
Variables | |
const LodeZlib_DeflateSettings | LodeZlib_defaultDeflateSettings |
#define LODEPNG_COMPILE_DISK /*the optional built in harddisk file loading and saving functions*/ |
typedef struct LodePNG_Encoder LodePNG_Encoder |
typedef struct LodePNG_EncodeSettings LodePNG_EncodeSettings |
typedef struct LodePNG_InfoColor LodePNG_InfoColor |
typedef struct LodePNG_InfoPng LodePNG_InfoPng |
typedef struct LodePNG_InfoRaw LodePNG_InfoRaw |
typedef struct LodeZlib_DeflateSettings LodeZlib_DeflateSettings |
unsigned LodePNG_append_chunk | ( | unsigned char ** | out, |
size_t * | outlength, | ||
const unsigned char * | chunk | ||
) |
Definition at line 1937 of file lodepng.cpp.
unsigned LodePNG_chunk_check_crc | ( | const unsigned char * | chunk | ) |
Definition at line 1909 of file lodepng.cpp.
unsigned char LodePNG_chunk_critical | ( | const unsigned char * | chunk | ) |
Definition at line 1884 of file lodepng.cpp.
unsigned char* LodePNG_chunk_data | ( | unsigned char * | chunk | ) |
Definition at line 1899 of file lodepng.cpp.
const unsigned char* LodePNG_chunk_data_const | ( | const unsigned char * | chunk | ) |
Definition at line 1904 of file lodepng.cpp.
void LodePNG_chunk_generate_crc | ( | unsigned char * | chunk | ) |
Definition at line 1918 of file lodepng.cpp.
unsigned LodePNG_chunk_length | ( | const unsigned char * | chunk | ) |
Definition at line 1865 of file lodepng.cpp.
unsigned char* LodePNG_chunk_next | ( | unsigned char * | chunk | ) |
Definition at line 1925 of file lodepng.cpp.
const unsigned char* LodePNG_chunk_next_const | ( | const unsigned char * | chunk | ) |
Definition at line 1931 of file lodepng.cpp.
unsigned char LodePNG_chunk_private | ( | const unsigned char * | chunk | ) |
Definition at line 1889 of file lodepng.cpp.
unsigned char LodePNG_chunk_safetocopy | ( | const unsigned char * | chunk | ) |
Definition at line 1894 of file lodepng.cpp.
void LodePNG_chunk_type | ( | char | type[5], |
const unsigned char * | chunk | ||
) |
Definition at line 1870 of file lodepng.cpp.
unsigned char LodePNG_chunk_type_equals | ( | const unsigned char * | chunk, |
const char * | type | ||
) |
Definition at line 1877 of file lodepng.cpp.
unsigned LodePNG_convert | ( | unsigned char * | out, |
const unsigned char * | in, | ||
LodePNG_InfoColor * | infoOut, | ||
LodePNG_InfoColor * | infoIn, | ||
unsigned | w, | ||
unsigned | h | ||
) |
Definition at line 2361 of file lodepng.cpp.
unsigned LodePNG_create_chunk | ( | unsigned char ** | out, |
size_t * | outlength, | ||
unsigned | length, | ||
const char * | type, | ||
const unsigned char * | data | ||
) |
Definition at line 1956 of file lodepng.cpp.
void LodePNG_encode | ( | LodePNG_Encoder * | encoder, |
unsigned char ** | out, | ||
size_t * | outsize, | ||
const unsigned char * | image, | ||
unsigned | w, | ||
unsigned | h | ||
) |
Definition at line 3910 of file lodepng.cpp.
unsigned LodePNG_encode32 | ( | unsigned char ** | out, |
size_t * | outsize, | ||
const unsigned char * | image, | ||
unsigned | w, | ||
unsigned | h | ||
) |
Definition at line 4042 of file lodepng.cpp.
unsigned LodePNG_encode32f | ( | const char * | filename, |
const unsigned char * | image, | ||
unsigned | w, | ||
unsigned | h | ||
) |
Definition at line 4054 of file lodepng.cpp.
void LodePNG_Encoder_cleanup | ( | LodePNG_Encoder * | encoder | ) |
Definition at line 4084 of file lodepng.cpp.
void LodePNG_Encoder_copy | ( | LodePNG_Encoder * | dest, |
const LodePNG_Encoder * | source | ||
) |
Definition at line 4090 of file lodepng.cpp.
void LodePNG_Encoder_init | ( | LodePNG_Encoder * | encoder | ) |
Definition at line 4076 of file lodepng.cpp.
void LodePNG_EncodeSettings_init | ( | LodePNG_EncodeSettings * | settings | ) |
Definition at line 4065 of file lodepng.cpp.
unsigned LodePNG_InfoColor_addPalette | ( | LodePNG_InfoColor * | info, |
unsigned char | r, | ||
unsigned char | g, | ||
unsigned char | b, | ||
unsigned char | a | ||
) |
Definition at line 2046 of file lodepng.cpp.
void LodePNG_InfoColor_cleanup | ( | LodePNG_InfoColor * | info | ) |
Definition at line 2035 of file lodepng.cpp.
void LodePNG_InfoColor_clearPalette | ( | LodePNG_InfoColor * | info | ) |
Definition at line 2040 of file lodepng.cpp.
unsigned LodePNG_InfoColor_copy | ( | LodePNG_InfoColor * | dest, |
const LodePNG_InfoColor * | source | ||
) |
Definition at line 2323 of file lodepng.cpp.
unsigned LodePNG_InfoColor_getBpp | ( | const LodePNG_InfoColor * | info | ) |
Definition at line 2066 of file lodepng.cpp.
unsigned LodePNG_InfoColor_getChannels | ( | const LodePNG_InfoColor * | info | ) |
Definition at line 2067 of file lodepng.cpp.
void LodePNG_InfoColor_init | ( | LodePNG_InfoColor * | info | ) |
Definition at line 2025 of file lodepng.cpp.
unsigned LodePNG_InfoColor_isAlphaType | ( | const LodePNG_InfoColor * | info | ) |
Definition at line 2069 of file lodepng.cpp.
unsigned LodePNG_InfoColor_isGreyscaleType | ( | const LodePNG_InfoColor * | info | ) |
Definition at line 2068 of file lodepng.cpp.
void LodePNG_InfoPng_cleanup | ( | LodePNG_InfoPng * | info | ) |
Definition at line 2284 of file lodepng.cpp.
unsigned LodePNG_InfoPng_copy | ( | LodePNG_InfoPng * | dest, |
const LodePNG_InfoPng * | source | ||
) |
Definition at line 2296 of file lodepng.cpp.
void LodePNG_InfoPng_init | ( | LodePNG_InfoPng * | info | ) |
Definition at line 2262 of file lodepng.cpp.
void LodePNG_InfoRaw_cleanup | ( | LodePNG_InfoRaw * | info | ) |
Definition at line 2339 of file lodepng.cpp.
unsigned LodePNG_InfoRaw_copy | ( | LodePNG_InfoRaw * | dest, |
const LodePNG_InfoRaw * | source | ||
) |
Definition at line 2344 of file lodepng.cpp.
void LodePNG_InfoRaw_init | ( | LodePNG_InfoRaw * | info | ) |
Definition at line 2334 of file lodepng.cpp.
unsigned LodePNG_loadFile | ( | unsigned char ** | out, |
size_t * | outsize, | ||
const char * | filename | ||
) |
Definition at line 4110 of file lodepng.cpp.
unsigned LodePNG_saveFile | ( | const unsigned char * | buffer, |
size_t | buffersize, | ||
const char * | filename | ||
) |
Definition at line 4141 of file lodepng.cpp.
unsigned LodeZlib_compress | ( | unsigned char ** | out, |
size_t * | outsize, | ||
const unsigned char * | in, | ||
size_t | insize, | ||
const LodeZlib_DeflateSettings * | settings | ||
) |
Definition at line 1651 of file lodepng.cpp.
void LodeZlib_DeflateSettings_init | ( | LodeZlib_DeflateSettings * | settings | ) |
Definition at line 1697 of file lodepng.cpp.
const LodeZlib_DeflateSettings LodeZlib_defaultDeflateSettings |
Definition at line 1704 of file lodepng.cpp.