Mercurial > libavcodec.hg
comparison dct-test.c @ 6542:d90bb7b51588 libavcodec
get rid of the useless DCT_ERROR() macro
patch by Alexander Strange %astrange A ithinksw P com%
author | gpoirier |
---|---|
date | Sun, 30 Mar 2008 10:28:03 +0000 |
parents | b4c000318ed4 |
children | 948d9453432b |
comparison
equal
deleted
inserted
replaced
6541:fb6109c5f08b | 6542:d90bb7b51588 |
---|---|
80 #define FAAN_SCALE SCALE_PERM | 80 #define FAAN_SCALE SCALE_PERM |
81 #else | 81 #else |
82 #define FAAN_SCALE NO_PERM | 82 #define FAAN_SCALE NO_PERM |
83 #endif | 83 #endif |
84 | 84 |
85 #define DCT_ERROR(name,is_idct,func,ref,form) {name,is_idct,func,ref,form} | |
86 | |
87 | |
88 struct algo algos[] = { | 85 struct algo algos[] = { |
89 DCT_ERROR( "REF-DBL", 0, fdct, fdct, NO_PERM), | 86 {"REF-DBL", 0, fdct, fdct, NO_PERM}, |
90 DCT_ERROR("FAAN", 0, ff_faandct, fdct, FAAN_SCALE), | 87 {"FAAN", 0, ff_faandct, fdct, FAAN_SCALE}, |
91 DCT_ERROR("FAANI", 1, ff_faanidct, idct, NO_PERM), | 88 {"FAANI", 1, ff_faanidct, idct, NO_PERM}, |
92 DCT_ERROR("IJG-AAN-INT", 0, fdct_ifast, fdct, SCALE_PERM), | 89 {"IJG-AAN-INT", 0, fdct_ifast, fdct, SCALE_PERM}, |
93 DCT_ERROR("IJG-LLM-INT", 0, ff_jpeg_fdct_islow, fdct, NO_PERM), | 90 {"IJG-LLM-INT", 0, ff_jpeg_fdct_islow, fdct, NO_PERM}, |
94 DCT_ERROR("REF-DBL", 1, idct, idct, NO_PERM), | 91 {"REF-DBL", 1, idct, idct, NO_PERM}, |
95 DCT_ERROR("INT", 1, j_rev_dct, idct, MMX_PERM), | 92 {"INT", 1, j_rev_dct, idct, MMX_PERM}, |
96 DCT_ERROR("SIMPLE-C", 1, ff_simple_idct, idct, NO_PERM), | 93 {"SIMPLE-C", 1, ff_simple_idct, idct, NO_PERM}, |
97 | 94 |
98 #ifdef HAVE_MMX | 95 #ifdef HAVE_MMX |
99 DCT_ERROR("MMX", 0, ff_fdct_mmx, fdct, NO_PERM), | 96 {"MMX", 0, ff_fdct_mmx, fdct, NO_PERM}, |
100 #ifdef HAVE_MMX2 | 97 #ifdef HAVE_MMX2 |
101 DCT_ERROR("MMX2", 0, ff_fdct_mmx2, fdct, NO_PERM), | 98 {"MMX2", 0, ff_fdct_mmx2, fdct, NO_PERM}, |
102 #endif | 99 #endif |
103 | 100 |
104 #ifdef CONFIG_GPL | 101 #ifdef CONFIG_GPL |
105 DCT_ERROR("LIBMPEG2-MMX", 1, ff_mmx_idct, idct, MMX_PERM), | 102 {"LIBMPEG2-MMX", 1, ff_mmx_idct, idct, MMX_PERM}, |
106 DCT_ERROR("LIBMPEG2-MMXEXT", 1, ff_mmxext_idct, idct, MMX_PERM), | 103 {"LIBMPEG2-MMXEXT", 1, ff_mmxext_idct, idct, MMX_PERM}, |
107 #endif | 104 #endif |
108 DCT_ERROR("SIMPLE-MMX", 1, ff_simple_idct_mmx, idct, MMX_SIMPLE_PERM), | 105 {"SIMPLE-MMX", 1, ff_simple_idct_mmx, idct, MMX_SIMPLE_PERM}, |
109 DCT_ERROR("XVID-MMX", 1, ff_idct_xvid_mmx, idct, NO_PERM), | 106 {"XVID-MMX", 1, ff_idct_xvid_mmx, idct, NO_PERM}, |
110 DCT_ERROR("XVID-MMX2", 1, ff_idct_xvid_mmx2, idct, NO_PERM), | 107 {"XVID-MMX2", 1, ff_idct_xvid_mmx2, idct, NO_PERM}, |
111 #endif | 108 #endif |
112 | 109 |
113 #ifdef HAVE_ALTIVEC | 110 #ifdef HAVE_ALTIVEC |
114 DCT_ERROR("altivecfdct", 0, fdct_altivec, fdct, NO_PERM), | 111 {"altivecfdct", 0, fdct_altivec, fdct, NO_PERM}, |
115 #endif | 112 #endif |
116 | 113 |
117 #ifdef ARCH_BFIN | 114 #ifdef ARCH_BFIN |
118 DCT_ERROR("BFINfdct", 0, ff_bfin_fdct, fdct, NO_PERM), | 115 {"BFINfdct", 0, ff_bfin_fdct, fdct, NO_PERM}, |
119 DCT_ERROR("BFINidct", 1, ff_bfin_idct, idct, NO_PERM), | 116 {"BFINidct", 1, ff_bfin_idct, idct, NO_PERM}, |
120 #endif | 117 #endif |
121 | 118 |
122 { 0 } | 119 { 0 } |
123 }; | 120 }; |
124 | 121 |