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

This is a special implementation of the coefficient buffer controller. This is similar to jccoefct.c, but it handles only output from presupplied virtual arrays. Furthermore, we generate any dummy padding blocks on-the-fly rather than expecting them to be present in the arrays.
Inheritance: jpeg_c_coef_controller
Mostra file Open project: prepare/HTML-Renderer

Public Methods

Method Description
compress_data ( byte input_buf ) : bool

Process some data. We process the equivalent of one fully interleaved MCU row ("iMCU" row) per call, ie, v_samp_factor block rows for each component in the scan. The data is obtained from the virtual arrays and fed to the entropy coder. Returns true if the iMCU row is completed, false if suspended. NB: input_buf is ignored; it is likely to be a null pointer.

my_trans_c_coef_controller ( jpeg_compress_struct cinfo, jvirt_array coef_arrays )

Initialize coefficient buffer controller. Each passed coefficient array must be the right size for that coefficient: width_in_blocks wide and height_in_blocks high, with unit height at least v_samp_factor.

start_pass ( J_BUF_MODE pass_mode ) : void

Initialize for a processing pass.

Private Methods

Method Description
start_iMCU_row ( ) : void

Reset within-iMCU-row counters for a new row

Method Details

compress_data() public method

Process some data. We process the equivalent of one fully interleaved MCU row ("iMCU" row) per call, ie, v_samp_factor block rows for each component in the scan. The data is obtained from the virtual arrays and fed to the entropy coder. Returns true if the iMCU row is completed, false if suspended. NB: input_buf is ignored; it is likely to be a null pointer.
public compress_data ( byte input_buf ) : bool
input_buf byte
return bool

my_trans_c_coef_controller() public method

Initialize coefficient buffer controller. Each passed coefficient array must be the right size for that coefficient: width_in_blocks wide and height_in_blocks high, with unit height at least v_samp_factor.
public my_trans_c_coef_controller ( jpeg_compress_struct cinfo, jvirt_array coef_arrays )
cinfo jpeg_compress_struct
coef_arrays jvirt_array

start_pass() public method

Initialize for a processing pass.
public start_pass ( J_BUF_MODE pass_mode ) : void
pass_mode J_BUF_MODE
return void