23 int main(
int argc,
char **argv)
32 if (!ref || !data || !rdft_context || !irdft_context)
34 for (i=0; i<
LEN; i++) {
35 ref[i] = data[i] = i*456 + 123 + i*i;
40 for (i=0; i<
LEN; i++) {
41 if (fabs(ref[i] - data[i]/LEN*2) > 1) {
42 fprintf(stderr,
"Failed at %d (%f %f)\n", i, ref[i], data[i]/LEN*2);
ptrdiff_t const GLvoid * data
memory handling functions
int main(int argc, char **argv)
void av_rdft_calc(RDFTContext *s, FFTSample *data)
void av_rdft_end(RDFTContext *s)
RDFTContext * av_rdft_init(int nbits, enum RDFTransformType trans)
Set up a real FFT.
static int ref[MAX_W *MAX_W]
#define av_malloc_array(a, b)