Mercurial > hg > orthanc-wsi
comparison Framework/Algorithms/ReconstructPyramidCommand.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 |
---|---|
49 | 49 |
50 if (level == 0) | 50 if (level == 0) |
51 { | 51 { |
52 result.reset(new Orthanc::ImageAccessor(source_.GetDecodedTile(x, y))); | 52 result.reset(new Orthanc::ImageAccessor(source_.GetDecodedTile(x, y))); |
53 | 53 |
54 const std::string* rawTile = source_.GetRawTile(x, y); | 54 ImageCompression compression; |
55 const std::string* rawTile = source_.GetRawTile(compression, x, y); | |
55 | 56 |
56 if (rawTile != NULL) | 57 if (rawTile != NULL) |
57 { | 58 { |
58 // Simple transcoding | 59 // Simple transcoding |
59 target_.WriteRawTile(*rawTile, source_.GetImageCompression(), level + shiftTargetLevel_, x, y); | 60 target_.WriteRawTile(*rawTile, compression, level + shiftTargetLevel_, x, y); |
60 } | 61 } |
61 else | 62 else |
62 { | 63 { |
63 // Re-encoding the file | 64 // Re-encoding the file |
64 target_.EncodeTile(*result, level + shiftTargetLevel_, x, y); | 65 target_.EncodeTile(*result, level + shiftTargetLevel_, x, y); |