Mercurial > hg > orthanc
comparison Core/Enumerations.h @ 945:427a1f996b7b templating
integration mainline -> templating
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Jun 2014 11:56:48 +0200 |
parents | 3c0d0836f704 |
children | 0570a8c859cb 766a57997121 |
comparison
equal
deleted
inserted
replaced
838:aabc3b430890 | 945:427a1f996b7b |
---|---|
67 ErrorCode_UnknownResource, | 67 ErrorCode_UnknownResource, |
68 ErrorCode_IncompatibleDatabaseVersion, | 68 ErrorCode_IncompatibleDatabaseVersion, |
69 ErrorCode_FullStorage, | 69 ErrorCode_FullStorage, |
70 ErrorCode_CorruptedFile, | 70 ErrorCode_CorruptedFile, |
71 ErrorCode_InexistentTag, | 71 ErrorCode_InexistentTag, |
72 ErrorCode_ReadOnly | 72 ErrorCode_ReadOnly, |
73 ErrorCode_IncompatibleImageFormat, | |
74 ErrorCode_IncompatibleImageSize | |
73 }; | 75 }; |
74 | 76 |
75 /** | 77 /** |
76 * {summary}{The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.} | 78 * {summary}{The memory layout of the pixels (resp. voxels) of a 2D (resp. 3D) image.} |
77 **/ | 79 **/ |
78 enum LAAW_API PixelFormat | 80 enum LAAW_API PixelFormat |
79 { | 81 { |
80 /** | 82 /** |
81 * {summary}{Color image in RGB24 format.} | 83 * {summary}{Color image in RGB24 format.} |
82 * {description}{This format describes a color image. The pixels are stored in 3 | 84 * {description}{This format describes a color image. The pixels are stored in 3 |
83 * consecutive bytes. The memory layout is RGB. | 85 * consecutive bytes. The memory layout is RGB.} |
84 **/ | 86 **/ |
85 PixelFormat_RGB24, | 87 PixelFormat_RGB24 = 1, |
86 | 88 |
87 /** | 89 /** |
88 * {summary}{Color image in RGBA32 format.} | 90 * {summary}{Color image in RGBA32 format.} |
89 * {description}{This format describes a color image. The pixels are stored in 4 | 91 * {description}{This format describes a color image. The pixels are stored in 4 |
90 * consecutive bytes. The memory layout is RGBA. | 92 * consecutive bytes. The memory layout is RGBA.} |
91 **/ | 93 **/ |
92 PixelFormat_RGBA32, | 94 PixelFormat_RGBA32 = 2, |
93 | 95 |
94 /** | 96 /** |
95 * {summary}{Graylevel 8bpp image.} | 97 * {summary}{Graylevel 8bpp image.} |
96 * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.} | 98 * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.} |
97 **/ | 99 **/ |
98 PixelFormat_Grayscale8, | 100 PixelFormat_Grayscale8 = 3, |
99 | 101 |
100 /** | 102 /** |
101 * {summary}{Graylevel, unsigned 16bpp image.} | 103 * {summary}{Graylevel, unsigned 16bpp image.} |
102 * {description}{The image is graylevel. Each pixel is unsigned and stored in two bytes.} | 104 * {description}{The image is graylevel. Each pixel is unsigned and stored in two bytes.} |
103 **/ | 105 **/ |
104 PixelFormat_Grayscale16, | 106 PixelFormat_Grayscale16 = 4, |
105 | 107 |
106 /** | 108 /** |
107 * {summary}{Graylevel, signed 16bpp image.} | 109 * {summary}{Graylevel, signed 16bpp image.} |
108 * {description}{The image is graylevel. Each pixel is signed and stored in two bytes.} | 110 * {description}{The image is graylevel. Each pixel is signed and stored in two bytes.} |
109 **/ | 111 **/ |
110 PixelFormat_SignedGrayscale16 | 112 PixelFormat_SignedGrayscale16 = 5 |
111 }; | 113 }; |
112 | 114 |
113 | 115 |
114 /** | 116 /** |
115 * {summary}{The extraction mode specifies the way the values of the pixels are scaled when downloading a 2D image.} | 117 * {summary}{The extraction mode specifies the way the values of the pixels are scaled when downloading a 2D image.} |
118 { | 120 { |
119 /** | 121 /** |
120 * {summary}{Rescaled to 8bpp.} | 122 * {summary}{Rescaled to 8bpp.} |
121 * {description}{The minimum value of the image is set to 0, and its maximum value is set to 255.} | 123 * {description}{The minimum value of the image is set to 0, and its maximum value is set to 255.} |
122 **/ | 124 **/ |
123 ImageExtractionMode_Preview, | 125 ImageExtractionMode_Preview = 1, |
124 | 126 |
125 /** | 127 /** |
126 * {summary}{Truncation to the [0, 255] range.} | 128 * {summary}{Truncation to the [0, 255] range.} |
127 **/ | 129 **/ |
128 ImageExtractionMode_UInt8, | 130 ImageExtractionMode_UInt8 = 2, |
129 | 131 |
130 /** | 132 /** |
131 * {summary}{Truncation to the [0, 65535] range.} | 133 * {summary}{Truncation to the [0, 65535] range.} |
132 **/ | 134 **/ |
133 ImageExtractionMode_UInt16, | 135 ImageExtractionMode_UInt16 = 3, |
134 | 136 |
135 /** | 137 /** |
136 * {summary}{Truncation to the [-32768, 32767] range.} | 138 * {summary}{Truncation to the [-32768, 32767] range.} |
137 **/ | 139 **/ |
138 ImageExtractionMode_Int16 | 140 ImageExtractionMode_Int16 = 4 |
139 }; | 141 }; |
140 | 142 |
141 | 143 |
142 /** | 144 /** |
143 * Most common, non-joke and non-experimental HTTP status codes | 145 * Most common, non-joke and non-experimental HTTP status codes |