Mercurial > hg > orthanc-webviewer
comparison UnitTestsSources/UnitTestsMain.cpp @ 13:09421764214b
fixes for visual studio
author | jodogne |
---|---|
date | Wed, 01 Apr 2015 13:20:45 +0200 |
parents | 02f7a0400a91 |
children | a6492d20b2a8 |
comparison
equal
deleted
inserted
replaced
12:379131283479 | 13:09421764214b |
---|---|
191 | 191 |
192 TEST(JpegWriter, Basic) | 192 TEST(JpegWriter, Basic) |
193 { | 193 { |
194 Orthanc::ImageBuffer img(16, 16, Orthanc::PixelFormat_Grayscale8); | 194 Orthanc::ImageBuffer img(16, 16, Orthanc::PixelFormat_Grayscale8); |
195 Orthanc::ImageAccessor accessor = img.GetAccessor(); | 195 Orthanc::ImageAccessor accessor = img.GetAccessor(); |
196 for (int y = 0, value = 0; y < img.GetHeight(); y++) | 196 for (unsigned int y = 0, value = 0; y < img.GetHeight(); y++) |
197 { | 197 { |
198 uint8_t* p = reinterpret_cast<uint8_t*>(accessor.GetRow(y)); | 198 uint8_t* p = reinterpret_cast<uint8_t*>(accessor.GetRow(y)); |
199 for (int x = 0; x < img.GetWidth(); x++, p++) | 199 for (unsigned int x = 0; x < img.GetWidth(); x++, p++) |
200 { | 200 { |
201 *p = value++; | 201 *p = value++; |
202 } | 202 } |
203 } | 203 } |
204 | 204 |