Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: patched-ffmpeg-mt/libavcodec/fft-test.c

Issue 789004: ffmpeg roll of source to mar 9 version... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * (c) 2002 Fabrice Bellard 2 * (c) 2002 Fabrice Bellard
3 * 3 *
4 * This file is part of FFmpeg. 4 * This file is part of FFmpeg.
5 * 5 *
6 * FFmpeg is free software; you can redistribute it and/or 6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public 7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version. 9 * version 2.1 of the License, or (at your option) any later version.
10 * 10 *
11 * FFmpeg is distributed in the hope that it will be useful, 11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details. 14 * Lesser General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Lesser General Public 16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software 17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 20
21 /** 21 /**
22 * @file libavcodec/fft-test.c 22 * @file libavcodec/fft-test.c
23 * FFT and MDCT tests. 23 * FFT and MDCT tests.
24 */ 24 */
25 25
26 #include "libavutil/mathematics.h"
26 #include "libavutil/lfg.h" 27 #include "libavutil/lfg.h"
27 #include "dsputil.h" 28 #include "libavutil/log.h"
29 #include "fft.h"
28 #include <math.h> 30 #include <math.h>
29 #include <unistd.h> 31 #include <unistd.h>
30 #include <sys/time.h> 32 #include <sys/time.h>
31 #include <stdlib.h> 33 #include <stdlib.h>
32 #include <string.h> 34 #include <string.h>
33 35
34 #undef exit 36 #undef exit
35 37
36 /* reference fft */ 38 /* reference fft */
37 39
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 case TRANSFORM_FFT: 285 case TRANSFORM_FFT:
284 if (do_inverse) 286 if (do_inverse)
285 av_log(NULL, AV_LOG_INFO,"IFFT"); 287 av_log(NULL, AV_LOG_INFO,"IFFT");
286 else 288 else
287 av_log(NULL, AV_LOG_INFO,"FFT"); 289 av_log(NULL, AV_LOG_INFO,"FFT");
288 ff_fft_init(s, fft_nbits, do_inverse); 290 ff_fft_init(s, fft_nbits, do_inverse);
289 fft_ref_init(fft_nbits, do_inverse); 291 fft_ref_init(fft_nbits, do_inverse);
290 break; 292 break;
291 case TRANSFORM_RDFT: 293 case TRANSFORM_RDFT:
292 if (do_inverse) 294 if (do_inverse)
293 av_log(NULL, AV_LOG_INFO,"IRDFT"); 295 av_log(NULL, AV_LOG_INFO,"IDFT_C2R");
294 else 296 else
295 av_log(NULL, AV_LOG_INFO,"RDFT"); 297 av_log(NULL, AV_LOG_INFO,"DFT_R2C");
296 ff_rdft_init(r, fft_nbits, do_inverse ? IRDFT : RDFT); 298 ff_rdft_init(r, fft_nbits, do_inverse ? IDFT_C2R : DFT_R2C);
297 fft_ref_init(fft_nbits, do_inverse); 299 fft_ref_init(fft_nbits, do_inverse);
298 break; 300 break;
299 case TRANSFORM_DCT: 301 case TRANSFORM_DCT:
300 if (do_inverse) 302 if (do_inverse)
301 av_log(NULL, AV_LOG_INFO,"IDCT"); 303 av_log(NULL, AV_LOG_INFO,"IDCT");
302 else 304 else
303 av_log(NULL, AV_LOG_INFO,"DCT"); 305 av_log(NULL, AV_LOG_INFO,"DCT");
304 ff_dct_init(d, fft_nbits, do_inverse); 306 ff_dct_init(d, fft_nbits, do_inverse);
305 break; 307 break;
306 } 308 }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 break; 436 break;
435 case TRANSFORM_RDFT: 437 case TRANSFORM_RDFT:
436 ff_rdft_end(r); 438 ff_rdft_end(r);
437 break; 439 break;
438 case TRANSFORM_DCT: 440 case TRANSFORM_DCT:
439 ff_dct_end(d); 441 ff_dct_end(d);
440 break; 442 break;
441 } 443 }
442 return 0; 444 return 0;
443 } 445 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698