Parent Directory | Revision Log
Revision 1.23 - (view) (download)
1 : | edgomez | 1.19 | /***************************************************************************** |
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 : | Isibaar | 1.23 | * $Id: sad.h,v 1.22 2005/01/05 23:02:15 edgomez Exp $ |
23 : | edgomez | 1.19 | * |
24 : | ****************************************************************************/ | ||
25 : | |||
26 : | Isibaar | 1.1 | #ifndef _ENCODER_SAD_H_ |
27 : | #define _ENCODER_SAD_H_ | ||
28 : | |||
29 : | #include "../portab.h" | ||
30 : | |||
31 : | edgomez | 1.9 | typedef void (sadInitFunc) (void); |
32 : | typedef sadInitFunc *sadInitFuncPtr; | ||
33 : | canard | 1.4 | |
34 : | extern sadInitFuncPtr sadInit; | ||
35 : | sadInitFunc sadInit_altivec; | ||
36 : | Isibaar | 1.1 | |
37 : | edgomez | 1.9 | typedef uint32_t(sad16Func) (const uint8_t * const cur, |
38 : | const uint8_t * const ref, | ||
39 : | const uint32_t stride, | ||
40 : | const uint32_t best_sad); | ||
41 : | typedef sad16Func *sad16FuncPtr; | ||
42 : | Isibaar | 1.1 | extern sad16FuncPtr sad16; |
43 : | sad16Func sad16_c; | ||
44 : | edgomez | 1.19 | |
45 : | #ifdef ARCH_IS_IA32 | ||
46 : | Isibaar | 1.1 | sad16Func sad16_mmx; |
47 : | sad16Func sad16_xmm; | ||
48 : | edgomez | 1.18 | sad16Func sad16_3dne; |
49 : | h | 1.6 | sad16Func sad16_sse2; |
50 : | Isibaar | 1.23 | sad16Func sad16_sse3; |
51 : | edgomez | 1.19 | #endif |
52 : | |||
53 : | edgomez | 1.20 | #ifdef ARCH_IS_IA64 |
54 : | sad16Func sad16_ia64; | ||
55 : | edgomez | 1.19 | #endif |
56 : | |||
57 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
58 : | sad16Func sad16_altivec_c; | ||
59 : | edgomez | 1.19 | #endif |
60 : | Isibaar | 1.1 | |
61 : | edgomez | 1.22 | #ifdef ARCH_IS_X86_64 |
62 : | sad16Func sad16_x86_64; | ||
63 : | #endif | ||
64 : | |||
65 : | chl | 1.8 | sad16Func mrsad16_c; |
66 : | |||
67 : | suxen_drol | 1.13 | typedef uint32_t(sad8Func) (const uint8_t * const cur, |
68 : | const uint8_t * const ref, | ||
69 : | const uint32_t stride); | ||
70 : | typedef sad8Func *sad8FuncPtr; | ||
71 : | extern sad8FuncPtr sad8; | ||
72 : | sad8Func sad8_c; | ||
73 : | edgomez | 1.19 | |
74 : | #ifdef ARCH_IS_IA32 | ||
75 : | suxen_drol | 1.13 | sad8Func sad8_mmx; |
76 : | sad8Func sad8_xmm; | ||
77 : | edgomez | 1.18 | sad8Func sad8_3dne; |
78 : | edgomez | 1.19 | #endif |
79 : | |||
80 : | edgomez | 1.20 | #ifdef ARCH_IS_IA64 |
81 : | sad8Func sad8_ia64; | ||
82 : | edgomez | 1.19 | #endif |
83 : | |||
84 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
85 : | sad8Func sad8_altivec_c; | ||
86 : | edgomez | 1.19 | #endif |
87 : | suxen_drol | 1.13 | |
88 : | edgomez | 1.22 | #ifdef ARCH_IS_X86_64 |
89 : | sad8Func sad8_x86_64; | ||
90 : | #endif | ||
91 : | |||
92 : | edgomez | 1.9 | typedef uint32_t(sad16biFunc) (const uint8_t * const cur, |
93 : | const uint8_t * const ref1, | ||
94 : | const uint8_t * const ref2, | ||
95 : | const uint32_t stride); | ||
96 : | typedef sad16biFunc *sad16biFuncPtr; | ||
97 : | suxen_drol | 1.5 | extern sad16biFuncPtr sad16bi; |
98 : | sad16biFunc sad16bi_c; | ||
99 : | edgomez | 1.19 | |
100 : | #ifdef ARCH_IS_IA32 | ||
101 : | suxen_drol | 1.13 | sad16biFunc sad16bi_mmx; |
102 : | Isibaar | 1.11 | sad16biFunc sad16bi_xmm; |
103 : | edgomez | 1.18 | sad16biFunc sad16bi_3dne; |
104 : | suxen_drol | 1.13 | sad16biFunc sad16bi_3dn; |
105 : | edgomez | 1.19 | #endif |
106 : | suxen_drol | 1.5 | |
107 : | edgomez | 1.19 | #ifdef ARCH_IS_IA64 |
108 : | sad16biFunc sad16bi_ia64; | ||
109 : | #endif | ||
110 : | Isibaar | 1.10 | |
111 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
112 : | sad16biFunc sad16bi_altivec_c; | ||
113 : | #endif | ||
114 : | |||
115 : | edgomez | 1.22 | #ifdef ARCH_IS_X86_64 |
116 : | sad16biFunc sad16bi_x86_64; | ||
117 : | #endif | ||
118 : | |||
119 : | suxen_drol | 1.13 | typedef uint32_t(sad8biFunc) (const uint8_t * const cur, |
120 : | const uint8_t * const ref1, | ||
121 : | const uint8_t * const ref2, | ||
122 : | const uint32_t stride); | ||
123 : | typedef sad8biFunc *sad8biFuncPtr; | ||
124 : | extern sad8biFuncPtr sad8bi; | ||
125 : | sad8biFunc sad8bi_c; | ||
126 : | edgomez | 1.19 | |
127 : | #ifdef ARCH_IS_IA32 | ||
128 : | suxen_drol | 1.13 | sad8biFunc sad8bi_mmx; |
129 : | sad8biFunc sad8bi_xmm; | ||
130 : | edgomez | 1.18 | sad8biFunc sad8bi_3dne; |
131 : | suxen_drol | 1.13 | sad8biFunc sad8bi_3dn; |
132 : | edgomez | 1.19 | #endif |
133 : | Isibaar | 1.1 | |
134 : | edgomez | 1.22 | #ifdef ARCH_IS_X86_64 |
135 : | sad8biFunc sad8bi_x86_64; | ||
136 : | #endif | ||
137 : | Isibaar | 1.1 | |
138 : | edgomez | 1.9 | typedef uint32_t(dev16Func) (const uint8_t * const cur, |
139 : | const uint32_t stride); | ||
140 : | typedef dev16Func *dev16FuncPtr; | ||
141 : | Isibaar | 1.1 | extern dev16FuncPtr dev16; |
142 : | dev16Func dev16_c; | ||
143 : | |||
144 : | edgomez | 1.18 | typedef uint32_t (sad16vFunc)( const uint8_t * const cur, |
145 : | const uint8_t * const ref, | ||
146 : | const uint32_t stride, int32_t *sad8); | ||
147 : | typedef sad16vFunc *sad16vFuncPtr; | ||
148 : | extern sad16vFuncPtr sad16v; | ||
149 : | edgomez | 1.19 | |
150 : | sad16vFunc sad16v_c; | ||
151 : | sad16vFunc sad32v_c; | ||
152 : | |||
153 : | #ifdef ARCH_IS_IA32 | ||
154 : | dev16Func dev16_mmx; | ||
155 : | dev16Func dev16_xmm; | ||
156 : | dev16Func dev16_3dne; | ||
157 : | dev16Func dev16_sse2; | ||
158 : | Isibaar | 1.23 | dev16Func dev16_sse3; |
159 : | edgomez | 1.18 | sad16vFunc sad16v_xmm; |
160 : | sad16vFunc sad16v_mmx; | ||
161 : | edgomez | 1.19 | #endif |
162 : | |||
163 : | edgomez | 1.20 | #ifdef ARCH_IS_IA64 |
164 : | dev16Func dev16_ia64; | ||
165 : | edgomez | 1.19 | #endif |
166 : | edgomez | 1.18 | |
167 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
168 : | dev16Func dev16_altivec_c; | ||
169 : | edgomez | 1.19 | #endif |
170 : | Isibaar | 1.1 | |
171 : | edgomez | 1.22 | #ifdef ARCH_IS_X86_64 |
172 : | dev16Func dev16_x86_64; | ||
173 : | sad16vFunc sad16v_x86_64; | ||
174 : | #endif | ||
175 : | |||
176 : | edgomez | 1.21 | /* This function assumes blocks use 16bit signed elements */ |
177 : | edgomez | 1.19 | typedef uint32_t (sse8Func_16bit)(const int16_t * cur, |
178 : | const int16_t * ref, | ||
179 : | const uint32_t stride); | ||
180 : | typedef sse8Func_16bit *sse8Func_16bitPtr; | ||
181 : | extern sse8Func_16bitPtr sse8_16bit; | ||
182 : | |||
183 : | sse8Func_16bit sse8_16bit_c; | ||
184 : | #ifdef ARCH_IS_IA32 | ||
185 : | sse8Func_16bit sse8_16bit_mmx; | ||
186 : | edgomez | 1.20 | #endif |
187 : | |||
188 : | #ifdef ARCH_IS_PPC | ||
189 : | sse8Func_16bit sse8_16bit_altivec_c; | ||
190 : | edgomez | 1.21 | #endif |
191 : | |||
192 : | edgomez | 1.22 | #ifdef ARCH_IS_X86_64 |
193 : | sse8Func_16bit sse8_16bit_x86_64; | ||
194 : | #endif | ||
195 : | |||
196 : | edgomez | 1.21 | /* This function assumes blocks use 8bit *un*signed elements */ |
197 : | typedef uint32_t (sse8Func_8bit)(const uint8_t * cur, | ||
198 : | const uint8_t * ref, | ||
199 : | const uint32_t stride); | ||
200 : | typedef sse8Func_8bit *sse8Func_8bitPtr; | ||
201 : | extern sse8Func_8bitPtr sse8_8bit; | ||
202 : | |||
203 : | sse8Func_8bit sse8_8bit_c; | ||
204 : | edgomez | 1.22 | |
205 : | edgomez | 1.21 | #ifdef ARCH_IS_IA32 |
206 : | sse8Func_8bit sse8_8bit_mmx; | ||
207 : | edgomez | 1.19 | #endif |
208 : | Isibaar | 1.1 | |
209 : | edgomez | 1.22 | #ifdef ARCH_IS_X86_64 |
210 : | sse8Func_8bit sse8_8bit_x86_64; | ||
211 : | #endif | ||
212 : | |||
213 : | edgomez | 1.9 | #endif /* _ENCODER_SAD_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |