Mercurial > hg > orthanc
comparison Core/Enumerations.cpp @ 2649:193ef9c1b731 jobs
integration mainline->jobs
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 01 Jun 2018 10:51:06 +0200 |
parents | 740983056f9e 89b789366596 |
children | c196d76cb8fa |
comparison
equal
deleted
inserted
replaced
2648:e1893d31652a | 2649:193ef9c1b731 |
---|---|
760 return "Grayscale (float 32bpp)"; | 760 return "Grayscale (float 32bpp)"; |
761 | 761 |
762 case PixelFormat_Grayscale32: | 762 case PixelFormat_Grayscale32: |
763 return "Grayscale (unsigned 32bpp)"; | 763 return "Grayscale (unsigned 32bpp)"; |
764 | 764 |
765 case PixelFormat_Grayscale64: | |
766 return "Grayscale (unsigned 64bpp)"; | |
767 | |
765 case PixelFormat_RGB48: | 768 case PixelFormat_RGB48: |
766 return "RGB48"; | 769 return "RGB48"; |
767 | 770 |
768 default: | 771 default: |
769 throw OrthancException(ErrorCode_ParameterOutOfRange); | 772 throw OrthancException(ErrorCode_ParameterOutOfRange); |
1520 assert(sizeof(float) == 4); | 1523 assert(sizeof(float) == 4); |
1521 return 4; | 1524 return 4; |
1522 | 1525 |
1523 case PixelFormat_RGB48: | 1526 case PixelFormat_RGB48: |
1524 return 6; | 1527 return 6; |
1528 | |
1529 case PixelFormat_Grayscale64: | |
1530 return 8; | |
1525 | 1531 |
1526 default: | 1532 default: |
1527 throw OrthancException(ErrorCode_ParameterOutOfRange); | 1533 throw OrthancException(ErrorCode_ParameterOutOfRange); |
1528 } | 1534 } |
1529 } | 1535 } |