Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.cpp @ 817:83f0cae7dfcc
little endianness is ok
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 May 2014 16:44:39 +0200 |
parents | 5dcfdd3bfca9 |
children | a811bdf8b8eb |
comparison
equal
deleted
inserted
replaced
816:2f63c225c4c0 | 817:83f0cae7dfcc |
---|---|
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) | |
1187 { | |
1188 throw OrthancException(ErrorCode_NotImplemented); | |
1189 }*/ | |
1190 | |
1191 memcpy(target, reinterpret_cast<const Uint8*>(accessor.GetConstRow(y)), pitch); | 1186 memcpy(target, reinterpret_cast<const Uint8*>(accessor.GetConstRow(y)), pitch); |
1192 target += pitch; | 1187 target += pitch; |
1193 break; | 1188 break; |
1194 } | 1189 } |
1195 | 1190 |