Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: third_party/libpng/pnginfo.h

Issue 1591483003: XFA: Upgrade libpng to 1.6.20. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libpng/pngget.c ('k') | third_party/libpng/pnglibconf.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* pnginfo.h - header file for PNG reference library 2 /* pnginfo.h - header file for PNG reference library
3 * 3 *
4 * Last changed in libpng 1.6.1 [March 28, 2013]
4 * Copyright (c) 1998-2013 Glenn Randers-Pehrson 5 * Copyright (c) 1998-2013 Glenn Randers-Pehrson
5 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
6 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) 7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
7 * 8 *
8 * Last changed in libpng 1.6.1 [March 28, 2013]
9 *
10 * This code is released under the libpng license. 9 * This code is released under the libpng license.
11 * For conditions of distribution and use, see the disclaimer 10 * For conditions of distribution and use, see the disclaimer
12 * and license in png.h 11 * and license in png.h
13 */ 12 */
14 13
15 /* png_info is a structure that holds the information in a PNG file so 14 /* png_info is a structure that holds the information in a PNG file so
16 * that the application can find out the characteristics of the image. 15 * that the application can find out the characteristics of the image.
17 * If you are reading the file, this structure will tell you what is 16 * If you are reading the file, this structure will tell you what is
18 * in the PNG file. If you are writing the file, fill in the information 17 * in the PNG file. If you are writing the file, fill in the information
19 * you want to put into the PNG file, using png_set_*() functions, then 18 * you want to put into the PNG file, using png_set_*() functions, then
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 * uncompressed, compressed, and optionally compressed forms, respectively. 113 * uncompressed, compressed, and optionally compressed forms, respectively.
115 * The data in "text" is an array of pointers to uncompressed, 114 * The data in "text" is an array of pointers to uncompressed,
116 * null-terminated C strings. Each chunk has a keyword that describes the 115 * null-terminated C strings. Each chunk has a keyword that describes the
117 * textual data contained in that chunk. Keywords are not required to be 116 * textual data contained in that chunk. Keywords are not required to be
118 * unique, and the text string may be empty. Any number of text chunks may 117 * unique, and the text string may be empty. Any number of text chunks may
119 * be in an image. 118 * be in an image.
120 */ 119 */
121 int num_text; /* number of comments read or comments to write */ 120 int num_text; /* number of comments read or comments to write */
122 int max_text; /* current size of text array */ 121 int max_text; /* current size of text array */
123 png_textp text; /* array of comments read or comments to write */ 122 png_textp text; /* array of comments read or comments to write */
124 #endif /* PNG_TEXT_SUPPORTED */ 123 #endif /* TEXT */
125 124
126 #ifdef PNG_tIME_SUPPORTED 125 #ifdef PNG_tIME_SUPPORTED
127 /* The tIME chunk holds the last time the displayed image data was 126 /* The tIME chunk holds the last time the displayed image data was
128 * modified. See the png_time struct for the contents of this struct. 127 * modified. See the png_time struct for the contents of this struct.
129 */ 128 */
130 png_time mod_time; 129 png_time mod_time;
131 #endif 130 #endif
132 131
133 #ifdef PNG_sBIT_SUPPORTED 132 #ifdef PNG_sBIT_SUPPORTED
134 /* The sBIT chunk specifies the number of significant high-order bits 133 /* The sBIT chunk specifies the number of significant high-order bits
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 png_byte pcal_nparams; /* number of parameters given in pcal_params */ 216 png_byte pcal_nparams; /* number of parameters given in pcal_params */
218 #endif 217 #endif
219 218
220 /* New members added in libpng-1.0.6 */ 219 /* New members added in libpng-1.0.6 */
221 png_uint_32 free_me; /* flags items libpng is responsible for freeing */ 220 png_uint_32 free_me; /* flags items libpng is responsible for freeing */
222 221
223 #ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED 222 #ifdef PNG_STORE_UNKNOWN_CHUNKS_SUPPORTED
224 /* Storage for unknown chunks that the library doesn't recognize. */ 223 /* Storage for unknown chunks that the library doesn't recognize. */
225 png_unknown_chunkp unknown_chunks; 224 png_unknown_chunkp unknown_chunks;
226 225
227 /* The type of this field is limited by the type of 226 /* The type of this field is limited by the type of
228 * png_struct::user_chunk_cache_max, else overflow can occur. 227 * png_struct::user_chunk_cache_max, else overflow can occur.
229 */ 228 */
230 int unknown_chunks_num; 229 int unknown_chunks_num;
231 #endif 230 #endif
232 231
233 #ifdef PNG_sPLT_SUPPORTED 232 #ifdef PNG_sPLT_SUPPORTED
234 /* Data on sPLT chunks (there may be more than one). */ 233 /* Data on sPLT chunks (there may be more than one). */
235 png_sPLT_tp splt_palettes; 234 png_sPLT_tp splt_palettes;
236 int splt_palettes_num; /* Match type returned by png_get API */ 235 int splt_palettes_num; /* Match type returned by png_get API */
237 #endif 236 #endif
(...skipping 13 matching lines...) Expand all
251 250
252 #ifdef PNG_INFO_IMAGE_SUPPORTED 251 #ifdef PNG_INFO_IMAGE_SUPPORTED
253 /* Memory has been allocated if (valid & PNG_ALLOCATED_INFO_ROWS) 252 /* Memory has been allocated if (valid & PNG_ALLOCATED_INFO_ROWS)
254 non-zero */ 253 non-zero */
255 /* Data valid if (valid & PNG_INFO_IDAT) non-zero */ 254 /* Data valid if (valid & PNG_INFO_IDAT) non-zero */
256 png_bytepp row_pointers; /* the image bits */ 255 png_bytepp row_pointers; /* the image bits */
257 #endif 256 #endif
258 257
259 }; 258 };
260 #endif /* PNGINFO_H */ 259 #endif /* PNGINFO_H */
OLDNEW
« no previous file with comments | « third_party/libpng/pngget.c ('k') | third_party/libpng/pnglibconf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698