comparison Core/Enumerations.h @ 1511:7962563129c9

starting support of deflate/gzip content types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Aug 2015 14:18:24 +0200
parents fbe40117eb21
children d73a2178b319
comparison
equal deleted inserted replaced
1510:ffc9f36103b9 1511:7962563129c9
237 { 237 {
238 ImageFormat_Png = 1 238 ImageFormat_Png = 1
239 }; 239 };
240 240
241 241
242 // https://en.wikipedia.org/wiki/HTTP_compression
243 enum HttpCompression
244 {
245 HttpCompression_None,
246 HttpCompression_Deflate,
247 HttpCompression_Gzip
248 };
249
250
242 // http://www.dabsoft.ch/dicom/3/C.12.1.1.2/ 251 // http://www.dabsoft.ch/dicom/3/C.12.1.1.2/
243 enum Encoding 252 enum Encoding
244 { 253 {
245 Encoding_Ascii, 254 Encoding_Ascii,
246 Encoding_Utf8, 255 Encoding_Utf8,
298 * between versions of Orthanc! 307 * between versions of Orthanc!
299 **/ 308 **/
300 309
301 enum CompressionType 310 enum CompressionType
302 { 311 {
312 /**
313 * Buffer/file that is stored as-is, in a raw fashion, without
314 * compression.
315 **/
303 CompressionType_None = 1, 316 CompressionType_None = 1,
317
318 /**
319 * Buffer that is compressed using the "deflate" algorithm (RFC
320 * 1951), wrapped inside the zlib data format (RFC 1950), prefixed
321 * with a "uint64_t" (8 bytes) that encodes the size of the
322 * uncompressed buffer. If the compressed buffer is empty, its
323 * represents an empty uncompressed buffer. This format is
324 * internal to Orthanc. If the 8 first bytes are skipped AND the
325 * buffer is non-empty, the buffer is compatible with the
326 * "deflate" HTTP compression.
327 **/
304 CompressionType_Zlib = 2 328 CompressionType_Zlib = 2
305 }; 329 };
306 330
307 enum FileContentType 331 enum FileContentType
308 { 332 {