31 static const int32_t START_PATTERN = 0x1fea8;
32 static const int32_t STOP_PATTERN = 0x3fa29;
33 static constexpr float PREFERRED_RATIO = 3.0f;
34 static constexpr float DEFAULT_MODULE_WIDTH = 0.357f;
35 static constexpr float HEIGHT = 2.0f;
37 static int32_t calculateNumberOfRows(int32_t m, int32_t k, int32_t c);
38 static int32_t getNumberOfPadCodewords(int32_t m,
42 static void encodeChar(int32_t pattern, int32_t len, CBC_BarcodeRow* logic);
43 void encodeLowLevel(WideString fullCodewords,
46 int32_t errorCorrectionLevel,
47 CBC_BarcodeMatrix* logic);
48 std::vector<int32_t> determineDimensions(
49 size_t sourceCodeWords,
50 int32_t errorCorrectionCodeWords)
const;
52 std::unique_ptr<CBC_BarcodeMatrix> m_barcodeMatrix;
53 int32_t m_minCols = 1;
54 int32_t m_maxCols = 30;
55 int32_t m_minRows = 3;
56 int32_t m_maxRows = 90;