mirror of https://github.com/FFmpeg/FFmpeg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.8 KiB
68 lines
1.8 KiB
11 years ago
|
/*
|
||
8 years ago
|
* Copyright (c) 2017 Rostislav Pehlivanov <atomnuker@gmail.com>
|
||
|
*
|
||
11 years ago
|
* This file is part of FFmpeg.
|
||
11 years ago
|
*
|
||
11 years ago
|
* FFmpeg is free software; you can redistribute it and/or
|
||
11 years ago
|
* 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.
|
||
|
*
|
||
11 years ago
|
* FFmpeg is distributed in the hope that it will be useful,
|
||
11 years ago
|
* 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
|
||
11 years ago
|
* License along with FFmpeg; if not, write to the Free Software
|
||
11 years ago
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||
|
*/
|
||
|
|
||
8 years ago
|
#ifndef AVCODEC_MDCT15_H
|
||
|
#define AVCODEC_MDCT15_H
|
||
11 years ago
|
|
||
|
#include <stddef.h>
|
||
|
|
||
8 years ago
|
#include "fft.h"
|
||
11 years ago
|
|
||
8 years ago
|
typedef struct MDCT15Context {
|
||
11 years ago
|
int fft_n;
|
||
|
int len2;
|
||
|
int len4;
|
||
8 years ago
|
int inverse;
|
||
8 years ago
|
int *pfa_prereindex;
|
||
|
int *pfa_postreindex;
|
||
|
|
||
|
FFTContext ptwo_fft;
|
||
11 years ago
|
|
||
|
FFTComplex *tmp;
|
||
|
|
||
|
FFTComplex *twiddle_exptab;
|
||
|
|
||
8 years ago
|
/* 0 - 18: fft15 twiddles, 19 - 20: fft5 twiddles */
|
||
|
FFTComplex exptab[21];
|
||
11 years ago
|
|
||
8 years ago
|
/**
|
||
|
* Calculate a full 2N -> N MDCT
|
||
|
*/
|
||
|
void (*mdct)(struct MDCT15Context *s, float *dst, const float *src, ptrdiff_t stride);
|
||
|
|
||
11 years ago
|
/**
|
||
|
* Calculate the middle half of the iMDCT
|
||
|
*/
|
||
8 years ago
|
void (*imdct_half)(struct MDCT15Context *s, float *dst, const float *src,
|
||
11 years ago
|
ptrdiff_t src_stride, float scale);
|
||
8 years ago
|
} MDCT15Context;
|
||
11 years ago
|
|
||
|
/**
|
||
8 years ago
|
* Init an (i)MDCT of the length 2 * 15 * (2^N)
|
||
11 years ago
|
*/
|
||
8 years ago
|
int ff_mdct15_init(MDCT15Context **ps, int inverse, int N, double scale);
|
||
11 years ago
|
|
||
|
/**
|
||
8 years ago
|
* Frees a context
|
||
11 years ago
|
*/
|
||
8 years ago
|
void ff_mdct15_uninit(MDCT15Context **ps);
|
||
11 years ago
|
|
||
8 years ago
|
#endif /* AVCODEC_MDCT15_H */
|