pngcrush  1.8.13
About: Pngcrush is an optimizer for PNG (Portable Network Graphics) files.
  Fossies Dox: pngcrush-1.8.13.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

png.h File Reference
#include "pnglibconf.h"
#include "pngconf.h"
Include dependency graph for png.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  png_color_struct
 
struct  png_color_16_struct
 
struct  png_color_8_struct
 
struct  png_sPLT_entry_struct
 
struct  png_sPLT_struct
 
struct  png_text_struct
 
struct  png_time_struct
 
struct  png_unknown_chunk_t
 
struct  png_row_info_struct
 

Macros

#define PNG_LIBPNG_VER_STRING   "1.6.32"
 
#define PNG_HEADER_VERSION_STRING   " libpng version 1.6.32 - August 24, 2017\n"
 
#define PNG_LIBPNG_VER_SONUM   16
 
#define PNG_LIBPNG_VER_DLLNUM   16
 
#define PNG_LIBPNG_VER_MAJOR   1
 
#define PNG_LIBPNG_VER_MINOR   6
 
#define PNG_LIBPNG_VER_RELEASE   32
 
#define PNG_LIBPNG_VER_BUILD   0
 
#define PNG_LIBPNG_BUILD_ALPHA   1
 
#define PNG_LIBPNG_BUILD_BETA   2
 
#define PNG_LIBPNG_BUILD_RC   3
 
#define PNG_LIBPNG_BUILD_STABLE   4
 
#define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK   7
 
#define PNG_LIBPNG_BUILD_PATCH
 
#define PNG_LIBPNG_BUILD_PRIVATE
 
#define PNG_LIBPNG_BUILD_SPECIAL
 
#define PNG_LIBPNG_BUILD_BASE_TYPE   PNG_LIBPNG_BUILD_STABLE
 
#define PNG_LIBPNG_VER   10632 /* 1.6.32 */
 
#define PNG_LIBPNG_BUILD_TYPE   (PNG_LIBPNG_BUILD_BASE_TYPE)
 
#define png_libpng_ver   png_get_header_ver(NULL)
 
#define PNG_TEXT_COMPRESSION_NONE_WR   -3
 
#define PNG_TEXT_COMPRESSION_zTXt_WR   -2
 
#define PNG_TEXT_COMPRESSION_NONE   -1
 
#define PNG_TEXT_COMPRESSION_zTXt   0
 
#define PNG_ITXT_COMPRESSION_NONE   1
 
#define PNG_ITXT_COMPRESSION_zTXt   2
 
#define PNG_TEXT_COMPRESSION_LAST   3 /* Not a valid value */
 
#define PNG_HAVE_IHDR   0x01
 
#define PNG_HAVE_PLTE   0x02
 
#define PNG_AFTER_IDAT   0x08
 
#define PNG_UINT_31_MAX   ((png_uint_32)0x7fffffffL)
 
#define PNG_UINT_32_MAX   ((png_uint_32)(-1))
 
#define PNG_SIZE_MAX   ((png_size_t)(-1))
 
#define PNG_FP_1   100000
 
#define PNG_FP_HALF   50000
 
#define PNG_FP_MAX   ((png_fixed_point)0x7fffffffL)
 
#define PNG_FP_MIN   (-PNG_FP_MAX)
 
#define PNG_COLOR_MASK_PALETTE   1
 
#define PNG_COLOR_MASK_COLOR   2
 
#define PNG_COLOR_MASK_ALPHA   4
 
#define PNG_COLOR_TYPE_GRAY   0
 
#define PNG_COLOR_TYPE_PALETTE   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)
 
#define PNG_COLOR_TYPE_RGB   (PNG_COLOR_MASK_COLOR)
 
#define PNG_COLOR_TYPE_RGB_ALPHA   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)
 
#define PNG_COLOR_TYPE_GRAY_ALPHA   (PNG_COLOR_MASK_ALPHA)
 
#define PNG_COLOR_TYPE_RGBA   PNG_COLOR_TYPE_RGB_ALPHA
 
#define PNG_COLOR_TYPE_GA   PNG_COLOR_TYPE_GRAY_ALPHA
 
#define PNG_COMPRESSION_TYPE_BASE   0 /* Deflate method 8, 32K window */
 
#define PNG_COMPRESSION_TYPE_DEFAULT   PNG_COMPRESSION_TYPE_BASE
 
#define PNG_FILTER_TYPE_BASE   0 /* Single row per-byte filtering */
 
#define PNG_INTRAPIXEL_DIFFERENCING   64 /* Used only in MNG datastreams */
 
#define PNG_FILTER_TYPE_DEFAULT   PNG_FILTER_TYPE_BASE
 
#define PNG_INTERLACE_NONE   0 /* Non-interlaced image */
 
#define PNG_INTERLACE_ADAM7   1 /* Adam7 interlacing */
 
#define PNG_INTERLACE_LAST   2 /* Not a valid value */
 
#define PNG_OFFSET_PIXEL   0 /* Offset in pixels */
 
#define PNG_OFFSET_MICROMETER   1 /* Offset in micrometers (1/10^6 meter) */
 
#define PNG_OFFSET_LAST   2 /* Not a valid value */
 
#define PNG_EQUATION_LINEAR   0 /* Linear transformation */
 
#define PNG_EQUATION_BASE_E   1 /* Exponential base e transform */
 
#define PNG_EQUATION_ARBITRARY   2 /* Arbitrary base exponential transform */
 
#define PNG_EQUATION_HYPERBOLIC   3 /* Hyperbolic sine transformation */
 
#define PNG_EQUATION_LAST   4 /* Not a valid value */
 
#define PNG_SCALE_UNKNOWN   0 /* unknown unit (image scale) */
 
#define PNG_SCALE_METER   1 /* meters per pixel */
 
#define PNG_SCALE_RADIAN   2 /* radians per pixel */
 
#define PNG_SCALE_LAST   3 /* Not a valid value */
 
#define PNG_RESOLUTION_UNKNOWN   0 /* pixels/unknown unit (aspect ratio) */
 
#define PNG_RESOLUTION_METER   1 /* pixels/meter */
 
#define PNG_RESOLUTION_LAST   2 /* Not a valid value */
 
#define PNG_sRGB_INTENT_PERCEPTUAL   0
 
#define PNG_sRGB_INTENT_RELATIVE   1
 
#define PNG_sRGB_INTENT_SATURATION   2
 
#define PNG_sRGB_INTENT_ABSOLUTE   3
 
#define PNG_sRGB_INTENT_LAST   4 /* Not a valid value */
 
#define PNG_KEYWORD_MAX_LENGTH   79
 
#define PNG_MAX_PALETTE_LENGTH   256
 
#define PNG_INFO_gAMA   0x0001U
 
#define PNG_INFO_sBIT   0x0002U
 
#define PNG_INFO_cHRM   0x0004U
 
#define PNG_INFO_PLTE   0x0008U
 
#define PNG_INFO_tRNS   0x0010U
 
#define PNG_INFO_bKGD   0x0020U
 
#define PNG_INFO_hIST   0x0040U
 
#define PNG_INFO_pHYs   0x0080U
 
#define PNG_INFO_oFFs   0x0100U
 
#define PNG_INFO_tIME   0x0200U
 
#define PNG_INFO_pCAL   0x0400U
 
#define PNG_INFO_sRGB   0x0800U /* GR-P, 0.96a */
 
#define PNG_INFO_iCCP   0x1000U /* ESR, 1.0.6 */
 
#define PNG_INFO_sPLT   0x2000U /* ESR, 1.0.6 */
 
#define PNG_INFO_sCAL   0x4000U /* ESR, 1.0.6 */
 
#define PNG_INFO_IDAT   0x8000U /* ESR, 1.0.6 */
 
#define PNG_INFO_eXIf   0x10000U /* GR-P, 1.6.31 */
 
#define PNG_TRANSFORM_IDENTITY   0x0000 /* read and write */
 
#define PNG_TRANSFORM_STRIP_16   0x0001 /* read only */
 
#define PNG_TRANSFORM_STRIP_ALPHA   0x0002 /* read only */
 
#define PNG_TRANSFORM_PACKING   0x0004 /* read and write */
 
#define PNG_TRANSFORM_PACKSWAP   0x0008 /* read and write */
 
#define PNG_TRANSFORM_EXPAND   0x0010 /* read only */
 
#define PNG_TRANSFORM_INVERT_MONO   0x0020 /* read and write */
 
#define PNG_TRANSFORM_SHIFT   0x0040 /* read and write */
 
#define PNG_TRANSFORM_BGR   0x0080 /* read and write */
 
#define PNG_TRANSFORM_SWAP_ALPHA   0x0100 /* read and write */
 
#define PNG_TRANSFORM_SWAP_ENDIAN   0x0200 /* read and write */
 
#define PNG_TRANSFORM_INVERT_ALPHA   0x0400 /* read and write */
 
#define PNG_TRANSFORM_STRIP_FILLER   0x0800 /* write only */
 
#define PNG_TRANSFORM_STRIP_FILLER_BEFORE   PNG_TRANSFORM_STRIP_FILLER
 
#define PNG_TRANSFORM_STRIP_FILLER_AFTER   0x1000 /* write only */
 
#define PNG_TRANSFORM_GRAY_TO_RGB   0x2000 /* read only */
 
#define PNG_TRANSFORM_EXPAND_16   0x4000 /* read only */
 
#define PNG_FLAG_MNG_EMPTY_PLTE   0x01
 
#define PNG_FLAG_MNG_FILTER_64   0x04
 
#define PNG_ALL_MNG_FEATURES   0x05
 
#define png_check_sig(sig, n)   !png_sig_cmp((sig), 0, (n))
 
#define png_jmpbuf(png_ptr)   (*png_set_longjmp_fn((png_ptr), longjmp, (sizeof (jmp_buf))))
 
#define PNG_ERROR_ACTION_NONE   1
 
#define PNG_ERROR_ACTION_WARN   2
 
#define PNG_ERROR_ACTION_ERROR   3
 
#define PNG_RGB_TO_GRAY_DEFAULT   (-1)/*for red/green coefficients*/
 
#define PNG_DEFAULT_sRGB   -1 /* sRGB gamma and color space */
 
#define PNG_GAMMA_MAC_18   -2 /* Old Mac '1.8' gamma and color space */
 
#define PNG_GAMMA_sRGB   220000 /* Television standards--matches sRGB gamma */
 
#define PNG_GAMMA_LINEAR   PNG_FP_1 /* Linear */
 
#define PNG_FILLER_BEFORE   0
 
#define PNG_FILLER_AFTER   1
 
#define PNG_BACKGROUND_GAMMA_UNKNOWN   0
 
#define PNG_BACKGROUND_GAMMA_SCREEN   1
 
#define PNG_BACKGROUND_GAMMA_FILE   2
 
#define PNG_BACKGROUND_GAMMA_UNIQUE   3
 
#define PNG_READ_16_TO_8_SUPPORTED   /* Name prior to 1.5.4 */
 
#define PNG_GAMMA_THRESHOLD   (PNG_GAMMA_THRESHOLD_FIXED*.00001)
 
#define PNG_CRC_DEFAULT   0 /* error/quit warn/discard data */
 
#define PNG_CRC_ERROR_QUIT   1 /* error/quit error/quit */
 
#define PNG_CRC_WARN_DISCARD   2 /* (INVALID) warn/discard data */
 
#define PNG_CRC_WARN_USE   3 /* warn/use data warn/use data */
 
#define PNG_CRC_QUIET_USE   4 /* quiet/use data quiet/use data */
 
#define PNG_CRC_NO_CHANGE   5 /* use current value use current value */
 
#define PNG_NO_FILTERS   0x00
 
#define PNG_FILTER_NONE   0x08
 
#define PNG_FILTER_SUB   0x10
 
#define PNG_FILTER_UP   0x20
 
#define PNG_FILTER_AVG   0x40
 
#define PNG_FILTER_PAETH   0x80
 
#define PNG_FAST_FILTERS   (PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP)
 
#define PNG_ALL_FILTERS   (PNG_FAST_FILTERS | PNG_FILTER_AVG | PNG_FILTER_PAETH)
 
#define PNG_FILTER_VALUE_NONE   0
 
#define PNG_FILTER_VALUE_SUB   1
 
#define PNG_FILTER_VALUE_UP   2
 
#define PNG_FILTER_VALUE_AVG   3
 
#define PNG_FILTER_VALUE_PAETH   4
 
#define PNG_FILTER_VALUE_LAST   5
 
#define PNG_FILTER_HEURISTIC_DEFAULT   0 /* Currently "UNWEIGHTED" */
 
#define PNG_FILTER_HEURISTIC_UNWEIGHTED   1 /* Used by libpng < 0.95 */
 
#define PNG_FILTER_HEURISTIC_WEIGHTED   2 /* Experimental feature */
 
#define PNG_FILTER_HEURISTIC_LAST   3 /* Not a valid value */
 
#define PNG_DESTROY_WILL_FREE_DATA   1
 
#define PNG_SET_WILL_FREE_DATA   1
 
#define PNG_USER_WILL_FREE_DATA   2
 
#define PNG_FREE_HIST   0x0008U
 
#define PNG_FREE_ICCP   0x0010U
 
#define PNG_FREE_SPLT   0x0020U
 
#define PNG_FREE_ROWS   0x0040U
 
#define PNG_FREE_PCAL   0x0080U
 
#define PNG_FREE_SCAL   0x0100U
 
#define PNG_FREE_UNKN   0x0200U
 
#define PNG_FREE_PLTE   0x1000U
 
#define PNG_FREE_TRNS   0x2000U
 
#define PNG_FREE_TEXT   0x4000U
 
#define PNG_FREE_EXIF   0x8000U /* Added at libpng-1.6.31 */
 
#define PNG_FREE_ALL   0xffffU
 
#define PNG_FREE_MUL   0x4220U /* PNG_FREE_SPLT|PNG_FREE_TEXT|PNG_FREE_UNKN */
 
#define PNG_HANDLE_CHUNK_AS_DEFAULT   0
 
#define PNG_HANDLE_CHUNK_NEVER   1
 
#define PNG_HANDLE_CHUNK_IF_SAFE   2
 
#define PNG_HANDLE_CHUNK_ALWAYS   3
 
#define PNG_HANDLE_CHUNK_LAST   4
 
#define PNG_INTERLACE_ADAM7_PASSES   7
 
#define PNG_PASS_START_ROW(pass)   (((1&~(pass))<<(3-((pass)>>1)))&7)
 
#define PNG_PASS_START_COL(pass)   (((1& (pass))<<(3-(((pass)+1)>>1)))&7)
 
#define PNG_PASS_ROW_OFFSET(pass)   ((pass)>2?(8>>(((pass)-1)>>1)):8)
 
#define PNG_PASS_COL_OFFSET(pass)   (1<<((7-(pass))>>1))
 
#define PNG_PASS_ROW_SHIFT(pass)   ((pass)>2?(8-(pass))>>1:3)
 
#define PNG_PASS_COL_SHIFT(pass)   ((pass)>1?(7-(pass))>>1:3)
 
#define PNG_PASS_ROWS(height, pass)
 
#define PNG_PASS_COLS(width, pass)
 
#define PNG_ROW_FROM_PASS_ROW(y_in, pass)   (((y_in)<<PNG_PASS_ROW_SHIFT(pass))+PNG_PASS_START_ROW(pass))
 
#define PNG_COL_FROM_PASS_COL(x_in, pass)   (((x_in)<<PNG_PASS_COL_SHIFT(pass))+PNG_PASS_START_COL(pass))
 
#define PNG_PASS_MASK(pass, off)
 
