jdmerge.c File Reference

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

Go to the source code of this file.

Classes

struct  my_upsampler

Defines

#define JPEG_INTERNALS
#define SCALEBITS   16
#define ONE_HALF   ((INT32) 1 << (SCALEBITS-1))
#define FIX(x)   ((INT32) ((x) * (1L<<SCALEBITS) + 0.5))

Typedefs

typedef my_upsamplermy_upsample_ptr

Functions

 build_ycc_rgb_table (j_decompress_ptr cinfo)
 start_pass_merged_upsample (j_decompress_ptr cinfo)
 merged_2v_upsample (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
 merged_1v_upsample (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
 h2v1_merged_upsample (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
 h2v2_merged_upsample (j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION in_row_group_ctr, JSAMPARRAY output_buf)
 jinit_merged_upsampler (j_decompress_ptr cinfo)


Define Documentation

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

Definition at line 74 of file jdmerge.c.

#define JPEG_INTERNALS

Definition at line 35 of file jdmerge.c.

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

Definition at line 73 of file jdmerge.c.

#define SCALEBITS   16

Definition at line 72 of file jdmerge.c.


Typedef Documentation

typedef my_upsampler* my_upsample_ptr

Definition at line 70 of file jdmerge.c.


Function Documentation

build_ycc_rgb_table ( j_decompress_ptr  cinfo  ) 

Definition at line 83 of file jdmerge.c.

References my_upsampler::Cb_b_tab, my_upsampler::Cb_g_tab, CENTERJSAMPLE, my_upsampler::Cr_g_tab, my_upsampler::Cr_r_tab, FIX, i, int, JPOOL_IMAGE, MAXJSAMPLE, ONE_HALF, RIGHT_SHIFT, SCALEBITS, SHIFT_TEMPS, SIZEOF, and x.

h2v1_merged_upsample ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION  in_row_group_ctr,
JSAMPARRAY  output_buf 
)

Definition at line 226 of file jdmerge.c.

References my_upsampler::Cb_b_tab, my_upsampler::Cb_g_tab, my_upsampler::Cr_g_tab, my_upsampler::Cr_r_tab, for(), GETJSAMPLE, int, RIGHT_SHIFT, SCALEBITS, SHIFT_TEMPS, and y.

Referenced by jinit_merged_upsampler().

h2v2_merged_upsample ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION  in_row_group_ctr,
JSAMPARRAY  output_buf 
)

Definition at line 288 of file jdmerge.c.

References my_upsampler::Cb_b_tab, my_upsampler::Cb_g_tab, my_upsampler::Cr_g_tab, my_upsampler::Cr_r_tab, for(), GETJSAMPLE, int, RIGHT_SHIFT, SCALEBITS, SHIFT_TEMPS, and y.

Referenced by jinit_merged_upsampler().

jinit_merged_upsampler ( j_decompress_ptr  cinfo  ) 

Definition at line 370 of file jdmerge.c.

References build_ycc_rgb_table(), FALSE, h2v1_merged_upsample(), h2v2_merged_upsample(), JPOOL_IMAGE, merged_1v_upsample(), merged_2v_upsample(), jpeg_upsampler::need_context_rows, NULL, my_upsampler::out_row_width, my_upsampler::pub, size_t, SIZEOF, my_upsampler::spare_row, and start_pass_merged_upsample().

Referenced by master_selection().

merged_1v_upsample ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION in_row_group_ctr,
JDIMENSION  in_row_groups_avail,
JSAMPARRAY  output_buf,
JDIMENSION out_row_ctr,
JDIMENSION  out_rows_avail 
)

Definition at line 193 of file jdmerge.c.

Referenced by jinit_merged_upsampler().

merged_2v_upsample ( j_decompress_ptr  cinfo,
JSAMPIMAGE  input_buf,
JDIMENSION in_row_group_ctr,
JDIMENSION  in_row_groups_avail,
JSAMPARRAY  output_buf,
JDIMENSION out_row_ctr,
JDIMENSION  out_rows_avail 
)

Definition at line 144 of file jdmerge.c.

References FALSE, if(), jcopy_sample_rows(), num_rows, my_upsampler::out_row_width, my_upsampler::rows_to_go, my_upsampler::spare_full, my_upsampler::spare_row, and TRUE.

Referenced by jinit_merged_upsampler().

start_pass_merged_upsample ( j_decompress_ptr  cinfo  ) 

Definition at line 126 of file jdmerge.c.

References FALSE, my_upsampler::rows_to_go, and my_upsampler::spare_full.

Referenced by jinit_merged_upsampler().


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