Leptonica 1.68
C Image Processing Library
|
Tests reading and writing of images in PNG format for various depths, with and without colormaps. More...
#include "allheaders.h"
Go to the source code of this file.
Defines | |
#define | FILE_1BPP "rabi.png" |
#define | FILE_2BPP "speckle2.png" |
#define | FILE_2BPP_C "weasel2.4g.png" |
#define | FILE_4BPP "speckle4.png" |
#define | FILE_4BPP_C "weasel4.16c.png" |
#define | FILE_8BPP "dreyfus8.png" |
#define | FILE_8BPP_C "weasel8.240c.png" |
#define | FILE_16BPP "test16.png" |
#define | FILE_32BPP "weasel32.png" |
Functions | |
static l_int32 | test_mem_png (const char *fname) |
static l_int32 | get_header_data (const char *filename) |
main (int argc, char **argv) | |
Variables | |
LEPT_DLL const char * | ImageFileFormatExtensions [] |
Tests reading and writing of images in PNG format for various depths, with and without colormaps.
Definition in file pngio_reg.c.
#define FILE_1BPP "rabi.png" |
Definition at line 38 of file pngio_reg.c.
Referenced by main().
#define FILE_2BPP "speckle2.png" |
Definition at line 39 of file pngio_reg.c.
Referenced by main().
#define FILE_2BPP_C "weasel2.4g.png" |
Definition at line 40 of file pngio_reg.c.
Referenced by main().
#define FILE_4BPP "speckle4.png" |
Definition at line 41 of file pngio_reg.c.
Referenced by main().
#define FILE_4BPP_C "weasel4.16c.png" |
Definition at line 42 of file pngio_reg.c.
Referenced by main().
#define FILE_8BPP "dreyfus8.png" |
Definition at line 43 of file pngio_reg.c.
Referenced by main().
#define FILE_8BPP_C "weasel8.240c.png" |
Definition at line 44 of file pngio_reg.c.
Referenced by main().
#define FILE_16BPP "test16.png" |
Definition at line 45 of file pngio_reg.c.
Referenced by main().
#define FILE_32BPP "weasel32.png" |
Definition at line 46 of file pngio_reg.c.
Referenced by main().
static l_int32 test_mem_png | ( | const char * | fname | ) | [static] |
Definition at line 161 of file pngio_reg.c.
References IFF_PNG, lept_free(), NULL, pixDestroy(), pixEqual(), pixRead(), pixReadMem(), pixWriteMem(), and size.
Referenced by main().
static l_int32 get_header_data | ( | const char * | filename | ) | [static] |
Definition at line 194 of file pngio_reg.c.
References IFF_PNG, ImageFileFormatExtensions, l_binaryRead(), lept_free(), nbytesInFile(), pixReadHeader(), and pixReadHeaderMem().
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 53 of file pngio_reg.c.
References FALSE, FILE_16BPP, FILE_1BPP, FILE_2BPP, FILE_2BPP_C, FILE_32BPP, FILE_4BPP, FILE_4BPP_C, FILE_8BPP, FILE_8BPP_C, get_header_data(), ioFormatTest(), NULL, pixDisplayWrite(), regTestCleanup(), regTestSetup(), L_RegParams::success, test_mem_png(), and TRUE.
LEPT_DLL const char* ImageFileFormatExtensions[] |
Definition at line 80 of file writefile.c.