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 | Functions | Variables
readpng.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "png.h"
#include "readpng.h"

Go to the source code of this file.

Macros

#define png_jmpbuf(png_ptr)   ((png_ptr)->jmpbuf)
 

Functions

void readpng_version_info (void)
 
int readpng_init (FILE *infile, ulg *pWidth, ulg *pHeight)
 
int readpng_get_bgcolor (uch *red, uch *green, uch *blue)
 
uchreadpng_get_image (double display_exponent, int *pChannels, ulg *pRowbytes)
 
void readpng_cleanup (int free_image_data)
 

Variables

png_uint_32 width
 
png_uint_32 height
 
int bit_depth
 
int color_type
 
uchimage_data = NULL
 

Macro Definition Documentation

◆ png_jmpbuf

#define png_jmpbuf (   png_ptr)    ((png_ptr)->jmpbuf)

Definition at line 64 of file readpng.c.

Referenced by readpng_get_bgcolor().

Function Documentation

◆ readpng_cleanup()

void readpng_cleanup ( int  free_image_data)

Definition at line 296 of file readpng.c.

◆ readpng_get_bgcolor()

int readpng_get_bgcolor ( uch red,
uch green,
uch blue 
)

Definition at line 154 of file readpng.c.

◆ 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.

◆ readpng_version_info()

void readpng_version_info ( void  )

Definition at line 76 of file readpng.c.

Variable Documentation

◆ bit_depth

Definition at line 72 of file readpng.c.

Referenced by vl::savePNG(), and tt_face_load_strike_metrics().

◆ color_type

Definition at line 72 of file readpng.c.

◆ height

Definition at line 71 of file readpng.c.

◆ image_data

uch* image_data = NULL

Definition at line 73 of file readpng.c.

Referenced by expand_bottom_edge(), and readpng_cleanup().

◆ width

Definition at line 71 of file readpng.c.