1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - 8<->16 bit buffer transfer header - |
5 |
|
* |
6 |
|
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
7 |
|
* |
8 |
|
* This file is part of XviD, a free MPEG-4 video encoder/decoder |
9 |
|
* |
10 |
|
* XviD is free software; you can redistribute it and/or modify it |
11 |
|
* under the terms of the GNU General Public License as published by |
12 |
|
* the Free Software Foundation; either version 2 of the License, or |
13 |
|
* (at your option) any later version. |
14 |
|
* |
15 |
|
* This program is distributed in the hope that it will be useful, |
16 |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 |
|
* GNU General Public License for more details. |
19 |
|
* |
20 |
|
* You should have received a copy of the GNU General Public License |
21 |
|
* along with this program; if not, write to the Free Software |
22 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
|
* |
24 |
|
* Under section 8 of the GNU General Public License, the copyright |
25 |
|
* holders of XVID explicitly forbid distribution in the following |
26 |
|
* countries: |
27 |
|
* |
28 |
|
* - Japan |
29 |
|
* - United States of America |
30 |
|
* |
31 |
|
* Linking XviD statically or dynamically with other modules is making a |
32 |
|
* combined work based on XviD. Thus, the terms and conditions of the |
33 |
|
* GNU General Public License cover the whole combination. |
34 |
|
* |
35 |
|
* As a special exception, the copyright holders of XviD give you |
36 |
|
* permission to link XviD with independent modules that communicate with |
37 |
|
* XviD solely through the VFW1.1 and DShow interfaces, regardless of the |
38 |
|
* license terms of these independent modules, and to copy and distribute |
39 |
|
* the resulting combined work under terms of your choice, provided that |
40 |
|
* every copy of the combined work is accompanied by a complete copy of |
41 |
|
* the source code of XviD (the version of XviD used to produce the |
42 |
|
* combined work), being distributed under the terms of the GNU General |
43 |
|
* Public License plus this exception. An independent module is a module |
44 |
|
* which is not derived from or based on XviD. |
45 |
|
* |
46 |
|
* Note that people who make modified versions of XviD are not obligated |
47 |
|
* to grant this special exception for their modified versions; it is |
48 |
|
* their choice whether to do so. The GNU General Public License gives |
49 |
|
* permission to release a modified version without this exception; this |
50 |
|
* exception also makes it possible to release a modified version which |
51 |
|
* carries forward this exception. |
52 |
|
* |
53 |
|
* $Id: mem_transfer.h,v 1.11 2002-11-17 00:51:11 edgomez Exp $ |
54 |
|
* |
55 |
|
****************************************************************************/ |
56 |
|
|
57 |
#ifndef _MEM_TRANSFER_H |
#ifndef _MEM_TRANSFER_H |
58 |
#define _MEM_TRANSFER_H |
#define _MEM_TRANSFER_H |
59 |
|
|
60 |
// transfer8to16 |
/***************************************************************************** |
61 |
|
* transfer8to16 API |
62 |
|
****************************************************************************/ |
63 |
|
|
64 |
typedef void (TRANSFER_8TO16COPY)(int16_t * const dst, |
typedef void (TRANSFER_8TO16COPY)(int16_t * const dst, |
65 |
const uint8_t * const src, |
const uint8_t * const src, |
66 |
uint32_t stride); |
uint32_t stride); |
67 |
|
|
68 |
typedef TRANSFER_8TO16COPY* TRANSFER_8TO16COPY_PTR; |
typedef TRANSFER_8TO16COPY* TRANSFER_8TO16COPY_PTR; |
69 |
|
|
70 |
|
/* Our global function pointer - Initialized in xvid.c */ |
71 |
extern TRANSFER_8TO16COPY_PTR transfer_8to16copy; |
extern TRANSFER_8TO16COPY_PTR transfer_8to16copy; |
72 |
|
|
73 |
|
/* Implemented functions */ |
74 |
TRANSFER_8TO16COPY transfer_8to16copy_c; |
TRANSFER_8TO16COPY transfer_8to16copy_c; |
75 |
TRANSFER_8TO16COPY transfer_8to16copy_mmx; |
TRANSFER_8TO16COPY transfer_8to16copy_mmx; |
76 |
|
TRANSFER_8TO16COPY transfer_8to16copy_ia64; |
77 |
|
|
78 |
|
/***************************************************************************** |
79 |
|
* transfer16to8 API |
80 |
|
****************************************************************************/ |
81 |
|
|
|
// transfer16to8 |
|
82 |
typedef void (TRANSFER_16TO8COPY)(uint8_t * const dst, |
typedef void (TRANSFER_16TO8COPY)(uint8_t * const dst, |
83 |
const int16_t * const src, |
const int16_t * const src, |
84 |
uint32_t stride); |
uint32_t stride); |
85 |
typedef TRANSFER_16TO8COPY* TRANSFER_16TO8COPY_PTR; |
typedef TRANSFER_16TO8COPY* TRANSFER_16TO8COPY_PTR; |
86 |
|
|
87 |
|
/* Our global function pointer - Initialized in xvid.c */ |
88 |
extern TRANSFER_16TO8COPY_PTR transfer_16to8copy; |
extern TRANSFER_16TO8COPY_PTR transfer_16to8copy; |
89 |
|
|
90 |
|
/* Implemented functions */ |
91 |
TRANSFER_16TO8COPY transfer_16to8copy_c; |
TRANSFER_16TO8COPY transfer_16to8copy_c; |
92 |
TRANSFER_16TO8COPY transfer_16to8copy_mmx; |
TRANSFER_16TO8COPY transfer_16to8copy_mmx; |
93 |
|
TRANSFER_16TO8COPY transfer_16to8copy_ia64; |
94 |
|
|
95 |
|
/***************************************************************************** |
96 |
|
* transfer8to16 + substraction op API |
97 |
|
****************************************************************************/ |
98 |
|
|
|
// transfer8to16sub |
|
99 |
typedef void (TRANSFER_8TO16SUB)(int16_t * const dct, |
typedef void (TRANSFER_8TO16SUB)(int16_t * const dct, |
100 |
uint8_t * const cur, |
uint8_t * const cur, |
101 |
const uint8_t * ref, |
const uint8_t * ref, |
102 |
const uint32_t stride); |
const uint32_t stride); |
103 |
|
|
104 |
typedef TRANSFER_8TO16SUB* TRANSFER_8TO16SUB_PTR; |
typedef TRANSFER_8TO16SUB* TRANSFER_8TO16SUB_PTR; |
105 |
|
|
106 |
|
/* Our global function pointer - Initialized in xvid.c */ |
107 |
extern TRANSFER_8TO16SUB_PTR transfer_8to16sub; |
extern TRANSFER_8TO16SUB_PTR transfer_8to16sub; |
108 |
|
|
109 |
|
/* Implemented functions */ |
110 |
TRANSFER_8TO16SUB transfer_8to16sub_c; |
TRANSFER_8TO16SUB transfer_8to16sub_c; |
111 |
TRANSFER_8TO16SUB transfer_8to16sub_mmx; |
TRANSFER_8TO16SUB transfer_8to16sub_mmx; |
112 |
|
TRANSFER_8TO16SUB transfer_8to16sub_ia64; |
113 |
|
|
114 |
|
/***************************************************************************** |
115 |
|
* transfer8to16 + substraction op API - Bidirectionnal Version |
116 |
|
****************************************************************************/ |
117 |
|
|
|
// transfer8to16sub2 |
|
118 |
typedef void (TRANSFER_8TO16SUB2)(int16_t * const dct, |
typedef void (TRANSFER_8TO16SUB2)(int16_t * const dct, |
119 |
uint8_t * const cur, |
uint8_t * const cur, |
120 |
const uint8_t * ref1, |
const uint8_t * ref1, |
121 |
const uint8_t * ref2, |
const uint8_t * ref2, |
122 |
const uint32_t stride); |
const uint32_t stride); |
123 |
|
|
124 |
typedef TRANSFER_8TO16SUB2* TRANSFER_8TO16SUB2_PTR; |
typedef TRANSFER_8TO16SUB2* TRANSFER_8TO16SUB2_PTR; |
125 |
|
|
126 |
|
/* Our global function pointer - Initialized in xvid.c */ |
127 |
extern TRANSFER_8TO16SUB2_PTR transfer_8to16sub2; |
extern TRANSFER_8TO16SUB2_PTR transfer_8to16sub2; |
128 |
|
|
129 |
|
/* Implemented functions */ |
130 |
TRANSFER_8TO16SUB2 transfer_8to16sub2_c; |
TRANSFER_8TO16SUB2 transfer_8to16sub2_c; |
131 |
//TRANSFER_8TO16SUB2 transfer_8to16sub2_mmx; |
TRANSFER_8TO16SUB2 transfer_8to16sub2_mmx; |
132 |
|
TRANSFER_8TO16SUB2 transfer_8to16sub2_xmm; |
133 |
|
TRANSFER_8TO16SUB2 transfer_8to16sub2_ia64; |
134 |
|
|
135 |
|
|
136 |
// transfer16to8add |
/***************************************************************************** |
137 |
|
* transfer16to8 + addition op API |
138 |
|
****************************************************************************/ |
139 |
|
|
140 |
typedef void (TRANSFER_16TO8ADD)(uint8_t * const dst, |
typedef void (TRANSFER_16TO8ADD)(uint8_t * const dst, |
141 |
const int16_t * const src, |
const int16_t * const src, |
142 |
uint32_t stride); |
uint32_t stride); |
143 |
|
|
144 |
typedef TRANSFER_16TO8ADD* TRANSFER_16TO8ADD_PTR; |
typedef TRANSFER_16TO8ADD* TRANSFER_16TO8ADD_PTR; |
145 |
|
|
146 |
|
/* Our global function pointer - Initialized in xvid.c */ |
147 |
extern TRANSFER_16TO8ADD_PTR transfer_16to8add; |
extern TRANSFER_16TO8ADD_PTR transfer_16to8add; |
148 |
|
|
149 |
|
/* Implemented functions */ |
150 |
TRANSFER_16TO8ADD transfer_16to8add_c; |
TRANSFER_16TO8ADD transfer_16to8add_c; |
151 |
TRANSFER_16TO8ADD transfer_16to8add_mmx; |
TRANSFER_16TO8ADD transfer_16to8add_mmx; |
152 |
|
TRANSFER_16TO8ADD transfer_16to8add_ia64; |
153 |
|
|
154 |
|
/***************************************************************************** |
155 |
|
* transfer8to8 + no op |
156 |
|
****************************************************************************/ |
157 |
|
|
|
// transfer8x8_copy |
|
158 |
typedef void (TRANSFER8X8_COPY)(uint8_t * const dst, |
typedef void (TRANSFER8X8_COPY)(uint8_t * const dst, |
159 |
const uint8_t * const src, |
const uint8_t * const src, |
160 |
const uint32_t stride); |
const uint32_t stride); |
161 |
|
|
162 |
typedef TRANSFER8X8_COPY* TRANSFER8X8_COPY_PTR; |
typedef TRANSFER8X8_COPY* TRANSFER8X8_COPY_PTR; |
163 |
|
|
164 |
|
/* Our global function pointer - Initialized in xvid.c */ |
165 |
extern TRANSFER8X8_COPY_PTR transfer8x8_copy; |
extern TRANSFER8X8_COPY_PTR transfer8x8_copy; |
166 |
|
|
167 |
|
/* Implemented functions */ |
168 |
TRANSFER8X8_COPY transfer8x8_copy_c; |
TRANSFER8X8_COPY transfer8x8_copy_c; |
169 |
TRANSFER8X8_COPY transfer8x8_copy_mmx; |
TRANSFER8X8_COPY transfer8x8_copy_mmx; |
170 |
|
TRANSFER8X8_COPY transfer8x8_copy_ia64; |
171 |
|
|
172 |
#endif /* _MEM_TRANSFER_H_ */ |
#endif |