#include <PalmOS.h>#include <Unix/sys_types.h>#include "stringil.h"#include "common.h"#include "pngdec.h"#include "SysZLib.h"#include "file_io.h"#include "Utils.h"#include "progressbar.h"Include dependency graph for pngdec.c:

Go to the source code of this file.
Defines | |
| #define | QUIET |
| #define | SH(p) ((ush)(uch)((p)[1]) | ((ush)(uch)((p)[0]) << 8)) |
| #define | LG(p) ((ulg)(SH((p)+2)) | ((ulg)(SH(p)) << 16)) |
| #define | BS 1440 |
| #define | OBS (3*BS) |
Typedefs | |
| typedef unsigned char | uch |
| typedef unsigned short | ush |
| typedef unsigned long | ulg |
Functions | |
| void | cleanPNG (void) |
| int | doPNG (FileDescrType fd) |
Variables | |
| PrefsType | gPrefs |
| Preferences data structure. | |
| unsigned char | buffer [BS] |
| Boolean | color |
| passed to PNG (maybe others) to generate greyscale or colors | |
| unsigned short int | w |
| unsigned short int | h |
| unsigned short int | bitdisp |
| unsigned short int | bdepth |
| unsigned short int | ityp |
| unsigned short int | lace |
| unsigned short int | nplte = 0 |
| unsigned short int | gskip |
| unsigned short int | bskip |
| unsigned short int | bandh |
| int | trspflg = 0 |
| LocalID | lid |
| DmOpenRef | scratch |
| char ** | lines |
| char * | lcur |
| char * | editln |
| unsigned char | cmap [256] |
| unsigned char | r [256] |
| unsigned char | g [256] |
| unsigned char | b [256] |
| unsigned char | a [256] |
| unsigned int | mapmax = 0 |
| RGBColorType | map [256] |
| char * | pngty [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 667 of file pngdec.c. References bandh, lines, and scratch. Referenced by doPNG(), and MapFormHandleEvent(). |
|
|
Definition at line 697 of file pngdec.c. References buffer, cleanPNG(), cmap, editln, fclose(), fread(), ityp, lines, memcmp(), scratch, strcmp(), ZLSetup, and ZLTeardown. Referenced by MapFormHandleEvent(). |
|
|
Definition at line 109 of file pngdec.c. Referenced by calcR(). |
|
|
Definition at line 109 of file pngdec.c. Referenced by BmpRsrcSetTransparentValue(), and dobitmap(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 80 of file pngdec.c. Referenced by doPNG(). |
|
|
|
|
|
passed to PNG (maybe others) to generate greyscale or colors
|
|
|
|
|
|
Definition at line 109 of file pngdec.c. Referenced by BmpRsrcSetTransparentValue(), and dobitmap(). |
|
|
Preferences data structure.
|
|
|
Initial value: 1 |
|
|
|
|
|
Definition at line 86 of file pngdec.c. Referenced by doPNG(). |
|
|
Definition at line 86 of file pngdec.c. Referenced by doGIF(). |
|
|
|
|
|
Definition at line 104 of file pngdec.c. Referenced by CreateDatabase(), doGIF(), and getdir(). |
|
|
Definition at line 107 of file pngdec.c. Referenced by cleanGIF(), cleanPNG(), dobitmap(), doGIF(), and doPNG(). |
|
|
|
|
|
|
|
|
|
|
|
Initial value:
{ "Gray", "Unk1", "RGB ", "CMAP", "GryA", "Unk5", "RGBA", "Unk7" }
|
|
|
Definition at line 109 of file pngdec.c. Referenced by BmpRsrcSetTransparentValue(), calcR(), dobitmap(), MapFormHandleEvent(), and noMap(). |
|
|
|
|
|
|
|
|
|