\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 : 

Type

$parsedVersion

$parsedVersion : 

Type

$parsedFormatInfo

$parsedFormatInfo : 

Type

$mirror

$mirror : 

Type

Methods

__construct()

__construct(  $bitMatrix) 

Parameters

$bitMatrix

Throws

\Zxing\FormatException

if dimension is not >= 21 and 1 mod 4

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() : \Zxing\Qrcode\Decoder\{@link

<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

\Zxing\Qrcode\Decoder\{@link —

FormatInformation} encapsulating the QR Code's format info

readVersion()

readVersion() : \Zxing\Qrcode\Decoder\{@link

<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

\Zxing\Qrcode\Decoder\{@link —

Version} encapsulating the QR Code's version

remask()

remask() 

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

setMirror()

setMirror(  $mirror) 

Prepare the parser for a mirrored operation.

This flag has effect only on the \Zxing\Qrcode\Decoder#readFormatInformation() and the \Zxing\Qrcode\Decoder#readVersion(). Before proceeding with \Zxing\Qrcode\Decoder#readCodewords() the \Zxing\Qrcode\Decoder#mirror() method should be called.

Parameters

$mirror

mirror()

mirror() 

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

copyBit()

copyBit(  $i,   $j,   $versionBits) 

Parameters

$i
$j
$versionBits