File: readtga.h

package info (click to toggle)
zgv 3.0-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 680 kB
  • ctags: 616
  • sloc: ansic: 6,696; makefile: 109; sh: 23
file content (23 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Zgv v2.7 - GIF, JPEG and PBM/PGM/PPM viewer, for VGA PCs running Linux.
 * Copyright (C) 1993-1995 Russell Marks. See README for license details.
 *
 * readtga.h
 */

struct tgahed {
  unsigned char idfieldlen,hascmap,type;
  unsigned char cmapstart_lo,cmapstart_hi,cmaplen_lo,cmaplen_hi;
  unsigned char cmapdepth;
  unsigned char xorg_lo,xorg_hi,yorg_lo,yorg_hi;
  unsigned char width_lo,width_hi,height_lo,height_hi;
  unsigned char bpp,desc;
  };


extern int read_tga_file(char *filename,hffunc howfarfunc,
	unsigned char **bmap,unsigned char **pal,int *output_type,
	PICINFO *pp);

extern void aborted_file_tga_cleanup();

extern int tga_need_flip;