Lines Matching refs:substr

321 				$unitSp = ord(substr($data, $j + 7, 1));
323 $ppUx = $this->twoBytesToInt(substr($data, $j + 8, 2)); // horizontal pixels per meter, usually set to zero
390 $length = $this->twoBytesToInt(substr($data, $pos - 2, 2)) - 16;
393 $icc[$sn - 1] = substr($data, $pos + 14, $length);
400 if (substr($icc, 36, 4) !== 'acsp') {
404 $input = substr($icc, 16, 4);
405 $output = substr($icc, 20, 4);
442 if (substr($data, 12, 4) !== 'IHDR') {
446 $w = $this->fourBytesToInt(substr($data, 16, 4));
447 $h = $this->fourBytesToInt(substr($data, 20, 4));
448 $bpc = ord(substr($data, 24, 1));
454 $ct = ord(substr($data, 25, 1));
488 if (ord(substr($data, 26, 1)) !== 0) {
492 if (ord(substr($data, 27, 1)) !== 0) {
496 if (ord(substr($data, 28, 1)) !== 0) {
503 $unitSp = ord(substr($data, $j + 12, 1));
505 $ppUx = $this->fourBytesToInt(substr($data, $j + 4, 4)); // horizontal pixels per meter, usually set to zero
515 $gAMA = $this->fourBytesToInt(substr($data, $j + 4, 4)); // Gamma value times 100000
608 $n = $this->fourBytesToInt(substr($data, $p - 4, 4));
609 $transparency = substr($data, $p + 4, $n);
631 $n = $this->fourBytesToInt(substr($data, $p - 4, 4));
632 $t = substr($data, $p + 4, $n);
634 $trns = [$this->translateValue(substr($t, 0, 2), $bpc)];
637 $trns[0] = $this->translateValue(substr($t, 0, 2), $bpc);
638 $trns[1] = $this->translateValue(substr($t, 2, 2), $bpc);
639 $trns[2] = $this->translateValue(substr($t, 4, 2), $bpc);
740 $n = $this->fourBytesToInt(substr($data, ($p - 8), 4));
741 $nullsep = strpos(substr($data, $p, 80), chr(0));
742 $icc = substr($data, ($p + $nullsep + 2), ($n - ($nullsep + 2)));
745 if (substr($icc, 36, 4) !== 'acsp') {
749 $input = substr($icc, 16, 4);
750 $output = substr($icc, 20, 4);
811 $n = $this->fourBytesToInt(substr($data, $p, 4));
813 $type = substr($data, $p, 4);
817 $pal = substr($data, $p, $n);
822 $t = substr($data, $p, $n);
825 $trns = [ord(substr($t, 1, 1))];
827 $trns = [ord(substr($t, 1, 1)), ord(substr($t, 3, 1)), ord(substr($t, 5, 1))];
836 $pngdata.=substr($data, $p, $n);
840 $nullsep = strpos(substr($data, $p, 80), chr(0));
841 $icc = substr($data, $p + $nullsep + 2, $n - ($nullsep + 2));
844 if (substr($icc, 36, 4) !== 'acsp') {
848 $input = substr($icc, 16, 4);
849 $output = substr($icc, 20, 4);
1112 $bpc = ord(substr($data, 24, 1));
1128 $n = $this->fourBytesToInt(substr($data, $p - 4, 4));
1129 $transparency = substr($data, $p + 4, $n);
1149 $n = $this->fourBytesToInt(substr($data, $p - 4, 4));
1150 $t = substr($data, $p + 4, $n);
1152 $trns = [$this->translateValue(substr($t, 0, 2), $bpc)];
1155 $trns[0] = $this->translateValue(substr($t, 0, 2), $bpc);
1156 $trns[1] = $this->translateValue(substr($t, 2, 2), $bpc);
1157 $trns[2] = $this->translateValue(substr($t, 4, 2), $bpc);
1205 $n = $this->fourBytesToInt(substr($data, ($p - 4), 4));
1206 $t = substr($data, $p + 4, $n);
1208 $trns = [$this->translateValue(substr($t, 0, 2), $bpc)];
1210 $trns[0] = $this->translateValue(substr($t, 0, 2), $bpc);
1211 $trns[1] = $this->translateValue(substr($t, 2, 2), $bpc);
1212 $trns[2] = $this->translateValue(substr($t, 4, 2), $bpc);
1337 $p += $this->twoBytesToInt(substr($data, $p, 2)); // Length of initial marker block
1338 $marker = substr($data, $p, 2);
1342 $p += $this->twoBytesToInt(substr($data, $p + 2, 2)) + 2; // Length of marker block
1343 $marker = substr($data, $p, 2);
1349 return substr($data, $p + 2, 10);
1354 $bpc = ord(substr($hdr, 2, 1));
1360 $h = $this->twoBytesToInt(substr($hdr, 3, 2));
1361 $w = $this->twoBytesToInt(substr($hdr, 5, 2));
1363 $channels = ord(substr($hdr, 7, 1));
1410 return (ord(substr($s, 0, 1)) << 8) + ord(substr($s, 1, 1));
1430 throw new \Mpdf\MpdfImageException(sprintf('%s (%s)', $msg, substr($file, 0, 256)));