jpeg_CreateCompress
Name
jpeg_CreateCompress -- allocate and initialize a JPEG compression object
Synopsis
void
jpeg_CreateCompress
(j_compress_ptr
cinfo, int
version, size_t
size);
Description
The function jpeg_CreateCompress() shall allocate and
initialize a JPEG compression object of type struct jpeg_compress_struct.
The error handler structure of type struct jpeg_error_mgr must be initialized
before making a call to jpeg_CreateCompress().
JPEG_LIB_VERSION and size of the structure used to hold the JPEG compression
object struct jpeg_compress_struct must be passed in arguments version and size
respectively.
Errors
jpeg_CreateCompress() shall exit via the error handler if
it fails to allocate memory.