#define PNG_ROW_IN_INTERLACE_PASS(y, pass)   ((PNG_PASS_MASK(pass,0) >> ((y)&7)) & 1)
 
#define PNG_COL_IN_INTERLACE_PASS(x, pass)   ((PNG_PASS_MASK(pass,1) >> ((x)&7)) & 1)
 
#define png_composite(composite, fg, alpha, bg)
 
#define png_composite_16(composite, fg, alpha, bg)
 
#define PNG_get_uint_32(buf)
 
#define PNG_get_uint_16(buf)
 
#define PNG_get_int_32(buf)
 
#define png_get_uint_32(buf)   PNG_get_uint_32(buf)
 
#define png_get_uint_16(buf)   PNG_get_uint_16(buf)
 
#define png_get_int_32(buf)   PNG_get_int_32(buf)
 
#define PNG_MAXIMUM_INFLATE_WINDOW   2 /* SOFTWARE: force maximum window */
 
#define PNG_SKIP_sRGB_CHECK_PROFILE   4 /* SOFTWARE: Check ICC profile for sRGB */
 
#define PNG_IGNORE_ADLER32   8
 
#define PNG_OPTION_NEXT   12 /* Next option - numbers must be even */
 
#define PNG_OPTION_UNSET   0 /* Unset - defaults to off */
 
#define PNG_OPTION_INVALID   1 /* Option number out of range */
 
#define PNG_OPTION_OFF   2
 
#define PNG_OPTION_ON   3
 

Typedefs

typedef char * png_libpng_version_1_6_32
 
typedef struct png_struct_def png_struct
 
typedef png_structpng_structp
 
typedef png_struct ** png_structpp
 
typedef struct png_info_def png_info
 
typedef png_infopng_infop
 
typedef png_info ** png_infopp
 
typedef png_structpng_structrp
 
typedef png_infopng_inforp
 
typedef struct png_color_struct png_color
 
typedef png_colorpng_colorp
 
typedef png_color ** png_colorpp
 
typedef struct png_color_16_struct png_color_16
 
typedef png_color_16png_color_16p
 
typedef png_color_16 ** png_color_16pp
 
typedef struct png_color_8_struct png_color_8
 
typedef png_color_8png_color_8p
 
typedef png_color_8 ** png_color_8pp
 
typedef struct png_sPLT_entry_struct png_sPLT_entry
 
typedef png_sPLT_entrypng_sPLT_entryp
 
typedef png_sPLT_entry ** png_sPLT_entrypp
 
typedef struct png_sPLT_struct png_sPLT_t
 
typedef png_sPLT_tpng_sPLT_tp
 
typedef png_sPLT_t ** png_sPLT_tpp
 
typedef struct png_text_struct png_text
 
typedef png_textpng_textp
 
typedef png_text ** png_textpp
 
typedef struct png_time_struct png_time
 
typedef png_timepng_timep
 
typedef png_time ** png_timepp
 
typedef struct png_unknown_chunk_t png_unknown_chunk
 
typedef png_unknown_chunkpng_unknown_chunkp
 
typedef png_unknown_chunk ** png_unknown_chunkpp
 
typedef struct png_row_info_struct png_row_info
 
typedef png_row_infopng_row_infop
 
typedef png_row_info ** png_row_infopp
 
typedef void(* png_error_ptr) (png_structp, png_const_charp)
 
typedef void(* png_rw_ptr) (png_structp, png_bytep, png_size_t)
 
typedef void(* png_flush_ptr) (png_structp)
 
typedef void(* png_read_status_ptr) (png_structp, png_uint_32, int)
 
typedef void(* png_write_status_ptr) (png_structp, png_uint_32, int)
 
typedef void(* png_user_transform_ptr) (png_structp, png_row_infop, png_bytep)
 
typedef void(* png_longjmp_ptr) (jmp_buf, int)
 
typedef png_voidp(* png_malloc_ptr) (png_structp, png_alloc_size_t)
 
typedef void(* png_free_ptr) (png_structp, png_voidp)
 

Functions

PNG_IMPEXP png_uint_32() png_access_version_number (void)
 
PNG_IMPEXP void() png_set_sig_bytes (png_structrp png_ptr, int num_bytes)
 
PNG_IMPEXP int() png_sig_cmp (png_const_bytep sig, png_size_t start, png_size_t num_to_check)
 
PNG_IMPEXP png_structp() png_create_read_struct (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)
 
PNG_IMPEXP png_structp() png_create_write_struct (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn)
 
PNG_IMPEXP png_size_t() png_get_compression_buffer_size (png_const_structrp png_ptr)
 
PNG_IMPEXP void() png_set_compression_buffer_size (png_structrp png_ptr, png_size_t size)
 
PNG_IMPEXP jmp_buf *() png_set_longjmp_fn (png_structrp png_ptr, png_longjmp_ptr longjmp_fn, size_t jmp_buf_size)
 
PNG_IMPEXP void() png_longjmp (png_const_structrp png_ptr, int val)
 
PNG_DEPRECATED PNG_IMPEXP int() png_reset_zstream (png_structrp png_ptr)
 
PNG_IMPEXP png_structp() png_create_read_struct_2 (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)
 
PNG_IMPEXP png_structp() png_create_write_struct_2 (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)
 
PNG_IMPEXP void() png_write_sig (png_structrp png_ptr)
 
PNG_IMPEXP void() png_write_chunk (png_structrp png_ptr, png_const_bytep chunk_name, png_const_bytep data, png_size_t length)
 
PNG_IMPEXP void() png_write_chunk_start (png_structrp png_ptr, png_const_bytep chunk_name, png_uint_32 length)
 
PNG_IMPEXP void() png_write_chunk_data (png_structrp png_ptr, png_const_bytep data, png_size_t length)
 
PNG_IMPEXP void() png_write_chunk_end (png_structrp png_ptr)
 
PNG_IMPEXP png_infop() png_create_info_struct (png_const_structrp png_ptr)
 
PNG_DEPRECATED PNG_IMPEXP void() png_info_init_3 (png_infopp info_ptr, png_size_t png_info_struct_size)
 
PNG_IMPEXP void() png_write_info_before_PLTE (png_structrp png_ptr, png_const_inforp info_ptr)
 
PNG_IMPEXP void() png_write_info (png_structrp png_ptr, png_const_inforp info_ptr)
 
PNG_IMPEXP void() png_read_info (png_structrp png_ptr, png_inforp info_ptr)
 
