comparison Core/Enumerations.cpp @ 2645:89b789366596

Grayscale64 pixel format
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 31 May 2018 08:31:22 +0200
parents 83b8b6743531
children 193ef9c1b731
comparison
equal deleted inserted replaced
2637:5094369664f0 2645:89b789366596
757 return "Grayscale (float 32bpp)"; 757 return "Grayscale (float 32bpp)";
758 758
759 case PixelFormat_Grayscale32: 759 case PixelFormat_Grayscale32:
760 return "Grayscale (unsigned 32bpp)"; 760 return "Grayscale (unsigned 32bpp)";
761 761
762 case PixelFormat_Grayscale64:
763 return "Grayscale (unsigned 64bpp)";
764
762 case PixelFormat_RGB48: 765 case PixelFormat_RGB48:
763 return "RGB48"; 766 return "RGB48";
764 767
765 default: 768 default:
766 throw OrthancException(ErrorCode_ParameterOutOfRange); 769 throw OrthancException(ErrorCode_ParameterOutOfRange);
1456 assert(sizeof(float) == 4); 1459 assert(sizeof(float) == 4);
1457 return 4; 1460 return 4;
1458 1461
1459 case PixelFormat_RGB48: 1462 case PixelFormat_RGB48:
1460 return 6; 1463 return 6;
1464
1465 case PixelFormat_Grayscale64:
1466 return 8;
1461 1467
1462 default: 1468 default:
1463 throw OrthancException(ErrorCode_ParameterOutOfRange); 1469 throw OrthancException(ErrorCode_ParameterOutOfRange);
1464 } 1470 }
1465 } 1471 }