[FFmpeg-devel] [PATCH] [RFC] Second try at pixdesc.h:write_line()

Stefano Sabatini stefano.sabatini-lala
Sat Apr 18 20:31:35 CEST 2009


On date Saturday 2009-04-18 19:00:45 +0200, Michael Niedermayer encoded:
[...]
> here is my suggestion again:
> 
> > > for(){
> > >     *buf |= *pixel++ << s;
> > >     s-= C;
> > >     buf -= s>>8;
> > >     s&=7;
> > > }

Maybe I'm dumb, I failed to get it the first time, and failing again.

What does C stand for? What is s supposed to be? Are you suggesting to
use a pointer to int8_t, int32_t, what?

More hints are welcome, I'm pretty sure the solution will be damn
simple just I'm not used to such low-level bit twiddling.

Regards.
-- 
FFmpeg = Faboulous Forgiving Muttering Pure Enhanced Gargoyle



More information about the ffmpeg-devel mailing list