Leptonica 1.68
C Image Processing Library

gifio_reg.c File Reference

This tests reading and writing gif for various image types. More...

#include <math.h>
#include "allheaders.h"

Go to the source code of this file.

Defines

#define FILE_1BPP   "feyn.tif"
#define FILE_2BPP   "weasel2.4g.png"
#define FILE_4BPP   "weasel4.16c.png"
#define FILE_8BPP_1   "dreyfus8.png"
#define FILE_8BPP_2   "weasel8.240c.png"
#define FILE_8BPP_3   "test8.jpg"
#define FILE_16BPP   "test16.tif"
#define FILE_32BPP   "marge.jpg"
#define REDUCTION   1

Functions

static void test_gif (const char *fname, L_REGPARAMS *rp)
static l_int32 test_mem_gif (const char *fname, l_int32 index)
 main (int argc, char **argv)

Detailed Description

This tests reading and writing gif for various image types.

Definition in file gifio_reg.c.


Define Documentation

#define FILE_1BPP   "feyn.tif"

Definition at line 58 of file gifio_reg.c.

Referenced by main().

#define FILE_2BPP   "weasel2.4g.png"

Definition at line 59 of file gifio_reg.c.

Referenced by main().

#define FILE_4BPP   "weasel4.16c.png"

Definition at line 60 of file gifio_reg.c.

Referenced by main().

#define FILE_8BPP_1   "dreyfus8.png"

Definition at line 61 of file gifio_reg.c.

Referenced by main().

#define FILE_8BPP_2   "weasel8.240c.png"

Definition at line 62 of file gifio_reg.c.

Referenced by main().

#define FILE_8BPP_3   "test8.jpg"

Definition at line 63 of file gifio_reg.c.

Referenced by main().

#define FILE_16BPP   "test16.tif"

Definition at line 64 of file gifio_reg.c.

Referenced by main().

#define FILE_32BPP   "marge.jpg"

Definition at line 65 of file gifio_reg.c.

Referenced by main().

#define REDUCTION   1

Definition at line 67 of file gifio_reg.c.

Referenced by test_gif().


Function Documentation

static void test_gif ( const char *  fname,
L_REGPARAMS rp 
) [static]
static l_int32 test_mem_gif ( const char *  fname,
l_int32  index 
) [static]

Definition at line 174 of file gifio_reg.c.

References IFF_GIF, lept_free(), NULL, pixDestroy(), pixEqual(), pixRead(), pixReadMem(), pixWriteMem(), and size.

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines