Parent Directory | Revision Log
Revision 1387 - (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 : | * $Id: sad.h,v 1.19 2004-03-22 22:36:24 edgomez Exp $ | ||
23 : | * | ||
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_ALTIVEC | ||
53 : | canard | 89 | sad16Func sad16_altivec; |
54 : | edgomez | 1382 | #endif |
55 : | |||
56 : | #ifdef ARCH_IS_IA64 | ||
57 : | Isibaar | 209 | sad16Func sad16_ia64; |
58 : | edgomez | 1382 | #endif |
59 : | Isibaar | 3 | |
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_ALTIVEC | ||
76 : | canard | 90 | sad8Func sad8_altivec; |
77 : | edgomez | 1382 | #endif |
78 : | |||
79 : | #ifdef ARCH_IS_IA64 | ||
80 : | Isibaar | 209 | sad8Func sad8_ia64; |
81 : | edgomez | 1382 | #endif |
82 : | Isibaar | 3 | |
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 : | typedef uint32_t(sad8biFunc) (const uint8_t * const cur, | ||
103 : | const uint8_t * const ref1, | ||
104 : | const uint8_t * const ref2, | ||
105 : | const uint32_t stride); | ||
106 : | typedef sad8biFunc *sad8biFuncPtr; | ||
107 : | extern sad8biFuncPtr sad8bi; | ||
108 : | sad8biFunc sad8bi_c; | ||
109 : | edgomez | 1382 | |
110 : | #ifdef ARCH_IS_IA32 | ||
111 : | suxen_drol | 329 | sad8biFunc sad8bi_mmx; |
112 : | sad8biFunc sad8bi_xmm; | ||
113 : | edgomez | 851 | sad8biFunc sad8bi_3dne; |
114 : | suxen_drol | 329 | sad8biFunc sad8bi_3dn; |
115 : | edgomez | 1382 | #endif |
116 : | suxen_drol | 329 | |
117 : | |||
118 : | edgomez | 195 | typedef uint32_t(dev16Func) (const uint8_t * const cur, |
119 : | const uint32_t stride); | ||
120 : | typedef dev16Func *dev16FuncPtr; | ||
121 : | Isibaar | 3 | extern dev16FuncPtr dev16; |
122 : | dev16Func dev16_c; | ||
123 : | |||
124 : | edgomez | 851 | typedef uint32_t (sad16vFunc)( const uint8_t * const cur, |
125 : | const uint8_t * const ref, | ||
126 : | const uint32_t stride, int32_t *sad8); | ||
127 : | typedef sad16vFunc *sad16vFuncPtr; | ||
128 : | extern sad16vFuncPtr sad16v; | ||
129 : | edgomez | 1382 | |
130 : | edgomez | 851 | sad16vFunc sad16v_c; |
131 : | sad16vFunc sad32v_c; | ||
132 : | Isibaar | 3 | |
133 : | edgomez | 1382 | #ifdef ARCH_IS_IA32 |
134 : | dev16Func dev16_mmx; | ||
135 : | dev16Func dev16_xmm; | ||
136 : | dev16Func dev16_3dne; | ||
137 : | dev16Func dev16_sse2; | ||
138 : | sad16vFunc sad16v_xmm; | ||
139 : | sad16vFunc sad16v_mmx; | ||
140 : | #endif | ||
141 : | Isibaar | 3 | |
142 : | edgomez | 1382 | #ifdef ARCH_IS_ALTIVEC |
143 : | dev16Func dev16_altivec; | ||
144 : | #endif | ||
145 : | Isibaar | 3 | |
146 : | edgomez | 1382 | #ifdef ARCH_IS_IA64 |
147 : | dev16Func dev16_ia64; | ||
148 : | #endif | ||
149 : | |||
150 : | typedef uint32_t (sse8Func_16bit)(const int16_t * cur, | ||
151 : | const int16_t * ref, | ||
152 : | const uint32_t stride); | ||
153 : | typedef sse8Func_16bit *sse8Func_16bitPtr; | ||
154 : | extern sse8Func_16bitPtr sse8_16bit; | ||
155 : | |||
156 : | sse8Func_16bit sse8_16bit_c; | ||
157 : | #ifdef ARCH_IS_IA32 | ||
158 : | sse8Func_16bit sse8_16bit_mmx; | ||
159 : | #endif | ||
160 : | |||
161 : | edgomez | 195 | #endif /* _ENCODER_SAD_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |