/* Routine to decode Targa 16 bit RGB file */ /* 16 bit .tga files were generated for continuous potential "potfile"s from version 9.? thru version 14. Replaced by double row gif type file (.pot) in version 15. Delete this code after a few more revs. */ #include #include "fractint.h" #include "targa_lc.h" #include "prototyp.h" extern char readname[]; /* file name */ extern unsigned int boxx[]; /* write-line routines use this */ extern int colors; extern int rowcount; static FILE *fptarga = NULL; /* FILE pointer */ extern unsigned int height; /* image height */ extern int (*outln)(); /* Main entry decoder */ tgaview() { int i; int cs; unsigned int width; struct fractal_info info; FILE *t16_open(); if((fptarga = t16_open(readname, (int *)&width, (int *)&height, &cs, (U8 *)&info))==NULL) return(-1); rowcount = 0; for (i=0; i>8); rowcount++; return(0); }