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

Function Decode

czxing/src/main/cpp/zxing/src/datamatrix/DMDecoder.cpp:446–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446DecoderResult Decode(const BitMatrix& bits)
447{
448 auto res = DoDecode(bits);
449 if (res.isValid())
450 return res;
451
452 //TODO:
453 // * unify bit mirroring helper code with QRReader?
454 // * rectangular symbols with the a size of 8 x Y are not supported a.t.m.
455 if (auto mirroredRes = DoDecode(FlippedL(bits)); mirroredRes.isValid()) {
456 mirroredRes.setIsMirrored(true);
457 return mirroredRes;
458 }
459
460 return res;
461}
462
463} // namespace ZXing::DataMatrix

Callers 2

DoDecodeFunction · 0.70
decodeMethod · 0.70

Calls 3

FlippedLFunction · 0.85
DoDecodeFunction · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected