2694
|
1 /*
|
2504
|
2 *
|
2506
|
3 * rgb2rgb.h, Software RGB to RGB convertor
|
2732
|
4 * pluralize by Software PAL8 to RGB convertor
|
|
5 * Software YUV to YUV convertor
|
|
6 * Software YUV to RGB convertor
|
2504
|
7 */
|
|
8
|
|
9 #ifndef RGB2RGB_INCLUDED
|
|
10 #define RGB2RGB_INCLUDED
|
|
11
|
2718
|
12 extern void rgb24to32(const uint8_t *src,uint8_t *dst,unsigned src_size);
|
|
13 extern void rgb32to24(const uint8_t *src,uint8_t *dst,unsigned src_size);
|
|
14 extern void rgb15to16(const uint8_t *src,uint8_t *dst,unsigned src_size);
|
2721
|
15 extern void rgb32to16(const uint8_t *src,uint8_t *dst,unsigned src_size);
|
|
16 extern void rgb32to15(const uint8_t *src,uint8_t *dst,unsigned src_size);
|
|
17 extern void rgb24to16(const uint8_t *src,uint8_t *dst,unsigned src_size);
|
|
18 extern void rgb24to15(const uint8_t *src,uint8_t *dst,unsigned src_size);
|
2758
|
19 extern void rgb32tobgr32(const uint8_t *src, uint8_t *dst, unsigned src_size);
|
5582
|
20 extern void rgb24tobgr24(const uint8_t *src, uint8_t *dst, unsigned src_size);
|
2504
|
21
|
2694
|
22
|
2718
|
23 extern void palette8torgb32(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette);
|
|
24 extern void palette8torgb16(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette);
|
|
25 extern void palette8torgb15(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette);
|
|
26 extern void palette8torgb24(const uint8_t *src, uint8_t *dst, unsigned num_pixels, const uint8_t *palette);
|
|
27
|
2723
|
28 extern void yv12toyuy2(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
|
2725
|
29 unsigned int width, unsigned int height,
|
|
30 unsigned int lumStride, unsigned int chromStride, unsigned int dstStride);
|
5588
|
31 extern void yuv422ptoyuy2(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
|
|
32 unsigned int width, unsigned int height,
|
|
33 unsigned int lumStride, unsigned int chromStride, unsigned int dstStride);
|
2724
|
34 extern void yuy2toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
|
2725
|
35 unsigned int width, unsigned int height,
|
|
36 unsigned int lumStride, unsigned int chromStride, unsigned int srcStride);
|
3633
|
37 extern void rgb24toyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
|
|
38 unsigned int width, unsigned int height,
|
|
39 unsigned int lumStride, unsigned int chromStride, unsigned int srcStride);
|
2701
|
40
|
5337
|
41 extern void interleaveBytes(uint8_t *src1, uint8_t *src2, uint8_t *dst,
|
|
42 int width, int height, int src1Stride, int src2Stride, int dstStride);
|
|
43
|
|
44
|
2732
|
45 #define MODE_RGB 0x1
|
|
46 #define MODE_BGR 0x2
|
|
47
|
|
48 typedef void (* yuv2rgb_fun) (uint8_t * image, uint8_t * py,
|
|
49 uint8_t * pu, uint8_t * pv,
|
|
50 int h_size, int v_size,
|
|
51 int rgb_stride, int y_stride, int uv_stride);
|
|
52
|
|
53 extern yuv2rgb_fun yuv2rgb;
|
|
54
|
|
55 void yuv2rgb_init (int bpp, int mode);
|
|
56
|
2504
|
57 #endif
|