Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Typedefs | Functions
readpng.h File Reference

Go to the source code of this file.

Macros

#define FALSE   0
 
#define MAX(a, b)   ((a) > (b)? (a) : (b))
 
#define MIN(a, b)   ((a) < (b)? (a) : (b))
 
#define Trace(x)   ;
 

Typedefs

typedef unsigned char uch
 
typedef unsigned short ush
 
typedef unsigned long ulg
 

Functions

void readpng_version_info (void)
 
int readpng_init (FILE *infile, ulg *pWidth, ulg *pHeight)
 
int readpng_get_bgcolor (uch *bg_red, uch *bg_green, uch *bg_blue)
 
uchreadpng_get_image (double display_exponent, int *pChannels, ulg *pRowbytes)
 
void readpng_cleanup (int free_image_data)
 

Macro Definition Documentation

◆ FALSE

#define FALSE   0

Definition at line 58 of file readpng.h.

◆ MAX

#define MAX (   a,
  b 
)    ((a) > (b)? (a) : (b))

Definition at line 62 of file readpng.h.

◆ MIN

#define MIN (   a,
  b 
)    ((a) < (b)? (a) : (b))

Definition at line 63 of file readpng.h.

◆ Trace

#define Trace (   x)    ;

Definition at line 69 of file readpng.h.

Typedef Documentation

◆ uch

typedef unsigned char uch

Definition at line 72 of file readpng.h.

◆ ulg

typedef unsigned long ulg

Definition at line 74 of file readpng.h.

◆ ush

typedef unsigned short ush

Definition at line 73 of file readpng.h.

Function Documentation

◆ readpng_cleanup()

void readpng_cleanup ( int  free_image_data)

Definition at line 296 of file readpng.c.

References free(), image_data, and NULL.

◆ readpng_get_bgcolor()

int readpng_get_bgcolor ( uch bg_red,
uch bg_green,
uch bg_blue 
)

Definition at line 154 of file readpng.c.

References png_jmpbuf.

◆ readpng_get_image()

uch* readpng_get_image ( double  display_exponent,
int pChannels,
ulg pRowbytes 
)

Definition at line 206 of file readpng.c.

◆ readpng_init()

int readpng_init ( FILE *  infile,
ulg pWidth,
ulg pHeight 
)

Definition at line 87 of file readpng.c.

References bit_depth, channels, color_type, height, infile, png_sig_cmp(), saved_infile, and width.

◆ readpng_version_info()

void readpng_version_info ( void  )

Definition at line 76 of file readpng.c.

References png_libpng_ver, PNG_LIBPNG_VER_STRING, ZLIB_VERSION, and zlib_version.