Mercurial > libavcodec.hg
annotate xvmc_render.h @ 5260:d623b3171830 libavcodec
indent
author | mru |
---|---|
date | Sun, 08 Jul 2007 23:15:12 +0000 |
parents | 348b04f6e933 |
children | 5e6d44208f91 |
rev | line source |
---|---|
5163 | 1 #ifndef AVCODEC_XVMC_RENDER_H |
2 #define AVCODEC_XVMC_RENDER_H | |
3 | |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
4 #include <X11/Xlib.h> |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
5 #include <X11/Xutil.h> |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
6 #include <X11/Xatom.h> |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
7 #include <X11/extensions/Xv.h> |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
8 #include <X11/extensions/Xvlib.h> |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
9 #include <X11/extensions/XvMClib.h> |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
10 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
11 |
5223 | 12 //the surface should be shown, video driver manipulates this |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
13 #define MP_XVMC_STATE_DISPLAY_PENDING 1 |
5223 | 14 //the surface is needed for prediction, codec manipulates this |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
15 #define MP_XVMC_STATE_PREDICTION 2 |
4738
7bec6dd03317
get rid of unused entries in the middle of xvmc_render struct,
iive
parents:
4524
diff
changeset
|
16 //this surface is needed for subpicture rendering |
7bec6dd03317
get rid of unused entries in the middle of xvmc_render struct,
iive
parents:
4524
diff
changeset
|
17 #define MP_XVMC_STATE_OSD_SOURCE 4 |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
18 // 1337 IDCT MCo |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
19 #define MP_XVMC_RENDER_MAGIC 0x1DC711C0 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
20 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
21 typedef struct{ |
5223 | 22 //these are not changed by the decoder! |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
23 int magic; |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
24 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
25 short * data_blocks; |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
26 XvMCMacroBlock * mv_blocks; |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
27 int total_number_of_mv_blocks; |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
28 int total_number_of_data_blocks; |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
29 int mc_type;//XVMC_MPEG1/2/4,XVMC_H263 without XVMC_IDCT |
5223 | 30 int idct;//Do we use IDCT acceleration? |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
31 int chroma_format;//420,422,444 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
32 int unsigned_intra;//+-128 for intra pictures after clip |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
33 XvMCSurface* p_surface;//pointer to rendered surface, never changed |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
34 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
35 //these are changed by decoder |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
36 //used by XvMCRenderSurface function |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
37 XvMCSurface* p_past_surface;//pointer to the past surface |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
38 XvMCSurface* p_future_surface;//pointer to the future prediction surface |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
39 |
5223 | 40 unsigned int picture_structure;//top/bottom fields or frame! |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
41 unsigned int flags;//XVMC_SECOND_FIELD - 1'st or 2'd field in the sequence |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
42 unsigned int display_flags; //1,2 or 1+2 fields for XvMCPutSurface, |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
43 |
5223 | 44 //these are internal communication ones |
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 | |
47 int filled_mv_blocks_num;//processed mv block in this slice, changed by decoder | |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
48 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
49 int next_free_data_block_num;//used in add_mv_block, pointer to next free block |
4738
7bec6dd03317
get rid of unused entries in the middle of xvmc_render struct,
iive
parents:
4524
diff
changeset
|
50 //extensions |
7bec6dd03317
get rid of unused entries in the middle of xvmc_render struct,
iive
parents:
4524
diff
changeset
|
51 void * p_osd_target_surface_render;//pointer to the surface where subpicture is rendered |
4524
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
52 |
722e3199c56e
Move xvmc_render.h to libavcodec where it belongs. Blessed by Ivan.
diego
parents:
diff
changeset
|
53 } xvmc_render_state_t; |
5163 | 54 |
5169
3fd46e281bd8
add a comment to indicate which #endif belong to which #define
gpoirier
parents:
5163
diff
changeset
|
55 #endif // AVCODEC_XVMC_RENDER_H |