comparison Framework/Inputs/TiledPyramidStatistics.cpp @ 57:91fc9583b2de

big refactoring to support sparse tiling
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Nov 2016 17:48:24 +0100
parents 7a88c614be04
children 7a3853d51c45
comparison
equal deleted inserted replaced
56:83cd735c885d 57:91fc9583b2de
41 << countDecodedTiles_ << " decoded tiles)"; 41 << countDecodedTiles_ << " decoded tiles)";
42 } 42 }
43 43
44 44
45 bool TiledPyramidStatistics::ReadRawTile(std::string& tile, 45 bool TiledPyramidStatistics::ReadRawTile(std::string& tile,
46 ImageCompression& compression,
46 unsigned int level, 47 unsigned int level,
47 unsigned int tileX, 48 unsigned int tileX,
48 unsigned int tileY) 49 unsigned int tileY)
49 { 50 {
50 if (source_.ReadRawTile(tile, level, tileX, tileY)) 51 if (source_.ReadRawTile(tile, compression, level, tileX, tileY))
51 { 52 {
52 boost::mutex::scoped_lock lock(mutex_); 53 boost::mutex::scoped_lock lock(mutex_);
53 countRawAccesses_++; 54 countRawAccesses_++;
54 return true; 55 return true;
55 } 56 }