[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.21, Sun Jun 23 03:58:32 2002 UTC revision 1.28, Tue Jul 9 01:44:44 2002 UTC
# Line 87  Line 87 
87          /* Inform the client the core build - unused because we're still alpha */          /* Inform the client the core build - unused because we're still alpha */
88          init_param->core_build = 1000;          init_param->core_build = 1000;
89    
90            printf("init_param->cpu_flags %x\n",init_param->cpu_flags);//NIC
91    
92          if ((init_param->cpu_flags & XVID_CPU_CHKONLY))          if ((init_param->cpu_flags & XVID_CPU_CHKONLY))
93          {          {
94                  init_param->cpu_flags = check_cpu_features();                  //init_param->cpu_flags = check_cpu_features();//nic
95                  return XVID_ERR_OK;                  return XVID_ERR_OK;
96          }          }
97    
# Line 98  Line 100 
100                  cpu_flags = init_param->cpu_flags;                  cpu_flags = init_param->cpu_flags;
101          } else {          } else {
102    
103  #ifdef ARCH_X86                  //cpu_flags = check_cpu_features();//nic
                 cpu_flags = check_cpu_features();  
 #else  
                 cpu_flags = 0;  
 #endif  
104                  init_param->cpu_flags = cpu_flags;                  init_param->cpu_flags = cpu_flags;
105          }          }
106    
# Line 197  Line 195 
195                  transfer_8to16copy = transfer_8to16copy_mmx;                  transfer_8to16copy = transfer_8to16copy_mmx;
196                  transfer_16to8copy = transfer_16to8copy_mmx;                  transfer_16to8copy = transfer_16to8copy_mmx;
197                  transfer_8to16sub  = transfer_8to16sub_mmx;                  transfer_8to16sub  = transfer_8to16sub_mmx;
198                    transfer_8to16sub2 = transfer_8to16sub2_mmx;
199                  transfer_16to8add  = transfer_16to8add_mmx;                  transfer_16to8add  = transfer_16to8add_mmx;
200                  transfer8x8_copy   = transfer8x8_copy_mmx;                  transfer8x8_copy   = transfer8x8_copy_mmx;
201    
202    
203                  /* Image Interpolation related functions */                  /* Image Interpolation related functions */
204                  interpolate8x8_halfpel_h  = interpolate8x8_halfpel_h_mmx;                  interpolate8x8_halfpel_h  = interpolate8x8_halfpel_h_mmx;
205                  interpolate8x8_halfpel_v  = interpolate8x8_halfpel_v_mmx;                  interpolate8x8_halfpel_v  = interpolate8x8_halfpel_v_mmx;
# Line 343  Line 343 
343                  return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1);                  return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1);
344    
345          case XVID_DEC_CREATE:          case XVID_DEC_CREATE:
346                  return decoder_create((XVID_DEC_PARAM *) param1);                  /* ***************************************************************************
347                    NIC uso il secondo parametro 'param2' ma in realta` non so bene per cosa e`
348                    stato pensato ..... e quindi in futuro potrebbe essere un problema
349                    *************************************************************************** */
350                    if(param2!=NULL)
351                            return IM1_decoder_create((XVID_DEC_PARAM *) param1,(XVID_DEC_FRAME *) param2);
352                    else
353                            return decoder_create((XVID_DEC_PARAM *) param1); //NIC commentata
354    
355          case XVID_DEC_DESTROY:          case XVID_DEC_DESTROY:
356                  return decoder_destroy((DECODER *) handle);                  return decoder_destroy((DECODER *) handle);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.28

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