| 289 | } |
| 290 | |
| 291 | int LIFImage::getTileIndex(int index) { |
| 292 | int count = 0; |
| 293 | for (int tile=0; tile < _tileCount.size(); ++tile) { |
| 294 | if (index < count + _tileCount[tile]) { |
| 295 | return tile; |
| 296 | } |
| 297 | count += _tileCount[tile]; |
| 298 | } |
| 299 | return -1; |
| 300 | } |
| 301 | |
| 302 | void* LIFImage::readDataFromImage(const long long& startX, const long long& startY, const unsigned long long& width, |
| 303 | const unsigned long long& height, const unsigned int& level) { |