Main MRPT website > C++ reference for MRPT 1.9.9
Macros | Functions
jcparam.cpp File Reference
#include "jinclude.h"
#include "mrpt_jpeglib.h"

Go to the source code of this file.

Macros

#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_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)
 

Macro Definition Documentation

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 10 of file jcparam.cpp.

◆ SET_COMP

#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))
GLuint index
Definition: glext.h:4054
GLuint id
Definition: glext.h:3909
jpeg_component_info * compptr
Definition: jidctflt.cpp:36

Referenced by jpeg_set_colorspace().

Function Documentation

◆ add_huff_table()

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

Definition at line 136 of file jcparam.cpp.

References ERREXIT, FALSE, jpeg_alloc_huff_table(), MEMCOPY, SIZEOF, and val.

Referenced by std_huff_tables().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_a_scan()

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

Definition at line 509 of file jcparam.cpp.

Referenced by jpeg_simple_progression().

Here is the caller graph for this function:

◆ fill_dc_scans()

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

Definition at line 542 of file jcparam.cpp.

References fill_scans(), and MAX_COMPS_IN_SCAN.

Referenced by jpeg_simple_progression().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_scans()

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

Definition at line 523 of file jcparam.cpp.

Referenced by fill_dc_scans(), and jpeg_simple_progression().

Here is the caller graph for this function:

◆ jpeg_add_quant_table()

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 19 of file jcparam.cpp.

References CSTATE_START, DCTSIZE2, ERREXIT1, FALSE, jpeg_alloc_quant_table(), and NUM_QUANT_TBLS.

Referenced by jpeg_set_linear_quality().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jpeg_default_colorspace()

jpeg_default_colorspace ( j_compress_ptr  cinfo)

Definition at line 389 of file jcparam.cpp.

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

Referenced by jpeg_set_defaults().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jpeg_quality_scaling()

jpeg_quality_scaling ( int  quality)

Definition at line 91 of file jcparam.cpp.

Referenced by jpeg_set_quality().

Here is the caller graph for this function:

◆ jpeg_set_colorspace()

jpeg_set_colorspace ( j_compress_ptr  cinfo,
J_COLOR_SPACE  colorspace 
)

Definition at line 422 of file jcparam.cpp.

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

Referenced by jpeg_copy_critical_parameters(), and jpeg_default_colorspace().

Here is the caller graph for this function:

◆ jpeg_set_defaults()

jpeg_set_defaults ( j_compress_ptr  cinfo)

Definition at line 299 of file jcparam.cpp.

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

Referenced by jpeg_copy_critical_parameters(), and mrpt::utils::CImage::saveToStreamAsJPEG().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jpeg_set_linear_quality()

jpeg_set_linear_quality ( j_compress_ptr  cinfo,
int  scale_factor,
boolean  force_baseline 
)

Definition at line 60 of file jcparam.cpp.

References DCTSIZE2, and jpeg_add_quant_table().

Referenced by jpeg_set_quality().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jpeg_set_quality()

jpeg_set_quality ( j_compress_ptr  cinfo,
int  quality,
boolean  force_baseline 
)

Definition at line 117 of file jcparam.cpp.

References jpeg_quality_scaling(), and jpeg_set_linear_quality().

Referenced by jpeg_set_defaults(), and mrpt::utils::CImage::saveToStreamAsJPEG().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jpeg_simple_progression()

jpeg_simple_progression ( j_compress_ptr  cinfo)

Definition at line 571 of file jcparam.cpp.

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

Here is the call graph for this function:

◆ std_huff_tables()

std_huff_tables ( j_compress_ptr  cinfo)

Definition at line 164 of file jcparam.cpp.

References add_huff_table().

Referenced by jpeg_set_defaults().

Here is the call graph for this function:
Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019