Parent Directory | Revision Log
Revision 1.21 - (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 : | * $Id$ | ||
23 : | * | ||
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 : | edgomez | 1.19 | #endif |
51 : | |||
52 : | edgomez | 1.20 | #ifdef ARCH_IS_IA64 |
53 : | sad16Func sad16_ia64; | ||
54 : | edgomez | 1.19 | #endif |
55 : | |||
56 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
57 : | sad16Func sad16_altivec_c; | ||
58 : | edgomez | 1.19 | #endif |
59 : | Isibaar | 1.1 | |
60 : | chl | 1.8 | sad16Func mrsad16_c; |
61 : | |||
62 : | suxen_drol | 1.13 | typedef uint32_t(sad8Func) (const uint8_t * const cur, |
63 : | const uint8_t * const ref, | ||
64 : | const uint32_t stride); | ||
65 : | typedef sad8Func *sad8FuncPtr; | ||
66 : | extern sad8FuncPtr sad8; | ||
67 : | sad8Func sad8_c; | ||
68 : | edgomez | 1.19 | |
69 : | #ifdef ARCH_IS_IA32 | ||
70 : | suxen_drol | 1.13 | sad8Func sad8_mmx; |
71 : | sad8Func sad8_xmm; | ||
72 : | edgomez | 1.18 | sad8Func sad8_3dne; |
73 : | edgomez | 1.19 | #endif |
74 : | |||
75 : | edgomez | 1.20 | #ifdef ARCH_IS_IA64 |
76 : | sad8Func sad8_ia64; | ||
77 : | edgomez | 1.19 | #endif |
78 : | |||
79 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
80 : | sad8Func sad8_altivec_c; | ||
81 : | edgomez | 1.19 | #endif |
82 : | suxen_drol | 1.13 | |
83 : | edgomez | 1.9 | typedef uint32_t(sad16biFunc) (const uint8_t * const cur, |
84 : | const uint8_t * const ref1, | ||
85 : | const uint8_t * const ref2, | ||
86 : | const uint32_t stride); | ||
87 : | typedef sad16biFunc *sad16biFuncPtr; | ||
88 : | suxen_drol | 1.5 | extern sad16biFuncPtr sad16bi; |
89 : | sad16biFunc sad16bi_c; | ||
90 : | edgomez | 1.19 | |
91 : | #ifdef ARCH_IS_IA32 | ||
92 : | suxen_drol | 1.13 | sad16biFunc sad16bi_mmx; |
93 : | Isibaar | 1.11 | sad16biFunc sad16bi_xmm; |
94 : | edgomez | 1.18 | sad16biFunc sad16bi_3dne; |
95 : | suxen_drol | 1.13 | sad16biFunc sad16bi_3dn; |
96 : | edgomez | 1.19 | #endif |
97 : | suxen_drol | 1.5 | |
98 : | edgomez | 1.19 | #ifdef ARCH_IS_IA64 |
99 : | sad16biFunc sad16bi_ia64; | ||
100 : | #endif | ||
101 : | Isibaar | 1.10 | |
102 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
103 : | sad16biFunc sad16bi_altivec_c; | ||
104 : | #endif | ||
105 : | |||
106 : | suxen_drol | 1.13 | typedef uint32_t(sad8biFunc) (const uint8_t * const cur, |
107 : | const uint8_t * const ref1, | ||
108 : | const uint8_t * const ref2, | ||
109 : | const uint32_t stride); | ||
110 : | typedef sad8biFunc *sad8biFuncPtr; | ||
111 : | extern sad8biFuncPtr sad8bi; | ||
112 : | sad8biFunc sad8bi_c; | ||
113 : | edgomez | 1.19 | |
114 : | #ifdef ARCH_IS_IA32 | ||
115 : | suxen_drol | 1.13 | sad8biFunc sad8bi_mmx; |
116 : | sad8biFunc sad8bi_xmm; | ||
117 : | edgomez | 1.18 | sad8biFunc sad8bi_3dne; |
118 : | suxen_drol | 1.13 | sad8biFunc sad8bi_3dn; |
119 : | edgomez | 1.19 | #endif |
120 : | Isibaar | 1.1 | |
121 : | |||
122 : | edgomez | 1.9 | typedef uint32_t(dev16Func) (const uint8_t * const cur, |
123 : | const uint32_t stride); | ||
124 : | typedef dev16Func *dev16FuncPtr; | ||
125 : | Isibaar | 1.1 | extern dev16FuncPtr dev16; |
126 : | dev16Func dev16_c; | ||
127 : | |||
128 : | edgomez | 1.18 | typedef uint32_t (sad16vFunc)( const uint8_t * const cur, |
129 : | const uint8_t * const ref, | ||
130 : | const uint32_t stride, int32_t *sad8); | ||
131 : | typedef sad16vFunc *sad16vFuncPtr; | ||
132 : | extern sad16vFuncPtr sad16v; | ||
133 : | edgomez | 1.19 | |
134 : | sad16vFunc sad16v_c; | ||
135 : | sad16vFunc sad32v_c; | ||
136 : | |||
137 : | #ifdef ARCH_IS_IA32 | ||
138 : | dev16Func dev16_mmx; | ||
139 : | dev16Func dev16_xmm; | ||
140 : | dev16Func dev16_3dne; | ||
141 : | dev16Func dev16_sse2; | ||
142 : | edgomez | 1.18 | sad16vFunc sad16v_xmm; |
143 : | sad16vFunc sad16v_mmx; | ||
144 : | edgomez | 1.19 | #endif |
145 : | |||
146 : | edgomez | 1.20 | #ifdef ARCH_IS_IA64 |
147 : | dev16Func dev16_ia64; | ||
148 : | edgomez | 1.19 | #endif |
149 : | edgomez | 1.18 | |
150 : | edgomez | 1.20 | #ifdef ARCH_IS_PPC |
151 : | dev16Func dev16_altivec_c; | ||
152 : | edgomez | 1.19 | #endif |
153 : | Isibaar | 1.1 | |
154 : | edgomez | 1.21 | /* This function assumes blocks use 16bit signed elements */ |
155 : | edgomez | 1.19 | typedef uint32_t (sse8Func_16bit)(const int16_t * cur, |
156 : | const int16_t * ref, | ||
157 : | const uint32_t stride); | ||
158 : | typedef sse8Func_16bit *sse8Func_16bitPtr; | ||
159 : | extern sse8Func_16bitPtr sse8_16bit; | ||
160 : | |||
161 : | sse8Func_16bit sse8_16bit_c; | ||
162 : | #ifdef ARCH_IS_IA32 | ||
163 : | sse8Func_16bit sse8_16bit_mmx; | ||
164 : | edgomez | 1.20 | #endif |
165 : | |||
166 : | #ifdef ARCH_IS_PPC | ||
167 : | sse8Func_16bit sse8_16bit_altivec_c; | ||
168 : | edgomez | 1.21 | #endif |
169 : | |||
170 : | /* This function assumes blocks use 8bit *un*signed elements */ | ||
171 : | typedef uint32_t (sse8Func_8bit)(const uint8_t * cur, | ||
172 : | const uint8_t * ref, | ||
173 : | const uint32_t stride); | ||
174 : | typedef sse8Func_8bit *sse8Func_8bitPtr; | ||
175 : | extern sse8Func_8bitPtr sse8_8bit; | ||
176 : | |||
177 : | sse8Func_8bit sse8_8bit_c; | ||
178 : | #ifdef ARCH_IS_IA32 | ||
179 : | sse8Func_8bit sse8_8bit_mmx; | ||
180 : | edgomez | 1.19 | #endif |
181 : | Isibaar | 1.1 | |
182 : | edgomez | 1.9 | #endif /* _ENCODER_SAD_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |