vl: improve vlc functions and handling
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Tue, 20 Dec 2011 11:43:23 +0000 (12:43 +0100)
committerChristian König <deathsimple@vodafone.de>
Fri, 23 Dec 2011 15:31:26 +0000 (16:31 +0100)
commitefa93ae449b6dc8437ee7240a8ea050a0d1699e0
treec7cd9c55ad39463df1e1c2032d1e59ef9775f473
parentebe7c687ceed4e5ca704b325aac6b91791d394b0
vl: improve vlc functions and handling

Only initialize vlc in MPEG2 decoding once for all slices,
add more sanity checks to vlc decoding functions, support
multiple vlc input buffer, improve documentation of the
vlc functions.

v2: also implement multiple inputs for the vlc functions
v3: some bug fixes for buffer size and alignment corner cases
v4: rework of the patch, some more improvements

Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
src/gallium/auxiliary/vl/vl_vlc.h