File: pbm.h

package info (click to toggle)
mgp 1.11b-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,900 kB
  • ctags: 2,753
  • sloc: ansic: 31,196; sh: 4,305; lisp: 1,405; yacc: 926; lex: 253; makefile: 118; perl: 117; awk: 9
file content (13 lines) | stat: -rw-r--r-- 195 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* pbm.h:
 *
 * PBM header file
 *
 * jim frost 10.15.89
 */

typedef struct {
  unsigned char width[2];
  unsigned char height[2];
} PBMCompact;

#define PM_SCALE(a, b, c) (long)((a) * (c))/(b)