[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.25, Sun Jul 7 13:21:34 2002 UTC revision 1.26, Tue Jul 9 01:09:33 2002 UTC
# Line 27  Line 27 
27   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
28   *   *
29   ****************************************************************************/   ****************************************************************************/
   
30  /*****************************************************************************  /*****************************************************************************
31   *   *
32   *  History   *  History
# Line 88  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 99  Line 100 
100                  cpu_flags = init_param->cpu_flags;                  cpu_flags = init_param->cpu_flags;
101          } else {          } else {
102    
103                  cpu_flags = check_cpu_features();                  //cpu_flags = check_cpu_features();//nic
104                  init_param->cpu_flags = cpu_flags;                  init_param->cpu_flags = cpu_flags;
105          }          }
106    
# Line 235  Line 236 
236                  interpolate8x8_halfpel_v  = interpolate8x8_halfpel_v_xmm;                  interpolate8x8_halfpel_v  = interpolate8x8_halfpel_v_xmm;
237                  interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_xmm;                  interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_xmm;
238    
                 /* Quantization */  
                 dequant_intra = dequant_intra_xmm;  
                 dequant_inter = dequant_inter_xmm;  
   
239                  /* Buffer transfer */                  /* Buffer transfer */
240                  transfer_8to16sub2 = transfer_8to16sub2_xmm;                  transfer_8to16sub2 = transfer_8to16sub2_xmm;
241    
# Line 247  Line 244 
244    
245                  /* ME functions */                  /* ME functions */
246                  sad16 = sad16_xmm;                  sad16 = sad16_xmm;
                 sad16bi = sad16bi_xmm;  
247                  sad8  = sad8_xmm;                  sad8  = sad8_xmm;
248                  dev16 = dev16_xmm;                  dev16 = dev16_xmm;
249    
# Line 264  Line 260 
260          if ((cpu_flags & XVID_CPU_SSE2) > 0) {          if ((cpu_flags & XVID_CPU_SSE2) > 0) {
261  #ifdef EXPERIMENTAL_SSE2_CODE  #ifdef EXPERIMENTAL_SSE2_CODE
262    
                 calc_cbp = calc_cbp_sse2;  
   
263                  /* Quantization */                  /* Quantization */
264                  quant_intra   = quant_intra_sse2;                  quant_intra   = quant_intra_sse2;
265                  dequant_intra = dequant_intra_sse2;                  dequant_intra = dequant_intra_sse2;
# Line 273  Line 267 
267                  dequant_inter = dequant_inter_sse2;                  dequant_inter = dequant_inter_sse2;
268    
269                  /* ME */                  /* ME */
270                    calc_cbp = calc_cbp_sse2;
271                  sad16    = sad16_sse2;                  sad16    = sad16_sse2;
272                  dev16    = dev16_sse2;                  dev16    = dev16_sse2;
273    
# Line 348  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.25  
changed lines
  Added in v.1.26

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