Go to the documentation of this file.
13 #if defined(PNG_READ_SUPPORTED) || defined(PNG_WRITE_SUPPORTED)
18 if (png_ptr != NULL &&
info_ptr != NULL)
27 if (png_ptr != NULL &&
info_ptr != NULL)
33 #if defined(PNG_INFO_IMAGE_SUPPORTED)
37 if (png_ptr != NULL &&
info_ptr != NULL)
44 #ifdef PNG_EASY_ACCESS_SUPPORTED
49 if (png_ptr != NULL &&
info_ptr != NULL)
59 if (png_ptr != NULL &&
info_ptr != NULL)
69 if (png_ptr != NULL &&
info_ptr != NULL)
79 if (png_ptr != NULL &&
info_ptr != NULL)
89 if (png_ptr != NULL &&
info_ptr != NULL)
99 if (png_ptr != NULL &&
info_ptr != NULL)
109 if (png_ptr != NULL &&
info_ptr != NULL)
119 if (png_ptr != NULL &&
info_ptr != NULL)
120 #if defined(PNG_pHYs_SUPPORTED)
123 png_debug1(1,
"in %s retrieval function\n",
"png_get_x_pixels_per_meter");
126 else return (
info_ptr->x_pixels_per_unit);
137 if (png_ptr != NULL &&
info_ptr != NULL)
138 #if defined(PNG_pHYs_SUPPORTED)
141 png_debug1(1,
"in %s retrieval function\n",
"png_get_y_pixels_per_meter");
144 else return (
info_ptr->y_pixels_per_unit);
155 if (png_ptr != NULL &&
info_ptr != NULL)
156 #if defined(PNG_pHYs_SUPPORTED)
159 png_debug1(1,
"in %s retrieval function\n",
"png_get_pixels_per_meter");
163 else return (
info_ptr->x_pixels_per_unit);
171 #ifdef PNG_FLOATING_POINT_SUPPORTED
175 if (png_ptr != NULL &&
info_ptr != NULL)
176 #if defined(PNG_pHYs_SUPPORTED)
179 png_debug1(1,
"in %s retrieval function\n",
"png_get_aspect_ratio");
180 if (
info_ptr->x_pixels_per_unit == 0)
183 return ((
float)((
float)
info_ptr->y_pixels_per_unit
184 /(
float)
info_ptr->x_pixels_per_unit));
196 if (png_ptr != NULL &&
info_ptr != NULL)
197 #if defined(PNG_oFFs_SUPPORTED)
200 png_debug1(1,
"in %s retrieval function\n",
"png_get_x_offset_microns");
214 if (png_ptr != NULL &&
info_ptr != NULL)
215 #if defined(PNG_oFFs_SUPPORTED)
218 png_debug1(1,
"in %s retrieval function\n",
"png_get_y_offset_microns");
232 if (png_ptr != NULL &&
info_ptr != NULL)
233 #if defined(PNG_oFFs_SUPPORTED)
236 png_debug1(1,
"in %s retrieval function\n",
"png_get_x_offset_microns");
250 if (png_ptr != NULL &&
info_ptr != NULL)
251 #if defined(PNG_oFFs_SUPPORTED)
254 png_debug1(1,
"in %s retrieval function\n",
"png_get_y_offset_microns");
265 #if defined(PNG_INCH_CONVERSIONS) && defined(PNG_FLOATING_POINT_SUPPORTED)
301 #if defined(PNG_pHYs_SUPPORTED)
310 png_debug1(1,
"in %s retrieval function\n",
"pHYs");
344 if (png_ptr != NULL &&
info_ptr != NULL)
353 if (png_ptr != NULL &&
info_ptr != NULL)
359 #if defined(PNG_bKGD_SUPPORTED)
367 png_debug1(1,
"in %s retrieval function\n",
"bKGD");
375 #if defined(PNG_cHRM_SUPPORTED)
376 #ifdef PNG_FLOATING_POINT_SUPPORTED
384 png_debug1(1,
"in %s retrieval function\n",
"cHRM");
406 #ifdef PNG_FIXED_POINT_SUPPORTED
415 png_debug1(1,
"in %s retrieval function\n",
"cHRM");
439 #if defined(PNG_gAMA_SUPPORTED)
440 #ifdef PNG_FLOATING_POINT_SUPPORTED
447 png_debug1(1,
"in %s retrieval function\n",
"gAMA");
454 #ifdef PNG_FIXED_POINT_SUPPORTED
462 png_debug1(1,
"in %s retrieval function\n",
"gAMA");
471 #if defined(PNG_sRGB_SUPPORTED)
476 && file_srgb_intent != NULL)
478 png_debug1(1,
"in %s retrieval function\n",
"sRGB");
486 #if defined(PNG_iCCP_SUPPORTED)
495 png_debug1(1,
"in %s retrieval function\n",
"iCCP");
508 #if defined(PNG_sPLT_SUPPORTED)
513 if (png_ptr != NULL &&
info_ptr != NULL && spalettes != NULL)
515 *spalettes =
info_ptr->splt_palettes;
522 #if defined(PNG_hIST_SUPPORTED)
529 png_debug1(1,
"in %s retrieval function\n",
"hIST");
547 png_debug1(1,
"in %s retrieval function\n",
"IHDR");
555 png_error(png_ptr,
"Invalid color type");
558 if (filter_type != NULL)
559 *filter_type =
info_ptr->filter_type;
560 if (interlace_type != NULL)
561 *interlace_type =
info_ptr->interlace_type;
565 png_error(png_ptr,
"Invalid image width");
567 png_error(png_ptr,
"Invalid image height");
576 "Width too large for libpng to process image data.");
583 #if defined(PNG_oFFs_SUPPORTED)
591 png_debug1(1,
"in %s retrieval function\n",
"oFFs");
601 #if defined(PNG_pCAL_SUPPORTED)
611 png_debug1(1,
"in %s retrieval function\n",
"pCAL");
625 #if defined(PNG_sCAL_SUPPORTED)
626 #ifdef PNG_FLOATING_POINT_SUPPORTED
631 if (png_ptr != NULL &&
info_ptr != NULL &&
642 #ifdef PNG_FIXED_POINT_SUPPORTED
647 if (png_ptr != NULL &&
info_ptr != NULL &&
661 #if defined(PNG_pHYs_SUPPORTED)
668 if (png_ptr != NULL &&
info_ptr != NULL &&
671 png_debug1(1,
"in %s retrieval function\n",
"pHYs");
699 png_debug1(1,
"in %s retrieval function\n",
"PLTE");
708 #if defined(PNG_sBIT_SUPPORTED)
715 png_debug1(1,
"in %s retrieval function\n",
"sBIT");
723 #if defined(PNG_TEXT_SUPPORTED)
731 (png_ptr->chunk_name[0] ==
'\0' ?
"text"
745 #if defined(PNG_tIME_SUPPORTED)
752 png_debug1(1,
"in %s retrieval function\n",
"tIME");
760 #if defined(PNG_tRNS_SUPPORTED)
768 png_debug1(1,
"in %s retrieval function\n",
"tRNS");
799 #if defined(PNG_UNKNOWN_CHUNKS_SUPPORTED)
813 #if defined(PNG_READ_RGB_TO_GRAY_SUPPORTED)
817 return (
png_byte)(png_ptr? png_ptr->rgb_to_gray_status : 0);
821 #if defined(PNG_USER_CHUNKS_SUPPORTED)
825 return (png_ptr? png_ptr->user_chunk_ptr : NULL);
829 #ifdef PNG_WRITE_SUPPORTED
833 return (
png_uint_32)(png_ptr? png_ptr->zbuf_size : 0L);
837 #ifdef PNG_ASSEMBLER_CODE_SUPPORTED
844 return (png_ptr? 0L: 0L);
852 flag_select=flag_select;
862 flag_select=flag_select;
872 return (png_ptr? 0: 0);
880 return (png_ptr? 0L: 0L);
885 #ifdef PNG_SET_USER_LIMITS_SUPPORTED
890 return (png_ptr? png_ptr->user_width_max : 0);
895 return (png_ptr? png_ptr->user_height_max : 0);
png_uint_32 PNGAPI png_get_sRGB(png_structp png_ptr, png_infop info_ptr, int *file_srgb_intent)
png_uint_32 PNGAPI png_get_text(png_structp png_ptr, png_infop info_ptr, png_textp *text_ptr, int *num_text)
png_infop png_uint_32 png_uint_32 * res_y
png_uint_32 PNGAPI png_get_rowbytes(png_structp png_ptr, png_infop info_ptr)
png_infop png_textp * text_ptr
png_byte PNGAPI png_get_color_type(png_structp png_ptr, png_infop info_ptr)
png_infop png_uint_32 * width
png_unknown_chunk FAR *FAR * png_unknown_chunkpp
png_infop png_charpp int png_charpp png_uint_32 * proflen
png_infop double double double double double double double double * blue_y
png_byte PNGAPI png_get_channels(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_hIST(png_structp png_ptr, png_infop info_ptr, png_uint_16p *hist)
png_uint_32 PNGAPI png_get_pHYs(png_structp png_ptr, png_infop info_ptr, png_uint_32 *res_x, png_uint_32 *res_y, int *unit_type)
png_infop png_textp int * num_text
png_uint_32 PNGAPI png_get_bKGD(png_structp png_ptr, png_infop info_ptr, png_color_16p *background)
png_uint_32 PNGAPI png_get_x_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_image_width(png_structp png_ptr, png_infop info_ptr)
png_infop png_int_32 png_int_32 int * unit_type
png_bytep PNGAPI png_get_signature(png_structp png_ptr, png_infop info_ptr)
png_int_32 PNGAPI png_get_y_offset_microns(png_structp png_ptr, png_infop info_ptr)
png_color_16 FAR * png_color_16p
png_color_8 FAR * png_color_8p
png_infop png_unknown_chunkp unknowns
png_byte PNGAPI png_get_rgb_to_gray_status(png_structp png_ptr)
png_infop png_charp png_int_32 png_int_32 int int png_charp png_charpp * params
png_uint_32 PNGAPI png_get_tRNS(png_structp png_ptr, png_infop info_ptr, png_bytep *trans, int *num_trans, png_color_16p *trans_values)
png_uint_32 PNGAPI png_get_mmx_flagmask(int flag_select, int *compilerID)
png_color FAR * png_colorp
png_infop png_uint_32 png_uint_32 int * bit_depth
PNG_CONST char FAR * png_const_charp
png_infop png_charp png_int_32 png_int_32 int * type
png_sPLT_t FAR *FAR * png_sPLT_tpp
png_uint_32 PNGAPI png_get_user_width_max(png_structp png_ptr)
#define PNG_RESOLUTION_METER
png_infop png_charp png_int_32 png_int_32 * X1
png_byte FAR *FAR * png_bytepp
png_infop png_charpp int png_charpp profile
png_infop double double * white_y
png_infop png_charpp int * compression_type
png_uint_32 PNGAPI png_get_gAMA_fixed(png_structp png_ptr, png_infop info_ptr, png_fixed_point *int_file_gamma)
png_uint_32 PNGAPI png_get_oFFs(png_structp png_ptr, png_infop info_ptr, png_int_32 *offset_x, png_int_32 *offset_y, int *unit_type)
png_uint_32 PNGAPI png_get_sCAL(png_structp png_ptr, png_infop info_ptr, int *unit, double *width, double *height)
png_uint_32 PNGAPI png_get_iCCP(png_structp png_ptr, png_infop info_ptr, png_charpp name, int *compression_type, png_charpp profile, png_uint_32 *proflen)
png_infop double double double double double * green_x
png_infop png_charp png_int_32 png_int_32 int int png_charp * units
png_uint_32 PNGAPI png_get_compression_buffer_size(png_structp png_ptr)
png_infop png_fixed_point * int_file_gamma
png_byte PNGAPI png_get_mmx_bitdepth_threshold(png_structp png_ptr)
void PNGAPI png_warning(png_structp png_ptr, png_const_charp warning_message)
png_uint_32 PNGAPI png_get_cHRM_fixed(png_structp png_ptr, png_infop 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 PNGAPI png_get_unknown_chunks(png_structp png_ptr, png_infop info_ptr, png_unknown_chunkpp unknowns)
png_infop png_uint_32 * res_x
png_infop png_charp * purpose
png_struct FAR * png_structp
png_uint_32 PNGAPI png_get_mmx_rowbytes_threshold(png_structp png_ptr)
png_infop png_charpp name
png_uint_32 PNGAPI png_get_valid(png_structp png_ptr, png_infop info_ptr, png_uint_32 flag)
png_infop png_bytep * trans
#define PNG_OFFSET_MICROMETER
png_uint_32 PNGAPI png_get_asm_flags(png_structp png_ptr)
png_uint_16 FAR * png_uint_16p
png_infop png_charp png_int_32 png_int_32 int int * nparams
#define png_debug1(l, m, p1)
png_int_32 PNGAPI png_get_x_offset_pixels(png_structp png_ptr, png_infop info_ptr)
png_infop double double double double double double double * blue_x
png_uint_32 PNGAPI png_get_IHDR(png_structp png_ptr, png_infop 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 PNGAPI png_get_image_height(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_user_height_max(png_structp png_ptr)
png_infop png_charp png_int_32 * X0
png_uint_32 PNGAPI png_get_PLTE(png_structp png_ptr, png_infop info_ptr, png_colorp *palette, int *num_palette)
png_uint_32 PNGAPI png_get_tIME(png_structp png_ptr, png_infop info_ptr, png_timep *mod_time)
png_byte PNGAPI png_get_compression_type(png_structp png_ptr, png_infop info_ptr)
png_infop double * file_gamma
png_infop png_int_32 png_int_32 * offset_y
png_byte PNGAPI png_get_bit_depth(png_structp png_ptr, png_infop info_ptr)
png_infop png_color_16p * background
png_uint_32 PNGAPI png_get_sPLT(png_structp png_ptr, png_infop info_ptr, png_sPLT_tpp spalettes)
png_bytepp PNGAPI png_get_rows(png_structp png_ptr, png_infop info_ptr)
png_infop png_int_32 * offset_x
png_infop png_color_8p * sig_bit
png_infop double double double double * red_y
unsigned long png_uint_32
png_int_32 PNGAPI png_get_x_offset_microns(png_structp png_ptr, png_infop info_ptr)
png_infop png_uint_32 png_uint_32 * height
png_infop png_bytep int * num_trans
png_uint_32 PNGAPI png_get_y_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
png_uint_32 PNGAPI png_get_pCAL(png_structp png_ptr, png_infop info_ptr, png_charp *purpose, png_int_32 *X0, png_int_32 *X1, int *type, int *nparams, png_charp *units, png_charpp *params)
png_int_32 png_fixed_point
png_uint_32 PNGAPI png_get_cHRM(png_structp png_ptr, png_infop 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)
char FAR *FAR * png_charpp
png_int_32 PNGAPI png_get_y_offset_pixels(png_structp png_ptr, png_infop info_ptr)
png_infop double * white_x
png_byte PNGAPI png_get_interlace_type(png_structp png_ptr, png_infop info_ptr)
png_infop double double double double double double * green_y
png_infop png_bytep int png_color_16p * trans_values
png_infop png_uint_32 png_uint_32 int int * color_type
float PNGAPI png_get_pixel_aspect_ratio(png_structp png_ptr, png_infop info_ptr)
png_infop png_uint_16p * hist
png_uint_32 PNGAPI png_get_pixels_per_meter(png_structp png_ptr, png_infop info_ptr)
png_byte PNGAPI png_get_filter_type(png_structp png_ptr, png_infop info_ptr)
png_infop png_uint_32 flag
png_uint_32 PNGAPI png_get_gAMA(png_structp png_ptr, png_infop info_ptr, double *file_gamma)
png_voidp PNGAPI png_get_user_chunk_ptr(png_structp png_ptr)
void PNGAPI png_error(png_structp png_ptr, png_const_charp error_message)
png_infop png_timep * mod_time
png_infop double double double * red_x
#define PNG_COLOR_TYPE_PALETTE
png_uint_32 PNGAPI png_get_sBIT(png_structp png_ptr, png_infop info_ptr, png_color_8p *sig_bit)
png_colorp int num_palette
png_uint_32 PNGAPI png_get_asm_flagmask(int flag_select)
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04