PNG_IMPEXP void() png_set_expand (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_expand_gray_1_2_4_to_8 (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_palette_to_rgb (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_tRNS_to_alpha (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_expand_16 (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_gray_to_rgb (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_rgb_to_gray (png_structrp png_ptr, int error_action, double red, double green)
 
PNG_IMPEXP void() png_set_rgb_to_gray_fixed (png_structrp png_ptr, int error_action, png_fixed_point red, png_fixed_point green)
 
PNG_IMPEXP png_byte() png_get_rgb_to_gray_status (png_const_structrp png_ptr)
 
PNG_IMPEXP void() png_set_strip_alpha (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_filler (png_structrp png_ptr, png_uint_32 filler, int flags)
 
PNG_IMPEXP void() png_set_add_alpha (png_structrp png_ptr, png_uint_32 filler, int flags)
 
PNG_IMPEXP void() png_set_packing (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_packswap (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_shift (png_structrp png_ptr, png_const_color_8p true_bits)
 
PNG_IMPEXP int() png_set_interlace_handling (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_background (png_structrp png_ptr, png_const_color_16p background_color, int background_gamma_code, int need_expand, double background_gamma)
 
PNG_IMPEXP void() png_set_background_fixed (png_structrp png_ptr, png_const_color_16p background_color, int background_gamma_code, int need_expand, png_fixed_point background_gamma)
 
PNG_IMPEXP void() png_set_scale_16 (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_strip_16 (png_structrp png_ptr)
 
PNG_IMPEXP void() png_set_gamma (png_structrp png_ptr, double screen_gamma, double override_file_gamma)
 
PNG_IMPEXP void() png_set_gamma_fixed (png_structrp png_ptr, png_fixed_point screen_gamma, png_fixed_point override_file_gamma)
 
PNG_IMPEXP void() png_set_flush (png_structrp png_ptr, int nrows)
 
PNG_IMPEXP void() png_write_flush (png_structrp png_ptr)
 
PNG_IMPEXP void() png_start_read_image (png_structrp png_ptr)
 
PNG_IMPEXP void() png_read_update_info (png_structrp png_ptr, png_inforp info_ptr)
 
PNG_IMPEXP void() png_read_rows (png_structrp png_ptr, png_bytepp row, png_bytepp display_row, png_uint_32 num_rows)
 
PNG_IMPEXP void() png_read_row (png_structrp png_ptr, png_bytep row, png_bytep display_row)
 
PNG_IMPEXP void() png_read_image (png_structrp png_ptr, png_bytepp image)
 
PNG_IMPEXP void() png_write_row (png_structrp png_ptr, png_const_bytep row)
 
PNG_IMPEXP void() png_write_rows (png_structrp png_ptr, png_bytepp row, png_uint_32 num_rows)
 
PNG_IMPEXP void() png_write_image (png_structrp png_ptr, png_bytepp image)
 
PNG_IMPEXP void() png_write_end (png_structrp png_ptr, png_inforp info_ptr)
 
PNG_IMPEXP void() png_read_end (png_structrp png_ptr, png_inforp info_ptr)
 
PNG_IMPEXP void() png_destroy_info_struct (png_const_structrp png_ptr, png_infopp info_ptr_ptr)
 
PNG_IMPEXP void() png_destroy_read_struct (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr)
 
PNG_IMPEXP void() png_destroy_write_struct (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr)
 
PNG_IMPEXP void() png_set_crc_action (png_structrp png_ptr, int crit_action, int ancil_action)
 
PNG_IMPEXP void() png_set_filter (png_structrp png_ptr, int method, int filters)
 
PNG_IMPEXP void() png_set_compression_level (png_structrp png_ptr, int level)
 
PNG_IMPEXP void() png_set_compression_mem_level (png_structrp png_ptr, int mem_level)
 
PNG_IMPEXP void() png_set_compression_strategy (png_structrp png_ptr, int strategy)
 
PNG_IMPEXP void() png_set_compression_window_bits (png_structrp png_ptr, int window_bits)
 
PNG_IMPEXP void() png_set_compression_method (png_structrp png_ptr, int method)
 
PNG_IMPEXP void() png_set_text_compression_level (png_structrp png_ptr, int level)
 
PNG_IMPEXP void() png_set_text_compression_mem_level (png_structrp png_ptr, int mem_level)
 
PNG_IMPEXP void() png_set_text_compression_strategy (png_structrp png_ptr, int strategy)
 
PNG_IMPEXP void() png_set_text_compression_window_bits (png_structrp png_ptr, int window_bits)
 
PNG_IMPEXP void() png_set_text_compression_method (png_structrp png_ptr, int method)
 
PNG_IMPEXP void() png_init_io (png_structrp png_ptr, png_FILE_p fp)
 
PNG_IMPEXP void() png_set_error_fn (png_structrp png_ptr, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warning_fn)
 
PNG_IMPEXP png_voidp() png_get_error_ptr (png_const_structrp png_ptr)
 
PNG_IMPEXP void() png_set_write_fn (png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr write_data_fn, png_flush_ptr output_flush_fn)
 
PNG_IMPEXP void() png_set_read_fn (png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn)
 
PNG_IMPEXP png_voidp() png_get_io_ptr (png_const_structrp png_ptr)
 
PNG_IMPEXP void() png_set_read_status_fn (png_structrp png_ptr, png_read_status_ptr read_row_fn)
 
PNG_IMPEXP void() png_set_write_status_fn (png_structrp png_ptr, png_write_status_ptr write_row_fn)
 
PNG_IMPEXP void() png_set_mem_fn (png_structrp png_ptr, png_voidp mem_ptr, png_malloc_ptr malloc_fn, png_free_ptr free_fn)
 
PNG_IMPEXP png_voidp() png_get_mem_ptr (png_const_structrp png_ptr)
 
PNG_IMPEXP void() png_set_read_user_transform_fn (png_structrp png_ptr, png_user_transform_ptr read_user_transform_fn)
 
PNG_IMPEXP void() png_set_write_user_transform_fn (png_structrp png_ptr, png_user_transform_ptr write_user_transform_fn)
 
PNG_IMPEXP void() png_set_user_transform_info (png_structrp png_ptr, png_voidp user_transform_ptr, int user_transform_depth, int user_transform_channels)
 
PNG_IMPEXP png_voidp() png_get_user_transform_ptr (png_const_structrp png_ptr)
 
PNG_IMPEXP png_uint_32() png_get_current_row_number (png_const_structrp)
 
PNG_IMPEXP png_byte() png_get_current_pass_number (png_const_structrp)
 
PNG_IMPEXP png_voidp() png_malloc (png_const_structrp png_ptr, png_alloc_size_t size)
 
PNG_IMPEXP png_voidp() png_calloc (png_const_structrp png_ptr, png_alloc_size_t size)
 
PNG_IMPEXP png_voidp() png_malloc_warn (png_const_structrp png_ptr, png_alloc_size_t size)
 
PNG_IMPEXP void() png_free (png_const_structrp png_ptr, png_voidp ptr)
 
PNG_IMPEXP void() png_free_data (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 free_me, int num)
 
PNG_IMPEXP void() png_data_freer (png_const_structrp png_ptr, png_inforp info_ptr, int freer, png_uint_32 mask)
 
PNG_DEPRECATED PNG_IMPEXP png_voidp() png_malloc_default (png_const_structrp png_ptr, png_alloc_size_t size)
 
PNG_DEPRECATED PNG_IMPEXP void() png_free_default (png_const_structrp png_ptr, png_voidp ptr)
 
PNG_IMPEXP void() png_error (png_const_structrp png_ptr, png_const_charp error_message)
 
PNG_IMPEXP void() png_chunk_error (png_const_structrp png_ptr, png_const_charp error_message)
 
PNG_IMPEXP void() png_warning (png_const_structrp png_ptr, png_const_charp warning_message)
 
PNG_IMPEXP void() png_chunk_warning (png_const_structrp png_ptr, png_const_charp warning_message)
 
PNG_IMPEXP void() png_benign_error (png_const_structrp png_ptr, png_const_charp warning_message)
 
PNG_IMPEXP void() png_chunk_benign_error (png_const_structrp png_ptr, png_const_charp warning_message)
 
PNG_IMPEXP void() png_set_benign_errors (png_structrp png_ptr, int allowed)
 
PNG_IMPEXP png_uint_32() png_get_valid (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 flag)
 
PNG_IMPEXP png_size_t() png_get_rowbytes (png_const_structrp png_ptr, png_const_inforp info_ptr)
 
PNG_IMPEXP png_byte() png_get_channels (png_const_structrp png_ptr, png_const_inforp info_ptr)
 
PNG_IMPEXP png_const_bytep() png_get_signature (png_const_structrp png_ptr, png_const_inforp info_ptr)
 
PNG_IMPEXP png_uint_32() png_get_bKGD (png_const_structrp png_ptr, png_inforp info_ptr, png_color_16p *background)
 
PNG_IMPEXP void() png_set_bKGD (png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_16p background)
 
PNG_IMPEXP png_uint_32() png_get_cHRM (png_const_structrp png_ptr, png_const_inforp info_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_IMPEXP png_uint_32() png_get_cHRM_XYZ (png_const_structrp png_ptr, png_const_inforp info_ptr, double *red_X, double *red_Y, double *red_Z, double *green_X, double *green_Y, double *green_Z, double *blue_X, double *blue_Y, double *blue_Z)
 
PNG_IMPEXP png_uint_32() png_get_cHRM_fixed (png_const_structrp png_ptr, png_const_inforp info_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_point *int_green_x, png_fixed_point *int_green_y, png_fixed_point *int_blue_x, png_fixed_point *int_blue_y)
 
PNG_IMPEXP png_uint_32() png_get_cHRM_XYZ_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *int_red_X, png_fixed_point *int_red_Y, png_fixed_point *int_red_Z, png_fixed_point *int_green_X, png_fixed_point *int_green_Y, png_fixed_point *int_green_Z, png_fixed_point *int_blue_X, png_fixed_point *int_blue_Y, png_fixed_point *int_blue_Z)
 
PNG_IMPEXP void() png_set_cHRM (png_const_structrp png_ptr, png_inforp info_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_IMPEXP void() png_set_cHRM_XYZ (png_const_structrp png_ptr, png_inforp info_ptr, double red_X, double red_Y, double red_Z, double green_X, double green_Y, double green_Z, double blue_X, double blue_Y, double blue_Z)
 
PNG_IMPEXP void() png_set_cHRM_fixed (png_const_structrp png_ptr, png_inforp info_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_point int_green_x, png_fixed_point int_green_y, png_fixed_point int_blue_x, png_fixed_point int_blue_y)
 
PNG_IMPEXP void() png_set_cHRM_XYZ_fixed (png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point int_red_X, png_fixed_point int_red_Y, png_fixed_point int_red_Z, png_fixed_point int_green_X, png_fixed_point int_green_Y, png_fixed_point int_green_Z, png_fixed_point int_blue_X, png_fixed_point int_blue_Y, png_fixed_point int_blue_Z)
 
PNG_IMPEXP png_uint_32() png_get_eXIf (png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *exif)
 
PNG_IMPEXP void() png_set_eXIf (png_const_structrp png_ptr, png_inforp info_ptr, const png_bytep exif)
 
PNG_IMPEXP png_uint_32() png_get_eXIf_1 (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *num_exif, png_bytep *exif)
 
PNG_IMPEXP void() png_set_eXIf_1 (png_const_structrp png_ptr, png_inforp info_ptr, const png_uint_32 num_exif, const png_bytep exif)
 
PNG_IMPEXP png_uint_32() png_get_gAMA (png_const_structrp png_ptr, png_const_inforp info_ptr, double *file_gamma)
 
PNG_IMPEXP png_uint_32() png_get_gAMA_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *int_file_gamma)
 
PNG_IMPEXP void() png_set_gAMA (png_const_structrp png_ptr, png_inforp info_ptr, double file_gamma)
 
PNG_IMPEXP void() png_set_gAMA_fixed (png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point int_file_gamma)
 
PNG_IMPEXP png_uint_32() png_get_hIST (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_16p *hist)
 
PNG_IMPEXP void() png_set_hIST (png_const_structrp png_ptr, png_inforp info_ptr, png_const_uint_16p hist)
 
PNG_IMPEXP png_uint_32() png_get_IHDR (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_method, int *compression_method, int *filter_method)
 
PNG_IMPEXP void() png_set_IHDR (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_method, int compression_method, int filter_method)
 
PNG_IMPEXP png_uint_32() png_get_oFFs (png_const_structrp png_ptr, png_const_inforp info_ptr, png_int_32 *offset_x, png_int_32 *offset_y, int *unit_type)
 
PNG_IMPEXP void() png_set_oFFs (png_const_structrp png_ptr, png_inforp info_ptr, png_int_32 offset_x, png_int_32 offset_y, int unit_type)
 
PNG_IMPEXP png_uint_32() png_get_pCAL (png_const_structrp png_ptr, png_inforp info_ptr, png_charp *purpose, png_int_32 *X0, png_int_32 *X1, int *type, int *nparams, png_charp *units, png_charpp *params)
 
PNG_IMPEXP void() png_set_pCAL (png_const_structrp png_ptr, png_inforp info_ptr, png_const_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_const_charp units, png_charpp params)
 
PNG_IMPEXP png_uint_32() png_get_pHYs (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
 
PNG_IMPEXP void() png_set_pHYs (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 res_x, png_uint_32 res_y, int unit_type)
 
PNG_IMPEXP png_uint_32() png_get_PLTE (png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette)
 
PNG_IMPEXP void() png_set_PLTE (png_structrp png_ptr, png_inforp info_ptr, png_const_colorp palette, int num_palette)
 
PNG_IMPEXP png_uint_32() png_get_sBIT (png_const_structrp png_ptr, png_inforp info_ptr, png_color_8p *sig_bit)
 
PNG_IMPEXP void() png_set_sBIT (png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_8p sig_bit)
 
PNG_IMPEXP png_uint_32() png_get_sRGB (png_const_structrp png_ptr, png_const_inforp info_ptr, int *file_srgb_intent)
 
PNG_IMPEXP void() png_set_sRGB (png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
 
PNG_IMPEXP void() png_set_sRGB_gAMA_and_cHRM (png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent)
 
PNG_IMPEXP png_uint_32() png_get_iCCP (png_const_structrp png_ptr, png_inforp info_ptr, png_charpp name, int *compression_type, png_bytepp profile, png_uint_32 *proflen)
 
PNG_IMPEXP void() png_set_iCCP (png_const_structrp png_ptr, png_inforp info_ptr, png_const_charp name, int compression_type, png_const_bytep profile, png_uint_32 proflen)
 
PNG_IMPEXP int() png_get_sPLT (png_const_structrp png_ptr, png_inforp info_ptr, png_sPLT_tpp entries)
 
PNG_IMPEXP void() png_set_sPLT (png_const_structrp png_ptr, png_inforp info_ptr, png_const_sPLT_tp entries, int nentries)
 
PNG_IMPEXP int() png_get_text (png_const_structrp png_ptr, png_inforp info_ptr, png_textp *text_ptr, int *num_text)
 
PNG_IMPEXP void() png_set_text (png_const_structrp png_ptr, png_inforp info_ptr, png_const_textp text_ptr, int num_text)
 
PNG_IMPEXP png_uint_32() png_get_tIME (png_const_structrp png_ptr, png_inforp info_ptr, png_timep *mod_time)
 
PNG_IMPEXP void() png_set_tIME (png_const_structrp png_ptr, png_inforp info_ptr, png_const_timep mod_time)
 
PNG_IMPEXP png_uint_32() png_get_tRNS (png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color)
 
PNG_IMPEXP void() png_set_tRNS (png_structrp png_ptr, png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color)
 
PNG_IMPEXP png_uint_32() png_get_sCAL (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, double *width, double *height)
 
PNG_IMPEXP png_uint_32() png_get_sCAL_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_fixed_point *width, png_fixed_point *height)
 
PNG_IMPEXP png_uint_32() png_get_sCAL_s (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_charpp swidth, png_charpp sheight)
 
PNG_IMPEXP void() png_set_sCAL (png_const_structrp png_ptr, png_inforp info_ptr, int unit, double width, double height)
 
PNG_IMPEXP void() png_set_sCAL_fixed (png_const_structrp png_ptr, png_inforp info_ptr, int unit, png_fixed_point width, png_fixed_point height)
 
PNG_IMPEXP void() png_set_sCAL_s (png_const_structrp png_ptr, png_inforp info_ptr, int unit, png_const_charp swidth, png_const_charp sheight)
 
PNG_IMPEXP void() png_set_keep_unknown_chunks (png_structrp png_ptr, int keep, png_const_bytep chunk_list, int num_chunks)
 
PNG_IMPEXP int() png_handle_as_unknown (png_const_structrp png_ptr, png_const_bytep chunk_name)
 
PNG_IMPEXP void() png_set_unknown_chunks (png_const_structrp png_ptr, png_inforp info_ptr, png_const_unknown_chunkp unknowns, int num_unknowns)
 
PNG_IMPEXP void() png_set_unknown_chunk_location (png_const_structrp png_ptr, png_inforp info_ptr, int chunk, int location)
 
PNG_IMPEXP int() png_get_unknown_chunks (png_const_structrp png_ptr, png_inforp info_ptr, png_unknown_chunkpp entries)
 
PNG_IMPEXP void() png_set_invalid (png_const_structrp png_ptr, png_inforp info_ptr, int mask)
 
PNG_IMPEXP png_const_charp() png_get_copyright (png_const_structrp png_ptr)
 
PNG_IMPEXP png_const_charp() png_get_header_ver (png_const_structrp png_ptr)
 
PNG_IMPEXP png_const_charp() png_get_header_version (png_const_structrp png_ptr)
 
PNG_IMPEXP png_const_charp() png_get_libpng_ver (png_const_structrp png_ptr)
 
PNG_IMPEXP png_uint_32() png_permit_mng_features (png_structrp png_ptr, png_uint_32 mng_features_permitted)
 
PNG_IMPEXP void() png_set_user_limits (png_structrp png_ptr, png_uint_32 user_width_max, png_uint_32 user_height_max)
 
PNG_IMPEXP png_uint_32() png_get_user_width_max (png_const_structrp png_ptr)
 
PNG_IMPEXP png_uint_32() png_get_user_height_max (png_const_structrp png_ptr)
 
PNG_IMPEXP void() png_set_chunk_cache_max (png_structrp png_ptr, png_uint_32 user_chunk_cache_max)
 
PNG_IMPEXP png_uint_32() png_get_chunk_cache_max (png_const_structrp png_ptr)
 
PNG_IMPEXP void() png_set_chunk_malloc_max (png_structrp png_ptr, png_alloc_size_t user_chunk_cache_max)
 
PNG_IMPEXP png_alloc_size_t() png_get_chunk_malloc_max (png_const_structrp png_ptr)
 
PNG_IMPEXP png_uint_32() png_get_uint_32 (png_const_bytep buf)
 
PNG_IMPEXP png_uint_16() png_get_uint_16 (png_const_bytep buf)
 
PNG_IMPEXP png_int_32() png_get_int_32 (png_const_bytep buf)
 
PNG_IMPEXP png_uint_32() png_get_uint_31 (png_const_structrp png_ptr, png_const_bytep buf)
 
PNG_IMPEXP void() png_save_uint_32 (png_bytep buf, png_uint_32 i)
 
PNG_IMPEXP void() png_save_int_32 (png_bytep buf, png_int_32 i)
 
PNG_IMPEXP void() png_save_uint_16 (png_bytep buf, unsigned int i)
 
PNG_IMPEXP void() png_set_check_for_invalid_index (png_structrp png_ptr, int allowed)
 
PNG_IMPEXP int() png_get_palette_max (png_const_structp png_ptr, png_const_infop info_ptr)
 
PNG_IMPEXP int() png_set_option (png_structrp png_ptr, int option, int onoff)
 

Variables

const typedef png_structpng_const_structp
 
const typedef png_infopng_const_infop
 
const typedef png_structpng_const_structrp
 
const typedef png_infopng_const_inforp
 
const typedef png_colorpng_const_colorp
 
const typedef png_color_16png_const_color_16p
 
const typedef png_color_8png_const_color_8p
 
const typedef png_sPLT_entrypng_const_sPLT_entryp
 
const typedef png_sPLT_tpng_const_sPLT_tp
 
const typedef png_textpng_const_textp
 
const typedef png_timepng_const_timep
 
const typedef png_unknown_chunkpng_const_unknown_chunkp
 

Macro Definition Documentation

◆ PNG_AFTER_IDAT

#define PNG_AFTER_IDAT   0x08

Definition at line 677 of file png.h.

◆ PNG_ALL_FILTERS

#define PNG_ALL_FILTERS   (PNG_FAST_FILTERS | PNG_FILTER_AVG | PNG_FILTER_PAETH)

Definition at line 1502 of file png.h.

◆ PNG_ALL_MNG_FEATURES

#define PNG_ALL_MNG_FEATURES   0x05

Definition at line 890 of file png.h.

◆ PNG_BACKGROUND_GAMMA_FILE

#define PNG_BACKGROUND_GAMMA_FILE   2

Definition at line 1340 of file png.h.

◆ PNG_BACKGROUND_GAMMA_SCREEN

#define PNG_BACKGROUND_GAMMA_SCREEN   1

Definition at line 1339 of file png.h.

◆ PNG_BACKGROUND_GAMMA_UNIQUE

#define PNG_BACKGROUND_GAMMA_UNIQUE   3

Definition at line 1341 of file png.h.

◆ PNG_BACKGROUND_GAMMA_UNKNOWN

#define PNG_BACKGROUND_GAMMA_UNKNOWN   0

Definition at line 1338 of file png.h.

◆ png_check_sig

#define png_check_sig (   sig,
 
)    !png_sig_cmp((sig), 0, (n))

Definition at line 950 of file png.h.

◆ PNG_COL_FROM_PASS_COL

#define PNG_COL_FROM_PASS_COL (   x_in,
  pass 
)    (((x_in)<<PNG_PASS_COL_SHIFT(pass))+PNG_PASS_START_COL(pass))

Definition at line 2508 of file png.h.

◆ PNG_COL_IN_INTERLACE_PASS

#define PNG_COL_IN_INTERLACE_PASS (   x,
  pass 
)    ((PNG_PASS_MASK(pass,1) >> ((x)&7)) & 1)

Definition at line 2523 of file png.h.

◆ PNG_COLOR_MASK_ALPHA

#define PNG_COLOR_MASK_ALPHA   4

Definition at line 696 of file png.h.

◆ PNG_COLOR_MASK_COLOR

#define PNG_COLOR_MASK_COLOR   2

Definition at line 695 of file png.h.

◆ PNG_COLOR_MASK_PALETTE

#define PNG_COLOR_MASK_PALETTE   1

Definition at line 694 of file png.h.

◆ PNG_COLOR_TYPE_GA

#define PNG_COLOR_TYPE_GA   PNG_COLOR_TYPE_GRAY_ALPHA

Definition at line 706 of file png.h.

◆ PNG_COLOR_TYPE_GRAY

#define PNG_COLOR_TYPE_GRAY   0

Definition at line 699 of file png.h.

◆ PNG_COLOR_TYPE_GRAY_ALPHA

#define PNG_COLOR_TYPE_GRAY_ALPHA   (PNG_COLOR_MASK_ALPHA)

Definition at line 703 of file png.h.

◆ PNG_COLOR_TYPE_PALETTE

#define PNG_COLOR_TYPE_PALETTE   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_PALETTE)

Definition at line 700 of file png.h.

◆ PNG_COLOR_TYPE_RGB

#define PNG_COLOR_TYPE_RGB   (PNG_COLOR_MASK_COLOR)

Definition at line 701 of file png.h.

◆ PNG_COLOR_TYPE_RGB_ALPHA

#define PNG_COLOR_TYPE_RGB_ALPHA   (PNG_COLOR_MASK_COLOR | PNG_COLOR_MASK_ALPHA)

Definition at line 702 of file png.h.

◆ PNG_COLOR_TYPE_RGBA

#define PNG_COLOR_TYPE_RGBA   PNG_COLOR_TYPE_RGB_ALPHA

Definition at line 705 of file png.h.

◆ png_composite

#define png_composite (   composite,
  fg,
  alpha,
  bg 
)
Value:
(composite) = \
(png_byte)(0xff & (((png_uint_16)(fg) * (png_uint_16)(alpha) + \
(png_uint_16)(bg) * (png_uint_16)(255 - (png_uint_16)(alpha)) + \
127) / 255))

Definition at line 2561 of file png.h.

◆ png_composite_16

#define png_composite_16 (   composite,
  fg,
  alpha,
  bg 
)
Value:
(composite) = \
(png_uint_16)(0xffff & (((png_uint_32)(fg) * (png_uint_32)(alpha) + \
(png_uint_32)(bg)*(png_uint_32)(65535 - (png_uint_32)(alpha)) + \
32767) / 65535))

Definition at line 2567 of file png.h.

◆ PNG_COMPRESSION_TYPE_BASE

#define PNG_COMPRESSION_TYPE_BASE   0 /* Deflate method 8, 32K window */

Definition at line 709 of file png.h.

◆ PNG_COMPRESSION_TYPE_DEFAULT

#define PNG_COMPRESSION_TYPE_DEFAULT   PNG_COMPRESSION_TYPE_BASE

Definition at line 710 of file png.h.

◆ PNG_CRC_DEFAULT

#define PNG_CRC_DEFAULT   0 /* error/quit warn/discard data */

Definition at line 1467 of file png.h.

◆ PNG_CRC_ERROR_QUIT

#define PNG_CRC_ERROR_QUIT   1 /* error/quit error/quit */

Definition at line 1468 of file png.h.

◆ PNG_CRC_NO_CHANGE

#define PNG_CRC_NO_CHANGE   5 /* use current value use current value */

Definition at line 1472 of file png.h.

◆ PNG_CRC_QUIET_USE

#define PNG_CRC_QUIET_USE   4 /* quiet/use data quiet/use data */

Definition at line 1471 of file png.h.

◆ PNG_CRC_WARN_DISCARD

#define PNG_CRC_WARN_DISCARD   2 /* (INVALID) warn/discard data */

Definition at line 1469 of file png.h.

◆ PNG_CRC_WARN_USE

#define PNG_CRC_WARN_USE   3 /* warn/use data warn/use data */

Definition at line 1470 of file png.h.

◆ PNG_DEFAULT_sRGB

#define PNG_DEFAULT_sRGB   -1 /* sRGB gamma and color space */

Definition at line 1178 of file png.h.

◆ PNG_DESTROY_WILL_FREE_DATA

#define PNG_DESTROY_WILL_FREE_DATA   1

Definition at line 1775 of file png.h.

◆ PNG_EQUATION_ARBITRARY

#define PNG_EQUATION_ARBITRARY   2 /* Arbitrary base exponential transform */

Definition at line 730 of file png.h.

◆ PNG_EQUATION_BASE_E

#define PNG_EQUATION_BASE_E   1 /* Exponential base e transform */

Definition at line 729 of file png.h.

◆ PNG_EQUATION_HYPERBOLIC

#define PNG_EQUATION_HYPERBOLIC   3 /* Hyperbolic sine transformation */

Definition at line 731 of file png.h.

◆ PNG_EQUATION_LAST

#define PNG_EQUATION_LAST   4 /* Not a valid value */

Definition at line 732 of file png.h.

◆ PNG_EQUATION_LINEAR

#define PNG_EQUATION_LINEAR   0 /* Linear transformation */

Definition at line 728 of file png.h.

◆ PNG_ERROR_ACTION_ERROR

#define PNG_ERROR_ACTION_ERROR   3

Definition at line 1109 of file png.h.

◆ PNG_ERROR_ACTION_NONE

#define PNG_ERROR_ACTION_NONE   1

Definition at line 1107 of file png.h.

◆ PNG_ERROR_ACTION_WARN

#define PNG_ERROR_ACTION_WARN   2

Definition at line 1108 of file png.h.

◆ PNG_FAST_FILTERS

#define PNG_FAST_FILTERS   (PNG_FILTER_NONE | PNG_FILTER_SUB | PNG_FILTER_UP)

Definition at line 1501 of file png.h.

◆ PNG_FILLER_AFTER

#define PNG_FILLER_AFTER   1

Definition at line 1280 of file png.h.

◆ PNG_FILLER_BEFORE

#define PNG_FILLER_BEFORE   0

Definition at line 1279 of file png.h.

◆ PNG_FILTER_AVG

#define PNG_FILTER_AVG   0x40

Definition at line 1499 of file png.h.

◆ PNG_FILTER_HEURISTIC_DEFAULT

#define PNG_FILTER_HEURISTIC_DEFAULT   0 /* Currently "UNWEIGHTED" */

Definition at line 1526 of file png.h.

◆ PNG_FILTER_HEURISTIC_LAST

#define PNG_FILTER_HEURISTIC_LAST   3 /* Not a valid value */

Definition at line 1529 of file png.h.

◆ PNG_FILTER_HEURISTIC_UNWEIGHTED

#define PNG_FILTER_HEURISTIC_UNWEIGHTED   1 /* Used by libpng < 0.95 */

Definition at line 1527 of file png.h.

◆ PNG_FILTER_HEURISTIC_WEIGHTED

#define PNG_FILTER_HEURISTIC_WEIGHTED   2 /* Experimental feature */

Definition at line 1528 of file png.h.

◆ PNG_FILTER_NONE

#define PNG_FILTER_NONE   0x08

Definition at line 1496 of file png.h.

◆ PNG_FILTER_PAETH

#define PNG_FILTER_PAETH   0x80

Definition at line 1500 of file png.h.

◆ PNG_FILTER_SUB

#define PNG_FILTER_SUB   0x10

Definition at line 1497 of file png.h.

◆ PNG_FILTER_TYPE_BASE

#define PNG_FILTER_TYPE_BASE   0 /* Single row per-byte filtering */

Definition at line 713 of file png.h.

◆ PNG_FILTER_TYPE_DEFAULT

#define PNG_FILTER_TYPE_DEFAULT   PNG_FILTER_TYPE_BASE

Definition at line 715 of file png.h.

◆ PNG_FILTER_UP

#define PNG_FILTER_UP   0x20

Definition at line 1498 of file png.h.

◆ PNG_FILTER_VALUE_AVG

#define PNG_FILTER_VALUE_AVG   3

Definition at line 1510 of file png.h.

◆ PNG_FILTER_VALUE_LAST

#define PNG_FILTER_VALUE_LAST   5

Definition at line 1512 of file png.h.

◆ PNG_FILTER_VALUE_NONE

#define PNG_FILTER_VALUE_NONE   0

Definition at line 1507 of file png.h.

◆ PNG_FILTER_VALUE_PAETH

#define PNG_FILTER_VALUE_PAETH   4

Definition at line 1511 of file png.h.

◆ PNG_FILTER_VALUE_SUB

#define PNG_FILTER_VALUE_SUB   1

Definition at line 1508 of file png.h.

◆ PNG_FILTER_VALUE_UP

#define PNG_FILTER_VALUE_UP   2

Definition at line 1509 of file png.h.

◆ PNG_FLAG_MNG_EMPTY_PLTE

#define PNG_FLAG_MNG_EMPTY_PLTE   0x01

Definition at line 888 of file png.h.

◆ PNG_FLAG_MNG_FILTER_64

#define PNG_FLAG_MNG_FILTER_64   0x04

Definition at line 889 of file png.h.

◆ PNG_FP_1

#define PNG_FP_1   100000

Definition at line 687 of file png.h.

◆ PNG_FP_HALF

#define PNG_FP_HALF   50000

Definition at line 688 of file png.h.

◆ PNG_FP_MAX

#define PNG_FP_MAX   ((png_fixed_point)0x7fffffffL)

Definition at line 689 of file png.h.

◆ PNG_FP_MIN

#define PNG_FP_MIN   (-PNG_FP_MAX)

Definition at line 690 of file png.h.

◆ PNG_FREE_ALL

#define PNG_FREE_ALL   0xffffU

Definition at line 1793 of file png.h.

◆ PNG_FREE_EXIF

#define PNG_FREE_EXIF   0x8000U /* Added at libpng-1.6.31 */

Definition at line 1792 of file png.h.

◆ PNG_FREE_HIST

#define PNG_FREE_HIST   0x0008U

Definition at line 1779 of file png.h.

◆ PNG_FREE_ICCP

#define PNG_FREE_ICCP   0x0010U

Definition at line 1780 of file png.h.

◆ PNG_FREE_MUL

#define PNG_FREE_MUL   0x4220U /* PNG_FREE_SPLT|PNG_FREE_TEXT|PNG_FREE_UNKN */

Definition at line 1794 of file png.h.

◆ PNG_FREE_PCAL

#define PNG_FREE_PCAL   0x0080U

Definition at line 1783 of file png.h.

◆ PNG_FREE_PLTE

#define PNG_FREE_PLTE   0x1000U

Definition at line 1789 of file png.h.

◆ PNG_FREE_ROWS

#define PNG_FREE_ROWS   0x0040U

Definition at line 1782 of file png.h.

◆ PNG_FREE_SCAL

#define PNG_FREE_SCAL   0x0100U

Definition at line 1784 of file png.h.

◆ PNG_FREE_SPLT

#define PNG_FREE_SPLT   0x0020U

Definition at line 1781 of file png.h.

◆ PNG_FREE_TEXT

#define PNG_FREE_TEXT   0x4000U

Definition at line 1791 of file png.h.

◆ PNG_FREE_TRNS

#define PNG_FREE_TRNS   0x2000U

Definition at line 1790 of file png.h.

◆ PNG_FREE_UNKN

#define PNG_FREE_UNKN   0x0200U

Definition at line 1786 of file png.h.

◆ PNG_GAMMA_LINEAR

#define PNG_GAMMA_LINEAR   PNG_FP_1 /* Linear */

Definition at line 1181 of file png.h.

◆ PNG_GAMMA_MAC_18

#define PNG_GAMMA_MAC_18   -2 /* Old Mac '1.8' gamma and color space */

Definition at line 1179 of file png.h.

◆ PNG_GAMMA_sRGB

#define PNG_GAMMA_sRGB   220000 /* Television standards--matches sRGB gamma */

Definition at line 1180 of file png.h.

◆ PNG_GAMMA_THRESHOLD

#define PNG_GAMMA_THRESHOLD   (PNG_GAMMA_THRESHOLD_FIXED*.00001)

Definition at line 1368 of file png.h.

◆ PNG_get_int_32

#define PNG_get_int_32 (   buf)
Value:
((png_int_32)((*(buf) & 0x80) \
? -((png_int_32)(((png_get_uint_32(buf)^0xffffffffU)+1U)&0x7fffffffU)) \
: (png_int_32)png_get_uint_32(buf)))

Definition at line 2620 of file png.h.

◆ png_get_int_32

#define png_get_int_32 (   buf)    PNG_get_int_32(buf)

Definition at line 2631 of file png.h.

◆ PNG_get_uint_16

#define PNG_get_uint_16 (   buf)
Value:
((png_uint_16) \
(((unsigned int)(*(buf)) << 8) + \
((unsigned int)(*((buf) + 1)))))

Definition at line 2615 of file png.h.

◆ png_get_uint_16

#define png_get_uint_16 (   buf)    PNG_get_uint_16(buf)

Definition at line 2630 of file png.h.

◆ PNG_get_uint_32

#define PNG_get_uint_32 (   buf)
Value:
(((png_uint_32)(*(buf)) << 24) + \
((png_uint_32)(*((buf) + 1)) << 16) + \
((png_uint_32)(*((buf) + 2)) << 8) + \
((png_uint_32)(*((buf) + 3))))

Definition at line 2606 of file png.h.

◆ png_get_uint_32

#define png_get_uint_32 (   buf)    PNG_get_uint_32(buf)

Definition at line 2629 of file png.h.

◆ PNG_HANDLE_CHUNK_ALWAYS

#define PNG_HANDLE_CHUNK_ALWAYS   3

Definition at line 2379 of file png.h.

◆ PNG_HANDLE_CHUNK_AS_DEFAULT

#define PNG_HANDLE_CHUNK_AS_DEFAULT   0

Definition at line 2376 of file png.h.

◆ PNG_HANDLE_CHUNK_IF_SAFE

#define PNG_HANDLE_CHUNK_IF_SAFE   2

Definition at line 2378 of file png.h.

◆ PNG_HANDLE_CHUNK_LAST

#define PNG_HANDLE_CHUNK_LAST   4

Definition at line 2380 of file png.h.

◆ PNG_HANDLE_CHUNK_NEVER

#define PNG_HANDLE_CHUNK_NEVER   1

Definition at line 2377 of file png.h.

◆ PNG_HAVE_IHDR

#define PNG_HAVE_IHDR   0x01

Definition at line 675 of file png.h.

◆ PNG_HAVE_PLTE

#define PNG_HAVE_PLTE   0x02

Definition at line 676 of file png.h.

◆ PNG_HEADER_VERSION_STRING

#define PNG_HEADER_VERSION_STRING   " libpng version 1.6.32 - August 24, 2017\n"

Definition at line 313 of file png.h.

◆ PNG_IGNORE_ADLER32

#define PNG_IGNORE_ADLER32   8

Definition at line 3237 of file png.h.

◆ PNG_INFO_bKGD

#define PNG_INFO_bKGD   0x0020U

Definition at line 768 of file png.h.

◆ PNG_INFO_cHRM

#define PNG_INFO_cHRM   0x0004U

Definition at line 765 of file png.h.

◆ PNG_INFO_eXIf

#define PNG_INFO_eXIf   0x10000U /* GR-P, 1.6.31 */

Definition at line 779 of file png.h.

◆ PNG_INFO_gAMA

#define PNG_INFO_gAMA   0x0001U

Definition at line 763 of file png.h.

◆ PNG_INFO_hIST

#define PNG_INFO_hIST   0x0040U

Definition at line 769 of file png.h.

◆ PNG_INFO_iCCP

#define PNG_INFO_iCCP   0x1000U /* ESR, 1.0.6 */

Definition at line 775 of file png.h.

◆ PNG_INFO_IDAT

#define PNG_INFO_IDAT   0x8000U /* ESR, 1.0.6 */

Definition at line 778 of file png.h.

◆ PNG_INFO_oFFs

#define PNG_INFO_oFFs   0x0100U

Definition at line 771 of file png.h.

◆ PNG_INFO_pCAL

#define PNG_INFO_pCAL   0x0400U

Definition at line 773 of file png.h.

◆ PNG_INFO_pHYs

#define PNG_INFO_pHYs   0x0080U

Definition at line 770 of file png.h.

◆ PNG_INFO_PLTE

#define PNG_INFO_PLTE   0x0008U

Definition at line 766 of file png.h.

◆ PNG_INFO_sBIT

#define PNG_INFO_sBIT   0x0002U

Definition at line 764 of file png.h.

◆ PNG_INFO_sCAL

#define PNG_INFO_sCAL   0x4000U /* ESR, 1.0.6 */

Definition at line 777 of file png.h.

◆ PNG_INFO_sPLT

#define PNG_INFO_sPLT   0x2000U /* ESR, 1.0.6 */

Definition at line 776 of file png.h.

◆ PNG_INFO_sRGB

#define PNG_INFO_sRGB   0x0800U /* GR-P, 0.96a */

Definition at line 774 of file png.h.

◆ PNG_INFO_tIME

#define PNG_INFO_tIME   0x0200U

Definition at line 772 of file png.h.

◆ PNG_INFO_tRNS

#define PNG_INFO_tRNS   0x0010U

Definition at line 767 of file png.h.

◆ PNG_INTERLACE_ADAM7

#define PNG_INTERLACE_ADAM7   1 /* Adam7 interlacing */

Definition at line 719 of file png.h.

◆ PNG_INTERLACE_ADAM7_PASSES

#define PNG_INTERLACE_ADAM7_PASSES   7

Definition at line 2468 of file png.h.

◆ PNG_INTERLACE_LAST

#define PNG_INTERLACE_LAST   2 /* Not a valid value */

Definition at line 720 of file png.h.

◆ PNG_INTERLACE_NONE

#define PNG_INTERLACE_NONE   0 /* Non-interlaced image */

Definition at line 718 of file png.h.

◆ PNG_INTRAPIXEL_DIFFERENCING

#define PNG_INTRAPIXEL_DIFFERENCING   64 /* Used only in MNG datastreams */

Definition at line 714 of file png.h.

◆ PNG_ITXT_COMPRESSION_NONE

#define PNG_ITXT_COMPRESSION_NONE   1

Definition at line 621 of file png.h.

◆ PNG_ITXT_COMPRESSION_zTXt

#define PNG_ITXT_COMPRESSION_zTXt   2

Definition at line 622 of file png.h.

◆ png_jmpbuf

#define png_jmpbuf (   png_ptr)    (*png_set_longjmp_fn((png_ptr), longjmp, (sizeof (jmp_buf))))

Definition at line 983 of file png.h.

◆ PNG_KEYWORD_MAX_LENGTH

#define PNG_KEYWORD_MAX_LENGTH   79

Definition at line 753 of file png.h.

◆ PNG_LIBPNG_BUILD_ALPHA

#define PNG_LIBPNG_BUILD_ALPHA   1

Definition at line 330 of file png.h.

◆ PNG_LIBPNG_BUILD_BASE_TYPE

#define PNG_LIBPNG_BUILD_BASE_TYPE   PNG_LIBPNG_BUILD_STABLE

Definition at line 344 of file png.h.

◆ PNG_LIBPNG_BUILD_BETA

#define PNG_LIBPNG_BUILD_BETA   2

Definition at line 331 of file png.h.

◆ PNG_LIBPNG_BUILD_PATCH

#define PNG_LIBPNG_BUILD_PATCH
Value:
8 /* Can be OR'ed with
PNG_LIBPNG_BUILD_STABLE only */

Definition at line 337 of file png.h.

◆ PNG_LIBPNG_BUILD_PRIVATE

#define PNG_LIBPNG_BUILD_PRIVATE
Value:
16 /* Cannot be OR'ed with
PNG_LIBPNG_BUILD_SPECIAL */

Definition at line 339 of file png.h.

◆ PNG_LIBPNG_BUILD_RC

#define PNG_LIBPNG_BUILD_RC   3

Definition at line 332 of file png.h.

◆ PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK

#define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK   7

Definition at line 334 of file png.h.

◆ PNG_LIBPNG_BUILD_SPECIAL

#define PNG_LIBPNG_BUILD_SPECIAL
Value:
32 /* Cannot be OR'ed with
PNG_LIBPNG_BUILD_PRIVATE */

Definition at line 341 of file png.h.

◆ PNG_LIBPNG_BUILD_STABLE

#define PNG_LIBPNG_BUILD_STABLE   4

Definition at line 333 of file png.h.

◆ PNG_LIBPNG_BUILD_TYPE

#define PNG_LIBPNG_BUILD_TYPE   (PNG_LIBPNG_BUILD_BASE_TYPE)

Definition at line 391 of file png.h.

◆ PNG_LIBPNG_VER

#define PNG_LIBPNG_VER   10632 /* 1.6.32 */

Definition at line 352 of file png.h.

◆ png_libpng_ver

#define png_libpng_ver   png_get_header_ver(NULL)

Definition at line 405 of file png.h.

◆ PNG_LIBPNG_VER_BUILD

#define PNG_LIBPNG_VER_BUILD   0

Definition at line 327 of file png.h.

◆ PNG_LIBPNG_VER_DLLNUM

#define PNG_LIBPNG_VER_DLLNUM   16

Definition at line 316 of file png.h.

◆ PNG_LIBPNG_VER_MAJOR

#define PNG_LIBPNG_VER_MAJOR   1

Definition at line 319 of file png.h.

◆ PNG_LIBPNG_VER_MINOR

#define PNG_LIBPNG_VER_MINOR   6

Definition at line 320 of file png.h.

◆ PNG_LIBPNG_VER_RELEASE

#define PNG_LIBPNG_VER_RELEASE   32

Definition at line 321 of file png.h.

◆ PNG_LIBPNG_VER_SONUM

#define PNG_LIBPNG_VER_SONUM   16

Definition at line 315 of file png.h.

◆ PNG_LIBPNG_VER_STRING

#define PNG_LIBPNG_VER_STRING   "1.6.32"

Definition at line 312 of file png.h.

◆ PNG_MAX_PALETTE_LENGTH

#define PNG_MAX_PALETTE_LENGTH   256

Definition at line 756 of file png.h.

◆ PNG_MAXIMUM_INFLATE_WINDOW

#define PNG_MAXIMUM_INFLATE_WINDOW   2 /* SOFTWARE: force maximum window */

Definition at line 3232 of file png.h.

◆ PNG_NO_FILTERS

#define PNG_NO_FILTERS   0x00

Definition at line 1495 of file png.h.

◆ PNG_OFFSET_LAST

#define PNG_OFFSET_LAST   2 /* Not a valid value */

Definition at line 725 of file png.h.

◆ PNG_OFFSET_MICROMETER

#define PNG_OFFSET_MICROMETER   1 /* Offset in micrometers (1/10^6 meter) */

Definition at line 724 of file png.h.

◆ PNG_OFFSET_PIXEL

#define PNG_OFFSET_PIXEL   0 /* Offset in pixels */

Definition at line 723 of file png.h.

◆ PNG_OPTION_INVALID

#define PNG_OPTION_INVALID   1 /* Option number out of range */

Definition at line 3245 of file png.h.

◆ PNG_OPTION_NEXT

#define PNG_OPTION_NEXT   12 /* Next option - numbers must be even */

Definition at line 3241 of file png.h.

◆ PNG_OPTION_OFF

#define PNG_OPTION_OFF   2

Definition at line 3246 of file png.h.

◆ PNG_OPTION_ON

#define PNG_OPTION_ON   3

Definition at line 3247 of file png.h.

◆ PNG_OPTION_UNSET

#define PNG_OPTION_UNSET   0 /* Unset - defaults to off */

Definition at line 3244 of file png.h.

◆ PNG_PASS_COL_OFFSET

#define PNG_PASS_COL_OFFSET (   pass)    (1<<((7-(pass))>>1))

Definition at line 2483 of file png.h.

◆ PNG_PASS_COL_SHIFT

#define PNG_PASS_COL_SHIFT (   pass)    ((pass)>1?(7-(pass))>>1:3)

Definition at line 2490 of file png.h.

◆ PNG_PASS_COLS

#define PNG_PASS_COLS (   width,
  pass 
)
Value:
(((width)+(((1<<PNG_PASS_COL_SHIFT(pass))\

Definition at line 2499 of file png.h.

◆ PNG_PASS_MASK

#define PNG_PASS_MASK (   pass,
  off 
)
Value:
( \
((0x110145AF>>(((7-(off))-(pass))<<2)) & 0xF) | \
((0x01145AF0>>(((7-(off))-(pass))<<2)) & 0xF0))

Definition at line 2517 of file png.h.

◆ PNG_PASS_ROW_OFFSET

#define PNG_PASS_ROW_OFFSET (   pass)    ((pass)>2?(8>>(((pass)-1)>>1)):8)

Definition at line 2482 of file png.h.

◆ PNG_PASS_ROW_SHIFT

#define PNG_PASS_ROW_SHIFT (   pass)    ((pass)>2?(8-(pass))>>1:3)

Definition at line 2489 of file png.h.

◆ PNG_PASS_ROWS

#define PNG_PASS_ROWS (   height,
  pass 
)
Value:
(((height)+(((1<<PNG_PASS_ROW_SHIFT(pass))\

Definition at line 2497 of file png.h.

◆ PNG_PASS_START_COL

#define PNG_PASS_START_COL (   pass)    (((1& (pass))<<(3-(((pass)+1)>>1)))&7)

Definition at line 2475 of file png.h.

◆ PNG_PASS_START_ROW

#define PNG_PASS_START_ROW (   pass)    (((1&~(pass))<<(3-((pass)>>1)))&7)

Definition at line 2474 of file png.h.

◆ PNG_READ_16_TO_8_SUPPORTED

#define PNG_READ_16_TO_8_SUPPORTED   /* Name prior to 1.5.4 */

Definition at line 1350 of file png.h.

◆ PNG_RESOLUTION_LAST

#define PNG_RESOLUTION_LAST   2 /* Not a valid value */

Definition at line 743 of file png.h.

◆ PNG_RESOLUTION_METER

#define PNG_RESOLUTION_METER   1 /* pixels/meter */

Definition at line 742 of file png.h.

◆ PNG_RESOLUTION_UNKNOWN

#define PNG_RESOLUTION_UNKNOWN   0 /* pixels/unknown unit (aspect ratio) */

Definition at line 741 of file png.h.

◆ PNG_RGB_TO_GRAY_DEFAULT

#define PNG_RGB_TO_GRAY_DEFAULT   (-1)/*for red/green coefficients*/

Definition at line 1110 of file png.h.

◆ PNG_ROW_FROM_PASS_ROW

#define PNG_ROW_FROM_PASS_ROW (   y_in,
  pass 
)    (((y_in)<<PNG_PASS_ROW_SHIFT(pass))+PNG_PASS_START_ROW(pass))

Definition at line 2506 of file png.h.

◆ PNG_ROW_IN_INTERLACE_PASS

#define PNG_ROW_IN_INTERLACE_PASS (   y,
  pass 
)    ((PNG_PASS_MASK(pass,0) >> ((y)&7)) & 1)

Definition at line 2521 of file png.h.

◆ PNG_SCALE_LAST

#define PNG_SCALE_LAST   3 /* Not a valid value */

Definition at line 738 of file png.h.

◆ PNG_SCALE_METER

#define PNG_SCALE_METER   1 /* meters per pixel */

Definition at line 736 of file png.h.

◆ PNG_SCALE_RADIAN

#define PNG_SCALE_RADIAN   2 /* radians per pixel */

Definition at line 737 of file png.h.

◆ PNG_SCALE_UNKNOWN

#define PNG_SCALE_UNKNOWN   0 /* unknown unit (image scale) */

Definition at line 735 of file png.h.

◆ PNG_SET_WILL_FREE_DATA

#define PNG_SET_WILL_FREE_DATA   1

Definition at line 1776 of file png.h.

◆ PNG_SIZE_MAX

#define PNG_SIZE_MAX   ((png_size_t)(-1))

Definition at line 682 of file png.h.

◆ PNG_SKIP_sRGB_CHECK_PROFILE

#define PNG_SKIP_sRGB_CHECK_PROFILE   4 /* SOFTWARE: Check ICC profile for sRGB */

Definition at line 3233 of file png.h.

◆ PNG_sRGB_INTENT_ABSOLUTE

#define PNG_sRGB_INTENT_ABSOLUTE   3

Definition at line 749 of file png.h.

◆ PNG_sRGB_INTENT_LAST

#define PNG_sRGB_INTENT_LAST   4 /* Not a valid value */

Definition at line 750 of file png.h.

◆ PNG_sRGB_INTENT_PERCEPTUAL

#define PNG_sRGB_INTENT_PERCEPTUAL   0

Definition at line 746 of file png.h.

◆ PNG_sRGB_INTENT_RELATIVE

#define PNG_sRGB_INTENT_RELATIVE   1

Definition at line 747 of file png.h.

◆ PNG_sRGB_INTENT_SATURATION

#define PNG_sRGB_INTENT_SATURATION   2

Definition at line 748 of file png.h.

◆ PNG_TEXT_COMPRESSION_LAST

#define PNG_TEXT_COMPRESSION_LAST   3 /* Not a valid value */

Definition at line 623 of file png.h.

◆ PNG_TEXT_COMPRESSION_NONE

#define PNG_TEXT_COMPRESSION_NONE   -1

Definition at line 619 of file png.h.

◆ PNG_TEXT_COMPRESSION_NONE_WR

#define PNG_TEXT_COMPRESSION_NONE_WR   -3

Definition at line 617 of file png.h.

◆ PNG_TEXT_COMPRESSION_zTXt

#define PNG_TEXT_COMPRESSION_zTXt   0

Definition at line 620 of file png.h.

◆ PNG_TEXT_COMPRESSION_zTXt_WR

#define PNG_TEXT_COMPRESSION_zTXt_WR   -2

Definition at line 618 of file png.h.

◆ PNG_TRANSFORM_BGR

#define PNG_TRANSFORM_BGR   0x0080 /* read and write */

Definition at line 871 of file png.h.

◆ PNG_TRANSFORM_EXPAND

#define PNG_TRANSFORM_EXPAND   0x0010 /* read only */

Definition at line 868 of file png.h.

◆ PNG_TRANSFORM_EXPAND_16

#define PNG_TRANSFORM_EXPAND_16   0x4000 /* read only */

Definition at line 882 of file png.h.

◆ PNG_TRANSFORM_GRAY_TO_RGB

#define PNG_TRANSFORM_GRAY_TO_RGB   0x2000 /* read only */

Definition at line 880 of file png.h.

◆ PNG_TRANSFORM_IDENTITY

#define PNG_TRANSFORM_IDENTITY   0x0000 /* read and write */

Definition at line 863 of file png.h.

◆ PNG_TRANSFORM_INVERT_ALPHA

#define PNG_TRANSFORM_INVERT_ALPHA   0x0400 /* read and write */

Definition at line 874 of file png.h.

◆ PNG_TRANSFORM_INVERT_MONO

#define PNG_TRANSFORM_INVERT_MONO   0x0020 /* read and write */

Definition at line 869 of file png.h.

◆ PNG_TRANSFORM_PACKING

#define PNG_TRANSFORM_PACKING   0x0004 /* read and write */

Definition at line 866 of file png.h.

◆ PNG_TRANSFORM_PACKSWAP

#define PNG_TRANSFORM_PACKSWAP   0x0008 /* read and write */

Definition at line 867 of file png.h.

◆ PNG_TRANSFORM_SHIFT

#define PNG_TRANSFORM_SHIFT   0x0040 /* read and write */

Definition at line 870 of file png.h.

◆ PNG_TRANSFORM_STRIP_16

#define PNG_TRANSFORM_STRIP_16   0x0001 /* read only */

Definition at line 864 of file png.h.

◆ PNG_TRANSFORM_STRIP_ALPHA

#define PNG_TRANSFORM_STRIP_ALPHA   0x0002 /* read only */

Definition at line 865 of file png.h.

◆ PNG_TRANSFORM_STRIP_FILLER

#define PNG_TRANSFORM_STRIP_FILLER   0x0800 /* write only */

Definition at line 875 of file png.h.

◆ PNG_TRANSFORM_STRIP_FILLER_AFTER

#define PNG_TRANSFORM_STRIP_FILLER_AFTER   0x1000 /* write only */

Definition at line 878 of file png.h.

◆ PNG_TRANSFORM_STRIP_FILLER_BEFORE

#define PNG_TRANSFORM_STRIP_FILLER_BEFORE   PNG_TRANSFORM_STRIP_FILLER

Definition at line 877 of file png.h.

◆ PNG_TRANSFORM_SWAP_ALPHA

#define PNG_TRANSFORM_SWAP_ALPHA   0x0100 /* read and write */

Definition at line 872 of file png.h.

◆ PNG_TRANSFORM_SWAP_ENDIAN

#define PNG_TRANSFORM_SWAP_ENDIAN   0x0200 /* read and write */

Definition at line 873 of file png.h.

◆ PNG_UINT_31_MAX

#define PNG_UINT_31_MAX   ((png_uint_32)0x7fffffffL)

Definition at line 680 of file png.h.

◆ PNG_UINT_32_MAX

#define PNG_UINT_32_MAX   ((png_uint_32)(-1))

Definition at line 681 of file png.h.

◆ PNG_USER_WILL_FREE_DATA

#define PNG_USER_WILL_FREE_DATA   2

Definition at line 1777 of file png.h.

Typedef Documentation

◆ png_color

typedef struct png_color_struct png_color

◆ png_color_16

◆ png_color_16p

Definition at line 527 of file png.h.

◆ png_color_16pp

Definition at line 529 of file png.h.

◆ png_color_8

◆ png_color_8p

Definition at line 539 of file png.h.

◆ png_color_8pp

Definition at line 541 of file png.h.

◆ png_colorp

Definition at line 515 of file png.h.

◆ png_colorpp

typedef png_color* * png_colorpp

Definition at line 517 of file png.h.

◆ png_error_ptr

typedef void( * png_error_ptr) (png_structp, png_const_charp)

Definition at line 806 of file png.h.

◆ png_flush_ptr

typedef void( * png_flush_ptr) (png_structp)

Definition at line 808 of file png.h.

◆ png_free_ptr

typedef void( * png_free_ptr) (png_structp, png_voidp)

Definition at line 900 of file png.h.

◆ png_info

typedef struct png_info_def png_info

Definition at line 484 of file png.h.

◆ png_infop

typedef png_info* png_infop

Definition at line 485 of file png.h.

◆ png_infopp

typedef png_info* * png_infopp

Definition at line 487 of file png.h.

◆ png_inforp

typedef png_info* png_inforp

Definition at line 502 of file png.h.

◆ png_libpng_version_1_6_32

Definition at line 462 of file png.h.

◆ png_longjmp_ptr

typedef void( * png_longjmp_ptr) (jmp_buf, int)

Definition at line 859 of file png.h.

◆ png_malloc_ptr

typedef png_voidp( * png_malloc_ptr) (png_structp, png_alloc_size_t)

Definition at line 899 of file png.h.

◆ png_read_status_ptr

typedef void( * png_read_status_ptr) (png_structp, png_uint_32, int)

Definition at line 810 of file png.h.

◆ png_row_info

◆ png_row_infop

Definition at line 795 of file png.h.

◆ png_row_infopp

Definition at line 796 of file png.h.

◆ png_rw_ptr

typedef void( * png_rw_ptr) (png_structp, png_bytep, png_size_t)

Definition at line 807 of file png.h.

◆ png_sPLT_entry

◆ png_sPLT_entryp

Definition at line 555 of file png.h.

◆ png_sPLT_entrypp

Definition at line 557 of file png.h.

◆ png_sPLT_t

typedef struct png_sPLT_struct png_sPLT_t

◆ png_sPLT_tp

Definition at line 571 of file png.h.

◆ png_sPLT_tpp

Definition at line 573 of file png.h.

◆ png_struct

typedef struct png_struct_def png_struct

Definition at line 470 of file png.h.

◆ png_structp

Definition at line 472 of file png.h.

◆ png_structpp

Definition at line 473 of file png.h.

◆ png_structrp

Definition at line 500 of file png.h.

◆ png_text

typedef struct png_text_struct png_text

◆ png_textp

typedef png_text* png_textp

Definition at line 610 of file png.h.

◆ png_textpp

typedef png_text* * png_textpp

Definition at line 612 of file png.h.

◆ png_time

typedef struct png_time_struct png_time

◆ png_timep

typedef png_time* png_timep

Definition at line 640 of file png.h.

◆ png_timepp

typedef png_time* * png_timepp

Definition at line 642 of file png.h.

◆ png_unknown_chunk

◆ png_unknown_chunkp

Definition at line 669 of file png.h.

◆ png_unknown_chunkpp

Definition at line 671 of file png.h.

◆ png_user_transform_ptr

typedef void( * png_user_transform_ptr) (png_structp, png_row_infop, png_bytep)

Definition at line 835 of file png.h.

◆ png_write_status_ptr

typedef void( * png_write_status_ptr) (png_structp, png_uint_32, int)

Definition at line 812 of file png.h.

Function Documentation

◆ png_access_version_number()

PNG_IMPEXP png_uint_32() png_access_version_number ( void  )

Definition at line 992 of file png.c.

References PNG_LIBPNG_VER.

◆ png_benign_error()

◆ png_calloc()

◆ png_chunk_benign_error()

◆ png_chunk_error()

◆ png_chunk_warning()

◆ png_create_info_struct()

PNG_IMPEXP png_infop() png_create_info_struct ( png_const_structrp  png_ptr)

Definition at line 354 of file png.c.

References png_debug, png_malloc_base(), and png_voidcast.

Referenced by main(), measure_idats(), png_image_read_init(), and png_image_write_init().

◆ png_create_read_struct()

PNG_IMPEXP png_structp() png_create_read_struct ( png_const_charp  user_png_ver,
png_voidp  error_ptr,
png_error_ptr  error_fn,
png_error_ptr  warn_fn 
)

Definition at line 37 of file pngread.c.

References png_create_png_struct(), and png_create_read_struct_2().

Referenced by main(), measure_idats(), and png_image_read_init().

◆ png_create_read_struct_2()

PNG_IMPEXP png_structp() png_create_read_struct_2 ( 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 
)

◆ png_create_write_struct()

PNG_IMPEXP png_structp() png_create_write_struct ( png_const_charp  user_png_ver,
png_voidp  error_ptr,
png_error_ptr  error_fn,
png_error_ptr  warn_fn 
)

Definition at line 499 of file pngwrite.c.

References png_create_png_struct(), and png_create_write_struct_2().

Referenced by main(), and png_image_write_init().

◆ png_create_write_struct_2()

◆ png_data_freer()

PNG_IMPEXP void() png_data_freer ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
int  freer,
png_uint_32  mask 
)

◆ png_destroy_info_struct()

PNG_IMPEXP void() png_destroy_info_struct ( png_const_structrp  png_ptr,
png_infopp  info_ptr_ptr 
)

◆ png_destroy_read_struct()

PNG_IMPEXP void() png_destroy_read_struct ( png_structpp  png_ptr_ptr,
png_infopp  info_ptr_ptr,
png_infopp  end_info_ptr_ptr 
)

◆ png_destroy_write_struct()

PNG_IMPEXP void() png_destroy_write_struct ( png_structpp  png_ptr_ptr,
png_infopp  info_ptr_ptr 
)

◆ png_error()

PNG_IMPEXP void() png_error ( png_const_structrp  png_ptr,
png_const_charp  error_message 
)

Definition at line 40 of file pngerror.c.

References msg, png_constcast, png_default_error(), PNG_FLAG_STRIP_ERROR_NUMBERS, PNG_FLAG_STRIP_ERROR_TEXT, and PNG_LITERAL_SHARP.

Referenced by check_location(), decode_gamma(), image_memory_write(), main(), png_app_error(), png_app_warning(), png_ascii_from_fixed(), png_ascii_from_fp(), png_benign_error(), png_check_IHDR(), png_chunk_error(), png_colorspace_set_chromaticities(), png_colorspace_set_endpoints(), png_colorspace_set_rgb_coefficients(), png_combine_row(), png_compress_IDAT(), png_create_colormap_entry(), png_data_freer(), png_default_read_data(), png_default_write_data(), png_deflate_claim(), png_do_read_transformations(), png_fixed_error(), png_get_uint_31(), png_image_memory_read(), png_image_read_and_map(), png_image_read_background(), png_image_read_colormap(), png_image_read_colormapped(), png_image_read_composite(), png_image_read_direct(), png_image_write_main(), png_init_read_transformations(), png_malloc(), png_malloc_array(), png_malloc_default(), png_process_IDAT_data(), png_push_process_row(), png_push_read_chunk(), png_push_read_IDAT(), png_push_read_sig(), png_push_save_buffer(), png_read_data(), png_read_IDAT_data(), png_read_image(), png_read_png(), png_read_row(), png_read_sig(), png_read_start_row(), png_read_transform_info(), png_realloc_array(), png_set_alpha_mode_fixed(), png_set_compression_buffer_size(), png_set_filter(), png_set_gamma_fixed(), png_set_longjmp_fn(), png_set_PLTE(), png_set_rgb_to_gray_fixed(), png_set_sCAL_s(), png_set_sig_bytes(), png_set_text(), png_write_complete_chunk(), png_write_compressed_data_out(), png_write_data(), png_write_end(), png_write_iCCP(), png_write_IHDR(), png_write_image_16bit(), png_write_info(), png_write_iTXt(), png_write_pCAL(), png_write_PLTE(), png_write_row(), png_write_sPLT(), png_write_tEXt(), png_write_zTXt(), pngcrush_default_read_data(), pngcrush_default_write_data(), pngcrush_get_uint_31(), and pngcrush_measure_idat().

◆ png_free()

◆ png_free_data()

◆ png_free_default()

PNG_DEPRECATED PNG_IMPEXP void() png_free_default ( png_const_structrp  png_ptr,
png_voidp  ptr 
)

Definition at line 246 of file pngmem.c.

References free().

Referenced by png_free().

◆ png_get_bKGD()

PNG_IMPEXP png_uint_32() png_get_bKGD ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_color_16p background 
)

Definition at line 488 of file pngget.c.

References png_debug1, PNG_INFO_bKGD, and png_info_def::valid.

Referenced by main().

◆ png_get_channels()

PNG_IMPEXP png_byte() png_get_channels ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr 
)

Definition at line 467 of file pngget.c.

Referenced by png_image_read_background().

◆ png_get_cHRM()

PNG_IMPEXP png_uint_32() png_get_cHRM ( png_const_structrp  png_ptr,
png_const_inforp  info_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 
)

Definition at line 512 of file pngget.c.

References png_debug1, png_float, and PNG_INFO_cHRM.

Referenced by main().

◆ png_get_cHRM_fixed()

PNG_IMPEXP png_uint_32() png_get_cHRM_fixed ( png_const_structrp  png_ptr,
png_const_inforp  info_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_point int_green_x,
png_fixed_point int_green_y,
png_fixed_point int_blue_x,
png_fixed_point int_blue_y 
)

Definition at line 641 of file pngget.c.

References png_debug1, and PNG_INFO_cHRM.

Referenced by main().

◆ png_get_cHRM_XYZ()

PNG_IMPEXP png_uint_32() png_get_cHRM_XYZ ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
double *  red_X,
double *  red_Y,
double *  red_Z,
double *  green_X,
double *  green_Y,
double *  green_Z,
double *  blue_X,
double *  blue_Y,
double *  blue_Z 
)

Definition at line 558 of file pngget.c.

References png_debug1, png_float, and PNG_INFO_cHRM.

◆ png_get_cHRM_XYZ_fixed()

PNG_IMPEXP png_uint_32() png_get_cHRM_XYZ_fixed ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_fixed_point int_red_X,
png_fixed_point int_red_Y,
png_fixed_point int_red_Z,
png_fixed_point int_green_X,
png_fixed_point int_green_Y,
png_fixed_point int_green_Z,
png_fixed_point int_blue_X,
png_fixed_point int_blue_Y,
png_fixed_point int_blue_Z 
)

Definition at line 604 of file pngget.c.

References png_debug1, and PNG_INFO_cHRM.

◆ png_get_chunk_cache_max()

PNG_IMPEXP png_uint_32() png_get_chunk_cache_max ( png_const_structrp  png_ptr)

Definition at line 1207 of file pngget.c.

◆ png_get_chunk_malloc_max()

PNG_IMPEXP png_alloc_size_t() png_get_chunk_malloc_max ( png_const_structrp  png_ptr)

Definition at line 1214 of file pngget.c.

◆ png_get_compression_buffer_size()

PNG_IMPEXP png_size_t() png_get_compression_buffer_size ( png_const_structrp  png_ptr)

Definition at line 1168 of file pngget.c.

References PNG_IDAT_READ_SIZE, and PNG_IS_READ_STRUCT.

Referenced by main().

◆ png_get_copyright()

PNG_IMPEXP png_const_charp() png_get_copyright ( png_const_structrp  png_ptr)

Definition at line 811 of file png.c.

References PNG_STRING_NEWLINE, and PNG_UNUSED.

◆ png_get_current_pass_number()

PNG_IMPEXP png_byte() png_get_current_pass_number ( png_const_structrp  )

Definition at line 856 of file pngtrans.c.

◆ png_get_current_row_number()

PNG_IMPEXP png_uint_32() png_get_current_row_number ( png_const_structrp  )

Definition at line 844 of file pngtrans.c.

References PNG_UINT_32_MAX.

◆ png_get_error_ptr()

PNG_IMPEXP png_voidp() png_get_error_ptr ( png_const_structrp  png_ptr)

Definition at line 856 of file pngerror.c.

◆ png_get_eXIf()

PNG_IMPEXP png_uint_32() png_get_eXIf ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_bytep exif 
)

Definition at line 778 of file pngget.c.

References PNG_UNUSED, and png_warning().

◆ png_get_eXIf_1()

PNG_IMPEXP png_uint_32() png_get_eXIf_1 ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_uint_32 *  num_exif,
png_bytep exif 
)

Definition at line 788 of file pngget.c.

References png_debug1, and PNG_INFO_eXIf.

◆ png_get_gAMA()

PNG_IMPEXP png_uint_32() png_get_gAMA ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
double *  file_gamma 
)

Definition at line 697 of file pngget.c.

References png_debug1, png_float, and PNG_INFO_gAMA.

Referenced by main().

◆ png_get_gAMA_fixed()

PNG_IMPEXP png_uint_32() png_get_gAMA_fixed ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_fixed_point int_file_gamma 
)

Definition at line 678 of file pngget.c.

References png_debug1, and PNG_INFO_gAMA.

Referenced by main().

◆ png_get_header_ver()

PNG_IMPEXP png_const_charp() png_get_header_ver ( png_const_structrp  png_ptr)

Definition at line 850 of file png.c.

References PNG_LIBPNG_VER_STRING, and PNG_UNUSED.

Referenced by png_get_libpng_ver(), and print_version_info().

◆ png_get_header_version()

PNG_IMPEXP png_const_charp() png_get_header_version ( png_const_structrp  png_ptr)

Definition at line 858 of file png.c.

References PNG_HEADER_VERSION_STRING, PNG_STRING_NEWLINE, and PNG_UNUSED.

◆ png_get_hIST()

PNG_IMPEXP png_uint_32() png_get_hIST ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_uint_16p hist 
)

