diff options
author | Christian König <deathsimple@vodafone.de> | 2012-01-04 14:46:33 +0100 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2012-01-15 12:40:44 +0100 |
commit | 8ea416f35de0c664ef47b71841756758f22d7faa (patch) | |
tree | 7245da0914e37a7d73fce094f068f9eff793c8bd /src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h | |
parent | 9af70c90dba9ed9902778883b675062fa0168b48 (diff) | |
download | external_mesa3d-8ea416f35de0c664ef47b71841756758f22d7faa.zip external_mesa3d-8ea416f35de0c664ef47b71841756758f22d7faa.tar.gz external_mesa3d-8ea416f35de0c664ef47b71841756758f22d7faa.tar.bz2 |
vl: move away from state like parameters
Again based on Maartens work, but keep begin_frame
and end_frame functions for now.
Signed-off-by: Christian König <deathsimple@vodafone.de>
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h index 0ba7f43..0a34814 100644 --- a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h +++ b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.h @@ -35,7 +35,7 @@ struct vl_mpg12_bs { struct pipe_video_decoder *decoder; - struct pipe_mpeg12_picture_desc desc; + struct pipe_mpeg12_picture_desc *desc; struct dct_coeff *intra_dct_tbl; struct vl_vlc vlc; @@ -46,10 +46,11 @@ void vl_mpg12_bs_init(struct vl_mpg12_bs *bs, struct pipe_video_decoder *decoder); void -vl_mpg12_bs_set_picture_desc(struct vl_mpg12_bs *bs, struct pipe_mpeg12_picture_desc *picture); - -void -vl_mpg12_bs_decode(struct vl_mpg12_bs *bs, unsigned num_buffers, - const void * const *buffers, const unsigned *sizes); +vl_mpg12_bs_decode(struct vl_mpg12_bs *bs, + struct pipe_video_buffer *target, + struct pipe_mpeg12_picture_desc *picture, + unsigned num_buffers, + const void * const *buffers, + const unsigned *sizes); #endif /* vl_mpeg12_bitstream_h */ |