1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC |
4 |
|
* - Colorspace related 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$ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
#ifndef _COLORSPACE_H |
#ifndef _COLORSPACE_H |
27 |
#define _COLORSPACE_H |
#define _COLORSPACE_H |
28 |
|
|
91 |
packedFunc uyvyi_to_yv12_c; |
packedFunc uyvyi_to_yv12_c; |
92 |
|
|
93 |
|
|
94 |
|
#ifdef ARCH_IS_IA32 |
95 |
/* mmx */ |
/* mmx */ |
96 |
packedFunc bgr_to_yv12_mmx; |
packedFunc bgr_to_yv12_mmx; |
97 |
packedFunc bgra_to_yv12_mmx; |
packedFunc bgra_to_yv12_mmx; |
105 |
/* xmm */ |
/* xmm */ |
106 |
packedFunc yuyv_to_yv12_xmm; |
packedFunc yuyv_to_yv12_xmm; |
107 |
packedFunc uyvy_to_yv12_xmm; |
packedFunc uyvy_to_yv12_xmm; |
108 |
|
#endif |
109 |
|
|
110 |
|
|
111 |
/* yv12_to_xxx colorspace conversion functions (decoder) */ |
/* yv12_to_xxx colorspace conversion functions (decoder) */ |
147 |
packedFunc yv12_to_yuyvi_c; |
packedFunc yv12_to_yuyvi_c; |
148 |
packedFunc yv12_to_uyvyi_c; |
packedFunc yv12_to_uyvyi_c; |
149 |
|
|
150 |
|
#ifdef ARCH_IS_IA32 |
151 |
/* mmx */ |
/* mmx */ |
152 |
packedFunc yv12_to_bgr_mmx; |
packedFunc yv12_to_bgr_mmx; |
153 |
packedFunc yv12_to_bgra_mmx; |
packedFunc yv12_to_bgra_mmx; |
156 |
|
|
157 |
packedFunc yv12_to_yuyvi_mmx; |
packedFunc yv12_to_yuyvi_mmx; |
158 |
packedFunc yv12_to_uyvyi_mmx; |
packedFunc yv12_to_uyvyi_mmx; |
159 |
|
#endif |
160 |
|
|
161 |
|
|
162 |
typedef void (planarFunc) ( |
typedef void (planarFunc) ( |
170 |
extern planarFuncPtr yv12_to_yv12; |
extern planarFuncPtr yv12_to_yv12; |
171 |
|
|
172 |
planarFunc yv12_to_yv12_c; |
planarFunc yv12_to_yv12_c; |
173 |
|
|
174 |
|
#ifdef ARCH_IS_IA32 |
175 |
planarFunc yv12_to_yv12_mmx; |
planarFunc yv12_to_yv12_mmx; |
176 |
planarFunc yv12_to_yv12_xmm; |
planarFunc yv12_to_yv12_xmm; |
177 |
|
#endif |
178 |
|
|
179 |
|
|
180 |
#endif /* _COLORSPACE_H_ */ |
#endif /* _COLORSPACE_H_ */ |