cosmetics: typo
[libav.git] / libavcodec / xvmc_render.h
CommitLineData
699b3f99
MR
1#ifndef AVCODEC_XVMC_RENDER_H
2#define AVCODEC_XVMC_RENDER_H
3
7fade368
IK
4#include <X11/Xlib.h>
5#include <X11/Xutil.h>
6#include <X11/Xatom.h>
7#include <X11/extensions/Xv.h>
8#include <X11/extensions/Xvlib.h>
9#include <X11/extensions/XvMClib.h>
10
11
ab4e14be 12//the surface should be shown, video driver manipulates this
7fade368 13#define MP_XVMC_STATE_DISPLAY_PENDING 1
ab4e14be 14//the surface is needed for prediction, codec manipulates this
7fade368 15#define MP_XVMC_STATE_PREDICTION 2
d215d07a
IK
16//this surface is needed for subpicture rendering
17#define MP_XVMC_STATE_OSD_SOURCE 4
7fade368
IK
18// 1337 IDCT MCo
19#define MP_XVMC_RENDER_MAGIC 0x1DC711C0
20
21typedef struct{
ab4e14be 22//these are not changed by the decoder!
7fade368
IK
23 int magic;
24
25 short * data_blocks;
26 XvMCMacroBlock * mv_blocks;
27 int total_number_of_mv_blocks;
28 int total_number_of_data_blocks;
29 int mc_type;//XVMC_MPEG1/2/4,XVMC_H263 without XVMC_IDCT
ab4e14be 30 int idct;//Do we use IDCT acceleration?
7fade368
IK
31 int chroma_format;//420,422,444
32 int unsigned_intra;//+-128 for intra pictures after clip
7fade368
IK
33 XvMCSurface* p_surface;//pointer to rendered surface, never changed
34
35//these are changed by decoder
36//used by XvMCRenderSurface function
37 XvMCSurface* p_past_surface;//pointer to the past surface
38 XvMCSurface* p_future_surface;//pointer to the future prediction surface
39
ab4e14be 40 unsigned int picture_structure;//top/bottom fields or frame!
7fade368 41 unsigned int flags;//XVMC_SECOND_FIELD - 1'st or 2'd field in the sequence
115329f1 42 unsigned int display_flags; //1,2 or 1+2 fields for XvMCPutSurface,
7fade368 43
ab4e14be
DB
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
115329f1 48
7fade368 49 int next_free_data_block_num;//used in add_mv_block, pointer to next free block
d215d07a
IK
50//extensions
51 void * p_osd_target_surface_render;//pointer to the surface where subpicture is rendered
7fade368
IK
52
53} xvmc_render_state_t;
699b3f99 54
efb77577 55#endif // AVCODEC_XVMC_RENDER_H