Ejemplo n.º 1
0
        internal static JpegComponentInfo[] CreateArrayOfComponents(int length)
        {
            if (length < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(length));
            }

            var result = new JpegComponentInfo[length];

            for (var i = 0; i < result.Length; ++i)
            {
                result[i] = new JpegComponentInfo();
            }

            return(result);
        }
Ejemplo n.º 2
0
 internal void Assign(JpegComponentInfo ci)
 {
     Component_id       = ci.Component_id;
     Component_index    = ci.Component_index;
     H_samp_factor      = ci.H_samp_factor;
     V_samp_factor      = ci.V_samp_factor;
     Quant_tbl_no       = ci.Quant_tbl_no;
     Dc_tbl_no          = ci.Dc_tbl_no;
     Ac_tbl_no          = ci.Ac_tbl_no;
     Width_in_blocks    = ci.Width_in_blocks;
     height_in_blocks   = ci.height_in_blocks;
     DCT_h_scaled_size  = ci.DCT_h_scaled_size;
     DCT_v_scaled_size  = ci.DCT_v_scaled_size;
     downsampled_width  = ci.downsampled_width;
     downsampled_height = ci.downsampled_height;
     component_needed   = ci.component_needed;
     MCU_width          = ci.MCU_width;
     MCU_height         = ci.MCU_height;
     MCU_blocks         = ci.MCU_blocks;
     MCU_sample_width   = ci.MCU_sample_width;
     last_col_width     = ci.last_col_width;
     last_row_height    = ci.last_row_height;
     quant_table        = ci.quant_table;
 }