2 |
#define _COLORSPACE_H |
#define _COLORSPACE_H |
3 |
|
|
4 |
#include "../portab.h" |
#include "../portab.h" |
5 |
|
#include "../divx4.h" |
6 |
|
|
7 |
/* initialize tables */ |
/* initialize tables */ |
8 |
|
|
11 |
|
|
12 |
/* input color conversion functions (encoder) */ |
/* input color conversion functions (encoder) */ |
13 |
|
|
14 |
typedef void (color_inputFunc)(uint8_t *y_out, uint8_t *u_out, uint8_t *v_out, |
typedef void (color_inputFunc) (uint8_t * y_out, |
15 |
uint8_t *src, int width, int height, int stride); |
uint8_t * u_out, |
16 |
|
uint8_t * v_out, |
17 |
|
uint8_t * src, |
18 |
|
int width, |
19 |
|
int height, |
20 |
|
int stride); |
21 |
|
|
22 |
typedef color_inputFunc *color_inputFuncPtr; |
typedef color_inputFunc *color_inputFuncPtr; |
23 |
|
|
51 |
|
|
52 |
/* output color conversion functions (decoder) */ |
/* output color conversion functions (decoder) */ |
53 |
|
|
54 |
typedef void (color_outputFunc)(uint8_t *dst, int dst_stride, |
typedef void (color_outputFunc) (uint8_t * dst, |
55 |
uint8_t *y_src, uint8_t *v_src, |
int dst_stride, |
56 |
uint8_t * u_src, int y_stride, |
uint8_t * y_src, |
57 |
int uv_stride, int width, int height); |
uint8_t * v_src, |
58 |
|
uint8_t * u_src, |
59 |
|
int y_stride, |
60 |
|
int uv_stride, |
61 |
|
int width, |
62 |
|
int height); |
63 |
|
|
64 |
typedef color_outputFunc* color_outputFuncPtr; |
typedef color_outputFunc* color_outputFuncPtr; |
65 |
|
|
67 |
extern color_outputFuncPtr yv12_to_rgb565; |
extern color_outputFuncPtr yv12_to_rgb565; |
68 |
extern color_outputFuncPtr yv12_to_rgb24; |
extern color_outputFuncPtr yv12_to_rgb24; |
69 |
extern color_outputFuncPtr yv12_to_rgb32; |
extern color_outputFuncPtr yv12_to_rgb32; |
70 |
|
extern color_outputFuncPtr yv12_to_abgr; |
71 |
|
extern color_outputFuncPtr yv12_to_rgba; |
72 |
extern color_outputFuncPtr yv12_to_yuv; |
extern color_outputFuncPtr yv12_to_yuv; |
73 |
extern color_outputFuncPtr yv12_to_yuyv; |
extern color_outputFuncPtr yv12_to_yuyv; |
74 |
extern color_outputFuncPtr yv12_to_uyvy; |
extern color_outputFuncPtr yv12_to_uyvy; |
80 |
color_outputFunc yv12_to_rgb565_c; |
color_outputFunc yv12_to_rgb565_c; |
81 |
color_outputFunc yv12_to_rgb24_c; |
color_outputFunc yv12_to_rgb24_c; |
82 |
color_outputFunc yv12_to_rgb32_c; |
color_outputFunc yv12_to_rgb32_c; |
83 |
|
color_outputFunc yv12_to_abgr_c; |
84 |
|
color_outputFunc yv12_to_rgba_c; |
85 |
color_outputFunc yv12_to_yuv_c; |
color_outputFunc yv12_to_yuv_c; |
86 |
color_outputFunc yv12_to_yuyv_c; |
color_outputFunc yv12_to_yuyv_c; |
87 |
color_outputFunc yv12_to_uyvy_c; |
color_outputFunc yv12_to_uyvy_c; |
92 |
color_outputFunc yv12_to_yuyv_mmx; |
color_outputFunc yv12_to_yuyv_mmx; |
93 |
color_outputFunc yv12_to_uyvy_mmx; |
color_outputFunc yv12_to_uyvy_mmx; |
94 |
|
|
95 |
|
|
96 |
|
void user_to_yuv_c(uint8_t * y_out, |
97 |
|
uint8_t * u_out, |
98 |
|
uint8_t * v_out, |
99 |
|
int stride, |
100 |
|
DEC_PICTURE * picture, |
101 |
|
int width, |
102 |
|
int height); |
103 |
|
|
104 |
#endif /* _COLORSPACE_H_ */ |
#endif /* _COLORSPACE_H_ */ |