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 */
float v
const char * s
Definition: avisynth_c.h:668
float(* sum_square)(float(*x)[2], int n)
Definition: sbrdsp.h:28
void(* sum64x5)(float *z)
Definition: sbrdsp.h:27
void ff_sbrdsp_init(SBRDSPContext *s)
Definition: sbrdsp.c:267
#define Y
Definition: vf_boxblur.c:76
void ff_sbrdsp_init_arm(SBRDSPContext *s)
end end
struct SBRDSPContext SBRDSPContext
Sinusoidal Amplitude phi
Discrete Time axis x
void(* hf_apply_noise[4])(float(*Y)[2], const float *s_m, const float *q_filt, int noise, int kx, int m_max)
Definition: sbrdsp.h:40
void(* qmf_pre_shuffle)(float *z)
Definition: sbrdsp.h:30
void(* neg_odd_64)(float *x)
Definition: sbrdsp.h:29
void ff_sbrdsp_init_mips(SBRDSPContext *s)
Definition: sbrdsp_mips.c:920
void(* autocorrelate)(const float x[40][2], float phi[3][2][2])
Definition: sbrdsp.h:34
static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
Definition: noise_bsf.c:28
AVS_Value src
Definition: avisynth_c.h:523
typedef void(RENAME(mix_any_func_type))
void ff_sbrdsp_init_x86(SBRDSPContext *s)
Definition: sbrdsp_init.c:54
const float ff_sbr_noise_table[][2]
void(* qmf_post_shuffle)(float W[32][2], const float *z)
Definition: sbrdsp.h:31
void(* qmf_deint_bfly)(float *v, const float *src0, const float *src1)
Definition: sbrdsp.h:33
void INT64 start
Definition: avisynth_c.h:594
void(* qmf_deint_neg)(float *v, const float *src)
Definition: sbrdsp.h:32
void(* hf_gen)(float(*X_high)[2], const float(*X_low)[2], const float alpha0[2], const float alpha1[2], float bw, int start, int end)
Definition: sbrdsp.h:35
void(* hf_g_filt)(float(*Y)[2], const float(*X_high)[40][2], const float *g_filt, int m_max, intptr_t ixh)
Definition: sbrdsp.h:38
normalize window W
Definition: stft_peak.m:10