Lines Matching defs:items
398 * Input items.
401 protected $items;
403 // Reed-Solomon items
406 * Reed-Solomon items.
613 $this->items = array();
680 $this->datacode = $this->getByteStream($this->items);
1294 $this->items = $this->appendNewInputItem($this->items, self::QR_MODE_NM, $run, str_split($this->dataStr));
1333 $this->items = $this->appendNewInputItem($this->items, self::QR_MODE_AN, $run, str_split($this->dataStr));
1346 $this->items = $this->appendNewInputItem($this->items, self::QR_MODE_KJ, $p, str_split($this->dataStr));
1395 $this->items = $this->appendNewInputItem($this->items, self::QR_MODE_8B, $run, str_split($this->dataStr));
1647 * @param $items (arrray) input items
1651 * @return items
1654 protected function appendNewInputItem($items, $mode, $size, $data) {
1657 $items[] = $newitem;
1659 return $items;
1664 * @param $items (array)
1668 * @return array items
1670 protected function insertStructuredAppendHeader($items, $size, $index, $parity) {
1679 array_unshift($items, $entry);
1680 return $items;
1685 * @param $items (array)
1688 protected function calcParity($items) {
1690 foreach ($items as $item) {
1846 * @param $items (array)
1850 protected function estimateBitStreamSize($items, $version) {
1855 foreach ($items as $item) {
1890 * @param $items (array)
1893 protected function estimateVersion($items) {
1898 $bits = $this->estimateBitStreamSize($items, $prev);
1966 * @param $items (array)
1967 * @return array of items and total bits
1969 protected function createBitStream($items) {
1971 foreach ($items as $key => $item) {
1972 $items[$key] = $this->encodeBitStream($item, $this->version);
1973 $bits = count($items[$key]['bstream']);
1976 return array($items, $total);
1981 * @param $items (array)
1982 * @return array items
1984 protected function convertData($items) {
1985 $ver = $this->estimateVersion($items);
1990 $cbs = $this->createBitStream($items);
1991 $items = $cbs[0];
2005 return $items;
2043 * @param $items (array) items
2046 protected function mergeBitStream($items) {
2047 $items = $this->convertData($items);
2048 if (!is_array($items)) {
2052 foreach ($items as $item) {
2060 * @param $items (int)
2063 protected function getBitStream($items) {
2064 $bstream = $this->mergeBitStream($items);
2070 * @param $items (int)
2073 protected function getByteStream($items) {
2074 $bstream = $this->getBitStream($items);