1
/*********************************************************
2
* Copyright (C) 2003 VMware, Inc. All rights reserved.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation version 2.1 and no later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
11
* License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
*********************************************************/
24
#ifndef _IMAGEUTIL_TYPES_H_
25
#define _IMAGEUTIL_TYPES_H_
33
IMAGE_FLAG_TOP_DOWN = 0, /* Top-down scanlines are the default */
34
IMAGE_FLAG_BOTTOM_UP = (1 << 0), /* Bottom-up storage (BMP or OpenGL style) */
41
unsigned char reserved;
49
* 'depth' is the color depth (in bits per pixel) used for the image. 'bpp'
50
* is the number of bits actually consumed per pixel in memory. (For
51
* example, an image that uses 5 bits for each of R, G, B has depth=15 and
52
* bpp=16. If an image has an alpha channel, the alpha bits are counted in
53
* 'bpp' but not in 'depth'.) It's always true that depth <= bpp.
55
* Also see the comment to Raster_ConvertPixels.
59
unsigned int bytesPerLine;
63
unsigned int numColors;
64
ImageColor palette[256];
68
unsigned int blueMask;
69
unsigned int greenMask;
76
int zlibCompressLevel; // Set to -1 for the default compression level.
77
Bool stripAlphaChannel;
78
} ImagePngWriteOptions;
81
IMAGE_PNG_READ_KEEP_ALPHA = (1 << 0),
84
#endif // _IMAGEUTIL_TYPES_H_