comparison OrthancServer/ParsedDicomFile.cpp @ 815:5dcfdd3bfca9

endianness
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 May 2014 15:52:37 +0200
parents 8ce2f69436ca
children 83f0cae7dfcc
comparison
equal deleted inserted replaced
814:aeee9cc66dd9 815:5dcfdd3bfca9
1181 case PixelFormat_RGB24: 1181 case PixelFormat_RGB24:
1182 case PixelFormat_Grayscale8: 1182 case PixelFormat_Grayscale8:
1183 case PixelFormat_Grayscale16: 1183 case PixelFormat_Grayscale16:
1184 case PixelFormat_SignedGrayscale16: 1184 case PixelFormat_SignedGrayscale16:
1185 { 1185 {
1186 if (Toolbox::DetectEndianness() != Endianness_Little) 1186 /*if (Toolbox::DetectEndianness() != Endianness_Little)
1187 { 1187 {
1188 throw OrthancException(ErrorCode_NotImplemented); 1188 throw OrthancException(ErrorCode_NotImplemented);
1189 } 1189 }*/
1190 1190
1191 memcpy(target, reinterpret_cast<const Uint8*>(accessor.GetConstRow(y)), pitch); 1191 memcpy(target, reinterpret_cast<const Uint8*>(accessor.GetConstRow(y)), pitch);
1192 target += pitch; 1192 target += pitch;
1193 break; 1193 break;
1194 } 1194 }