|
|
1.1 ! root 1: /* Copyright (c) 1989, 1990 AT&T --- All Rights Reserved. */ ! 2: /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T. */ ! 3: /* The copyright notice does not imply actual or intended publication. */ ! 4: /* AUTHORS: */ ! 5: /* H. S. Baird - ATT-BL MH - first versions */ ! 6: /* ric.h - Ricoh IS-30 scanner constants, typedefs, function declarations ! 7: The scanner program `rscan' creates a file (typically >1Mbyte). ! 8: It has an ascii header, terminated by \n\n -- see RIC_hdr for its data fields. ! 9: The rest is binary scanner data. Each `RIC_hdr.bpl' bytes holds one scan-line's ! 10: pixels, 1 bit/pixel. A `1' bit means black. The order of the bytes in a line ! 11: is left-to-right across the page. The low-order bit in a byte is the left-most. ! 12: Conventionally, X-coordinates start at 0, at the left of the page, and ! 13: increase to the right. Y-coordinates start at 0 at the top of the page, ! 14: and increase down. ! 15: ! 16: REQUIRES: prior #include "Coord.h" ! 17: */ ! 18: ! 19: typedef struct { /* Scanner file header */ ! 20: short res_x,res_y; /* resolution in pixels/inch (x,y may differ) */ ! 21: short bpl; /* bytes per scan line */ ! 22: Bbx bx; /* bounding box (pixel indices 0,1,...) */ ! 23: } RIC_hdr; ! 24: ! 25: /* these routines are found in /usr/hsb/ricoh/riclib.c */ ! 26: int RIC_get_hdr(); /* args: fd, (RIC_hdr *); returns: 1==OK, 0==EOF, -1=ERR */ ! 27: int RIC_line(); /* arg: (char **); returns: 1==OK, 0==EOF, -1==ERR */ ! 28: RIC_skip(); /* arg: int no. lines to skip */ ! 29: char *S_hdr_toa(); /* RIC_hdr in printable-string form */ ! 30:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.