84 int numBitsCharCount[3];
89 Mode(
int mode,
int cc0,
int cc1,
int cc2);
237 static const char *ALPHANUMERIC_CHARSET;
276 static int getFormatBits(
Ecc ecl);
319 int minVersion = 1,
int maxVersion = 40,
321 bool boostEcl =
true);
339 Ecc errorCorrectionLevel;
412 void drawFunctionPatterns();
417 void drawFormatBits(
int msk);
427 void drawFinderPattern(
int x,
int y);
432 void drawAlignmentPattern(
int x,
int y);
437 void setFunctionModule(
int x,
int y,
bool isDark);
442 bool module(
int x,
int y)
const;
465 void applyMask(
int msk);
471 long getPenaltyScore()
const;
488 static int getNumRawDataModules(
int ver);
495 static int getNumDataCodewords(
int ver,
Ecc ecl);
523 int finderPenaltyTerminateAndCount(
bool currentRunColor,
int currentRunLength,
529 void finderPenaltyAddHistory(
int currentRunLength,
534 static bool getBit(
long x,
int i);
548 static const int PENALTY_N1;
551 static const int PENALTY_N2;
554 static const int PENALTY_N3;
557 static const int PENALTY_N4;
560 static const std::int8_t ECC_CODEWORDS_PER_BLOCK[4][41];
563 static const std::int8_t NUM_ERROR_CORRECTION_BLOCKS[4][41];
Definition qrcode_gen.hpp:592
void appendBits(std::uint32_t val, int len)
Definition qrcode_gen.cpp:837
BitBuffer()
Definition qrcode_gen.cpp:835
Definition qrcode_gen.hpp:259
static constexpr int MIN_VERSION
Definition qrcode_gen.hpp:540
int getSize() const
Definition qrcode_gen.cpp:344
static QrCode encodeBinary(const std::vector< std::uint8_t > &data, Ecc ecl)
Definition qrcode_gen.cpp:227
int getMask() const
Definition qrcode_gen.cpp:350
Ecc
Definition qrcode_gen.hpp:267
Ecc getErrorCorrectionLevel() const
Definition qrcode_gen.cpp:346
static QrCode encodeText(const char *text, Ecc ecl)
Definition qrcode_gen.cpp:221
static QrCode encodeSegments(const std::vector< QrSegment > &segs, Ecc ecl, int minVersion=1, int maxVersion=40, int mask=-1, bool boostEcl=true)
Definition qrcode_gen.cpp:232
bool getModule(int x, int y) const
Definition qrcode_gen.cpp:352
static constexpr int MAX_VERSION
Definition qrcode_gen.hpp:544
int getVersion() const
Definition qrcode_gen.cpp:342
Definition qrcode_gen.hpp:57
static const Mode ALPHANUMERIC
Definition qrcode_gen.hpp:65
int getModeBits() const
Definition qrcode_gen.cpp:49
static const Mode BYTE
Definition qrcode_gen.hpp:68
int numCharCountBits(int ver) const
Definition qrcode_gen.cpp:51
static const Mode NUMERIC
Definition qrcode_gen.hpp:62
static const Mode ECI
Definition qrcode_gen.hpp:74
static const Mode KANJI
Definition qrcode_gen.hpp:71
Definition qrcode_gen.hpp:49
static QrSegment makeEci(long assignVal)
Definition qrcode_gen.cpp:133
static QrSegment makeAlphanumeric(const char *text)
Definition qrcode_gen.cpp:92
int getNumChars() const
Definition qrcode_gen.cpp:197
static std::vector< QrSegment > makeSegments(const char *text)
Definition qrcode_gen.cpp:115
static QrSegment makeBytes(const std::vector< std::uint8_t > &data)
Definition qrcode_gen.cpp:61
const Mode & getMode() const
Definition qrcode_gen.cpp:195
const std::vector< bool > & getData() const
Definition qrcode_gen.cpp:199
static bool isAlphanumeric(const char *text)
Definition qrcode_gen.cpp:187
static int getTotalBits(const std::vector< QrSegment > &segs, int version)
Definition qrcode_gen.cpp:162
static QrSegment makeNumeric(const char *digits)
Definition qrcode_gen.cpp:70
static bool isNumeric(const char *text)
Definition qrcode_gen.cpp:178
Definition qrcode_gen.hpp:583
void * data
Definition core_c.h:427
const CvArr CvArr * x
Definition core_c.h:1195
const CvArr * y
Definition core_c.h:1187
const char * text
Definition imgproc_c.h:1143
Definition qrcode_gen.hpp:34
std::string toSvgString(const QrCode &qr, std::string fill)
Definition utils.cpp:4