g3dvl: Use a single texture for luma and chroma data
[mesa.git] / src / gallium / auxiliary / vl / vl_mpeg12_bitstream.h
index 8a35dc49d2da3a656342466d1c36173dd7761cfb..797a7e792a8ee6ba1c59c80a69b322a9ac216a3a 100644 (file)
@@ -38,10 +38,11 @@ struct vl_mpg12_bs
 
    struct vl_vlc vlc;
 
+   unsigned block_num;
    unsigned *num_ycbcr_blocks;
 
    struct vl_ycbcr_block *ycbcr_stream[VL_MAX_PLANES];
-   short *ycbcr_buffer[VL_MAX_PLANES];
+   short *ycbcr_buffer;
 
    struct vl_motionvector *mv_stream[VL_MAX_REF_FRAMES];
 };
@@ -51,7 +52,7 @@ vl_mpg12_bs_init(struct vl_mpg12_bs *bs, unsigned width, unsigned height);
 
 void
 vl_mpg12_bs_set_buffers(struct vl_mpg12_bs *bs, struct vl_ycbcr_block *ycbcr_stream[VL_MAX_PLANES],
-                        short *ycbcr_buffer[VL_MAX_PLANES], struct vl_motionvector *mv_stream[VL_MAX_REF_FRAMES]);
+                        short *ycbcr_buffer, struct vl_motionvector *mv_stream[VL_MAX_REF_FRAMES]);
 
 void
 vl_mpg12_bs_decode(struct vl_mpg12_bs *bs, unsigned num_bytes, const void *buffer,