Lines Matching refs:bits

207 	 * Number of header bits for structured mode
712 // remainder bits
892 * Write Format Information on frame and returns the number of black bits
1742 * @return int number of bits
1746 $bits = ($w * 10);
1749 $bits += 4;
1753 $bits += 7;
1757 return $bits;
1763 * @return int number of bits
1766 $bits = (int)($size * 5.5); // (size / 2 ) * 11
1768 $bits += 6;
1770 return $bits;
1776 * @return int number of bits
1785 * @return int number of bits
1848 * @return int bits
1851 $bits = 0;
1858 $bits = $this->estimateBitsModeNum($item['size']);
1862 $bits = $this->estimateBitsModeAn($item['size']);
1866 $bits = $this->estimateBitsMode8($item['size']);
1870 $bits = $this->estimateBitsModeKanji($item['size']);
1883 $bits += $num * (4 + $l);
1885 return $bits;
1898 $bits = $this->estimateBitStreamSize($items, $prev);
1899 $version = $this->getMinimumVersion((int)(($bits + 7) / 8), $this->level);
1911 * @param $bits (int)
1914 protected function lengthOfCode($mode, $version, $bits) {
1915 $payload = $bits - 4 - $this->lengthIndicator($mode, $version);
1967 * @return array of items and total bits
1973 $bits = count($items[$key]['bstream']);
1974 $total += $bits;
1992 $bits = $cbs[1];
1993 if ($bits < 0) {
1996 $ver = $this->getMinimumVersion((int)(($bits + 7) / 8), $this->level);
2017 $bits = count($bstream);
2020 if ($maxbits == $bits) {
2023 if ($maxbits - $bits < 5) {
2024 return $this->appendNum($bstream, $maxbits - $bits, 0);
2026 $bits += 4;
2027 $words = (int)(($bits + 7) / 8);
2029 $padding = $this->appendNum($padding, $words * 8 - $bits + 4, 0);
2059 * Returns a stream of bits.
2069 * Pack all bit streams padding bits into a byte array.
2093 * @param $bits (int) number of bits
2097 protected function newFromNum($bits, $num) {
2098 $bstream = $this->allocate($bits);
2099 $mask = 1 << ($bits - 1);
2100 for ($i=0; $i<$bits; ++$i) {
2154 * @param $bits (int) number of bits
2158 protected function appendNum($bitstream, $bits, $num) {
2159 if ($bits == 0) {
2162 $b = $this->newFromNum($bits, $num);
2266 * Return the numer of remainder bits.
2268 * @return int number of remainder bits
2295 * @return int the size of the appropriate length indicator (bits).
2328 $bits = $this->lengthTableBits[$mode][$l];
2329 $words = (1 << $bits) - 1;
2433 * Return BCH encoded version information pattern that is used for the symbol of version 7 or greater. Use lower 18 bits.
2653 * @param $symsize (int) symbol size, bits
2694 * @param $symsize (int) symbol size, bits
2787 $MM =& $rs['mm']; // bits per symbol