[svn] / branches / dev-api-4 / xvidcore / src / motion / sad.h Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/motion/sad.h

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

trunk/xvidcore/src/motion/sad.h revision 603, Sat Oct 19 11:41:12 2002 UTC branches/dev-api-4/xvidcore/src/motion/sad.h revision 1122, Wed Aug 13 11:44:02 2003 UTC
# Line 1  Line 1 
1  /*****************************************************************************  /*****************************************************************************
2   *   *
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - SAD Routines header -   *  - Sum Of Absolute Difference header  -
5   *   *
6   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>   *  Copyright(C) 2001-2003 Peter Ross <pross@xvid.org>
  *  
  *  This program is an implementation of a part of one or more MPEG-4  
  *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending  
  *  to use this software module in hardware or software products are  
  *  advised that its use may infringe existing patents or copyrights, and  
  *  any such use would be at such party's own risk.  The original  
  *  developer of this software module and his/her company, and subsequent  
  *  editors and their companies, will have no liability for use of this  
  *  software or modifications or derivatives thereof.  
7   *   *
8   *  This program is free software; you can redistribute it and/or modify   *  This program is free software; you can redistribute it and/or modify
9   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
# Line 28  Line 19 
19   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>   * $Id: sad.h,v 1.18.2.2 2003-08-13 11:43:59 edgomez Exp $
  *  Copyright(C) 2002 Peter Ross <pross@xvid.org>  
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
26  #ifndef _ENCODER_SAD_H_  #ifndef _ENCODER_SAD_H_
27  #define _ENCODER_SAD_H_  #define _ENCODER_SAD_H_
28    
29    
30  #include "../portab.h"  #include "../portab.h"
31    
32  typedef void (sadInitFunc) (void);  typedef void (sadInitFunc) (void);
# Line 52  Line 43 
43  typedef sad16Func *sad16FuncPtr;  typedef sad16Func *sad16FuncPtr;
44  extern sad16FuncPtr sad16;  extern sad16FuncPtr sad16;
45  sad16Func sad16_c;  sad16Func sad16_c;
46    
47    #ifdef ARCH_IS_IA32
48  sad16Func sad16_mmx;  sad16Func sad16_mmx;
49  sad16Func sad16_xmm;  sad16Func sad16_xmm;
50    sad16Func sad16_3dne;
51  sad16Func sad16_sse2;  sad16Func sad16_sse2;
52    #endif
53    
54    #ifdef ARCH_IS_ALTIVEC
55  sad16Func sad16_altivec;  sad16Func sad16_altivec;
56    #endif
57    
58    #ifdef ARCH_IS_IA64
59  sad16Func sad16_ia64;  sad16Func sad16_ia64;
60    #endif
61    
62  sad16Func mrsad16_c;  sad16Func mrsad16_c;
63    
   
64  typedef uint32_t(sad8Func) (const uint8_t * const cur,  typedef uint32_t(sad8Func) (const uint8_t * const cur,
65                                                          const uint8_t * const ref,                                                          const uint8_t * const ref,
66                                                          const uint32_t stride);                                                          const uint32_t stride);
67  typedef sad8Func *sad8FuncPtr;  typedef sad8Func *sad8FuncPtr;
68  extern sad8FuncPtr sad8;  extern sad8FuncPtr sad8;
69  sad8Func sad8_c;  sad8Func sad8_c;
70    
71    #ifdef ARCH_IS_IA32
72  sad8Func sad8_mmx;  sad8Func sad8_mmx;
73  sad8Func sad8_xmm;  sad8Func sad8_xmm;
74    sad8Func sad8_3dne;
75    #endif
76    
77    #ifdef ARCH_IS_ALTIVEC
78  sad8Func sad8_altivec;  sad8Func sad8_altivec;
79  sad8Func sad8_ia64;  #endif
80    
81    #ifdef ARCH_IS_IA64
82    sad8Func sad8_ia64;
83    #endif
84    
85  typedef uint32_t(sad16biFunc) (const uint8_t * const cur,  typedef uint32_t(sad16biFunc) (const uint8_t * const cur,
86                                                             const uint8_t * const ref1,                                                             const uint8_t * const ref1,
# Line 80  Line 89 
89  typedef sad16biFunc *sad16biFuncPtr;  typedef sad16biFunc *sad16biFuncPtr;
90  extern sad16biFuncPtr sad16bi;  extern sad16biFuncPtr sad16bi;
91  sad16biFunc sad16bi_c;  sad16biFunc sad16bi_c;
92  sad16biFunc sad16bi_ia64;  
93    #ifdef ARCH_IS_IA32
94  sad16biFunc sad16bi_mmx;  sad16biFunc sad16bi_mmx;
95  sad16biFunc sad16bi_xmm;  sad16biFunc sad16bi_xmm;
96    sad16biFunc sad16bi_3dne;
97  sad16biFunc sad16bi_3dn;  sad16biFunc sad16bi_3dn;
98    #endif
99    
100    #ifdef ARCH_IS_IA64
101    sad16biFunc sad16bi_ia64;
102    #endif
103    
104  typedef uint32_t(sad8biFunc) (const uint8_t * const cur,  typedef uint32_t(sad8biFunc) (const uint8_t * const cur,
105                                                             const uint8_t * const ref1,                                                             const uint8_t * const ref1,
# Line 93  Line 108 
108  typedef sad8biFunc *sad8biFuncPtr;  typedef sad8biFunc *sad8biFuncPtr;
109  extern sad8biFuncPtr sad8bi;  extern sad8biFuncPtr sad8bi;
110  sad8biFunc sad8bi_c;  sad8biFunc sad8bi_c;
111    
112    #ifdef ARCH_IS_IA32
113  sad8biFunc sad8bi_mmx;  sad8biFunc sad8bi_mmx;
114  sad8biFunc sad8bi_xmm;  sad8biFunc sad8bi_xmm;
115    sad8biFunc sad8bi_3dne;
116  sad8biFunc sad8bi_3dn;  sad8biFunc sad8bi_3dn;
117    #endif
118    
119    
120  typedef uint32_t(dev16Func) (const uint8_t * const cur,  typedef uint32_t(dev16Func) (const uint8_t * const cur,
# Line 103  Line 122 
122  typedef dev16Func *dev16FuncPtr;  typedef dev16Func *dev16FuncPtr;
123  extern dev16FuncPtr dev16;  extern dev16FuncPtr dev16;
124  dev16Func dev16_c;  dev16Func dev16_c;
125    
126    #ifdef ARCH_IS_IA32
127  dev16Func dev16_mmx;  dev16Func dev16_mmx;
128  dev16Func dev16_xmm;  dev16Func dev16_xmm;
129    dev16Func dev16_3dne;
130  dev16Func dev16_sse2;  dev16Func dev16_sse2;
131  dev16Func dev16_altivec;  #endif
 dev16Func dev16_ia64;  
   
 /* plain c */  
 /*  
132    
133  uint32_t sad16(const uint8_t * const cur,  #ifdef ARCH_IS_ALTIVEC
134                                  const uint8_t * const ref,  dev16Func dev16_altivec;
135                                  const uint32_t stride,  #endif
                                 const uint32_t best_sad);  
   
 uint32_t sad8(const uint8_t * const cur,  
                                 const uint8_t * const ref,  
                                 const uint32_t stride);  
   
 uint32_t dev16(const uint8_t * const cur,  
                                 const uint32_t stride);  
 */  
 /* mmx */  
 /*  
136    
137  uint32_t sad16_mmx(const uint8_t * const cur,  #ifdef ARCH_IS_IA64
138                                  const uint8_t * const ref,  dev16Func dev16_ia64;
139                                  const uint32_t stride,  #endif
                                 const uint32_t best_sad);  
140    
141  uint32_t sad8_mmx(const uint8_t * const cur,  typedef uint32_t (sad16vFunc)(  const uint8_t * const cur,
142                                  const uint8_t * const ref,                                  const uint8_t * const ref,
143                                  const uint32_t stride);                                                                  const uint32_t stride, int32_t *sad8);
144    typedef sad16vFunc *sad16vFuncPtr;
145    extern sad16vFuncPtr sad16v;
146    
147    sad16vFunc sad16v_c;
148    sad16vFunc sad32v_c;
149    sad16vFunc mrsad16v;
150    sad16vFunc mrsad16v_c;
151    
152  uint32_t dev16_mmx(const uint8_t * const cur,  #ifdef ARCH_IS_IA32
153                                  const uint32_t stride);  sad16vFunc sad16v_xmm;
154    sad16vFunc sad16v_mmx;
155    
156  */  int32_t sad8x8mean_mmx( const uint8_t * const current,
157  /* xmm */                                                  const uint8_t * const reference,
 /*  
 uint32_t sad16_xmm(const uint8_t * const cur,  
                                 const uint8_t * const ref,  
158                                  const uint32_t stride,                                  const uint32_t stride,
159                                  const uint32_t best_sad);                                                  const int mean);
160    
161  uint32_t sad8_xmm(const uint8_t * const cur,  void sad16x8total_mmx(const uint8_t *, const uint32_t, int32_t[]);
162                                  const uint8_t * const ref,  #endif
                                 const uint32_t stride);  
   
 uint32_t dev16_xmm(const uint8_t * const cur,  
                                 const uint32_t stride);  
 */  
163    
164  #endif                                                  /* _ENCODER_SAD_H_ */  #endif                                                  /* _ENCODER_SAD_H_ */

Legend:
Removed from v.603  
changed lines
  Added in v.1122

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