comparison Core/Enumerations.cpp @ 2423:5a7c5c541a1d

Built-in decoding of palette images
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Oct 2017 21:58:08 +0200
parents 7e217a1cc63f
children 878b59270859
comparison
equal deleted inserted replaced
2422:b340f0a9022c 2423:5a7c5c541a1d
754 return "Grayscale (float 32bpp)"; 754 return "Grayscale (float 32bpp)";
755 755
756 case PixelFormat_Grayscale32: 756 case PixelFormat_Grayscale32:
757 return "Grayscale (unsigned 32bpp)"; 757 return "Grayscale (unsigned 32bpp)";
758 758
759 case PixelFormat_RGB48:
760 return "RGB48";
761
759 default: 762 default:
760 throw OrthancException(ErrorCode_ParameterOutOfRange); 763 throw OrthancException(ErrorCode_ParameterOutOfRange);
761 } 764 }
762 } 765 }
763 766
1341 return 4; 1344 return 4;
1342 1345
1343 case PixelFormat_Float32: 1346 case PixelFormat_Float32:
1344 assert(sizeof(float) == 4); 1347 assert(sizeof(float) == 4);
1345 return 4; 1348 return 4;
1349
1350 case PixelFormat_RGB48:
1351 return 6;
1346 1352
1347 default: 1353 default:
1348 throw OrthancException(ErrorCode_ParameterOutOfRange); 1354 throw OrthancException(ErrorCode_ParameterOutOfRange);
1349 } 1355 }
1350 } 1356 }