Main MRPT website > C++ reference for MRPT 1.5.7
Classes | Macros | Typedefs | Enumerations | Functions | Variables
mrpt_jpeglib.h File Reference
#include "jmorecfg.h"
#include "jpegint.h"
#include "jerror.h"
#include "mrpt_jconfig.h"
Include dependency graph for mrpt_jpeglib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JQUANT_TBL
 
struct  JHUFF_TBL
 
struct  jpeg_component_info
 
struct  jpeg_scan_info
 
struct  jpeg_marker_struct
 
struct  jpeg_common_struct
 
struct  jpeg_compress_struct
 
struct  jpeg_decompress_struct
 
struct  jpeg_error_mgr
 
struct  jpeg_progress_mgr
 
struct  jpeg_destination_mgr
 
struct  jpeg_source_mgr
 
struct  jpeg_memory_mgr
 

Macros

#define JPEG_LIB_VERSION   62 /* Version 6b */
 
#define DCTSIZE   8 /* The basic DCT block is 8x8 samples */
 
#define DCTSIZE2   64 /* DCTSIZE squared; # of elements in a block */
 
#define NUM_QUANT_TBLS   4 /* Quantization tables are numbered 0..3 */
 
#define NUM_HUFF_TBLS   4 /* Huffman tables are numbered 0..3 */
 
#define NUM_ARITH_TBLS   16 /* Arith-coding tables are numbered 0..15 */
 
#define MAX_COMPS_IN_SCAN   4 /* JPEG limit on # of components in one scan */
 
#define MAX_SAMP_FACTOR   4 /* JPEG limit on sampling factors */
 
#define C_MAX_BLOCKS_IN_MCU   10 /* compressor's limit on blocks per MCU */
 
#define D_MAX_BLOCKS_IN_MCU   10 /* decompressor's limit on blocks per MCU */
 
#define JDCT_DEFAULT   JDCT_ISLOW
 
#define JDCT_FASTEST   JDCT_IFAST
 
#define jpeg_common_fields
 
#define JMSG_LENGTH_MAX   200 /* recommended size of format_message buffer */
 
#define JMSG_STR_PARM_MAX   80
 
#define JPOOL_PERMANENT   0 /* lasts until master record is destroyed */
 
#define JPOOL_IMAGE   1 /* lasts until done with image/datastream */
 
#define JPOOL_NUMPOOLS   2
 
#define JPP(arglist)   arglist
 
#define jpeg_create_compress(cinfo)
 
#define jpeg_create_decompress(cinfo)
 
#define JPEG_SUSPENDED   0 /* Suspended due to lack of input data */
 
#define JPEG_HEADER_OK   1 /* Found valid image datastream */
 
#define JPEG_HEADER_TABLES_ONLY   2 /* Found valid table-specs-only datastream */
 
#define JPEG_REACHED_SOS   1 /* Reached start of new scan */
 
#define JPEG_REACHED_EOI   2 /* Reached end of image */
 
#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */
 
#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */
 
#define JPEG_RST0   0xD0 /* RST0 marker code */
 
#define JPEG_EOI   0xD9 /* EOI marker code */
 
#define JPEG_APP0   0xE0 /* APP0 marker code */
 
#define JPEG_COM   0xFE /* COM marker code */
 

Typedefs

typedef JSAMPLE FARJSAMPROW
 
typedef JSAMPROWJSAMPARRAY
 
typedef JSAMPARRAYJSAMPIMAGE
 
typedef JCOEF JBLOCK[DCTSIZE2]
 
typedef JBLOCK FARJBLOCKROW
 
typedef JBLOCKROWJBLOCKARRAY
 
typedef JBLOCKARRAYJBLOCKIMAGE
 
typedef JCOEF FARJCOEFPTR
 
typedef struct jpeg_marker_struct FARjpeg_saved_marker_ptr
 
typedef struct jpeg_common_structj_common_ptr
 
typedef struct jpeg_compress_structj_compress_ptr
 
typedef struct jpeg_decompress_structj_decompress_ptr
 
