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