X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f0299c17dc878540bf190c290392db241b425ad..758bce950ba9236d0a9edc4c880c3ec73b5173f3:/src/png/pngget.c?ds=inline diff --git a/src/png/pngget.c b/src/png/pngget.c index f45fa418aa..484a0117c8 100644 --- a/src/png/pngget.c +++ b/src/png/pngget.c @@ -1,16 +1,15 @@ /* pngget.c - retrieval of values from info struct * - * libpng 1.0.1 + * libpng 1.0.3 - January 14, 1999 * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger - * Copyright (c) 1998, Glenn Randers-Pehrson - * March 15, 1998 + * Copyright (c) 1998, 1999 Glenn Randers-Pehrson */ #define PNG_INTERNAL -#include "../png/png.h" +#include "png.h" png_uint_32 png_get_valid(png_structp png_ptr, png_infop info_ptr, png_uint_32 flag) @@ -302,11 +301,11 @@ png_get_pHYs_dpi(png_structp png_ptr, png_infop info_ptr, } return (retval); } -#endif - +#endif /* PNG_READ_pHYs_SUPPORTED */ #endif /* PNG_INCH_CONVERSIONS */ /* png_get_channels really belongs in here, too, but it's been around longer */ + #endif /* PNG_EASY_ACCESS_SUPPORTED */ png_byte @@ -424,7 +423,7 @@ 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) - + { if (png_ptr != NULL && info_ptr != NULL && width != NULL && height != NULL && bit_depth != NULL && color_type != NULL) @@ -642,3 +641,10 @@ png_get_tRNS(png_structp png_ptr, png_infop info_ptr, } #endif +#if defined(PNG_READ_RGB_TO_GRAY_SUPPORTED) +png_byte +png_get_rgb_to_gray_status (png_structp png_ptr) +{ + return png_ptr->rgb_to_gray_status; +} +#endif