Progressively scans jpeg data and instructs caller when enough data is available to decode a partial image.
This class treats any sequence of bytes starting with 0xFFD8 as a valid jpeg image
Users should call parseMoreData method each time new chunk of data is received. The buffer passed as a parameter should include entire image data received so far.
If this is the first time calling this method, the buffer will be checked to make sure it starts with SOI marker (0xffd8).
If this is the first time calling this method, the buffer will be checked to make sure it starts with SOI marker (0xffd8). If the image has been identified as a non-JPEG, data will be ignored and false will be returned immediately on all subsequent calls. This object maintains state of the position of the last read byte. On repeated calls to this method, it will continue from where it left off.
|encodedImage||Next set of bytes received by the caller|