Definition at line 807 of file pngget.c.

References png_debug1, PNG_INFO_hIST, and png_info_def::valid.

Referenced by main().

◆ png_get_iCCP()

PNG_IMPEXP png_uint_32() png_get_iCCP ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_charpp  name,
int *  compression_type,
png_bytepp  profile,
png_uint_32 *  proflen 
)

Definition at line 736 of file pngget.c.

References PNG_COMPRESSION_TYPE_BASE, png_debug1, png_get_uint_32, PNG_INFO_iCCP, and png_info_def::valid.

Referenced by main().

◆ png_get_IHDR()

PNG_IMPEXP png_uint_32() png_get_IHDR ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_uint_32 *  width,
png_uint_32 *  height,
int *  bit_depth,
int *  color_type,
int *  interlace_method,
int *  compression_method,
int *  filter_method 
)

Definition at line 824 of file pngget.c.

References filter_type, height, png_check_IHDR(), png_debug1, and width.

Referenced by main().

◆ png_get_int_32()

PNG_IMPEXP png_int_32() png_get_int_32 ( png_const_bytep  buf)

Definition at line 85 of file pngrutil.c.

References png_get_uint_32().

Referenced by png_handle_oFFs(), and png_handle_pCAL().

◆ png_get_io_ptr()

PNG_IMPEXP png_voidp() png_get_io_ptr ( png_const_structrp  png_ptr)

