QR-Code specification and Code Frame handling. More...
Static Public Member Functions | |
| static | getDataLength ($version, $level) |
| Calculates data length for specified code configuration. More... | |
| static | getECCLength ($version, $level) |
| Calculates count of Error Correction Codes for specified code configuration. More... | |
| static | getWidth ($version) |
| Gets pixel width of code. More... | |
| static | getRemainder ($version) |
| Gets reminder chars length. More... | |
| static | getMinimumVersion ($size, $level) |
| Finds minimal code version capable of hosting specified data length. More... | |
| static | lengthIndicator ($mode, $version) |
| static | maximumWords ($mode, $version) |
| static | getEccSpec ($version, $level, array &$spec) |
| static | putAlignmentMarker (array &$frame, $ox, $oy) |
| Puts an alignment marker. More... | |
| static | putAlignmentPattern ($version, &$frame, $width) |
| static | getVersionPattern ($version) |
| static | getFormatInfo ($mask, $level) |
| static | putFinderPattern (&$frame, $ox, $oy) |
| Put a finder pattern. More... | |
| static | createFrame ($version) |
| static | debug ($frame, $binary_mode=false) |
| Dumps debug HTML of frame. More... | |
| static | serial ($frame) |
| Serializes frame. More... | |
| static | unserial ($code) |
| Deserializes frame. More... | |
| static | newFrame ($version) |
| static | set (&$frame, $x, $y, $repl, $replLen=false) |
| Sets code frame with speciffied code. More... | |
Reed-Solomon related shorthand getters. | |
Syntax-sugar to access code speciffication by getter name, not by spec array field. | |
| static | rsBlockNum ($spec) |
| static | rsBlockNum1 ($spec) |
| static | rsDataCodes1 ($spec) |
| static | rsEccCodes1 ($spec) |
| static | rsBlockNum2 ($spec) |
| static | rsDataCodes2 ($spec) |
| static | rsEccCodes2 ($spec) |
| static | rsDataLength ($spec) |
| static | rsEccLength ($spec) |
Static Public Attributes | |
| static | $capacity |
| Array specifying properties of QR-Code "versions". More... | |
| static | $lengthTableBits |
| Length bits Table. | |
| static | $eccTable |
| Table of the error correction code (Reed-Solomon block). More... | |
| static | $alignmentPattern |
| Positions of alignment patterns. More... | |
| static | $versionPattern |
| Version information pattern (BCH coded). More... | |
| static | $formatInfo |
| Format information. More... | |
| static | $frames = array() |
| Cache of initial frames. More... | |
QR-Code specification and Code Frame handling.
Contains code specifications, calculates base frame, code structure and base properties
|
static |
Dumps debug HTML of frame.
| Array | $frame | code frame |
| Boolean | $binary_mode | in binary mode only contents is dumped, without styling |
|
static |
Calculates data length for specified code configuration.
| Integer | $version | Code version |
| Integer | $level | ECC level |
|
static |
Calculates count of Error Correction Codes for specified code configuration.
| Integer | $version | Code version |
| Integer | $level | ECC level |
|
static |
Finds minimal code version capable of hosting specified data length.
| Integer | $size | amount of raw data |
| Integer | $level | ECC level |
|
static |
Gets reminder chars length.
| Integer | $version | Code version |
|
static |
Gets pixel width of code.
| Integer | $version | Code version |
|
static |
Puts an alignment marker.
| frame | |
| width | |
| ox,oy | center coordinate of the pattern |
|
static |
Put a finder pattern.
| frame | |
| width | |
| ox,oy | upper-left coordinate of the pattern |
|
static |
Serializes frame.
Create compressed, serialized version of frame.
| Array | $frame | Code Frame |
|
static |
Sets code frame with speciffied code.
| Array | $frame | target frame (modified by reference) |
| Integer | $x | X-axis position of replacement |
| Integer | $y | Y-axis position of replacement |
| Byte | $repl | replacement string |
| Integer | $replLen | (optional) replacement string length, when Integer > 1 subset of given $repl is used, when false whole $repl is used |
|
static |
Deserializes frame.
Loads frame from serialized compressed binary
| String | $code | binary, GZipped, serialized frame |
|
static |
Positions of alignment patterns.
This array includes only the second and the third position of the lignment patterns. Rest of them can be calculated from the distance between them.
|
static |
Array specifying properties of QR-Code "versions".
Each so-called version has specified code area size and capacity. There are 40 versions, this table specifies for each of them four parameters:
|
static |
Table of the error correction code (Reed-Solomon block).
|
static |
Format information.
|
static |
Cache of initial frames.
|
static |
Version information pattern (BCH coded).
size: [QRSPEC_VERSION_MAX - 6]
1.8.4