| 306 | } |
| 307 | |
| 308 | Result |
| 309 | Reader::decode(const BinaryBitmap& image) const |
| 310 | { |
| 311 | if (_hints.isPure()) { |
| 312 | auto res = DecodePure(image); |
| 313 | if (res.error() != Error::Checksum) |
| 314 | return res; |
| 315 | // This falls through and tries the non-pure code path if we have a checksum error. This approach is |
| 316 | // currently the best option to deal with 'aliased' input like e.g. 03-aliased.png |
| 317 | } |
| 318 | |
| 319 | return FirstOrDefault(DoDecode(image, false, _hints.tryRotate(), _hints.returnErrors())); |
| 320 | } |
| 321 | |
| 322 | Results Reader::decode(const BinaryBitmap& image, [[maybe_unused]] int maxSymbols) const |
| 323 | { |
nothing calls this directly
no test coverage detected