jpeg_set_defaults

Name

jpeg_set_defaults -- set compression parameters to default values

Synopsis

#include <jpeglib.h>

void jpeg_set_defaults(j_compress_ptr cinfo);

Description

The function jpeg_set_defaults() shall set all JPEG compression parameters to default values using the input image's color space.

Errors

jpeg_set_defaults() shall return error and exit if the state of the compression object indicates that the compression cycle has started.