Line | |
---|
1 | /* CCVT: ColourConVerT: simple library for converting colourspaces |
---|
2 | Copyright (C) 2002 Nemosoft Unv. |
---|
3 | Email:athomas@nemsoft.co.uk |
---|
4 | |
---|
5 | This program is free software; you can redistribute it and/or modify |
---|
6 | it under the terms of the GNU General Public License as published by |
---|
7 | the Free Software Foundation; either version 2 of the License, or |
---|
8 | (at your option) any later version. |
---|
9 | |
---|
10 | This program is distributed in the hope that it will be useful, |
---|
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | GNU General Public License for more details. |
---|
14 | |
---|
15 | You should have received a copy of the GNU General Public License |
---|
16 | along with this program; if not, write to the Free Software |
---|
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
---|
18 | |
---|
19 | For questions, remarks, patches, etc. for this program, the author can be |
---|
20 | reached at nemosoft@smcc.demon.nl. |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef CCVT_TYPES_H |
---|
24 | #define CCVT_TYPES_H |
---|
25 | |
---|
26 | typedef struct |
---|
27 | { |
---|
28 | unsigned char b; |
---|
29 | unsigned char g; |
---|
30 | unsigned char r; |
---|
31 | unsigned char z; |
---|
32 | } PIXTYPE_bgr32; |
---|
33 | |
---|
34 | typedef struct |
---|
35 | { |
---|
36 | unsigned char b; |
---|
37 | unsigned char g; |
---|
38 | unsigned char r; |
---|
39 | } PIXTYPE_bgr24; |
---|
40 | |
---|
41 | typedef struct |
---|
42 | { |
---|
43 | unsigned char r; |
---|
44 | unsigned char g; |
---|
45 | unsigned char b; |
---|
46 | unsigned char z; |
---|
47 | } PIXTYPE_rgb32; |
---|
48 | |
---|
49 | typedef struct |
---|
50 | { |
---|
51 | unsigned char r; |
---|
52 | unsigned char g; |
---|
53 | unsigned char b; |
---|
54 | } PIXTYPE_rgb24; |
---|
55 | |
---|
56 | #define SAT(c) \ |
---|
57 | if (c & (~255)) { if (c < 0) c = 0; else c = 255; } |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.