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.68 2006-02-25 04:41:12 suxen_drol Exp $ |
* $Id: xvid.c,v 1.70 2006-07-10 08:09:59 syskin Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
40 |
#include "utils/mbfunctions.h" |
#include "utils/mbfunctions.h" |
41 |
#include "quant/quant.h" |
#include "quant/quant.h" |
42 |
#include "motion/motion.h" |
#include "motion/motion.h" |
43 |
|
#include "motion/gmc.h" |
44 |
#include "motion/sad.h" |
#include "motion/sad.h" |
45 |
#include "utils/emms.h" |
#include "utils/emms.h" |
46 |
#include "utils/timer.h" |
#include "utils/timer.h" |
307 |
sse8_16bit = sse8_16bit_c; |
sse8_16bit = sse8_16bit_c; |
308 |
sse8_8bit = sse8_8bit_c; |
sse8_8bit = sse8_8bit_c; |
309 |
|
|
310 |
|
init_GMC(cpu_flags); |
311 |
|
|
312 |
#if defined(ARCH_IS_IA32) |
#if defined(ARCH_IS_IA32) |
313 |
|
|
314 |
if ((cpu_flags & XVID_CPU_MMX) || (cpu_flags & XVID_CPU_MMXEXT) || |
if ((cpu_flags & XVID_CPU_MMX) || (cpu_flags & XVID_CPU_MMXEXT) || |
439 |
interpolate8x8_halfpel_hv_add = interpolate8x8_halfpel_hv_add_xmm; |
interpolate8x8_halfpel_hv_add = interpolate8x8_halfpel_hv_add_xmm; |
440 |
|
|
441 |
/* Quantization */ |
/* Quantization */ |
|
quant_mpeg_intra = quant_mpeg_intra_xmm; |
|
442 |
quant_mpeg_inter = quant_mpeg_inter_xmm; |
quant_mpeg_inter = quant_mpeg_inter_xmm; |
443 |
|
|
444 |
dequant_h263_intra = dequant_h263_intra_xmm; |
dequant_h263_intra = dequant_h263_intra_xmm; |
675 |
quant_h263_inter = quant_h263_inter_x86_64; |
quant_h263_inter = quant_h263_inter_x86_64; |
676 |
dequant_h263_intra = dequant_h263_intra_x86_64; |
dequant_h263_intra = dequant_h263_intra_x86_64; |
677 |
dequant_h263_inter = dequant_h263_inter_x86_64; |
dequant_h263_inter = dequant_h263_inter_x86_64; |
678 |
quant_mpeg_intra = quant_mpeg_intra_x86_64; |
/*quant_mpeg_intra = quant_mpeg_intra_x86_64; fix me! */ |
679 |
quant_mpeg_inter = quant_mpeg_inter_x86_64; |
quant_mpeg_inter = quant_mpeg_inter_x86_64; |
680 |
dequant_mpeg_intra = dequant_mpeg_intra_x86_64; |
dequant_mpeg_intra = dequant_mpeg_intra_x86_64; |
681 |
dequant_mpeg_inter = dequant_mpeg_inter_x86_64; |
dequant_mpeg_inter = dequant_mpeg_inter_x86_64; |