Mercurial > hg > orthanc
comparison Core/Enumerations.cpp @ 2415:7e217a1cc63f
PixelFormat_Float32
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Oct 2017 22:02:05 +0200 |
parents | 5edec967055e |
children | 5a7c5c541a1d |
comparison
equal
deleted
inserted
replaced
2414:60950e4084ae | 2415:7e217a1cc63f |
---|---|
751 return "Grayscale (signed 16bpp)"; | 751 return "Grayscale (signed 16bpp)"; |
752 | 752 |
753 case PixelFormat_Float32: | 753 case PixelFormat_Float32: |
754 return "Grayscale (float 32bpp)"; | 754 return "Grayscale (float 32bpp)"; |
755 | 755 |
756 case PixelFormat_Grayscale32: | |
757 return "Grayscale (unsigned 32bpp)"; | |
758 | |
756 default: | 759 default: |
757 throw OrthancException(ErrorCode_ParameterOutOfRange); | 760 throw OrthancException(ErrorCode_ParameterOutOfRange); |
758 } | 761 } |
759 } | 762 } |
760 | 763 |
1332 case PixelFormat_RGB24: | 1335 case PixelFormat_RGB24: |
1333 return 3; | 1336 return 3; |
1334 | 1337 |
1335 case PixelFormat_RGBA32: | 1338 case PixelFormat_RGBA32: |
1336 case PixelFormat_BGRA32: | 1339 case PixelFormat_BGRA32: |
1340 case PixelFormat_Grayscale32: | |
1337 return 4; | 1341 return 4; |
1338 | 1342 |
1339 case PixelFormat_Float32: | 1343 case PixelFormat_Float32: |
1340 assert(sizeof(float) == 4); | 1344 assert(sizeof(float) == 4); |
1341 return 4; | 1345 return 4; |