2009-09-08 19:25:54 +00:00
|
|
|
/*
|
2013-10-01 23:55:13 +00:00
|
|
|
* Common functions for the ATRAC family of decoders
|
|
|
|
*
|
|
|
|
* Copyright (c) 2009-2013 Maxim Poliakovski
|
2009-09-08 19:25:54 +00:00
|
|
|
* Copyright (c) 2009 Benjamin Larsson
|
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* 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
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2010-04-20 14:45:34 +00:00
|
|
|
* @file
|
2013-09-02 18:21:49 +00:00
|
|
|
* ATRAC common header
|
2009-09-08 19:25:54 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AVCODEC_ATRAC_H
|
|
|
|
#define AVCODEC_ATRAC_H
|
|
|
|
|
2011-01-24 23:36:10 +00:00
|
|
|
extern float ff_atrac_sf_table[64];
|
2009-09-08 19:25:54 +00:00
|
|
|
|
2013-10-01 23:55:13 +00:00
|
|
|
/**
|
|
|
|
* Generate common tables.
|
|
|
|
*/
|
2012-02-15 09:40:48 +00:00
|
|
|
void ff_atrac_generate_tables(void);
|
2013-10-01 23:55:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Quadrature mirror synthesis filter.
|
|
|
|
*
|
|
|
|
* @param inlo lower part of spectrum
|
|
|
|
* @param inhi higher part of spectrum
|
|
|
|
* @param nIn size of spectrum buffer
|
|
|
|
* @param pOut out buffer
|
|
|
|
* @param delayBuf delayBuf buffer
|
|
|
|
* @param temp temp buffer
|
|
|
|
*/
|
|
|
|
void ff_atrac_iqmf(float *inlo, float *inhi, unsigned int nIn, float *pOut, float *delayBuf, float *temp);
|
2009-09-08 19:25:54 +00:00
|
|
|
|
|
|
|
#endif /* AVCODEC_ATRAC_H */
|