2019-01-25 02:36:42 +00:00
|
|
|
#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;
|
|
|
|
|
2019-02-17 00:21:02 +00:00
|
|
|
#define MAX_WIDTH 328
|
2019-01-25 02:36:42 +00:00
|
|
|
|
|
|
|
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);
|