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

◆ FCLOSE

#define FCLOSE (   file)    fclose(file)

Definition at line 51 of file pngtest.c.

◆ PNG_DEBUG

#define PNG_DEBUG   0

Definition at line 64 of file pngtest.c.

◆ PNG_tIME_STRING_LENGTH

#define PNG_tIME_STRING_LENGTH   29

Definition at line 85 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 47 of file pngtest.c.

◆ SINGLE_ROWBUF_ALLOC

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

Definition at line 68 of file pngtest.c.

◆ STDERR

#define STDERR   stdout /* for DOS */

Definition at line 100 of file pngtest.c.

◆ WRITEFILE

#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

◆ your_png_h_is_not_version_1_2_32

Definition at line 1688 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 174 of file pngtest.c.

◆ count_zero_samples()

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

Definition at line 196 of file pngtest.c.

◆ main()

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

Definition at line 1437 of file pngtest.c.

◆ 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 126 of file pngtest.c.

◆ read_user_chunk_callback()

static int read_user_chunk_callback ( png_struct png_ptr,
png_unknown_chunkp  chunk 
)
static

Definition at line 610 of file pngtest.c.

◆ test_one_file()

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

Definition at line 664 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 153 of file pngtest.c.

Variable Documentation

◆ filters_used

png_uint_32 filters_used[256]
static

Definition at line 164 of file pngtest.c.

◆ inname

PNG_CONST char* inname = "pngtest.png"
static

Definition at line 1432 of file pngtest.c.

◆ outname

PNG_CONST char* outname = "pngout.png"
static

Definition at line 1433 of file pngtest.c.

◆ status_dots

int status_dots = 1
static

Definition at line 115 of file pngtest.c.

◆ status_dots_requested

int status_dots_requested = 0
static

Definition at line 114 of file pngtest.c.

◆ status_pass

int status_pass = 1
static

Definition at line 113 of file pngtest.c.

◆ tIME_chunk_present

int tIME_chunk_present = 0
static

Definition at line 86 of file pngtest.c.

◆ tIME_string

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

Definition at line 87 of file pngtest.c.

◆ user_chunk_data

png_uint_32 user_chunk_data[4]
static

Definition at line 602 of file pngtest.c.

◆ verbose

int verbose = 0
static

Definition at line 90 of file pngtest.c.

◆ wrote_question

int wrote_question = 0
static

Definition at line 284 of file pngtest.c.

◆ zero_samples

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 Thu Sep 8 2022 02:24:06