Pression  1.2.0
Compressor, decompressor, uploader and downloader plugins
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 #define EQ_COMPRESSOR_ZSTD_BYTE 0x33u
124 
125 // Equalizer GPU<->CPU transfer plugins
126 /* Transfer data from internal RGBA to external RGBA format with a data type
127  UNSIGNED_BYTE */
128 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_RGBA 0x100u
129 /* Transfer data from internal RGBA to external BGRA format with a data type
130  UNSIGNED_BYTE */
131 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_BGRA 0x101u
132 /* Transfer data from internal RGBA to external RGBA format with a data type
133  UNSIGNED_INT_8_8_8_8_REV */
134 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_RGBA_UINT_8_8_8_8_REV 0x102u
135 /* Transfer data from internal RGBA to external BGRA format with a data type
136  UNSIGNED_INT_8_8_8_8_REV */
137 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_BGRA_UINT_8_8_8_8_REV 0x103u
138 /* Transfer data from internal RGBA to external RGB format with a data type
139  UNSIGNED_BYTE */
140 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_RGB 0x104u
141 /* Transfer data from internal RGBA to external BGR format with a data type
142  UNSIGNED_BYTE */
143 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_BGR 0x105u
144 /* Transfer data from internal RGBA32F to external YUVA format */
145 #define EQ_COMPRESSOR_TRANSFER_RGBA_TO_YUVA_50P 0x106u
146 
147 /* Transfer data from internal RGB10_A2 to external BGR10_A2 format */
148 #define EQ_COMPRESSOR_TRANSFER_RGB10_A2_TO_BGR10_A2 0x200u
149 /* Transfer data from internal RGB10_A2 to external RGB10_A2 format */
150 #define EQ_COMPRESSOR_TRANSFER_RGB10_A2_TO_RGB10_A2 0x201u
151 
152 /* Transfer data from internal RGBA16F to external RGBA format with a data type
153  half float */
154 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGBA16F 0x300u
155 /* Transfer data from internal RGBA16F to external BGRA format with a data type
156  half float */
157 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGRA16F 0x301u
158 /* Transfer data from internal RGBA16F to external RGB format with a data type
159  half float */
160 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGB16F 0x302u
161 /* Transfer data from internal RGBA16F to external BGR format with a data type
162  half float */
163 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGR16F 0x303u
164 /* Transfer data from internal RGBA to external RGB format with a data type
165  UNSIGNED_BYTE */
166 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGB 0x304u
167 /* Transfer data from internal RGBA to external BGR format with a data type
168  UNSIGNED_BYTE */
169 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGR 0x305u
170 /* Transfer data from internal RGBA to external RGB format with a data type
171  UNSIGNED_BYTE */
172 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_RGBA 0x306u
173 /* Transfer data from internal RGBA to external BGR format with a data type
174  UNSIGNED_BYTE */
175 #define EQ_COMPRESSOR_TRANSFER_RGBA16F_TO_BGRA 0x307u
176 
177 /* Transfer data from internal RGBA32F to external RGBA format with a data type
178  float */
179 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGBA32F 0x400u
180 /* Transfer data from internal RGBA32F to external BGRA format with a data type
181  float */
182 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGRA32F 0x401u
183 /* Transfer data from internal RGBA32F to external BGRA format with a data type
184  UNSIGNED_BYTE */
185 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGRA 0x402u
186 /* Transfer data from internal RGBA32F to external RGBA format with a data type
187  UNSIGNED_BYTE */
188 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGBA 0x403u
189 /* Transfer data from internal RGBA32F to external BGRA format with a data type
190  half float */
191 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGRA16F 0x404u
192 /* Transfer data from internal RGBA32F to external RGBA format with a data type
193  half float */
194 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGBA16F 0x405u
195 /* Transfer data from internal RGBA32F to external RGB format with a data type
196  float */
197 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGB32F 0x406u
198 /* Transfer data from internal RGBA32F to external BGR format with a data type
199  float */
200 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGR32F 0x407u
201 /* Transfer data from internal RGBA32F to external RGB format with a data type
202  UNSIGNED_BYTE */
203 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGB 0x408u
204 /* Transfer data from internal RGBA32F to external BGR format with a data type
205  UNSIGNED_BYTE */
206 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGR 0x409u
207 /* Transfer data from internal RGBA32F to external BGR format with a data type
208  half float */
209 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_BGR16F 0x40au
210 /* Transfer data from internal RGBA32F to external RGB format with a data type
211  half float */
212 #define EQ_COMPRESSOR_TRANSFER_RGBA32F_TO_RGB16F 0x40bu
213 
214 /* Transfer data from internal DEPTH to external DEPTH_STENCIL */
215 #define EQ_COMPRESSOR_TRANSFER_DEPTH_TO_DEPTH_UNSIGNED_INT 0x501u
216 
218 #define EQ_COMPRESSOR_AUTO 0xFFFFFu
219 
220 // Third-party plugins
222 #define EQ_COMPRESSOR_AG_RTT_JPEG_HQ 0x100000u
223 
224 #define EQ_COMPRESSOR_AG_RTT_JPEG_MQ 0x100001u
225 
226 #define EQ_COMPRESSOR_AG_RTT_JPEG_LQ 0x100002u
227 
228 #define EQ_COMPRESSOR_AG_RTT_JPEG_HQ_A 0x100003u
229 
230 #define EQ_COMPRESSOR_AG_RTT_JPEG_MQ_A 0x100004u
231 
232 #define EQ_COMPRESSOR_AG_RTT_JPEG_LQ_A 0x100005u
233 
235 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGBA100 0x200000u
236 
237 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGBA90 0x200001u
238 
239 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGBA80 0x200002u
240 
241 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGRA100 0x200003u
242 
243 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGRA90 0x200004u
244 
245 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGRA80 0x200005u
246 
247 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGB100 0x200006u
248 
249 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGB90 0x200007u
250 
251 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_RGB80 0x200008u
252 
253 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGR100 0x200009u
254 
255 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGR90 0x20000au
256 
257 #define EQ_COMPRESSOR_CH_EYESCALE_JPEG_BGR80 0x20000bu
258 
266 #define EQ_COMPRESSOR_PRIVATE 0xefffffffu
267 
269 #endif // EQ_PLUGINS_COMPRESSOR_TYPES