Mercurial > hg > orthanc
diff Core/ImageFormats/ImageProcessing.cpp @ 854:ff530685e46a jpeg
fast version of image copy
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Jun 2014 12:35:08 +0200 |
parents | 839be3022203 |
children | 610a9a1ed855 |
line wrap: on
line diff
--- a/Core/ImageFormats/ImageProcessing.cpp Fri Jun 06 11:45:16 2014 +0200 +++ b/Core/ImageFormats/ImageProcessing.cpp Fri Jun 06 12:35:08 2014 +0200 @@ -60,10 +60,11 @@ for (unsigned int y = 0; y < source.GetHeight(); y++) { - memcpy(target.GetRow(y), source.GetRow(y), lineSize); + memcpy(target.GetRow(y), source.GetConstRow(y), lineSize); } } + void ImageProcessing::Convert(ImageAccessor& target, const ImageAccessor& source) { @@ -78,5 +79,23 @@ Copy(target, source); return; } + + throw OrthancException(ErrorCode_NotImplemented); } + + + void ImageProcessing::ShiftRight(ImageAccessor& image, + unsigned int shift) + { + if (image.GetWidth() == 0 || + image.GetHeight() == 0 || + shift == 0) + { + // Nothing to do + return; + } + + throw OrthancException(ErrorCode_NotImplemented); + } + }