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

Function GetMinCodewordWidth

czxing/src/main/cpp/zxing/src/pdf417/PDFReader.cpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static int GetMinCodewordWidth(const std::array<Nullable<ResultPoint>, 8>& p)
47{
48 return std::min(std::min(GetMinWidth(p[0], p[4]), GetMinWidth(p[6], p[2]) * CodewordDecoder::MODULES_IN_CODEWORD / MODULES_IN_STOP_PATTERN),
49 std::min(GetMinWidth(p[1], p[5]), GetMinWidth(p[7], p[3]) * CodewordDecoder::MODULES_IN_CODEWORD / MODULES_IN_STOP_PATTERN));
50}
51
52static int GetMaxWidth(const Nullable<ResultPoint>& p1, const Nullable<ResultPoint>& p2)
53{

Callers 1

DoDecodeFunction · 0.85

Calls 2

GetMinWidthFunction · 0.85
minFunction · 0.50

Tested by

no test coverage detected