File: pbm.h

package info (click to toggle)
xli 1.17.0-22
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 900 kB
  • ctags: 1,377
  • sloc: ansic: 16,535; makefile: 45
file content (14 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* #ident	"@(#)x11:contrib/clients/xloadimage/pbm.h 6.7 93/07/23 Labtam" */
/* 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)