protected function getNextMarker(&$i, &$sofStartRead)
	{
		$this->skipStartPadding($i, $sofStartRead);

		do {
			if ($i >= $this->dataLength)
			{
				return self::JPEG_EOI_MARKER;
			}
			$marker = $this->data[$i];
			$i++;
		} while ($marker == self::SOF_START_MARKER);

		return $marker;
	}