GPS4Palm

Source Code Documentation


gifread.c File Reference

#include <PalmOS.h>
#include <PalmCompatibility.h>
#include "stringil.h"
#include "gifread.h"
#include "file_io.h"
#include "common.h"
#include "Utils.h"
#include "progressbar.h"

Include dependency graph for gifread.c:

Go to the source code of this file.

Defines

#define malloc   MemPtrNew
#define free   MemPtrFree
#define readLWZ(fd)   (lwzsp ? lwzstack[--lwzsp] : nextLWZ(fd))
#define USAT(a, b)   (((b)<<8)|(a))

Functions

int nextLWZ (FileDescrType fd)
void initLWZ (short int input_code_size)
int doGIF (FileDescrType fd)
void cleanGIF ()

Variables

PrefsType gPrefs
 Preferences data structure.
Boolean color
unsigned short w
unsigned short h
unsigned short bandh
unsigned int mapmax
RGBColorType map [256]
unsigned char tcmap [256]
DmOpenRef scratch
char ** lines
char * lcur
char * editln
short int * lwzstack
short int lwzsp
short int * table
int ycnt


Define Documentation

#define free   MemPtrFree
 

Definition at line 94 of file gifread.c.

#define malloc   MemPtrNew
 

Definition at line 93 of file gifread.c.

#define readLWZ fd   )     (lwzsp ? lwzstack[--lwzsp] : nextLWZ(fd))
 

Definition at line 114 of file gifread.c.

#define USAT a,
b   )     (((b)<<8)|(a))
 

Definition at line 116 of file gifread.c.

Referenced by imginfo().


Function Documentation

void cleanGIF void   ) 
 

Definition at line 344 of file gifread.c.

References bandh, lines, and scratch.

Referenced by MapFormHandleEvent().

int doGIF FileDescrType  fd  ) 
 

Definition at line 169 of file gifread.c.

References cmap, editln, fread(), gPrefs, PrefsType::imgtype, lace, lid, lines, mapmax, scratch, strcpy(), and strncmp().

Referenced by MapFormHandleEvent().

void initLWZ short int  input_code_size  ) 
 

Definition at line 65 of file giflzw.c.

int nextLWZ FileDescrType  fd  ) 
 

Definition at line 136 of file giflzw.c.

References memset().


Variable Documentation

unsigned short bandh
 

Definition at line 99 of file gifread.c.

Boolean color
 

Definition at line 98 of file gifread.c.

Referenced by MapFormHandleEvent().

char * editln
 

Definition at line 106 of file gifread.c.

Referenced by doGIF(), and doPNG().

PrefsType gPrefs
 

Preferences data structure.

Definition at line 279 of file GPS.c.

unsigned short h
 

Definition at line 99 of file gifread.c.

char * lcur
 

Definition at line 106 of file gifread.c.

char** lines
 

Definition at line 106 of file gifread.c.

short int lwzsp
 

Definition at line 57 of file giflzw.c.

short int* lwzstack
 

Definition at line 57 of file giflzw.c.

RGBColorType map[256]
 

Definition at line 101 of file gifread.c.

unsigned int mapmax
 

Definition at line 100 of file gifread.c.

Referenced by doGIF(), imginfo(), and MapFormHandleEvent().

DmOpenRef scratch
 

Definition at line 105 of file gifread.c.

Referenced by cleanGIF(), cleanPNG(), CreateDatabase(), doGIF(), doPNG(), FileSelFormHandleEvent(), and search_map().

short int * table
 

Definition at line 57 of file giflzw.c.

unsigned char tcmap[256]
 

Definition at line 103 of file gifread.c.

unsigned short w
 

Definition at line 99 of file gifread.c.

int ycnt
 

Definition at line 118 of file gifread.c.


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke