]> git.saurik.com Git - apple/boot.git/blob - i386/util/bitmap.h
boot-80.1.tar.gz
[apple/boot.git] / i386 / util / bitmap.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.1 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License.
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24 /* compiled bitmaps */
25
26 typedef struct tiff {
27 char *tif_name; /* name of open file */
28 long tif_row; /* current scanline */
29 char *tif_rawdata; /* raw data buffer */
30 long tif_rawdatasize; /* # of bytes in raw data buffer */
31 char *tif_rawcp; /* current spot in raw buffer */
32 long tif_rawcc; /* bytes unread from raw buffer */
33 int tif_curstrip; /* current strip for read/write */
34 long tif_curoff; /* current offset for read/write */
35 } TIFF;
36
37
38
39 struct bitmap {
40 long packed;
41 long bytes_per_plane;
42 short bytes_per_row;
43 short bits_per_pixel;
44 short width, height;
45 long plane_len[2];
46 unsigned char *plane_data[2];
47 };
48
49