diff options
author | Christian König <[email protected]> | 2011-03-16 23:09:52 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2011-03-16 23:09:52 +0100 |
commit | e87bd8c9578dee384ff03039aa792e1a8dae7f36 (patch) | |
tree | def2d5749cb87fb4ba1f67614dad6a59c90ee9e5 /src/gallium/drivers/softpipe | |
parent | 0f07da0a1c87e1c7b53700c33d6b1f8f03c1fe11 (diff) |
[g3dvl] cleanup and documentation
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_video_context.c | 8 | ||||
-rw-r--r-- | src/gallium/drivers/softpipe/sp_video_context.h | 35 |
2 files changed, 19 insertions, 24 deletions
diff --git a/src/gallium/drivers/softpipe/sp_video_context.c b/src/gallium/drivers/softpipe/sp_video_context.c index 32398e4ff08..7e3519e694f 100644 --- a/src/gallium/drivers/softpipe/sp_video_context.c +++ b/src/gallium/drivers/softpipe/sp_video_context.c @@ -36,13 +36,7 @@ #include <util/u_rect.h> #include <util/u_video.h> #include <util/u_surface.h> -#include "sp_public.h" -#include "sp_texture.h" - -#define MACROBLOCK_WIDTH 16 -#define MACROBLOCK_HEIGHT 16 -#define BLOCK_WIDTH 8 -#define BLOCK_HEIGHT 8 +#include <vl/vl_defines.h> #define NUM_BUFFERS 2 diff --git a/src/gallium/drivers/softpipe/sp_video_context.h b/src/gallium/drivers/softpipe/sp_video_context.h index 2e3e4ec729f..04368a64a53 100644 --- a/src/gallium/drivers/softpipe/sp_video_context.h +++ b/src/gallium/drivers/softpipe/sp_video_context.h @@ -29,29 +29,13 @@ #define SP_VIDEO_CONTEXT_H #include <pipe/p_video_context.h> +#include <vl/vl_idct.h> #include <vl/vl_mpeg12_mc_renderer.h> #include <vl/vl_compositor.h> struct pipe_screen; struct pipe_context; -struct sp_mpeg12_buffer -{ - struct vl_vertex_buffer vertex_stream; - - union - { - struct pipe_vertex_buffer all[2]; - struct { - struct pipe_vertex_buffer quad, stream; - } individual; - } vertex_bufs; - - struct vl_idct_buffer idct_y, idct_cb, idct_cr; - - struct vl_mpeg12_mc_buffer mc; -}; - struct sp_mpeg12_context { struct pipe_video_context base; @@ -76,6 +60,23 @@ struct sp_mpeg12_context enum pipe_format decode_format; }; +struct sp_mpeg12_buffer +{ + struct vl_vertex_buffer vertex_stream; + + union + { + struct pipe_vertex_buffer all[2]; + struct { + struct pipe_vertex_buffer quad, stream; + } individual; + } vertex_bufs; + + struct vl_idct_buffer idct_y, idct_cb, idct_cr; + + struct vl_mpeg12_mc_buffer mc; +}; + struct pipe_video_context * sp_video_create(struct pipe_screen *screen, enum pipe_video_profile profile, enum pipe_video_chroma_format chroma_format, |