Mercurial > hg > orthanc
diff Core/Enumerations.h @ 1206:f5b0207967bc
Fix issue #19 (YBR_FULL are decoded incorrectly)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Nov 2014 15:19:02 +0100 |
parents | 200fcac0deb4 |
children | db753e57934f |
line wrap: on
line diff
--- a/Core/Enumerations.h Mon Nov 03 13:40:14 2014 +0100 +++ b/Core/Enumerations.h Mon Nov 03 15:19:02 2014 +0100 @@ -254,6 +254,26 @@ }; + // https://www.dabsoft.ch/dicom/3/C.7.6.3.1.2/ + enum PhotometricInterpretation + { + PhotometricInterpretation_ARGB, // Retired + PhotometricInterpretation_CMYK, // Retired + PhotometricInterpretation_HSV, // Retired + PhotometricInterpretation_Monochrome1, + PhotometricInterpretation_Monochrome2, + PhotometricInterpretation_Palette, + PhotometricInterpretation_RGB, + PhotometricInterpretation_YBRFull, + PhotometricInterpretation_YBRFull422, + PhotometricInterpretation_YBRPartial420, + PhotometricInterpretation_YBRPartial422, + PhotometricInterpretation_YBR_ICT, + PhotometricInterpretation_YBR_RCT, + PhotometricInterpretation_Unknown + }; + + /** * WARNING: Do not change the explicit values in the enumerations * below this point. This would result in incompatible databases @@ -298,6 +318,8 @@ const char* EnumerationToString(Encoding encoding); + const char* EnumerationToString(PhotometricInterpretation photometric); + Encoding StringToEncoding(const char* encoding); ResourceType StringToResourceType(const char* type);