[cvs] / xvidcore / src / motion / sad.h Repository:
ViewVC logotype

Annotation of /xvidcore/src/motion/sad.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18.2.2 - (view) (download)

1 : edgomez 1.18.2.1 /*****************************************************************************
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 :     * $Id$
23 :     *
24 :     ****************************************************************************/
25 :    
26 : Isibaar 1.1 #ifndef _ENCODER_SAD_H_
27 :     #define _ENCODER_SAD_H_
28 :    
29 : edgomez 1.18
30 : Isibaar 1.1 #include "../portab.h"
31 :    
32 : edgomez 1.9 typedef void (sadInitFunc) (void);
33 :     typedef sadInitFunc *sadInitFuncPtr;
34 : canard 1.4
35 :     extern sadInitFuncPtr sadInit;
36 :     sadInitFunc sadInit_altivec;
37 : Isibaar 1.1
38 : suxen_drol 1.5
39 : edgomez 1.9 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 1.1 extern sad16FuncPtr sad16;
45 :     sad16Func sad16_c;
46 : edgomez 1.18.2.2
47 :     #ifdef ARCH_IS_IA32
48 : Isibaar 1.1 sad16Func sad16_mmx;
49 :     sad16Func sad16_xmm;
50 : edgomez 1.18 sad16Func sad16_3dne;
51 : h 1.6 sad16Func sad16_sse2;
52 : edgomez 1.18.2.2 #endif
53 :    
54 :     #ifdef ARCH_IS_ALTIVEC
55 : canard 1.2 sad16Func sad16_altivec;
56 : edgomez 1.18.2.2 #endif
57 :    
58 :     #ifdef ARCH_IS_IA64
59 : Isibaar 1.10 sad16Func sad16_ia64;
60 : edgomez 1.18.2.2 #endif
61 : Isibaar 1.1
62 : chl 1.8 sad16Func mrsad16_c;
63 :    
64 : suxen_drol 1.13 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 :     extern sad8FuncPtr sad8;
69 :     sad8Func sad8_c;
70 : edgomez 1.18.2.2
71 :     #ifdef ARCH_IS_IA32
72 : suxen_drol 1.13 sad8Func sad8_mmx;
73 :     sad8Func sad8_xmm;
74 : edgomez 1.18 sad8Func sad8_3dne;
75 : edgomez 1.18.2.2 #endif
76 :    
77 :     #ifdef ARCH_IS_ALTIVEC
78 : suxen_drol 1.13 sad8Func sad8_altivec;
79 : edgomez 1.18.2.2 #endif
80 : suxen_drol 1.13
81 : edgomez 1.18.2.2 #ifdef ARCH_IS_IA64
82 :     sad8Func sad8_ia64;
83 :     #endif
84 : suxen_drol 1.13
85 : edgomez 1.9 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 : suxen_drol 1.5 extern sad16biFuncPtr sad16bi;
91 :     sad16biFunc sad16bi_c;
92 : edgomez 1.18.2.2
93 :     #ifdef ARCH_IS_IA32
94 : suxen_drol 1.13 sad16biFunc sad16bi_mmx;
95 : Isibaar 1.11 sad16biFunc sad16bi_xmm;
96 : edgomez 1.18 sad16biFunc sad16bi_3dne;
97 : suxen_drol 1.13 sad16biFunc sad16bi_3dn;
98 : edgomez 1.18.2.2 #endif
99 : suxen_drol 1.5
100 : edgomez 1.18.2.2 #ifdef ARCH_IS_IA64
101 :     sad16biFunc sad16bi_ia64;
102 :     #endif
103 : Isibaar 1.10
104 : suxen_drol 1.13 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 1.18.2.2
112 :     #ifdef ARCH_IS_IA32
113 : suxen_drol 1.13 sad8biFunc sad8bi_mmx;
114 :     sad8biFunc sad8bi_xmm;
115 : edgomez 1.18 sad8biFunc sad8bi_3dne;
116 : suxen_drol 1.13 sad8biFunc sad8bi_3dn;
117 : edgomez 1.18.2.2 #endif
118 : Isibaar 1.1
119 :    
120 : edgomez 1.9 typedef uint32_t(dev16Func) (const uint8_t * const cur,
121 :     const uint32_t stride);
122 :     typedef dev16Func *dev16FuncPtr;
123 : Isibaar 1.1 extern dev16FuncPtr dev16;
124 :     dev16Func dev16_c;
125 : edgomez 1.18.2.2
126 :     #ifdef ARCH_IS_IA32
127 : Isibaar 1.1 dev16Func dev16_mmx;
128 :     dev16Func dev16_xmm;
129 : edgomez 1.18 dev16Func dev16_3dne;
130 : h 1.7 dev16Func dev16_sse2;
131 : edgomez 1.18.2.2 #endif
132 :    
133 :     #ifdef ARCH_IS_ALTIVEC
134 : canard 1.2 dev16Func dev16_altivec;
135 : edgomez 1.18.2.2 #endif
136 :    
137 :     #ifdef ARCH_IS_IA64
138 : Isibaar 1.10 dev16Func dev16_ia64;
139 : edgomez 1.18.2.2 #endif
140 : Isibaar 1.1
141 : edgomez 1.18 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 1.18.2.2
147 : edgomez 1.18 sad16vFunc sad16v_c;
148 :     sad16vFunc sad32v_c;
149 :     sad16vFunc mrsad16v;
150 :     sad16vFunc mrsad16v_c;
151 :    
152 : edgomez 1.18.2.2 #ifdef ARCH_IS_IA32
153 :     sad16vFunc sad16v_xmm;
154 :     sad16vFunc sad16v_mmx;
155 :    
156 : edgomez 1.18 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 1.1
161 : edgomez 1.18 void sad16x8total_mmx(const uint8_t *, const uint32_t, int32_t[]);
162 : edgomez 1.18.2.2 #endif
163 : Isibaar 1.1
164 : edgomez 1.9 #endif /* _ENCODER_SAD_H_ */

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