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

Method decode

czxing/src/main/cpp/zxing/src/datamatrix/DMReader.cpp:21–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace ZXing::DataMatrix {
20
21Result Reader::decode(const BinaryBitmap& image) const
22{
23#ifdef __cpp_impl_coroutine
24 return FirstOrDefault(decode(image, 1));
25#else
26 auto binImg = image.getBitMatrix();
27 if (binImg == nullptr)
28 return {};
29
30 auto detectorResult = Detect(*binImg, _hints.tryHarder(), _hints.tryRotate(), _hints.isPure());
31 if (!detectorResult.isValid())
32 return {};
33
34 return Result(Decode(detectorResult.bits()), std::move(detectorResult).position(), BarcodeFormat::DataMatrix);
35#endif
36}
37
38#ifdef __cpp_impl_coroutine
39Results Reader::decode(const BinaryBitmap& image, int maxSymbols) const

Callers

nothing calls this directly

Calls 9

FirstOrDefaultFunction · 0.85
moveFunction · 0.85
getBitMatrixMethod · 0.80
bitsMethod · 0.80
DetectFunction · 0.70
DecodeFunction · 0.70
ResultClass · 0.50
SizeFunction · 0.50
isValidMethod · 0.45

Tested by

no test coverage detected