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: colorspace.h,v 1.6 2004-03-22 22:36:23 edgomez Exp $ |
* $Id: colorspace.h,v 1.10 2008-11-26 01:04:34 Isibaar Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
54 |
|
|
55 |
extern packedFuncPtr rgb555_to_yv12; |
extern packedFuncPtr rgb555_to_yv12; |
56 |
extern packedFuncPtr rgb565_to_yv12; |
extern packedFuncPtr rgb565_to_yv12; |
57 |
|
extern packedFuncPtr rgb_to_yv12; |
58 |
extern packedFuncPtr bgr_to_yv12; |
extern packedFuncPtr bgr_to_yv12; |
59 |
extern packedFuncPtr bgra_to_yv12; |
extern packedFuncPtr bgra_to_yv12; |
60 |
extern packedFuncPtr abgr_to_yv12; |
extern packedFuncPtr abgr_to_yv12; |
65 |
|
|
66 |
extern packedFuncPtr rgb555i_to_yv12; |
extern packedFuncPtr rgb555i_to_yv12; |
67 |
extern packedFuncPtr rgb565i_to_yv12; |
extern packedFuncPtr rgb565i_to_yv12; |
68 |
|
extern packedFuncPtr rgbi_to_yv12; |
69 |
extern packedFuncPtr bgri_to_yv12; |
extern packedFuncPtr bgri_to_yv12; |
70 |
extern packedFuncPtr bgrai_to_yv12; |
extern packedFuncPtr bgrai_to_yv12; |
71 |
extern packedFuncPtr abgri_to_yv12; |
extern packedFuncPtr abgri_to_yv12; |
77 |
/* plain c */ |
/* plain c */ |
78 |
packedFunc rgb555_to_yv12_c; |
packedFunc rgb555_to_yv12_c; |
79 |
packedFunc rgb565_to_yv12_c; |
packedFunc rgb565_to_yv12_c; |
80 |
|
packedFunc rgb_to_yv12_c; |
81 |
packedFunc bgr_to_yv12_c; |
packedFunc bgr_to_yv12_c; |
82 |
packedFunc bgra_to_yv12_c; |
packedFunc bgra_to_yv12_c; |
83 |
packedFunc abgr_to_yv12_c; |
packedFunc abgr_to_yv12_c; |
88 |
|
|
89 |
packedFunc rgb555i_to_yv12_c; |
packedFunc rgb555i_to_yv12_c; |
90 |
packedFunc rgb565i_to_yv12_c; |
packedFunc rgb565i_to_yv12_c; |
91 |
|
packedFunc rgbi_to_yv12_c; |
92 |
packedFunc bgri_to_yv12_c; |
packedFunc bgri_to_yv12_c; |
93 |
packedFunc bgrai_to_yv12_c; |
packedFunc bgrai_to_yv12_c; |
94 |
packedFunc abgri_to_yv12_c; |
packedFunc abgri_to_yv12_c; |
97 |
packedFunc yuyvi_to_yv12_c; |
packedFunc yuyvi_to_yv12_c; |
98 |
packedFunc uyvyi_to_yv12_c; |
packedFunc uyvyi_to_yv12_c; |
99 |
|
|
100 |
#ifdef ARCH_IS_IA32 |
#if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64) |
101 |
/* mmx */ |
/* mmx */ |
102 |
packedFunc bgr_to_yv12_mmx; |
packedFunc bgr_to_yv12_mmx; |
103 |
|
packedFunc rgb_to_yv12_mmx; |
104 |
packedFunc bgra_to_yv12_mmx; |
packedFunc bgra_to_yv12_mmx; |
105 |
|
packedFunc rgba_to_yv12_mmx; |
106 |
packedFunc yuyv_to_yv12_mmx; |
packedFunc yuyv_to_yv12_mmx; |
107 |
packedFunc uyvy_to_yv12_mmx; |
packedFunc uyvy_to_yv12_mmx; |
108 |
|
|
115 |
packedFunc uyvy_to_yv12_xmm; |
packedFunc uyvy_to_yv12_xmm; |
116 |
#endif |
#endif |
117 |
|
|
118 |
|
#ifdef ARCH_IS_PPC |
119 |
|
packedFunc bgra_to_yv12_altivec_c; |
120 |
|
packedFunc abgr_to_yv12_altivec_c; |
121 |
|
packedFunc rgba_to_yv12_altivec_c; |
122 |
|
packedFunc argb_to_yv12_altivec_c; |
123 |
|
|
124 |
|
packedFunc yuyv_to_yv12_altivec_c; |
125 |
|
packedFunc uyvy_to_yv12_altivec_c; |
126 |
|
#endif |
127 |
|
|
128 |
/* yv12_to_xxx colorspace conversion functions (decoder) */ |
/* yv12_to_xxx colorspace conversion functions (decoder) */ |
129 |
|
|
130 |
extern packedFuncPtr yv12_to_rgb555; |
extern packedFuncPtr yv12_to_rgb555; |
131 |
extern packedFuncPtr yv12_to_rgb565; |
extern packedFuncPtr yv12_to_rgb565; |
132 |
|
extern packedFuncPtr yv12_to_rgb; |
133 |
extern packedFuncPtr yv12_to_bgr; |
extern packedFuncPtr yv12_to_bgr; |
134 |
extern packedFuncPtr yv12_to_bgra; |
extern packedFuncPtr yv12_to_bgra; |
135 |
extern packedFuncPtr yv12_to_abgr; |
extern packedFuncPtr yv12_to_abgr; |
140 |
|
|
141 |
extern packedFuncPtr yv12_to_rgb555i; |
extern packedFuncPtr yv12_to_rgb555i; |
142 |
extern packedFuncPtr yv12_to_rgb565i; |
extern packedFuncPtr yv12_to_rgb565i; |
143 |
|
extern packedFuncPtr yv12_to_rgbi; |
144 |
extern packedFuncPtr yv12_to_bgri; |
extern packedFuncPtr yv12_to_bgri; |
145 |
extern packedFuncPtr yv12_to_bgrai; |
extern packedFuncPtr yv12_to_bgrai; |
146 |
extern packedFuncPtr yv12_to_abgri; |
extern packedFuncPtr yv12_to_abgri; |
152 |
/* plain c */ |
/* plain c */ |
153 |
packedFunc yv12_to_rgb555_c; |
packedFunc yv12_to_rgb555_c; |
154 |
packedFunc yv12_to_rgb565_c; |
packedFunc yv12_to_rgb565_c; |
155 |
|
packedFunc yv12_to_rgb_c; |
156 |
packedFunc yv12_to_bgr_c; |
packedFunc yv12_to_bgr_c; |
157 |
packedFunc yv12_to_bgra_c; |
packedFunc yv12_to_bgra_c; |
158 |
packedFunc yv12_to_abgr_c; |
packedFunc yv12_to_abgr_c; |
163 |
|
|
164 |
packedFunc yv12_to_rgb555i_c; |
packedFunc yv12_to_rgb555i_c; |
165 |
packedFunc yv12_to_rgb565i_c; |
packedFunc yv12_to_rgb565i_c; |
166 |
|
packedFunc yv12_to_rgbi_c; |
167 |
packedFunc yv12_to_bgri_c; |
packedFunc yv12_to_bgri_c; |
168 |
packedFunc yv12_to_bgrai_c; |
packedFunc yv12_to_bgrai_c; |
169 |
packedFunc yv12_to_abgri_c; |
packedFunc yv12_to_abgri_c; |
172 |
packedFunc yv12_to_yuyvi_c; |
packedFunc yv12_to_yuyvi_c; |
173 |
packedFunc yv12_to_uyvyi_c; |
packedFunc yv12_to_uyvyi_c; |
174 |
|
|
175 |
#ifdef ARCH_IS_IA32 |
#if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64) |
176 |
/* mmx */ |
/* mmx */ |
177 |
packedFunc yv12_to_bgr_mmx; |
packedFunc yv12_to_bgr_mmx; |
178 |
packedFunc yv12_to_bgra_mmx; |
packedFunc yv12_to_bgra_mmx; |
183 |
packedFunc yv12_to_uyvyi_mmx; |
packedFunc yv12_to_uyvyi_mmx; |
184 |
#endif |
#endif |
185 |
|
|
186 |
|
#ifdef ARCH_IS_PPC |
187 |
|
packedFunc yv12_to_yuyv_altivec_c; |
188 |
|
packedFunc yv12_to_uyvy_altivec_c; |
189 |
|
#endif |
190 |
|
|
191 |
typedef void (planarFunc) ( |
typedef void (planarFunc) ( |
192 |
uint8_t * y_dst, uint8_t * u_dst, uint8_t * v_dst, |
uint8_t * y_dst, uint8_t * u_dst, uint8_t * v_dst, |
200 |
|
|
201 |
planarFunc yv12_to_yv12_c; |
planarFunc yv12_to_yv12_c; |
202 |
|
|
203 |
#ifdef ARCH_IS_IA32 |
#if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64) |
204 |
planarFunc yv12_to_yv12_mmx; |
planarFunc yv12_to_yv12_mmx; |
205 |
planarFunc yv12_to_yv12_xmm; |
planarFunc yv12_to_yv12_xmm; |
206 |
#endif |
#endif |