vl/mpeg12: fix mpeg-1 bytestream parsing
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Sat, 22 Jun 2013 07:33:52 +0000 (09:33 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Sat, 22 Jun 2013 07:40:15 +0000 (09:40 +0200)
commit6aabd9490c7b71d363a384935597b3e37295e61e
tree155a5af193b78c889965d2599e5ccca656aa7d06
parentefdc6caaf50b7b707b965f8f74939e0f00576bdf
vl/mpeg12: fix mpeg-1 bytestream parsing

This fixes the bytestream parsing of mpeg-1 stream, but still leaves
open a number of issues with the interpretation:
- IDCT mismatch control is not correct for MPEG-1.
- Slices do not have to start and end on the same horizontal row of macroblocks.
- picture_coding_type = 4 (D-pictures) is not handled.
- full_pel_*_vector is not handled.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c