![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Typedefs | |
typedef void(* | qpng_longjmp_ptr) (jmp_buf, int) |
Functions | |
void | PNG_CloseLibrary (void) |
static void | PNG_error_fn (void *png, const char *message) |
static void | PNG_fFlushData (void *png) |
static void | PNG_fReadData (void *png, unsigned char *data, size_t length) |
static void | PNG_fWriteData (void *png, unsigned char *data, size_t length) |
unsigned char * | PNG_LoadImage_BGRA (const unsigned char *raw, int filesize, int *miplevel) |
qbool | PNG_OpenLibrary (void) |
qbool | PNG_SaveImage_preflipped (const char *filename, int width, int height, qbool has_alpha, unsigned char *data) |
static void | PNG_warning_fn (void *png, const char *message) |
#define PNG_ALL_FILTERS |
Definition at line 467 of file image_png.c.
#define PNG_COLOR_MASK_ALPHA 4 |
Definition at line 215 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
#define PNG_COLOR_MASK_COLOR 2 |
Definition at line 214 of file image_png.c.
#define PNG_COLOR_MASK_PALETTE 1 |
Definition at line 213 of file image_png.c.
#define PNG_COLOR_TYPE_GA PNG_COLOR_TYPE_GRAY_ALPHA |
Definition at line 224 of file image_png.c.
#define PNG_COLOR_TYPE_GRAY 0 |
Definition at line 217 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
#define PNG_COLOR_TYPE_GRAY_ALPHA (PNG_COLOR_MASK_ALPHA) |
Definition at line 221 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
#define PNG_COLOR_TYPE_PALETTE (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE) |
Definition at line 218 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
#define PNG_COLOR_TYPE_RGB (PNG_COLOR_MASK_COLOR) |
Definition at line 219 of file image_png.c.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
#define PNG_COLOR_TYPE_RGB_ALPHA (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA) |
Definition at line 220 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
#define PNG_COLOR_TYPE_RGBA PNG_COLOR_TYPE_RGB_ALPHA |
Definition at line 223 of file image_png.c.
#define PNG_COMPRESSION_TYPE_BASE 0 |
Definition at line 459 of file image_png.c.
#define PNG_COMPRESSION_TYPE_DEFAULT PNG_COMPRESSION_TYPE_BASE |
Definition at line 460 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
#define PNG_FILTER_AVG 0x40 |
Definition at line 465 of file image_png.c.
#define PNG_FILTER_NONE 0x08 |
Definition at line 462 of file image_png.c.
#define PNG_FILTER_PAETH 0x80 |
Definition at line 466 of file image_png.c.
#define PNG_FILTER_SUB 0x10 |
Definition at line 463 of file image_png.c.
#define PNG_FILTER_TYPE_BASE 0 |
Definition at line 457 of file image_png.c.
#define PNG_FILTER_TYPE_DEFAULT PNG_FILTER_TYPE_BASE |
Definition at line 458 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
#define PNG_FILTER_UP 0x20 |
Definition at line 464 of file image_png.c.
#define PNG_INFO_tRNS 0x0010 |
Definition at line 226 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
#define PNG_INTERLACE_ADAM7 1 |
Definition at line 456 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
#define PNG_INTERLACE_NONE 0 |
Definition at line 455 of file image_png.c.
#define PNG_LIBPNG_VER_STRING_12 "1.2.4" |
Definition at line 208 of file image_png.c.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
#define PNG_LIBPNG_VER_STRING_14 "1.4.0" |
Definition at line 209 of file image_png.c.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
#define PNG_LIBPNG_VER_STRING_15 "1.5.0" |
Definition at line 210 of file image_png.c.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
#define PNG_LIBPNG_VER_STRING_16 "1.6.0" |
Definition at line 211 of file image_png.c.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
#define PNG_NO_FILTERS 0x00 |
Definition at line 461 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
#define qpng_jmpbuf | ( | png_ptr | ) |
Definition at line 77 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
#define qpng_jmpbuf_12 | ( | png_ptr | ) |
Definition at line 74 of file image_png.c.
#define qpng_jmpbuf_14 | ( | png_ptr | ) |
Definition at line 71 of file image_png.c.
#define Z_BEST_COMPRESSION 9 |
Definition at line 454 of file image_png.c.
#define Z_BEST_SPEED 1 |
Definition at line 453 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 69 of file image_png.c.
Definition at line 194 of file image_png.c.
References png14_dll, png_dll, and Sys_FreeLibrary().
Definition at line 284 of file image_png.c.
References CON_ERROR, Con_Printf(), and message.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
Definition at line 258 of file image_png.c.
References Con_Printf(), data, int(), length, and my_png.
Referenced by PNG_LoadImage_BGRA().
Definition at line 275 of file image_png.c.
References data, FS_Write(), length, and my_png.
Referenced by PNG_SaveImage_preflipped().
Definition at line 294 of file image_png.c.
References Con_Printf(), image_height, image_width, int(), Mem_Alloc, Mem_Free, my_png, NULL, PNG_COLOR_MASK_ALPHA, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, png_dll, PNG_error_fn(), PNG_fReadData(), PNG_INFO_tRNS, PNG_LIBPNG_VER_STRING_12, PNG_LIBPNG_VER_STRING_14, PNG_LIBPNG_VER_STRING_15, PNG_LIBPNG_VER_STRING_16, PNG_warning_fn(), qpng_access_version_number, qpng_create_info_struct, qpng_create_read_struct, qpng_destroy_read_struct, qpng_get_channels, qpng_get_IHDR, qpng_get_rowbytes, qpng_get_valid, qpng_jmpbuf, qpng_read_end, qpng_read_image, qpng_read_info, qpng_read_update_info, qpng_set_expand, qpng_set_filler, qpng_set_gray_to_rgb, qpng_set_palette_to_rgb, qpng_set_read_fn, qpng_set_sig_bytes, qpng_set_tRNS_to_alpha, qpng_sig_cmp, tempmempool, and y.
Referenced by decode_image().
Definition at line 143 of file image_png.c.
References NULL, png14_dll, png14funcs, png_dll, pngfuncs, qpng_access_version_number, Sys_FreeLibrary(), and Sys_LoadDependency().
Referenced by Image_Compress(), and r_textures_start().
qbool PNG_SaveImage_preflipped | ( | const char * | filename, |
int | width, | ||
int | height, | ||
qbool | has_alpha, | ||
unsigned char * | data ) |
Definition at line 477 of file image_png.c.
References Con_Print(), data, FS_Close(), FS_OpenRealFile(), height, i, my_png, NULL, offset, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, PNG_COMPRESSION_TYPE_DEFAULT, png_dll, PNG_error_fn(), PNG_fFlushData(), PNG_FILTER_TYPE_DEFAULT, PNG_fWriteData(), PNG_INTERLACE_ADAM7, PNG_LIBPNG_VER_STRING_12, PNG_LIBPNG_VER_STRING_14, PNG_LIBPNG_VER_STRING_15, PNG_LIBPNG_VER_STRING_16, PNG_NO_FILTERS, PNG_warning_fn(), qpng_access_version_number, qpng_create_info_struct, qpng_create_write_struct, qpng_destroy_write_struct, qpng_set_bgr, qpng_set_compression_level, qpng_set_filter, qpng_set_IHDR, qpng_set_interlace_handling, qpng_set_packing, qpng_set_write_fn, qpng_write_end, qpng_write_info, qpng_write_row, width, and Z_BEST_SPEED.
Referenced by SCR_ScreenShot().
Definition at line 289 of file image_png.c.
References Con_Printf(), CON_WARN, and message.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
int BitDepth |
Definition at line 244 of file image_png.c.
int BytesPerPixel |
Definition at line 245 of file image_png.c.
int ColorType |
Definition at line 246 of file image_png.c.
int Compression |
Definition at line 250 of file image_png.c.
unsigned char* Data |
Definition at line 240 of file image_png.c.
int Filter |
Definition at line 251 of file image_png.c.
unsigned int FRowBytes |
Definition at line 236 of file image_png.c.
unsigned char** FRowPtrs |
Definition at line 239 of file image_png.c.
unsigned long Height |
Definition at line 247 of file image_png.c.
int Interlace |
Definition at line 249 of file image_png.c.
struct { ... } my_png |
Referenced by PNG_fReadData(), PNG_fWriteData(), PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
qfile_t* outfile |
Definition at line 254 of file image_png.c.
Referenced by CL_Locs_Save_f(), JPEG_FileDest(), and main().
dllhandle_t png14_dll = NULL |
Definition at line 125 of file image_png.c.
Referenced by PNG_CloseLibrary(), and PNG_OpenLibrary().
|
static |
Definition at line 117 of file image_png.c.
Referenced by PNG_OpenLibrary().
dllhandle_t png_dll = NULL |
Definition at line 124 of file image_png.c.
Referenced by PNG_CloseLibrary(), PNG_LoadImage_BGRA(), PNG_OpenLibrary(), and PNG_SaveImage_preflipped().
|
static |
Definition at line 80 of file image_png.c.
Referenced by PNG_OpenLibrary().
Definition at line 63 of file image_png.c.
Referenced by PNG_LoadImage_BGRA(), PNG_OpenLibrary(), and PNG_SaveImage_preflipped().
Definition at line 38 of file image_png.c.
Referenced by PNG_LoadImage_BGRA(), and PNG_SaveImage_preflipped().
|
static |
Definition at line 36 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
|
static |
Definition at line 37 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 54 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 55 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 61 of file image_png.c.
Definition at line 60 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
|
static |
Definition at line 62 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 59 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
|
static |
Definition at line 58 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 53 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 52 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 39 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 51 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 49 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 40 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 42 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 46 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 41 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 45 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
|
static |
Definition at line 47 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 50 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
|
static |
Definition at line 70 of file image_png.c.
Definition at line 48 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 43 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
|
static |
Definition at line 56 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 34 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 44 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
|
static |
Definition at line 57 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
|
static |
Definition at line 35 of file image_png.c.
Referenced by PNG_LoadImage_BGRA().
Definition at line 66 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 64 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
Definition at line 65 of file image_png.c.
Referenced by PNG_SaveImage_preflipped().
const unsigned char* tmpBuf |
Definition at line 231 of file image_png.c.
int tmpBuflength |
Definition at line 232 of file image_png.c.
int tmpi |
Definition at line 233 of file image_png.c.
unsigned long Width |
Definition at line 248 of file image_png.c.