Lines Matching refs:ac_index
36 * @param ac_index adaptive codebook index (8 bits)
44 static inline int ff_acelp_decode_8bit_to_1st_delay3(int ac_index)
46 ac_index += 58;
47 if (ac_index > 254)
48 ac_index = 3 * ac_index - 510;
49 return ac_index;
55 * @param ac_index adaptive codebook index (5 or 6 bits)
67 static inline int ff_acelp_decode_5_6_bit_to_2nd_delay3(int ac_index,
70 return 3 * pitch_delay_min + ac_index - 2;
75 * @param ac_index adaptive codebook index (4 bits)
89 static inline int ff_acelp_decode_4bit_to_2nd_delay3(int ac_index,
92 if (ac_index < 4)
93 return 3 * (ac_index + pitch_delay_min);
94 else if (ac_index < 12)
95 return 3 * pitch_delay_min + ac_index + 6;
97 return 3 * (ac_index + pitch_delay_min) - 18;
103 * @param ac_index adaptive codebook index (9 bits)
113 static inline int ff_acelp_decode_9bit_to_1st_delay6(int ac_index)
115 if (ac_index < 463)
116 return ac_index + 105;
118 return 6 * (ac_index - 368);
124 * @param ac_index adaptive codebook index (6 bits)
135 static inline int ff_acelp_decode_6bit_to_2nd_delay6(int ac_index,
138 return 6 * pitch_delay_min + ac_index - 3;