![]() |
Leptonica 1.68
C Image Processing Library
|
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) | |
This tests reading and writing gif for various image types.
Definition in file gifio_reg.c.
| #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().
| static void test_gif | ( | const char * | fname, |
| L_REGPARAMS * | rp | ||
| ) | [static] |
Definition at line 139 of file gifio_reg.c.
References buf, L_RegParams::display, FALSE, IFF_GIF, L_RegParams::index, pixDestroy(), pixDisplayWrite(), pixEqual(), pixGetDepth(), pixRead(), pixWrite(), REDUCTION, regTestWritePixAndCheck(), and L_RegParams::success.
Referenced by main().
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().
| main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 69 of file gifio_reg.c.
References L_RegParams::display, FALSE, FILE_16BPP, FILE_1BPP, FILE_2BPP, FILE_32BPP, FILE_4BPP, FILE_8BPP_1, FILE_8BPP_2, FILE_8BPP_3, NULL, pixDisplayMultiple(), pixDisplayWrite(), regTestCleanup(), regTestSetup(), L_RegParams::success, test_gif(), test_mem_gif(), and TRUE.