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]
Classes | Macros | Typedefs | Functions
writepng.h File Reference

Go to the source code of this file.

Classes

struct  _mainprog_info
 

Macros

#define FALSE   0
 
#define MAX(a, b)   ((a) > (b)? (a) : (b))
 
#define MIN(a, b)   ((a) < (b)? (a) : (b))
 
#define Trace(x)   ;
 
#define TEXT_TITLE   0x01
 
#define TEXT_AUTHOR   0x02
 
#define TEXT_DESC   0x04
 
#define TEXT_COPY   0x08
 
#define TEXT_EMAIL   0x10
 
#define TEXT_URL   0x20
 
#define TEXT_TITLE_OFFSET   0
 
#define TEXT_AUTHOR_OFFSET   72
 
#define TEXT_COPY_OFFSET   (2*72)
 
#define TEXT_EMAIL_OFFSET   (3*72)
 
#define TEXT_URL_OFFSET   (4*72)
 
#define TEXT_DESC_OFFSET   (5*72)
 

Typedefs

typedef unsigned char uch
 
typedef unsigned short ush
 
typedef unsigned long ulg
 
typedef struct _mainprog_info mainprog_info
 

Functions

void writepng_version_info (void)
 
int writepng_init (mainprog_info *mainprog_ptr)
 
int writepng_encode_image (mainprog_info *mainprog_ptr)
 
int writepng_encode_row (mainprog_info *mainprog_ptr)
 
int writepng_encode_finish (mainprog_info *mainprog_ptr)
 
void writepng_cleanup (mainprog_info *mainprog_ptr)
 

Macro Definition Documentation

◆ FALSE

#define FALSE   0

Definition at line 58 of file writepng.h.

◆ MAX

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

Definition at line 62 of file writepng.h.

◆ MIN

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

Definition at line 63 of file writepng.h.

◆ TEXT_AUTHOR

#define TEXT_AUTHOR   0x02

Definition at line 73 of file writepng.h.

◆ TEXT_AUTHOR_OFFSET

#define TEXT_AUTHOR_OFFSET   72

Definition at line 80 of file writepng.h.

◆ TEXT_COPY

#define TEXT_COPY   0x08

Definition at line 75 of file writepng.h.

◆ TEXT_COPY_OFFSET

#define TEXT_COPY_OFFSET   (2*72)

Definition at line 81 of file writepng.h.

◆ TEXT_DESC

#define TEXT_DESC   0x04

Definition at line 74 of file writepng.h.

◆ TEXT_DESC_OFFSET

#define TEXT_DESC_OFFSET   (5*72)

Definition at line 84 of file writepng.h.

◆ TEXT_EMAIL

#define TEXT_EMAIL   0x10

Definition at line 76 of file writepng.h.

◆ TEXT_EMAIL_OFFSET

#define TEXT_EMAIL_OFFSET   (3*72)

Definition at line 82 of file writepng.h.

◆ TEXT_TITLE

#define TEXT_TITLE   0x01

Definition at line 72 of file writepng.h.

◆ TEXT_TITLE_OFFSET

#define TEXT_TITLE_OFFSET   0

Definition at line 79 of file writepng.h.

◆ TEXT_URL

#define TEXT_URL   0x20

Definition at line 77 of file writepng.h.

◆ TEXT_URL_OFFSET

#define TEXT_URL_OFFSET   (4*72)

Definition at line 83 of file writepng.h.

◆ Trace

#define Trace (   x)    ;

Definition at line 69 of file writepng.h.

Typedef Documentation

◆ mainprog_info

typedef struct _mainprog_info mainprog_info

◆ uch

typedef unsigned char uch

Definition at line 86 of file writepng.h.

◆ ulg

typedef unsigned long ulg

Definition at line 88 of file writepng.h.

◆ ush

typedef unsigned short ush

Definition at line 87 of file writepng.h.

Function Documentation

◆ writepng_cleanup()

void writepng_cleanup ( mainprog_info mainprog_ptr)

Definition at line 354 of file writepng.c.

◆ writepng_encode_finish()

int writepng_encode_finish ( mainprog_info mainprog_ptr)

Definition at line 325 of file writepng.c.

◆ writepng_encode_image()

int writepng_encode_image ( mainprog_info mainprog_ptr)

Definition at line 257 of file writepng.c.

◆ writepng_encode_row()

int writepng_encode_row ( mainprog_info mainprog_ptr)

Definition at line 295 of file writepng.c.

◆ writepng_init()

int writepng_init ( mainprog_info mainprog_ptr)

Definition at line 83 of file writepng.c.

◆ writepng_version_info()

void writepng_version_info ( void  )

Definition at line 69 of file writepng.c.

References png_libpng_ver, PNG_LIBPNG_VER_STRING, ZLIB_VERSION, and zlib_version.