[Ffmpeg-devel] [RFC] Smacker decoder

Kostya kostya.shishkov
Mon Mar 20 05:26:16 CET 2006


On Sun, Mar 19, 2006 at 01:30:22PM +0100, Michael Niedermayer wrote:
> Hi
> 
> On Sun, Mar 19, 2006 at 06:46:44AM +0200, Kostya wrote:
> > Here is long-waited decoder for Smacker data. Please test it on different 
> > data (especially SMK4, have no samples here) and also give comments about 
> > it structure. It is not as perfect as it could be (some graphic and sound 
> > glitches still occur) but works for most data (at least I hope).
> > 
> > @Michael: I used table instead of VLC for big trees because of large 
> > tree size (for 16-bit values and lengths of codes >20) get_vlc2(gb,vlc.table,9,3) 
> > got strange errors in decoding and VLC building sometimes was slow.
> 
> hmm, but the code contains get_vlc2(... ,2)
Those get_vlc2() are used for smaller trees, where I have never seen length > 17 bits.
Changed to 3 anyway.
> and try to change VLC_TYPE to int32_t
I'll experiment with this. But VLC_TYPE is already defined in bitstream.h, so redefining it
may cause some unwanted effects. Please think how that could affect source and compatibility
(for example, argument in get_vlc2 is a table of VLC_TYPEs)
> 
> [...]
> 
> -- 
> Michael
> 
> 
For now here are decoder and demuxer which handle palette change and audio decoding more correctly
(two flags in spec were switched places).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smacker.patch.gz
Type: application/x-gzip
Size: 8095 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060320/d125b713/attachment.bin>



More information about the ffmpeg-devel mailing list