BitMiracle.LibJpeg.Classic.Internal.jpeg_downsampler.fullsize_downsample C# (CSharp) Method

fullsize_downsample() private method

Downsample pixel values of a single component. This version handles the special case of a full-size component, without smoothing.
private fullsize_downsample ( int componentIndex, byte input_data, int startInputRow, byte output_data, int startOutRow ) : void
componentIndex int
input_data byte
startInputRow int
output_data byte
startOutRow int
return void
        private void fullsize_downsample(int componentIndex, byte[][] input_data, int startInputRow, byte[][] output_data, int startOutRow)
        {
            /* Copy the data */
            JpegUtils.jcopy_sample_rows(input_data, startInputRow, output_data, startOutRow, m_cinfo.m_max_v_samp_factor, m_cinfo.m_image_width);

            /* Edge-expand */
            jpeg_component_info compptr = m_cinfo.Component_info[componentIndex];
            expand_right_edge(output_data, startOutRow, m_cinfo.m_max_v_samp_factor,
                m_cinfo.m_image_width, compptr.Width_in_blocks * compptr.DCT_h_scaled_size);
        }