1693
|
1
|
|
2 #ifndef __WSCONV_H
|
|
3 #define __WSCONV_H
|
|
4
|
|
5 #include "../../config.h"
|
|
6
|
|
7 #define PACK_RGB16(r,g,b,pixel) pixel=(b>>3);\
|
|
8 pixel<<=6;\
|
|
9 pixel|=(g>>2);\
|
|
10 pixel<<=5;\
|
|
11 pixel|=(r>>3)
|
|
12
|
|
13 #define PACK_RGB15(r,g,b,pixel) pixel=(b>>3);\
|
|
14 pixel<<=5;\
|
|
15 pixel|=(g>>3);\
|
|
16 pixel<<=5;\
|
|
17 pixel|=(r>>3)
|
|
18
|
2782
|
19 typedef void(*wsTConvFunc)( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
|
1693
|
20 extern wsTConvFunc wsConvFunc;
|
|
21
|
2782
|
22 extern void BGR8880_to_RGB555_c( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
|
|
23 extern void BGR8880_to_BGR555_c( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
|
|
24 extern void BGR8880_to_RGB565_c( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
|
|
25 extern void BGR8880_to_BGR565_c( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
|
|
26 extern void BGR8880_to_RGB888_c( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
|
|
27 extern void BGR8880_to_BGR888_c( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
|
|
28 extern void BGR8880_to_BGR8880_c( const unsigned char * in_pixels, unsigned char * out_pixels,unsigned num_pixels );
|
|
29 extern void BGR8880_to_RGB8880_c( const unsigned char * in_pixels, unsigned char * out_pixels,unsigned num_pixels );
|
1693
|
30
|
|
31 #ifdef xHAVE_MMX
|
2782
|
32 extern void BGR8880_to_RGB888_mmx( const unsigned char * in_pixels,unsigned char * out_pixels,unsigned num_pixels);
|
1693
|
33 #endif
|
|
34
|
2782
|
35 extern void RGB565_to_RGB888_c( const unsigned char * in_pixels, unsigned char * out_pixels,unsigned num_pixels);
|
1693
|
36
|
|
37 extern void initConverter( void );
|
|
38
|
2082
|
39 #endif
|
|
40
|