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
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
2782
b52d3e6ff4ab app michale's rgb32tobgr32
pontscho
parents: 2082
diff changeset
19 typedef void(*wsTConvFunc)( const unsigned char * in_pixels, unsigned char * out_pixels, unsigned num_pixels );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 extern wsTConvFunc wsConvFunc;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
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
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31 #ifdef xHAVE_MMX
2782
b52d3e6ff4ab app michale's rgb32tobgr32
pontscho
parents: 2082
diff changeset
32 extern void BGR8880_to_RGB888_mmx( const unsigned char * in_pixels,unsigned char * out_pixels,unsigned num_pixels);
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
33 #endif
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
34
2782
b52d3e6ff4ab app michale's rgb32tobgr32
pontscho
parents: 2082
diff changeset
35 extern void RGB565_to_RGB888_c( const unsigned char * in_pixels, unsigned char * out_pixels,unsigned num_pixels);
1693
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