Release Notes
Open Source Used In AsyncOS 8.8 for Cisco Web Security Appliances
65
jpeg_set_color_space() if you want to change these.
boolean optimize_coding
TRUE causes the compressor to compute optimal Huffman coding tables
for the image. This requires an extra pass over the data and
therefore costs a good deal of space and time. The default is
FALSE, which tells the compressor to use the supplied or default
Huffman tables. In most cases optimal tables save only a few percent
of file size compared to the default tables. Note that when this is
TRUE, you need not supply Huffman tables at all, and any you do
supply will be overwritten.
unsigned int restart_interval
int restart_in_rows
To emit restart markers in the JPEG file, set one of these nonzero.
Set restart_interval to specify the exact interval in MCU blocks.
Set restart_in_rows to specify the interval in MCU rows. (If
restart_in_rows is not 0, then restart_interval is set after the
image width in MCUs is computed.) Defaults are zero (no restarts).
One restart marker per MCU row is often a good choice.
NOTE: the overhead of restart markers is higher in grayscale JPEG
files than in color files, and MUCH higher in progressive JPEGs.
If you use restarts, you may want to use larger intervals in those
cases.
const jpeg_scan_info * scan_info
int num_scans
By default, scan_info is NULL; this causes the compressor to write a
single-scan sequential JPEG file. If not NULL, scan_info points to
an array of scan definition records of length num_scans. The
compressor will then write a JPEG file having one scan for each scan
definition record. This is used to generate noninterleaved or
progressive JPEG files. The library checks that the scan array
defines a valid JPEG scan sequence. (jpeg_simple_progression creates
a suitable scan definition array for progressive JPEG.) This is
discussed further under "Progressive JPEG support".
boolean do_fancy_downsampling
If TRUE, use direct DCT scaling with DCT size > 8 for downsampling
of chroma components.
If FALSE, use only DCT size <= 8 and simple separate downsampling.
Default is TRUE.
For better image stability in multiple generation compression cycles
it is preferable that this value matches the corresponding
do_fancy_upsampling value in decompression.
int smoothing_factor
If non-zero, the input image is smoothed; the value should be 1 for