Definition at line 686 of file png.c.

Referenced by pngcrush_default_read_data(), and pngcrush_default_write_data().

◆ png_get_libpng_ver()

PNG_IMPEXP png_const_charp() png_get_libpng_ver ( png_const_structrp  png_ptr)

Definition at line 843 of file png.c.

References png_get_header_ver().

◆ png_get_mem_ptr()

PNG_IMPEXP png_voidp() png_get_mem_ptr ( png_const_structrp  png_ptr)

Definition at line 276 of file pngmem.c.

◆ png_get_oFFs()

PNG_IMPEXP png_uint_32() png_get_oFFs ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_int_32 *  offset_x,
png_int_32 *  offset_y,
int *  unit_type 
)

Definition at line 869 of file pngget.c.

References png_debug1, and PNG_INFO_oFFs.

Referenced by main().

◆ png_get_palette_max()

PNG_IMPEXP int() png_get_palette_max ( png_const_structp  png_ptr,
png_const_infop  info_ptr 
)

Definition at line 1238 of file pngget.c.

◆ png_get_pCAL()

PNG_IMPEXP png_uint_32() png_get_pCAL ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_charp purpose,
png_int_32 *  X0,
png_int_32 *  X1,
int *  type,
int *  nparams,
png_charp units,
png_charpp params 
)

