ReactOS  0.4.15-dev-994-ga9f6032
png.c File Reference
#include "pngpriv.h"
Include dependency graph for png.c:

Go to the source code of this file.

Macros

#define GCC_STRICT_OVERFLOW   0
 

Typedefs

typedef png_libpng_version_1_6_37 Your_png_h_is_not_version_1_6_37
 

Functions

png_voidp PNGAPI png_get_io_ptr (png_const_structrp png_ptr)
 
png_const_charp PNGAPI png_get_copyright (png_const_structrp png_ptr)
 
png_const_charp PNGAPI png_get_libpng_ver (png_const_structrp png_ptr)
 
png_const_charp PNGAPI png_get_header_ver (png_const_structrp png_ptr)
 
png_const_charp PNGAPI png_get_header_version (png_const_structrp png_ptr)
 
png_uint_32 PNGAPI png_access_version_number (void)
 

Macro Definition Documentation

◆ GCC_STRICT_OVERFLOW

#define GCC_STRICT_OVERFLOW   0

Definition at line 36 of file png.c.

Typedef Documentation

◆ Your_png_h_is_not_version_1_6_37

Function Documentation

◆ png_access_version_number()

png_uint_32 PNGAPI png_access_version_number ( void  )

Definition at line 986 of file png.c.

987 {
988  /* Version of *.c files used when building libpng */
989  return((png_uint_32)PNG_LIBPNG_VER);
990 }
png_uint_32
Definition: png.h:1939
#define PNG_LIBPNG_VER
Definition: png.h:321

◆ png_get_copyright()

png_const_charp PNGAPI png_get_copyright ( png_const_structrp  png_ptr)

Definition at line 811 of file png.c.

812 {
813  PNG_UNUSED(png_ptr) /* Silence compiler warning about unused png_ptr */
814 #ifdef PNG_STRING_COPYRIGHT
815  return PNG_STRING_COPYRIGHT
816 #else
817  return PNG_STRING_NEWLINE \
818  "libpng version 1.6.37" PNG_STRING_NEWLINE \
819  "Copyright (c) 2018-2019 Cosmin Truta" PNG_STRING_NEWLINE \
820  "Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson" \
821  PNG_STRING_NEWLINE \
822  "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
823  "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
824  PNG_STRING_NEWLINE;
825 #endif
826 }
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
#define PNG_STRING_NEWLINE
Definition: pngdebug.h:48
png_structrp png_ptr
Definition: png.h:1083

◆ png_get_header_ver()

png_const_charp PNGAPI png_get_header_ver ( png_const_structrp  png_ptr)

Definition at line 844 of file png.c.

845 {
846  /* Version of *.h files used when building libpng */
847  PNG_UNUSED(png_ptr) /* Silence compiler warning about unused png_ptr */
848  return PNG_LIBPNG_VER_STRING;
849 }
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
#define PNG_LIBPNG_VER_STRING
Definition: png.h:281
png_structrp png_ptr
Definition: png.h:1083

Referenced by png_get_libpng_ver().

◆ png_get_header_version()

png_const_charp PNGAPI png_get_header_version ( png_const_structrp  png_ptr)

Definition at line 852 of file png.c.

853 {
854  /* Returns longer string containing both version and date */
855  PNG_UNUSED(png_ptr) /* Silence compiler warning about unused png_ptr */
856 #ifdef __STDC__
858 # ifndef PNG_READ_SUPPORTED
859  " (NO READ SUPPORT)"
860 # endif
862 #else
864 #endif
865 }
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
#define PNG_STRING_NEWLINE
Definition: pngdebug.h:48
png_structrp png_ptr
Definition: png.h:1083
#define PNG_HEADER_VERSION_STRING
Definition: png.h:282

◆ png_get_io_ptr()

png_voidp PNGAPI png_get_io_ptr ( png_const_structrp  png_ptr)

Definition at line 686 of file png.c.

687 {
688  if (png_ptr == NULL)
689  return (NULL);
690 
691  return (png_ptr->io_ptr);
692 }
smooth NULL
Definition: ftsmooth.c:416
png_structrp png_ptr
Definition: png.h:1083

◆ png_get_libpng_ver()

png_const_charp PNGAPI png_get_libpng_ver ( png_const_structrp  png_ptr)

Definition at line 837 of file png.c.

838 {
839  /* Version of *.c files used when building libpng */
840  return png_get_header_ver(png_ptr);
841 }
png_const_charp PNGAPI png_get_header_ver(png_const_structrp png_ptr)
Definition: png.c:844
png_structrp png_ptr
Definition: png.h:1083