Pression  1.0.0
Compressor, decompressor, uploader and downloader plugins
 All Classes Files Functions Variables Macros Pages
compressorTypes.h
Go to the documentation of this file.
1 
2 /* Copyright (c) 2009-2010, Cedric Stalder <cedric.stalder@gmail.com>
3  * 2009-2010, Stefan Eilemann <eile@equalizergraphics.com>
4  * 2011, Daniel Nachbaur <danielnachbaur@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef EQ_PLUGINS_COMPRESSOR_TYPES
21 #define EQ_PLUGINS_COMPRESSOR_TYPES
22 
39 // Equalizer CPU compressors
41 #define EQ_COMPRESSOR_INVALID 0x0u
42 
43 #define EQ_COMPRESSOR_NONE 0x1u
44 
45 #define EQ_COMPRESSOR_RLE_UNSIGNED 0x2u
46 
47 #define EQ_COMPRESSOR_RLE_BYTE 0x3u
48 
49 #define EQ_COMPRESSOR_RLE_3_BYTE 0x4u
50 
51 #define EQ_COMPRESSOR_RLE_4_BYTE 0x5u
52 
53 #define EQ_COMPRESSOR_RLE_4_FLOAT 0x6u
54 
55 #define EQ_COMPRESSOR_RLE_4_HALF_FLOAT 0x7u
56 
57 #define EQ_COMPRESSOR_DIFF_RLE_3_BYTE 0x8u
58 
59 #define EQ_COMPRESSOR_DIFF_RLE_4_BYTE 0x9u
60 
61 #define EQ_COMPRESSOR_RLE_4_BYTE_UNSIGNED 0xau
62 
63 #define EQ_COMPRESSOR_RLE_DIFF_565 0xbu
64 
65 #define EQ_COMPRESSOR_RLE_DIFF_BGR10_A2 0xcu
66 
67 #define EQ_COMPRESSOR_RLE_DIFF_4_HALF_FLOAT 0xdu
68 
69 #define EQ_COMPRESSOR_RLE_DIFF_YUVA_50P 0xeu
70 
71 #define EQ_COMPRESSOR_RLE_YUVA_50P 0xfu
72 
74 #define EQ_COMPRESSOR_RLE_DIFF_RGBA 0x10u
75 
76 #define EQ_COMPRESSOR_RLE_DIFF_BGRA 0x11u
77 
78 #define EQ_COMPRESSOR_RLE_DIFF_RGBA_UINT_8_8_8_8_REV 0x12u
79 
80 #define EQ_COMPRESSOR_RLE_DIFF_BGRA_UINT_8_8_8_8_REV 0x13u
81 
82 #define EQ_COMPRESSOR_RLE_DIFF_DEPTH_UNSIGNED_INT 0x16u
83 
84 #define EQ_COMPRESSOR_RLE_RGBA16F 0x17u
85 
86 #define EQ_COMPRESSOR_RLE_BGRA16F 0x18u
87 
88 #define EQ_COMPRESSOR_RLE_DIFF_RGBA16F 0x19u
89 
90 #define EQ_COMPRESSOR_RLE_DIFF_BGRA16F 0x1au
91 
92 #define EQ_COMPRESSOR_RLE_DIFF_565_RGBA 0x1bu
93 
94 #define EQ_COMPRESSOR_RLE_DIFF_565_BGRA 0x1cu
95 
96 #define EQ_COMPRESSOR_RLE_DIFF_565_RGBA_UINT_8_8_8_8_REV 0x1du
97 
98 #define EQ_COMPRESSOR_RLE_DIFF_565_BGRA_UINT_8_8_8_8_REV 0x1eu
99 
100 #define EQ_COMPRESSOR_RLE_RGBA 0x21u
101 
102 #define EQ_COMPRESSOR_RLE_BGRA 0x22u
103 
104 #define EQ_COMPRESSOR_RLE_RGBA_UINT_8_8_8_8_REV 0x23u
105 
106 #define EQ_COMPRESSOR_RLE_BGRA_UINT_8_8_8_8_REV 0x24u
107 
108 #define EQ_COMPRESSOR_RLE_RGB10_A2 0x25u
109 
110 #define EQ_COMPRESSOR_RLE_BGR10_A2 0x26u
111 
112 #define EQ_COMPRESSOR_RLE_DEPTH_UNSIGNED_INT 0x27u
113 
114 #define EQ_COMPRESSOR_RLE_DIFF_UNSIGNED 0x28u
115 
117 #define EQ_COMPRESSOR_LZF_BYTE 0x30u
118 
119 #define EQ_COMPRESSOR_FASTLZ_BYTE 0x31u
120 
121 #define EQ_COMPRESSOR_SNAPPY_BYTE 0x32u
122 
123 // Equalizer GPU<->CPU transfer plugins
124 /* Transfer data from internal RGBA to external RGBA format with a data type
125  UNSIGNED_BYTE */
126 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_RGBA 0x100u
127 /* Transfer data from internal RGBA to external BGRA format with a data type
128  UNSIGNED_BYTE */
129 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_BGRA 0x101u
130 /* Transfer data from internal RGBA to external RGBA format with a data type
131  UNSIGNED_INT_8_8_8_8_REV */
132 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_RGBA_UINT_8_8_8_8_REV 0x102u
133 /* Transfer data from internal RGBA to external BGRA format with a data type
134  UNSIGNED_INT_8_8_8_8_REV */
135 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_BGRA_UINT_8_8_8_8_REV 0x103u
136 /* Transfer data from internal RGBA to external RGB format with a data type
137  UNSIGNED_BYTE */
138 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_RGB 0x104u
139 /* Transfer data from internal RGBA to external BGR format with a data type
140  UNSIGNED_BYTE */
141 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_BGR 0x105u
142 /* Transfer data from internal RGBA32F to external YUVA format */
143 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_YUVA_50P 0x106u
144 
145 /* Transfer data from internal RGB10_A2 to external BGR10_A2 format */
146 #define EQ_COMPRESSOR_TRANSFER_RGB10_A2_TO_BGR10_A2 0x200u
147 /* Transfer data from internal RGB10_A2 to external RGB10_A2 format */
148 #define EQ_COMPRESSOR_TRANSFER_RGB10_A2_TO_RGB10_A2 0x201u
149 
150 /* Transfer data from internal RGBA16F to external RGBA format with a data type
151  half float */
152 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGBA16F 0x300u
153 /* Transfer data from internal RGBA16F to external BGRA format with a data type
154  half float */
155 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGRA16F 0x301u
156 /* Transfer data from internal RGBA16F to external RGB format with a data type
157  half float */
158 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGB16F 0x302u
159 /* Transfer data from internal RGBA16F to external BGR format with a data type
160  half float */
161 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGR16F 0x303u
162 /* Transfer data from internal RGBA to external RGB format with a data type
163  UNSIGNED_BYTE */
164 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGB 0x304u
165 /* Transfer data from internal RGBA to external BGR format with a data type
166  UNSIGNED_BYTE */
167 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGR 0x305u
168 /* Transfer data from internal RGBA to external RGB format with a data type
169  UNSIGNED_BYTE */
170 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGBA 0x306u
171 /* Transfer data from internal RGBA to external BGR format with a data type
172  UNSIGNED_BYTE */
173 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGRA 0x307u
174 
175 /* Transfer data from internal RGBA32F to external RGBA format with a data type
176  float */
177 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGBA32F 0x400u
178 /* Transfer data from internal RGBA32F to external BGRA format with a data type
179  float */
180 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGRA32F 0x401u
181 /* Transfer data from internal RGBA32F to external BGRA format with a data type
182  UNSIGNED_BYTE */
183 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGRA 0x402u
184 /* Transfer data from internal RGBA32F to external RGBA format with a data type
185  UNSIGNED_BYTE */
186 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGBA 0x403u
187 /* Transfer data from internal RGBA32F to external BGRA format with a data type
188  half float */
189 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGRA16F 0x404u
190 /* Transfer data from internal RGBA32F to external RGBA format with a data type
191  half float */
192 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGBA16F 0x405u
193 /* Transfer data from internal RGBA32F to external RGB format with a data type
194  float */
195 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGB32F 0x406u
196 /* Transfer data from internal RGBA32F to external BGR format with a data type
197  float */
198 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGR32F 0x407u
199 /* Transfer data from internal RGBA32F to external RGB format with a data type
200  UNSIGNED_BYTE */
201 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGB 0x408u
202 /* Transfer data from internal RGBA32F to external BGR format with a data type
203  UNSIGNED_BYTE */
204 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGR 0x409u
205 /* Transfer data from internal RGBA32F to external BGR format with a data type
206  half float */
207 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGR16F 0x40au
208 /* Transfer data from internal RGBA32F to external RGB format with a data type
209  half float */
210 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGB16F 0x40bu
211 
212 /* Transfer data from internal DEPTH to external DEPTH_STENCIL */
213 #define EQ_COMPRESSOR_TRANSFER_DEPTH_TO_DEPTH_UNSIGNED_INT 0x501u
214 
216 #define EQ_COMPRESSOR_AUTO 0xFFFFFu
217 
218 // Third-party plugins
220 #define EQ_COMPRESSOR_AG_RTT_JPEG_HQ 0x100000u
221 
222 #define EQ_COMPRESSOR_AG_RTT_JPEG_MQ 0x100001u
223 
224 #define EQ_COMPRESSOR_AG_RTT_JPEG_LQ 0x100002u
225 
226 #define EQ_COMPRESSOR_AG_RTT_JPEG_HQ_A 0x100003u
227 
228 #define EQ_COMPRESSOR_AG_RTT_JPEG_MQ_A 0x100004u
229 
230 #define EQ_COMPRESSOR_AG_RTT_JPEG_LQ_A 0x100005u
231 
233 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGBA100 0x200000u
234 
235 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGBA90 0x200001u
236 
237 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGBA80 0x200002u
238 
239 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGRA100 0x200003u
240 
241 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGRA90 0x200004u
242 
243 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGRA80 0x200005u
244 
245 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGB100 0x200006u
246 
247 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGB90 0x200007u
248 
249 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGB80 0x200008u
250 
251 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGR100 0x200009u
252 
253 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGR90 0x20000au
254 
255 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGR80 0x20000bu
256 
264 #define EQ_COMPRESSOR_PRIVATE 0xefffffffu
265 
267 #endif // EQ_PLUGINS_COMPRESSOR_TYPES