[Ffmpeg-devel] [PATCH] introduce swscale interface in libavcodec

Michael Niedermayer michaelni
Mon Apr 3 23:23:40 CEST 2006


Hi

On Mon, Apr 03, 2006 at 08:19:30AM +0200, Luca Abeni wrote:
> Hi all,
> 
> I think I found a solution for eliminating the sws_convert() function
> introduced in my last "import swscale" patch (as noted by Michael,
> introducing such function was not a good idea at all).
> 
> The new idea is to completely move ffmpeg.c to the swscale interface
> (this also addresses the "XXX: resampling could be done before raw
> format conversion in some cases to go faster" and "XXX: only works for
> YUV420P" comments in ffmpeg.c :). This means that if swscale is not
> compiled in, libavcodec has to "emulate" its interface.
> 
> So, the first attached patch introduces the swscale interface in
> libavcodec, and the second one modifies ffmpeg.c to use it (a similar
> patch is also needed for output_example.c and ffplay.c... I'll provide
> it if the first patch is accepted).

patches look ok

[...]

> 
> After applying these two patches, importing swscale becomes really easy
> (and the ffmpeg patch for importing it is much smaller...). In fact, I
> already have a working patch: I'll post it later, after checking if all
> the previous comments have been properly addressed (BTW, Michael, is the
> "USE_AVUTIL" thing I put in my last patch ok? If not, let me know and
> I'll remove it).

what USE_AVUTIL? i dont remember ...

[...]

-- 
Michael





More information about the ffmpeg-devel mailing list