mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 13:30:45 +00:00
dct/rdft: Remove duplicate typedefs for context structs
The typedefs also exist in the avfft.h header and since typedefs cannot be legally redefined in C, the code fails to compile with some compilers. This reverts commits11c7155cce
and57f1b1dcc7
.
This commit is contained in:
parent
436ced244f
commit
060e4a9e06
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#include "rdft.h"
|
#include "rdft.h"
|
||||||
|
|
||||||
typedef struct DCTContext {
|
struct DCTContext {
|
||||||
int nbits;
|
int nbits;
|
||||||
int inverse;
|
int inverse;
|
||||||
RDFTContext rdft;
|
RDFTContext rdft;
|
||||||
@ -36,7 +36,7 @@ typedef struct DCTContext {
|
|||||||
FFTSample *csc2;
|
FFTSample *csc2;
|
||||||
void (*dct_calc)(struct DCTContext *s, FFTSample *data);
|
void (*dct_calc)(struct DCTContext *s, FFTSample *data);
|
||||||
void (*dct32)(FFTSample *out, const FFTSample *in);
|
void (*dct32)(FFTSample *out, const FFTSample *in);
|
||||||
} DCTContext;
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set up DCT.
|
* Set up DCT.
|
||||||
|
@ -39,9 +39,11 @@
|
|||||||
#include "libavutil/mathematics.h"
|
#include "libavutil/mathematics.h"
|
||||||
#include "libavutil/time.h"
|
#include "libavutil/time.h"
|
||||||
|
|
||||||
#include "dct.h"
|
|
||||||
#include "fft.h"
|
#include "fft.h"
|
||||||
|
#if FFT_FLOAT
|
||||||
|
#include "dct.h"
|
||||||
#include "rdft.h"
|
#include "rdft.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* reference fft */
|
/* reference fft */
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ extern SINTABLE(16384);
|
|||||||
extern SINTABLE(32768);
|
extern SINTABLE(32768);
|
||||||
extern SINTABLE(65536);
|
extern SINTABLE(65536);
|
||||||
|
|
||||||
typedef struct RDFTContext {
|
struct RDFTContext {
|
||||||
int nbits;
|
int nbits;
|
||||||
int inverse;
|
int inverse;
|
||||||
int sign_convention;
|
int sign_convention;
|
||||||
@ -58,7 +58,7 @@ typedef struct RDFTContext {
|
|||||||
SINTABLE_CONST FFTSample *tsin;
|
SINTABLE_CONST FFTSample *tsin;
|
||||||
FFTContext fft;
|
FFTContext fft;
|
||||||
void (*rdft_calc)(struct RDFTContext *s, FFTSample *z);
|
void (*rdft_calc)(struct RDFTContext *s, FFTSample *z);
|
||||||
} RDFTContext;
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set up a real FFT.
|
* Set up a real FFT.
|
||||||
|
Loading…
Reference in New Issue
Block a user