Mercurial > libavcodec.hg
comparison dct-test.c @ 12475:9fef0a8ddd63 libavcodec
Move mm_support() from libavcodec to libavutil, make it a public
function and rename it to av_get_cpu_flags().
| author | stefano |
|---|---|
| date | Wed, 08 Sep 2010 15:07:14 +0000 |
| parents | a5ddb39627fd |
| children |
comparison
equal
deleted
inserted
replaced
| 12474:cf54b8e98e7a | 12475:9fef0a8ddd63 |
|---|---|
| 30 #include <string.h> | 30 #include <string.h> |
| 31 #include <sys/time.h> | 31 #include <sys/time.h> |
| 32 #include <unistd.h> | 32 #include <unistd.h> |
| 33 #include <math.h> | 33 #include <math.h> |
| 34 | 34 |
| 35 #include "libavutil/cpu.h" | |
| 35 #include "libavutil/common.h" | 36 #include "libavutil/common.h" |
| 36 #include "libavutil/lfg.h" | 37 #include "libavutil/lfg.h" |
| 37 | 38 |
| 38 #include "simple_idct.h" | 39 #include "simple_idct.h" |
| 39 #include "aandcttab.h" | 40 #include "aandcttab.h" |
| 552 int main(int argc, char **argv) | 553 int main(int argc, char **argv) |
| 553 { | 554 { |
| 554 int test_idct = 0, test_248_dct = 0; | 555 int test_idct = 0, test_248_dct = 0; |
| 555 int c,i; | 556 int c,i; |
| 556 int test=1; | 557 int test=1; |
| 557 cpu_flags = mm_support(); | 558 cpu_flags = av_get_cpu_flags(); |
| 558 | 559 |
| 559 ff_ref_dct_init(); | 560 ff_ref_dct_init(); |
| 560 idct_mmx_init(); | 561 idct_mmx_init(); |
| 561 | 562 |
| 562 for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; | 563 for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; |
