zenilib
0.5.3.0
|
#include <stdlib.h>
#include <stddef.h>
#include "png.h"
#include "pnginfo.h"
#include "pngstruct.h"
#include <float.h>
#include <math.h>
#include "pngdebug.h"
Go to the source code of this file.
Classes | |
struct | png_xy |
struct | png_XYZ |
Macros | |
#define | _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */ |
#define | CVT_PTR(ptr) (ptr) |
#define | CVT_PTR_NOCHECK(ptr) (ptr) |
#define | PNG_16_TO_8 0x0400 /* Becomes 'chop' in 1.5.4 */ |
#define | PNG_32b(b, s) ((png_uint_32)(b) << (s)) |
#define | PNG_ABORT() abort() |
#define | PNG_ADD_ALPHA 0x1000000 /* Added to libpng-1.2.7 */ |
#define | PNG_ALIGN_ALWAYS 1 /* assume unaligned accesses are OK */ |
#define | PNG_ALIGN_NONE 0 /* do not use data alignment */ |
#define | PNG_ALIGN_OFFSET 2 /* use offsetof to determine alignment */ |
#define | PNG_ALIGN_SIZE 3 /* use sizeof to determine alignment */ |
#define | PNG_ALIGN_TYPE PNG_ALIGN_SIZE |
#define | png_alignof(type) (sizeof (type)) |
#define | PNG_BACKGROUND_EXPAND 0x0100 |
#define | PNG_BACKGROUND_IS_GRAY 0x800 |
#define | PNG_BGR 0x0001 |
#define | png_bKGD PNG_CHUNK( 98, 75, 71, 68) |
#define | png_cHRM PNG_CHUNK( 99, 72, 82, 77) |
#define | PNG_CHUNK(b1, b2, b3, b4) (PNG_32b(b1,24) | PNG_32b(b2,16) | PNG_32b(b3,8) | PNG_32b(b4,0)) |
#define | PNG_CHUNK_ANCILLIARY(c) (1 & ((c) >> 29)) |
#define | PNG_CHUNK_CRITICAL(c) (!PNG_CHUNK_ANCILLIARY(c)) |
#define | PNG_CHUNK_FROM_STRING(s) PNG_CHUNK(0xff&(s)[0], 0xff&(s)[1], 0xff&(s)[2], 0xff&(s)[3]) |
#define | PNG_CHUNK_PRIVATE(c) (1 & ((c) >> 21)) |
#define | PNG_CHUNK_RESERVED(c) (1 & ((c) >> 13)) |
#define | PNG_CHUNK_SAFE_TO_COPY(c) (1 & ((c) >> 5)) |
#define | PNG_COLOR_DIST(c1, c2) |
#define | PNG_COMPOSE 0x0080 /* Was PNG_BACKGROUND */ |
#define | PNG_COST_FACTOR (1<<(PNG_COST_SHIFT)) |
#define | PNG_CSTRING_FROM_CHUNK(s, c) (void)(PNG_STRING_FROM_CHUNK(s,c), ((char*)(s))[4] = 0) |
#define | PNG_DEPRECATED |
#define | PNG_DLL_EXPORT |
#define | PNG_ENCODE_ALPHA 0x800000 /* Added to libpng-1.5.4 */ |
#define | PNG_EXPAND 0x1000 |
#define | PNG_EXPAND_16 0x0200 /* Added to libpng 1.5.2 */ |
#define | PNG_EXPAND_tRNS 0x2000000 /* Added to libpng-1.2.9 */ |
#define | PNG_EXTERN extern |
#define | PNG_FILLER 0x8000 |
#define | PNG_FLAG_ASSUME_sRGB 0x1000 /* Added to libpng-1.5.4 */ |
#define | PNG_FLAG_BENIGN_ERRORS_WARN 0x800000 /* Added to libpng-1.4.0 */ |
#define | PNG_FLAG_CRC_ANCILLARY_MASK |
#define | PNG_FLAG_CRC_ANCILLARY_NOWARN 0x0200 |
#define | PNG_FLAG_CRC_ANCILLARY_USE 0x0100 |
#define | PNG_FLAG_CRC_CRITICAL_IGNORE 0x0800 |
#define | PNG_FLAG_CRC_CRITICAL_MASK |
#define | PNG_FLAG_CRC_CRITICAL_USE 0x0400 |
#define | PNG_FLAG_CRC_MASK |
#define | PNG_FLAG_DETECT_UNINITIALIZED 0x4000 /* Added to libpng-1.5.4 */ |
#define | PNG_FLAG_FILLER_AFTER 0x0080 |
#define | PNG_FLAG_KEEP_UNKNOWN_CHUNKS 0x8000 |
#define | PNG_FLAG_KEEP_UNSAFE_CHUNKS 0x10000 |
#define | PNG_FLAG_LIBRARY_MISMATCH 0x20000 |
#define | PNG_FLAG_MALLOC_NULL_MEM_OK 0x100000 |
#define | PNG_FLAG_OPTIMIZE_ALPHA 0x2000 /* Added to libpng-1.5.4 */ |
#define | PNG_FLAG_ROW_INIT 0x0040 |
#define | PNG_FLAG_STRIP_ERROR_NUMBERS 0x40000 |
#define | PNG_FLAG_STRIP_ERROR_TEXT 0x80000 |
#define | PNG_FLAG_ZLIB_CUSTOM_LEVEL 0x0002 |
#define | PNG_FLAG_ZLIB_CUSTOM_MEM_LEVEL 0x0004 |
#define | PNG_FLAG_ZLIB_CUSTOM_METHOD 0x0010 |
#define | PNG_FLAG_ZLIB_CUSTOM_STRATEGY 0x0001 |
#define | PNG_FLAG_ZLIB_CUSTOM_WINDOW_BITS 0x0008 |
#define | PNG_FLAG_ZLIB_FINISHED 0x0020 |
#define | PNG_FLAG_ZTXT_CUSTOM_LEVEL 0x2000000 /* to libpng-1.5.4 */ |
#define | PNG_FLAG_ZTXT_CUSTOM_MEM_LEVEL 0x4000000 |
#define | PNG_FLAG_ZTXT_CUSTOM_METHOD 0x10000000 |
#define | PNG_FLAG_ZTXT_CUSTOM_STRATEGY 0x1000000 /* 5 lines added */ |
#define | PNG_FLAG_ZTXT_CUSTOM_WINDOW_BITS 0x8000000 |
#define | png_float(png_ptr, fixed, s) (.00001 * (fixed)) |
#define | PNG_FORMAT_NUMBER(buffer, format, number) png_format_number(buffer, buffer + (sizeof buffer), format, number) |
#define | PNG_FP_EXPONENT 2 /* before or in exponent */ |
#define | PNG_FP_FRACTION 1 /* before or in fraction */ |
#define | PNG_FP_INTEGER 0 /* before or in integer */ |
#define | PNG_FP_INVALID 512 /* Available for callers as a distinct value */ |
#define | PNG_FP_IS_NEGATIVE(state) (((state) & PNG_FP_NZ_MASK) == PNG_FP_NZ_MASK) |
#define | PNG_FP_IS_POSITIVE(state) (((state) & PNG_FP_NZ_MASK) == PNG_FP_Z_MASK) |
#define | PNG_FP_IS_ZERO(state) (((state) & PNG_FP_Z_MASK) == PNG_FP_SAW_DIGIT) |
#define | PNG_FP_MAYBE 0 /* The number may be valid in the future */ |
#define | PNG_FP_NEGATIVE 128 /* A negative number, including "-0" */ |
#define | PNG_FP_NONZERO 256 /* A non-zero value */ |
#define | PNG_FP_NZ_MASK (PNG_FP_SAW_DIGIT | PNG_FP_NEGATIVE | PNG_FP_NONZERO) |
#define | PNG_FP_OK 1 /* The number is valid */ |
#define | PNG_FP_SAW_ANY 60 /* Saw any of the above 4 */ |
#define | PNG_FP_SAW_DIGIT 8 /* Saw a digit in current state */ |
#define | PNG_FP_SAW_DOT 16 /* Saw a dot in current state */ |
#define | PNG_FP_SAW_E 32 /* Saw an E (or e) in current state */ |
#define | PNG_FP_SAW_SIGN 4 /* Saw +/- in current state */ |
#define | PNG_FP_STATE 3 /* mask for the above */ |
#define | PNG_FP_STICKY 448 /* The above three flags */ |
#define | PNG_FP_WAS_VALID 64 /* Preceding substring is a valid fp number */ |
#define | PNG_FP_Z_MASK (PNG_FP_SAW_DIGIT | PNG_FP_NONZERO) |
#define | png_gAMA PNG_CHUNK(103, 65, 77, 65) |
#define | PNG_GAMMA 0x2000 |
#define | PNG_GAMMA_MAC_INVERSE 65909 |
#define | PNG_GAMMA_MAC_OLD 151724 /* Assume '1.8' is really 2.2/1.45! */ |
#define | PNG_GAMMA_sRGB_INVERSE 45455 |
#define | PNG_GRAY_TO_RGB 0x4000 |
#define | PNG_HAVE_cHRM 0x40 |
#define | PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 /* Have another chunk after IDAT */ |
#define | PNG_HAVE_CHUNK_HEADER 0x100 |
#define | PNG_HAVE_gAMA 0x20 |
#define | PNG_HAVE_IDAT 0x04 |
#define | PNG_HAVE_IEND 0x10 |
#define | PNG_HAVE_PNG_SIGNATURE 0x1000 |
#define | PNG_HAVE_sRGB 0x80 |
#define | png_hIST PNG_CHUNK(104, 73, 83, 84) |
#define | png_iCCP PNG_CHUNK(105, 67, 67, 80) |
#define | png_IDAT PNG_CHUNK( 73, 68, 65, 84) |
#define | png_IEND PNG_CHUNK( 73, 69, 78, 68) |
#define | png_IHDR PNG_CHUNK( 73, 72, 68, 82) |
#define | PNG_IMPEXP |
#define | PNG_INTERLACE 0x0002 |
#define | PNG_INVERT_ALPHA 0x80000 |
#define | PNG_INVERT_MONO 0x0020 |
#define | png_isaligned(ptr, type) ((((const char*)ptr-(const char*)0) & (png_alignof(type)-1)) == 0) |
#define | png_iTXt PNG_CHUNK(105, 84, 88, 116) |
#define | png_memcmp memcmp /* SJT: added */ |
#define | png_memcpy memcpy |
#define | png_memset memset |
#define | PNG_NUMBER_BUFFER_SIZE 24 |
#define | PNG_NUMBER_FORMAT_02d 2 |
#define | PNG_NUMBER_FORMAT_02u 2 |
#define | PNG_NUMBER_FORMAT_02x 4 |
#define | PNG_NUMBER_FORMAT_d 1 /* chose signed API! */ |
#define | PNG_NUMBER_FORMAT_fixed 5 /* choose the signed API */ |
#define | PNG_NUMBER_FORMAT_u 1 /* chose unsigned API! */ |
#define | PNG_NUMBER_FORMAT_x 3 |
#define | png_oFFs PNG_CHUNK(111, 70, 70, 115) |
#define | PNG_OUT_OF_RANGE(value, ideal, delta) ( (value) < (ideal)-(delta) || (value) > (ideal)+(delta) ) |
#define | PNG_PACK 0x0004 |
#define | PNG_PACKSWAP 0x10000 |
#define | png_pCAL PNG_CHUNK(112, 67, 65, 76) |
#define | png_pHYs PNG_CHUNK(112, 72, 89, 115) |
#define | png_PLTE PNG_CHUNK( 80, 76, 84, 69) |
#define | PNG_PRIVATE |
#define | PNG_QUANTIZE 0x0040 |
#define | PNG_RESTRICT |
#define | PNG_RGB_TO_GRAY 0x600000 /* two bits, RGB_TO_GRAY_ERR|WARN */ |
#define | PNG_RGB_TO_GRAY_ERR 0x200000 |
#define | PNG_RGB_TO_GRAY_WARN 0x400000 |
#define | PNG_RGBA 0x0800 |
#define | PNG_ROWBYTES(pixel_bits, width) |
#define | png_sBIT PNG_CHUNK(115, 66, 73, 84) |
#define | png_sCAL PNG_CHUNK(115, 67, 65, 76) |
#define | PNG_sCAL_MAX_DIGITS (PNG_sCAL_PRECISION+1/*.*/+1/*E*/+10/*exponent*/) |
#define | PNG_SCALE_16_TO_8 0x4000000 /* Added to libpng-1.5.4 */ |
#define | PNG_SHIFT 0x0008 |
#define | png_sPLT PNG_CHUNK(115, 80, 76, 84) |
#define | png_sRGB PNG_CHUNK(115, 82, 71, 66) |
#define | PNG_STATIC static |
#define | png_sTER PNG_CHUNK(115, 84, 69, 82) |
#define | PNG_STRING_FROM_CHUNK(s, c) |
#define | PNG_STRIP_ALPHA 0x40000 |
#define | png_strlen strlen |
#define | PNG_STRUCT_INFO 0x0002 |
#define | PNG_STRUCT_PNG 0x0001 |
#define | PNG_SWAP_ALPHA 0x20000 |
#define | PNG_SWAP_BYTES 0x0010 |
#define | png_tEXt PNG_CHUNK(116, 69, 88, 116) |
#define | png_tIME PNG_CHUNK(116, 73, 77, 69) |
#define | png_tRNS PNG_CHUNK(116, 82, 78, 83) |
#define | PNG_UNUSED(param) (void)param; |
#define | PNG_USE_COMPILE_TIME_MASKS 1 |
#define | PNG_USER_TRANSFORM 0x100000 |
#define | png_voidcast(type, value) (value) |
#define | PNG_WARNING_PARAMETER_COUNT 8 |
#define | PNG_WARNING_PARAMETER_SIZE 32 |
#define | PNG_WARNING_PARAMETERS(p) png_warning_parameters p; |
#define | PNG_WEIGHT_FACTOR (1<<(PNG_WEIGHT_SHIFT)) |
#define | PNG_WROTE_INFO_BEFORE_PLTE 0x400 |
#define | PNG_WROTE_tIME 0x200 |
#define | png_zTXt PNG_CHUNK(122, 84, 88, 116) |
#define | PNGFAPI PNGAPI |
#define | PNGLIB_BUILD /*libpng is being built, not used*/ |
#define | ZLIB_IO_MAX ((uInt)-1) |
Typedefs | |
typedef PNG_CONST png_uint_16p FAR * | png_const_uint_16pp |
typedef char | png_warning_parameters [PNG_WARNING_PARAMETER_COUNT][PNG_WARNING_PARAMETER_SIZE] |
typedef struct png_xy | png_xy |
typedef struct png_XYZ | png_XYZ |
#define _POSIX_SOURCE 1 /* Just the POSIX 1003.1 and C89 APIs */ |
#define CVT_PTR | ( | ptr | ) | (ptr) |
Definition at line 349 of file pngpriv.h.
Referenced by png_default_flush().
#define PNG_16_TO_8 0x0400 /* Becomes 'chop' in 1.5.4 */ |
Definition at line 441 of file pngpriv.h.
Referenced by png_build_gamma_table(), png_do_read_transformations(), png_init_read_transformations(), png_read_transform_info(), and png_set_strip_16().
#define PNG_ABORT | ( | ) | abort() |
Definition at line 326 of file pngpriv.h.
Referenced by PNG_FUNCTION().
#define PNG_ADD_ALPHA 0x1000000 /* Added to libpng-1.2.7 */ |
Definition at line 456 of file pngpriv.h.
Referenced by png_read_transform_info(), and png_set_add_alpha().
#define PNG_ALIGN_ALWAYS 1 /* assume unaligned accesses are OK */ |
#define PNG_ALIGN_OFFSET 2 /* use offsetof to determine alignment */ |
#define PNG_ALIGN_SIZE 3 /* use sizeof to determine alignment */ |
#define PNG_ALIGN_TYPE PNG_ALIGN_SIZE |
#define PNG_BACKGROUND_EXPAND 0x0100 |
Definition at line 439 of file pngpriv.h.
Referenced by png_init_palette_transformations(), png_init_read_transformations(), png_init_rgb_transformations(), png_set_alpha_mode_fixed(), and png_set_background_fixed().
#define PNG_BACKGROUND_IS_GRAY 0x800 |
Definition at line 426 of file pngpriv.h.
Referenced by png_do_read_transformations(), and png_init_read_transformations().
#define PNG_BGR 0x0001 |
Definition at line 431 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_read_row(), png_set_bgr(), and png_write_row().
#define png_bKGD PNG_CHUNK( 98, 75, 71, 68) |
Definition at line 605 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_bKGD().
#define png_cHRM PNG_CHUNK( 99, 72, 82, 77) |
Definition at line 606 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_cHRM_fixed().
Definition at line 643 of file pngpriv.h.
Referenced by png_calculate_crc(), png_crc_error(), and png_crc_finish().
#define PNG_CHUNK_CRITICAL | ( | c | ) | (!PNG_CHUNK_ANCILLIARY(c)) |
Definition at line 644 of file pngpriv.h.
Referenced by png_handle_unknown(), and png_push_handle_unknown().
Definition at line 627 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_push_read_IDAT(), png_read_chunk_header(), png_write_chunk(), and png_write_chunk_start().
#define PNG_COLOR_DIST | ( | c1, | |
c2 | |||
) |
#define PNG_COMPOSE 0x0080 /* Was PNG_BACKGROUND */ |
Definition at line 438 of file pngpriv.h.
Referenced by png_build_gamma_table(), png_do_read_transformations(), png_init_palette_transformations(), png_init_read_transformations(), png_init_rgb_transformations(), png_read_transform_info(), png_set_alpha_mode_fixed(), and png_set_background_fixed().
#define PNG_COST_FACTOR (1<<(PNG_COST_SHIFT)) |
Definition at line 469 of file pngpriv.h.
Referenced by png_init_filter_heuristics(), png_set_filter_heuristics(), and png_set_filter_heuristics_fixed().
Definition at line 639 of file pngpriv.h.
Referenced by png_chunk_unknown_handling(), png_get_io_chunk_name(), png_handle_unknown(), png_push_handle_unknown(), and png_write_chunk_header().
#define PNG_ENCODE_ALPHA 0x800000 /* Added to libpng-1.5.4 */ |
Definition at line 455 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_init_palette_transformations(), png_init_read_transformations(), png_init_rgb_transformations(), png_set_alpha_mode_fixed(), and png_set_background_fixed().
#define PNG_EXPAND 0x1000 |
Definition at line 443 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_init_palette_transformations(), png_init_read_transformations(), png_init_rgb_transformations(), png_read_start_row(), png_read_transform_info(), png_set_expand(), png_set_expand_16(), png_set_expand_gray_1_2_4_to_8(), png_set_palette_to_rgb(), png_set_rgb_to_gray_fixed(), and png_set_tRNS_to_alpha().
#define PNG_EXPAND_16 0x0200 /* Added to libpng 1.5.2 */ |
Definition at line 440 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_init_read_transformations(), png_read_start_row(), png_read_transform_info(), and png_set_expand_16().
#define PNG_EXPAND_tRNS 0x2000000 /* Added to libpng-1.2.9 */ |
Definition at line 457 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_init_palette_transformations(), png_init_read_transformations(), png_init_rgb_transformations(), png_read_transform_info(), png_set_expand(), png_set_expand_16(), png_set_palette_to_rgb(), and png_set_tRNS_to_alpha().
#define PNG_FILLER 0x8000 |
Definition at line 446 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_read_row(), png_read_start_row(), png_read_transform_info(), png_set_filler(), and png_write_row().
#define PNG_FLAG_ASSUME_sRGB 0x1000 /* Added to libpng-1.5.4 */ |
Definition at line 484 of file pngpriv.h.
Referenced by translate_gamma_flags().
#define PNG_FLAG_BENIGN_ERRORS_WARN 0x800000 /* Added to libpng-1.4.0 */ |
Definition at line 495 of file pngpriv.h.
Referenced by png_benign_error(), png_chunk_benign_error(), and png_set_benign_errors().
#define PNG_FLAG_CRC_ANCILLARY_MASK |
Definition at line 504 of file pngpriv.h.
Referenced by png_calculate_crc(), png_crc_error(), and png_set_crc_action().
#define PNG_FLAG_CRC_ANCILLARY_NOWARN 0x0200 |
Definition at line 481 of file pngpriv.h.
Referenced by png_calculate_crc(), png_crc_error(), png_crc_finish(), png_handle_PLTE(), and png_set_crc_action().
#define PNG_FLAG_CRC_ANCILLARY_USE 0x0100 |
Definition at line 480 of file pngpriv.h.
Referenced by png_calculate_crc(), png_crc_error(), png_handle_PLTE(), and png_set_crc_action().
#define PNG_FLAG_CRC_CRITICAL_IGNORE 0x0800 |
Definition at line 483 of file pngpriv.h.
Referenced by png_calculate_crc(), png_crc_error(), and png_set_crc_action().
#define PNG_FLAG_CRC_CRITICAL_MASK |
#define PNG_FLAG_CRC_CRITICAL_USE 0x0400 |
Definition at line 482 of file pngpriv.h.
Referenced by png_crc_finish(), and png_set_crc_action().
#define PNG_FLAG_CRC_MASK |
#define PNG_FLAG_DETECT_UNINITIALIZED 0x4000 /* Added to libpng-1.5.4 */ |
Definition at line 486 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_set_alpha_mode_fixed(), and png_set_expand_16().
#define PNG_FLAG_FILLER_AFTER 0x0080 |
Definition at line 479 of file pngpriv.h.
Referenced by png_do_read_filler(), png_do_write_transformations(), and png_set_filler().
#define PNG_FLAG_KEEP_UNKNOWN_CHUNKS 0x8000 |
Definition at line 487 of file pngpriv.h.
Referenced by png_handle_unknown(), png_push_handle_unknown(), and png_set_keep_unknown_chunks().
#define PNG_FLAG_KEEP_UNSAFE_CHUNKS 0x10000 |
Definition at line 488 of file pngpriv.h.
Referenced by png_set_keep_unknown_chunks(), png_write_end(), png_write_info(), and png_write_info_before_PLTE().
#define PNG_FLAG_LIBRARY_MISMATCH 0x20000 |
Definition at line 489 of file pngpriv.h.
Referenced by png_user_version_check().
#define PNG_FLAG_MALLOC_NULL_MEM_OK 0x100000 |
Definition at line 492 of file pngpriv.h.
Referenced by PNG_FUNCTION().
#define PNG_FLAG_OPTIMIZE_ALPHA 0x2000 /* Added to libpng-1.5.4 */ |
Definition at line 485 of file pngpriv.h.
Referenced by png_do_compose(), png_init_palette_transformations(), png_init_read_transformations(), png_init_rgb_transformations(), png_set_alpha_mode_fixed(), and png_set_background_fixed().
#define PNG_FLAG_ROW_INIT 0x0040 |
Definition at line 478 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_read_image(), png_read_row(), png_read_start_row(), png_set_expand(), png_set_expand_16(), png_set_expand_gray_1_2_4_to_8(), png_set_gray_to_rgb(), png_set_palette_to_rgb(), and png_set_tRNS_to_alpha().
#define PNG_FLAG_STRIP_ERROR_NUMBERS 0x40000 |
Definition at line 490 of file pngpriv.h.
Referenced by PNG_FUNCTION(), and png_warning().
#define PNG_FLAG_STRIP_ERROR_TEXT 0x80000 |
Definition at line 491 of file pngpriv.h.
Referenced by PNG_FUNCTION(), and png_warning().
#define PNG_FLAG_ZLIB_CUSTOM_LEVEL 0x0002 |
Definition at line 473 of file pngpriv.h.
Referenced by png_set_compression_level(), and png_write_IHDR().
#define PNG_FLAG_ZLIB_CUSTOM_MEM_LEVEL 0x0004 |
Definition at line 474 of file pngpriv.h.
Referenced by png_set_compression_mem_level(), and png_write_IHDR().
#define PNG_FLAG_ZLIB_CUSTOM_METHOD 0x0010 |
Definition at line 476 of file pngpriv.h.
Referenced by png_set_compression_method(), and png_write_IHDR().
#define PNG_FLAG_ZLIB_CUSTOM_STRATEGY 0x0001 |
Definition at line 472 of file pngpriv.h.
Referenced by png_set_compression_strategy(), and png_write_IHDR().
#define PNG_FLAG_ZLIB_CUSTOM_WINDOW_BITS 0x0008 |
Definition at line 475 of file pngpriv.h.
Referenced by png_set_compression_window_bits(), and png_write_IHDR().
#define PNG_FLAG_ZLIB_FINISHED 0x0020 |
Definition at line 477 of file pngpriv.h.
Referenced by png_process_IDAT_data(), png_push_read_IDAT(), png_read_finish_row(), and png_read_row().
#define PNG_FLAG_ZTXT_CUSTOM_LEVEL 0x2000000 /* to libpng-1.5.4 */ |
Definition at line 497 of file pngpriv.h.
Referenced by png_set_text_compression_level(), and png_write_IHDR().
#define PNG_FLAG_ZTXT_CUSTOM_MEM_LEVEL 0x4000000 |
Definition at line 498 of file pngpriv.h.
Referenced by png_set_text_compression_mem_level(), and png_write_IHDR().
#define PNG_FLAG_ZTXT_CUSTOM_METHOD 0x10000000 |
Definition at line 500 of file pngpriv.h.
Referenced by png_set_text_compression_method(), and png_write_IHDR().
#define PNG_FLAG_ZTXT_CUSTOM_STRATEGY 0x1000000 /* 5 lines added */ |
Definition at line 496 of file pngpriv.h.
Referenced by png_set_text_compression_strategy(), and png_write_IHDR().
#define PNG_FLAG_ZTXT_CUSTOM_WINDOW_BITS 0x8000000 |
Definition at line 499 of file pngpriv.h.
Referenced by png_set_text_compression_window_bits(), and png_write_IHDR().
#define png_float | ( | png_ptr, | |
fixed, | |||
s | |||
) | (.00001 * (fixed)) |
Definition at line 557 of file pngpriv.h.
Referenced by png_get_cHRM(), png_get_cHRM_XYZ(), and png_get_gAMA().
#define PNG_FORMAT_NUMBER | ( | buffer, | |
format, | |||
number | |||
) | png_format_number(buffer, buffer + (sizeof buffer), format, number) |
Definition at line 1395 of file pngpriv.h.
Referenced by png_warning_parameter_signed(), and png_warning_parameter_unsigned().
Definition at line 1500 of file pngpriv.h.
Referenced by png_check_fp_number().
#define PNG_FP_FRACTION 1 /* before or in fraction */ |
Definition at line 1499 of file pngpriv.h.
Referenced by png_check_fp_number().
#define PNG_FP_INTEGER 0 /* before or in integer */ |
Definition at line 1498 of file pngpriv.h.
Referenced by png_check_fp_number().
#define PNG_FP_IS_NEGATIVE | ( | state | ) | (((state) & PNG_FP_NZ_MASK) == PNG_FP_NZ_MASK) |
#define PNG_FP_IS_POSITIVE | ( | state | ) | (((state) & PNG_FP_NZ_MASK) == PNG_FP_Z_MASK) |
Definition at line 1537 of file pngpriv.h.
Referenced by png_handle_sCAL().
#define PNG_FP_IS_ZERO | ( | state | ) | (((state) & PNG_FP_Z_MASK) == PNG_FP_SAW_DIGIT) |
#define PNG_FP_MAYBE 0 /* The number may be valid in the future */ |
#define PNG_FP_NEGATIVE 128 /* A negative number, including "-0" */ |
Definition at line 1511 of file pngpriv.h.
Referenced by png_check_fp_number().
Definition at line 1512 of file pngpriv.h.
Referenced by png_check_fp_number().
#define PNG_FP_NZ_MASK (PNG_FP_SAW_DIGIT | PNG_FP_NEGATIVE | PNG_FP_NONZERO) |
#define PNG_FP_SAW_ANY 60 /* Saw any of the above 4 */ |
Definition at line 1506 of file pngpriv.h.
Referenced by png_check_fp_number().
Definition at line 1503 of file pngpriv.h.
Referenced by png_check_fp_number().
Definition at line 1504 of file pngpriv.h.
Referenced by png_check_fp_number().
Definition at line 1505 of file pngpriv.h.
Referenced by png_check_fp_number().
Definition at line 1502 of file pngpriv.h.
Referenced by png_check_fp_number().
Definition at line 1501 of file pngpriv.h.
Referenced by png_check_fp_number().
#define PNG_FP_WAS_VALID 64 /* Preceding substring is a valid fp number */ |
Definition at line 1510 of file pngpriv.h.
Referenced by png_check_fp_number().
#define PNG_FP_Z_MASK (PNG_FP_SAW_DIGIT | PNG_FP_NONZERO) |
#define png_gAMA PNG_CHUNK(103, 65, 77, 65) |
Definition at line 607 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_gAMA_fixed().
#define PNG_GAMMA 0x2000 |
Definition at line 444 of file pngpriv.h.
Referenced by png_do_read_transformations(), and png_init_read_transformations().
#define PNG_GAMMA_MAC_INVERSE 65909 |
Definition at line 651 of file pngpriv.h.
Referenced by translate_gamma_flags().
#define PNG_GAMMA_MAC_OLD 151724 /* Assume '1.8' is really 2.2/1.45! */ |
Definition at line 650 of file pngpriv.h.
Referenced by translate_gamma_flags().
#define PNG_GAMMA_sRGB_INVERSE 45455 |
Definition at line 652 of file pngpriv.h.
Referenced by png_set_sRGB_gAMA_and_cHRM(), and translate_gamma_flags().
#define PNG_GRAY_TO_RGB 0x4000 |
Definition at line 445 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_init_read_transformations(), png_read_start_row(), png_read_transform_info(), and png_set_gray_to_rgb().
#define PNG_HAVE_CHUNK_AFTER_IDAT 0x2000 /* Have another chunk after IDAT */ |
Definition at line 428 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
#define PNG_HAVE_CHUNK_HEADER 0x100 |
Definition at line 423 of file pngpriv.h.
Referenced by png_push_read_chunk(), and png_push_read_IDAT().
#define PNG_HAVE_IDAT 0x04 |
Definition at line 417 of file pngpriv.h.
Referenced by png_handle_bKGD(), png_handle_cHRM(), png_handle_gAMA(), png_handle_hIST(), png_handle_IEND(), png_handle_iTXt(), png_handle_oFFs(), png_handle_pCAL(), png_handle_pHYs(), png_handle_PLTE(), png_handle_sBIT(), png_handle_sCAL(), png_handle_sRGB(), png_handle_tEXt(), png_handle_tIME(), png_handle_tRNS(), png_handle_unknown(), png_handle_zTXt(), png_push_read_chunk(), png_read_info(), png_read_row(), png_write_end(), png_write_IDAT(), png_write_info(), and png_write_info_before_PLTE().
#define PNG_HAVE_IEND 0x10 |
Definition at line 419 of file pngpriv.h.
Referenced by png_handle_IEND(), png_push_handle_iTXt(), png_push_handle_tEXt(), png_push_handle_zTXt(), png_read_end(), and png_write_IEND().
#define PNG_HAVE_PNG_SIGNATURE 0x1000 |
Definition at line 427 of file pngpriv.h.
Referenced by png_check_IHDR(), png_read_sig(), png_write_IHDR(), png_write_info_before_PLTE(), and png_write_sig().
#define png_hIST PNG_CHUNK(104, 73, 83, 84) |
Definition at line 608 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_hIST().
#define png_iCCP PNG_CHUNK(105, 67, 67, 80) |
Definition at line 609 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_iCCP().
#define png_IDAT PNG_CHUNK( 73, 68, 65, 84) |
Definition at line 602 of file pngpriv.h.
Referenced by png_handle_unknown(), png_push_read_chunk(), png_push_read_IDAT(), png_read_end(), png_read_finish_row(), png_read_info(), png_read_row(), and png_write_IDAT().
#define png_IEND PNG_CHUNK( 73, 69, 78, 68) |
Definition at line 603 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_IEND().
#define png_IHDR PNG_CHUNK( 73, 72, 68, 82) |
Definition at line 601 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_IHDR().
#define PNG_INTERLACE 0x0002 |
Definition at line 432 of file pngpriv.h.
Referenced by png_combine_row(), png_push_process_row(), png_read_finish_row(), png_read_image(), png_read_push_finish_row(), png_read_row(), png_read_start_row(), png_set_interlace_handling(), png_write_finish_row(), png_write_row(), and png_write_start_row().
#define PNG_INVERT_ALPHA 0x80000 |
Definition at line 450 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_init_palette_transformations(), png_set_invert_alpha(), and png_write_info().
#define PNG_INVERT_MONO 0x0020 |
Definition at line 436 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_read_row(), png_set_invert_mono(), and png_write_row().
#define png_isaligned | ( | ptr, | |
type | |||
) | ((((const char*)ptr-(const char*)0) & (png_alignof(type)-1)) == 0) |
Definition at line 397 of file pngpriv.h.
Referenced by png_combine_row().
#define png_iTXt PNG_CHUNK(105, 84, 88, 116) |
Definition at line 610 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_iTXt().
#define png_memcmp memcmp /* SJT: added */ |
Definition at line 352 of file pngpriv.h.
Referenced by png_handle_as_unknown(), and png_sig_cmp().
#define png_memcpy memcpy |
Definition at line 353 of file pngpriv.h.
Referenced by png_combine_row(), png_decompress_chunk(), png_do_read_interlace(), png_do_write_interlace(), PNG_FUNCTION(), png_inflate(), png_push_fill_buffer(), png_push_process_row(), png_push_read_zTXt(), png_push_save_buffer(), png_read_destroy(), png_read_row(), png_set_background_fixed(), png_set_bKGD(), png_set_iCCP(), png_set_keep_unknown_chunks(), png_set_pCAL(), png_set_PLTE(), png_set_sBIT(), png_set_sCAL_s(), png_set_sPLT(), png_set_text_2(), png_set_tIME(), png_set_tRNS(), png_set_unknown_chunks(), png_text_compress(), png_write_destroy(), png_write_row(), and png_write_sCAL_s().
#define png_memset memset |
Definition at line 354 of file pngpriv.h.
Referenced by PNG_FUNCTION(), png_info_init_3(), png_read_destroy(), png_read_finish_row(), png_read_push_finish_row(), png_read_start_row(), png_set_alpha_mode_fixed(), png_set_pCAL(), png_set_quantize(), png_write_destroy(), and png_write_finish_row().
#define PNG_NUMBER_BUFFER_SIZE 24 |
Definition at line 1399 of file pngpriv.h.
Referenced by png_warning_parameter_signed(), and png_warning_parameter_unsigned().
#define PNG_NUMBER_FORMAT_02u 2 |
Definition at line 1405 of file pngpriv.h.
Referenced by png_convert_to_rfc1123(), and png_format_number().
#define PNG_NUMBER_FORMAT_02x 4 |
Definition at line 1409 of file pngpriv.h.
Referenced by png_check_keyword(), and png_format_number().
#define PNG_NUMBER_FORMAT_d 1 /* chose signed API! */ |
Definition at line 1406 of file pngpriv.h.
Referenced by png_decompress_chunk(), png_text_compress(), and png_zlib_release().
#define PNG_NUMBER_FORMAT_fixed 5 /* choose the signed API */ |
Definition at line 1410 of file pngpriv.h.
Referenced by png_format_number(), png_handle_cHRM(), png_handle_gAMA(), and png_handle_sRGB().
#define PNG_NUMBER_FORMAT_u 1 /* chose unsigned API! */ |
Definition at line 1404 of file pngpriv.h.
Referenced by if(), png_convert_to_rfc1123(), and png_format_number().
#define PNG_NUMBER_FORMAT_x 3 |
Definition at line 1408 of file pngpriv.h.
Referenced by png_format_number().
#define png_oFFs PNG_CHUNK(111, 70, 70, 115) |
Definition at line 611 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_oFFs().
#define PNG_OUT_OF_RANGE | ( | value, | |
ideal, | |||
delta | |||
) | ( (value) < (ideal)-(delta) || (value) > (ideal)+(delta) ) |
Definition at line 542 of file pngpriv.h.
Referenced by png_handle_cHRM(), png_handle_gAMA(), and png_handle_sRGB().
#define PNG_PACK 0x0004 |
Definition at line 433 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_read_row(), png_read_start_row(), png_read_transform_info(), png_set_packing(), and png_write_row().
#define PNG_PACKSWAP 0x10000 |
Definition at line 447 of file pngpriv.h.
Referenced by png_combine_row(), png_do_read_interlace(), png_do_read_transformations(), png_do_write_transformations(), png_read_row(), png_set_packswap(), and png_write_row().
#define png_pCAL PNG_CHUNK(112, 67, 65, 76) |
Definition at line 612 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_pCAL().
#define png_pHYs PNG_CHUNK(112, 72, 89, 115) |
Definition at line 614 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_pHYs().
#define png_PLTE PNG_CHUNK( 80, 76, 84, 69) |
Definition at line 604 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_PLTE().
#define PNG_QUANTIZE 0x0040 |
Definition at line 437 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_read_transform_info(), and png_set_quantize().
#define PNG_RGB_TO_GRAY 0x600000 /* two bits, RGB_TO_GRAY_ERR|WARN */ |
Definition at line 454 of file pngpriv.h.
Referenced by png_build_gamma_table(), png_do_read_transformations(), png_init_read_transformations(), png_read_transform_info(), and png_set_rgb_to_gray_fixed().
#define PNG_RGB_TO_GRAY_ERR 0x200000 |
Definition at line 452 of file pngpriv.h.
Referenced by png_do_read_transformations(), and png_set_rgb_to_gray_fixed().
#define PNG_RGB_TO_GRAY_WARN 0x400000 |
Definition at line 453 of file pngpriv.h.
Referenced by png_do_read_transformations(), and png_set_rgb_to_gray_fixed().
#define PNG_ROWBYTES | ( | pixel_bits, | |
width | |||
) |
Definition at line 532 of file pngpriv.h.
Referenced by png_combine_row(), png_do_expand(), png_do_gray_to_rgb(), png_do_pack(), png_do_quantize(), png_do_read_interlace(), png_do_read_transformations(), png_do_rgb_to_gray(), png_do_write_interlace(), png_handle_IHDR(), png_process_IDAT_data(), png_push_process_row(), png_push_read_chunk(), png_read_row(), png_read_start_row(), png_read_transform_info(), png_set_IHDR(), png_write_finish_row(), png_write_IHDR(), png_write_row(), and png_write_start_row().
#define png_sBIT PNG_CHUNK(115, 66, 73, 84) |
Definition at line 615 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sBIT().
#define png_sCAL PNG_CHUNK(115, 67, 65, 76) |
Definition at line 613 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sCAL_s().
#define PNG_sCAL_MAX_DIGITS (PNG_sCAL_PRECISION+1/*.*/+1/*E*/+10/*exponent*/) |
Definition at line 1454 of file pngpriv.h.
Referenced by png_set_sCAL(), and png_set_sCAL_fixed().
#define PNG_SCALE_16_TO_8 0x4000000 /* Added to libpng-1.5.4 */ |
Definition at line 458 of file pngpriv.h.
Referenced by png_build_gamma_table(), png_do_read_transformations(), png_init_read_transformations(), png_read_transform_info(), and png_set_scale_16().
#define PNG_SHIFT 0x0008 |
Definition at line 434 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_init_read_transformations(), png_read_row(), png_set_shift(), and png_write_row().
#define png_sPLT PNG_CHUNK(115, 80, 76, 84) |
Definition at line 616 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sPLT().
#define png_sRGB PNG_CHUNK(115, 82, 71, 66) |
Definition at line 617 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_sRGB().
#define png_sTER PNG_CHUNK(115, 84, 69, 82) |
Definition at line 618 of file pngpriv.h.
Referenced by test_one_file().
#define PNG_STRIP_ALPHA 0x40000 |
Definition at line 449 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_init_read_transformations(), png_read_transform_info(), png_set_background_fixed(), and png_set_strip_alpha().
#define png_strlen strlen |
Definition at line 351 of file pngpriv.h.
Referenced by png_check_keyword(), png_handle_iTXt(), png_handle_tEXt(), png_push_read_iTXt(), png_set_iCCP(), png_set_pCAL(), png_set_sCAL_s(), png_set_sPLT(), png_set_text_2(), png_write_iTXt(), png_write_pCAL(), png_write_sCAL_s(), png_write_tEXt(), and png_write_zTXt().
#define PNG_STRUCT_INFO 0x0002 |
Definition at line 465 of file pngpriv.h.
Referenced by PNG_FUNCTION(), and png_info_init_3().
#define PNG_STRUCT_PNG 0x0001 |
Definition at line 464 of file pngpriv.h.
Referenced by PNG_FUNCTION().
#define PNG_SWAP_ALPHA 0x20000 |
Definition at line 448 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), and png_set_swap_alpha().
#define PNG_SWAP_BYTES 0x0010 |
Definition at line 435 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_read_row(), png_set_swap(), and png_write_row().
#define png_tEXt PNG_CHUNK(116, 69, 88, 116) |
Definition at line 619 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_tEXt().
#define png_tIME PNG_CHUNK(116, 73, 77, 69) |
Definition at line 620 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_tIME().
#define png_tRNS PNG_CHUNK(116, 82, 78, 83) |
Definition at line 621 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_tRNS().
Definition at line 181 of file pngpriv.h.
Referenced by png_default_warning(), png_do_read_interlace(), PNG_FUNCTION(), png_get_copyright(), png_get_header_ver(), png_get_header_version(), png_handle_IEND(), png_handle_unknown(), png_push_handle_iTXt(), png_push_handle_tEXt(), png_push_handle_unknown(), png_push_handle_zTXt(), png_read_filter_row_sub(), png_read_png(), png_read_update_info(), png_set_error_fn(), and png_write_png().
#define PNG_USER_TRANSFORM 0x100000 |
Definition at line 451 of file pngpriv.h.
Referenced by png_do_read_transformations(), png_do_write_transformations(), png_read_start_row(), png_read_transform_info(), png_set_read_user_transform_fn(), and png_set_write_user_transform_fn().
#define PNG_WARNING_PARAMETER_COUNT 8 |
Definition at line 1416 of file pngpriv.h.
Referenced by png_formatted_warning(), and png_warning_parameter().
#define PNG_WARNING_PARAMETERS | ( | p | ) | png_warning_parameters p; |
Definition at line 221 of file pngpriv.h.
Referenced by if(), png_check_keyword(), png_decompress_chunk(), png_handle_cHRM(), png_handle_gAMA(), png_handle_sRGB(), png_text_compress(), and png_zlib_release().
#define PNG_WEIGHT_FACTOR (1<<(PNG_WEIGHT_SHIFT)) |
Definition at line 468 of file pngpriv.h.
Referenced by png_init_filter_heuristics(), png_set_filter_heuristics(), and png_set_filter_heuristics_fixed().
#define PNG_WROTE_INFO_BEFORE_PLTE 0x400 |
Definition at line 425 of file pngpriv.h.
Referenced by png_write_info_before_PLTE(), and png_write_row().
#define PNG_WROTE_tIME 0x200 |
Definition at line 424 of file pngpriv.h.
Referenced by png_set_tIME(), png_write_end(), and png_write_info().
#define png_zTXt PNG_CHUNK(122, 84, 88, 116) |
Definition at line 622 of file pngpriv.h.
Referenced by png_push_read_chunk(), png_read_end(), png_read_info(), and png_write_zTXt().
#define ZLIB_IO_MAX ((uInt)-1) |
Definition at line 522 of file pngpriv.h.
Referenced by png_inflate(), png_set_compression_buffer_size(), and png_write_filtered_row().
typedef PNG_CONST png_uint_16p FAR* png_const_uint_16pp |
typedef char png_warning_parameters[PNG_WARNING_PARAMETER_COUNT][PNG_WARNING_PARAMETER_SIZE] |
PNG_EXTERN void png_destroy_gamma_table | ( | png_structp | png_ptr | ) |
Definition at line 2683 of file png.c.
References i, NULL, and png_free().
Referenced by png_build_gamma_table(), and png_read_destroy().
PNG_EXTERN png_charp png_format_number | ( | png_const_charp | start, |
png_charp | end, | ||
int | format, | ||
png_alloc_size_t | number | ||
) |
Definition at line 131 of file pngerror.c.
References sort_controllers::output, PNG_NUMBER_FORMAT_02u, PNG_NUMBER_FORMAT_02x, PNG_NUMBER_FORMAT_fixed, PNG_NUMBER_FORMAT_u, and PNG_NUMBER_FORMAT_x.
PNG_EXTERN void png_formatted_warning | ( | png_structp | png_ptr, |
png_warning_parameters | p, | ||
png_const_charp | message | ||
) |
Definition at line 281 of file pngerror.c.
References i, NULL, png_warning(), and PNG_WARNING_PARAMETER_COUNT.
Referenced by if(), png_check_keyword(), png_decompress_chunk(), png_handle_cHRM(), png_handle_gAMA(), png_handle_sRGB(), png_text_compress(), and png_zlib_release().
PNG_EXTERN PNG_FUNCTION | ( | png_voidp | , |
png_create_struct | , | ||
PNGARG((int type)) | , | ||
PNG_ALLOCATED | |||
) |
PNG_EXTERN PNG_FUNCTION | ( | png_voidp | , |
png_create_struct_2 | , | ||
PNGARG((int type, png_malloc_ptr malloc_fn, png_voidp mem_ptr)) | , | ||
PNG_ALLOCATED | |||
) |
PNG_EXTERN PNG_FUNCTION | ( | voidpf | , |
png_zalloc | , | ||
PNGARG((voidpf png_ptr, uInt items, uInt size)) | , | ||
PNG_ALLOCATED | |||
) |
PNG_EXTERN PNG_FUNCTION | ( | void | , |
png_fixed_error | , | ||
(png_structp png_ptr, png_const_charp name) | , | ||
PNG_NORETURN | |||
) |
Definition at line 476 of file pngerror.c.
References fixed_message, fixed_message_ln, NULL, png_error(), PNG_MAX_ERROR_TEXT, and png_memcpy.
PNG_EXTERN size_t png_safecat | ( | png_charp | buffer, |
size_t | bufsize, | ||
size_t | pos, | ||
png_const_charp | string | ||
) |
Definition at line 110 of file pngerror.c.
References NULL.
Referenced by png_user_version_check(), png_warning_parameter(), and png_zlib_claim().
PNG_EXTERN int png_user_version_check | ( | png_structp | png_ptr, |
png_const_charp | user_png_ver | ||
) |
Definition at line 172 of file png.c.
References i, NULL, PNG_FLAG_LIBRARY_MISMATCH, png_libpng_ver, png_safecat(), and png_warning().
Referenced by PNG_FUNCTION().
PNG_EXTERN void png_warning_parameter | ( | png_warning_parameters | p, |
int | number, | ||
png_const_charp | string | ||
) |
Definition at line 244 of file pngerror.c.
References png_safecat(), and PNG_WARNING_PARAMETER_COUNT.
Referenced by png_warning_parameter_signed(), png_warning_parameter_unsigned(), and png_zlib_release().
PNG_EXTERN void png_warning_parameter_signed | ( | png_warning_parameters | p, |
int | number, | ||
int | format, | ||
png_int_32 | value | ||
) |
Definition at line 260 of file pngerror.c.
References PNG_FORMAT_NUMBER, PNG_NUMBER_BUFFER_SIZE, png_warning_parameter(), str, and u.
Referenced by png_decompress_chunk(), png_handle_cHRM(), png_handle_gAMA(), png_handle_sRGB(), png_text_compress(), and png_zlib_release().
PNG_EXTERN void png_warning_parameter_unsigned | ( | png_warning_parameters | p, |
int | number, | ||
int | format, | ||
png_alloc_size_t | value | ||
) |
Definition at line 252 of file pngerror.c.
References PNG_FORMAT_NUMBER, PNG_NUMBER_BUFFER_SIZE, and png_warning_parameter().
Referenced by if(), and png_check_keyword().
PNG_EXTERN png_fixed_point png_fixed PNGARG | ( | (png_structp png_ptr, double fp, png_const_charp text) | ) |
PNG_EXTERN void png_destroy_struct PNGARG | ( | (png_voidp struct_ptr) | ) |
PNG_EXTERN void png_destroy_struct_2 PNGARG | ( | (png_voidp struct_ptr, png_free_ptr free_fn, png_voidp mem_ptr) | ) |
PNG_EXTERN void png_push_read_iTXt PNGARG | ( | (png_structp png_ptr, png_infop info_ptr) | ) |
PNG_EXTERN void png_zfree PNGARG | ( | (voidpf png_ptr, voidpf ptr) | ) |
PNG_EXTERN void png_write_IDAT PNGARG | ( | (png_structp png_ptr, png_bytep data, png_size_t length) | ) |
PNG_EXTERN void PNGCBAPI png_push_fill_buffer PNGARG | ( | (png_structp png_ptr, png_bytep buffer, png_size_t length) | ) |
PNG_EXTERN void png_write_destroy PNGARG | ( | (png_structp png_ptr) | ) |
PNG_EXTERN void png_write_data PNGARG | ( | (png_structp png_ptr, png_const_bytep data, png_size_t length) | ) |
PNG_EXTERN void png_crc_read PNGARG | ( | (png_structp png_ptr, png_bytep buf, png_size_t length) | ) |
PNG_EXTERN void png_decompress_chunk PNGARG | ( | (png_structp png_ptr, int comp_type, png_size_t chunklength, png_size_t prefix_length, png_size_t *data_length) | ) |
PNG_EXTERN int png_crc_finish PNGARG | ( | (png_structp png_ptr, png_uint_32 skip) | ) |
PNG_EXTERN void png_calculate_crc PNGARG | ( | (png_structp png_ptr, png_const_bytep ptr, png_size_t length) | ) |
PNG_EXTERN void png_write_IHDR PNGARG | ( | (png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_method, int filter_method, int interlace_method) | ) |
PNG_EXTERN void png_write_PLTE PNGARG | ( | (png_structp png_ptr, png_const_colorp palette, png_uint_32 num_pal) | ) |
PNG_EXTERN void png_write_gAMA PNGARG | ( | (png_structp png_ptr, double file_gamma) | ) |
PNG_EXTERN void png_write_gAMA_fixed PNGARG | ( | (png_structp png_ptr, png_fixed_point file_gamma) | ) |
PNG_EXTERN void png_write_sBIT PNGARG | ( | (png_structp png_ptr, png_const_color_8p sbit, int color_type) | ) |
PNG_EXTERN void png_write_cHRM PNGARG | ( | (png_structp png_ptr, double white_x, double white_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y) | ) |
PNG_EXTERN int png_check_cHRM_fixed PNGARG | ( | (png_structp png_ptr, png_fixed_point int_white_x, png_fixed_point int_white_y, png_fixed_point int_red_x, png_fixed_point int_red_y, png_fixed_pointint_green_x, png_fixed_point int_green_y, png_fixed_point int_blue_x, png_fixed_point int_blue_y) | ) |
PNG_EXTERN void png_write_sRGB PNGARG | ( | (png_structp png_ptr, int intent) | ) |
PNG_EXTERN void png_write_iCCP PNGARG | ( | (png_structp png_ptr, png_const_charp name, int compression_type, png_const_charp profile, int proflen) | ) |
PNG_EXTERN void png_write_sPLT PNGARG | ( | (png_structp png_ptr, png_const_sPLT_tp palette) | ) |
PNG_EXTERN void png_write_tRNS PNGARG | ( | (png_structp png_ptr, png_const_bytep trans, png_const_color_16p values, int number, int color_type) | ) |
PNG_EXTERN void png_write_bKGD PNGARG | ( | (png_structp png_ptr, png_const_color_16p values, int color_type) | ) |
PNG_EXTERN void png_write_hIST PNGARG | ( | (png_structp png_ptr, png_const_uint_16p hist, int num_hist) | ) |
PNG_EXTERN png_size_t png_check_keyword PNGARG | ( | (png_structp png_ptr, png_const_charp key, png_charpp new_key) | ) |
PNG_EXTERN void png_write_tEXt PNGARG | ( | (png_structp png_ptr, png_const_charp key, png_const_charp text, png_size_t text_len) | ) |
PNG_EXTERN void png_write_zTXt PNGARG | ( | (png_structp png_ptr, png_const_charp key, png_const_charp text, png_size_t text_len, int compression) | ) |
PNG_EXTERN void png_write_iTXt PNGARG | ( | (png_structp png_ptr, int compression, png_const_charp key, png_const_charp lang, png_const_charp lang_key, png_const_charp text) | ) |
PNG_EXTERN int png_set_text_2 PNGARG | ( | (png_structp png_ptr, png_infop info_ptr, png_const_textp text_ptr, int num_text) | ) |
PNG_EXTERN void png_write_oFFs PNGARG | ( | (png_structp png_ptr, png_int_32 x_offset, png_int_32 y_offset, int unit_type) | ) |
PNG_EXTERN void png_write_pCAL PNGARG | ( | (png_structp png_ptr, png_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_const_charp units, png_charpp params) | ) |
PNG_EXTERN void png_write_pHYs PNGARG | ( | (png_structp png_ptr, png_uint_32 x_pixels_per_unit, png_uint_32 y_pixels_per_unit, int unit_type) | ) |
PNG_EXTERN void png_write_tIME PNGARG | ( | (png_structp png_ptr, png_const_timep mod_time) | ) |
PNG_EXTERN void png_write_sCAL_s PNGARG | ( | (png_structp png_ptr, int unit, png_const_charp width, png_const_charp height) | ) |
PNG_EXTERN void png_combine_row PNGARG | ( | (png_structp png_ptr, png_bytep row, int display) | ) |
PNG_EXTERN void png_do_read_interlace PNGARG | ( | (png_row_infop row_info, png_bytep row, int pass, png_uint_32 transformations) | ) |
PNG_EXTERN void png_do_write_interlace PNGARG | ( | (png_row_infop row_info, png_bytep row, int pass) | ) |
PNG_EXTERN void png_read_filter_row PNGARG | ( | (png_structp pp, png_row_infop row_info, png_bytep row, png_const_bytep prev_row, int filter) | ) |
PNG_EXTERN void png_read_filter_row_paeth4_neon PNGARG | ( | (png_row_infop row_info, png_bytep row, png_const_bytep prev_row) | ) |
PNG_EXTERN void png_do_write_transformations PNGARG | ( | (png_structp png_ptr, png_row_infop row_info) | ) |
PNG_EXTERN void png_do_read_filler PNGARG | ( | (png_row_infop row_info, png_bytep row, png_uint_32 filler, png_uint_32 flags) | ) |
PNG_EXTERN void png_do_write_intrapixel PNGARG | ( | (png_row_infop row_info, png_bytep row) | ) |
PNG_EXTERN void png_do_strip_channel PNGARG | ( | (png_row_infop row_info, png_bytep row, int at_start) | ) |
PNG_EXTERN int png_do_rgb_to_gray PNGARG | ( | (png_structp png_ptr, png_row_infop row_info, png_bytep row) | ) |
PNG_EXTERN void png_do_unshift PNGARG | ( | (png_row_infop row_info, png_bytep row, png_const_color_8p sig_bits) | ) |
PNG_EXTERN void png_do_quantize PNGARG | ( | (png_row_infop row_info, png_bytep row, png_const_bytep palette_lookup, png_const_bytep quantize_lookup) | ) |
PNG_EXTERN void png_do_pack PNGARG | ( | (png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) | ) |
PNG_EXTERN void png_do_shift PNGARG | ( | (png_row_infop row_info, png_bytep row, png_const_color_8p bit_depth) | ) |
PNG_EXTERN void png_do_encode_alpha PNGARG | ( | (png_row_infop row_info, png_bytep row, png_structp png_ptr) | ) |
PNG_EXTERN void png_do_expand_palette PNGARG | ( | (png_row_infop row_info, png_bytep row, png_const_colorp palette, png_const_bytep trans, int num_trans) | ) |
PNG_EXTERN void png_do_expand PNGARG | ( | (png_row_infop row_info, png_bytep row, png_const_color_16p trans_color) | ) |
PNG_EXTERN void png_push_handle_iTXt PNGARG | ( | (png_structp png_ptr, png_infop info_ptr, png_uint_32 length) | ) |
PNG_EXTERN int png_chunk_unknown_handling PNGARG | ( | (png_structp png_ptr, png_uint_32 chunk_name) | ) |
PNG_EXTERN void png_push_crc_skip PNGARG | ( | (png_structp png_ptr, png_uint_32 length) | ) |
PNG_EXTERN void png_process_IDAT_data PNGARG | ( | (png_structp png_ptr, png_bytep buffer, png_size_t buffer_length) | ) |
PNG_EXTERN void png_push_have_row PNGARG | ( | (png_structp png_ptr, png_bytep row) | ) |
PNG_EXTERN void png_64bit_product PNGARG | ( | (long v1, long v2, unsigned long *hi_product, unsigned long *lo_product) | ) |
PNG_EXTERN int png_xy_from_XYZ PNGARG | ( | (png_xy *xy, png_XYZ XYZ) | ) |
PNG_EXTERN int png_XYZ_from_xy PNGARG | ( | (png_XYZ *XYZ, png_xy xy) | ) |
PNG_EXTERN int png_XYZ_from_xy_checked PNGARG | ( | (png_structp png_ptr, png_XYZ *XYZ, png_xy xy) | ) |
PNG_EXTERN void png_check_IHDR PNGARG | ( | (png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) | ) |
PNG_EXTERN void png_read_destroy PNGARG | ( | (png_structp png_ptr, png_infop info_ptr, png_infop end_info_ptr) | ) |
PNG_EXTERN void png_ascii_from_fp PNGARG | ( | (png_structp png_ptr, png_charp ascii, png_size_t size, double fp, unsigned int precision) | ) |
PNG_EXTERN void png_ascii_from_fixed PNGARG | ( | (png_structp png_ptr, png_charp ascii, png_size_t size, png_fixed_point fp) | ) |
PNG_EXTERN int png_check_fp_number PNGARG | ( | (png_const_charp string, png_size_t size, int *statep, png_size_tp whereami) | ) |
PNG_EXTERN int png_check_fp_string PNGARG | ( | (png_const_charp string, png_size_t size) | ) |
PNG_EXTERN int png_muldiv PNGARG | ( | (png_fixed_point_p res, png_fixed_point a, png_int_32 multiplied_by, png_int_32 divided_by) | ) |
PNG_EXTERN png_fixed_point png_muldiv_warn PNGARG | ( | (png_structp png_ptr, png_fixed_point a, png_int_32 multiplied_by, png_int_32 divided_by) | ) |
PNG_EXTERN png_fixed_point png_reciprocal PNGARG | ( | (png_fixed_point a) | ) |
PNG_EXTERN png_fixed_point png_reciprocal2 PNGARG | ( | (png_fixed_point a, png_fixed_point b) | ) |
PNG_EXTERN png_uint_16 png_gamma_correct PNGARG | ( | (png_structp png_ptr, unsigned int value, png_fixed_point gamma_value) | ) |
PNG_EXTERN int png_gamma_significant PNGARG | ( | (png_fixed_point gamma_value) | ) |
PNG_EXTERN png_byte png_gamma_8bit_correct PNGARG | ( | (unsigned int value, png_fixed_point gamma_value) | ) |
PNG_EXTERN void png_build_gamma_table PNGARG | ( | (png_structp png_ptr, int bit_depth) | ) |