readpng.C File Reference

#include <stdio.h>
#include <stdlib.h>
#include "png.h"
#include "readpng.h"

Go to the source code of this file.

Defines

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

Functions

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

static png_structp png_ptr = NULL
static png_infop info_ptr = NULL
png_uint_32 width
png_uint_32 height
int bit_depth
int color_type
uchimage_data = NULL


Define Documentation

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

Definition at line 46 of file readpng.C.

Referenced by readpng_get_bgcolor(), readpng_get_image(), and readpng_init().


Function Documentation

void readpng_cleanup int  free_image_data  ) 
 

Definition at line 264 of file readpng.C.

References image_data, info_ptr, and png_ptr.

int readpng_get_bgcolor uch red,
uch green,
uch blue
 

Definition at line 126 of file readpng.C.

References bit_depth, color_type, info_ptr, png_jmpbuf, and png_ptr.

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

Definition at line 178 of file readpng.C.

References bit_depth, color_type, height, image_data, info_ptr, png_jmpbuf, png_ptr, and Trace.

Referenced by PNG_ImExportFile::import_data().

int readpng_init FILE *  infile,
ulg pWidth,
ulg pHeight
 

Definition at line 59 of file readpng.C.

References bit_depth, color_type, height, info_ptr, png_jmpbuf, png_ptr, and width.

Referenced by PNG_ImExportFile::import_data().


Variable Documentation

int bit_depth
 

Definition at line 54 of file readpng.C.

Referenced by readpng_get_bgcolor(), readpng_get_image(), and readpng_init().

int color_type
 

Definition at line 54 of file readpng.C.

Referenced by readpng_get_bgcolor(), readpng_get_image(), readpng_init(), and writepng_init().

png_uint_32 height
 

Definition at line 53 of file readpng.C.

Referenced by gtk_spin_button_sci_draw_arrow(), readpng_get_image(), and readpng_init().

uch* image_data = NULL
 

Definition at line 55 of file readpng.C.

Referenced by PNG_ImExportFile::import_data(), readpng_cleanup(), and readpng_get_image().

png_infop info_ptr = NULL [static]
 

Definition at line 51 of file readpng.C.

Referenced by readpng_cleanup(), readpng_get_bgcolor(), readpng_get_image(), readpng_init(), writepng_cleanup(), writepng_encode_finish(), writepng_encode_image(), writepng_encode_row(), and writepng_init().

png_structp png_ptr = NULL [static]
 

Definition at line 50 of file readpng.C.

Referenced by readpng_cleanup(), readpng_get_bgcolor(), readpng_get_image(), readpng_init(), writepng_cleanup(), writepng_encode_finish(), writepng_encode_image(), writepng_encode_row(), and writepng_init().

png_uint_32 width
 

Definition at line 53 of file readpng.C.

Referenced by gtk_spin_button_sci_draw_arrow(), gtk_spin_button_sci_size_request(), main(), MonitorControl::MonitorControl(), readpng_init(), RemoteControl::run(), and VacancyLineAnalysis_run().


Generated on Sat Apr 1 09:04:51 2006 for GXSM by  doxygen 1.4.6