#include "png.h"
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Defines |
#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 |
Define Documentation
#define FCLOSE |
( |
|
file | ) |
fclose(file) |
Typedef Documentation
Function Documentation
Variable Documentation