comparison acelp_filters.h @ 9792:05ea4942df9b libavcodec

cosmetics: K&R style reformatting
author diego
date Thu, 04 Jun 2009 10:37:29 +0000
parents 611a21e4b01b
children cfb009484d2d
comparison
equal deleted inserted replaced
9791:de4a8f76b1b9 9792:05ea4942df9b
49 * filter_coeffs contains coefficients of the right half of the symmetric 49 * filter_coeffs contains coefficients of the right half of the symmetric
50 * interpolation filter. filter_coeffs[0] should the central (unpaired) coefficient. 50 * interpolation filter. filter_coeffs[0] should the central (unpaired) coefficient.
51 * See ff_acelp_interp_filter for an example. 51 * See ff_acelp_interp_filter for an example.
52 * 52 *
53 */ 53 */
54 void ff_acelp_interpolate( 54 void ff_acelp_interpolate(int16_t* out, const int16_t* in,
55 int16_t* out, 55 const int16_t* filter_coeffs, int precision,
56 const int16_t* in, 56 int frac_pos, int filter_length, int length);
57 const int16_t* filter_coeffs,
58 int precision,
59 int frac_pos,
60 int filter_length,
61 int length);
62
63 57
64 /** 58 /**
65 * high-pass filtering and upscaling (4.2.5 of G.729). 59 * high-pass filtering and upscaling (4.2.5 of G.729).
66 * @param out [out] output buffer for filtered speech data 60 * @param out [out] output buffer for filtered speech data
67 * @param hpf_f [in/out] past filtered data from previous (2 items long) 61 * @param hpf_f [in/out] past filtered data from previous (2 items long)
82 * @remark AMR uses mostly the same filter (cut-off frequency 60Hz, same formula, 76 * @remark AMR uses mostly the same filter (cut-off frequency 60Hz, same formula,
83 * but constants differs in 5th sign after comma). Fortunately in 77 * but constants differs in 5th sign after comma). Fortunately in
84 * fixed-point all coefficients are the same as in G.729. Thus this 78 * fixed-point all coefficients are the same as in G.729. Thus this
85 * routine can be used for the fixed-point AMR decoder, too. 79 * routine can be used for the fixed-point AMR decoder, too.
86 */ 80 */
87 void ff_acelp_high_pass_filter( 81 void ff_acelp_high_pass_filter(int16_t* out, int hpf_f[2],
88 int16_t* out, 82 const int16_t* in, int length);
89 int hpf_f[2],
90 const int16_t* in,
91 int length);
92 83
93 #endif /* AVCODEC_ACELP_FILTERS_H */ 84 #endif /* AVCODEC_ACELP_FILTERS_H */