Mercurial > mplayer.hg
annotate Gui/wm/wsconv.h @ 5657:ee2efbf3dc9d
Preliminary support for lavcs b-frame encoding, disabled by default.
FOR TESTING ONLY! (lavc b-frame support not yet finished)
author | atmos4 |
---|---|
date | Wed, 17 Apr 2002 13:30:05 +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 |