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

Go to the source code of this file.

Functions

void readpng_version_info ()
 
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

ulg width
 
ulg height
 
int bit_depth
 
int color_type
 
int channels
 
uchimage_data = NULL
 
FILE * saved_infile
 

Function Documentation

◆ readpng_cleanup()

void readpng_cleanup ( int  free_image_data)

Definition at line 173 of file readppm.c.

References free(), image_data, and NULL.

◆ readpng_get_bgcolor()

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

Definition at line 133 of file readppm.c.

References png_jmpbuf.

◆ readpng_get_image()

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

Definition at line 143 of file readppm.c.

◆ readpng_init()

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

Definition at line 81 of file readppm.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 73 of file readppm.c.

References png_libpng_ver, PNG_LIBPNG_VER_STRING, ZLIB_VERSION, and zlib_version.

Variable Documentation

◆ bit_depth

int bit_depth

Definition at line 68 of file readppm.c.

Referenced by readpng_init().

◆ channels

int channels

Definition at line 68 of file readppm.c.

Referenced by png_do_unshift(), and readpng_init().

◆ color_type

int color_type

Definition at line 68 of file readppm.c.

Referenced by readpng_init().

◆ height

Definition at line 67 of file readppm.c.

Referenced by readpng_init().

◆ image_data

uch* image_data = NULL

Definition at line 69 of file readppm.c.

Referenced by readpng_cleanup().

◆ saved_infile

FILE* saved_infile

Definition at line 70 of file readppm.c.

Referenced by readpng_init().

◆ width

Definition at line 67 of file readppm.c.

Referenced by readpng_init().