[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.31, Thu Jul 18 13:47:46 2002 UTC revision 1.34, Wed Sep 4 22:07:07 2002 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Native API implementation  -   *  - Native API implementation  -
5   *   *
6     *  Copyright(C) 2001-2002 Peter Ross <pross@cs.rmit.edu.au>
7     *
8   *  This program is an implementation of a part of one or more MPEG-4   *  This program is an implementation of a part of one or more MPEG-4
9   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending
10   *  to use this software module in hardware or software products are   *  to use this software module in hardware or software products are
# Line 28  Line 30 
30   *   *
31   ****************************************************************************/   ****************************************************************************/
32    
 /*****************************************************************************  
  *  
  *  History  
  *  
  *      - 23.06.2002    added XVID_CPU_CHKONLY  
  *  - 17.03.2002        Added interpolate8x8_halfpel_hv_xmm  
  *  - 22.12.2001  API change: added xvid_init() - Isibaar  
  *  - 16.12.2001        inital version; (c)2001 peter ross <pross@cs.rmit.edu.au>  
  *  
  *  $Id$  
  *  
  ****************************************************************************/  
   
33  #include "xvid.h"  #include "xvid.h"
34  #include "decoder.h"  #include "decoder.h"
35  #include "encoder.h"  #include "encoder.h"
# Line 81  Line 70 
70    
71    
72  /*  /*
73  calls the funcptr, and returns whether SIGILL (illegal instruction) was signalled   * Calls the funcptr, and returns whether SIGILL (illegal instruction) was signalled
74  return values:   * Return values:
75  -1 : could not determine   * -1 : could not determine
76  0  : SIGILL was *not* signalled   * 0  : SIGILL was *not* signalled
77  1  : SIGILL was signalled   * 1  : SIGILL was signalled
78  */  */
79    
80  int  int
# Line 245  Line 234 
234          /* Functions used in motion estimation algorithms */          /* Functions used in motion estimation algorithms */
235          calc_cbp = calc_cbp_c;          calc_cbp = calc_cbp_c;
236          sad16    = sad16_c;          sad16    = sad16_c;
         sad16bi  = sad16bi_c;  
237          sad8     = sad8_c;          sad8     = sad8_c;
238            sad16bi  = sad16bi_c;
239            sad8bi   = sad8bi_c;
240          dev16    = dev16_c;          dev16    = dev16_c;
241    
242          Halfpel8_Refine = Halfpel8_Refine_c;          Halfpel8_Refine = Halfpel8_Refine_c;
243    
244  #ifdef ARCH_X86  #ifdef ARCH_X86
# Line 302  Line 293 
293                  calc_cbp = calc_cbp_mmx;                  calc_cbp = calc_cbp_mmx;
294                  sad16    = sad16_mmx;                  sad16    = sad16_mmx;
295                  sad8     = sad8_mmx;                  sad8     = sad8_mmx;
296                    sad16bi = sad16bi_mmx;
297                    sad8bi  = sad8bi_mmx;
298                  dev16    = dev16_mmx;                  dev16    = dev16_mmx;
299    
300          }          }
301    
302            /* these 3dnow functions are faster than mmx, but slower than xmm. */
303            if ((cpu_flags & XVID_CPU_3DNOW) > 0) {
304    
305                    /* ME functions */
306                    sad16bi = sad16bi_3dn;
307                    sad8bi  = sad8bi_3dn;
308            }
309    
310    
311          if ((cpu_flags & XVID_CPU_MMXEXT) > 0) {          if ((cpu_flags & XVID_CPU_MMXEXT) > 0) {
312    
313                  /* Inverse DCT */                  /* Inverse DCT */
# Line 328  Line 330 
330    
331                  /* ME functions */                  /* ME functions */
332                  sad16 = sad16_xmm;                  sad16 = sad16_xmm;
                 sad16bi = sad16bi_xmm;  
333                  sad8  = sad8_xmm;                  sad8  = sad8_xmm;
334                    sad16bi = sad16bi_xmm;
335                    sad8bi  = sad8bi_xmm;
336                  dev16 = dev16_xmm;                  dev16 = dev16_xmm;
337    
338          }          }

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.34

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