PHP QrCode Liblary  2.0
 All Classes Functions Variables Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QRrsItem Class Reference

Reed-Solomon encoder item. More...

Public Member Functions

 modnn ($x)
 Modulo function in defined Field. More...
 
 encode_rs_char ($data, &$parity)
 Appends char into encoder. More...
 

Static Public Member Functions

static init_rs_char ($symsize, $gfpoly, $fcr, $prim, $nroots, $pad)
 Encoder initialisation. More...
 

Public Attributes

 $mm
 Bits per symbol.
 
 $nn
 Symbols per block (= (1<<mm)-1)
 
 $alpha_to = array()
 Log lookup table.
 
 $index_of = array()
 Antilog lookup table.
 
 $genpoly = array()
 Generator polynomial.
 
 $nroots
 Number of generator roots = number of parity symbols.
 
 $fcr
 First consecutive root, index form.
 
 $prim
 Primitive element, index form.
 
 $iprim
 Prim-th root of 1, index form.
 
 $pad
 Padding bytes in shortened block.
 
 $gfpoly
 Galois Field Polynomial.
 

Detailed Description

Reed-Solomon encoder item.

Member Function Documentation

QRrsItem::encode_rs_char (   $data,
$parity 
)

Appends char into encoder.

Parameters
Stringinput
Arrayparity table
static QRrsItem::init_rs_char (   $symsize,
  $gfpoly,
  $fcr,
  $prim,
  $nroots,
  $pad 
)
static

Encoder initialisation.

Parameters
Integer$symsizesymbol size, bit count (1..8)
Integer$gfpolyGalois Field Polynomial
Integer$fcrFirst consecutive root
Integer$primPrimitive element
Integer$nrootsNumber of generator roots = number of parity symbols
Integer$padPadding bytes in shortened block
QRrsItem::modnn (   $x)

Modulo function in defined Field.

Parameters
Integer$xnumber to be modulo-mapped

The documentation for this class was generated from the following file: