jpeg_finish_decompress

Name

jpeg_finish_decompress -- complete decompression cycle

Synopsis

#include <jpeglib.h>

boolean jpeg_finish_decompress(j_decompress_ptr cinfo);

Description

The function jpeg_finish_decompress() shall set the decompression state to completion. Any remaining input data shall be decoded and consumed. jpeg_finish_decompress() shall also release working memory associated with the JPEG object.

Return Value

jpeg_finish_decompress() shall return FALSE if data source requests suspension of the decompressor. Otherwise, jpeg_finish_decompress() shall return TRUE.

Errors

jpeg_finish_decompress() shall return error if the function is invoked before reading the specified number of scanlines.