jpeg_new_colormap

Name

jpeg_new_colormap -- switch to a new external colormap between output passes

Synopsis

#include <jpeglib.h>

void jpeg_new_colormap(j_decompress_ptr cinfo);

Description

jpeg_new_colormap() shall select 2-pass quantizer for using an external colormap and notify the quantizer of the switch to a colormap that is different from the one used in the previous pass. The new colormap must be set using cinfo.colormap before a call to jpeg_new_colormap().