jcparam.c File Reference

#include "jinclude.h"
#include "jpeglib.h"

Go to the source code of this file.

Defines

#define JPEG_INTERNALS
#define SET_COMP(index, id, hsamp, vsamp, quant, dctbl, actbl)

Functions

 jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline)
 jpeg_default_qtables (j_compress_ptr cinfo, boolean force_baseline)
 jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor, boolean force_baseline)
 jpeg_quality_scaling (int quality)
 jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline)
 add_huff_table (j_compress_ptr cinfo, JHUFF_TBL **htblptr, const UINT8 *bits, const UINT8 *val)
 std_huff_tables (j_compress_ptr cinfo)
 jpeg_set_defaults (j_compress_ptr cinfo)
 jpeg_default_colorspace (j_compress_ptr cinfo)
 jpeg_set_colorspace (j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
 fill_a_scan (jpeg_scan_info *scanptr, int ci, int Ss, int Se, int Ah, int Al)
 fill_scans (jpeg_scan_info *scanptr, int ncomps, int Ss, int Se, int Ah, int Al)
 fill_dc_scans (jpeg_scan_info *scanptr, int ncomps, int Ah, int Al)
 jpeg_simple_progression (j_compress_ptr cinfo)

Variables

static const unsigned int std_luminance_quant_tbl [DCTSIZE2]
static const unsigned int std_chrominance_quant_tbl [DCTSIZE2]


Define Documentation

#define JPEG_INTERNALS

Definition at line 14 of file jcparam.c.

#define SET_COMP ( index,
id,
hsamp,
vsamp,
quant,
dctbl,
actbl   ) 

Value:

(compptr = &cinfo->comp_info[index], \
   compptr->component_id = (id), \
   compptr->h_samp_factor = (hsamp), \
   compptr->v_samp_factor = (vsamp), \
   compptr->quant_tbl_no = (quant), \
   compptr->dc_tbl_no = (dctbl), \
   compptr->ac_tbl_no = (actbl) )

Referenced by jpeg_set_colorspace().


Function Documentation

add_huff_table ( j_compress_ptr  cinfo,
JHUFF_TBL **  htblptr,
const UINT8 bits,
const UINT8 val 
)

Definition at line 169 of file jcparam.c.

References ERREXIT, FALSE, jpeg_alloc_huff_table(), len, MEMCOPY, NULL, and SIZEOF.

Referenced by std_huff_tables().

fill_a_scan ( jpeg_scan_info scanptr,
int  ci,
int  Ss,
int  Se,
int  Ah,
int  Al 
)

Definition at line 497 of file jcparam.c.

Referenced by jpeg_simple_progression().

fill_dc_scans ( jpeg_scan_info scanptr,
int  ncomps,
int  Ah,
int  Al 
)

Definition at line 531 of file jcparam.c.

References fill_scans(), and MAX_COMPS_IN_SCAN.

Referenced by jpeg_simple_progression().

fill_scans ( jpeg_scan_info scanptr,
int  ncomps,
int  Ss,
int  Se,
int  Ah,
int  Al 
)

Definition at line 512 of file jcparam.c.

Referenced by fill_dc_scans(), and jpeg_simple_progression().

jpeg_add_quant_table ( j_compress_ptr  cinfo,
int  which_tbl,
const unsigned int *  basic_table,
int  scale_factor,
boolean  force_baseline 
)

Definition at line 24 of file jcparam.c.

References CSTATE_START, DCTSIZE2, ERREXIT1, FALSE, i, jpeg_alloc_quant_table(), RooFitShortHand::L(), NULL, and NUM_QUANT_TBLS.

Referenced by jpeg_default_qtables(), and jpeg_set_linear_quality().

jpeg_default_colorspace ( j_compress_ptr  cinfo  ) 

Definition at line 381 of file jcparam.c.

References ERREXIT, JCS_CMYK, JCS_GRAYSCALE, JCS_RGB, JCS_UNKNOWN, JCS_YCbCr, JCS_YCCK, and jpeg_set_colorspace().

Referenced by jpeg_set_defaults().

jpeg_default_qtables ( j_compress_ptr  cinfo,
boolean  force_baseline 
)

