public static void Dequantization(short[,] input, QuantizationFactors quant, out short[,] output) { var rfxQuant = Utility.ConvertRFXQuants(quant); output = new short[input.GetLength(0), input.GetLength(1)]; Array.Copy(input, output, input.Length); dequantization_Component(output, rfxQuant); }
public static void Quantization(short[,] input, QuantizationFactors quant, bool UseReduceExtrapolate, out short[,] output) { var rfxQuant = new TS_RFX_CODEC_QUANT { LL3_LH3 = (byte)((quant.LH3 << 4) | quant.LL3), HL3_HH3 = (byte)((quant.HH3 << 4) | quant.HL3), LH2_HL2 = (byte)((quant.HL2 << 4) | quant.LH2), HH2_LH1 = (byte)((quant.LH1 << 4) | quant.HH2), HL1_HH1 = (byte)((quant.HH1 << 4) | quant.HL1) }; output = new short[input.GetLength(0), input.GetLength(1)]; Array.Copy(input, output, input.Length); doQuantization_Component(output, rfxQuant, UseReduceExtrapolate); }