--- xvid.c 2003/02/20 22:46:18 1.44 +++ xvid.c 2003/06/09 17:07:10 1.46 @@ -17,7 +17,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: xvid.c,v 1.44 2003/02/20 22:46:18 edgomez Exp $ + * $Id: xvid.c,v 1.46 2003/06/09 17:07:10 Isibaar Exp $ * ****************************************************************************/ @@ -320,7 +320,7 @@ /* Forward and Inverse Discrete Cosine Transformation functions */ fdct = fdct_mmx; - idct = idct_mmx; + idct = simple_idct_mmx; /* use simple idct by default */ /* Quantization related functions */ quant_intra = quant_intra_mmx; @@ -406,7 +406,7 @@ if ((cpu_flags & XVID_CPU_MMXEXT)) { /* Inverse DCT */ - idct = idct_xmm; + /* idct = idct_xmm; Don't use Walken idct anymore! */ /* Interpolation */ interpolate8x8_halfpel_h = interpolate8x8_halfpel_h_xmm; @@ -452,7 +452,7 @@ if ((cpu_flags & XVID_CPU_3DNOWEXT)) { /* Inverse DCT */ - idct = idct_3dne; + /* idct = idct_3dne; Don't use Walken idct anymore */ /* Buffer transfer */ transfer_8to16copy = transfer_8to16copy_3dne; @@ -502,8 +502,8 @@ dev16 = dev16_sse2; #endif /* Forward and Inverse DCT */ - idct = idct_sse2; - fdct = fdct_sse2; + /* idct = idct_sse2; + /* fdct = fdct_sse2; Both are none to be unprecise - better deactivate for now */ } #endif @@ -811,9 +811,9 @@ int xvid_init_test(int flags) { - int cpu_flags = 0; - - srand(time(0)); +#if defined(ARCH_IS_IA32) + int cpu_flags; +#endif printf("XviD tests\n\n"); @@ -824,6 +824,8 @@ idct_int32_init(); emms(); + srand(time(0)); + /* fDCT test */ printf("--- fdct ---\n"); test_transform(fdct_int32, fdct_int32, "c", TEST_FDCT, flags);