#include "png.h"
Include dependency graph for pngrtran.c:
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 142 of file pngrtran.c.
typedef png_dsort FAR* FAR* png_dsortpp |
Definition at line 143 of file pngrtran.c.
void png_build_gamma_table | ( | png_structp | png_ptr | ) |
Definition at line 3906 of file pngrtran.c.
References num, png_bytep, PNG_COLOR_MASK_COLOR, png_debug, png_malloc(), png_uint_32, and sig_bit.
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 2594 of file pngrtran.c.
References background, png_bytep, PNG_COLOR_MASK_ALPHA, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_PALETTE, png_debug, and png_uint_32.
Referenced by png_do_read_transformations().
void png_do_chop | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 1602 of file pngrtran.c.
References 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 3806 of file pngrtran.c.
References 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 3608 of file pngrtran.c.
References png_bytep, PNG_COLOR_TYPE_GRAY, PNG_COLOR_TYPE_GRAY_ALPHA, png_debug, png_size_t, png_uint_32, and value.
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 3465 of file pngrtran.c.
References png_bytep, PNG_COLOR_TYPE_PALETTE, png_debug, png_size_t, png_uint_32, and value.
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 3283 of file pngrtran.c.
References a, d, 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 2023 of file pngrtran.c.
References 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 1847 of file pngrtran.c.
References 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 4121 of file pngrtran.c.
References png_bytep, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, png_debug, rp, s1, and s2.
void png_do_read_invert_alpha | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 1748 of file pngrtran.c.
References 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 1656 of file pngrtran.c.
References png_bytep, PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_RGB_ALPHA, png_debug, png_uint_32, and save().
Referenced by png_do_read_transformations().
void png_do_read_transformations | ( | png_structp | png_ptr | ) |
Definition at line 1173 of file pngrtran.c.
References 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_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 2124 of file pngrtran.c.
References green, png_bytep, PNG_COLOR_MASK_COLOR, PNG_COLOR_TYPE_RGB, png_debug, png_uint_32, and red.
Referenced by png_do_read_transformations().
void png_do_unpack | ( | png_row_infop | row_info, | |
png_bytep | row | |||
) |
Definition at line 1406 of file pngrtran.c.
References png_bytep, png_debug, png_size_t, and png_uint_32.
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 1496 of file pngrtran.c.
References mask, 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 690 of file pngrtran.c.
References color_type, 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, and png_debug.
Referenced by png_read_start_row().
void png_read_transform_info | ( | png_structp | png_ptr, | |
png_infop | info_ptr | |||
) |
Definition at line 1037 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 76 of file pngrtran.c.
References PNG_BACKGROUND_GAMMA_UNKNOWN, PNG_COLOR_MASK_COLOR, 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 21 of file pngrtran.c.
References 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 146 of file pngrtran.c.
References d, png_bytep, png_debug, png_malloc(), png_sizeof, png_uint_32, and t.
void PNGAPI png_set_expand | ( | png_structp | png_ptr | ) |
void PNGAPI png_set_gamma | ( | png_structp | png_ptr, | |
double | scrn_gamma, | |||
double | file_gamma | |||
) |
Definition at line 531 of file pngrtran.c.
References PNG_COLOR_MASK_ALPHA, PNG_COLOR_TYPE_PALETTE, and png_debug.
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 | |||
) |
Definition at line 670 of file pngrtran.c.
References png_debug, and png_warning().
Referenced by test_one_file().
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 620 of file pngrtran.c.
References 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 | ) |
void PNGAPI png_set_strip_alpha | ( | png_structp | png_ptr | ) |
void PNGAPI png_set_tRNS_to_alpha | ( | png_structp | png_ptr | ) |
int png_gamma_shift[] [static] |
Initial value:
{0x10, 0x21, 0x42, 0x84, 0x110, 0x248, 0x550, 0xff0}
Definition at line 3897 of file pngrtran.c.