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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1122 - (view) (download)

1 : edgomez 1054 /*****************************************************************************
2 :     *
3 :     * XVID MPEG-4 VIDEO CODEC
4 :     * - Sum Of Absolute Difference header -
5 :     *
6 :     * Copyright(C) 2001-2003 Peter Ross <pross@xvid.org>
7 :     *
8 :     * 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
10 :     * the Free Software Foundation ; either version 2 of the License, or
11 :     * (at your option) any later version.
12 :     *
13 :     * This program is distributed in the hope that it will be useful,
14 :     * but WITHOUT ANY WARRANTY ; without even the implied warranty of
15 :     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 :     * GNU General Public License for more details.
17 :     *
18 :     * You should have received a copy of the GNU General Public License
19 :     * along with this program ; if not, write to the Free Software
20 :     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 :     *
22 : edgomez 1122 * $Id: sad.h,v 1.18.2.2 2003-08-13 11:43:59 edgomez Exp $
23 : edgomez 1054 *
24 :     ****************************************************************************/
25 :    
26 : Isibaar 3 #ifndef _ENCODER_SAD_H_
27 :     #define _ENCODER_SAD_H_
28 :    
29 : edgomez 851
30 : Isibaar 3 #include "../portab.h"
31 :    
32 : edgomez 195 typedef void (sadInitFunc) (void);
33 :     typedef sadInitFunc *sadInitFuncPtr;
34 : Isibaar 3
35 : canard 115 extern sadInitFuncPtr sadInit;
36 :     sadInitFunc sadInit_altivec;
37 :    
38 : suxen_drol 118
39 : edgomez 195 typedef uint32_t(sad16Func) (const uint8_t * const cur,
40 :     const uint8_t * const ref,
41 :     const uint32_t stride,
42 :     const uint32_t best_sad);
43 :     typedef sad16Func *sad16FuncPtr;
44 : Isibaar 3 extern sad16FuncPtr sad16;
45 :     sad16Func sad16_c;
46 : edgomez 1122
47 :     #ifdef ARCH_IS_IA32
48 : Isibaar 3 sad16Func sad16_mmx;
49 :     sad16Func sad16_xmm;
50 : edgomez 851 sad16Func sad16_3dne;
51 : h 126 sad16Func sad16_sse2;
52 : edgomez 1122 #endif
53 :    
54 :     #ifdef ARCH_IS_ALTIVEC
55 : canard 89 sad16Func sad16_altivec;
56 : edgomez 1122 #endif
57 :    
58 :     #ifdef ARCH_IS_IA64
59 : Isibaar 209 sad16Func sad16_ia64;
60 : edgomez 1122 #endif
61 : Isibaar 3
62 : chl 177 sad16Func mrsad16_c;
63 : suxen_drol 118
64 : edgomez 195 typedef uint32_t(sad8Func) (const uint8_t * const cur,
65 :     const uint8_t * const ref,
66 :     const uint32_t stride);
67 :     typedef sad8Func *sad8FuncPtr;
68 : Isibaar 3 extern sad8FuncPtr sad8;
69 :     sad8Func sad8_c;
70 : edgomez 1122
71 :     #ifdef ARCH_IS_IA32
72 : Isibaar 3 sad8Func sad8_mmx;
73 :     sad8Func sad8_xmm;
74 : edgomez 851 sad8Func sad8_3dne;
75 : edgomez 1122 #endif
76 :    
77 :     #ifdef ARCH_IS_ALTIVEC
78 : canard 90 sad8Func sad8_altivec;
79 : edgomez 1122 #endif
80 :    
81 :     #ifdef ARCH_IS_IA64
82 : Isibaar 209 sad8Func sad8_ia64;
83 : edgomez 1122 #endif
84 : Isibaar 3
85 : suxen_drol 329 typedef uint32_t(sad16biFunc) (const uint8_t * const cur,
86 :     const uint8_t * const ref1,
87 :     const uint8_t * const ref2,
88 :     const uint32_t stride);
89 :     typedef sad16biFunc *sad16biFuncPtr;
90 :     extern sad16biFuncPtr sad16bi;
91 :     sad16biFunc sad16bi_c;
92 : edgomez 1122
93 :     #ifdef ARCH_IS_IA32
94 : suxen_drol 329 sad16biFunc sad16bi_mmx;
95 :     sad16biFunc sad16bi_xmm;
96 : edgomez 851 sad16biFunc sad16bi_3dne;
97 : suxen_drol 329 sad16biFunc sad16bi_3dn;
98 : edgomez 1122 #endif
99 : Isibaar 209
100 : edgomez 1122 #ifdef ARCH_IS_IA64
101 :     sad16biFunc sad16bi_ia64;
102 :     #endif
103 : suxen_drol 329
104 :     typedef uint32_t(sad8biFunc) (const uint8_t * const cur,
105 :     const uint8_t * const ref1,
106 :     const uint8_t * const ref2,
107 :     const uint32_t stride);
108 :     typedef sad8biFunc *sad8biFuncPtr;
109 :     extern sad8biFuncPtr sad8bi;
110 :     sad8biFunc sad8bi_c;
111 : edgomez 1122
112 :     #ifdef ARCH_IS_IA32
113 : suxen_drol 329 sad8biFunc sad8bi_mmx;
114 :     sad8biFunc sad8bi_xmm;
115 : edgomez 851 sad8biFunc sad8bi_3dne;
116 : suxen_drol 329 sad8biFunc sad8bi_3dn;
117 : edgomez 1122 #endif
118 : suxen_drol 329
119 :    
120 : edgomez 195 typedef uint32_t(dev16Func) (const uint8_t * const cur,
121 :     const uint32_t stride);
122 :     typedef dev16Func *dev16FuncPtr;
123 : Isibaar 3 extern dev16FuncPtr dev16;
124 :     dev16Func dev16_c;
125 : edgomez 1122
126 :     #ifdef ARCH_IS_IA32
127 : Isibaar 3 dev16Func dev16_mmx;
128 :     dev16Func dev16_xmm;
129 : edgomez 851 dev16Func dev16_3dne;
130 : h 135 dev16Func dev16_sse2;
131 : edgomez 1122 #endif
132 :    
133 :     #ifdef ARCH_IS_ALTIVEC
134 : canard 89 dev16Func dev16_altivec;
135 : edgomez 1122 #endif
136 :    
137 :     #ifdef ARCH_IS_IA64
138 : Isibaar 209 dev16Func dev16_ia64;
139 : edgomez 1122 #endif
140 : Isibaar 3
141 : edgomez 851 typedef uint32_t (sad16vFunc)( const uint8_t * const cur,
142 :     const uint8_t * const ref,
143 :     const uint32_t stride, int32_t *sad8);
144 :     typedef sad16vFunc *sad16vFuncPtr;
145 :     extern sad16vFuncPtr sad16v;
146 : edgomez 1122
147 : edgomez 851 sad16vFunc sad16v_c;
148 :     sad16vFunc sad32v_c;
149 :     sad16vFunc mrsad16v;
150 :     sad16vFunc mrsad16v_c;
151 : Isibaar 3
152 : edgomez 1122 #ifdef ARCH_IS_IA32
153 :     sad16vFunc sad16v_xmm;
154 :     sad16vFunc sad16v_mmx;
155 :    
156 : edgomez 851 int32_t sad8x8mean_mmx( const uint8_t * const current,
157 :     const uint8_t * const reference,
158 :     const uint32_t stride,
159 :     const int mean);
160 : Isibaar 3
161 : edgomez 851 void sad16x8total_mmx(const uint8_t *, const uint32_t, int32_t[]);
162 : edgomez 1122 #endif
163 : Isibaar 3
164 : edgomez 195 #endif /* _ENCODER_SAD_H_ */

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