Mercurial > hg > orthanc-wsi
comparison Framework/ImageToolbox.cpp @ 234:a464169306ce
integration 1.0->mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 14 Jan 2021 08:50:27 +0100 |
parents | c0a554576721 |
children | 49f647ed1b4c |
comparison
equal
deleted
inserted
replaced
232:a2d4bae64839 | 234:a464169306ce |
---|---|
276 void ConvertJpegYCbCrToRgb(Orthanc::ImageAccessor& image) | 276 void ConvertJpegYCbCrToRgb(Orthanc::ImageAccessor& image) |
277 { | 277 { |
278 #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 0) | 278 #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 0) |
279 Orthanc::ImageProcessing::ConvertJpegYCbCrToRgb(image); | 279 Orthanc::ImageProcessing::ConvertJpegYCbCrToRgb(image); |
280 #else | 280 #else |
281 # warning You are using an old version of the Orthanc framework | 281 # if defined(__GNUC__) || defined(__clang__) |
282 # warning You are using an old version of the Orthanc framework | |
283 # endif | |
282 const unsigned int width = image.GetWidth(); | 284 const unsigned int width = image.GetWidth(); |
283 const unsigned int height = image.GetHeight(); | 285 const unsigned int height = image.GetHeight(); |
284 const unsigned int pitch = image.GetPitch(); | 286 const unsigned int pitch = image.GetPitch(); |
285 uint8_t* buffer = reinterpret_cast<uint8_t*>(image.GetBuffer()); | 287 uint8_t* buffer = reinterpret_cast<uint8_t*>(image.GetBuffer()); |
286 | 288 |