Mercurial > mplayer.hg
comparison libmpcodecs/img_format.h @ 34191:47e1375c4d79
Whitespace cosmetics: Align some IMGFMT-lists.
author | cehoyos |
---|---|
date | Sun, 30 Oct 2011 18:00:25 +0000 |
parents | 4b5f57ccfff1 |
children | 8a96cf601e57 |
comparison
equal
deleted
inserted
replaced
34190:e491bbbddf5d | 34191:47e1375c4d79 |
---|---|
37 #define IMGFMT_RGB48LE (IMGFMT_RGB|48) | 37 #define IMGFMT_RGB48LE (IMGFMT_RGB|48) |
38 #define IMGFMT_RGB48BE (IMGFMT_RGB|48|128) | 38 #define IMGFMT_RGB48BE (IMGFMT_RGB|48|128) |
39 | 39 |
40 #define IMGFMT_BGR_MASK 0xFFFFFF00 | 40 #define IMGFMT_BGR_MASK 0xFFFFFF00 |
41 #define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8)) | 41 #define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8)) |
42 #define IMGFMT_BGR1 (IMGFMT_BGR|1) | 42 #define IMGFMT_BGR1 (IMGFMT_BGR|1) |
43 #define IMGFMT_BGR4 (IMGFMT_BGR|4) | 43 #define IMGFMT_BGR4 (IMGFMT_BGR|4) |
44 #define IMGFMT_BGR4_CHAR (IMGFMT_BGR|4|128) // BGR4 with 1 pixel per byte | 44 #define IMGFMT_BGR4_CHAR (IMGFMT_BGR|4|128) // BGR4 with 1 pixel per byte |
45 #define IMGFMT_BGR8 (IMGFMT_BGR|8) | 45 #define IMGFMT_BGR8 (IMGFMT_BGR|8) |
46 #define IMGFMT_BGR12 (IMGFMT_BGR|12) | 46 #define IMGFMT_BGR12 (IMGFMT_BGR|12) |
47 #define IMGFMT_BGR15 (IMGFMT_BGR|15) | 47 #define IMGFMT_BGR15 (IMGFMT_BGR|15) |
48 #define IMGFMT_BGR16 (IMGFMT_BGR|16) | 48 #define IMGFMT_BGR16 (IMGFMT_BGR|16) |
49 #define IMGFMT_BGR24 (IMGFMT_BGR|24) | 49 #define IMGFMT_BGR24 (IMGFMT_BGR|24) |
50 #define IMGFMT_BGR32 (IMGFMT_BGR|32) | 50 #define IMGFMT_BGR32 (IMGFMT_BGR|32) |
51 | 51 |
52 #define IMGFMT_GBR24P (('G'<<24)|('B'<<16)|('R'<<8)|24) | 52 #define IMGFMT_GBR24P (('G'<<24)|('B'<<16)|('R'<<8)|24) |
53 | 53 |
54 #if HAVE_BIGENDIAN | 54 #if HAVE_BIGENDIAN |
55 #define IMGFMT_ABGR IMGFMT_RGB32 | 55 #define IMGFMT_ABGR IMGFMT_RGB32 |
56 #define IMGFMT_BGRA (IMGFMT_RGB32|64) | 56 #define IMGFMT_BGRA (IMGFMT_RGB32|64) |
57 #define IMGFMT_ARGB IMGFMT_BGR32 | 57 #define IMGFMT_ARGB IMGFMT_BGR32 |
58 #define IMGFMT_RGBA (IMGFMT_BGR32|64) | 58 #define IMGFMT_RGBA (IMGFMT_BGR32|64) |
59 #define IMGFMT_RGB48NE IMGFMT_RGB48BE | 59 #define IMGFMT_RGB48NE IMGFMT_RGB48BE |
60 #define IMGFMT_RGB12BE IMGFMT_RGB12 | 60 #define IMGFMT_RGB12BE IMGFMT_RGB12 |
61 #define IMGFMT_RGB12LE (IMGFMT_RGB12|64) | 61 #define IMGFMT_RGB12LE (IMGFMT_RGB12|64) |
62 #define IMGFMT_RGB15BE IMGFMT_RGB15 | 62 #define IMGFMT_RGB15BE IMGFMT_RGB15 |
63 #define IMGFMT_RGB15LE (IMGFMT_RGB15|64) | 63 #define IMGFMT_RGB15LE (IMGFMT_RGB15|64) |
125 | 125 |
126 #define IMGFMT_444P16_LE 0x51343434 | 126 #define IMGFMT_444P16_LE 0x51343434 |
127 #define IMGFMT_444P16_BE 0x34343451 | 127 #define IMGFMT_444P16_BE 0x34343451 |
128 #define IMGFMT_444P10_LE 0x52343434 | 128 #define IMGFMT_444P10_LE 0x52343434 |
129 #define IMGFMT_444P10_BE 0x34343452 | 129 #define IMGFMT_444P10_BE 0x34343452 |
130 #define IMGFMT_444P9_LE 0x53343434 | 130 #define IMGFMT_444P9_LE 0x53343434 |
131 #define IMGFMT_444P9_BE 0x34343453 | 131 #define IMGFMT_444P9_BE 0x34343453 |
132 #define IMGFMT_422P16_LE 0x51323234 | 132 #define IMGFMT_422P16_LE 0x51323234 |
133 #define IMGFMT_422P16_BE 0x34323251 | 133 #define IMGFMT_422P16_BE 0x34323251 |
134 #define IMGFMT_422P10_LE 0x52323234 | 134 #define IMGFMT_422P10_LE 0x52323234 |
135 #define IMGFMT_422P10_BE 0x34323252 | 135 #define IMGFMT_422P10_BE 0x34323252 |
136 #define IMGFMT_420P16_LE 0x51303234 | 136 #define IMGFMT_420P16_LE 0x51303234 |
137 #define IMGFMT_420P16_BE 0x34323051 | 137 #define IMGFMT_420P16_BE 0x34323051 |
138 #define IMGFMT_420P10_LE 0x52303234 | 138 #define IMGFMT_420P10_LE 0x52303234 |
139 #define IMGFMT_420P10_BE 0x34323052 | 139 #define IMGFMT_420P10_BE 0x34323052 |
140 #define IMGFMT_420P9_LE 0x53303234 | 140 #define IMGFMT_420P9_LE 0x53303234 |
141 #define IMGFMT_420P9_BE 0x34323053 | 141 #define IMGFMT_420P9_BE 0x34323053 |
142 #if HAVE_BIGENDIAN | 142 #if HAVE_BIGENDIAN |
143 #define IMGFMT_444P16 IMGFMT_444P16_BE | 143 #define IMGFMT_444P16 IMGFMT_444P16_BE |
144 #define IMGFMT_444P10 IMGFMT_444P10_BE | 144 #define IMGFMT_444P10 IMGFMT_444P10_BE |
145 #define IMGFMT_444P9 IMGFMT_444P9_BE | 145 #define IMGFMT_444P9 IMGFMT_444P9_BE |
146 #define IMGFMT_422P16 IMGFMT_422P16_BE | 146 #define IMGFMT_422P16 IMGFMT_422P16_BE |
147 #define IMGFMT_422P10 IMGFMT_422P10_BE | 147 #define IMGFMT_422P10 IMGFMT_422P10_BE |
148 #define IMGFMT_420P16 IMGFMT_420P16_BE | 148 #define IMGFMT_420P16 IMGFMT_420P16_BE |
149 #define IMGFMT_420P10 IMGFMT_420P10_BE | 149 #define IMGFMT_420P10 IMGFMT_420P10_BE |
150 #define IMGFMT_420P9 IMGFMT_420P9_BE | 150 #define IMGFMT_420P9 IMGFMT_420P9_BE |
151 #define IMGFMT_IS_YUVP16_NE(fmt) IMGFMT_IS_YUVP16_BE(fmt) | 151 #define IMGFMT_IS_YUVP16_NE(fmt) IMGFMT_IS_YUVP16_BE(fmt) |
152 #else | 152 #else |
153 #define IMGFMT_444P16 IMGFMT_444P16_LE | 153 #define IMGFMT_444P16 IMGFMT_444P16_LE |
154 #define IMGFMT_444P10 IMGFMT_444P10_LE | 154 #define IMGFMT_444P10 IMGFMT_444P10_LE |
155 #define IMGFMT_444P9 IMGFMT_444P9_LE | 155 #define IMGFMT_444P9 IMGFMT_444P9_LE |
156 #define IMGFMT_422P16 IMGFMT_422P16_LE | 156 #define IMGFMT_422P16 IMGFMT_422P16_LE |
157 #define IMGFMT_422P10 IMGFMT_422P10_LE | 157 #define IMGFMT_422P10 IMGFMT_422P10_LE |
158 #define IMGFMT_420P16 IMGFMT_420P16_LE | 158 #define IMGFMT_420P16 IMGFMT_420P16_LE |
159 #define IMGFMT_420P10 IMGFMT_420P10_LE | 159 #define IMGFMT_420P10 IMGFMT_420P10_LE |
160 #define IMGFMT_420P9 IMGFMT_420P9_LE | 160 #define IMGFMT_420P9 IMGFMT_420P9_LE |
161 #define IMGFMT_IS_YUVP16_NE(fmt) IMGFMT_IS_YUVP16_LE(fmt) | 161 #define IMGFMT_IS_YUVP16_NE(fmt) IMGFMT_IS_YUVP16_LE(fmt) |
162 #endif | 162 #endif |
163 | 163 |
164 #define IMGFMT_IS_YUVP16_LE(fmt) (((fmt - 0x51000034) & 0xfc0000ff) == 0) | 164 #define IMGFMT_IS_YUVP16_LE(fmt) (((fmt - 0x51000034) & 0xfc0000ff) == 0) |
165 #define IMGFMT_IS_YUVP16_BE(fmt) (((fmt - 0x34000051) & 0xff0000fc) == 0) | 165 #define IMGFMT_IS_YUVP16_BE(fmt) (((fmt - 0x34000051) & 0xff0000fc) == 0) |