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