src/java.desktop/share/native/libsplashscreen/libpng/pngget.c
changeset 48280 791d551bcdb8
parent 47216 71c04702a3d5
child 51304 66d9993dd4ad
equal deleted inserted replaced
48279:c40a1a907c74 48280:791d551bcdb8
    26  *
    26  *
    27  * This file is available under and governed by the GNU General Public
    27  * This file is available under and governed by the GNU General Public
    28  * License version 2 only, as published by the Free Software Foundation.
    28  * License version 2 only, as published by the Free Software Foundation.
    29  * However, the following notice accompanied the original version of this
    29  * However, the following notice accompanied the original version of this
    30  * file and, per its terms, should not be removed:
    30  * file and, per its terms, should not be removed:
    31 
    31  *
    32  * Last changed in libpng 1.6.26 [October 20, 2016]
    32  * Last changed in libpng 1.6.32 [August 24, 2017]
    33  * Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson
    33  * Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson
    34  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
    34  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
    35  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
    35  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
    36  *
    36  *
    37  * This code is released under the libpng license.
    37  * This code is released under the libpng license.
    38  * For conditions of distribution and use, see the disclaimer
    38  * For conditions of distribution and use, see the disclaimer
   799 
   799 
   800    return (0);
   800    return (0);
   801 }
   801 }
   802 #endif
   802 #endif
   803 
   803 
       
   804 #ifdef PNG_eXIf_SUPPORTED
       
   805 png_uint_32 PNGAPI
       
   806 png_get_eXIf(png_const_structrp png_ptr, png_inforp info_ptr,
       
   807     png_bytep *exif)
       
   808 {
       
   809   png_warning(png_ptr, "png_get_eXIf does not work; use png_get_eXIf_1");
       
   810   PNG_UNUSED(info_ptr)
       
   811   PNG_UNUSED(exif)
       
   812   return 0;
       
   813 }
       
   814 
       
   815 png_uint_32 PNGAPI
       
   816 png_get_eXIf_1(png_const_structrp png_ptr, png_const_inforp info_ptr,
       
   817     png_uint_32 *num_exif, png_bytep *exif)
       
   818 {
       
   819    png_debug1(1, "in %s retrieval function", "eXIf");
       
   820 
       
   821    if (png_ptr != NULL && info_ptr != NULL &&
       
   822        (info_ptr->valid & PNG_INFO_eXIf) != 0 && exif != NULL)
       
   823    {
       
   824       *num_exif = info_ptr->num_exif;
       
   825       *exif = info_ptr->exif;
       
   826       return (PNG_INFO_eXIf);
       
   827    }
       
   828 
       
   829    return (0);
       
   830 }
       
   831 #endif
       
   832 
   804 #ifdef PNG_hIST_SUPPORTED
   833 #ifdef PNG_hIST_SUPPORTED
   805 png_uint_32 PNGAPI
   834 png_uint_32 PNGAPI
   806 png_get_hIST(png_const_structrp png_ptr, png_inforp info_ptr,
   835 png_get_hIST(png_const_structrp png_ptr, png_inforp info_ptr,
   807     png_uint_16p *hist)
   836     png_uint_16p *hist)
   808 {
   837 {