SproutCMS

This is the code documentation for the SproutCMS project

class QRspec

Source code (6 results)

/sprout/Helpers/phpqrcode/qrencode.php   Highlighted file source

Line 68: QRspec::getEccSpec($input->getVersion(), $input->getErrorCorrectionLevel(), $spec);
Line 71: $this->b1 = QRspec::rsBlockNum1($spec);
Line 72: $this->dataLength = QRspec::rsDataLength($spec);
Line 73: $this->eccLength = QRspec::rsEccLength($spec);
Line 75: $this->blocks = QRspec::rsBlockNum($spec);
Line 89: $dl = QRspec::rsDataCodes1($spec);
Line 90: $el = QRspec::rsEccCodes1($spec);
Line 97: for($i=0; $i<QRspec::rsBlockNum1($spec); $i++) {
Line 107: if(QRspec::rsBlockNum2($spec) == 0)
Line 110: $dl = QRspec::rsDataCodes2($spec);
Line 111: $el = QRspec::rsEccCodes2($spec);
Line 116: for($i=0; $i<QRspec::rsBlockNum2($spec); $i++) {
Line 165: if($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) {
Line 177: $width = QRspec::getWidth($version);
Line 178: $frame = QRspec::newFrame($version);
Line 201: $j = QRspec::getRemainder($version);

/sprout/Helpers/phpqrcode/qrinput.php   Highlighted file source

Line 66: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_NUM, $version), $this->size);
Line 100: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_AN, $version), $this->size);
Line 129: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_8, $version), $this->size);
Line 151: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_KANJI, $version), (int)($this->size / 2));
Line 212: $l = QRspec::lengthIndicator($this->mode, $version);
Line 227: $words = QRspec::maximumWords($this->mode, $version);
Line 283: if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) {
Line 300: if($version < 0 || $version > QRSPEC_VERSION_MAX) {
Line 535: $version = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
Line 547: $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);
Line 580: $maxsize = QRspec::maximumWords($mode, $version);
Line 618: $ver = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
Line 635: $maxwords = QRspec::getDataLength($this->version, $this->level);

/sprout/Helpers/phpqrcode/qrmask.php   Highlighted file source

Line 40: $this->runLength = array_fill(0, QRSPEC_WIDTH_MAX + 1, 0);
Line 47: $format = QRspec::getFormatInfo($mask, $level);

/sprout/Helpers/phpqrcode/qrspec.php   Highlighted file source

Line 34: define('QRSPEC_VERSION_MAX', 40);
Line 35: define('QRSPEC_WIDTH_MAX', 177);
Line 42: class QRspec {
Line 116: for($i=1; $i<= QRSPEC_VERSION_MAX; $i++) {
Line 341: // size: [QRSPEC_VERSION_MAX - 6]
Line 354: if($version < 7 || $version > QRSPEC_VERSION_MAX)
Line 361: // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib)
Line 556: if($version < 1 || $version > QRSPEC_VERSION_MAX)

/sprout/Helpers/phpqrcode/qrsplit.php   Highlighted file source

Line 95: $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
Line 132: $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
Line 133: $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
Line 195: $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
Line 196: $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());

/sprout/Helpers/phpqrcode/qrtools.php   Highlighted file source

Line 84: for ($a=1; $a <= QRSPEC_VERSION_MAX; $a++) {
Line 85: $frame = QRspec::newFrame($a);

A total of 46 lines in 6 files were found