|
|
1.1 ! root 1: /* ! 2: * $Source: /orpheus/u1/X11/NRFPT/puzzle/RCS/pmap.h,v $ ! 3: * $Header: pmap.h,v 1.1 87/09/08 17:28:34 swick Exp $ ! 4: */ ! 5: ! 6: /* ! 7: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ! 8: ; ! 9: ; File: pmap.h ! 10: ; SCCS: %A% %G% %U% ! 11: ; Description: Glamor Pixel Map (in C) include file ! 12: ; Author: Jack Palevich, VGD, ITL, DCC, HP Labs ! 13: ; Created: 29-Jan-86 ! 14: ; Modified: 15-Mar-86 14:19:55 (Jack Palevich) ! 15: ; Language: Text ! 16: ; Package: PSL ! 17: ; Status: Experimental (Do Not Distribute) ! 18: ; ! 19: ; (c) Copyright 1986, Hewlett-Packard Company, all rights reserved. ! 20: ; ! 21: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ! 22: */ ! 23: ! 24: #include <stdio.h> ! 25: typedef struct { ! 26: short unsigned int w; /* width */ ! 27: short unsigned int h; /* height */ ! 28: unsigned char bpp; /* bits per pixel 1..32 */ ! 29: short unsigned int type; /* type of pixel (0..7 */ ! 30: unsigned int stride; /* width of a line in bytes */ ! 31: char *pixels; /* pixel map */ ! 32: } pixel_map; ! 33: ! 34: typedef struct { ! 35: int left, top, right, bottom; ! 36: } rect; ! 37: ! 38: typedef struct { ! 39: int x, y; ! 40: } point; ! 41: ! 42: typedef enum { ! 43: a_over_b, store ! 44: } composite_op; ! 45: ! 46: extern unsigned char pixel_map_bpp[]; /* bits per pixel */ ! 47: extern FILE *pixel_map_open(); ! 48: extern int pixel_map_parse_header(); ! 49: extern int pixel_map_read(); ! 50: extern int pixel_map_write(); ! 51: extern int pixel_map_close(); ! 52: extern char *pixel_map_alloc(); ! 53: extern int pixel_map_free(); ! 54: extern pixel_map *new_pixel_map();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.