Definition at line 890 of file pngget.c.

References png_debug1, PNG_INFO_pCAL, and png_info_def::valid.

Referenced by main().

◆ png_get_pHYs()

PNG_IMPEXP png_uint_32() png_get_pHYs ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_uint_32 *  res_x,
png_uint_32 *  res_y,
int *  unit_type 
)

Definition at line 977 of file pngget.c.

References png_debug1, and PNG_INFO_pHYs.

Referenced by main().

◆ png_get_PLTE()

PNG_IMPEXP png_uint_32() png_get_PLTE ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_colorp palette,
int *  num_palette 
)

◆ png_get_rgb_to_gray_status()

PNG_IMPEXP png_byte() png_get_rgb_to_gray_status ( png_const_structrp  png_ptr)

Definition at line 1153 of file pngget.c.

Referenced by main().

◆ png_get_rowbytes()

PNG_IMPEXP png_size_t() png_get_rowbytes ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr 
)

◆ png_get_sBIT()

PNG_IMPEXP png_uint_32() png_get_sBIT ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_color_8p sig_bit 
)

Definition at line 1030 of file pngget.c.

References png_debug1, PNG_INFO_sBIT, and png_info_def::valid.

Referenced by main().

◆ png_get_sCAL()

PNG_IMPEXP png_uint_32() png_get_sCAL ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
int *  unit,
double *  width,
double *  height 
)

