[cvs] / xvidcore / src / image / colorspace.h Repository:
ViewVC logotype

Annotation of /xvidcore/src/image/colorspace.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download)

1 : Isibaar 1.1 #ifndef _COLORSPACE_H
2 :     #define _COLORSPACE_H
3 :    
4 :     #include "../portab.h"
5 :    
6 :    
7 :     /* initialize tables */
8 :    
9 :     void colorspace_init(void);
10 :    
11 :    
12 :     /* input color conversion functions (encoder) */
13 :    
14 :     typedef void (color_inputFunc)(uint8_t *y_out, uint8_t *u_out, uint8_t *v_out,
15 :     uint8_t *src, int width, int height, int stride);
16 :    
17 :     typedef color_inputFunc *color_inputFuncPtr;
18 :    
19 :     extern color_inputFuncPtr rgb555_to_yv12;
20 :     extern color_inputFuncPtr rgb565_to_yv12;
21 :     extern color_inputFuncPtr rgb24_to_yv12;
22 :     extern color_inputFuncPtr rgb32_to_yv12;
23 :     extern color_inputFuncPtr yuv_to_yv12;
24 :     extern color_inputFuncPtr yuyv_to_yv12;
25 :     extern color_inputFuncPtr uyvy_to_yv12;
26 :    
27 :     /* plain c */
28 :     color_inputFunc rgb555_to_yv12_c;
29 :     color_inputFunc rgb565_to_yv12_c;
30 :     color_inputFunc rgb24_to_yv12_c;
31 :     color_inputFunc rgb32_to_yv12_c;
32 :     color_inputFunc yuv_to_yv12_c;
33 :     color_inputFunc yuyv_to_yv12_c;
34 :     color_inputFunc uyvy_to_yv12_c;
35 :    
36 :     /* mmx */
37 :     color_inputFunc rgb24_to_yv12_mmx;
38 :     color_inputFunc rgb32_to_yv12_mmx;
39 :     color_inputFunc yuv_to_yv12_mmx;
40 :     color_inputFunc yuyv_to_yv12_mmx;
41 :     color_inputFunc uyvy_to_yv12_mmx;
42 :    
43 :     /* xmm */
44 :     color_inputFunc yuv_to_yv12_xmm;
45 :    
46 :    
47 :     /* output color conversion functions (decoder) */
48 :    
49 :     typedef void (color_outputFunc)(uint8_t *dst, int dst_stride,
50 :     uint8_t *y_src, uint8_t *v_src,
51 :     uint8_t * u_src, int y_stride,
52 :     int uv_stride, int width, int height);
53 :    
54 :     typedef color_outputFunc* color_outputFuncPtr;
55 :    
56 :     extern color_outputFuncPtr yv12_to_rgb555;
57 :     extern color_outputFuncPtr yv12_to_rgb565;
58 :     extern color_outputFuncPtr yv12_to_rgb24;
59 :     extern color_outputFuncPtr yv12_to_rgb32;
60 :     extern color_outputFuncPtr yv12_to_yuv;
61 :     extern color_outputFuncPtr yv12_to_yuyv;
62 :     extern color_outputFuncPtr yv12_to_uyvy;
63 :    
64 :     /* plain c */
65 :     void init_yuv_to_rgb(void);
66 :    
67 :     color_outputFunc yv12_to_rgb555_c;
68 :     color_outputFunc yv12_to_rgb565_c;
69 :     color_outputFunc yv12_to_rgb24_c;
70 :     color_outputFunc yv12_to_rgb32_c;
71 :     color_outputFunc yv12_to_yuv_c;
72 :     color_outputFunc yv12_to_yuyv_c;
73 :     color_outputFunc yv12_to_uyvy_c;
74 :    
75 :     /* mmx */
76 :     color_outputFunc yv12_to_rgb24_mmx;
77 :     color_outputFunc yv12_to_rgb32_mmx;
78 :     color_outputFunc yv12_to_yuyv_mmx;
79 :     color_outputFunc yv12_to_uyvy_mmx;
80 :    
81 :     #endif /* _COLORSPACE_H_ */

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4