\Zxing\Qrcode\DecoderBitMatrixParser

Summary

Methods
Properties
Constants
__construct()
readCodewords()
readFormatInformation()
readVersion()
remask()
setMirror()
mirror()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
copyBit()
$bitMatrix
$parsedVersion
$parsedFormatInfo
$mirror
N/A

Properties

$bitMatrix

$bitMatrix

$parsedVersion

$parsedVersion

$parsedFormatInfo

$parsedFormatInfo

$mirror

$mirror

Methods

__construct()

__construct(mixed  $bitMatrix) : mixed

Parameters

mixed $bitMatrix

Throws

\Zxing\FormatException

if dimension is not >= 21 and 1 mod 4

Returns

mixed —

readCodewords()

readCodewords() : \Zxing\Qrcode\Decoder\bytes

<p>Reads the bits in the {@link BitMatrix} representing the finder pattern in the correct order in order to reconstruct the codewords bytes contained within the QR Code.</p>

Throws

\Zxing\FormatException

if the exact number of bytes expected is not read

Returns

\Zxing\Qrcode\Decoder\bytes —

encoded within the QR Code

readFormatInformation()

readFormatInformation() : mixed

<p>Reads format information from one of its two locations within the QR Code.</p>

Throws

\Zxing\FormatException

if both format information locations cannot be parsed as the valid encoding of format information

Returns

mixed —

readVersion()

readVersion() : mixed

<p>Reads version information from one of its two locations within the QR Code.</p>

Throws

\Zxing\FormatException

if both version information locations cannot be parsed as the valid encoding of version information

Returns

mixed —

remask()

remask() : mixed

Revert the mask removal done while reading the code words. The bit matrix should revert to its original state.

Returns

mixed —

setMirror()

setMirror(mixed  $mirror) : mixed

Prepare the parser for a mirrored operation.

This flag has effect only on the {@link #readFormatInformation()} and the {@link #readVersion()}. Before proceeding with {@link #readCodewords()} the {@link #mirror()} method should be called.

Parameters

mixed $mirror

Returns

mixed —

mirror()

mirror() : mixed

Mirror the bit matrix in order to attempt a second reading.

Returns

mixed —

copyBit()

copyBit(mixed  $i, mixed  $j, mixed  $versionBits) : mixed

Parameters

mixed $i
mixed $j
mixed $versionBits

Returns

mixed —