Macros | Typedefs | Functions | Variables
pngtest.c File Reference
#include "png.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for pngtest.c:

Go to the source code of this file.

Macros

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

Typedefs

typedef version_1_2_32 your_png_h_is_not_version_1_2_32
 

Functions

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 main (int argc, char *argv[])
 
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)
 
static int read_user_chunk_callback (png_struct *png_ptr, png_unknown_chunkp chunk)
 
int test_one_file (PNG_CONST char *inname, PNG_CONST char *outname)
 
void write_row_callback (png_structp png_ptr, png_uint_32 row_number, int pass)
 

Variables

static png_uint_32 filters_used [256]
 
static PNG_CONST char * inname = "pngtest.png"
 
static PNG_CONST char * outname = "pngout.png"
 
static int status_dots = 1
 
static int status_dots_requested = 0
 
static int status_pass = 1
 
static int tIME_chunk_present = 0
 
static char tIME_string [PNG_tIME_STRING_LENGTH] = "tIME chunk is not present"
 
static png_uint_32 user_chunk_data [4]
 
static int verbose = 0
 
static int wrote_question = 0
 
static png_uint_32 zero_samples
 

Macro Definition Documentation

#define FCLOSE (   file)    fclose(file)

Definition at line 51 of file pngtest.c.

#define PNG_DEBUG   0

Definition at line 64 of file pngtest.c.

#define PNG_tIME_STRING_LENGTH   29

Definition at line 85 of file pngtest.c.

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

Definition at line 47 of file pngtest.c.

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

Definition at line 68 of file pngtest.c.

#define STDERR   stdout /* for DOS */

Definition at line 100 of file pngtest.c.

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

Definition at line 49 of file pngtest.c.

Typedef Documentation

Definition at line 1688 of file pngtest.c.

Function Documentation

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

Definition at line 174 of file pngtest.c.

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

Definition at line 196 of file pngtest.c.

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

Definition at line 1437 of file pngtest.c.

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 
)

Definition at line 126 of file pngtest.c.

static int read_user_chunk_callback ( png_struct png_ptr,
png_unknown_chunkp  chunk 
)
static

Definition at line 610 of file pngtest.c.

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

Definition at line 664 of file pngtest.c.

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

Definition at line 153 of file pngtest.c.

Variable Documentation

png_uint_32 filters_used[256]
static

Definition at line 164 of file pngtest.c.

PNG_CONST char* inname = "pngtest.png"
static

Definition at line 1432 of file pngtest.c.

PNG_CONST char* outname = "pngout.png"
static

Definition at line 1433 of file pngtest.c.

int status_dots = 1
static

Definition at line 115 of file pngtest.c.

int status_dots_requested = 0
static

Definition at line 114 of file pngtest.c.

int status_pass = 1
static

Definition at line 113 of file pngtest.c.

int tIME_chunk_present = 0
static

Definition at line 86 of file pngtest.c.

char tIME_string[PNG_tIME_STRING_LENGTH] = "tIME chunk is not present"
static

Definition at line 87 of file pngtest.c.

png_uint_32 user_chunk_data[4]
static

Definition at line 602 of file pngtest.c.

int verbose = 0
static

Definition at line 90 of file pngtest.c.

int wrote_question = 0
static

Definition at line 284 of file pngtest.c.

png_uint_32 zero_samples
static

Definition at line 185 of file pngtest.c.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:27