Mercurial > libavcodec.hg
comparison g729dec.c @ 7802:ca4a5c6c275c libavcodec
Remove not approved parts.
author | voroshil |
---|---|
date | Sat, 06 Sep 2008 13:45:02 +0000 |
parents | b35486af268e |
children | 18d5d203ba0c |
comparison
equal
deleted
inserted
replaced
7801:d965e46aef4f | 7802:ca4a5c6c275c |
---|---|
77 static inline int g729_get_parity(uint8_t value) | 77 static inline int g729_get_parity(uint8_t value) |
78 { | 78 { |
79 return (0x6996966996696996ULL >> (value >> 2)) & 1; | 79 return (0x6996966996696996ULL >> (value >> 2)) & 1; |
80 } | 80 } |
81 | 81 |
82 /* | |
83 This filter enhances harmonic components of the fixed-codebook vector to | |
84 improve the quality of the reconstructed speech. | |
85 | |
86 / fc_v[i], i < pitch_delay | |
87 fc_v[i] = < | |
88 \ fc_v[i] + gain_pitch * fc_v[i-pitch_delay], i >= pitch_delay | |
89 */ | |
90 ff_acelp_weighted_vector_sum( | 82 ff_acelp_weighted_vector_sum( |
91 fc + pitch_delay_int[i], | 83 fc + pitch_delay_int[i], |
92 fc + pitch_delay_int[i], | 84 fc + pitch_delay_int[i], |
93 fc, | 85 fc, |
94 1 << 14, | 86 1 << 14, |
99 | 91 |
100 ctx->gain_pitch = cb_gain_1st_8k[parm->gc_1st_index[i]][0] + | 92 ctx->gain_pitch = cb_gain_1st_8k[parm->gc_1st_index[i]][0] + |
101 cb_gain_2nd_8k[parm->gc_2nd_index[i]][0]; | 93 cb_gain_2nd_8k[parm->gc_2nd_index[i]][0]; |
102 gain_corr_factor = cb_gain_1st_8k[parm->gc_1st_index[i]][1] + | 94 gain_corr_factor = cb_gain_1st_8k[parm->gc_1st_index[i]][1] + |
103 cb_gain_2nd_8k[parm->gc_2nd_index[i]][1]; | 95 cb_gain_2nd_8k[parm->gc_2nd_index[i]][1]; |
104 | |
105 /* Routine requires rounding to lowest. */ | |
106 ff_acelp_interpolate( | |
107 ctx->exc + i*ctx->subframe_size, | |
108 ctx->exc + i*ctx->subframe_size - pitch_delay_3x/3, | |
109 ff_acelp_interp_filter, | |
110 6, | |
111 (pitch_delay_3x%3)<<1, | |
112 10, | |
113 ctx->subframe_size); | |
114 | 96 |
115 ff_acelp_weighted_vector_sum( | 97 ff_acelp_weighted_vector_sum( |
116 ctx->exc + i * ctx->subframe_size, | 98 ctx->exc + i * ctx->subframe_size, |
117 ctx->exc + i * ctx->subframe_size, | 99 ctx->exc + i * ctx->subframe_size, |
118 fc, | 100 fc, |