Mercurial > mplayer.hg
annotate xvmc_render.h @ 11145:753395e422d0
wording
author | diego |
---|---|
date | Thu, 16 Oct 2003 12:04:12 +0000 |
parents | 7ab88b24cb81 |
children | 470cc9dc1b33 |
rev | line source |
---|---|
10361 | 1 #include <X11/Xlib.h> |
2 #include <X11/Xutil.h> | |
3 #include <X11/Xatom.h> | |
4 #include <X11/extensions/Xv.h> | |
5 #include <X11/extensions/Xvlib.h> | |
6 #include <X11/extensions/XvMClib.h> | |
7 | |
8 | |
9 //the surface should be shown, video driver manipulate this | |
10 #define MP_XVMC_STATE_DISPLAY_PENDING 1 | |
11 //the surface is needed for prediction, codec manipulate this | |
12 #define MP_XVMC_STATE_PREDICTION 2 | |
10698
7ab88b24cb81
OSD support, optinal queue, optional use of sleep(), and benchmark mode
iive
parents:
10452
diff
changeset
|
13 //this surface is needed for subpicture rendering |
7ab88b24cb81
OSD support, optinal queue, optional use of sleep(), and benchmark mode
iive
parents:
10452
diff
changeset
|
14 #define MP_XVMC_STATE_OSD_SOURCE 4 |
10361 | 15 // 1337 IDCT MCo |
16 #define MP_XVMC_RENDER_MAGIC 0x1DC711C0 | |
17 | |
18 typedef struct{ | |
19 //these are not changed by decoder! | |
20 int magic; | |
21 | |
22 short * data_blocks; | |
23 XvMCMacroBlock * mv_blocks; | |
24 int total_number_of_mv_blocks; | |
25 int total_number_of_data_blocks; | |
10452 | 26 int mc_type;//XVMC_MPEG1/2/4,XVMC_H263 without XVMC_IDCT |
10361 | 27 int idct;//does we use IDCT acceleration? |
28 int chroma_format;//420,422,444 | |
29 int unsigned_intra;//+-128 for intra pictures after clip | |
10698
7ab88b24cb81
OSD support, optinal queue, optional use of sleep(), and benchmark mode
iive
parents:
10452
diff
changeset
|
30 int reserved1[12];//future extenstions (e.g. gmc,qpel) |
7ab88b24cb81
OSD support, optinal queue, optional use of sleep(), and benchmark mode
iive
parents:
10452
diff
changeset
|
31 void * p_osd_target_surface_render;//pointer to the surface where subpicture is rendered |
10361 | 32 XvMCSurface* p_surface;//pointer to rendered surface, never changed |
33 | |
34 //these are changed by decoder | |
35 //used by XvMCRenderSurface function | |
36 XvMCSurface* p_past_surface;//pointer to the past surface | |
37 XvMCSurface* p_future_surface;//pointer to the future prediction surface | |
38 | |
39 unsigned int picture_structure;//top/bottom fields or frame ! | |
40 unsigned int flags;//XVMC_SECOND_FIELD - 1'st or 2'd field in the sequence | |
41 unsigned int display_flags; //1,2 or 1+2 fields for XvMCPutSurface, | |
42 | |
43 //these are internal communication one | |
44 int state;//0-free,1 Waiting to Display,2 Waiting for prediction | |
45 int start_mv_blocks_num;//offset in the array for the current slice,updated by vo | |
46 int filled_mv_blocks_num;//processed mv block in this slice,change by decoder | |
47 | |
48 int next_free_data_block_num;//used in add_mv_block, pointer to next free block | |
49 | |
50 } xvmc_render_state_t; |