44 |
#include "utils/emms.h" |
#include "utils/emms.h" |
45 |
#include "utils/timer.h" |
#include "utils/timer.h" |
46 |
#include "bitstream/mbcoding.h" |
#include "bitstream/mbcoding.h" |
47 |
|
#include "image/qpel.h" |
48 |
|
|
49 |
#if defined(ARCH_IS_IA32) |
#if defined(ARCH_IS_IA32) |
50 |
|
|
182 |
|
|
183 |
init_param->cpu_flags = cpu_flags; |
init_param->cpu_flags = cpu_flags; |
184 |
|
|
185 |
|
/* Qpel stuff */ |
186 |
|
xvid_QP_Funcs = &xvid_QP_Funcs_C; |
187 |
|
xvid_QP_Add_Funcs = &xvid_QP_Add_Funcs_C; |
188 |
|
xvid_Init_QP_mmx(); |
189 |
|
|
190 |
/* Initialize the function pointers */ |
/* Initialize the function pointers */ |
191 |
idct_int32_init(); |
idct_int32_init(); |
323 |
|
|
324 |
if ((cpu_flags & XVID_CPU_MMX)) { |
if ((cpu_flags & XVID_CPU_MMX)) { |
325 |
|
|
326 |
|
/* Qpel stuff */ |
327 |
|
xvid_QP_Funcs = &xvid_QP_Funcs_mmx; |
328 |
|
xvid_QP_Add_Funcs = &xvid_QP_Add_Funcs_mmx; |
329 |
|
xvid_Init_QP_mmx(); |
330 |
|
|
331 |
/* Forward and Inverse Discrete Cosine Transformation functions */ |
/* Forward and Inverse Discrete Cosine Transformation functions */ |
332 |
fdct = fdct_mmx; |
fdct = fdct_mmx; |
333 |
idct = idct_mmx; |
idct = idct_mmx; |
821 |
|
|
822 |
int xvid_init_test(int flags) |
int xvid_init_test(int flags) |
823 |
{ |
{ |
824 |
int cpu_flags = 0; |
#if defined(ARCH_IS_IA32) |
825 |
|
int cpu_flags; |
826 |
srand(time(0)); |
#endif |
827 |
|
|
828 |
printf("XviD tests\n\n"); |
printf("XviD tests\n\n"); |
829 |
|
|
834 |
idct_int32_init(); |
idct_int32_init(); |
835 |
emms(); |
emms(); |
836 |
|
|
837 |
|
srand(time(0)); |
838 |
|
|
839 |
/* fDCT test */ |
/* fDCT test */ |
840 |
printf("--- fdct ---\n"); |
printf("--- fdct ---\n"); |
841 |
test_transform(fdct_int32, fdct_int32, "c", TEST_FDCT, flags); |
test_transform(fdct_int32, fdct_int32, "c", TEST_FDCT, flags); |