SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
slideio_enums.hpp
1// This file is part of slideio project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://slideio.com/license.html.
4#pragma once
5#include <string>
6#include "slideio/base/slideio_base_def.hpp"
7
8namespace slideio
9{
11 enum class Compression
12 {
14 Unknown,
18 Jpeg,
20 JpegXR,
22 Png,
26 LZW,
34 JpegOld,
36 Zlib,
37 JBIG85,
38 JBIG43,
40 NextRLE,
41 PackBits,
42 ThunderScanRLE,
43 RasterPadding,
44 RLE_LW,
45 RLE_HC,
46 RLE_BL,
47 PKZIP,
48 KodakDCS,
50 JBIG,
51 NikonNEF,
52 JBIG2,
54 GIF,
55 BIGGIF,
57 RLE,
58 BMP,
59 JpegLossless,
60 VP8,
61 };
62
63 enum class DataType
64 {
65 DT_Byte = 0,
66 DT_Int8 = 1,
67 DT_Int16 = 3,
68 DT_Float16 = 7,
69 DT_Int32 = 4,
70 DT_Float32 = 5,
71 DT_Float64 = 6,
72 DT_UInt16 = 2,
73 DT_UInt32 = 8,
74 DT_Int64 = 9,
75 DT_UInt64 = 10,
76 DT_LastValid = 10,
77 DT_Unknown = 1024,
78 DT_None = 2048
79 };
80
81 enum class MetadataFormat
82 {
83 None,
84 Unknown,
85 Text,
86 JSON,
87 XML
88 };
89
90 std::string SLIDEIO_BASE_EXPORTS compressionToString(Compression compression);
91 SLIDEIO_BASE_EXPORTS std::ostream& operator << (std::ostream& os, Compression compression);
92 SLIDEIO_BASE_EXPORTS std::ostream& operator << (std::ostream& os, const DataType& dt);
93 SLIDEIO_BASE_EXPORTS std::ostream& operator << (std::ostream& os, const MetadataFormat& mt);
94}
Definition: exceptions.hpp:15
Compression
raster data compression enum
Definition: slideio_enums.hpp:12
@ RLE
Run-length encoding.
@ HuffmanRL
RL-Huffman encoding.
@ JpegOld
Old JPEG compression algorithm.
@ Jpeg
JPEG compression.
@ Unknown
Unknown compression.
@ Jpeg2000
JPEG 2000 compression.
@ GIF
gif image compression
@ CCITT_T4
CCITT T.4 2-Dimensional compression.
@ Uncompressed
Uncompressed data.
@ CCITT_T6
CCITT T.6 2-Dimensional compression.
@ NextRLE
NeXT 2-bit RLE image compression scheme.
@ LZW
Lempel - Ziv - Welch universal lossless data compression algorithm.
@ Zlib
zlib looseless data compression
@ JBIG
JBIG early lossless image compression.
@ JpegXR
JPEG XR compression.
@ Png
PNG compression.