@ -19,8 +19,6 @@
# ifndef AVCODEC_AVFFT_H
# define AVCODEC_AVFFT_H
# include "libavutil/attributes.h"
/**
* @ file
* @ ingroup lavc_fft
@ -34,83 +32,65 @@
* @ {
*/
typedef float attribute_deprecated FFTSample ;
typedef float FFTSample ;
typedef struct attribute_deprecated FFTComplex {
typedef struct FFTComplex {
FFTSample re , im ;
} FFTComplex ;
typedef struct attribute_deprecated FFTContext FFTContext ;
typedef struct FFTContext FFTContext ;
/**
* Set up a complex FFT .
* @ param nbits log2 of the length of the input array
* @ param inverse if 0 perform the forward transform , if 1 perform the inverse
*/
attribute_deprecated
FFTContext * av_fft_init ( int nbits , int inverse ) ;
/**
* Do the permutation needed BEFORE calling ff_fft_calc ( ) .
*/
attribute_deprecated
void av_fft_permute ( FFTContext * s , FFTComplex * z ) ;
/**
* Do a complex FFT with the parameters defined in av_fft_init ( ) . The
* input data must be permuted before . No 1.0 / sqrt ( n ) normalization is done .
*/
attribute_deprecated
void av_fft_calc ( FFTContext * s , FFTComplex * z ) ;
attribute_deprecated
void av_fft_end ( FFTContext * s ) ;
attribute_deprecated
FFTContext * av_mdct_init ( int nbits , int inverse , double scale ) ;
attribute_deprecated
void av_imdct_calc ( FFTContext * s , FFTSample * output , const FFTSample * input ) ;
attribute_deprecated
void av_imdct_half ( FFTContext * s , FFTSample * output , const FFTSample * input ) ;
attribute_deprecated
void av_mdct_calc ( FFTContext * s , FFTSample * output , const FFTSample * input ) ;
attribute_deprecated
void av_mdct_end ( FFTContext * s ) ;
/* Real Discrete Fourier Transform */
enum attribute_deprecated RDFTransformType {
enum RDFTransformType {
DFT_R2C ,
IDFT_C2R ,
IDFT_R2C ,
DFT_C2R ,
} ;
typedef struct attribute_deprecated RDFTContext RDFTContext ;
typedef struct RDFTContext RDFTContext ;
/**
* Set up a real FFT .
* @ param nbits log2 of the length of the input array
* @ param trans the type of transform
*/
attribute_deprecated
RDFTContext * av_rdft_init ( int nbits , enum RDFTransformType trans ) ;
attribute_deprecated
void av_rdft_calc ( RDFTContext * s , FFTSample * data ) ;
attribute_deprecated
void av_rdft_end ( RDFTContext * s ) ;
/* Discrete Cosine Transform */
typedef struct attribute_deprecated DCTContext DCTContext ;
typedef struct DCTContext DCTContext ;
enum attribute_deprecated DCTTransformType {
enum DCTTransformType {
DCT_II = 0 ,
DCT_III ,
DCT_I ,
@ -127,13 +107,8 @@ enum attribute_deprecated DCTTransformType {
*
* @ note the first element of the input of DST - I is ignored
*/
attribute_deprecated
DCTContext * av_dct_init ( int nbits , enum DCTTransformType type ) ;
attribute_deprecated
void av_dct_calc ( DCTContext * s , FFTSample * data ) ;
attribute_deprecated
void av_dct_end ( DCTContext * s ) ;
/**