Lines Matching defs:tab2
200 static int check_diff(FFTSample *tab1, FFTSample *tab2, int n, double scale)
208 double e = fabsf(tab1[i] - (tab2[i] / scale)) / RANGE;
211 i, tab1[i], tab2[i]);
250 FFTSample *tab2;
314 tab2 = av_malloc_array(fft_size, sizeof(FFTSample));
377 m->imdct_calc(m, tab2, (FFTSample *)tab1);
378 err = check_diff((FFTSample *)tab_ref, tab2, fft_size, scale);
382 m->mdct_calc(m, tab2, (FFTSample *)tab1);
384 err = check_diff((FFTSample *)tab_ref, tab2, fft_size / 2, scale);
408 memcpy(tab2, tab1, fft_size * sizeof(FFTSample));
409 tab2[1] = tab1[fft_size_2].re;
411 r->rdft_calc(r, tab2);
414 tab[i].re = tab2[i];
420 tab2[i] = tab1[i].re;
423 r->rdft_calc(r, tab2);
426 err = check_diff((float *)tab_ref, (float *)tab2, fft_size, 1.0);
471 memcpy(tab2, tab1, fft_size * sizeof(FFTSample));
472 r->rdft_calc(r, tab2);
475 memcpy(tab2, tab1, fft_size * sizeof(FFTSample));
476 d->dct_calc(d, tab2);
517 av_free(tab2);