2012-01-27 04:22:55 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 Mans Rullgard
|
|
|
|
*
|
2013-08-16 00:12:51 +03:00
|
|
|
* This file is part of FFmpeg.
|
2012-01-27 04:22:55 +03:00
|
|
|
*
|
2013-08-16 00:12:51 +03:00
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2012-01-27 04:22:55 +03:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
2013-08-16 00:12:51 +03:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2012-01-27 04:22:55 +03:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2013-08-16 00:12:51 +03:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2012-01-27 04:22:55 +03:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2016-01-29 04:25:13 +02:00
|
|
|
#ifndef AVCODEC_AACPSDSP_H
|
|
|
|
#define AVCODEC_AACPSDSP_H
|
2012-01-27 04:22:55 +03:00
|
|
|
|
2015-07-20 13:36:19 +02:00
|
|
|
#include "aac_defines.h"
|
|
|
|
|
2012-01-27 04:22:55 +03:00
|
|
|
#define PS_QMF_TIME_SLOTS 32
|
|
|
|
#define PS_AP_LINKS 3
|
|
|
|
#define PS_MAX_AP_DELAY 5
|
|
|
|
|
|
|
|
typedef struct PSDSPContext {
|
2015-07-20 13:36:19 +02:00
|
|
|
void (*add_squares)(INTFLOAT *dst, const INTFLOAT (*src)[2], int n);
|
|
|
|
void (*mul_pair_single)(INTFLOAT (*dst)[2], INTFLOAT (*src0)[2], INTFLOAT *src1,
|
2012-01-27 04:22:55 +03:00
|
|
|
int n);
|
2015-07-20 13:36:19 +02:00
|
|
|
void (*hybrid_analysis)(INTFLOAT (*out)[2], INTFLOAT (*in)[2],
|
|
|
|
const INTFLOAT (*filter)[8][2],
|
2012-01-27 04:22:55 +03:00
|
|
|
int stride, int n);
|
2015-07-20 13:36:19 +02:00
|
|
|
void (*hybrid_analysis_ileave)(INTFLOAT (*out)[32][2], INTFLOAT L[2][38][64],
|
2012-01-27 04:22:55 +03:00
|
|
|
int i, int len);
|
2015-07-20 13:36:19 +02:00
|
|
|
void (*hybrid_synthesis_deint)(INTFLOAT out[2][38][64], INTFLOAT (*in)[32][2],
|
2012-01-27 04:22:55 +03:00
|
|
|
int i, int len);
|
2015-07-20 13:36:19 +02:00
|
|
|
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,
|
2012-01-27 04:22:55 +03:00
|
|
|
int len);
|
2015-07-20 13:36:19 +02:00
|
|
|
void (*stereo_interpolate[2])(INTFLOAT (*l)[2], INTFLOAT (*r)[2],
|
|
|
|
INTFLOAT h[2][4], INTFLOAT h_step[2][4],
|
2012-01-27 04:22:55 +03:00
|
|
|
int len);
|
|
|
|
} PSDSPContext;
|
|
|
|
|
2015-07-20 13:36:19 +02:00
|
|
|
void AAC_RENAME(ff_psdsp_init)(PSDSPContext *s);
|
2012-03-13 16:20:29 +03:00
|
|
|
void ff_psdsp_init_arm(PSDSPContext *s);
|
2013-02-21 16:46:53 +03:00
|
|
|
void ff_psdsp_init_mips(PSDSPContext *s);
|
2015-07-25 18:10:25 +02:00
|
|
|
void ff_psdsp_init_x86(PSDSPContext *s);
|
2012-01-27 04:22:55 +03:00
|
|
|
|
2016-01-29 04:25:13 +02:00
|
|
|
#endif /* AVCODEC_AACPSDSP_H */
|