123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
-
- #ifndef PNGINFO_H
- #define PNGINFO_H
- struct png_info_def
- {
-
- png_uint_32 width;
- png_uint_32 height;
- png_uint_32 valid;
- size_t rowbytes;
- png_colorp palette;
- png_uint_16 num_palette;
- png_uint_16 num_trans;
- png_byte bit_depth;
- png_byte color_type;
-
- png_byte compression_type;
- png_byte filter_type;
- png_byte interlace_type;
-
- png_byte channels;
- png_byte pixel_depth;
- png_byte spare_byte;
- #ifdef PNG_READ_SUPPORTED
-
- png_byte signature[8];
- #endif
-
- #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED)
-
- png_colorspace colorspace;
- #endif
- #ifdef PNG_iCCP_SUPPORTED
-
- png_charp iccp_name;
- png_bytep iccp_profile;
- png_uint_32 iccp_proflen;
- #endif
- #ifdef PNG_TEXT_SUPPORTED
-
- int num_text;
- int max_text;
- png_textp text;
- #endif
- #ifdef PNG_tIME_SUPPORTED
-
- png_time mod_time;
- #endif
- #ifdef PNG_sBIT_SUPPORTED
-
- png_color_8 sig_bit;
- #endif
- #if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_EXPAND_SUPPORTED) || \
- defined(PNG_READ_BACKGROUND_SUPPORTED)
-
- png_bytep trans_alpha;
- png_color_16 trans_color;
- #endif
- #if defined(PNG_bKGD_SUPPORTED) || defined(PNG_READ_BACKGROUND_SUPPORTED)
-
- png_color_16 background;
- #endif
- #ifdef PNG_oFFs_SUPPORTED
-
- png_int_32 x_offset;
- png_int_32 y_offset;
- png_byte offset_unit_type;
- #endif
- #ifdef PNG_pHYs_SUPPORTED
-
- png_uint_32 x_pixels_per_unit;
- png_uint_32 y_pixels_per_unit;
- png_byte phys_unit_type;
- #endif
- #ifdef PNG_eXIf_SUPPORTED
- int num_exif;
- png_bytep exif;
- # ifdef PNG_READ_eXIf_SUPPORTED
- png_bytep eXIf_buf;
- # endif
- #endif
- #ifdef PNG_hIST_SUPPORTED
-
- png_uint_16p hist;
- #endif
- #ifdef PNG_pCAL_SUPPORTED
-
- png_charp pcal_purpose;
- png_int_32 pcal_X0;
- png_int_32 pcal_X1;
- png_charp pcal_units;
- png_charpp pcal_params;
- png_byte pcal_type;
- png_byte pcal_nparams;
- #endif
- png_uint_32 free_me;
- #ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED
-
- png_unknown_chunkp unknown_chunks;
-
- int unknown_chunks_num;
- #endif
- #ifdef PNG_sPLT_SUPPORTED
-
- png_sPLT_tp splt_palettes;
- int splt_palettes_num;
- #endif
- #ifdef PNG_sCAL_SUPPORTED
-
- png_byte scal_unit;
- png_charp scal_s_width;
- png_charp scal_s_height;
- #endif
- #ifdef PNG_INFO_IMAGE_SUPPORTED
-
-
- png_bytepp row_pointers;
- #endif
- };
- #endif
|