Imported Debian version 2.4.3~trusty1
[deb_ffmpeg.git] / ffmpeg / libavcodec / sbrdsp.h
CommitLineData
2ba45a60
DM
1/*
2 * Copyright (c) 2012 Mans Rullgard
3 *
4 * This file is part of FFmpeg.
5 *
6 * FFmpeg 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 * FFmpeg 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 FFmpeg; 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
26typedef 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);
43} SBRDSPContext;
44
45extern const float ff_sbr_noise_table[][2];
46
47void ff_sbrdsp_init(SBRDSPContext *s);
48void ff_sbrdsp_init_arm(SBRDSPContext *s);
49void ff_sbrdsp_init_x86(SBRDSPContext *s);
50void ff_sbrdsp_init_mips(SBRDSPContext *s);
51
52#endif /* AVCODEC_SBRDSP_H */