typedef struct jvirt_sarray_controljvirt_sarray_ptr
 
typedef struct jvirt_barray_controljvirt_barray_ptr
 

Enumerations

enum  J_COLOR_SPACE {
  JCS_UNKNOWN, JCS_GRAYSCALE, JCS_RGB, JCS_YCbCr,
  JCS_CMYK, JCS_YCCK
}
 
enum  J_DCT_METHOD { JDCT_ISLOW, JDCT_IFAST, JDCT_FLOAT }
 
enum  J_DITHER_MODE { JDITHER_NONE, JDITHER_ORDERED, JDITHER_FS }
 

Functions

typedef JMETHOD (boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
 
 EXTERN (struct jpeg_error_mgr *) jpeg_std_error JPP((struct jpeg_error_mgr *err))
 
 EXTERN (void) jpeg_CreateCompress JPP((j_compress_ptr cinfo
 
 EXTERN (int) jpeg_quality_scaling JPP((int quality))
 
 EXTERN (JQUANT_TBL *) jpeg_alloc_quant_table JPP((j_common_ptr cinfo))
 
 EXTERN (JHUFF_TBL *) jpeg_alloc_huff_table JPP((j_common_ptr cinfo))
 
 EXTERN (JDIMENSION) jpeg_write_scanlines JPP((j_compress_ptr cinfo
 
 EXTERN (jvirt_barray_ptr *) jpeg_read_coefficients JPP((j_decompress_ptr cinfo))
 

Variables

int version
 
int size_t structsize
 
FILE * outfile
 
FILE * infile
 
J_COLOR_SPACE colorspace
 
int quality
 
int boolean force_baseline
 
int scale_factor
 
int which_tbl
 
int const unsigned intbasic_table
 
boolean suppress
 
boolean write_all_tables
 
JSAMPARRAY scanlines
 
JSAMPARRAY JDIMENSION num_lines
 
JSAMPIMAGE data
 
int marker
 
int const JOCTETdataptr
 
int const JOCTET unsigned int datalen
 
int val
 
boolean require_image
 
JSAMPARRAY JDIMENSION max_lines
 
int scan_number
 
int marker_code
 
int unsigned int length_limit
 
int jpeg_marker_parser_method routine
 
jvirt_barray_ptrcoef_arrays
 
j_compress_ptr dstinfo
 
int desired
 

Macro Definition Documentation

#define C_MAX_BLOCKS_IN_MCU   10 /* compressor's limit on blocks per MCU */
#define D_MAX_BLOCKS_IN_MCU   10 /* decompressor's limit on blocks per MCU */

Definition at line 54 of file mrpt_jpeglib.h.

Referenced by jinit_d_coef_controller(), and per_scan_setup().

#define DCTSIZE   8 /* The basic DCT block is 8x8 samples */
#define DCTSIZE2   64 /* DCTSIZE squared; # of elements in a block */
#define JDCT_DEFAULT   JDCT_ISLOW

Definition at line 221 of file mrpt_jpeglib.h.

Referenced by default_decompress_parms(), and jpeg_set_defaults().

#define JDCT_FASTEST   JDCT_IFAST

Definition at line 224 of file mrpt_jpeglib.h.

#define JMSG_LENGTH_MAX   200 /* recommended size of format_message buffer */

Definition at line 649 of file mrpt_jpeglib.h.

Referenced by output_message().

#define JMSG_STR_PARM_MAX   80

Definition at line 657 of file mrpt_jpeglib.h.

#define JPEG_APP0   0xE0 /* APP0 marker code */

Definition at line 1044 of file mrpt_jpeglib.h.

Referenced by jcopy_markers_execute(), and jcopy_markers_setup().

#define JPEG_COM   0xFE /* COM marker code */

Definition at line 1045 of file mrpt_jpeglib.h.

Referenced by jcopy_markers_setup().

#define jpeg_common_fields
Value:
struct jpeg_error_mgr * err; /* Error handler module */\
struct jpeg_memory_mgr * mem; /* Memory manager module */\
struct jpeg_progress_mgr * progress; /* Progress monitor, or NULL if none */\
void * client_data; /* Available for use by application */\
boolean is_decompressor; /* So common code can tell which is which */\
int global_state /* For checking call sequence validity */
GLvoid *typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1745
int boolean
Definition: jmorecfg.h:224
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
void progress(int done)
A function that removes the path from a filename.

Definition at line 238 of file mrpt_jpeglib.h.

#define jpeg_create_compress (   cinfo)
Value:
(size_t) sizeof(struct jpeg_compress_struct))
jpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)
Definition: jcapimin.cpp:21
#define JPEG_LIB_VERSION
Definition: mrpt_jpeglib.h:30

Definition at line 891 of file mrpt_jpeglib.h.

Referenced by mrpt::utils::CImage::saveToStreamAsJPEG().

#define jpeg_create_decompress (   cinfo)
Value:
(size_t) sizeof(struct jpeg_decompress_struct))
jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)
Definition: jdapimin.cpp:21
#define JPEG_LIB_VERSION
Definition: mrpt_jpeglib.h:30

Definition at line 894 of file mrpt_jpeglib.h.

Referenced by mrpt::utils::CImage::loadFromStreamAsJPEG().

#define JPEG_EOI   0xD9 /* EOI marker code */

Definition at line 1043 of file mrpt_jpeglib.h.

Referenced by fill_input_buffer().

#define JPEG_HEADER_OK   1 /* Found valid image datastream */

Definition at line 963 of file mrpt_jpeglib.h.

Referenced by jpeg_read_header().

#define JPEG_HEADER_TABLES_ONLY   2 /* Found valid table-specs-only datastream */

Definition at line 964 of file mrpt_jpeglib.h.

Referenced by jpeg_read_header().

#define JPEG_LIB_VERSION   62 /* Version 6b */

Definition at line 30 of file mrpt_jpeglib.h.

Referenced by jpeg_CreateCompress(), and jpeg_CreateDecompress().

#define JPEG_REACHED_EOI   2 /* Reached end of image */
#define JPEG_REACHED_SOS   1 /* Reached start of new scan */
#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */
#define JPEG_RST0   0xD0 /* RST0 marker code */

Definition at line 1042 of file mrpt_jpeglib.h.

Referenced by emit_restart().

#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */
#define JPEG_SUSPENDED   0 /* Suspended due to lack of input data */
#define JPOOL_IMAGE   1 /* lasts until done with image/datastream */
#define JPOOL_NUMPOOLS   2
#define JPOOL_PERMANENT   0 /* lasts until master record is destroyed */
#define JPP (   arglist)    arglist

Definition at line 815 of file mrpt_jpeglib.h.

#define MAX_COMPS_IN_SCAN   4 /* JPEG limit on # of components in one scan */
#define MAX_SAMP_FACTOR   4 /* JPEG limit on sampling factors */

Definition at line 44 of file mrpt_jpeglib.h.

Referenced by initial_setup().

#define NUM_ARITH_TBLS   16 /* Arith-coding tables are numbered 0..15 */

Definition at line 42 of file mrpt_jpeglib.h.

Referenced by emit_dac(), get_soi(), get_sos(), and jpeg_set_defaults().

#define NUM_HUFF_TBLS   4 /* Huffman tables are numbered 0..3 */
#define NUM_QUANT_TBLS   4 /* Quantization tables are numbered 0..3 */

Typedef Documentation

Definition at line 258 of file mrpt_jpeglib.h.

Definition at line 259 of file mrpt_jpeglib.h.

Definition at line 260 of file mrpt_jpeglib.h.

typedef JCOEF JBLOCK[DCTSIZE2]

Definition at line 67 of file mrpt_jpeglib.h.

Definition at line 69 of file mrpt_jpeglib.h.

Definition at line 70 of file mrpt_jpeglib.h.

typedef JBLOCK FAR* JBLOCKROW

Definition at line 68 of file mrpt_jpeglib.h.

typedef JCOEF FAR* JCOEFPTR

Definition at line 72 of file mrpt_jpeglib.h.

Definition at line 190 of file mrpt_jpeglib.h.

typedef JSAMPROW* JSAMPARRAY

Definition at line 64 of file mrpt_jpeglib.h.

Definition at line 65 of file mrpt_jpeglib.h.

typedef JSAMPLE FAR* JSAMPROW

Definition at line 63 of file mrpt_jpeglib.h.

Definition at line 750 of file mrpt_jpeglib.h.

Definition at line 749 of file mrpt_jpeglib.h.

Enumeration Type Documentation

Enumerator
JCS_UNKNOWN 
JCS_GRAYSCALE 
JCS_RGB 
JCS_YCbCr 
JCS_CMYK 
JCS_YCCK 

Definition at line 203 of file mrpt_jpeglib.h.

Enumerator
JDCT_ISLOW 
JDCT_IFAST 
JDCT_FLOAT 

Definition at line 214 of file mrpt_jpeglib.h.

Enumerator
JDITHER_NONE 
JDITHER_ORDERED 
JDITHER_FS 

Definition at line 229 of file mrpt_jpeglib.h.

Function Documentation

EXTERN ( struct jpeg_error_mgr )
EXTERN ( void  )
EXTERN ( int  )
EXTERN ( JQUANT_TBL )
EXTERN ( JHUFF_TBL )
EXTERN ( JDIMENSION  )
EXTERN ( jvirt_barray_ptr )
typedef JMETHOD ( boolean  ,
jpeg_marker_parser_method  ,
(j_decompress_ptr cinfo)   
)

Variable Documentation

int const unsigned int* basic_table

Definition at line 921 of file mrpt_jpeglib.h.

jvirt_barray_ptr* coef_arrays

Definition at line 1014 of file mrpt_jpeglib.h.

J_COLOR_SPACE colorspace

Definition at line 914 of file mrpt_jpeglib.h.

Referenced by jpeg_set_colorspace().

Definition at line 942 of file mrpt_jpeglib.h.

int unsigned int datalen
int const JOCTET* dataptr
int desired

Definition at line 1035 of file mrpt_jpeglib.h.

Referenced by jinit_2pass_quantizer(), and jpeg_resync_to_restart().

j_compress_ptr dstinfo

Definition at line 1016 of file mrpt_jpeglib.h.

Referenced by jpeg_copy_critical_parameters().

int const unsigned int int boolean force_baseline

Definition at line 916 of file mrpt_jpeglib.h.

Referenced by jpeg_set_linear_quality(), and jpeg_set_quality().

FILE* infile

Definition at line 908 of file mrpt_jpeglib.h.

Referenced by jpeg_stdio_src().

int unsigned int length_limit

Definition at line 1003 of file mrpt_jpeglib.h.

Referenced by jpeg_save_markers().

int marker
int marker_code

Definition at line 1003 of file mrpt_jpeglib.h.

Referenced by jpeg_save_markers(), and jpeg_set_marker_processor().

Definition at line 974 of file mrpt_jpeglib.h.

Referenced by jpeg_read_raw_data(), and jpeg_read_scanlines().

Definition at line 936 of file mrpt_jpeglib.h.

Referenced by jpeg_write_raw_data(), and jpeg_write_scanlines().

FILE* outfile
int quality
boolean require_image

Definition at line 960 of file mrpt_jpeglib.h.

Referenced by jpeg_read_header().

int jpeg_marker_parser_method routine

Definition at line 1008 of file mrpt_jpeglib.h.

Referenced by jpeg_set_marker_processor().

int const unsigned int int scale_factor

Definition at line 919 of file mrpt_jpeglib.h.

Referenced by jpeg_set_linear_quality().

int scan_number

Definition at line 986 of file mrpt_jpeglib.h.

Referenced by jpeg_start_output().

JSAMPARRAY scanlines

Definition at line 936 of file mrpt_jpeglib.h.

Referenced by jpeg_read_scanlines(), and jpeg_write_scanlines().

int size_t structsize

Definition at line 898 of file mrpt_jpeglib.h.

boolean suppress

Definition at line 928 of file mrpt_jpeglib.h.

Referenced by jpeg_suppress_tables().

Definition at line 953 of file mrpt_jpeglib.h.

int version

Definition at line 898 of file mrpt_jpeglib.h.

Referenced by examine_app14(), mrpt::hwdrivers::CSwissRanger3DCamera::getMesaLibVersion(), mrpt::hwdrivers::CTuMicos::init(), mrpt::nav::CPTG_DiffDrive_CollisionGridBased::internal_readFromStream(), mrpt::nav::CParameterizedTrajectoryGenerator::internal_readFromStream(), mrpt::utils::CStream::internal_ReadObject(), mrpt::nav::CPTG_RobotShape_Polygonal::internal_shape_loadFromStream(), mrpt::nav::CPTG_RobotShape_Circular::internal_shape_loadFromStream(), mrpt::nav::CPTG_RobotShape_Polygonal::internal_shape_saveToStream(), mrpt::nav::CPTG_RobotShape_Circular::internal_shape_saveToStream(), mrpt::nav::CPTG_DiffDrive_CollisionGridBased::internal_writeToStream(), mrpt::nav::CParameterizedTrajectoryGenerator::internal_writeToStream(), mrpt::utils::PLY_Importer::loadFromPlyFile(), mrpt::hwdrivers::CDUO3DCamera::open(), mrpt::kinematics::operator<<(), mrpt::kinematics::operator>>(), xsens::List< T >::operator[](), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::readAndBuildFromStream(), mrpt::nav::ClearanceDiagram::readFromStream(), mrpt::opengl::CLight::readFromStream(), mrpt::nav::CParameterizedTrajectoryGenerator::TNavDynamicState::readFromStream(), mrpt::maps::COctoMapBase< octree_t, octree_node_t >::TLikelihoodOptions::readFromStream(), mrpt::maps::COctoMapBase< octree_t, octree_node_t >::TRenderingOptions::readFromStream(), mrpt::maps::CPointsMap::TInsertionOptions::readFromStream(), mrpt::maps::CPointsMap::TLikelihoodOptions::readFromStream(), mrpt::opengl::CTexturedObject::readFromStreamTexturedObject(), mrpt::graphs::detail::graph_ops< graph_t >::save_graph_of_poses_to_binary_file(), mrpt::utils::PLY_Exporter::saveToPlyFile(), mrpt::hwdrivers::CDUO3DCamera::setDataFrame(), mrpt::opengl::CGeneralizedEllipsoidTemplate< 3 >::thisclass_readFromStream(), mrpt::opengl::CGeneralizedEllipsoidTemplate< 3 >::thisclass_writeToStream(), mrpt::utils::CStream::WriteObject(), mrpt::nav::ClearanceDiagram::writeToStream(), mrpt::opengl::CLight::writeToStream(), mrpt::nav::CParameterizedTrajectoryGenerator::TNavDynamicState::writeToStream(), mrpt::maps::COctoMapBase< octree_t, octree_node_t >::TLikelihoodOptions::writeToStream(), mrpt::maps::COctoMapBase< octree_t, octree_node_t >::TRenderingOptions::writeToStream(), mrpt::maps::CPointsMap::TInsertionOptions::writeToStream(), mrpt::maps::CPointsMap::TLikelihoodOptions::writeToStream(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::writeToStream(), mrpt::hwdrivers::CPtuBase::~CPtuBase(), mrpt::hwdrivers::CPtuDPerception::~CPtuDPerception(), mrpt::utils::CSerializable::~CSerializable(), and mrpt::hwdrivers::CTuMicos::~CTuMicos().

int which_tbl

Definition at line 921 of file mrpt_jpeglib.h.

Referenced by jpeg_add_quant_table().

boolean write_all_tables

Definition at line 934 of file mrpt_jpeglib.h.




Page generated by Doxygen 1.8.11 for MRPT 1.5.7 Git: 2190203 Tue May 15 02:01:15 2018 +0200 at miƩ may 16 12:40:16 CEST 2018