File: pbm.h

package info (click to toggle)
xli 1.17.0+20061110-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,540 kB
  • sloc: ansic: 25,840; makefile: 11
file content (14 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (9)
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)