19 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: mem_transfer.h,v 1.14 2004-04-05 20:36:37 edgomez Exp $ |
* $Id: mem_transfer.h,v 1.17 2005-09-13 12:12:15 suxen_drol Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
55 |
extern TRANSFER_8TO16COPY transfer_8to16copy_altivec_c; |
extern TRANSFER_8TO16COPY transfer_8to16copy_altivec_c; |
56 |
#endif |
#endif |
57 |
|
|
58 |
|
#ifdef ARCH_IS_X86_64 |
59 |
|
extern TRANSFER_8TO16COPY transfer_8to16copy_x86_64; |
60 |
|
#endif |
61 |
|
|
62 |
/***************************************************************************** |
/***************************************************************************** |
63 |
* transfer16to8 API |
* transfer16to8 API |
64 |
****************************************************************************/ |
****************************************************************************/ |
87 |
extern TRANSFER_16TO8COPY transfer_16to8copy_altivec_c; |
extern TRANSFER_16TO8COPY transfer_16to8copy_altivec_c; |
88 |
#endif |
#endif |
89 |
|
|
90 |
|
#ifdef ARCH_IS_X86_64 |
91 |
|
extern TRANSFER_16TO8COPY transfer_16to8copy_x86_64; |
92 |
|
#endif |
93 |
|
|
94 |
/***************************************************************************** |
/***************************************************************************** |
95 |
* transfer8to16 + substraction *writeback* op API |
* transfer8to16 + substraction *writeback* op API |
96 |
****************************************************************************/ |
****************************************************************************/ |
121 |
extern TRANSFER_8TO16SUB transfer_8to16sub_altivec_c; |
extern TRANSFER_8TO16SUB transfer_8to16sub_altivec_c; |
122 |
#endif |
#endif |
123 |
|
|
124 |
|
#ifdef ARCH_IS_X86_64 |
125 |
|
extern TRANSFER_8TO16SUB transfer_8to16sub_x86_64; |
126 |
|
#endif |
127 |
|
|
128 |
/***************************************************************************** |
/***************************************************************************** |
129 |
* transfer8to16 + substraction *readonly* op API |
* transfer8to16 + substraction *readonly* op API |
130 |
****************************************************************************/ |
****************************************************************************/ |
151 |
extern TRANSFER_8TO16SUBRO transfer_8to16subro_altivec_c; |
extern TRANSFER_8TO16SUBRO transfer_8to16subro_altivec_c; |
152 |
#endif |
#endif |
153 |
|
|
154 |
|
#ifdef ARCH_IS_X86_64 |
155 |
|
extern TRANSFER_8TO16SUBRO transfer_8to16subro_x86_64; |
156 |
|
#endif |
157 |
|
|
158 |
/***************************************************************************** |
/***************************************************************************** |
159 |
* transfer8to16 + substraction op API - Bidirectionnal Version |
* transfer8to16 + substraction op API - Bidirectionnal Version |
160 |
****************************************************************************/ |
****************************************************************************/ |
187 |
extern TRANSFER_8TO16SUB2 transfer_8to16sub2_altivec_c; |
extern TRANSFER_8TO16SUB2 transfer_8to16sub2_altivec_c; |
188 |
#endif |
#endif |
189 |
|
|
190 |
|
#ifdef ARCH_IS_X86_64 |
191 |
|
extern TRANSFER_8TO16SUB2 transfer_8to16sub2_x86_64; |
192 |
|
#endif |
193 |
|
|
194 |
|
/***************************************************************************** |
195 |
|
* transfer8to16 + substraction op API - Bidirectionnal Version *readonly* |
196 |
|
****************************************************************************/ |
197 |
|
|
198 |
|
typedef void (TRANSFER_8TO16SUB2RO) (int16_t * const dct, |
199 |
|
const uint8_t * const cur, |
200 |
|
const uint8_t * ref1, |
201 |
|
const uint8_t * ref2, |
202 |
|
const uint32_t stride); |
203 |
|
|
204 |
|
typedef TRANSFER_8TO16SUB2RO *TRANSFER_8TO16SUB2RO_PTR; |
205 |
|
|
206 |
|
/* Our global function pointer - Initialized in xvid.c */ |
207 |
|
extern TRANSFER_8TO16SUB2RO_PTR transfer_8to16sub2ro; |
208 |
|
|
209 |
|
/* Implemented functions */ |
210 |
|
TRANSFER_8TO16SUB2RO transfer_8to16sub2ro_c; |
211 |
|
|
212 |
|
#ifdef ARCH_IS_IA32 |
213 |
|
extern TRANSFER_8TO16SUB2RO transfer_8to16sub2ro_xmm; |
214 |
|
#endif |
215 |
|
|
216 |
|
#ifdef ARCH_IS_X86_64 |
217 |
|
extern TRANSFER_8TO16SUB2RO transfer_8to16sub2ro_x86_64; |
218 |
|
#endif |
219 |
|
|
220 |
/***************************************************************************** |
/***************************************************************************** |
221 |
* transfer16to8 + addition op API |
* transfer16to8 + addition op API |
222 |
****************************************************************************/ |
****************************************************************************/ |
246 |
extern TRANSFER_16TO8ADD transfer_16to8add_altivec_c; |
extern TRANSFER_16TO8ADD transfer_16to8add_altivec_c; |
247 |
#endif |
#endif |
248 |
|
|
249 |
|
#ifdef ARCH_IS_X86_64 |
250 |
|
extern TRANSFER_16TO8ADD transfer_16to8add_x86_64; |
251 |
|
#endif |
252 |
|
|
253 |
/***************************************************************************** |
/***************************************************************************** |
254 |
* transfer8to8 + no op |
* transfer8to8 + no op |
255 |
****************************************************************************/ |
****************************************************************************/ |
279 |
extern TRANSFER8X8_COPY transfer8x8_copy_altivec_c; |
extern TRANSFER8X8_COPY transfer8x8_copy_altivec_c; |
280 |
#endif |
#endif |
281 |
|
|
282 |
|
#ifdef ARCH_IS_X86_64 |
283 |
|
extern TRANSFER8X8_COPY transfer8x8_copy_x86_64; |
284 |
|
#endif |
285 |
|
|
286 |
|
/***************************************************************************** |
287 |
|
* transfer8to4 + no op |
288 |
|
****************************************************************************/ |
289 |
|
|
290 |
|
typedef void (TRANSFER8X4_COPY) (uint8_t * const dst, |
291 |
|
const uint8_t * const src, |
292 |
|
const uint32_t stride); |
293 |
|
|
294 |
|
typedef TRANSFER8X4_COPY *TRANSFER8X4_COPY_PTR; |
295 |
|
|
296 |
|
/* Our global function pointer - Initialized in xvid.c */ |
297 |
|
extern TRANSFER8X4_COPY_PTR transfer8x4_copy; |
298 |
|
|
299 |
|
/* Implemented functions */ |
300 |
|
extern TRANSFER8X4_COPY transfer8x4_copy_c; |
301 |
|
|
302 |
|
#ifdef ARCH_IS_IA32 |
303 |
|
extern TRANSFER8X4_COPY transfer8x4_copy_mmx; |
304 |
|
extern TRANSFER8X4_COPY transfer8x4_copy_3dne; |
305 |
|
#endif |
306 |
|
|
307 |
|
|
308 |
static __inline void |
static __inline void |
309 |
transfer16x16_copy(uint8_t * const dst, |
transfer16x16_copy(uint8_t * const dst, |
310 |
const uint8_t * const src, |
const uint8_t * const src, |