C# Class BitMiracle.LibJpeg.Classic.Internal.my_merged_upsampler

Inheritance: jpeg_upsampler
Mostrar archivo Open project: prepare/HTML-Renderer

Public Methods

Method Description
my_merged_upsampler ( jpeg_decompress_struct cinfo )
start_pass ( ) : void

Initialize for an upsampling pass.

upsample ( ComponentBuffer input_buf, int &in_row_group_ctr, int in_row_groups_avail, byte output_buf, int &out_row_ctr, int out_rows_avail ) : void

Private Methods

Method Description
FIX ( double x ) : int
build_bg_ycc_rgb_table ( ) : void

Initialize tables for BG_YCC->RGB colorspace conversion. This is taken directly from jpeg_color_deconverter; see that file for more info.

build_ycc_rgb_table ( ) : void

Initialize tables for YCbCr->RGB colorspace conversion. This is taken directly from jpeg_color_deconverter; see that file for more info.

h2v1_merged_upsample ( ComponentBuffer input_buf, int in_row_group_ctr, byte output_buf, int outRow ) : void

Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical.

h2v2_merged_upsample ( ComponentBuffer input_buf, int in_row_group_ctr, byte output_buf ) : void

Upsample and color convert for the case of 2:1 horizontal and 2:1 vertical.

merged_1v_upsample ( ComponentBuffer input_buf, int &in_row_group_ctr, byte output_buf, int &out_row_ctr ) : void

Control routine to do upsampling (and color conversion). The control routine just handles the row buffering considerations. 1:1 vertical sampling case: much easier, never need a spare row.

merged_2v_upsample ( ComponentBuffer input_buf, int &in_row_group_ctr, byte output_buf, int &out_row_ctr, int out_rows_avail ) : void

Control routine to do upsampling (and color conversion). The control routine just handles the row buffering considerations. 2:1 vertical sampling case: may need a spare row.

Method Details

my_merged_upsampler() public method

public my_merged_upsampler ( jpeg_decompress_struct cinfo )
cinfo jpeg_decompress_struct

start_pass() public method

Initialize for an upsampling pass.
public start_pass ( ) : void
return void

upsample() public method

public upsample ( ComponentBuffer input_buf, int &in_row_group_ctr, int in_row_groups_avail, byte output_buf, int &out_row_ctr, int out_rows_avail ) : void
input_buf ComponentBuffer
in_row_group_ctr int
in_row_groups_avail int
output_buf byte
out_row_ctr int
out_rows_avail int
return void