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

Go to the source code of this file.

Macros

#define BOOL   unsigned char
 
#define TRUE   (BOOL) 1
 
#define FALSE   (BOOL) 0
 
#define PNG_DEBUG   0
 
#define png_jmpbuf(png_ptr)   ((png_ptr)->jmpbuf)
 

Functions

int main (int argc, char *argv[])
 
void usage ()
 
BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw, BOOL alpha)
 

Macro Definition Documentation

◆ BOOL

#define BOOL   unsigned char

◆ FALSE

#define FALSE   (BOOL) 0

Definition at line 29 of file png2pnm.c.

Referenced by main().

◆ PNG_DEBUG

#define PNG_DEBUG   0

Definition at line 40 of file png2pnm.c.

◆ png_jmpbuf

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

Definition at line 47 of file png2pnm.c.

◆ TRUE

#define TRUE   (BOOL) 1

Definition at line 26 of file png2pnm.c.

Referenced by main().

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 60 of file png2pnm.c.

References BOOL, FALSE, NULL, png2pnm(), STDIN, STDOUT, TRUE, and usage().

◆ png2pnm()

BOOL png2pnm ( FILE *  png_file,
FILE *  pnm_file,
FILE *  alpha_file,
BOOL  raw,
BOOL  alpha 
)

Definition at line 188 of file png2pnm.c.

Referenced by main().

◆ usage()

void usage ( void  )

Definition at line 166 of file png2pnm.c.

Referenced by main().