annotate xvmc_render.h @ 10610:8ad3908b4cdd

cp1250 updates by Karel Kozlovsky <kozlovsk@centrum.cz>
author diego
date Fri, 15 Aug 2003 11:19:10 +0000
parents 4eaf6fa120b1
children 7ab88b24cb81
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10361
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
1 #include <X11/Xlib.h>
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
2 #include <X11/Xutil.h>
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
3 #include <X11/Xatom.h>
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
4 #include <X11/extensions/Xv.h>
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
5 #include <X11/extensions/Xvlib.h>
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
6 #include <X11/extensions/XvMClib.h>
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
7
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
8
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
9 //the surface should be shown, video driver manipulate this
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
10 #define MP_XVMC_STATE_DISPLAY_PENDING 1
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
11 //the surface is needed for prediction, codec manipulate this
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
12 #define MP_XVMC_STATE_PREDICTION 2
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
13 // 1337 IDCT MCo
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
14 #define MP_XVMC_RENDER_MAGIC 0x1DC711C0
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
15
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
16 typedef struct{
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
17 //these are not changed by decoder!
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
18 int magic;
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
19
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
20 short * data_blocks;
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
21 XvMCMacroBlock * mv_blocks;
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
22 int total_number_of_mv_blocks;
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
23 int total_number_of_data_blocks;
10452
4eaf6fa120b1 sync to ffmpeg, updates, cleanups
iive
parents: 10361
diff changeset
24 int mc_type;//XVMC_MPEG1/2/4,XVMC_H263 without XVMC_IDCT
10361
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
25 int idct;//does we use IDCT acceleration?
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
26 int chroma_format;//420,422,444
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
27 int unsigned_intra;//+-128 for intra pictures after clip
10452
4eaf6fa120b1 sync to ffmpeg, updates, cleanups
iive
parents: 10361
diff changeset
28 int reserved1[13];//future extenstions (e.g. gmc,qpel)
10361
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
29 XvMCSurface* p_surface;//pointer to rendered surface, never changed
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
30
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
31 //these are changed by decoder
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
32 //used by XvMCRenderSurface function
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
33 XvMCSurface* p_past_surface;//pointer to the past surface
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
34 XvMCSurface* p_future_surface;//pointer to the future prediction surface
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
35
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
36 unsigned int picture_structure;//top/bottom fields or frame !
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
37 unsigned int flags;//XVMC_SECOND_FIELD - 1'st or 2'd field in the sequence
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
38 unsigned int display_flags; //1,2 or 1+2 fields for XvMCPutSurface,
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
39
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
40 //these are internal communication one
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
41 int state;//0-free,1 Waiting to Display,2 Waiting for prediction
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
42 int start_mv_blocks_num;//offset in the array for the current slice,updated by vo
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
43 int filled_mv_blocks_num;//processed mv block in this slice,change by decoder
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
44
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
45 int next_free_data_block_num;//used in add_mv_block, pointer to next free block
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
46
9f97e3bd0e04 XVideo Motion Compensation common structures
iive
parents:
diff changeset
47 } xvmc_render_state_t;