Definition at line 91 of file jcparam.c.

References jpeg_add_quant_table(), std_chrominance_quant_tbl, and std_luminance_quant_tbl.

jpeg_quality_scaling ( int  quality  ) 

Definition at line 123 of file jcparam.c.

Referenced by jpeg_set_quality().

jpeg_set_colorspace ( j_compress_ptr  cinfo,
J_COLOR_SPACE  colorspace 
)

Definition at line 413 of file jcparam.c.

References compptr, CSTATE_START, ERREXIT, ERREXIT1, ERREXIT2, FALSE, JCS_CMYK, JCS_GRAYSCALE, JCS_RGB, JCS_UNKNOWN, JCS_YCbCr, JCS_YCCK, MAX_COMPONENTS, SET_COMP, TRUE, and x52.

Referenced by jpeg_copy_critical_parameters(), jpeg_default_colorspace(), and jtransform_adjust_parameters().

jpeg_set_defaults ( j_compress_ptr  cinfo  ) 

Definition at line 285 of file jcparam.c.

References BITS_IN_JSAMPLE, CSTATE_START, ERREXIT1, FALSE, i, JDCT_DEFAULT, jpeg_default_colorspace(), jpeg_set_quality(), JPOOL_PERMANENT, MAX_COMPONENTS, NULL, NUM_ARITH_TBLS, SIZEOF, std_huff_tables(), and TRUE.

Referenced by ASImage2jpeg(), and jpeg_copy_critical_parameters().

jpeg_set_linear_quality ( j_compress_ptr  cinfo,
int  scale_factor,
boolean  force_baseline 
)

Definition at line 106 of file jcparam.c.

References jpeg_add_quant_table(), std_chrominance_quant_tbl, and std_luminance_quant_tbl.

Referenced by jpeg_set_quality().

jpeg_set_quality ( j_compress_ptr  cinfo,
int  quality,
boolean  force_baseline 
)

Definition at line 149 of file jcparam.c.

References jpeg_quality_scaling(), and jpeg_set_linear_quality().

Referenced by ASImage2jpeg(), and jpeg_set_defaults().

jpeg_simple_progression ( j_compress_ptr  cinfo  ) 

Definition at line 559 of file jcparam.c.

References CSTATE_START, ERREXIT1, fill_a_scan(), fill_dc_scans(), fill_scans(), JCS_YCbCr, JPOOL_PERMANENT, MAX, MAX_COMPS_IN_SCAN, NULL, and SIZEOF.

std_huff_tables ( j_compress_ptr  cinfo  ) 

Definition at line 199 of file jcparam.c.

References add_huff_table().

Referenced by jpeg_set_defaults().


Variable Documentation

const unsigned int std_chrominance_quant_tbl[DCTSIZE2] [static]

Initial value:

 {
  17,  18,  24,  47,  99,  99,  99,  99,
  18,  21,  26,  66,  99,  99,  99,  99,
  24,  26,  56,  99,  99,  99,  99,  99,
  47,  66,  99,  99,  99,  99,  99,  99,
  99,  99,  99,  99,  99,  99,  99,  99,
  99,  99,  99,  99,  99,  99,  99,  99,
  99,  99,  99,  99,  99,  99,  99,  99,
  99,  99,  99,  99,  99,  99,  99,  99
}

Definition at line 78 of file jcparam.c.

Referenced by jpeg_default_qtables(), and jpeg_set_linear_quality().

const unsigned int std_luminance_quant_tbl[DCTSIZE2] [static]

Initial value:

 {
  16,  11,  10,  16,  24,  40,  51,  61,
  12,  12,  14,  19,  26,  58,  60,  55,
  14,  13,  16,  24,  40,  57,  69,  56,
  14,  17,  22,  29,  51,  87,  80,  62,
  18,  22,  37,  56,  68, 109, 103,  77,
  24,  35,  55,  64,  81, 104, 113,  92,
  49,  64,  78,  87, 103, 121, 120, 101,
  72,  92,  95,  98, 112, 100, 103,  99
}

Definition at line 68 of file jcparam.c.

Referenced by jpeg_default_qtables(), and jpeg_set_linear_quality().


Generated on Tue Jul 5 15:57:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1