comparison Core/Enumerations.h @ 800:ecedd89055db

generation of DICOM images from PNG files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 May 2014 16:33:40 +0200
parents 37adac56017a
children 839be3022203
comparison
equal deleted inserted replaced
799:777b6b694da6 800:ecedd89055db
83 * consecutive bytes. The memory layout is RGB. 83 * consecutive bytes. The memory layout is RGB.
84 **/ 84 **/
85 PixelFormat_RGB24, 85 PixelFormat_RGB24,
86 86
87 /** 87 /**
88 * {summary}{Color image in RGBA32 format.}
89 * {description}{This format describes a color image. The pixels are stored in 4
90 * consecutive bytes. The memory layout is RGBA.
91 **/
92 PixelFormat_RGBA32,
93
94 /**
88 * {summary}{Graylevel 8bpp image.} 95 * {summary}{Graylevel 8bpp image.}
89 * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.} 96 * {description}{The image is graylevel. Each pixel is unsigned and stored in one byte.}
90 **/ 97 **/
91 PixelFormat_Grayscale8, 98 PixelFormat_Grayscale8,
92 99
211 HttpMethod_Delete = 2, 218 HttpMethod_Delete = 2,
212 HttpMethod_Put = 3 219 HttpMethod_Put = 3
213 }; 220 };
214 221
215 222
223 enum ImageFormat
224 {
225 ImageFormat_Png = 1
226 };
227
228
216 /** 229 /**
217 * WARNING: Do not change the explicit values in the enumerations 230 * WARNING: Do not change the explicit values in the enumerations
218 * below this point. This would result in incompatible databases 231 * below this point. This would result in incompatible databases
219 * between versions of Orthanc! 232 * between versions of Orthanc!
220 **/ 233 **/
248 261
249 const char* EnumerationToString(HttpStatus status); 262 const char* EnumerationToString(HttpStatus status);
250 263
251 const char* EnumerationToString(ResourceType type); 264 const char* EnumerationToString(ResourceType type);
252 265
266 const char* EnumerationToString(ImageFormat format);
267
253 ResourceType StringToResourceType(const char* type); 268 ResourceType StringToResourceType(const char* type);
269
270 ImageFormat StringToImageFormat(const char* format);
271
272 unsigned int GetBytesPerPixel(PixelFormat format);
254 } 273 }