2
/* Routine to decode Targa 16 bit RGB file
5
/* 16 bit .tga files were generated for continuous potential "potfile"s
6
from version 9.? thru version 14. Replaced by double row gif type
7
file (.pot) in version 15. Delete this code after a few more revs.
11
/* see Fractint.c for a description of the "include" hierarchy */
16
static FILE *fptarga = NULL; /* FILE pointer */
18
/* Main entry decoder */
25
struct fractal_info info;
27
if((fptarga = t16_open(readname, (int *)&width, (int *)&height, &cs, (U8 *)&info))==NULL)
31
for (i=0; i<(int)height; ++i)
33
t16_getline(fptarga, width, (U16 *)boxx);
34
if ((*outln)((void *)boxx,width))
52
/* Outline function for 16 bit data with 8 bit fudge */
54
outlin16(BYTE *buffer,int linelen)
59
for(i=0;i<linelen;i++)
60
putcolor(i,rowcount,buf[i]>>8);