MCPcopy Create free account
hub / github.com/devilsen/CZXing / decode

Method decode

czxing/src/main/cpp/zxing/src/aztec/AZReader.cpp:23–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace ZXing::Aztec {
22
23Result
24Reader::decode(const BinaryBitmap& image) const
25{
26 auto binImg = image.getBitMatrix();
27 if (binImg == nullptr)
28 return {};
29
30 DetectorResult detectorResult = Detect(*binImg, _hints.isPure(), _hints.tryHarder());
31 if (!detectorResult.isValid())
32 return {};
33
34 auto decodeResult = Decode(detectorResult)
35 .setReaderInit(detectorResult.readerInit())
36 .setIsMirrored(detectorResult.isMirrored())
37 .setVersionNumber(detectorResult.nbLayers());
38
39 return Result(std::move(decodeResult), std::move(detectorResult).position(), BarcodeFormat::Aztec);
40}
41
42Results Reader::decode(const BinaryBitmap& image, int maxSymbols) const
43{

Callers

nothing calls this directly

Calls 10

moveFunction · 0.85
getBitMatrixMethod · 0.80
nbLayersMethod · 0.80
DetectFunction · 0.70
DecodeFunction · 0.70
ResultClass · 0.50
SizeFunction · 0.50
isValidMethod · 0.45
readerInitMethod · 0.45
isMirroredMethod · 0.45

Tested by

no test coverage detected