[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec kmvc.c, NONE, 1.1 Makefile, 1.250, 1.251 allcodecs.c, 1.134, 1.135 avcodec.h, 1.461, 1.462

Michael Niedermayer michaelni
Mon Apr 2 02:29:26 CEST 2007


Hi

On Fri, Apr 07, 2006 at 07:00:00PM +0200, Konstantin Shishkov CVS wrote:
> Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
> In directory mail:/var2/tmp/cvs-serv12938/libavcodec
> 
> Modified Files:
> 	Makefile allcodecs.c avcodec.h 
> Added Files:
> 	kmvc.c 
> Log Message:
> KMVC (used in Worms games) decoder. Works fine with samples from MPHQ
[...]
> #define kmvc_init_getbits(bb, src)  bb.bits = 7; bb.bitbuf = *src++;
> 
> #define kmvc_getbit(bb, src, res) {\
>     res = 0; \
>     if (bb.bitbuf & (1 << bb.bits)) res = 1; \
>     bb.bits--; \
>     if(bb.bits == -1) { \
>         bb.bitbuf = *src++; \
>         bb.bits = 7; \
>     } \
> }

is there a special reason why this is a macro and no inline function or
maybe even get_bits1() standard bitstream stuff ... ?


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

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070402/fe577e8b/attachment.pgp>



More information about the ffmpeg-cvslog mailing list