Decoder
in package
FinalYes
The main class which implements QR Code decoding -- as opposed to locating and extracting the QR Code from an image.
Tags
Table of Contents
Properties
- $bitBuffer : BitBuffer
- $eccLevel : EccLevel|null
- $maskPattern : MaskPattern|null
- $options : SettingsContainerInterface|QROptions
- $version : Version|null
Methods
- __construct() : mixed
- decode() : DecoderResult
- Decodes a QR Code represented as a BitMatrix.
- decodeAlphanumSegment() : string
- decodeBitStream() : DecoderResult
- Decode the contents of that stream of bytes
- decodeMatrix() : DecoderResult
Properties
$bitBuffer
private
BitBuffer
$bitBuffer
$eccLevel
private
EccLevel|null
$eccLevel
= null
$maskPattern
private
MaskPattern|null
$maskPattern
= null
$options
private
SettingsContainerInterface|QROptions
$options
$version
private
Version|null
$version
= null
Methods
__construct()
public
__construct([SettingsContainerInterface|QROptions $options = new QROptions() ]) : mixed
Parameters
- $options : SettingsContainerInterface|QROptions = new QROptions()
decode()
Decodes a QR Code represented as a BitMatrix.
public
decode(LuminanceSourceInterface $source) : DecoderResult
A 1 or "true" is taken to mean a black module.
Parameters
- $source : LuminanceSourceInterface
Tags
Return values
DecoderResultdecodeAlphanumSegment()
private
decodeAlphanumSegment(int $versionNumber, bool $fc1InEffect) : string
Parameters
- $versionNumber : int
- $fc1InEffect : bool
Return values
stringdecodeBitStream()
Decode the contents of that stream of bytes
private
decodeBitStream(BitBuffer $bitBuffer) : DecoderResult
Parameters
- $bitBuffer : BitBuffer
Tags
Return values
DecoderResultdecodeMatrix()
private
decodeMatrix(BitMatrix $matrix) : DecoderResult
Parameters
- $matrix : BitMatrix