58 |
extern packedFuncPtr bgra_to_yv12; |
extern packedFuncPtr bgra_to_yv12; |
59 |
extern packedFuncPtr abgr_to_yv12; |
extern packedFuncPtr abgr_to_yv12; |
60 |
extern packedFuncPtr rgba_to_yv12; |
extern packedFuncPtr rgba_to_yv12; |
61 |
|
extern packedFuncPtr argb_to_yv12; |
62 |
extern packedFuncPtr yuyv_to_yv12; |
extern packedFuncPtr yuyv_to_yv12; |
63 |
extern packedFuncPtr uyvy_to_yv12; |
extern packedFuncPtr uyvy_to_yv12; |
64 |
|
|
68 |
extern packedFuncPtr bgrai_to_yv12; |
extern packedFuncPtr bgrai_to_yv12; |
69 |
extern packedFuncPtr abgri_to_yv12; |
extern packedFuncPtr abgri_to_yv12; |
70 |
extern packedFuncPtr rgbai_to_yv12; |
extern packedFuncPtr rgbai_to_yv12; |
71 |
|
extern packedFuncPtr argbi_to_yv12; |
72 |
extern packedFuncPtr yuyvi_to_yv12; |
extern packedFuncPtr yuyvi_to_yv12; |
73 |
extern packedFuncPtr uyvyi_to_yv12; |
extern packedFuncPtr uyvyi_to_yv12; |
74 |
|
|
|
|
|
75 |
/* plain c */ |
/* plain c */ |
76 |
packedFunc rgb555_to_yv12_c; |
packedFunc rgb555_to_yv12_c; |
77 |
packedFunc rgb565_to_yv12_c; |
packedFunc rgb565_to_yv12_c; |
79 |
packedFunc bgra_to_yv12_c; |
packedFunc bgra_to_yv12_c; |
80 |
packedFunc abgr_to_yv12_c; |
packedFunc abgr_to_yv12_c; |
81 |
packedFunc rgba_to_yv12_c; |
packedFunc rgba_to_yv12_c; |
82 |
|
packedFunc argb_to_yv12_c; |
83 |
packedFunc yuyv_to_yv12_c; |
packedFunc yuyv_to_yv12_c; |
84 |
packedFunc uyvy_to_yv12_c; |
packedFunc uyvy_to_yv12_c; |
85 |
|
|
89 |
packedFunc bgrai_to_yv12_c; |
packedFunc bgrai_to_yv12_c; |
90 |
packedFunc abgri_to_yv12_c; |
packedFunc abgri_to_yv12_c; |
91 |
packedFunc rgbai_to_yv12_c; |
packedFunc rgbai_to_yv12_c; |
92 |
|
packedFunc argbi_to_yv12_c; |
93 |
packedFunc yuyvi_to_yv12_c; |
packedFunc yuyvi_to_yv12_c; |
94 |
packedFunc uyvyi_to_yv12_c; |
packedFunc uyvyi_to_yv12_c; |
95 |
|
|
96 |
|
#ifdef ARCH_IS_IA32 |
97 |
/* mmx */ |
/* mmx */ |
98 |
packedFunc bgr_to_yv12_mmx; |
packedFunc bgr_to_yv12_mmx; |
99 |
packedFunc bgra_to_yv12_mmx; |
packedFunc bgra_to_yv12_mmx; |
107 |
/* xmm */ |
/* xmm */ |
108 |
packedFunc yuyv_to_yv12_xmm; |
packedFunc yuyv_to_yv12_xmm; |
109 |
packedFunc uyvy_to_yv12_xmm; |
packedFunc uyvy_to_yv12_xmm; |
110 |
|
#endif |
111 |
|
|
112 |
|
#ifdef ARCH_IS_PPC |
113 |
|
packedFunc bgra_to_yv12_altivec_c; |
114 |
|
packedFunc abgr_to_yv12_altivec_c; |
115 |
|
packedFunc rgba_to_yv12_altivec_c; |
116 |
|
packedFunc argb_to_yv12_altivec_c; |
117 |
|
|
118 |
|
packedFunc yuyv_to_yv12_altivec_c; |
119 |
|
packedFunc uyvy_to_yv12_altivec_c; |
120 |
|
#endif |
121 |
|
|
122 |
/* yv12_to_xxx colorspace conversion functions (decoder) */ |
/* yv12_to_xxx colorspace conversion functions (decoder) */ |
123 |
|
|
127 |
extern packedFuncPtr yv12_to_bgra; |
extern packedFuncPtr yv12_to_bgra; |
128 |
extern packedFuncPtr yv12_to_abgr; |
extern packedFuncPtr yv12_to_abgr; |
129 |
extern packedFuncPtr yv12_to_rgba; |
extern packedFuncPtr yv12_to_rgba; |
130 |
|
extern packedFuncPtr yv12_to_argb; |
131 |
extern packedFuncPtr yv12_to_yuyv; |
extern packedFuncPtr yv12_to_yuyv; |
132 |
extern packedFuncPtr yv12_to_uyvy; |
extern packedFuncPtr yv12_to_uyvy; |
133 |
|
|
137 |
extern packedFuncPtr yv12_to_bgrai; |
extern packedFuncPtr yv12_to_bgrai; |
138 |
extern packedFuncPtr yv12_to_abgri; |
extern packedFuncPtr yv12_to_abgri; |
139 |
extern packedFuncPtr yv12_to_rgbai; |
extern packedFuncPtr yv12_to_rgbai; |
140 |
|
extern packedFuncPtr yv12_to_argbi; |
141 |
extern packedFuncPtr yv12_to_yuyvi; |
extern packedFuncPtr yv12_to_yuyvi; |
142 |
extern packedFuncPtr yv12_to_uyvyi; |
extern packedFuncPtr yv12_to_uyvyi; |
143 |
|
|
148 |
packedFunc yv12_to_bgra_c; |
packedFunc yv12_to_bgra_c; |
149 |
packedFunc yv12_to_abgr_c; |
packedFunc yv12_to_abgr_c; |
150 |
packedFunc yv12_to_rgba_c; |
packedFunc yv12_to_rgba_c; |
151 |
|
packedFunc yv12_to_argb_c; |
152 |
packedFunc yv12_to_yuyv_c; |
packedFunc yv12_to_yuyv_c; |
153 |
packedFunc yv12_to_uyvy_c; |
packedFunc yv12_to_uyvy_c; |
154 |
|
|
158 |
packedFunc yv12_to_bgrai_c; |
packedFunc yv12_to_bgrai_c; |
159 |
packedFunc yv12_to_abgri_c; |
packedFunc yv12_to_abgri_c; |
160 |
packedFunc yv12_to_rgbai_c; |
packedFunc yv12_to_rgbai_c; |
161 |
|
packedFunc yv12_to_argbi_c; |
162 |
packedFunc yv12_to_yuyvi_c; |
packedFunc yv12_to_yuyvi_c; |
163 |
packedFunc yv12_to_uyvyi_c; |
packedFunc yv12_to_uyvyi_c; |
164 |
|
|
165 |
|
#ifdef ARCH_IS_IA32 |
166 |
/* mmx */ |
/* mmx */ |
167 |
packedFunc yv12_to_bgr_mmx; |
packedFunc yv12_to_bgr_mmx; |
168 |
packedFunc yv12_to_bgra_mmx; |
packedFunc yv12_to_bgra_mmx; |
171 |
|
|
172 |
packedFunc yv12_to_yuyvi_mmx; |
packedFunc yv12_to_yuyvi_mmx; |
173 |
packedFunc yv12_to_uyvyi_mmx; |
packedFunc yv12_to_uyvyi_mmx; |
174 |
|
#endif |
175 |
|
|
176 |
|
#ifdef ARCH_IS_PPC |
177 |
|
packedFunc yv12_to_yuyv_altivec_c; |
178 |
|
packedFunc yv12_to_uyvy_altivec_c; |
179 |
|
#endif |
180 |
|
|
181 |
typedef void (planarFunc) ( |
typedef void (planarFunc) ( |
182 |
uint8_t * y_dst, uint8_t * u_dst, uint8_t * v_dst, |
uint8_t * y_dst, uint8_t * u_dst, uint8_t * v_dst, |
189 |
extern planarFuncPtr yv12_to_yv12; |
extern planarFuncPtr yv12_to_yv12; |
190 |
|
|
191 |
planarFunc yv12_to_yv12_c; |
planarFunc yv12_to_yv12_c; |
192 |
|
|
193 |
|
#ifdef ARCH_IS_IA32 |
194 |
planarFunc yv12_to_yv12_mmx; |
planarFunc yv12_to_yv12_mmx; |
195 |
planarFunc yv12_to_yv12_xmm; |
planarFunc yv12_to_yv12_xmm; |
196 |
|
#endif |
197 |
|
|
198 |
|
|
199 |
#endif /* _COLORSPACE_H_ */ |
#endif /* _COLORSPACE_H_ */ |