Parent Directory | Revision Log
Revision 1412 - (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 | 1412 | * $Id: sad.h,v 1.20 2004-04-05 20:36:36 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 : | chl | 177 | sad16Func mrsad16_c; |
61 : | suxen_drol | 118 | |
62 : | edgomez | 195 | 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 : | Isibaar | 3 | extern sad8FuncPtr sad8; |
67 : | sad8Func sad8_c; | ||
68 : | edgomez | 1382 | |
69 : | #ifdef ARCH_IS_IA32 | ||
70 : | Isibaar | 3 | sad8Func sad8_mmx; |
71 : | sad8Func sad8_xmm; | ||
72 : | edgomez | 851 | sad8Func sad8_3dne; |
73 : | edgomez | 1382 | #endif |
74 : | |||
75 : | #ifdef ARCH_IS_IA64 | ||
76 : | Isibaar | 209 | sad8Func sad8_ia64; |
77 : | edgomez | 1382 | #endif |
78 : | Isibaar | 3 | |
79 : | edgomez | 1412 | #ifdef ARCH_IS_PPC |
80 : | sad8Func sad8_altivec_c; | ||
81 : | #endif | ||
82 : | |||
83 : | suxen_drol | 329 | 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 : | extern sad16biFuncPtr sad16bi; | ||
89 : | sad16biFunc sad16bi_c; | ||
90 : | edgomez | 1382 | |
91 : | #ifdef ARCH_IS_IA32 | ||
92 : | suxen_drol | 329 | sad16biFunc sad16bi_mmx; |
93 : | sad16biFunc sad16bi_xmm; | ||
94 : | edgomez | 851 | sad16biFunc sad16bi_3dne; |
95 : | suxen_drol | 329 | sad16biFunc sad16bi_3dn; |
96 : | edgomez | 1382 | #endif |
97 : | Isibaar | 209 | |
98 : | edgomez | 1382 | #ifdef ARCH_IS_IA64 |
99 : | sad16biFunc sad16bi_ia64; | ||
100 : | #endif | ||
101 : | suxen_drol | 329 | |
102 : | edgomez | 1412 | #ifdef ARCH_IS_PPC |
103 : | sad16biFunc sad16bi_altivec_c; | ||
104 : | #endif | ||
105 : | |||
106 : | suxen_drol | 329 | 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 | 1382 | |
114 : | #ifdef ARCH_IS_IA32 | ||
115 : | suxen_drol | 329 | sad8biFunc sad8bi_mmx; |
116 : | sad8biFunc sad8bi_xmm; | ||
117 : | edgomez | 851 | sad8biFunc sad8bi_3dne; |
118 : | suxen_drol | 329 | sad8biFunc sad8bi_3dn; |
119 : | edgomez | 1382 | #endif |
120 : | suxen_drol | 329 | |
121 : | |||
122 : | edgomez | 195 | typedef uint32_t(dev16Func) (const uint8_t * const cur, |
123 : | const uint32_t stride); | ||
124 : | typedef dev16Func *dev16FuncPtr; | ||
125 : | Isibaar | 3 | extern dev16FuncPtr dev16; |
126 : | dev16Func dev16_c; | ||
127 : | |||
128 : | edgomez | 851 | 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 | 1382 | |
134 : | edgomez | 851 | sad16vFunc sad16v_c; |
135 : | sad16vFunc sad32v_c; | ||
136 : | Isibaar | 3 | |
137 : | edgomez | 1382 | #ifdef ARCH_IS_IA32 |
138 : | dev16Func dev16_mmx; | ||
139 : | dev16Func dev16_xmm; | ||
140 : | dev16Func dev16_3dne; | ||
141 : | dev16Func dev16_sse2; | ||
142 : | sad16vFunc sad16v_xmm; | ||
143 : | sad16vFunc sad16v_mmx; | ||
144 : | #endif | ||
145 : | Isibaar | 3 | |
146 : | edgomez | 1382 | #ifdef ARCH_IS_IA64 |
147 : | dev16Func dev16_ia64; | ||
148 : | #endif | ||
149 : | |||
150 : | edgomez | 1412 | #ifdef ARCH_IS_PPC |
151 : | dev16Func dev16_altivec_c; | ||
152 : | #endif | ||
153 : | |||
154 : | edgomez | 1382 | typedef uint32_t (sse8Func_16bit)(const int16_t * cur, |
155 : | const int16_t * ref, | ||
156 : | const uint32_t stride); | ||
157 : | typedef sse8Func_16bit *sse8Func_16bitPtr; | ||
158 : | extern sse8Func_16bitPtr sse8_16bit; | ||
159 : | |||
160 : | sse8Func_16bit sse8_16bit_c; | ||
161 : | #ifdef ARCH_IS_IA32 | ||
162 : | sse8Func_16bit sse8_16bit_mmx; | ||
163 : | #endif | ||
164 : | |||
165 : | edgomez | 1412 | #ifdef ARCH_IS_PPC |
166 : | sse8Func_16bit sse8_16bit_altivec_c; | ||
167 : | #endif | ||
168 : | |||
169 : | edgomez | 195 | #endif /* _ENCODER_SAD_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |