18 lines
483 B
C
Executable file
18 lines
483 B
C
Executable file
#include <stdio.h>
|
|
|
|
/*** T I F F ***/
|
|
|
|
typedef struct {
|
|
unsigned int width;
|
|
unsigned int height;
|
|
unsigned long rowsPerStrip;
|
|
unsigned long stripCount;
|
|
unsigned long stripOffsets;
|
|
} TifImageMeta_t;
|
|
|
|
#define MAX_WIDTH 328
|
|
|
|
TifImageMeta_t tifLoadMeta(FILE *f);
|
|
int tifLoadEGA(FILE *f, TifImageMeta_t meta, unsigned int vidOffset, int maxY, unsigned int w);
|
|
int tifLoad(FILE *f, TifImageMeta_t meta, unsigned int *planeBuf, int maxY, int yRepeat, int planes);
|