jpeg_CreateDecompress

Name

jpeg_CreateDecompress -- allocate and initialize a JPEG decompression object

Synopsis

#include <jpeglib.h>

void jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t size);

Description

The function jpeg_CreateDecompress() shall allocate and initialize a JPEG decompression object of type struct jpeg_decompress_struct. The error handler structure of type struct jpeg_error_mgr must be initialized before making a call to jpeg_CreateDecompress(). JPEG_LIB_VERSION and size of the structure used to hold the JPEG compression object struct jpeg_decompress_struct must be passed in arguments version and size respectively.

Errors

jpeg_CreateDecompress() shall exit via the error handler if it fails to allocate memory.