Mercurial > hg > orthanc-wsi
comparison Framework/Jpeg2000Reader.cpp @ 209:628201cb48c2
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Nov 2020 17:44:35 +0100 |
parents | a1c265cb2174 |
children | 1e864138f0da |
comparison
equal
deleted
inserted
replaced
208:541a4aa63278 | 209:628201cb48c2 |
---|---|
301 unsigned int targetIncrement) | 301 unsigned int targetIncrement) |
302 { | 302 { |
303 int32_t* q = image_->comps[channel].data; | 303 int32_t* q = image_->comps[channel].data; |
304 assert(q != NULL); | 304 assert(q != NULL); |
305 | 305 |
306 for (unsigned int y = 0; y < target.GetHeight(); y++) | 306 const unsigned int width = target.GetWidth(); |
307 const unsigned int height = target.GetHeight(); | |
308 | |
309 for (unsigned int y = 0; y < height; y++) | |
307 { | 310 { |
308 uint8_t *p = reinterpret_cast<uint8_t*>(target.GetRow(y)) + channel; | 311 uint8_t *p = reinterpret_cast<uint8_t*>(target.GetRow(y)) + channel; |
309 | 312 |
310 for (unsigned int x = 0; x < target.GetWidth(); x++, p += targetIncrement) | 313 for (unsigned int x = 0; x < width; x++, p += targetIncrement) |
311 { | 314 { |
312 *p = *q; | 315 *p = *q; |
313 q++; | 316 q++; |
314 } | 317 } |
315 } | 318 } |