FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sbrdsp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 Mans Rullgard
3  *
4  * This file is part of Libav.
5  *
6  * Libav is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * Libav is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with Libav; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVCODEC_SBRDSP_H
22 #define AVCODEC_SBRDSP_H
23 
24 #include <stdint.h>
25 
26 typedef struct SBRDSPContext {
27  void (*sum64x5)(float *z);
28  float (*sum_square)(float (*x)[2], int n);
29  void (*neg_odd_64)(float *x);
30  void (*qmf_pre_shuffle)(float *z);
31  void (*qmf_post_shuffle)(float W[32][2], const float *z);
32  void (*qmf_deint_neg)(float *v, const float *src);
33  void (*qmf_deint_bfly)(float *v, const float *src0, const float *src1);
34  void (*autocorrelate)(const float x[40][2], float phi[3][2][2]);
35  void (*hf_gen)(float (*X_high)[2], const float (*X_low)[2],
36  const float alpha0[2], const float alpha1[2],
37  float bw, int start, int end);
38  void (*hf_g_filt)(float (*Y)[2], const float (*X_high)[40][2],
39  const float *g_filt, int m_max, intptr_t ixh);
40  void (*hf_apply_noise[4])(float (*Y)[2], const float *s_m,
41  const float *q_filt, int noise,
42  int kx, int m_max);
44 
45 extern const float ff_sbr_noise_table[][2];
46 
51 
52 #endif /* AVCODEC_SBRDSP_H */