[MPlayer-dev-eng] [PATCH] libavcodec deinterlace support

Joe Rabinoff rabinoff at fas.harvard.edu
Tue Jul 30 06:32:04 CEST 2002


Hello,

Here's a small patch that adds support for libavcodec's deinterlacing
filter.  It's basically copied out of the ffmpeg encoder source and
pasted into libmpcodecs/ve_lavc.c:put_image(), the way ffmpeg does it. 
It adds the "deinterlace" config flag to the lavcopts codec options.  I
use it for encoding the (interlaced-looking) mpeg1video that fame
outputs when grabbing realtime from my TV card (alas, I couldn't get
mencoder to do that part) to libavcodec's mpeg4, and it makes the
picture much prettier.  On the downside, it does make the encoder about
20% slower.  Of course, if you don't turn it on, nothing different
happens :)

I patched this against today's CVS snapshot from the download page -- I
hope that's okay (it only modifies one file anyway).  If not, tell me
and I'll use cvs checkout.  Also, I'm not very experienced in making
patches, so tell me if this isn't formatted right.

Please let me know if this works out.

Joe Rabinoff




-------------- next part --------------
A non-text attachment was scrubbed...
Name: deinterlace.patch
Type: text/x-patch
Size: 4156 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020730/5aa66ff6/attachment.bin>


More information about the MPlayer-dev-eng mailing list