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

Go to the source code of this file.

Macros

#define PNG_PEDANTIC_WARNINGS
 
#define READFILE(file, data, length, check)   check=(png_size_t)fread(data, (png_size_t)1, length, file)
 
#define WRITEFILE(file, data, length, check)   check=(png_size_t)fwrite(data, (png_size_t)1, length, file)
 
#define FCLOSE(file)   fclose(file)
 
#define PNG_DEBUG   0
 
#define SINGLE_ROWBUF_ALLOC   /* Makes buffer overruns easier to nail */
 
#define PNG_tIME_STRING_LENGTH   29
 
#define STDERR   stdout /* For DOS */
 

Typedefs

typedef version_1_2_56 your_png_h_is_not_version_1_2_56
 

Functions

int test_one_file PNGARG ((PNG_CONST char *inname, PNG_CONST char *outname))
 
void read_row_callback (png_structp png_ptr, png_uint_32 row_number, int pass)
 
void write_row_callback (png_structp png_ptr, png_uint_32 row_number, int pass)
 
void count_filters (png_structp png_ptr, png_row_infop row_info, png_bytep data)
 
void count_zero_samples (png_structp png_ptr, png_row_infop row_info, png_bytep data)
 
int test_one_file (PNG_CONST char *inname, PNG_CONST char *outname)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ FCLOSE

#define FCLOSE (   file)    fclose(file)

Definition at line 55 of file pngtest.c.

◆ PNG_DEBUG

#define PNG_DEBUG   0

Definition at line 68 of file pngtest.c.

◆ PNG_PEDANTIC_WARNINGS

#define PNG_PEDANTIC_WARNINGS

Definition at line 34 of file pngtest.c.

◆ PNG_tIME_STRING_LENGTH

#define PNG_tIME_STRING_LENGTH   29

Definition at line 89 of file pngtest.c.

◆ READFILE

#define READFILE (   file,
  data,
  length,
  check 
)    check=(png_size_t)fread(data, (png_size_t)1, length, file)

Definition at line 51 of file pngtest.c.

◆ SINGLE_ROWBUF_ALLOC

#define SINGLE_ROWBUF_ALLOC   /* Makes buffer overruns easier to nail */

Definition at line 72 of file pngtest.c.

◆ STDERR

#define STDERR   stdout /* For DOS */

Definition at line 104 of file pngtest.c.

Referenced by main().

◆ WRITEFILE

#define WRITEFILE (   file,
  data,
  length,
  check 
)    check=(png_size_t)fwrite(data, (png_size_t)1, length, file)

Definition at line 53 of file pngtest.c.

Typedef Documentation

◆ your_png_h_is_not_version_1_2_56

Definition at line 1734 of file pngtest.c.

Function Documentation

◆ count_filters()

void count_filters ( png_structp  png_ptr,
png_row_infop  row_info,
png_bytep  data 
)

Definition at line 181 of file pngtest.c.

References NULL.

◆ count_zero_samples()

void count_zero_samples ( png_structp  png_ptr,
png_row_infop  row_info,
png_bytep  data 
)

Definition at line 204 of file pngtest.c.

References NULL.

◆ main()

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

◆ PNGARG()

int test_one_file PNGARG ( (PNG_CONST char *inname, PNG_CONST char *outname)  )

◆ read_row_callback()

void read_row_callback ( png_structp  png_ptr,
png_uint_32  row_number,
int  pass 
)

Definition at line 130 of file pngtest.c.

◆ test_one_file()

int test_one_file ( PNG_CONST char *  inname,
PNG_CONST char *  outname 
)

Definition at line 688 of file pngtest.c.

◆ write_row_callback()

void write_row_callback ( png_structp  png_ptr,
png_uint_32  row_number,
int  pass 
)

Definition at line 158 of file pngtest.c.

References NULL, and PNG_UINT_31_MAX.