jpeg_start_compress -- initialize a compression cycle


#include <jpeglib.h>

void jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables);


The function jpeg_start_compress() shall initialize state for a JPEG compression cycle. The compression parameters, data destination and source image information must be set prior to the invocation of jpeg_start_compress(). Setting write_all_tables to TRUE shall indicate that a complete JPEG interchange datastream will be written and all Huffman tables shall be emited. If write_all_tables is set to FALSE, the default behavior shall be to emit a pure abbreviated image with no tables.