Mercurial > libavcodec.hg
comparison xvmc_render.h @ 5223:348b04f6e933 libavcodec
spelling/grammar
author | diego |
---|---|
date | Thu, 05 Jul 2007 22:29:55 +0000 |
parents | 3fd46e281bd8 |
children | 5e6d44208f91 |
comparison
equal
deleted
inserted
replaced
5222:f4b99cc863e5 | 5223:348b04f6e933 |
---|---|
7 #include <X11/extensions/Xv.h> | 7 #include <X11/extensions/Xv.h> |
8 #include <X11/extensions/Xvlib.h> | 8 #include <X11/extensions/Xvlib.h> |
9 #include <X11/extensions/XvMClib.h> | 9 #include <X11/extensions/XvMClib.h> |
10 | 10 |
11 | 11 |
12 //the surface should be shown, video driver manipulate this | 12 //the surface should be shown, video driver manipulates this |
13 #define MP_XVMC_STATE_DISPLAY_PENDING 1 | 13 #define MP_XVMC_STATE_DISPLAY_PENDING 1 |
14 //the surface is needed for prediction, codec manipulate this | 14 //the surface is needed for prediction, codec manipulates this |
15 #define MP_XVMC_STATE_PREDICTION 2 | 15 #define MP_XVMC_STATE_PREDICTION 2 |
16 //this surface is needed for subpicture rendering | 16 //this surface is needed for subpicture rendering |
17 #define MP_XVMC_STATE_OSD_SOURCE 4 | 17 #define MP_XVMC_STATE_OSD_SOURCE 4 |
18 // 1337 IDCT MCo | 18 // 1337 IDCT MCo |
19 #define MP_XVMC_RENDER_MAGIC 0x1DC711C0 | 19 #define MP_XVMC_RENDER_MAGIC 0x1DC711C0 |
20 | 20 |
21 typedef struct{ | 21 typedef struct{ |
22 //these are not changed by decoder! | 22 //these are not changed by the decoder! |
23 int magic; | 23 int magic; |
24 | 24 |
25 short * data_blocks; | 25 short * data_blocks; |
26 XvMCMacroBlock * mv_blocks; | 26 XvMCMacroBlock * mv_blocks; |
27 int total_number_of_mv_blocks; | 27 int total_number_of_mv_blocks; |
28 int total_number_of_data_blocks; | 28 int total_number_of_data_blocks; |
29 int mc_type;//XVMC_MPEG1/2/4,XVMC_H263 without XVMC_IDCT | 29 int mc_type;//XVMC_MPEG1/2/4,XVMC_H263 without XVMC_IDCT |
30 int idct;//does we use IDCT acceleration? | 30 int idct;//Do we use IDCT acceleration? |
31 int chroma_format;//420,422,444 | 31 int chroma_format;//420,422,444 |
32 int unsigned_intra;//+-128 for intra pictures after clip | 32 int unsigned_intra;//+-128 for intra pictures after clip |
33 XvMCSurface* p_surface;//pointer to rendered surface, never changed | 33 XvMCSurface* p_surface;//pointer to rendered surface, never changed |
34 | 34 |
35 //these are changed by decoder | 35 //these are changed by decoder |
36 //used by XvMCRenderSurface function | 36 //used by XvMCRenderSurface function |
37 XvMCSurface* p_past_surface;//pointer to the past surface | 37 XvMCSurface* p_past_surface;//pointer to the past surface |
38 XvMCSurface* p_future_surface;//pointer to the future prediction surface | 38 XvMCSurface* p_future_surface;//pointer to the future prediction surface |
39 | 39 |
40 unsigned int picture_structure;//top/bottom fields or frame ! | 40 unsigned int picture_structure;//top/bottom fields or frame! |
41 unsigned int flags;//XVMC_SECOND_FIELD - 1'st or 2'd field in the sequence | 41 unsigned int flags;//XVMC_SECOND_FIELD - 1'st or 2'd field in the sequence |
42 unsigned int display_flags; //1,2 or 1+2 fields for XvMCPutSurface, | 42 unsigned int display_flags; //1,2 or 1+2 fields for XvMCPutSurface, |
43 | 43 |
44 //these are internal communication one | 44 //these are internal communication ones |
45 int state;//0-free,1 Waiting to Display,2 Waiting for prediction | 45 int state;//0-free, 1 Waiting to Display, 2 Waiting for prediction |
46 int start_mv_blocks_num;//offset in the array for the current slice,updated by vo | 46 int start_mv_blocks_num;//offset in the array for the current slice, updated by vo |
47 int filled_mv_blocks_num;//processed mv block in this slice,change by decoder | 47 int filled_mv_blocks_num;//processed mv block in this slice, changed by decoder |
48 | 48 |
49 int next_free_data_block_num;//used in add_mv_block, pointer to next free block | 49 int next_free_data_block_num;//used in add_mv_block, pointer to next free block |
50 //extensions | 50 //extensions |
51 void * p_osd_target_surface_render;//pointer to the surface where subpicture is rendered | 51 void * p_osd_target_surface_render;//pointer to the surface where subpicture is rendered |
52 | 52 |