2012-01-27 02:22:55 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2012 Mans Rullgard
|
|
|
|
*
|
2013-08-15 23:12:51 +02:00
|
|
|
* This file is part of FFmpeg.
|
2012-01-27 02:22:55 +01:00
|
|
|
*
|
2013-08-15 23:12:51 +02:00
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2012-01-27 02:22:55 +01: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-15 23:12:51 +02:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2012-01-27 02:22:55 +01: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-15 23:12:51 +02:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2012-01-27 02:22:55 +01:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2016-01-29 03:25:13 +01:00
|
|
|
#ifndef AVCODEC_AACPSDSP_H
|
|
|
|
#define AVCODEC_AACPSDSP_H
|
2012-01-27 02:22:55 +01:00
|
|
|
|
2017-06-22 11:24:13 +02:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2015-07-20 13:36:19 +02:00
|
|
|
#include "aac_defines.h"
|
|
|
|
|
2012-01-27 02:22:55 +01: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 02:22:55 +01: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],
|
2017-06-22 11:24:13 +02:00
|
|
|
ptrdiff_t 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 02:22:55 +01: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 02:22:55 +01: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 02:22:55 +01: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 02:22:55 +01:00
|
|
|
int len);
|
|
|
|
} PSDSPContext;
|
|
|
|
|
2015-07-20 13:36:19 +02:00
|
|
|
void AAC_RENAME(ff_psdsp_init)(PSDSPContext *s);
|
2012-03-13 14:20:29 +01:00
|
|
|
void ff_psdsp_init_arm(PSDSPContext *s);
|
2017-05-25 17:50:52 +02:00
|
|
|
void ff_psdsp_init_aarch64(PSDSPContext *s);
|
2013-02-21 14:46:53 +01: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 02:22:55 +01:00
|
|
|
|
2016-01-29 03:25:13 +01:00
|
|
|
#endif /* AVCODEC_AACPSDSP_H */
|