FFmpeg
aacpsdsp.h
Go to the documentation of this file.
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_AACPSDSP_H
22 #define AVCODEC_AACPSDSP_H
23 
24 #include <stddef.h>
25 
26 #include "aac_defines.h"
27 
28 #define PS_QMF_TIME_SLOTS 32
29 #define PS_AP_LINKS 3
30 #define PS_MAX_AP_DELAY 5
31 
32 typedef struct PSDSPContext {
33  void (*add_squares)(INTFLOAT *dst, const INTFLOAT (*src)[2], int n);
34  void (*mul_pair_single)(INTFLOAT (*dst)[2], INTFLOAT (*src0)[2], INTFLOAT *src1,
35  int n);
36  void (*hybrid_analysis)(INTFLOAT (*out)[2], INTFLOAT (*in)[2],
37  const INTFLOAT (*filter)[8][2],
38  ptrdiff_t stride, int n);
39  void (*hybrid_analysis_ileave)(INTFLOAT (*out)[32][2], INTFLOAT L[2][38][64],
40  int i, int len);
41  void (*hybrid_synthesis_deint)(INTFLOAT out[2][38][64], INTFLOAT (*in)[32][2],
42  int i, int len);
43  void (*decorrelate)(INTFLOAT (*out)[2], INTFLOAT (*delay)[2],
45  const INTFLOAT phi_fract[2], const INTFLOAT (*Q_fract)[2],
46  const INTFLOAT *transient_gain,
47  INTFLOAT g_decay_slope,
48  int len);
49  void (*stereo_interpolate[2])(INTFLOAT (*l)[2], INTFLOAT (*r)[2],
50  INTFLOAT h[2][4], INTFLOAT h_step[2][4],
51  int len);
52 } PSDSPContext;
53 
59 
60 #endif /* AVCODEC_AACPSDSP_H */
INTFLOAT
#define INTFLOAT
Definition: dct32_template.c:44
r
const char * r
Definition: vf_curves.c:116
out
FILE * out
Definition: movenc.c:54
src1
const pixel * src1
Definition: h264pred_template.c:421
ff_psdsp_init_x86
void ff_psdsp_init_x86(PSDSPContext *s)
Definition: aacpsdsp_init.c:52
PSDSPContext::decorrelate
void(* decorrelate)(INTFLOAT(*out)[2], INTFLOAT(*delay)[2], INTFLOAT(*ap_delay)[PS_QMF_TIME_SLOTS+PS_MAX_AP_DELAY][2], const INTFLOAT phi_fract[2], const INTFLOAT(*Q_fract)[2], const INTFLOAT *transient_gain, INTFLOAT g_decay_slope, int len)
Definition: aacpsdsp.h:43
filter
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
Definition: filter_design.txt:228
ff_psdsp_init_mips
void ff_psdsp_init_mips(PSDSPContext *s)
Definition: aacpsdsp_mips.c:451
PSDSPContext::add_squares
void(* add_squares)(INTFLOAT *dst, const INTFLOAT(*src)[2], int n)
Definition: aacpsdsp.h:33
ff_psdsp_init_arm
void ff_psdsp_init_arm(PSDSPContext *s)
Definition: aacpsdsp_init_arm.c:46
ff_psdsp_init_aarch64
void ff_psdsp_init_aarch64(PSDSPContext *s)
Definition: aacpsdsp_init_aarch64.c:38
s
#define s(width, name)
Definition: cbs_vp9.c:256
PSDSPContext::hybrid_synthesis_deint
void(* hybrid_synthesis_deint)(INTFLOAT out[2][38][64], INTFLOAT(*in)[32][2], int i, int len)
Definition: aacpsdsp.h:41
PSDSPContext::mul_pair_single
void(* mul_pair_single)(INTFLOAT(*dst)[2], INTFLOAT(*src0)[2], INTFLOAT *src1, int n)
Definition: aacpsdsp.h:34
PSDSPContext::hybrid_analysis_ileave
void(* hybrid_analysis_ileave)(INTFLOAT(*out)[32][2], INTFLOAT L[2][38][64], int i, int len)
Definition: aacpsdsp.h:39
PS_MAX_AP_DELAY
#define PS_MAX_AP_DELAY
Definition: aacpsdsp.h:30
i
#define i(width, name, range_min, range_max)
Definition: cbs_h2645.c:269
AAC_RENAME
#define AAC_RENAME(x)
Definition: aac_defines.h:83
len
int len
Definition: vorbis_enc_data.h:426
stride
#define stride
Definition: h264pred_template.c:537
PS_QMF_TIME_SLOTS
#define PS_QMF_TIME_SLOTS
Definition: aacpsdsp.h:28
L
#define L(x)
Definition: vp56_arith.h:36
PSDSPContext::stereo_interpolate
void(* stereo_interpolate[2])(INTFLOAT(*l)[2], INTFLOAT(*r)[2], INTFLOAT h[2][4], INTFLOAT h_step[2][4], int len)
Definition: aacpsdsp.h:49
ff_psdsp_init
void AAC_RENAME() ff_psdsp_init(PSDSPContext *s)
Definition: aacpsdsp_template.c:212
phi_fract
static int phi_fract[2][50][2]
Definition: aacps_fixed_tablegen.h:61
PSDSPContext
Definition: aacpsdsp.h:32
src0
const pixel *const src0
Definition: h264pred_template.c:420
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
aac_defines.h
h
h
Definition: vp9dsp_template.c:2038
PSDSPContext::hybrid_analysis
void(* hybrid_analysis)(INTFLOAT(*out)[2], INTFLOAT(*in)[2], const INTFLOAT(*filter)[8][2], ptrdiff_t stride, int n)
Definition: aacpsdsp.h:36
INTFLOAT
float INTFLOAT
Definition: aac_defines.h:86