Merge branch 'mesa_7_6_branch'
[mesa.git] / src / gallium / drivers / softpipe / sp_video_context.h
1 #ifndef SP_VIDEO_CONTEXT_H
2 #define SP_VIDEO_CONTEXT_H
3
4 #include <pipe/p_video_context.h>
5 #include <vl/vl_mpeg12_mc_renderer.h>
6 #include <vl/vl_compositor.h>
7
8 struct pipe_screen;
9 struct pipe_context;
10 struct pipe_video_surface;
11
12 struct sp_mpeg12_context
13 {
14 struct pipe_video_context base;
15 struct pipe_context *pipe;
16 struct pipe_video_surface *decode_target;
17 struct vl_mpeg12_mc_renderer mc_renderer;
18 struct vl_compositor compositor;
19
20 void *rast;
21 void *dsa;
22 void *blend;
23 };
24
25 struct pipe_video_context *
26 sp_video_create(struct pipe_screen *screen, enum pipe_video_profile profile,
27 enum pipe_video_chroma_format chroma_format,
28 unsigned width, unsigned height);
29
30 #endif /* SP_VIDEO_CONTEXT_H */