annotate Gui/wm/wsconv.h @ 2737:d0f34e15aa5f

vars are aligned by 8 now (even faster, yes they where not aligned correctly)
author michael
date Tue, 06 Nov 2001 13:45:57 +0000
parents 016f6d583733
children b52d3e6ff4ab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
2 #ifndef __WSCONV_H
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3 #define __WSCONV_H
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
5 #include "../../config.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 #define PACK_RGB16(r,g,b,pixel) pixel=(b>>3);\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 pixel<<=6;\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9 pixel|=(g>>2);\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
10 pixel<<=5;\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11 pixel|=(r>>3)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
12
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
13 #define PACK_RGB15(r,g,b,pixel) pixel=(b>>3);\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 pixel<<=5;\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 pixel|=(g>>3);\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16 pixel<<=5;\
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17 pixel|=(r>>3)
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19 typedef void(*wsTConvFunc)( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 extern wsTConvFunc wsConvFunc;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 extern void BGR8880_to_RGB555_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 extern void BGR8880_to_BGR555_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24 extern void BGR8880_to_RGB565_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 extern void BGR8880_to_BGR565_c( unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
26 extern void BGR8880_to_RGB888_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
27 extern void BGR8880_to_BGR888_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28 extern void BGR8880_to_BGR8880_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
29 extern void BGR8880_to_RGB8880_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31 #ifdef xHAVE_MMX
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
32 extern void BGR8880_to_RGB888_mmx(unsigned char * in_pixels,unsigned char * out_pixels,int num_pixels);
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
33 #endif
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
34
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
35 extern void RGB565_to_RGB888_c( unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels);
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
37 extern void initConverter( void );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
38
2082
016f6d583733 missing newlines fixed
arpi
parents: 1693
diff changeset
39 #endif
016f6d583733 missing newlines fixed
arpi
parents: 1693
diff changeset
40