Mercurial > mplayer.hg
annotate Gui/wm/wsconv.h @ 5429:e9e2dc1306b1
BITMAPINFOHEADER fixed to be accepted by win32 decoders (divx,divxds)
author | arpi |
---|---|
date | Sun, 31 Mar 2002 20:17:27 +0000 |
parents | 3473ca9ef158 |
children |
rev | line source |
---|---|
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 | |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
22 extern void BGR8880_to_RGB555_c( const unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
23 extern void BGR8880_to_BGR555_c( const unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
24 extern void BGR8880_to_RGB565_c( const unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
25 extern void BGR8880_to_BGR565_c( const unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
26 extern void BGR8880_to_RGB888_c( const unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
27 extern void BGR8880_to_BGR888_c( const unsigned char * in_pixels, unsigned char * out_pixels, int num_pixels ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
28 extern void BGR8880_to_BGR8880_c( const unsigned char * in_pixels, unsigned char * out_pixels,int num_pixels ); |
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
2782
diff
changeset
|
29 extern void BGR8880_to_RGB8880_c( const unsigned char * in_pixels, unsigned char * out_pixels,int 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 |