00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef AVCODEC_ACELP_PITCH_DELAY_H
00024 #define AVCODEC_ACELP_PITCH_DELAY_H
00025
00026 #include <stdint.h>
00027 #include "dsputil.h"
00028
00029 #define PITCH_DELAY_MIN 20
00030 #define PITCH_DELAY_MAX 143
00031
00043 int ff_acelp_decode_8bit_to_1st_delay3(int ac_index);
00044
00060 int ff_acelp_decode_5_6_bit_to_2nd_delay3(
00061 int ac_index,
00062 int pitch_delay_min);
00063
00080 int ff_acelp_decode_4bit_to_2nd_delay3(
00081 int ac_index,
00082 int pitch_delay_min);
00083
00099 int ff_acelp_decode_9bit_to_1st_delay6(int ac_index);
00100
00115 int ff_acelp_decode_6bit_to_2nd_delay6(
00116 int ac_index,
00117 int pitch_delay_min);
00118
00135 void ff_acelp_update_past_gain(
00136 int16_t* quant_energy,
00137 int gain_corr_factor,
00138 int log2_ma_pred_order,
00139 int erasure);
00140
00213 int16_t ff_acelp_decode_gain_code(
00214 DSPContext *dsp,
00215 int gain_corr_factor,
00216 const int16_t* fc_v,
00217 int mr_energy,
00218 const int16_t* quant_energy,
00219 const int16_t* ma_prediction_coeff,
00220 int subframe_size,
00221 int max_pred_order);
00222
00223 #endif