jpeg_consume_input

Name

jpeg_consume_input -- decode input data

Synopsis

#include <jpeglib.h>

int jpeg_consume_input(j_decompress_ptr cinfo);

Description

jpeg_consume_input() shall decode the input data as it arrives, even if it is not to be displayed.

Return Value

jpeg_consume_input() shall return with one of the following return codes:

JPEG_REACHED_SOS 

reached SOS marker

JPEG_REACHED_EOI 

reached EOI marker

JPEG_ROW_COMPLETED 

completed reading one MCU row of compressed data

JPEG_SCAN_COMPLETED 

completed reading last MCU row of compressed scan

JPEG_SUSPENDED 

if data source module requests suspension of the decompressor.