| OLD | NEW |
| 1 | 1 |
| 2 /* pngstruct.h - header file for PNG reference library | 2 /* pngstruct.h - header file for PNG reference library |
| 3 * | 3 * |
| 4 * Last changed in libpng 1.6.18 [July 23, 2015] | 4 * Last changed in libpng 1.6.18 [July 23, 2015] |
| 5 * Copyright (c) 1998-2002,2004,2006-2015 Glenn Randers-Pehrson | 5 * Copyright (c) 1998-2002,2004,2006-2015 Glenn Randers-Pehrson |
| 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
| 7 * (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.) |
| 8 * | 8 * |
| 9 * This code is released under the libpng license. | 9 * This code is released under the libpng license. |
| 10 * For conditions of distribution and use, see the disclaimer | 10 * For conditions of distribution and use, see the disclaimer |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 png_bytep prev_row; /* buffer to save previous (unfiltered) row. | 221 png_bytep prev_row; /* buffer to save previous (unfiltered) row. |
| 222 * While reading this is a pointer into | 222 * While reading this is a pointer into |
| 223 * big_prev_row; while writing it is separately | 223 * big_prev_row; while writing it is separately |
| 224 * allocated if needed. | 224 * allocated if needed. |
| 225 */ | 225 */ |
| 226 png_bytep row_buf; /* buffer to save current (unfiltered) row. | 226 png_bytep row_buf; /* buffer to save current (unfiltered) row. |
| 227 * While reading, this is a pointer into | 227 * While reading, this is a pointer into |
| 228 * big_row_buf; while writing it is separately | 228 * big_row_buf; while writing it is separately |
| 229 * allocated. | 229 * allocated. |
| 230 */ | 230 */ |
| 231 #ifdef PNG_READ_EXPAND_SUPPORTED |
| 232 png_bytep row_tmp_palette; /* Buffer to accelerate palette transformations. *
/ |
| 233 #endif |
| 231 #ifdef PNG_WRITE_FILTER_SUPPORTED | 234 #ifdef PNG_WRITE_FILTER_SUPPORTED |
| 232 png_bytep try_row; /* buffer to save trial row when filtering */ | 235 png_bytep try_row; /* buffer to save trial row when filtering */ |
| 233 png_bytep tst_row; /* buffer to save best trial row when filtering */ | 236 png_bytep tst_row; /* buffer to save best trial row when filtering */ |
| 234 #endif | 237 #endif |
| 235 png_size_t info_rowbytes; /* Added in 1.5.4: cache of updated row bytes */ | 238 png_size_t info_rowbytes; /* Added in 1.5.4: cache of updated row bytes */ |
| 236 | 239 |
| 237 png_uint_32 idat_size; /* current IDAT size for read */ | 240 png_uint_32 idat_size; /* current IDAT size for read */ |
| 238 png_uint_32 crc; /* current chunk CRC value */ | 241 png_uint_32 crc; /* current chunk CRC value */ |
| 239 png_colorp palette; /* palette from the input file */ | 242 png_colorp palette; /* palette from the input file */ |
| 240 png_uint_16 num_palette; /* number of color entries in palette */ | 243 png_uint_16 num_palette; /* number of color entries in palette */ |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 void (*read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info, | 477 void (*read_filter[PNG_FILTER_VALUE_LAST-1])(png_row_infop row_info, |
| 475 png_bytep row, png_const_bytep prev_row); | 478 png_bytep row, png_const_bytep prev_row); |
| 476 | 479 |
| 477 #ifdef PNG_READ_SUPPORTED | 480 #ifdef PNG_READ_SUPPORTED |
| 478 #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED) | 481 #if defined(PNG_COLORSPACE_SUPPORTED) || defined(PNG_GAMMA_SUPPORTED) |
| 479 png_colorspace colorspace; | 482 png_colorspace colorspace; |
| 480 #endif | 483 #endif |
| 481 #endif | 484 #endif |
| 482 }; | 485 }; |
| 483 #endif /* PNGSTRUCT_H */ | 486 #endif /* PNGSTRUCT_H */ |
| OLD | NEW |