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)  

pngget.c File Reference
#include "pngpriv.h"
Include dependency graph for pngget.c:

Go to the source code of this file.

Functions

png_uint_32 png_get_valid (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 flag)
 
png_size_t png_get_rowbytes (png_const_structrp png_ptr, png_const_inforp info_ptr)
 
png_byte png_get_channels (png_const_structrp png_ptr, png_const_inforp info_ptr)
 
png_const_bytep png_get_signature (png_const_structrp png_ptr, png_const_inforp info_ptr)
 
png_uint_32 png_get_bKGD (png_const_structrp png_ptr, png_inforp info_ptr, png_color_16p *background)
 
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_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_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_uint_32 png_get_cHRM_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *white_x, png_fixed_point *white_y, png_fixed_point *red_x, png_fixed_point *red_y, png_fixed_point *green_x, png_fixed_point *green_y, png_fixed_point *blue_x, png_fixed_point *blue_y)
 
png_uint_32 png_get_gAMA_fixed (png_const_structrp png_ptr, png_const_inforp info_ptr, png_fixed_point *file_gamma)
 
png_uint_32 png_get_gAMA (png_const_structrp png_ptr, png_const_inforp info_ptr, double *file_gamma)
 
png_uint_32 png_get_sRGB (png_const_structrp png_ptr, png_const_inforp info_ptr, int *file_srgb_intent)
 
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)
 
int png_get_sPLT (png_const_structrp png_ptr, png_inforp info_ptr, png_sPLT_tpp spalettes)
 
png_uint_32 png_get_eXIf (png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *exif)
 
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_uint_32 png_get_hIST (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_16p *hist)
 
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_type, int *compression_type, int *filter_type)
 
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_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_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_uint_32 png_get_sCAL (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, double *width, double *height)
 
png_uint_32 png_get_sCAL_s (png_const_structrp png_ptr, png_const_inforp info_ptr, int *unit, png_charpp width, png_charpp height)
 
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_uint_32 png_get_PLTE (png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette)
 
png_uint_32 png_get_sBIT (png_const_structrp png_ptr, png_inforp info_ptr, png_color_8p *sig_bit)
 
int png_get_text (png_const_structrp png_ptr, png_inforp info_ptr, png_textp *text_ptr, int *num_text)
 
png_uint_32 png_get_tIME (png_const_structrp png_ptr, png_inforp info_ptr, png_timep *mod_time)
 
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)
 
int png_get_unknown_chunks (png_const_structrp png_ptr, png_inforp info_ptr, png_unknown_chunkpp unknowns)
 
png_byte png_get_rgb_to_gray_status (png_const_structrp png_ptr)
 
png_size_t png_get_compression_buffer_size (png_const_structrp png_ptr)
 
png_uint_32 png_get_user_width_max (png_const_structrp png_ptr)
 
png_uint_32 png_get_user_height_max (png_const_structrp png_ptr)
 
png_uint_32 png_get_chunk_cache_max (png_const_structrp png_ptr)
 
png_alloc_size_t png_get_chunk_malloc_max (png_const_structrp png_ptr)
 
int png_get_palette_max (png_const_structp png_ptr, png_const_infop info_ptr)
 

Function Documentation

◆ png_get_bKGD()

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_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_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_uint_32 png_get_cHRM_fixed ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_fixed_point white_x,
png_fixed_point white_y,
png_fixed_point red_x,
png_fixed_point red_y,
png_fixed_point green_x,
png_fixed_point green_y,
png_fixed_point blue_x,
png_fixed_point 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_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_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_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_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_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_eXIf()

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_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_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_uint_32 png_get_gAMA_fixed ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
png_fixed_point file_gamma 
)

Definition at line 678 of file pngget.c.

References png_debug1, and PNG_INFO_gAMA.

Referenced by main().

◆ png_get_hIST()

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_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_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_type,
int *  compression_type,
int *  filter_type 
)

Definition at line 824 of file pngget.c.

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

Referenced by main().

◆ png_get_oFFs()

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()

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_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_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_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_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_size_t png_get_rowbytes ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr 
)

◆ png_get_sBIT()

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_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_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_uint_32 png_get_sCAL_s ( png_const_structrp  png_ptr,
png_const_inforp  info_ptr,
int *  unit,
png_charpp  width,
png_charpp  height 
)

Definition at line 959 of file pngget.c.

References height, PNG_INFO_sCAL, and width.

Referenced by main().

◆ png_get_signature()

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()

int png_get_sPLT ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_sPLT_tpp  spalettes 
)

Definition at line 763 of file pngget.c.

Referenced by main().

◆ png_get_sRGB()

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()

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_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_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_unknown_chunks()

int png_get_unknown_chunks ( png_const_structrp  png_ptr,
png_inforp  info_ptr,
png_unknown_chunkpp  unknowns 
)

Definition at line 1138 of file pngget.c.

Referenced by main().

◆ png_get_user_height_max()

png_uint_32 png_get_user_height_max ( png_const_structrp  png_ptr)

Definition at line 1200 of file pngget.c.

◆ png_get_user_width_max()

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_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.