fltk
1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
![]() ![]() |
#include "pngpriv.h"
Go to the source code of this file.
Macros | |
#define | APPEND_STRING(string) pos = png_safecat(out, 29, pos, (string)) |
#define | APPEND_NUMBER(format, value) APPEND_STRING(PNG_FORMAT_NUMBER(number_buf, format, (value))) |
#define | APPEND(ch) if (pos < 28) out[pos++] = (ch) |
#define | PNG_MD5(a, b, c, d) { a, b, c, d }, (a!=0)||(b!=0)||(c!=0)||(d!=0) |
#define | PNG_ICC_CHECKSUM(adler, crc, md5, intent, broke, date, length, fname) { adler, crc, length, md5, broke, intent }, |
#define | png_gt(a, b) ((a) > (b)) |
#define | png_fp_add(state, flags) ((state) |= (flags)) |
#define | png_fp_set(state, value) ((state) = (value) | ((state) & PNG_FP_STICKY)) |
Typedefs | |
typedef png_libpng_version_1_6_16 | Your_png_h_is_not_version_1_6_16 |
Variables | |
static const png_xy | sRGB_xy |
static const png_byte | D50_nCIEXYZ [12] |
struct { | |
png_uint_32 adler | |
png_uint_32 crc | |
png_uint_32 length | |
png_uint_32 md5 [4] | |
png_byte have_md5 | |
png_byte is_broken | |
png_uint_16 intent | |
} | png_sRGB_checks [] |
const png_uint_16 | png_sRGB_table [256] |
const png_uint_16 | png_sRGB_base [512] |
const png_byte | png_sRGB_delta [512] |
#define APPEND | ( | ch | ) | if (pos < 28) out[pos++] = (ch) |
#define APPEND_NUMBER | ( | format, | |
value | |||
) | APPEND_STRING(PNG_FORMAT_NUMBER(number_buf, format, (value))) |
#define APPEND_STRING | ( | string | ) | pos = png_safecat(out, 29, pos, (string)) |
#define png_fp_set | ( | state, | |
value | |||
) | ((state) = (value) | ((state) & PNG_FP_STICKY)) |
|
static |
Definition at line 1775 of file png.c.
References is_ICC_signature_char().
Referenced by png_icc_profile_error().
|
static |
Definition at line 1768 of file png.c.
Referenced by is_ICC_signature().
png_uint_32 png_access_version_number | ( | void | ) |
Definition at line 944 of file png.c.
References PNG_LIBPNG_VER.
void png_ascii_from_fixed | ( | png_const_structrp | png_ptr, |
png_charp | ascii, | ||
png_size_t | size, | ||
png_fixed_point | fp | ||
) |
Definition at line 3141 of file png.c.
References first, and png_error().
Referenced by png_set_sCAL_fixed().
void png_ascii_from_fp | ( | png_const_structrp | png_ptr, |
png_charp | ascii, | ||
png_size_t | size, | ||
double | fp, | ||
unsigned int | precision | ||
) |
Definition at line 2826 of file png.c.
References png_error(), and png_pow10().
Referenced by png_set_sCAL().
|
static |
Definition at line 3860 of file png.c.
References max(), png_calloc(), PNG_CONST, png_gamma_16bit_correct(), png_gamma_significant(), png_malloc(), and table.
Referenced by png_build_gamma_table().
|
static |
Definition at line 3937 of file png.c.
References last, max(), png_calloc(), PNG_CONST, png_gamma_16bit_correct(), png_malloc(), and table.
Referenced by png_build_gamma_table().
|
static |
Definition at line 4005 of file png.c.
References png_gamma_8bit_correct(), png_gamma_significant(), png_malloc(), and table.
Referenced by png_build_gamma_table().
void png_build_gamma_table | ( | png_structrp | png_ptr, |
int | bit_depth | ||
) |
Definition at line 4084 of file png.c.
References png_struct_def::color_type, NULL, PNG_16_TO_8, png_build_16bit_table(), png_build_16to8_table(), png_build_8bit_table(), PNG_COLOR_MASK_COLOR, PNG_COMPOSE, png_debug, png_destroy_gamma_table(), PNG_FP_1, PNG_MAX_GAMMA_8, png_product2(), png_reciprocal(), png_reciprocal2(), PNG_RGB_TO_GRAY, PNG_SCALE_16_TO_8, png_warning(), and png_struct_def::transformations.
Referenced by png_init_read_transformations().
void png_build_grayscale_palette | ( | int | bit_depth, |
png_colorp | palette | ||
) |
Definition at line 833 of file png.c.
References png_color_struct::blue, png_color_struct::green, NULL, png_debug, and png_color_struct::red.
void png_calculate_crc | ( | png_structrp | png_ptr, |
png_const_bytep | ptr, | ||
png_size_t | length | ||
) |
Definition at line 114 of file png.c.
References png_struct_def::chunk_name, png_struct_def::crc, crc, crc32(), png_struct_def::flags, length, PNG_CHUNK_ANCILLARY, PNG_FLAG_CRC_ANCILLARY_MASK, PNG_FLAG_CRC_ANCILLARY_NOWARN, PNG_FLAG_CRC_ANCILLARY_USE, and PNG_FLAG_CRC_CRITICAL_IGNORE.
Referenced by png_crc_read(), png_push_crc_finish(), png_push_read_IDAT(), png_read_chunk_header(), png_write_chunk_data(), and png_write_chunk_header().
int png_check_fp_number | ( | png_const_charp | string, |
png_size_t | size, | ||
int * | statep, | ||
png_size_tp | whereami | ||
) |
Definition at line 2643 of file png.c.
References png_fp_add, PNG_FP_EXPONENT, PNG_FP_FRACTION, PNG_FP_INTEGER, PNG_FP_NEGATIVE, PNG_FP_NONZERO, PNG_FP_SAW_ANY, PNG_FP_SAW_DIGIT, PNG_FP_SAW_DOT, PNG_FP_SAW_E, PNG_FP_SAW_SIGN, png_fp_set, PNG_FP_STATE, PNG_FP_WAS_VALID, and state.
Referenced by png_check_fp_string(), and png_handle_sCAL().
int png_check_fp_string | ( | png_const_charp | string, |
png_size_t | size | ||
) |
Definition at line 2770 of file png.c.
References png_check_fp_number(), and state.
Referenced by png_set_pCAL(), and png_set_sCAL_s().
void png_check_IHDR | ( | png_const_structrp | 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 | ||
) |
Definition at line 2476 of file png.c.
References error(), PNG_COLOR_TYPE_GRAY_ALPHA, PNG_COLOR_TYPE_PALETTE, PNG_COLOR_TYPE_RGB, PNG_COLOR_TYPE_RGB_ALPHA, PNG_COMPRESSION_TYPE_BASE, png_error(), PNG_FILTER_TYPE_BASE, PNG_FLAG_MNG_FILTER_64, png_gt, PNG_HAVE_PNG_SIGNATURE, PNG_INTERLACE_LAST, PNG_INTRAPIXEL_DIFFERENCING, PNG_SIZE_MAX, PNG_UINT_31_MAX, PNG_USER_HEIGHT_MAX, PNG_USER_WIDTH_MAX, and png_warning().
Referenced by png_get_IHDR(), and png_set_IHDR().
int png_chunk_unknown_handling | ( | png_const_structrp | png_ptr, |
png_uint_32 | chunk_name | ||
) |
Definition at line 919 of file png.c.
References PNG_CSTRING_FROM_CHUNK, and png_handle_as_unknown().
Referenced by png_handle_unknown(), png_push_read_chunk(), png_read_end(), and png_read_info().
|
static |
Definition at line 1030 of file png.c.
References PNG_CHUNK_ERROR, png_chunk_report(), PNG_CHUNK_WARNING, PNG_FP_1, png_gamma_significant(), and png_muldiv().
Referenced by png_colorspace_set_gamma(), and png_colorspace_set_sRGB().
|
static |
Definition at line 1577 of file png.c.
References png_colorspace_endpoints_match(), png_xy_from_XYZ(), and png_XYZ_from_xy().
Referenced by png_colorspace_check_XYZ(), and png_colorspace_set_chromaticities().
|
static |
Definition at line 1603 of file png.c.
References png_colorspace_check_xy(), png_xy_from_XYZ(), and png_XYZ_normalize().
Referenced by png_colorspace_set_endpoints().
|
static |
Definition at line 1551 of file png.c.
References PNG_OUT_OF_RANGE.
Referenced by png_colorspace_check_xy(), png_colorspace_set_sRGB(), and png_colorspace_set_xy_and_XYZ().
int png_colorspace_set_chromaticities | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
const png_xy * | xy, | ||
int | preferred | ||
) |
Definition at line 1679 of file png.c.
References png_benign_error(), png_colorspace_check_xy(), png_colorspace_set_xy_and_XYZ(), and png_error().
Referenced by png_handle_cHRM(), and png_set_cHRM_fixed().
int png_colorspace_set_endpoints | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
const png_XYZ * | XYZ_in, | ||
int | preferred | ||
) |
Definition at line 1717 of file png.c.
References png_benign_error(), png_colorspace_check_XYZ(), png_colorspace_set_xy_and_XYZ(), and png_error().
Referenced by png_set_cHRM_XYZ_fixed().
void png_colorspace_set_gamma | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
png_fixed_point | gAMA | ||
) |
Definition at line 1074 of file png.c.
References png_chunk_report(), PNG_CHUNK_WRITE_ERROR, png_colorspace_check_gamma(), png_const_charp, and PNG_IS_READ_STRUCT.
Referenced by png_handle_gAMA(), and png_set_gAMA_fixed().
int png_colorspace_set_ICC | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
png_const_charp | name, | ||
png_uint_32 | profile_length, | ||
png_const_bytep | profile, | ||
int | color_type | ||
) |
Definition at line 2371 of file png.c.
References name, png_icc_check_header(), png_icc_check_length(), png_icc_check_tag_table(), and png_icc_set_sRGB().
Referenced by png_set_iCCP().
void png_colorspace_set_rgb_coefficients | ( | png_structrp | png_ptr | ) |
Definition at line 2398 of file png.c.
References b, png_struct_def::flags, png_error(), and png_muldiv().
Referenced by png_init_read_transformations().
int png_colorspace_set_sRGB | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
int | intent | ||
) |
Definition at line 1833 of file png.c.
References intent, png_benign_error(), PNG_CHUNK_ERROR, png_chunk_report(), png_colorspace_check_gamma(), png_colorspace_endpoints_match(), PNG_GAMMA_sRGB_INVERSE, png_icc_profile_error(), PNG_sRGB_INTENT_LAST, and sRGB_xy.
Referenced by png_handle_sRGB(), png_icc_set_sRGB(), png_set_sRGB(), and png_set_sRGB_gAMA_and_cHRM().
|
static |
Definition at line 1631 of file png.c.
References png_benign_error(), png_colorspace_endpoints_match(), and sRGB_xy.
Referenced by png_colorspace_set_chromaticities(), and png_colorspace_set_endpoints().
void png_colorspace_sync | ( | png_const_structrp | png_ptr, |
png_inforp | info_ptr | ||
) |
Definition at line 1175 of file png.c.
References NULL, and png_colorspace_sync_info().
Referenced by png_handle_cHRM(), png_handle_gAMA(), png_handle_iCCP(), and png_handle_sRGB().
void png_colorspace_sync_info | ( | png_const_structrp | png_ptr, |
png_inforp | info_ptr | ||
) |
Definition at line 1129 of file png.c.
References png_free_data(), PNG_FREE_ICCP, PNG_INFO_cHRM, PNG_INFO_gAMA, PNG_INFO_iCCP, PNG_INFO_sRGB, PNG_UNUSED, and png_info_def::valid.
Referenced by png_colorspace_sync(), png_set_cHRM_fixed(), png_set_cHRM_XYZ_fixed(), png_set_gAMA_fixed(), png_set_iCCP(), png_set_sRGB(), and png_set_sRGB_gAMA_and_cHRM().
|
static |
Definition at line 2233 of file png.c.
References adler, adler32(), crc, crc32(), have_md5, intent, is_broken, length, NULL, PNG_CHUNK_ERROR, png_chunk_report(), PNG_CHUNK_WARNING, png_get_uint_32, PNG_OPTION_ON, PNG_SKIP_sRGB_CHECK_PROFILE, and png_sRGB_checks.
Referenced by png_icc_set_sRGB().
png_const_charp png_convert_to_rfc1123 | ( | png_structrp | png_ptr, |
png_const_timep | ptime | ||
) |
Definition at line 744 of file png.c.
References NULL, png_convert_to_rfc1123_buffer(), png_warning(), and ptime.
int png_convert_to_rfc1123_buffer | ( | char | out[29], |
png_const_timep | ptime | ||
) |
Definition at line 691 of file png.c.
References APPEND, APPEND_NUMBER, APPEND_STRING, NULL, PNG_CONST, PNG_NUMBER_FORMAT_02u, PNG_NUMBER_FORMAT_u, and ptime.
Referenced by png_convert_to_rfc1123().
png_infop png_create_info_struct | ( | png_const_structrp | png_ptr | ) |
Definition at line 327 of file png.c.
References NULL, png_debug, png_malloc_base(), and png_voidcast.
Referenced by Fl_PNG_Image::load_png_(), png_image_read_init(), png_image_write_init(), and save_template_cb().
png_structp png_create_png_struct | ( | png_const_charp | user_png_ver, |
png_voidp | error_ptr, | ||
png_error_ptr | error_fn, | ||
png_error_ptr | warn_fn, | ||
png_voidp | mem_ptr, | ||
png_malloc_ptr | malloc_fn, | ||
png_free_ptr | free_fn | ||
) |
Definition at line 225 of file png.c.
References NULL, z_stream_s::opaque, PNG_FUNCTION, png_malloc_warn(), png_set_error_fn(), png_set_mem_fn(), PNG_UNUSED, PNG_USER_CHUNK_CACHE_MAX, PNG_USER_CHUNK_MALLOC_MAX, PNG_USER_HEIGHT_MAX, png_user_version_check(), PNG_USER_WIDTH_MAX, png_voidcast, png_zalloc(), png_zfree(), PNGAPI, z_stream_s::zalloc, z_stream_s::zfree, and png_struct_def::zstream.
Referenced by png_create_read_struct(), png_create_read_struct_2(), png_create_write_struct(), and png_create_write_struct_2().
void png_data_freer | ( | png_const_structrp | png_ptr, |
png_inforp | info_ptr, | ||
int | freer, | ||
png_uint_32 | mask | ||
) |
Definition at line 423 of file png.c.
References png_info_def::free_me, NULL, png_debug, PNG_DESTROY_WILL_FREE_DATA, png_error(), and PNG_USER_WILL_FREE_DATA.
void png_destroy_gamma_table | ( | png_structrp | png_ptr | ) |
Definition at line 4024 of file png.c.
References NULL, and png_free().
Referenced by png_build_gamma_table(), and png_read_destroy().
void png_destroy_info_struct | ( | png_const_structrp | png_ptr, |
png_infopp | info_ptr_ptr | ||
) |
Definition at line 359 of file png.c.
References NULL, png_debug, png_free(), PNG_FREE_ALL, and png_free_data().
Referenced by png_destroy_read_struct(), png_destroy_write_struct(), png_image_read_init(), and png_image_write_init().
png_fixed_point png_fixed | ( | png_const_structrp | png_ptr, |
double | fp, | ||
png_const_charp | text | ||
) |
Definition at line 3219 of file png.c.
References png_fixed_error(), and PNG_UNUSED.
Referenced by png_get_sCAL_fixed(), png_set_background(), png_set_cHRM(), png_set_cHRM_XYZ(), png_set_gAMA(), and png_set_rgb_to_gray().
void png_free_data | ( | png_const_structrp | png_ptr, |
png_inforp | info_ptr, | ||
png_uint_32 | mask, | ||
int | num | ||
) |
Definition at line 442 of file png.c.
References png_info_def::free_me, png_info_def::height, NULL, png_info_def::num_palette, png_info_def::palette, png_debug, png_free(), PNG_FREE_HIST, PNG_FREE_ICCP, PNG_FREE_MUL, PNG_FREE_PCAL, PNG_FREE_PLTE, PNG_FREE_ROWS, PNG_FREE_SCAL, PNG_FREE_SPLT, PNG_FREE_TEXT, PNG_FREE_TRNS, PNG_FREE_UNKN, PNG_INFO_hIST, PNG_INFO_iCCP, PNG_INFO_IDAT, PNG_INFO_pCAL, PNG_INFO_PLTE, PNG_INFO_sCAL, PNG_INFO_sPLT, PNG_INFO_tRNS, and png_info_def::valid.
Referenced by png_colorspace_sync_info(), png_destroy_info_struct(), png_handle_iCCP(), png_read_png(), png_set_hIST(), png_set_iCCP(), png_set_PLTE(), png_set_rows(), and png_set_tRNS().
png_uint_16 png_gamma_16bit_correct | ( | unsigned int | value, |
png_fixed_point | gamma_val | ||
) |
Definition at line 3800 of file png.c.
References PNG_FP_1, and png_muldiv().
Referenced by decode_gamma(), png_build_16bit_table(), png_build_16to8_table(), png_create_colormap_entry(), png_gamma_correct(), and png_image_read_colormap().
png_byte png_gamma_8bit_correct | ( | unsigned int | value, |
png_fixed_point | gamma_val | ||
) |
Definition at line 3752 of file png.c.
References PNG_FP_1, and png_muldiv().
Referenced by png_build_8bit_table(), png_gamma_correct(), and png_init_read_transformations().
png_uint_16 png_gamma_correct | ( | png_structrp | png_ptr, |
unsigned int | value, | ||
png_fixed_point | gamma_val | ||
) |
Definition at line 3835 of file png.c.
References png_struct_def::bit_depth, png_gamma_16bit_correct(), and png_gamma_8bit_correct().
Referenced by png_init_read_transformations().
int png_gamma_significant | ( | png_fixed_point | gamma_val | ) |
Definition at line 3400 of file png.c.
References PNG_FP_1, and PNG_GAMMA_THRESHOLD_FIXED.
Referenced by png_build_16bit_table(), png_build_8bit_table(), png_colorspace_check_gamma(), png_gamma_not_sRGB(), png_gamma_threshold(), png_image_read_direct(), png_init_read_transformations(), and set_file_encoding().
png_const_charp png_get_copyright | ( | png_const_structrp | png_ptr | ) |
Definition at line 764 of file png.c.
References PNG_STRING_NEWLINE, and PNG_UNUSED.
png_const_charp png_get_header_ver | ( | png_const_structrp | png_ptr | ) |
Definition at line 802 of file png.c.
References PNG_LIBPNG_VER_STRING, and PNG_UNUSED.
Referenced by png_get_libpng_ver().
png_const_charp png_get_header_version | ( | png_const_structrp | png_ptr | ) |
Definition at line 810 of file png.c.
References PNG_HEADER_VERSION_STRING, PNG_STRING_NEWLINE, and PNG_UNUSED.
png_voidp png_get_io_ptr | ( | png_const_structrp | png_ptr | ) |
png_const_charp png_get_libpng_ver | ( | png_const_structrp | png_ptr | ) |
Definition at line 795 of file png.c.
References png_get_header_ver().
int png_handle_as_unknown | ( | png_const_structrp | png_ptr, |
png_const_bytep | chunk_name | ||
) |
Definition at line 884 of file png.c.
References NULL, p, png_const_bytep, and PNG_HANDLE_CHUNK_AS_DEFAULT.
Referenced by png_chunk_unknown_handling(), and write_unknown_chunks().
int png_icc_check_header | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
png_const_charp | name, | ||
png_uint_32 | profile_length, | ||
png_const_bytep | profile, | ||
int | color_type | ||
) |
Definition at line 1942 of file png.c.
References D50_nCIEXYZ, name, NULL, PNG_COLOR_MASK_COLOR, png_get_uint_32, png_icc_profile_error(), and PNG_sRGB_INTENT_LAST.
Referenced by png_colorspace_set_ICC(), and png_handle_iCCP().
int png_icc_check_length | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
png_const_charp | name, | ||
png_uint_32 | profile_length | ||
) |
Definition at line 1931 of file png.c.
References name, and png_icc_profile_error().
Referenced by png_colorspace_set_ICC(), and png_handle_iCCP().
int png_icc_check_tag_table | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
png_const_charp | name, | ||
png_uint_32 | profile_length, | ||
png_const_bytep | profile | ||
) |
Definition at line 2125 of file png.c.
References name, NULL, png_const_bytep, png_get_uint_32, and png_icc_profile_error().
Referenced by png_colorspace_set_ICC(), and png_handle_iCCP().
|
static |
Definition at line 1784 of file png.c.
References Fl_Widget::flags(), is_ICC_signature(), message, name, NULL, PNG_CHUNK_ERROR, png_chunk_report(), PNG_CHUNK_WRITE_ERROR, png_format_number(), png_icc_tag_name(), PNG_NUMBER_BUFFER_SIZE, PNG_NUMBER_FORMAT_x, png_safecat(), and PNG_UNUSED.
Referenced by png_colorspace_set_sRGB(), png_icc_check_header(), png_icc_check_length(), and png_icc_check_tag_table().
void png_icc_set_sRGB | ( | png_const_structrp | png_ptr, |
png_colorspacerp | colorspace, | ||
png_const_bytep | profile, | ||
uLong | adler | ||
) |
Definition at line 2356 of file png.c.
References adler, png_colorspace_set_sRGB(), png_compare_ICC_profile_with_sRGB(), and png_get_uint_32.
Referenced by png_colorspace_set_ICC(), and png_handle_iCCP().
|
static |
Definition at line 1747 of file png.c.
Referenced by png_icc_tag_name().
|
static |
Definition at line 1757 of file png.c.
References name, and png_icc_tag_char().
Referenced by png_icc_profile_error().
int png_image_error | ( | png_imagep | image, |
png_const_charp | error_message | ||
) |
Definition at line 4483 of file png.c.
References png_image::message, PNG_IMAGE_ERROR, png_image_free(), png_safecat(), and png_image::warning_or_error.
Referenced by png_image_begin_read_from_file(), png_image_begin_read_from_memory(), png_image_begin_read_from_stdio(), png_image_finish_read(), png_image_read_init(), png_image_write_init(), png_image_write_to_file(), and png_image_write_to_stdio().
void png_image_free | ( | png_imagep | image | ) |
Definition at line 4467 of file png.c.
References png_control::error_buf, NULL, png_image::opaque, png_image_free_function(), and png_safe_execute().
Referenced by png_image_error(), png_image_finish_read(), png_image_write_to_stdio(), and png_safe_execute().
|
static |
Definition at line 4407 of file png.c.
References png_control::for_write, png_control::info_ptr, png_struct_def::io_ptr, NULL, png_image::opaque, png_control::owned_file, png_destroy_read_struct(), png_destroy_write_struct(), png_error(), png_free(), png_control::png_ptr, and png_voidcast.
Referenced by png_image_free().
void png_info_init_3 | ( | png_infopp | ptr_ptr, |
png_size_t | png_info_struct_size | ||
) |
Definition at line 398 of file png.c.
References free(), NULL, png_debug, png_malloc_base(), and png_voidcast.
void png_init_io | ( | png_structrp | png_ptr, |
png_FILE_p | fp | ||
) |
Definition at line 658 of file png.c.
References png_struct_def::io_ptr, NULL, and png_debug.
Referenced by Fl_PNG_Image::load_png_(), and save_template_cb().
int png_muldiv | ( | png_fixed_point_p | res, |
png_fixed_point | a, | ||
png_int_32 | times, | ||
png_int_32 | divisor | ||
) |
Definition at line 3243 of file png.c.
Referenced by png_colorspace_check_gamma(), png_colorspace_set_rgb_coefficients(), png_gamma_16bit_correct(), png_gamma_8bit_correct(), png_gamma_threshold(), png_get_pixel_aspect_ratio_fixed(), png_image_read_direct(), png_muldiv_warn(), png_product2(), png_reciprocal(), png_xy_from_XYZ(), png_XYZ_from_xy(), png_XYZ_normalize(), and ppi_from_ppm().
png_fixed_point png_muldiv_warn | ( | png_const_structrp | png_ptr, |
png_fixed_point | a, | ||
png_int_32 | times, | ||
png_int_32 | divisor | ||
) |
Definition at line 3363 of file png.c.
References png_muldiv(), and png_warning().
Referenced by png_fixed_inches_from_microns().
|
static |
Definition at line 2789 of file png.c.
Referenced by png_ascii_from_fp().
|
static |
Definition at line 3411 of file png.c.
References b, and png_muldiv().
Referenced by png_build_gamma_table(), and png_reciprocal2().
png_fixed_point png_reciprocal | ( | png_fixed_point | a | ) |
Definition at line 3379 of file png.c.
References png_muldiv().
Referenced by png_build_gamma_table(), png_init_read_transformations(), png_reciprocal2(), png_set_alpha_mode_fixed(), png_XYZ_from_xy(), and set_file_encoding().
png_fixed_point png_reciprocal2 | ( | png_fixed_point | a, |
png_fixed_point | b | ||
) |
Definition at line 3434 of file png.c.
References b, png_product2(), and png_reciprocal().
Referenced by png_build_gamma_table(), and png_init_read_transformations().
void png_reset_crc | ( | png_structrp | png_ptr | ) |
Definition at line 102 of file png.c.
References png_struct_def::crc, crc32(), and Z_NULL.
Referenced by png_push_read_chunk(), png_push_read_IDAT(), png_read_chunk_header(), and png_write_chunk_header().
int png_reset_zstream | ( | png_structrp | png_ptr | ) |
Definition at line 932 of file png.c.
References inflateReset(), NULL, Z_STREAM_ERROR, and png_struct_def::zstream.
void png_save_int_32 | ( | png_bytep | buf, |
png_int_32 | i | ||
) |
Definition at line 677 of file png.c.
References buf.
Referenced by png_write_cHRM_fixed(), png_write_oFFs(), and png_write_pCAL().
int png_set_option | ( | png_structrp | png_ptr, |
int | option, | ||
int | onoff | ||
) |
Definition at line 4217 of file png.c.
References NULL, PNG_OPTION_INVALID, and PNG_OPTION_NEXT.
void png_set_sig_bytes | ( | png_structrp | png_ptr, |
int | num_bytes | ||
) |
Definition at line 27 of file png.c.
References NULL, png_debug, png_error(), and png_struct_def::sig_bytes.
int png_sig_cmp | ( | png_const_bytep | sig, |
png_size_t | start, | ||
png_size_t | num_to_check | ||
) |
Definition at line 49 of file png.c.
References start().
Referenced by png_push_read_sig(), and png_read_sig().
int png_user_version_check | ( | png_structrp | png_ptr, |
png_const_charp | user_png_ver | ||
) |
Definition at line 166 of file png.c.
References png_struct_def::flags, NULL, PNG_FLAG_LIBRARY_MISMATCH, PNG_LIBPNG_VER_STRING, png_safecat(), PNG_UNUSED, and png_warning().
Referenced by png_create_png_struct().
|
static |
Definition at line 1193 of file png.c.
References PNG_FP_1, and png_muldiv().
Referenced by png_colorspace_check_xy(), and png_colorspace_check_XYZ().
|
static |
Definition at line 1236 of file png.c.
References PNG_FP_1, png_muldiv(), and png_reciprocal().
Referenced by png_colorspace_check_xy().
|
static |
Definition at line 1501 of file png.c.
References PNG_FP_1, png_muldiv(), and Y.
Referenced by png_colorspace_check_XYZ().
Definition at line 73 of file png.c.
References NULL, png_malloc_warn(), png_voidcast, and png_warning().
Referenced by png_create_png_struct().
Definition at line 93 of file png.c.
References png_const_structrp, png_free(), and png_voidcast.
Referenced by png_create_png_struct(), and png_read_destroy().
void png_zstream_error | ( | png_structrp | png_ptr, |
int | ret | ||
) |
Definition at line 958 of file png.c.
References z_stream_s::msg, NULL, PNG_UNEXPECTED_ZLIB_RETURN, PNGZ_MSG_CAST, Z_BUF_ERROR, Z_DATA_ERROR, Z_ERRNO, Z_MEM_ERROR, Z_NEED_DICT, Z_OK, Z_STREAM_END, Z_STREAM_ERROR, Z_VERSION_ERROR, and png_struct_def::zstream.
Referenced by png_compress_IDAT(), png_decompress_chunk(), png_deflate_claim(), png_inflate(), png_inflate_claim(), png_inflate_read(), png_read_IDAT_data(), and png_text_compress().
png_uint_32 adler |
Definition at line 2173 of file png.c.
Referenced by adler32(), png_compare_ICC_profile_with_sRGB(), and png_icc_set_sRGB().
png_uint_32 crc |
Definition at line 2173 of file png.c.
Referenced by crc32(), png_calculate_crc(), png_compare_ICC_profile_with_sRGB(), and png_crc_error().
|
static |
Definition at line 1927 of file png.c.
Referenced by png_icc_check_header().
png_byte have_md5 |
Definition at line 2175 of file png.c.
Referenced by png_compare_ICC_profile_with_sRGB().
png_uint_16 intent |
Definition at line 2177 of file png.c.
Referenced by png_colorspace_set_sRGB(), png_compare_ICC_profile_with_sRGB(), and png_handle_sRGB().
png_byte is_broken |
Definition at line 2176 of file png.c.
Referenced by png_compare_ICC_profile_with_sRGB().
png_uint_32 length |
Definition at line 2173 of file png.c.
Referenced by Fl_Text_Buffer::append(), Fl_Text_Buffer::appendfile(), emit_dac(), emit_dht(), expand_buffer(), Fl_Text_Display::find_line_end(), Fl_Text_Display::find_wrap_range(), fl_filename_isdir(), Fl_GIF_Image::Fl_GIF_Image(), fl_utf8from_mb(), fl_utf8to_mb(), get_dac(), get_dht(), get_dqt(), get_dri(), get_interesting_appn(), get_lse(), get_sof(), get_sos(), Fl_Text_Display::handle(), Fl_Text_Display::line_end(), Fl_Text_Buffer::loadfile(), Fl_Text_Display::next_word(), png_cache_unknown_chunk(), png_calculate_crc(), png_compare_ICC_profile_with_sRGB(), png_crc_read(), png_default_read_data(), png_default_write_data(), png_handle_bKGD(), png_handle_cHRM(), png_handle_gAMA(), png_handle_hIST(), png_handle_iCCP(), png_handle_IEND(), png_handle_IHDR(), png_handle_iTXt(), 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_fill_buffer(), png_read_chunk_header(), png_read_data(), png_read_end(), png_read_info(), png_set_iCCP(), png_set_pCAL(), png_set_sPLT(), png_write_chunk(), png_write_chunk_data(), png_write_chunk_header(), png_write_chunk_start(), png_write_complete_chunk(), png_write_data(), Fl_Text_Display::position_to_line(), Fl_Text_Display::position_to_xy(), read_fdesign_line(), read_word(), Fl_Text_Display::resize(), save_marker(), Fl_Text_Buffer::savefile(), Fl_Text_Display::skip_lines(), skip_variable(), storestring(), Fl_Text_Display::string_width(), CodeEditor::style_parse(), tr_static_init(), Fl_Text_Display::wrap_mode(), Fl_Text_Display::wrap_uses_character(), write_cdata(), and write_cstring().
const { ... } png_sRGB_checks[] |
Referenced by png_compare_ICC_profile_with_sRGB().
const png_uint_16 png_sRGB_table[256] |
Definition at line 4258 of file png.c.
Referenced by decode_gamma(), png_create_colormap_entry(), png_image_read_background(), png_image_read_colormap(), and png_image_read_composite().
|
static |
Definition at line 1621 of file png.c.
Referenced by png_colorspace_set_sRGB(), and png_colorspace_set_xy_and_XYZ().