Leptonica 1.68
C Image Processing Library

pngio_reg.c File Reference

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 []

Detailed Description

Tests reading and writing of images in PNG format for various depths, with and without colormaps.

Definition in file pngio_reg.c.


Define Documentation

#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().


Function Documentation

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]

Variable Documentation

LEPT_DLL const char* ImageFileFormatExtensions[]

Definition at line 80 of file writefile.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines