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

Go to the source code of this file.

Classes

struct  my_color_deconverter
 

Macros

#define JPEG_INTERNALS
 
#define SCALEBITS   16 /* speediest right-shift on some machines */
 
#define ONE_HALF   ((INT32)1 << (SCALEBITS - 1))
 
#define FIX(x)   ((INT32)((x) * (1L << SCALEBITS) + 0.5))
 

Typedefs

typedef my_color_deconvertermy_cconvert_ptr
 

Functions

 build_ycc_rgb_table (j_decompress_ptr cinfo)
 
 ycc_rgb_convert (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows)
 
 null_convert (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows)
 
 grayscale_convert (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows)
 
 gray_rgb_convert (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows)
 
 ycck_cmyk_convert (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows)
 
 start_pass_dcolor (j_decompress_ptr)
 
 jinit_color_deconverter (j_decompress_ptr cinfo)
 

Macro Definition Documentation

◆ FIX

#define FIX (   x)    ((INT32)((x) * (1L << SCALEBITS) + 0.5))

Definition at line 60 of file jdcolor.cpp.

Referenced by build_ycc_rgb_table().

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 10 of file jdcolor.cpp.

◆ ONE_HALF

#define ONE_HALF   ((INT32)1 << (SCALEBITS - 1))

Definition at line 59 of file jdcolor.cpp.

Referenced by build_ycc_rgb_table().

◆ SCALEBITS

#define SCALEBITS   16 /* speediest right-shift on some machines */

Definition at line 58 of file jdcolor.cpp.

Referenced by build_ycc_rgb_table(), ycc_rgb_convert(), and ycck_cmyk_convert().

Typedef Documentation

◆ my_cconvert_ptr

Definition at line 27 of file jdcolor.cpp.

Function Documentation

◆ build_ycc_rgb_table()

build_ycc_rgb_table ( j_decompress_ptr  cinfo)

Definition at line 67 of file jdcolor.cpp.

References CENTERJSAMPLE, FIX, JPOOL_IMAGE, MAXJSAMPLE, ONE_HALF, RIGHT_SHIFT, SCALEBITS, SHIFT_TEMPS, and SIZEOF.

Referenced by jinit_color_deconverter().

Here is the caller graph for this function:

◆ gray_rgb_convert()

gray_rgb_convert ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION  input_row,
JSAMPARRAY  output_buf,
int  num_rows 
)

Definition at line 213 of file jdcolor.cpp.

References inptr, outptr, and output_buf.

Referenced by jinit_color_deconverter().

Here is the caller graph for this function:

◆ grayscale_convert()

grayscale_convert ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION  input_row,
JSAMPARRAY  output_buf,
int  num_rows 
)

Definition at line 197 of file jdcolor.cpp.

References jcopy_sample_rows(), and output_buf.

Referenced by jinit_color_deconverter().

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

◆ jinit_color_deconverter()

jinit_color_deconverter ( j_decompress_ptr  cinfo)

Definition at line 299 of file jdcolor.cpp.

References build_ycc_rgb_table(), ERREXIT, FALSE, gray_rgb_convert(), grayscale_convert(), JCS_CMYK, JCS_GRAYSCALE, JCS_RGB, JCS_YCbCr, JCS_YCCK, JPOOL_IMAGE, null_convert(), my_color_converter::pub, SIZEOF, start_pass_dcolor(), ycc_rgb_convert(), and ycck_cmyk_convert().

Referenced by master_selection().

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

◆ null_convert()

null_convert ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION  input_row,
JSAMPARRAY  output_buf,
int  num_rows 
)

Definition at line 163 of file jdcolor.cpp.

References inptr, outptr, and output_buf.

Referenced by jinit_color_deconverter().

Here is the caller graph for this function:

◆ start_pass_dcolor()

start_pass_dcolor ( j_decompress_ptr  )

Definition at line 293 of file jdcolor.cpp.

Referenced by jinit_color_deconverter().

Here is the caller graph for this function:

◆ ycc_rgb_convert()

ycc_rgb_convert ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION  input_row,
JSAMPARRAY  output_buf,
int  num_rows 
)

Definition at line 113 of file jdcolor.cpp.

References GETJSAMPLE, outptr, output_buf, range_limit, RIGHT_SHIFT, SCALEBITS, and SHIFT_TEMPS.

Referenced by jinit_color_deconverter().

Here is the caller graph for this function:

◆ ycck_cmyk_convert()

ycck_cmyk_convert ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION  input_row,
JSAMPARRAY  output_buf,
int  num_rows 
)

Definition at line 242 of file jdcolor.cpp.

References GETJSAMPLE, MAXJSAMPLE, outptr, output_buf, range_limit, RIGHT_SHIFT, SCALEBITS, and SHIFT_TEMPS.

Referenced by jinit_color_deconverter().

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