19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid.c,v 1.45.2.16 2003-10-07 13:02:35 edgomez Exp $ |
* $Id: xvid.c,v 1.45.2.22 2003-11-30 16:13:15 edgomez Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
287 |
sad8bi = sad8bi_c; |
sad8bi = sad8bi_c; |
288 |
dev16 = dev16_c; |
dev16 = dev16_c; |
289 |
sad16v = sad16v_c; |
sad16v = sad16v_c; |
290 |
|
sse8_16bit = sse8_16bit_c; |
|
/* Halfpel8_Refine = Halfpel8_Refine_c; */ |
|
291 |
|
|
292 |
#if defined(ARCH_IS_IA32) |
#if defined(ARCH_IS_IA32) |
293 |
|
|
307 |
if ((cpu_flags & XVID_CPU_MMX)) { |
if ((cpu_flags & XVID_CPU_MMX)) { |
308 |
|
|
309 |
/* Forward and Inverse Discrete Cosine Transformation functions */ |
/* Forward and Inverse Discrete Cosine Transformation functions */ |
310 |
fdct = fdct_mmx; |
fdct = fdct_mmx_skal; |
311 |
idct = idct_mmx; |
idct = idct_mmx; |
312 |
|
|
313 |
/* Qpel stuff */ |
/* Qpel stuff */ |
379 |
sad8bi = sad8bi_mmx; |
sad8bi = sad8bi_mmx; |
380 |
dev16 = dev16_mmx; |
dev16 = dev16_mmx; |
381 |
sad16v = sad16v_mmx; |
sad16v = sad16v_mmx; |
382 |
|
sse8_16bit = sse8_16bit_mmx; |
383 |
} |
} |
384 |
|
|
385 |
/* these 3dnow functions are faster than mmx, but slower than xmm. */ |
/* these 3dnow functions are faster than mmx, but slower than xmm. */ |
398 |
|
|
399 |
if ((cpu_flags & XVID_CPU_MMXEXT)) { |
if ((cpu_flags & XVID_CPU_MMXEXT)) { |
400 |
|
|
401 |
/* Inverse DCT */ |
/* DCT */ |
402 |
|
fdct = fdct_xmm_skal; |
403 |
idct = idct_xmm; |
idct = idct_xmm; |
404 |
|
|
405 |
/* Interpolation */ |
/* Interpolation */ |
491 |
dequant_h263_intra = dequant_h263_intra_sse2; |
dequant_h263_intra = dequant_h263_intra_sse2; |
492 |
dequant_h263_inter = dequant_h263_inter_sse2; |
dequant_h263_inter = dequant_h263_inter_sse2; |
493 |
|
|
494 |
/* ME; slower than xmm */ |
/* SAD operators */ |
495 |
sad16 = sad16_sse2; |
sad16 = sad16_sse2; |
496 |
dev16 = dev16_sse2; |
dev16 = dev16_sse2; |
497 |
/* Forward and Inverse DCT */ |
|
498 |
#if 0 /* Both function are known to be unprecise, better keep them deactivated */ |
/* DCT operators */ |
499 |
idct = idct_sse2; |
fdct = fdct_sse2_skal; |
500 |
fdct = fdct_sse2; |
idct = idct_sse2_dmitry; |
|
#endif |
|
501 |
} |
} |
502 |
#endif |
#endif |
503 |
#endif |
#endif |
561 |
return XVID_ERR_VERSION; |
return XVID_ERR_VERSION; |
562 |
|
|
563 |
info->actual_version = XVID_VERSION; |
info->actual_version = XVID_VERSION; |
564 |
info->build = "dev-api-4"; |
info->build = "xvid-1.0.0"; |
565 |
info->cpu_flags = detect_cpu_flags(); |
info->cpu_flags = detect_cpu_flags(); |
566 |
|
|
567 |
#if defined(_SMP) && defined(WIN32) |
#if defined(_SMP) && defined(WIN32) |