vl: Add missing mpeg fields to pipe_mpeg12_picture_desc
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Fri, 2 Dec 2011 00:00:54 +0000 (01:00 +0100)
committerYounes Manton <younes.m@gmail.com>
Sun, 11 Dec 2011 06:06:15 +0000 (01:06 -0500)
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 1940bf12ba1c8a8fdaf6436b5a56f1aaabdcf02c..9a70eb7c468d0c63499d8434f01baf09dc07a63e 100644 (file)
@@ -134,6 +134,9 @@ struct pipe_mpeg12_picture_desc
    unsigned concealment_motion_vectors;
    unsigned intra_dc_precision;
    unsigned f_code[2][2];
+   unsigned top_field_first;
+   unsigned full_pel_forward_vector;
+   unsigned full_pel_backward_vector;
    unsigned num_slices;
 };
 
index f1351298fa177a2c7fb085e29f208e22fc641e18..47212e348ed6c7130967bb1cc58de014b3da9850 100644 (file)
@@ -245,6 +245,9 @@ vlVdpDecoderRenderMpeg12(struct pipe_video_decoder *decoder,
    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;
+   picture.top_field_first = picture_info->top_field_first;
+   picture.full_pel_forward_vector = picture_info->full_pel_forward_vector;
+   picture.full_pel_backward_vector = picture_info->full_pel_backward_vector;
 
    decoder->set_picture_parameters(decoder, &picture.base);