Definition at line 943 of file pngget.c.

References height, PNG_INFO_sCAL, and width.

Referenced by main().

◆ png_get_sCAL_fixed()

PNG_IMPEXP png_uint_32() png_get_sCAL_fixed ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
int *  unit,
png_fixed_point width,
png_fixed_point height 
)

Definition at line 920 of file pngget.c.

References height, png_fixed(), PNG_INFO_sCAL, and width.

◆ png_get_sCAL_s()

PNG_IMPEXP png_uint_32() png_get_sCAL_s ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
int *  unit,
png_charpp  swidth,
png_charpp  sheight 
)

Definition at line 959 of file pngget.c.

References height, PNG_INFO_sCAL, and width.

Referenced by main().

◆ png_get_signature()

PNG_IMPEXP png_const_bytep() png_get_signature ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr 
)

Definition at line 477 of file pngget.c.

◆ png_get_sPLT()

PNG_IMPEXP int() png_get_sPLT ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_sPLT_tpp  entries 
)

Definition at line 763 of file pngget.c.

Referenced by main().

◆ png_get_sRGB()

PNG_IMPEXP png_uint_32() png_get_sRGB ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
int *  file_srgb_intent 
)

Definition at line 718 of file pngget.c.

References png_debug1, and PNG_INFO_sRGB.

Referenced by main().

◆ png_get_text()

PNG_IMPEXP int() png_get_text ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_textp text_ptr,
int *  num_text 
)

Definition at line 1048 of file pngget.c.

References png_debug1.

Referenced by main().

◆ png_get_tIME()

PNG_IMPEXP png_uint_32() png_get_tIME ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_timep mod_time 
)

Definition at line 1074 of file pngget.c.

References png_debug1, PNG_INFO_tIME, and png_info_def::valid.

Referenced by main().

◆ png_get_tRNS()

PNG_IMPEXP png_uint_32() png_get_tRNS ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_bytep trans_alpha,
int *  num_trans,
png_color_16p trans_color 
)

◆ png_get_uint_16()

PNG_IMPEXP png_uint_16() png_get_uint_16 ( png_const_bytep  buf)

◆ png_get_uint_31()

PNG_IMPEXP png_uint_32() png_get_uint_31 ( png_const_structrp  png_ptr,
png_const_bytep  buf 
)

◆ png_get_uint_32()

PNG_IMPEXP png_uint_32() png_get_uint_32 ( png_const_bytep  buf)

◆ png_get_unknown_chunks()

PNG_IMPEXP int() png_get_unknown_chunks ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_unknown_chunkpp  entries 
)

Definition at line 1138 of file pngget.c.

Referenced by main().

◆ png_get_user_height_max()

PNG_IMPEXP png_uint_32() png_get_user_height_max ( png_const_structrp  png_ptr)

Definition at line 1200 of file pngget.c.

◆ png_get_user_transform_ptr()

PNG_IMPEXP png_voidp() png_get_user_transform_ptr ( png_const_structrp  png_ptr)

Definition at line 833 of file pngtrans.c.

◆ png_get_user_width_max()

PNG_IMPEXP png_uint_32() png_get_user_width_max ( png_const_structrp  png_ptr)

Definition at line 1194 of file pngget.c.

◆ png_get_valid()

PNG_IMPEXP png_uint_32() png_get_valid ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_uint_32  flag 
)

Definition at line 20 of file pngget.c.

◆ png_handle_as_unknown()

PNG_IMPEXP int() png_handle_as_unknown ( png_const_structrp  png_ptr,
png_const_bytep  chunk_name 
)

Definition at line 932 of file png.c.

References png_const_bytep, and PNG_HANDLE_CHUNK_AS_DEFAULT.

Referenced by png_chunk_unknown_handling(), and write_unknown_chunks().

◆ png_info_init_3()

PNG_DEPRECATED PNG_IMPEXP void() png_info_init_3 ( png_infopp  info_ptr,
png_size_t  png_info_struct_size 
)

Definition at line 425 of file png.c.

References free(), png_debug, png_malloc_base(), and png_voidcast.

◆ png_init_io()

PNG_IMPEXP void() png_init_io ( png_structrp  png_ptr,
png_FILE_p  fp 
)

Definition at line 703 of file png.c.

References png_struct_def::io_ptr, and png_debug.

Referenced by main(), and measure_idats().

◆ png_longjmp()

PNG_IMPEXP void() png_longjmp ( png_const_structrp  png_ptr,
int  val 
)

Definition at line 758 of file pngerror.c.

References PNG_ABORT, and PNG_UNUSED.

Referenced by png_default_error().

◆ png_malloc()

◆ png_malloc_default()

PNG_DEPRECATED PNG_IMPEXP png_voidp() png_malloc_default ( png_const_structrp  png_ptr,
png_alloc_size_t  size 
)

Definition at line 190 of file pngmem.c.

References png_error(), and png_malloc_base().

◆ png_malloc_warn()

◆ png_permit_mng_features()

PNG_IMPEXP png_uint_32() png_permit_mng_features ( png_structrp  png_ptr,
png_uint_32  mng_features_permitted 
)

Definition at line 1329 of file pngset.c.

References PNG_ALL_MNG_FEATURES, and png_debug.

Referenced by main().

◆ png_read_end()

◆ png_read_image()

◆ png_read_info()

◆ png_read_row()

PNG_IMPEXP void() png_read_row ( png_structrp  png_ptr,
png_bytep  row,
png_bytep  display_row 
)

◆ png_read_rows()

PNG_IMPEXP void() png_read_rows ( png_structrp  png_ptr,
png_bytepp  row,
png_bytepp  display_row,
png_uint_32  num_rows 
)

Definition at line 668 of file pngread.c.

References png_debug, and png_read_row().

Referenced by main().

◆ png_read_update_info()

◆ png_reset_zstream()

PNG_DEPRECATED PNG_IMPEXP int() png_reset_zstream ( png_structrp  png_ptr)

Definition at line 980 of file png.c.

References inflateReset(), Z_STREAM_ERROR, and png_struct_def::zstream.

◆ png_save_int_32()

PNG_IMPEXP void() png_save_int_32 ( png_bytep  buf,
png_int_32  i 
)

Definition at line 726 of file png.c.

References png_save_uint_32().

Referenced by png_write_cHRM_fixed(), png_write_oFFs(), and png_write_pCAL().

◆ png_save_uint_16()

PNG_IMPEXP void() png_save_uint_16 ( png_bytep  buf,
unsigned int  i 
)

◆ png_save_uint_32()

PNG_IMPEXP void() png_save_uint_32 ( png_bytep  buf,
png_uint_32  i 
)

◆ png_set_add_alpha()

PNG_IMPEXP void() png_set_add_alpha ( png_structrp  png_ptr,
png_uint_32  filler,
int  flags 
)

◆ png_set_background()

PNG_IMPEXP void() png_set_background ( png_structrp  png_ptr,
png_const_color_16p  background_color,
int  background_gamma_code,
int  need_expand,
double  background_gamma 
)

Definition at line 156 of file pngrtran.c.

References png_fixed(), and png_set_background_fixed().

◆ png_set_background_fixed()

PNG_IMPEXP void() png_set_background_fixed ( png_structrp  png_ptr,
png_const_color_16p  background_color,
int  background_gamma_code,
int  need_expand,
png_fixed_point  background_gamma 
)

◆ png_set_benign_errors()

PNG_IMPEXP void() png_set_benign_errors ( png_structrp  png_ptr,
int  allowed 
)

◆ png_set_bKGD()

PNG_IMPEXP void() png_set_bKGD ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_const_color_16p  background 
)

Definition at line 25 of file pngset.c.

References png_debug1, PNG_INFO_bKGD, and png_info_def::valid.

Referenced by main(), and png_handle_bKGD().

◆ png_set_check_for_invalid_index()

PNG_IMPEXP void() png_set_check_for_invalid_index ( png_structrp  png_ptr,
int  allowed 
)

Definition at line 1701 of file pngset.c.

References png_debug.

Referenced by main().

◆ png_set_cHRM()

PNG_IMPEXP void() png_set_cHRM ( png_const_structrp  png_ptr,
png_inforp  info_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 
)

Definition at line 102 of file pngset.c.

References png_fixed(), and png_set_cHRM_fixed().

Referenced by main().

◆ png_set_cHRM_fixed()

PNG_IMPEXP void() png_set_cHRM_fixed ( png_const_structrp  png_ptr,
png_inforp  info_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_point  int_green_x,
png_fixed_point  int_green_y,
png_fixed_point  int_blue_x,
png_fixed_point  int_blue_y 
)

◆ png_set_cHRM_XYZ()

PNG_IMPEXP void() png_set_cHRM_XYZ ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
double  red_X,
double  red_Y,
double  red_Z,
double  green_X,
double  green_Y,
double  green_Z,
double  blue_X,
double  blue_Y,
double  blue_Z 
)

Definition at line 118 of file pngset.c.

References png_fixed(), and png_set_cHRM_XYZ_fixed().

◆ png_set_cHRM_XYZ_fixed()

PNG_IMPEXP void() png_set_cHRM_XYZ_fixed ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_fixed_point  int_red_X,
png_fixed_point  int_red_Y,
png_fixed_point  int_red_Z,
png_fixed_point  int_green_X,
png_fixed_point  int_green_Y,
png_fixed_point  int_green_Z,
png_fixed_point  int_blue_X,
png_fixed_point  int_blue_Y,
png_fixed_point  int_blue_Z 
)

Definition at line 69 of file pngset.c.

References png_colorspace_set_endpoints(), png_colorspace_sync_info(), and png_debug1.

Referenced by png_set_cHRM_XYZ().

◆ png_set_chunk_cache_max()

PNG_IMPEXP void() png_set_chunk_cache_max ( png_structrp  png_ptr,
png_uint_32  user_chunk_cache_max 
)

Definition at line 1652 of file pngset.c.

Referenced by main().

◆ png_set_chunk_malloc_max()

PNG_IMPEXP void() png_set_chunk_malloc_max ( png_structrp  png_ptr,
png_alloc_size_t  user_chunk_cache_max 
)

Definition at line 1660 of file pngset.c.

Referenced by main().

◆ png_set_compression_buffer_size()

PNG_IMPEXP void() png_set_compression_buffer_size ( png_structrp  png_ptr,
png_size_t  size 
)

◆ png_set_compression_level()

PNG_IMPEXP void() png_set_compression_level ( png_structrp  png_ptr,
int  level 
)

Definition at line 1158 of file pngwrite.c.

References png_debug.

Referenced by main(), and png_image_write_main().

◆ png_set_compression_mem_level()

PNG_IMPEXP void() png_set_compression_mem_level ( png_structrp  png_ptr,
int  mem_level 
)

Definition at line 1169 of file pngwrite.c.

References png_debug.

Referenced by main().

◆ png_set_compression_method()

PNG_IMPEXP void() png_set_compression_method ( png_structrp  png_ptr,
int  method 
)

Definition at line 1224 of file pngwrite.c.

References method, png_debug, and png_warning().

◆ png_set_compression_strategy()

PNG_IMPEXP void() png_set_compression_strategy ( png_structrp  png_ptr,
int  strategy 
)

Definition at line 1180 of file pngwrite.c.

References png_struct_def::flags, png_debug, and PNG_FLAG_ZLIB_CUSTOM_STRATEGY.

Referenced by main().

◆ png_set_compression_window_bits()

PNG_IMPEXP void() png_set_compression_window_bits ( png_structrp  png_ptr,
int  window_bits 
)

Definition at line 1197 of file pngwrite.c.

References png_warning().

Referenced by main().

◆ png_set_crc_action()

◆ png_set_error_fn()

PNG_IMPEXP void() png_set_error_fn ( png_structrp  png_ptr,
png_voidp  error_ptr,
png_error_ptr  error_fn,
png_error_ptr  warning_fn 
)

Definition at line 835 of file pngerror.c.

References png_struct_def::error_fn, png_struct_def::error_ptr, and PNG_UNUSED.

Referenced by png_create_png_struct().

◆ png_set_eXIf()

PNG_IMPEXP void() png_set_eXIf ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
const png_bytep  exif 
)

Definition at line 139 of file pngset.c.

References PNG_UNUSED, and png_warning().

◆ png_set_eXIf_1()

PNG_IMPEXP void() png_set_eXIf_1 ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
const png_uint_32  num_exif,
const png_bytep  exif 
)

◆ png_set_expand()

PNG_IMPEXP void() png_set_expand ( png_structrp  png_ptr)

◆ png_set_expand_16()

PNG_IMPEXP void() png_set_expand_16 ( png_structrp  png_ptr)

◆ png_set_expand_gray_1_2_4_to_8()

PNG_IMPEXP void() png_set_expand_gray_1_2_4_to_8 ( png_structrp  png_ptr)

Definition at line 901 of file pngrtran.c.

