state_trackers/vdpau: Add num_slices to mpeg12 picture structure
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Mon, 31 Oct 2011 09:24:34 +0000 (10:24 +0100)
committerChristian König <deathsimple@vodafone.de>
Thu, 3 Nov 2011 12:52:01 +0000 (13:52 +0100)
Bitstream parsers might need that field.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
src/gallium/include/pipe/p_video_state.h
src/gallium/state_trackers/vdpau/decode.c

index e8087000f703322968d8b3e91b79d767fdd63ffd..53da1d85119a0beda30c22961e4e1e9f46576127 100644 (file)
@@ -134,6 +134,7 @@ struct pipe_mpeg12_picture_desc
    unsigned concealment_motion_vectors;
    unsigned intra_dc_precision;
    unsigned f_code[2][2];
+   unsigned num_slices;
 };
 
 struct pipe_mpeg12_quant_matrix
index aacb9ea28dda59d2aa4c658fa8bb8babf4d35175..7689ce27793646e05b1c617e311bc0721dd085c9 100644 (file)
@@ -233,6 +233,7 @@ vlVdpDecoderRenderMpeg12(struct pipe_video_decoder *decoder,
    picture.f_code[0][1] = picture_info->f_code[0][1] - 1;
    picture.f_code[1][0] = picture_info->f_code[1][0] - 1;
    picture.f_code[1][1] = picture_info->f_code[1][1] - 1;
+   picture.num_slices = picture_info->slice_count;
 
    decoder->set_picture_parameters(decoder, &picture.base);