celp_filters.h
Go to the documentation of this file.
1 /*
2  * various filters for CELP-based codecs
3  *
4  * Copyright (c) 2008 Vladimir Voroshilov
5  *
6  * This file is part of Libav.
7  *
8  * Libav is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * Libav is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with Libav; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef AVCODEC_CELP_FILTERS_H
24 #define AVCODEC_CELP_FILTERS_H
25 
26 #include <stdint.h>
27 
39 void ff_celp_convolve_circ(int16_t *fc_out, const int16_t *fc_in,
40  const int16_t *filter, int len);
41 
54 void ff_celp_circ_addf(float *out, const float *in,
55  const float *lagged, int lag, float fac, int n);
56 
75 int ff_celp_lp_synthesis_filter(int16_t *out, const int16_t *filter_coeffs,
76  const int16_t *in, int buffer_length,
77  int filter_length, int stop_on_overflow,
78  int rounder);
79 
96 void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs,
97  const float *in, int buffer_length,
98  int filter_length);
99 
115 void ff_celp_lp_zero_synthesis_filterf(float *out, const float *filter_coeffs,
116  const float *in, int buffer_length,
117  int filter_length);
118 
119 #endif /* AVCODEC_CELP_FILTERS_H */