From 000db36020bd6d31160bd0eb38ad27bb9687400a Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Wed, 15 Apr 2009 23:38:53 +0200 Subject: vdpaumpegdec: parse PICTURE_CODING_EXTENSION alternate_scan bit --- sys/vdpau/gstvdpmpegdecoder.c | 1 + sys/vdpau/mpegutil.c | 1 + sys/vdpau/mpegutil.h | 1 + 3 files changed, 3 insertions(+) diff --git a/sys/vdpau/gstvdpmpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c index be432281..053cf1c0 100644 --- a/sys/vdpau/gstvdpmpegdecoder.c +++ b/sys/vdpau/gstvdpmpegdecoder.c @@ -216,6 +216,7 @@ gst_vdp_mpeg_decoder_parse_picture_coding (GstVdpMpegDecoder * mpeg_dec, info->concealment_motion_vectors = pic_ext.concealment_motion_vectors; info->q_scale_type = pic_ext.q_scale_type; info->intra_vlc_format = pic_ext.intra_vlc_format; + info->alternate_scan = pic_ext.alternate_scan; return TRUE; } diff --git a/sys/vdpau/mpegutil.c b/sys/vdpau/mpegutil.c index 7ef46fb2..929df4ab 100644 --- a/sys/vdpau/mpegutil.c +++ b/sys/vdpau/mpegutil.c @@ -337,6 +337,7 @@ mpeg_util_parse_picture_coding_extension (MPEGPictureExt * ext, guint8 * data, ext->concealment_motion_vectors = read_bits (data + 3, 2, 1); ext->q_scale_type = read_bits (data + 3, 3, 1); ext->intra_vlc_format = read_bits (data + 3, 4, 1); + ext->alternate_scan = read_bits (data + 3, 5, 1); return TRUE; } diff --git a/sys/vdpau/mpegutil.h b/sys/vdpau/mpegutil.h index 5fb47290..24a29a35 100644 --- a/sys/vdpau/mpegutil.h +++ b/sys/vdpau/mpegutil.h @@ -90,6 +90,7 @@ struct MPEGPictureExt guint8 concealment_motion_vectors; guint8 q_scale_type; guint8 intra_vlc_format; + guint8 alternate_scan; }; struct MPEGPictureGOP -- cgit v1.2.1