Mercurial > hg > orthanc-webviewer
comparison Plugin/ViewerToolbox.cpp @ 99:46ec13a1177c refactoring
use of ordered-slices
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Nov 2015 21:39:41 +0100 |
parents | abdde1dfb3eb |
children | 3809121c3290 |
comparison
equal
deleted
inserted
replaced
98:745cc19aa32b | 99:46ec13a1177c |
---|---|
327 OrthancPluginMemoryBuffer tmp; | 327 OrthancPluginMemoryBuffer tmp; |
328 | 328 |
329 OrthancPluginErrorCode code = OrthancPluginCompressJpegImage | 329 OrthancPluginErrorCode code = OrthancPluginCompressJpegImage |
330 (context, &tmp, Convert(accessor.GetFormat()), | 330 (context, &tmp, Convert(accessor.GetFormat()), |
331 accessor.GetWidth(), accessor.GetHeight(), accessor.GetPitch(), | 331 accessor.GetWidth(), accessor.GetHeight(), accessor.GetPitch(), |
332 accessor.GetBuffer(), quality); | 332 accessor.GetConstBuffer(), quality); |
333 | 333 |
334 if (code != OrthancPluginErrorCode_Success) | 334 if (code != OrthancPluginErrorCode_Success) |
335 { | 335 { |
336 throw Orthanc::OrthancException(static_cast<Orthanc::ErrorCode>(code)); | 336 throw Orthanc::OrthancException(static_cast<Orthanc::ErrorCode>(code)); |
337 } | 337 } |