References png_debug, PNG_EXPAND, png_rtran_ok(), and png_struct_def::transformations.

Referenced by png_set_gray_to_rgb().

◆ png_set_filler()

◆ png_set_filter()

◆ png_set_flush()

PNG_IMPEXP void() png_set_flush ( png_structrp  png_ptr,
int  nrows 
)

Definition at line 908 of file pngwrite.c.

References png_debug.

◆ png_set_gAMA()

PNG_IMPEXP void() png_set_gAMA ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
double  file_gamma 
)

Definition at line 200 of file pngset.c.

References png_fixed(), and png_set_gAMA_fixed().

Referenced by main().

◆ png_set_gAMA_fixed()

PNG_IMPEXP void() png_set_gAMA_fixed ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_fixed_point  int_file_gamma 
)

◆ png_set_gamma()

PNG_IMPEXP void() png_set_gamma ( png_structrp  png_ptr,
double  screen_gamma,
double  override_file_gamma 
)

Definition at line 845 of file pngrtran.c.

References convert_gamma_value(), and png_set_gamma_fixed().

◆ png_set_gamma_fixed()

PNG_IMPEXP void() png_set_gamma_fixed ( png_structrp  png_ptr,
png_fixed_point  screen_gamma,
png_fixed_point  override_file_gamma 
)

Definition at line 805 of file pngrtran.c.

References png_struct_def::flags, png_debug, png_error(), png_rtran_ok(), and translate_gamma_flags().

Referenced by png_set_gamma().

◆ png_set_gray_to_rgb()

PNG_IMPEXP void() png_set_gray_to_rgb ( png_structrp  png_ptr)

◆ png_set_hIST()

◆ png_set_iCCP()

◆ png_set_IHDR()

PNG_IMPEXP void() png_set_IHDR ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_uint_32  width,
png_uint_32  height,
int  bit_depth,
int  color_type,
int  interlace_method,
int  compression_method,
int  filter_method 
)

◆ png_set_interlace_handling()

◆ png_set_invalid()

PNG_IMPEXP void() png_set_invalid ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
int  mask 
)

Definition at line 1626 of file pngset.c.

References png_info_def::valid.

◆ png_set_keep_unknown_chunks()

PNG_IMPEXP void() png_set_keep_unknown_chunks ( png_structrp  png_ptr,
int  keep,
png_const_bytep  chunk_list,
int  num_chunks 
)

◆ png_set_longjmp_fn()

PNG_IMPEXP jmp_buf*() png_set_longjmp_fn ( png_structrp  png_ptr,
png_longjmp_ptr  longjmp_fn,
size_t  jmp_buf_size 
)

Definition at line 597 of file pngerror.c.

References png_error(), png_malloc_warn(), png_voidcast, and png_warning().

◆ png_set_mem_fn()

PNG_IMPEXP void() png_set_mem_fn ( png_structrp  png_ptr,
png_voidp  mem_ptr,
png_malloc_ptr  malloc_fn,
png_free_ptr  free_fn 
)

Definition at line 260 of file pngmem.c.

Referenced by png_create_png_struct().

◆ png_set_oFFs()

PNG_IMPEXP void() png_set_oFFs ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_int_32  offset_x,
png_int_32  offset_y,
int  unit_type 
)

Definition at line 295 of file pngset.c.

References png_debug1, PNG_INFO_oFFs, and png_info_def::valid.

Referenced by main(), and png_handle_oFFs().

◆ png_set_option()

PNG_IMPEXP int() png_set_option ( png_structrp  png_ptr,
int  option,
int  onoff 
)

Definition at line 4338 of file png.c.

References PNG_OPTION_INVALID, and PNG_OPTION_NEXT.

Referenced by main().

◆ png_set_packing()

◆ png_set_packswap()

PNG_IMPEXP void() png_set_packswap ( png_structrp  png_ptr)

◆ png_set_palette_to_rgb()

PNG_IMPEXP void() png_set_palette_to_rgb ( png_structrp  png_ptr)

◆ png_set_pCAL()

PNG_IMPEXP void() png_set_pCAL ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_const_charp  purpose,
png_int_32  X0,
png_int_32  X1,
int  type,
int  nparams,
png_const_charp  units,
png_charpp  params 
)

◆ png_set_pHYs()

PNG_IMPEXP void() png_set_pHYs ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_uint_32  res_x,
png_uint_32  res_y,
int  unit_type 
)

Definition at line 556 of file pngset.c.

References png_debug1, PNG_INFO_pHYs, and png_info_def::valid.

Referenced by main(), and png_handle_pHYs().

◆ png_set_PLTE()

◆ png_set_read_fn()

◆ png_set_read_status_fn()

PNG_IMPEXP void() png_set_read_status_fn ( png_structrp  png_ptr,
png_read_status_ptr  read_row_fn 
)

Definition at line 1054 of file pngread.c.

References png_struct_def::read_row_fn.

◆ png_set_read_user_transform_fn()

PNG_IMPEXP void() png_set_read_user_transform_fn ( png_structrp  png_ptr,
png_user_transform_ptr  read_user_transform_fn 
)

Definition at line 1060 of file pngrtran.c.

References png_debug, PNG_USER_TRANSFORM, and png_struct_def::transformations.

Referenced by main().

◆ png_set_rgb_to_gray()

PNG_IMPEXP void() png_set_rgb_to_gray ( png_structrp  png_ptr,
int  error_action,
double  red,
double  green 
)

Definition at line 1046 of file pngrtran.c.

References png_fixed(), and png_set_rgb_to_gray_fixed().

Referenced by main().

◆ png_set_rgb_to_gray_fixed()

◆ png_set_sBIT()

PNG_IMPEXP void() png_set_sBIT ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_const_color_8p  sig_bit 
)

Definition at line 638 of file pngset.c.

References png_debug1, PNG_INFO_sBIT, and png_info_def::valid.

Referenced by main(), and png_handle_sBIT().

◆ png_set_sCAL()

PNG_IMPEXP void() png_set_sCAL ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
int  unit,
double  width,
double  height 
)

◆ png_set_sCAL_fixed()

PNG_IMPEXP void() png_set_sCAL_fixed ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
int  unit,
png_fixed_point  width,
png_fixed_point  height 
)

◆ png_set_sCAL_s()

◆ png_set_scale_16()

PNG_IMPEXP void() png_set_scale_16 ( png_structrp  png_ptr)

◆ png_set_shift()

PNG_IMPEXP void() png_set_shift ( png_structrp  png_ptr,
png_const_color_8p  true_bits 
)

Definition at line 84 of file pngtrans.c.

References png_debug, PNG_SHIFT, and png_struct_def::transformations.

Referenced by main(), png_read_png(), and png_write_png().

◆ png_set_sig_bytes()

PNG_IMPEXP void() png_set_sig_bytes ( png_structrp  png_ptr,
int  num_bytes 
)

Definition at line 47 of file png.c.

References png_debug, png_error(), and png_struct_def::sig_bytes.

Referenced by main(), measure_idats(), and pngcrush_measure_idat().

◆ png_set_sPLT()

◆ png_set_sRGB()

PNG_IMPEXP void() png_set_sRGB ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
int  srgb_intent 
)

Definition at line 653 of file pngset.c.

References png_colorspace_set_sRGB(), png_colorspace_sync_info(), and png_debug1.

Referenced by main(), and png_image_write_main().

◆ png_set_sRGB_gAMA_and_cHRM()

PNG_IMPEXP void() png_set_sRGB_gAMA_and_cHRM ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
int  srgb_intent 
)

Definition at line 665 of file pngset.c.

References png_colorspace_set_sRGB(), png_colorspace_sync_info(), and png_debug1.

◆ png_set_strip_16()

PNG_IMPEXP void() png_set_strip_16 ( png_structrp  png_ptr)

Definition at line 186 of file pngrtran.c.

References PNG_16_TO_8, png_debug, png_rtran_ok(), and png_struct_def::transformations.

Referenced by main(), and png_read_png().

◆ png_set_strip_alpha()

PNG_IMPEXP void() png_set_strip_alpha ( png_structrp  png_ptr)

◆ png_set_text()

PNG_IMPEXP void() png_set_text ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_const_textp  text_ptr,
int  num_text 
)

Definition at line 762 of file pngset.c.

References png_error(), and png_set_text_2().

Referenced by main().

◆ png_set_text_compression_level()

PNG_IMPEXP void() png_set_text_compression_level ( png_structrp  png_ptr,
int  level 
)

Definition at line 1244 of file pngwrite.c.

References png_debug.

◆ png_set_text_compression_mem_level()

PNG_IMPEXP void() png_set_text_compression_mem_level ( png_structrp  png_ptr,
int  mem_level 
)

Definition at line 1255 of file pngwrite.c.

References png_debug.

◆ png_set_text_compression_method()

PNG_IMPEXP void() png_set_text_compression_method ( png_structrp  png_ptr,
int  method 
)

Definition at line 1301 of file pngwrite.c.

References method, png_debug, and png_warning().

◆ png_set_text_compression_strategy()

PNG_IMPEXP void() png_set_text_compression_strategy ( png_structrp  png_ptr,
int  strategy 
)

Definition at line 1266 of file pngwrite.c.

References png_debug.

◆ png_set_text_compression_window_bits()

PNG_IMPEXP void() png_set_text_compression_window_bits ( png_structrp  png_ptr,
int  window_bits 
)

Definition at line 1280 of file pngwrite.c.

References png_warning().

◆ png_set_tIME()

PNG_IMPEXP void() png_set_tIME ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_const_timep  mod_time 
)

Definition at line 968 of file pngset.c.

References png_debug1, PNG_INFO_tIME, png_warning(), PNG_WROTE_tIME, and png_info_def::valid.

Referenced by main(), and png_handle_tIME().

◆ png_set_tRNS()

◆ png_set_tRNS_to_alpha()

PNG_IMPEXP void() png_set_tRNS_to_alpha ( png_structrp  png_ptr)

◆ png_set_unknown_chunk_location()

PNG_IMPEXP void() png_set_unknown_chunk_location ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
int  chunk,
int  location 
)

Definition at line 1299 of file pngset.c.

References check_location(), PNG_AFTER_IDAT, png_app_error(), PNG_HAVE_IDAT, PNG_HAVE_IHDR, and PNG_HAVE_PLTE.

Referenced by main().

◆ png_set_unknown_chunks()

◆ png_set_user_limits()

PNG_IMPEXP void() png_set_user_limits ( png_structrp  png_ptr,
png_uint_32  user_width_max,
png_uint_32  user_height_max 
)

Definition at line 1636 of file pngset.c.

Referenced by main().

◆ png_set_user_transform_info()

PNG_IMPEXP void() png_set_user_transform_info ( png_structrp  png_ptr,
png_voidp  user_transform_ptr,
int  user_transform_depth,
int  user_transform_channels 
)

◆ png_set_write_fn()

◆ png_set_write_status_fn()

PNG_IMPEXP void() png_set_write_status_fn ( png_structrp  png_ptr,
png_write_status_ptr  write_row_fn 
)

Definition at line 1317 of file pngwrite.c.

References png_struct_def::write_row_fn.

◆ png_set_write_user_transform_fn()

PNG_IMPEXP void() png_set_write_user_transform_fn ( png_structrp  png_ptr,
png_user_transform_ptr  write_user_transform_fn 
)

Definition at line 1327 of file pngwrite.c.

References png_debug, PNG_USER_TRANSFORM, and png_struct_def::transformations.

◆ png_sig_cmp()

PNG_IMPEXP int() png_sig_cmp ( png_const_bytep  sig,
png_size_t  start,
png_size_t  num_to_check 
)

Definition at line 74 of file png.c.

Referenced by main(), png_push_read_sig(), png_read_sig(), and pngcrush_measure_idat().

◆ png_start_read_image()

PNG_IMPEXP void() png_start_read_image ( png_structrp  png_ptr)

◆ png_warning()

PNG_IMPEXP void() png_warning ( png_const_structrp  png_ptr,
png_const_charp  warning_message 
)

◆ png_write_chunk()

PNG_IMPEXP void() png_write_chunk ( png_structrp  png_ptr,
png_const_bytep  chunk_name,
png_const_bytep  data,
png_size_t  length 
)

◆ png_write_chunk_data()

◆ png_write_chunk_end()

◆ png_write_chunk_start()

PNG_IMPEXP void() png_write_chunk_start ( png_structrp  png_ptr,
png_const_bytep  chunk_name,
png_uint_32  length 
)

Definition at line 115 of file pngwutil.c.

References length, PNG_CHUNK_FROM_STRING, and png_write_chunk_header().

◆ png_write_end()

◆ png_write_flush()

PNG_IMPEXP void() png_write_flush ( png_structrp  png_ptr)

◆ png_write_image()

PNG_IMPEXP void() png_write_image ( png_structrp  png_ptr,
png_bytepp  image 
)

Definition at line 601 of file pngwrite.c.

References png_struct_def::height, png_debug, png_set_interlace_handling(), and png_write_row().

Referenced by png_write_png().

◆ png_write_info()

◆ png_write_info_before_PLTE()

◆ png_write_row()

◆ png_write_rows()

PNG_IMPEXP void() png_write_rows ( png_structrp  png_ptr,
png_bytepp  row,
png_uint_32  num_rows 
)

Definition at line 579 of file pngwrite.c.

References png_debug, and png_write_row().

Referenced by main().

◆ png_write_sig()

PNG_IMPEXP void() png_write_sig ( png_structrp  png_ptr)

Variable Documentation

◆ png_const_color_16p

const typedef png_color_16* png_const_color_16p

Definition at line 528 of file png.h.

◆ png_const_color_8p

const typedef png_color_8* png_const_color_8p

Definition at line 540 of file png.h.

◆ png_const_colorp

const typedef png_color* png_const_colorp

Definition at line 516 of file png.h.

Referenced by png_image_read_colormap(), and png_write_PLTE().

◆ png_const_infop

const typedef png_info* png_const_infop

Definition at line 486 of file png.h.

◆ png_const_inforp

const typedef png_info* png_const_inforp

Definition at line 503 of file png.h.

◆ png_const_sPLT_entryp

const typedef png_sPLT_entry* png_const_sPLT_entryp

Definition at line 556 of file png.h.

◆ png_const_sPLT_tp

const typedef png_sPLT_t* png_const_sPLT_tp

Definition at line 572 of file png.h.

◆ png_const_structp

const typedef png_struct* png_const_structp

Definition at line 471 of file png.h.

◆ png_const_structrp

const typedef png_struct* png_const_structrp

Definition at line 501 of file png.h.

Referenced by png_zfree().

◆ png_const_textp

const typedef png_text* png_const_textp

Definition at line 611 of file png.h.

◆ png_const_timep

const typedef png_time* png_const_timep

Definition at line 641 of file png.h.

◆ png_const_unknown_chunkp

const typedef png_unknown_chunk* png_const_unknown_chunkp

Definition at line 670 of file png.h.

Referenced by write_unknown_chunks().

PNG_PASS_COL_SHIFT
#define PNG_PASS_COL_SHIFT(pass)
Definition: png.h:2490
width
static png_uint_32 width
Definition: pngcrush.c:2136
PNG_PASS_START_COL
#define PNG_PASS_START_COL(pass)
Definition: png.h:2475
PNG_PASS_START_ROW
#define PNG_PASS_START_ROW(pass)
Definition: png.h:2474
png_get_uint_32
#define png_get_uint_32(buf)
Definition: png.h:2629
height
static png_uint_32 height
Definition: pngcrush.c:2136
PNG_PASS_ROW_SHIFT
#define PNG_PASS_ROW_SHIFT(pass)
Definition: png.h:2489