[cvs] / xvidcore / src / utils / mem_transfer.h Repository:
ViewVC logotype

Diff of /xvidcore/src/utils/mem_transfer.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.2, Thu Dec 19 00:41:02 2002 UTC revision 1.18, Wed Nov 26 01:04:34 2008 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - 8<->16 bit buffer transfer header -   *  - 8<->16 bit buffer transfer header -
5   *   *
6   *  This program is an implementation of a part of one or more MPEG-4   *  Copyright(C) 2001-2003 Peter Ross <pross@xvid.org>
  *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending  
  *  to use this software module in hardware or software products are  
  *  advised that its use may infringe existing patents or copyrights, and  
  *  any such use would be at such party's own risk.  The original  
  *  developer of this software module and his/her company, and subsequent  
  *  editors and their companies, will have no liability for use of this  
  *  software or modifications or derivatives thereof.  
7   *   *
8   *  This program is free software ; you can redistribute it and/or modify   *  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   *  it under the terms of the GNU General Public License as published by
# Line 26  Line 19 
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   *   *
  ****************************************************************************/  
 /*****************************************************************************  
  *  
  *  History  
  *  
  *  - Sun Jun 16 00:12:49 2002 Added legal header  
  *                             Cosmetic  
22   *  $Id$   *  $Id$
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
   
26  #ifndef _MEM_TRANSFER_H  #ifndef _MEM_TRANSFER_H
27  #define _MEM_TRANSFER_H  #define _MEM_TRANSFER_H
28    
# Line 55  Line 40 
40  extern TRANSFER_8TO16COPY_PTR transfer_8to16copy;  extern TRANSFER_8TO16COPY_PTR transfer_8to16copy;
41    
42  /* Implemented functions */  /* Implemented functions */
43  TRANSFER_8TO16COPY transfer_8to16copy_c;  extern TRANSFER_8TO16COPY transfer_8to16copy_c;
44  TRANSFER_8TO16COPY transfer_8to16copy_mmx;  
45  TRANSFER_8TO16COPY transfer_8to16copy_3dne;  #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
46  TRANSFER_8TO16COPY transfer_8to16copy_ia64;  extern TRANSFER_8TO16COPY transfer_8to16copy_mmx;
47    extern TRANSFER_8TO16COPY transfer_8to16copy_3dne;
48    #endif
49    
50    #ifdef ARCH_IS_IA64
51    extern TRANSFER_8TO16COPY transfer_8to16copy_ia64;
52    #endif
53    
54    #ifdef ARCH_IS_PPC
55    extern TRANSFER_8TO16COPY transfer_8to16copy_altivec_c;
56    #endif
57    
58  /*****************************************************************************  /*****************************************************************************
59   * transfer16to8 API   * transfer16to8 API
# Line 73  Line 68 
68  extern TRANSFER_16TO8COPY_PTR transfer_16to8copy;  extern TRANSFER_16TO8COPY_PTR transfer_16to8copy;
69    
70  /* Implemented functions */  /* Implemented functions */
71  TRANSFER_16TO8COPY transfer_16to8copy_c;  extern TRANSFER_16TO8COPY transfer_16to8copy_c;
72  TRANSFER_16TO8COPY transfer_16to8copy_mmx;  
73  TRANSFER_16TO8COPY transfer_16to8copy_3dne;  #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
74  TRANSFER_16TO8COPY transfer_16to8copy_ia64;  extern TRANSFER_16TO8COPY transfer_16to8copy_mmx;
75    extern TRANSFER_16TO8COPY transfer_16to8copy_3dne;
76    #endif
77    
78    #ifdef ARCH_IS_IA64
79    extern TRANSFER_16TO8COPY transfer_16to8copy_ia64;
80    #endif
81    
82    #ifdef ARCH_IS_PPC
83    extern TRANSFER_16TO8COPY transfer_16to8copy_altivec_c;
84    #endif
85    
86    #ifdef ARCH_IS_X86_64
87    extern TRANSFER_16TO8COPY transfer_16to8copy_x86_64;
88    #endif
89    
90  /*****************************************************************************  /*****************************************************************************
91   * transfer8to16 + substraction op API   * transfer8to16 + substraction *writeback* op API
92   ****************************************************************************/   ****************************************************************************/
93    
94  typedef void (TRANSFER_8TO16SUB) (int16_t * const dct,  typedef void (TRANSFER_8TO16SUB) (int16_t * const dct,
# Line 93  Line 102 
102  extern TRANSFER_8TO16SUB_PTR transfer_8to16sub;  extern TRANSFER_8TO16SUB_PTR transfer_8to16sub;
103    
104  /* Implemented functions */  /* Implemented functions */
105  TRANSFER_8TO16SUB transfer_8to16sub_c;  extern TRANSFER_8TO16SUB transfer_8to16sub_c;
106  TRANSFER_8TO16SUB transfer_8to16sub_mmx;  
107  TRANSFER_8TO16SUB transfer_8to16sub_3dne;  #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
108  TRANSFER_8TO16SUB transfer_8to16sub_ia64;  extern TRANSFER_8TO16SUB transfer_8to16sub_mmx;
109    extern TRANSFER_8TO16SUB transfer_8to16sub_3dne;
110    #endif
111    
112    #ifdef ARCH_IS_IA64
113    extern TRANSFER_8TO16SUB transfer_8to16sub_ia64;
114    #endif
115    
116    #ifdef ARCH_IS_PPC
117    extern TRANSFER_8TO16SUB transfer_8to16sub_altivec_c;
118    #endif
119    
120    #ifdef ARCH_IS_X86_64
121    extern TRANSFER_8TO16SUB transfer_8to16sub_x86_64;
122    #endif
123    
124    /*****************************************************************************
125     * transfer8to16 + substraction *readonly* op API
126     ****************************************************************************/
127    
128    typedef void (TRANSFER_8TO16SUBRO) (int16_t * const dct,
129                                                                      const uint8_t * const cur,
130                                                                      const uint8_t * ref,
131                                                                      const uint32_t stride);
132    
133    typedef TRANSFER_8TO16SUBRO *TRANSFER_8TO16SUBRO_PTR;
134    
135    /* Our global function pointer - Initialized in xvid.c */
136    extern TRANSFER_8TO16SUBRO_PTR transfer_8to16subro;
137    
138    /* Implemented functions */
139    extern TRANSFER_8TO16SUBRO transfer_8to16subro_c;
140    
141    #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
142    extern TRANSFER_8TO16SUBRO transfer_8to16subro_mmx;
143    extern TRANSFER_8TO16SUBRO transfer_8to16subro_3dne;
144    #endif
145    
146    #ifdef ARCH_IS_PPC
147    extern TRANSFER_8TO16SUBRO transfer_8to16subro_altivec_c;
148    #endif
149    
150    #ifdef ARCH_IS_X86_64
151    extern TRANSFER_8TO16SUBRO transfer_8to16subro_x86_64;
152    #endif
153    
154  /*****************************************************************************  /*****************************************************************************
155   * transfer8to16 + substraction op API - Bidirectionnal Version   * transfer8to16 + substraction op API - Bidirectionnal Version
# Line 115  Line 168 
168    
169  /* Implemented functions */  /* Implemented functions */
170  TRANSFER_8TO16SUB2 transfer_8to16sub2_c;  TRANSFER_8TO16SUB2 transfer_8to16sub2_c;
 TRANSFER_8TO16SUB2 transfer_8to16sub2_mmx;  
 TRANSFER_8TO16SUB2 transfer_8to16sub2_xmm;  
 TRANSFER_8TO16SUB2 transfer_8to16sub2_3dne;  
 TRANSFER_8TO16SUB2 transfer_8to16sub2_ia64;  
171    
172    #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
173    extern TRANSFER_8TO16SUB2 transfer_8to16sub2_mmx;
174    extern TRANSFER_8TO16SUB2 transfer_8to16sub2_xmm;
175    extern TRANSFER_8TO16SUB2 transfer_8to16sub2_3dne;
176    #endif
177    
178    #ifdef ARCH_IS_IA64
179    extern TRANSFER_8TO16SUB2 transfer_8to16sub2_ia64;
180    #endif
181    
182    #ifdef ARCH_IS_PPC
183    extern TRANSFER_8TO16SUB2 transfer_8to16sub2_altivec_c;
184    #endif
185    
186    #ifdef ARCH_IS_X86_64
187    extern TRANSFER_8TO16SUB2 transfer_8to16sub2_x86_64;
188    #endif
189    
190    /*****************************************************************************
191     * transfer8to16 + substraction op API - Bidirectionnal Version *readonly*
192     ****************************************************************************/
193    
194    typedef void (TRANSFER_8TO16SUB2RO) (int16_t * const dct,
195                                                                       const uint8_t * const cur,
196                                                                       const uint8_t * ref1,
197                                                                       const uint8_t * ref2,
198                                                                       const uint32_t stride);
199    
200    typedef TRANSFER_8TO16SUB2RO *TRANSFER_8TO16SUB2RO_PTR;
201    
202    /* Our global function pointer - Initialized in xvid.c */
203    extern TRANSFER_8TO16SUB2RO_PTR transfer_8to16sub2ro;
204    
205    /* Implemented functions */
206    TRANSFER_8TO16SUB2RO transfer_8to16sub2ro_c;
207    
208    #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
209    extern TRANSFER_8TO16SUB2RO transfer_8to16sub2ro_xmm;
210    #endif
211    
212    #ifdef ARCH_IS_X86_64
213    extern TRANSFER_8TO16SUB2RO transfer_8to16sub2ro_x86_64;
214    #endif
215    
216  /*****************************************************************************  /*****************************************************************************
217   * transfer16to8 + addition op API   * transfer16to8 + addition op API
# Line 135  Line 227 
227  extern TRANSFER_16TO8ADD_PTR transfer_16to8add;  extern TRANSFER_16TO8ADD_PTR transfer_16to8add;
228    
229  /* Implemented functions */  /* Implemented functions */
230  TRANSFER_16TO8ADD transfer_16to8add_c;  extern TRANSFER_16TO8ADD transfer_16to8add_c;
231  TRANSFER_16TO8ADD transfer_16to8add_mmx;  
232  TRANSFER_16TO8ADD transfer_16to8add_3dne;  #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
233  TRANSFER_16TO8ADD transfer_16to8add_ia64;  extern TRANSFER_16TO8ADD transfer_16to8add_mmx;
234    extern TRANSFER_16TO8ADD transfer_16to8add_3dne;
235    #endif
236    
237    #ifdef ARCH_IS_IA64
238    extern TRANSFER_16TO8ADD transfer_16to8add_ia64;
239    #endif
240    
241    #ifdef ARCH_IS_PPC
242    extern TRANSFER_16TO8ADD transfer_16to8add_altivec_c;
243    #endif
244    
245    #ifdef ARCH_IS_X86_64
246    extern TRANSFER_16TO8ADD transfer_16to8add_x86_64;
247    #endif
248    
249  /*****************************************************************************  /*****************************************************************************
250   * transfer8to8 + no op   * transfer8to8 + no op
# Line 154  Line 260 
260  extern TRANSFER8X8_COPY_PTR transfer8x8_copy;  extern TRANSFER8X8_COPY_PTR transfer8x8_copy;
261    
262  /* Implemented functions */  /* Implemented functions */
263  TRANSFER8X8_COPY transfer8x8_copy_c;  extern TRANSFER8X8_COPY transfer8x8_copy_c;
264  TRANSFER8X8_COPY transfer8x8_copy_mmx;  
265  TRANSFER8X8_COPY transfer8x8_copy_3dne;  #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
266  TRANSFER8X8_COPY transfer8x8_copy_ia64;  extern TRANSFER8X8_COPY transfer8x8_copy_mmx;
267    extern TRANSFER8X8_COPY transfer8x8_copy_3dne;
268    #endif
269    
270    #ifdef ARCH_IS_IA64
271    extern TRANSFER8X8_COPY transfer8x8_copy_ia64;
272    #endif
273    
274    #ifdef ARCH_IS_PPC
275    extern TRANSFER8X8_COPY transfer8x8_copy_altivec_c;
276    #endif
277    
278    #ifdef ARCH_IS_X86_64
279    extern TRANSFER8X8_COPY transfer8x8_copy_x86_64;
280    #endif
281    
282    /*****************************************************************************
283     * transfer8to4 + no op
284     ****************************************************************************/
285    
286    typedef void (TRANSFER8X4_COPY) (uint8_t * const dst,
287                                                                     const uint8_t * const src,
288                                                                     const uint32_t stride);
289    
290    typedef TRANSFER8X4_COPY *TRANSFER8X4_COPY_PTR;
291    
292    /* Our global function pointer - Initialized in xvid.c */
293    extern TRANSFER8X4_COPY_PTR transfer8x4_copy;
294    
295    /* Implemented functions */
296    extern TRANSFER8X4_COPY transfer8x4_copy_c;
297    
298    #if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
299    extern TRANSFER8X4_COPY transfer8x4_copy_mmx;
300    extern TRANSFER8X4_COPY transfer8x4_copy_3dne;
301    #endif
302    
303    
304  static __inline void  static __inline void

Legend:
Removed from v.1.8.2.2  
changed lines
  Added in v.1.18

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4