2011-03-20 01:44:00 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2008 Robert Swain
|
|
|
|
*
|
2011-03-21 04:09:46 +02:00
|
|
|
* This file is part of FFmpeg.
|
2011-03-20 01:44:00 +02:00
|
|
|
*
|
2011-03-21 04:09:46 +02:00
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
2011-03-20 01:44:00 +02: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.
|
|
|
|
*
|
2011-03-21 04:09:46 +02:00
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
2011-03-20 01:44:00 +02: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
|
2011-03-21 04:09:46 +02:00
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
2011-03-20 01:44:00 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AVCODEC_SINEWIN_H
|
|
|
|
#define AVCODEC_SINEWIN_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "libavutil/mem.h"
|
2015-07-20 13:36:20 +02:00
|
|
|
#include "libavcodec/aac_defines.h"
|
2011-03-20 01:44:00 +02:00
|
|
|
|
|
|
|
#if CONFIG_HARDCODED_TABLES
|
|
|
|
# define SINETABLE_CONST const
|
|
|
|
#else
|
|
|
|
# define SINETABLE_CONST
|
|
|
|
#endif
|
|
|
|
|
2015-06-30 11:53:04 +02:00
|
|
|
#ifndef USE_FIXED
|
|
|
|
#define USE_FIXED 0
|
|
|
|
#endif
|
|
|
|
|
2011-03-20 01:44:00 +02:00
|
|
|
#define SINETABLE(size) \
|
2015-07-20 13:36:20 +02:00
|
|
|
SINETABLE_CONST DECLARE_ALIGNED(32, INTFLOAT, AAC_RENAME(ff_sine_##size))[size]
|
2011-03-20 01:44:00 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate a sine window.
|
|
|
|
* @param window pointer to half window
|
|
|
|
* @param n size of half window
|
|
|
|
*/
|
2015-07-20 13:36:20 +02:00
|
|
|
void AAC_RENAME(ff_sine_window_init)(INTFLOAT *window, int n);
|
2011-03-20 01:44:00 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* initialize the specified entry of ff_sine_windows
|
|
|
|
*/
|
2015-07-20 13:36:20 +02:00
|
|
|
void AAC_RENAME(ff_init_ff_sine_windows)(int index);
|
2011-03-20 01:44:00 +02:00
|
|
|
|
|
|
|
extern SINETABLE( 32);
|
|
|
|
extern SINETABLE( 64);
|
2017-07-04 16:59:13 +02:00
|
|
|
extern SINETABLE( 120);
|
2011-03-20 01:44:00 +02:00
|
|
|
extern SINETABLE( 128);
|
|
|
|
extern SINETABLE( 256);
|
|
|
|
extern SINETABLE( 512);
|
2017-07-04 16:59:13 +02:00
|
|
|
extern SINETABLE( 960);
|
2011-03-20 01:44:00 +02:00
|
|
|
extern SINETABLE(1024);
|
|
|
|
extern SINETABLE(2048);
|
|
|
|
extern SINETABLE(4096);
|
2012-02-17 00:51:17 +03:00
|
|
|
extern SINETABLE(8192);
|
2011-03-20 01:44:00 +02:00
|
|
|
|
2017-07-04 16:59:13 +02:00
|
|
|
extern SINETABLE_CONST INTFLOAT * const AAC_RENAME(ff_sine_windows)[16];
|
2011-03-20 01:44:00 +02:00
|
|
|
|
2011-05-17 17:58:04 +03:00
|
|
|
#endif /* AVCODEC_SINEWIN_H */
|