![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "qtypes.h"
Go to the source code of this file.
Functions | |
void | PNG_CloseLibrary (void) |
unsigned char * | PNG_LoadImage_BGRA (const unsigned char *f, 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) |
Definition at line 194 of file image_png.c.
References png14_dll, png_dll, and Sys_FreeLibrary().
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().