jpeg_finish_compress

Name

jpeg_finish_compress -- complete the compression cycle

Synopsis

#include <jpeglib.h>

void jpeg_finish_compress(j_compress_ptr cinfo);

Description

The function jpeg_finish_compress() shall set the compression state to completion. Any remaining bufferload of data shall be written to the data destination. jpeg_finish_compress() shall also release working memory associated with the JPEG object.

Errors

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