#include "png.h"
Go to the source code of this file.
#define PNG_INTERNAL |
Definition at line 16 of file pngrtran.c.
typedef struct png_dsort_struct png_dsort |
typedef png_dsort FAR* png_dsortp |
Definition at line 137 of file pngrtran.c.
typedef png_dsort FAR* FAR* png_dsortpp |
Definition at line 138 of file pngrtran.c.
void png_build_gamma_table | ( | png_structp | png_ptr | ) |
Definition at line 4014 of file pngrtran.c.
References for(), png_bytep, png_debug, png_malloc(), png_uint_32, and pow().
Referenced by png_init_read_transformations().
void PNGAPI png_build_grayscale_palette | ( | int | bit_depth, | |
png_colorp | palette | |||
) |
void png_do_background | ( | png_row_infop | row_info, | |
png_bytep | row, | |||
png_color_16p | trans_values, | |||
png_color_16p | background, | |||
png_color_16p | background_1, | |||
png_bytep | gamma_table, | |||
png_bytep | gamma_from_1, | |||
png_bytep | gamma_to_1, | |||
png_uint_16pp | gamma_16, | |||
png_uint_16pp | gamma_16_from_1, | |||
png_uint_16pp | gamma_16_to_1, | |||
int | gamma_shift | |||
) |
Definition at line 2693 of file pngrtran.c.
References background, NULL, p, png_bytep, PNG_COLOR_MASK_ALPHA, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_PALETTE, png_debug, png_uint_32, and x03.
Referenced by png_do_read_transformations().
void png_do_chop | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 1701 of file pngrtran.c.
References NULL, png_bytep, png_debug, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_dither | ( | png_row_infop | row_info, | |
png_bytep | row, | |||
png_bytep | palette_lookup, | |||
png_bytep | dither_lookup | |||
) |
Definition at line 3914 of file pngrtran.c.
References NULL, p, png_bytep, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, png_debug, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_expand | ( | png_row_infop | row_info, | |
png_bytep | row, | |||
png_color_16p | trans_value | |||
) |
Definition at line 3707 of file pngrtran.c.
References for(), NULL, png_bytep, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, png_debug, png_size_t, png_uint_32, value, x03, and x07.
Referenced by png_do_read_transformations().
void png_do_expand_palette | ( | png_row_infop | row_info, | |
png_bytep | row, | |||
png_colorp | palette, | |||
png_bytep | trans, | |||
int | num_trans | |||
) |
Definition at line 3564 of file pngrtran.c.
References if(), NULL, png_bytep, PNG_COLOR_TYPE_PALETTE, png_debug, png_size_t, png_uint_32, value, x03, and x07.
Referenced by png_do_read_transformations().
void png_do_gamma | ( | png_row_infop | row_info, | |
png_bytep | row, | |||
png_bytep | gamma_table, | |||
png_uint_16pp | gamma_16_table, | |||
int | gamma_shift | |||
) |
Definition at line 3382 of file pngrtran.c.
References a, c, d, for(), NULL, png_bytep, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, png_debug, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_gray_to_rgb | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 2122 of file pngrtran.c.
References for(), if(), NULL, png_bytep, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, png_debug, png_size_t, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_read_filler | ( | png_row_infop | row_info, | |
png_bytep | row, | |||
png_uint_32 | filler, | |||
png_uint_32 | flags | |||
) |
Definition at line 1946 of file pngrtran.c.
References if(), NULL, png_bytep, PNG_COLOR_TYPE_GRAY, png_debug, png_size_t, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_read_intrapixel | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 4227 of file pngrtran.c.
References for(), if(), RooFitShortHand::L(), NULL, png_bytep, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, png_debug, s1, and s2.
void png_do_read_invert_alpha | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 1847 of file pngrtran.c.
References for(), if(), NULL, png_bytep, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_RGB_ALPHA, png_debug, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_read_swap_alpha | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 1755 of file pngrtran.c.
References for(), if(), NULL, png_bytep, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_RGB_ALPHA, png_debug, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_read_transformations | ( | png_structp | png_ptr | ) |
Definition at line 1259 of file pngrtran.c.
References NULL, PNG_COLOR_MASK_ALPHA, PNG_COLOR_TYPE_PALETTE, png_debug, png_do_background(), png_do_bgr(), png_do_chop(), png_do_dither(), png_do_expand(), png_do_expand_palette(), png_do_gamma(), png_do_gray_to_rgb(), png_do_invert(), png_do_packswap(), png_do_read_filler(), png_do_read_invert_alpha(), png_do_read_swap_alpha(), png_do_rgb_to_gray(), png_do_strip_filler(), png_do_swap(), png_do_unpack(), png_do_unshift(), png_error(), PNG_READ_BACKGROUND_SUPPORTED, PNG_READ_GAMMA_SUPPORTED, png_snprintf2, png_uint_32, and png_warning().
Referenced by png_push_process_row().
int png_do_rgb_to_gray | ( | png_structp | png_ptr, | |
png_row_infop | row_info, | |||
png_bytep | row | |||
) |
Definition at line 2223 of file pngrtran.c.
References blue, for(), green, NULL, png_bytep, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_RGB, png_debug, png_uint_32, red, and w.
Referenced by png_do_read_transformations().
void png_do_unpack | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 1505 of file pngrtran.c.
References NULL, png_bytep, png_debug, png_size_t, png_uint_32, x03, and x07.
Referenced by png_do_read_transformations().
void png_do_unshift | ( | png_row_infop | row_info, | |
png_bytep | row, | |||
png_color_8p | sig_bits | |||
) |
Definition at line 1595 of file pngrtran.c.
References c, for(), mask, NULL, png_bytep, PNG_COLOR_MASK_ALPHA, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_PALETTE, png_debug, png_uint_32, and value.
Referenced by png_do_read_transformations().
void png_init_read_transformations | ( | png_structp | png_ptr | ) |
Definition at line 726 of file pngrtran.c.
References color_type, ROOT::Math::fabs(), for(), if(), k, NULL, palette, PNG_BACKGROUND_GAMMA_FILE, PNG_BACKGROUND_GAMMA_SCREEN, PNG_BACKGROUND_GAMMA_UNIQUE, png_build_gamma_table(), PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_PALETTE, png_debug, and pow().
Referenced by png_read_start_row().
void png_read_transform_info | ( | png_structp | png_ptr, | |
png_infop | info_ptr | |||
) |
Definition at line 1118 of file pngrtran.c.
References PNG_COLOR_MASK_ALPHA, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, and png_debug.
Referenced by png_read_update_info().
void PNGAPI png_set_background | ( | png_structp | png_ptr, | |
png_color_16p | background_color, | |||
int | background_gamma_code, | |||
int | need_expand, | |||
double | background_gamma | |||
) |
Definition at line 79 of file pngrtran.c.
References NULL, PNG_BACKGROUND_GAMMA_UNKNOWN, png_debug, png_memcpy, png_sizeof, and png_warning().
void PNGAPI png_set_crc_action | ( | png_structp | png_ptr, | |
int | crit_action, | |||
int | ancil_action | |||
) |
Definition at line 23 of file pngrtran.c.
References NULL, PNG_CRC_DEFAULT, PNG_CRC_ERROR_QUIT, PNG_CRC_NO_CHANGE, PNG_CRC_QUIET_USE, PNG_CRC_WARN_DISCARD, PNG_CRC_WARN_USE, png_debug, and png_warning().
void PNGAPI png_set_dither | ( | png_structp | png_ptr, | |
png_colorp | palette, | |||
int | num_palette, | |||
int | maximum_colors, | |||
png_uint_16p | histogram, | |||
int | full_dither | |||
) |
Definition at line 141 of file pngrtran.c.
References d, for(), i, j, k, NULL, png_bytep, png_debug, png_malloc(), png_sizeof, png_uint_32, and t.
void PNGAPI png_set_expand | ( | png_structp | png_ptr | ) |
Definition at line 546 of file pngrtran.c.
References NULL, and png_debug.
Referenced by png2ASImage_int(), and png_read_png().
void PNGAPI png_set_expand_gray_1_2_4_to_8 | ( | png_structp | png_ptr | ) |
void PNGAPI png_set_gamma | ( | png_structp | png_ptr, | |
double | scrn_gamma, | |||
double | file_gamma | |||
) |
Definition at line 527 of file pngrtran.c.
References ROOT::Math::fabs(), NULL, PNG_COLOR_MASK_ALPHA, PNG_COLOR_TYPE_PALETTE, and png_debug.
Referenced by png2ASImage_int().
void PNGAPI png_set_gray_1_2_4_to_8 | ( | png_structp | png_ptr | ) |
void PNGAPI png_set_gray_to_rgb | ( | png_structp | png_ptr | ) |
void PNGAPI png_set_palette_to_rgb | ( | png_structp | png_ptr | ) |
void PNGAPI png_set_read_user_transform_fn | ( | png_structp | png_ptr, | |
png_user_transform_ptr | read_user_transform_fn | |||
) |
void PNGAPI png_set_rgb_to_gray | ( | png_structp | png_ptr, | |
int | error_action, | |||
double | red, | |||
double | green | |||
) |
void PNGAPI png_set_rgb_to_gray_fixed | ( | png_structp | png_ptr, | |
int | error_action, | |||
png_fixed_point | red, | |||
png_fixed_point | green | |||
) |
Definition at line 654 of file pngrtran.c.
References RooFitShortHand::L(), NULL, PNG_COLOR_TYPE_PALETTE, png_debug, png_uint_32, and png_warning().
Referenced by png_set_rgb_to_gray().
void PNGAPI png_set_strip_16 | ( | png_structp | png_ptr | ) |
Definition at line 103 of file pngrtran.c.
References NULL, and png_debug.
Referenced by png2ASImage_int(), and png_read_png().
void PNGAPI png_set_strip_alpha | ( | png_structp | png_ptr | ) |
Definition at line 113 of file pngrtran.c.
References NULL, and png_debug.
Referenced by png_read_png().
void PNGAPI png_set_tRNS_to_alpha | ( | png_structp | png_ptr | ) |
PNG_CONST int png_gamma_shift[] [static] |
Initial value:
{0x10, 0x21, 0x42, 0x84, 0x110, 0x248, 0x550, 0xff0, 0x00}
Definition at line 4005 of file pngrtran.c.