#include "png.h"
Go to the source code of this file.
Definition at line 2275 of file pngrutil.c.
#define PNG_INTERNAL |
Definition at line 14 of file pngrutil.c.
void png_check_chunk_name | ( | png_structp | png_ptr, | |
png_bytep | chunk_name | |||
) |
Definition at line 2278 of file pngrutil.c.
References isnonalpha, png_chunk_error(), and png_debug.
Referenced by png_handle_unknown(), and png_push_handle_unknown().
void png_combine_row | ( | png_structp | png_ptr, | |
png_bytep | row, | |||
int | mask | |||
) |
Definition at line 2300 of file pngrutil.c.
References i, m, png_bytep, png_debug, png_memcpy, png_size_t, png_uint_32, value, x01, x03, and x80.
Referenced by png_progressive_combine_row(), and png_read_row().
int png_crc_error | ( | png_structp | png_ptr | ) |
Definition at line 145 of file pngrutil.c.
References png_get_uint_32(), png_read_data(), png_uint_32, and x20.
Referenced by png_crc_finish(), and png_handle_PLTE().
int png_crc_finish | ( | png_structp | png_ptr, | |
png_uint_32 | skip | |||
) |
Definition at line 109 of file pngrutil.c.
References i, png_chunk_error(), png_chunk_warning(), png_crc_error(), png_crc_read(), png_size_t, and x20.
Referenced by png_handle_bKGD(), png_handle_cHRM(), png_handle_gAMA(), png_handle_hIST(), png_handle_iCCP(), png_handle_IEND(), png_handle_IHDR(), png_handle_oFFs(), png_handle_pCAL(), png_handle_pHYs(), png_handle_PLTE(), png_handle_sBIT(), png_handle_sCAL(), png_handle_sPLT(), png_handle_sRGB(), png_handle_tEXt(), png_handle_tIME(), png_handle_tRNS(), png_handle_unknown(), png_handle_zTXt(), png_push_crc_finish(), png_push_read_IDAT(), png_read_end(), png_read_finish_row(), and png_read_row().
void png_crc_read | ( | png_structp | png_ptr, | |
png_bytep | buf, | |||
png_size_t | length | |||
) |
Definition at line 97 of file pngrutil.c.
References NULL, png_calculate_crc(), and png_read_data().
Referenced by png_crc_finish(), png_handle_bKGD(), png_handle_cHRM(), png_handle_gAMA(), png_handle_hIST(), png_handle_iCCP(), png_handle_IHDR(), png_handle_oFFs(), png_handle_pCAL(), png_handle_pHYs(), png_handle_PLTE(), png_handle_sBIT(), png_handle_sCAL(), png_handle_sPLT(), png_handle_sRGB(), png_handle_tEXt(), png_handle_tIME(), png_handle_tRNS(), png_handle_unknown(), png_handle_zTXt(), png_push_handle_unknown(), png_push_read_chunk(), png_push_read_IDAT(), png_push_read_tEXt(), png_push_read_zTXt(), png_read_end(), png_read_finish_row(), png_read_info(), and png_read_row().
png_charp png_decompress_chunk | ( | png_structp | png_ptr, | |
int | comp_type, | |||
png_charp | chunkdata, | |||
png_size_t | chunklength, | |||
png_size_t | prefix_size, | |||
png_size_t * | newlength | |||
) |
Definition at line 184 of file pngrutil.c.
References inflate(), inflateReset(), NULL, png_bytep, PNG_COMPRESSION_TYPE_BASE, PNG_CONST, png_error(), png_free(), png_malloc_warn(), png_memcpy, png_size_t, png_sizeof, png_snprintf, png_uint_32, png_warning(), text(), Z_BUF_ERROR, Z_DATA_ERROR, Z_OK, Z_PARTIAL_FLUSH, and Z_STREAM_END.
Referenced by png_handle_iCCP(), and png_handle_zTXt().
void png_do_read_interlace | ( | png_structp | png_ptr | ) |
Definition at line 2506 of file pngrutil.c.
References for(), i, int, j, NULL, png_bytep, PNG_CONST, png_debug, png_memcpy, png_pass_inc, PNG_READ_PACKSWAP_SUPPORTED, png_size_t, png_uint_32, row, x01, x03, and x07.
Referenced by png_push_process_row().
png_int_32 PNGAPI png_get_int_32 | ( | png_bytep | buf | ) |
Definition at line 74 of file pngrutil.c.
References i.
Referenced by png_handle_oFFs(), and png_handle_pCAL().
png_uint_16 PNGAPI png_get_uint_16 | ( | png_bytep | buf | ) |
Definition at line 86 of file pngrutil.c.
References i.
Referenced by png_handle_bKGD(), png_handle_hIST(), png_handle_sPLT(), png_handle_tIME(), and png_handle_tRNS().
png_uint_32 PNGAPI png_get_uint_31 | ( | png_structp | png_ptr, | |
png_bytep | buf | |||
) |
Definition at line 50 of file pngrutil.c.
References i, png_error(), png_get_uint_32(), PNG_UINT_31_MAX, and png_uint_32.
Referenced by png_handle_IHDR(), png_push_read_chunk(), png_push_read_IDAT(), png_read_end(), png_read_finish_row(), png_read_info(), and png_read_row().
png_uint_32 PNGAPI png_get_uint_32 | ( | png_bytep | buf | ) |
Definition at line 60 of file pngrutil.c.
References i, and png_uint_32.
Referenced by png_crc_error(), png_get_uint_31(), png_handle_cHRM(), png_handle_gAMA(), and png_handle_pHYs().
void png_handle_bKGD | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1342 of file pngrutil.c.
References buf, NULL, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_PALETTE, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_16(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_bKGD, png_set_bKGD(), png_size_t, and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_cHRM | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 726 of file pngrutil.c.
References blue_x, blue_y, buf, fprintf(), green_x, green_y, RooFitShortHand::L(), NULL, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_32(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_cHRM, PNG_INFO_sRGB, PNG_READ_sRGB_SUPPORTED, png_set_cHRM(), png_set_cHRM_fixed(), png_uint_32, png_warning(), red_x, red_y, white_x, and white_y.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_gAMA | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 579 of file pngrutil.c.
References buf, file_gamma, fprintf(), RooFitShortHand::L(), NULL, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_32(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_gAMA, PNG_INFO_sRGB, PNG_READ_sRGB_SUPPORTED, png_set_gAMA(), png_set_gAMA_fixed(), and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_hIST | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1431 of file pngrutil.c.
References buf, i, NULL, num, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_16(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_hIST, PNG_MAX_PALETTE_LENGTH, png_set_hIST(), and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_iCCP | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 987 of file pngrutil.c.
References compression_type, RooFitShortHand::L(), NULL, png_bytep, png_crc_finish(), png_crc_read(), png_debug, png_decompress_chunk(), png_error(), png_free(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_iCCP, png_malloc(), png_set_iCCP(), png_size_t, png_uint_32, png_warning(), and profile.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_IEND | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 557 of file pngrutil.c.
References PNG_AFTER_IDAT, png_crc_finish(), png_debug, png_error(), PNG_HAVE_IDAT, PNG_HAVE_IEND, PNG_HAVE_IHDR, and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_IHDR | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 348 of file pngrutil.c.
References bit_depth, buf, color_type, compression_type, height, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, png_crc_finish(), png_crc_read(), png_debug, png_debug1, png_error(), png_get_uint_31(), PNG_HAVE_IHDR, png_set_IHDR(), png_uint_32, and width.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_oFFs | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1528 of file pngrutil.c.
References buf, NULL, offset_x, offset_y, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_int_32(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_INFO_oFFs, png_set_oFFs(), png_warning(), and unit_type.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_pCAL | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1572 of file pngrutil.c.
References buf, i, int, nparams, NULL, params, png_bytep, png_crc_finish(), png_crc_read(), png_debug, png_debug1, PNG_EQUATION_ARBITRARY, PNG_EQUATION_BASE_E, PNG_EQUATION_HYPERBOLIC, PNG_EQUATION_LAST, PNG_EQUATION_LINEAR, png_error(), png_free(), png_get_int_32(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_INFO_pCAL, png_malloc_warn(), png_set_pCAL(), png_size_t, png_sizeof, png_uint_32, png_warning(), purpose, type, units, X0, and X1.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_pHYs | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1485 of file pngrutil.c.
References buf, NULL, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_32(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_INFO_pHYs, png_set_pHYs(), png_uint_32, png_warning(), res_x, res_y, and unit_type.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_PLTE | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 419 of file pngrutil.c.
References buf, i, int, NULL, num, palette, png_chunk_error(), png_chunk_warning(), PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_PALETTE, png_crc_error(), png_crc_finish(), png_crc_read(), png_debug, png_error(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_tRNS, PNG_MAX_PALETTE_LENGTH, png_set_PLTE(), and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_sBIT | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 660 of file pngrutil.c.
References buf, if(), NULL, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_PALETTE, png_crc_finish(), png_crc_read(), png_debug, png_error(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_sBIT, png_set_sBIT(), png_size_t, and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_sCAL | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1700 of file pngrutil.c.
References buffer, height, NULL, png_bytep, png_crc_finish(), png_crc_read(), png_debug, png_debug1, png_error(), png_free(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_INFO_sCAL, png_malloc_warn(), png_memcpy, png_set_sCAL(), png_size_t, png_strlen, png_strtod, png_warning(), vp, and width.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_sPLT | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1101 of file pngrutil.c.
References png_sPLT_struct::depth, png_sPLT_struct::entries, i, if(), RooFitShortHand::L(), png_sPLT_struct::nentries, NULL, png_bytep, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_free(), png_get_uint_16(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, png_malloc(), png_malloc_warn(), PNG_SIZE_MAX, png_size_t, png_sizeof, png_uint_32, and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_sRGB | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 890 of file pngrutil.c.
References buf, fprintf(), intent, RooFitShortHand::L(), NULL, png_crc_finish(), png_crc_read(), png_debug, png_error(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_cHRM, PNG_INFO_gAMA, PNG_INFO_sRGB, png_set_sRGB_gAMA_and_cHRM(), PNG_sRGB_INTENT_LAST, and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_tEXt | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1882 of file pngrutil.c.
References RooFitShortHand::L(), NULL, PNG_AFTER_IDAT, png_bytep, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_free(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, png_malloc_warn(), png_set_text_2(), png_size_t, png_sizeof, png_strlen, PNG_TEXT_COMPRESSION_NONE, png_uint_32, png_warning(), text(), and text_ptr.
Referenced by png_read_end(), and png_read_info().
void png_handle_tIME | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1838 of file pngrutil.c.
References buf, mod_time, NULL, PNG_AFTER_IDAT, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_16(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_INFO_tIME, png_set_tIME(), and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_tRNS | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1241 of file pngrutil.c.
References buf, NULL, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_16(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, PNG_HAVE_PLTE, PNG_INFO_tRNS, PNG_MAX_PALETTE_LENGTH, png_set_tRNS(), png_size_t, png_uint_32, and png_warning().
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_unknown | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 2184 of file pngrutil.c.
References NULL, PNG_AFTER_IDAT, png_bytep, png_check_chunk_name(), png_chunk_error(), PNG_CONST, png_crc_finish(), png_crc_read(), png_debug, png_free(), png_handle_as_unknown(), PNG_HANDLE_CHUNK_ALWAYS, PNG_HAVE_IDAT, PNG_IDAT, png_malloc(), png_memcmp, png_memcpy, PNG_READ_USER_CHUNKS_SUPPORTED, png_set_unknown_chunks(), png_size_t, png_sizeof, png_uint_32, png_warning(), and x20.
Referenced by png_push_read_chunk(), png_read_end(), and png_read_info().
void png_handle_zTXt | ( | png_structp | png_ptr, | |
png_infop | info_ptr, | |||
png_uint_32 | length | |||
) |
Definition at line 1961 of file pngrutil.c.
References RooFitShortHand::L(), NULL, PNG_AFTER_IDAT, png_bytep, png_crc_finish(), png_crc_read(), png_debug, png_decompress_chunk(), png_error(), png_free(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, png_malloc_warn(), png_set_text_2(), png_size_t, png_sizeof, PNG_TEXT_COMPRESSION_zTXt, png_uint_32, png_warning(), text(), and text_ptr.
Referenced by png_read_end(), and png_read_info().
void png_read_filter_row | ( | png_structp | png_ptr, | |
png_row_infop | row_info, | |||
png_bytep | row, | |||
png_bytep | prev_row, | |||
int | filter | |||
) |
Definition at line 2728 of file pngrutil.c.
References a, b, c, i, p, png_bytep, png_debug, png_debug2, PNG_FILTER_VALUE_AVG, PNG_FILTER_VALUE_NONE, PNG_FILTER_VALUE_PAETH, PNG_FILTER_VALUE_SUB, PNG_FILTER_VALUE_UP, png_uint_32, and png_warning().
Referenced by png_push_process_row().
void png_read_finish_row | ( | png_structp | png_ptr | ) |
Definition at line 2851 of file pngrutil.c.
References extra, if(), inflate(), PNG_AFTER_IDAT, PNG_CONST, png_crc_finish(), png_crc_read(), png_debug, png_error(), png_get_uint_31(), PNG_IDAT, png_memcmp, png_memset_check(), png_pass_inc, png_pass_start, png_pass_yinc, png_pass_ystart, png_read_data(), png_reset_crc(), png_warning(), Z_OK, Z_PARTIAL_FLUSH, and Z_STREAM_END.
Referenced by png_read_row().
void png_read_start_row | ( | png_structp | png_ptr | ) |
Definition at line 2979 of file pngrutil.c.
References png_bytep, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, PNG_CONST, png_debug, png_debug1, png_error(), png_init_read_transformations(), png_malloc(), png_memset_check(), png_pass_inc, png_pass_start, png_pass_yinc, png_pass_ystart, PNG_READ_EXPAND_SUPPORTED, PNG_READ_FILLER_SUPPORTED, PNG_SIZE_MAX, png_size_t, and png_uint_32.
Referenced by png_read_row(), png_read_update_info(), and png_start_read_image().