~ubuntu-branches/ubuntu/raring/libjpeg-turbo/raring-updates

« back to all changes in this revision

Viewing changes to libjpeg.txt

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-09-20 00:18:15 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20120920001815-c1zmkkxe9tbljr0y
Tags: upstream-1.2.1
ImportĀ upstreamĀ versionĀ 1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
850
850
        premise of this routine collapses.  Caveat user.
851
851
 
852
852
jpeg_default_qtables (j_compress_ptr cinfo, boolean force_baseline)
853
 
        [libjpeg v7/v8 only] Set default quantization tables with linear
854
 
        q_scale_factor[] values (see below).
 
853
        [libjpeg v7+ API/ABI emulation only]
 
854
        Set default quantization tables with linear q_scale_factor[] values
 
855
        (see below).
855
856
 
856
857
jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl,
857
858
                      const unsigned int *basic_table,
976
977
        slot 1 for chrominance.
977
978
 
978
979
int q_scale_factor[NUM_QUANT_TBLS]
979
 
        [libjpeg v7+ only] Linear quantization scaling factors (0-100, default
980
 
        100) for use with jpeg_default_qtables().
 
980
        [libjpeg v7+ API/ABI emulation only]
 
981
        Linear quantization scaling factors (0-100, default 100)
 
982
        for use with jpeg_default_qtables().
981
983
        See rdswitch.c and cjpeg.c for an example of usage.
982
984
        Note that the q_scale_factor[] values use "linear" scales, so JPEG
983
985
        quality levels chosen by the user must be converted to these scales
984
 
        using jpeg_quality_scaling().  Here is an example which corresponds to
 
986
        using jpeg_quality_scaling().  Here is an example that corresponds to
985
987
        cjpeg -quality 90,70:
986
988
 
987
989
                jpeg_set_defaults(cinfo);
1012
1014
        any need to mess with providing your own Huffman tables.
1013
1015
 
1014
1016
 
1015
 
[libjpeg v7+ only] The actual dimensions of the JPEG image that will be written
1016
 
to the file are given by the following fields.  These are computed from the
1017
 
input image dimensions and the compression parameters by jpeg_start_compress().
1018
 
You can also call jpeg_calc_jpeg_dimensions() to obtain the values that will
1019
 
result from the current parameter settings.
 
1017
[libjpeg v7+ API/ABI emulation only]
 
1018
The actual dimensions of the JPEG image that will be written to the file are
 
1019
given by the following fields.  These are computed from the input image
 
1020
dimensions and the compression parameters by jpeg_start_compress().  You can
 
1021
also call jpeg_calc_jpeg_dimensions() to obtain the values that will result
 
1022
from the current parameter settings.
1020
1023
 
1021
1024
JDIMENSION jpeg_width           Actual dimensions of output image.
1022
1025
JDIMENSION jpeg_height