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
|
|
19 typedef void(*wsTConvFunc)( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
|
|
20 extern wsTConvFunc wsConvFunc;
|
|
21
|
|
22 extern void BGR8880_to_RGB555_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
|
|
23 extern void BGR8880_to_BGR555_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
|
|
24 extern void BGR8880_to_RGB565_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
|
|
25 extern void BGR8880_to_BGR565_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
|
|
26 extern void BGR8880_to_RGB888_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
|
|
27 extern void BGR8880_to_BGR888_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
|
|
28 extern void BGR8880_to_BGR8880_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
|
|
29 extern void BGR8880_to_RGB8880_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
|
|
30
|
|
31 #ifdef xHAVE_MMX
|
|
32 extern void BGR8880_to_RGB888_mmx(unsigned char * in_pixels,unsigned char * out_pixels,int num_pixels);
|
|
33 #endif
|
|
34
|
|
35 extern void RGB565_to_RGB888_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels);
|
|
36
|
|
37 extern void initConverter( void );
|
|
38
|
2082
|
39 #endif
|
|
40
|