[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.26, Tue Jul 9 01:09:33 2002 UTC revision 1.27, Tue Jul 9 01:37:21 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   *   *
33   *  History   *  History
# Line 87  Line 88 
88          /* Inform the client the core build - unused because we're still alpha */          /* Inform the client the core build - unused because we're still alpha */
89          init_param->core_build = 1000;          init_param->core_build = 1000;
90    
         printf("init_param->cpu_flags %x\n",init_param->cpu_flags);//NIC  
   
91          if ((init_param->cpu_flags & XVID_CPU_CHKONLY))          if ((init_param->cpu_flags & XVID_CPU_CHKONLY))
92          {          {
93                  //init_param->cpu_flags = check_cpu_features();//nic                  init_param->cpu_flags = check_cpu_features();
94                  return XVID_ERR_OK;                  return XVID_ERR_OK;
95          }          }
96    
# Line 100  Line 99 
99                  cpu_flags = init_param->cpu_flags;                  cpu_flags = init_param->cpu_flags;
100          } else {          } else {
101    
102                  //cpu_flags = check_cpu_features();//nic                  cpu_flags = check_cpu_features();
103                  init_param->cpu_flags = cpu_flags;                  init_param->cpu_flags = cpu_flags;
104          }          }
105    
# Line 236  Line 235 
235                  interpolate8x8_halfpel_v  = interpolate8x8_halfpel_v_xmm;                  interpolate8x8_halfpel_v  = interpolate8x8_halfpel_v_xmm;
236                  interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_xmm;                  interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_xmm;
237    
238                    /* Quantization */
239                    dequant_intra = dequant_intra_xmm;
240                    dequant_inter = dequant_inter_xmm;
241    
242                  /* Buffer transfer */                  /* Buffer transfer */
243                  transfer_8to16sub2 = transfer_8to16sub2_xmm;                  transfer_8to16sub2 = transfer_8to16sub2_xmm;
244    
# Line 244  Line 247 
247    
248                  /* ME functions */                  /* ME functions */
249                  sad16 = sad16_xmm;                  sad16 = sad16_xmm;
250                    sad16bi = sad16bi_xmm;
251                  sad8  = sad8_xmm;                  sad8  = sad8_xmm;
252                  dev16 = dev16_xmm;                  dev16 = dev16_xmm;
253    
# Line 260  Line 264 
264          if ((cpu_flags & XVID_CPU_SSE2) > 0) {          if ((cpu_flags & XVID_CPU_SSE2) > 0) {
265  #ifdef EXPERIMENTAL_SSE2_CODE  #ifdef EXPERIMENTAL_SSE2_CODE
266    
267                    calc_cbp = calc_cbp_sse2;
268    
269                  /* Quantization */                  /* Quantization */
270                  quant_intra   = quant_intra_sse2;                  quant_intra   = quant_intra_sse2;
271                  dequant_intra = dequant_intra_sse2;                  dequant_intra = dequant_intra_sse2;
# Line 267  Line 273 
273                  dequant_inter = dequant_inter_sse2;                  dequant_inter = dequant_inter_sse2;
274    
275                  /* ME */                  /* ME */
                 calc_cbp = calc_cbp_sse2;  
276                  sad16    = sad16_sse2;                  sad16    = sad16_sse2;
277                  dev16    = dev16_sse2;                  dev16    = dev16_sse2;
278    
# Line 343  Line 348 
348                  return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1);                  return decoder_decode((DECODER *) handle, (XVID_DEC_FRAME *) param1);
349    
350          case XVID_DEC_CREATE:          case XVID_DEC_CREATE:
351                  /* ***************************************************************************                  return decoder_create((XVID_DEC_PARAM *) param1);
                 NIC uso il secondo parametro 'param2' ma in realta` non so bene per cosa e`  
                 stato pensato ..... e quindi in futuro potrebbe essere un problema  
                 *************************************************************************** */  
                 if(param2!=NULL)  
                         return IM1_decoder_create((XVID_DEC_PARAM *) param1,(XVID_DEC_FRAME *) param2);  
                 else  
                         return decoder_create((XVID_DEC_PARAM *) param1); //NIC commentata  
352    
353          case XVID_DEC_DESTROY:          case XVID_DEC_DESTROY:
354                  return decoder_destroy((DECODER *) handle);                  return decoder_destroy((DECODER *) handle);

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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