[cvs] / xvidcore / src / xvid.c Repository:
ViewVC logotype

Diff of /xvidcore/src/xvid.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.45.4.1, Sat May 3 23:23:55 2003 UTC revision 1.47, Wed Jun 11 14:10:55 2003 UTC
# Line 44  Line 44 
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"
 #include "image/qpel.h"  
47    
48  #if defined(ARCH_IS_IA32)  #if defined(ARCH_IS_IA32)
49    
# Line 182  Line 181 
181    
182          init_param->cpu_flags = cpu_flags;          init_param->cpu_flags = cpu_flags;
183    
         /* Qpel stuff */  
         xvid_QP_Funcs = &xvid_QP_Funcs_C;  
         xvid_QP_Add_Funcs = &xvid_QP_Add_Funcs_C;  
         xvid_Init_QP_mmx();  
184    
185          /* Initialize the function pointers */          /* Initialize the function pointers */
186          idct_int32_init();          idct_int32_init();
# Line 323  Line 318 
318    
319          if ((cpu_flags & XVID_CPU_MMX)) {          if ((cpu_flags & XVID_CPU_MMX)) {
320    
                 /* Qpel stuff */  
                 xvid_QP_Funcs = &xvid_QP_Funcs_mmx;  
                 xvid_QP_Add_Funcs = &xvid_QP_Add_Funcs_mmx;  
                 xvid_Init_QP_mmx();  
   
321                  /* Forward and Inverse Discrete Cosine Transformation functions */                  /* Forward and Inverse Discrete Cosine Transformation functions */
322                  fdct = fdct_mmx;                  fdct = fdct_mmx;
323                  idct = idct_mmx;                  idct = idct_mmx;
# Line 498  Line 488 
488    
489          if ((cpu_flags & XVID_CPU_SSE2)) {          if ((cpu_flags & XVID_CPU_SSE2)) {
490    
491    #if defined(EXPERIMENTAL_SSE2_CODE) /* many people reported crashes with SSE2 */
492                                                                            /* better deactivate it completely and fix everything */
493                                                                            /* in dev-api-4 */
494                  calc_cbp = calc_cbp_sse2;                  calc_cbp = calc_cbp_sse2;
495    
496                  /* Quantization */                  /* Quantization */
# Line 506  Line 499 
499                  quant_inter   = quant_inter_sse2;                  quant_inter   = quant_inter_sse2;
500                  dequant_inter = dequant_inter_sse2;                  dequant_inter = dequant_inter_sse2;
501    
 #if defined(EXPERIMENTAL_SSE2_CODE)  
502                  /* ME; slower than xmm */                  /* ME; slower than xmm */
503                  sad16    = sad16_sse2;                  sad16    = sad16_sse2;
504                  dev16    = dev16_sse2;                  dev16    = dev16_sse2;
505  #endif  #endif
506                  /* Forward and Inverse DCT */                  /* Forward and Inverse DCT */
507                  idct  = idct_sse2;                  /* idct  = idct_sse2;
508                  fdct = fdct_sse2;                  /* fdct = fdct_sse2; Both are none to be unprecise - better deactivate for now */
509          }          }
510  #endif  #endif
511    

Legend:
Removed from v.1.45.4.1  
changed lines
  Added in v.1.47

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4