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.7 2003-06-09 19:42:08 edgomez Exp $ |
* $Id: xvid.c,v 1.45.2.10 2003-07-14 12:40:16 syskin Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
305 |
|
|
306 |
/* Forward and Inverse Discrete Cosine Transformation functions */ |
/* Forward and Inverse Discrete Cosine Transformation functions */ |
307 |
fdct = fdct_mmx; |
fdct = fdct_mmx; |
308 |
idct = simple_idct_mmx; |
idct = idct_mmx; |
309 |
|
|
310 |
/* Quantization related functions */ |
/* Quantization related functions */ |
311 |
quant_intra = quant_intra_mmx; |
quant_intra = quant_intra_mmx; |
391 |
if ((cpu_flags & XVID_CPU_MMXEXT)) { |
if ((cpu_flags & XVID_CPU_MMXEXT)) { |
392 |
|
|
393 |
/* Inverse DCT */ |
/* Inverse DCT */ |
|
#if 0 /* We don't use Walken idct anymore! */ |
|
394 |
idct = idct_xmm; |
idct = idct_xmm; |
|
#endif |
|
395 |
|
|
396 |
/* Interpolation */ |
/* Interpolation */ |
397 |
interpolate8x8_halfpel_h = interpolate8x8_halfpel_h_xmm; |
interpolate8x8_halfpel_h = interpolate8x8_halfpel_h_xmm; |
403 |
add_upsampled_8x8_16to8 = xvid_Add_Upsampled_8x8_16To8_xmm; |
add_upsampled_8x8_16to8 = xvid_Add_Upsampled_8x8_16To8_xmm; |
404 |
|
|
405 |
/* Quantization */ |
/* Quantization */ |
406 |
quant4_intra = quant4_intra_xmm; |
// quant4_intra = quant4_intra_xmm; |
407 |
quant4_inter = quant4_inter_xmm; |
quant4_inter = quant4_inter_xmm; |
408 |
|
|
409 |
dequant_intra = dequant_intra_xmm; |
dequant_intra = dequant_intra_xmm; |
437 |
if ((cpu_flags & XVID_CPU_3DNOWEXT)) { |
if ((cpu_flags & XVID_CPU_3DNOWEXT)) { |
438 |
|
|
439 |
/* Inverse DCT */ |
/* Inverse DCT */ |
|
#if 0 /* We don't use Walken idct anymore! */ |
|
440 |
idct = idct_3dne; |
idct = idct_3dne; |
|
#endif |
|
441 |
|
|
442 |
/* Buffer transfer */ |
/* Buffer transfer */ |
443 |
transfer_8to16copy = transfer_8to16copy_3dne; |
transfer_8to16copy = transfer_8to16copy_3dne; |
451 |
/* Quantization */ |
/* Quantization */ |
452 |
dequant4_intra = dequant4_intra_3dne; |
dequant4_intra = dequant4_intra_3dne; |
453 |
dequant4_inter = dequant4_inter_3dne; |
dequant4_inter = dequant4_inter_3dne; |
454 |
quant_intra = quant_intra_3dne; |
// quant_intra = quant_intra_3dne; |
455 |
quant_inter = quant_inter_3dne; |
quant_inter = quant_inter_3dne; |
456 |
dequant_intra = dequant_intra_3dne; |
dequant_intra = dequant_intra_3dne; |
457 |
dequant_inter = dequant_inter_3dne; |
dequant_inter = dequant_inter_3dne; |
517 |
transfer_8to16sub2 = transfer_8to16sub2_ia64; |
transfer_8to16sub2 = transfer_8to16sub2_ia64; |
518 |
transfer_16to8add = transfer_16to8add_ia64; |
transfer_16to8add = transfer_16to8add_ia64; |
519 |
transfer8x8_copy = transfer8x8_copy_ia64; |
transfer8x8_copy = transfer8x8_copy_ia64; |
|
DPRINTF(DPRINTF_DEBUG, "Using IA-64 assembler routines."); |
|
520 |
} |
} |
521 |
#endif |
#endif |
522 |
|
|