Mercurial > hg > orthanc-webviewer
comparison Orthanc/Core/Enumerations.cpp @ 128:e8cfda4c8a2f
Sync + support of JPEG2000 lossless images with YBR_RCT photometric interpretation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Apr 2016 21:44:03 +0200 |
parents | 145e654112d6 |
children | 2c73a785c08e |
comparison
equal
deleted
inserted
replaced
127:5754d39b011d | 128:e8cfda4c8a2f |
---|---|
210 | 210 |
211 case ErrorCode_DirectoryExpected: | 211 case ErrorCode_DirectoryExpected: |
212 return "The specified path does not point to a directory"; | 212 return "The specified path does not point to a directory"; |
213 | 213 |
214 case ErrorCode_HttpPortInUse: | 214 case ErrorCode_HttpPortInUse: |
215 return "The TCP port of the HTTP server is already in use"; | 215 return "The TCP port of the HTTP server is privileged or already in use"; |
216 | 216 |
217 case ErrorCode_DicomPortInUse: | 217 case ErrorCode_DicomPortInUse: |
218 return "The TCP port of the DICOM server is already in use"; | 218 return "The TCP port of the DICOM server is privileged or already in use"; |
219 | 219 |
220 case ErrorCode_BadHttpStatusInRest: | 220 case ErrorCode_BadHttpStatusInRest: |
221 return "This HTTP status is not allowed in a REST API"; | 221 return "This HTTP status is not allowed in a REST API"; |
222 | 222 |
223 case ErrorCode_RegularFileExpected: | 223 case ErrorCode_RegularFileExpected: |
709 case LogLevel_Info: | 709 case LogLevel_Info: |
710 return "INFO"; | 710 return "INFO"; |
711 | 711 |
712 case LogLevel_Trace: | 712 case LogLevel_Trace: |
713 return "TRACE"; | 713 return "TRACE"; |
714 | |
715 default: | |
716 throw OrthancException(ErrorCode_ParameterOutOfRange); | |
717 } | |
718 } | |
719 | |
720 | |
721 const char* EnumerationToString(PixelFormat format) | |
722 { | |
723 switch (format) | |
724 { | |
725 case PixelFormat_RGB24: | |
726 return "RGB24"; | |
727 | |
728 case PixelFormat_RGBA32: | |
729 return "RGBA32"; | |
730 | |
731 case PixelFormat_Grayscale8: | |
732 return "Grayscale (unsigned 8bpp)"; | |
733 | |
734 case PixelFormat_Grayscale16: | |
735 return "Grayscale (unsigned 16bpp)"; | |
736 | |
737 case PixelFormat_SignedGrayscale16: | |
738 return "Grayscale (signed 16bpp)"; | |
714 | 739 |
715 default: | 740 default: |
716 throw OrthancException(ErrorCode_ParameterOutOfRange); | 741 throw OrthancException(ErrorCode_ParameterOutOfRange); |
717 } | 742 } |
718 } | 743 } |