[FFmpeg-devel] [PATCH] IFF demuxer and 8SVX decoder

Michael Niedermayer michaelni
Thu Mar 27 16:23:54 CET 2008


On Thu, Mar 27, 2008 at 08:44:54PM +0000, Jai Menon wrote:
> On Wednesday 26 March 2008 21:12:26 Michael Niedermayer wrote:
> > uint8_t d = *buf++;
> >
> > > +        esc->fib_acc += esc->table[d & 0x0f];
> > > +        *out_data++ = esc->fib_acc << 8;
> > > +        esc->fib_acc += esc->table[d >> 4];
> > > +        *out_data++ = esc->fib_acc << 8;
> > > +    }
> >
> > you can do this with one subtraction and 2 shifts less
> >
> I still don't know how i can eliminate the two shifts?

change the table ...

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080327/17457493/attachment.pgp>



More information about the ffmpeg-devel mailing list