OLD | NEW |
1 | 1 |
2 /* pngget.c - retrieval of values from info struct | 2 /* pngget.c - retrieval of values from info struct |
3 * | 3 * |
4 * Last changed in libpng 1.6.17 [March 26, 2015] | 4 * Last changed in libpng 1.6.17 [March 26, 2015] |
5 * Copyright (c) 1998-2015 Glenn Randers-Pehrson | 5 * Copyright (c) 1998-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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 { | 1210 { |
1211 if (png_ptr != NULL && info_ptr != NULL) | 1211 if (png_ptr != NULL && info_ptr != NULL) |
1212 return png_ptr->num_palette_max; | 1212 return png_ptr->num_palette_max; |
1213 | 1213 |
1214 return (-1); | 1214 return (-1); |
1215 } | 1215 } |
1216 # endif | 1216 # endif |
1217 #endif | 1217 #endif |
1218 | 1218 |
1219 #endif /* READ || WRITE */ | 1219 #endif /* READ || WRITE */ |
OLD | NEW |