[FFmpeg-devel] [PATCH] make img_convert symbol conditional on lavc version, not libswscale

Reinhard Tartler siretart
Fri Jun 6 11:29:27 CEST 2008


Michael Niedermayer <michaelni at gmx.at> writes:

>> Duplicated code bloat is in general not an issue for general purpose
>> distributions. 
>
> Ever tried to run (and especially use) recent software
> (kde, gnome, firefox, ...) on an old computer? Iam writing this on a 500mhz P3
> with 192mb ram. firefox is on it at least 20 times slower than any browser was
> on a 90mhz pentium, with significantly less ram, when these where average
> systems.

I see two approaches to this problem:

 - removing code
 - modularise code

The first one is straight forward. Decide that old code is "depracated",
remove the code from the library and force application developers to
move and adapt to the new situation.

The second one provides the same functionality but enables applications
to choose fine grained the implementations and code they need to
run. Then only the needed code is loaded and run. This however means
more work for the library developer.

For this specific case: If libswscale would provide the same API as the
imgresample.c implemenation, then it would have been trivial to port
applications: Just include a new header and adjust LDFLAGS. What the
patch this thread about aims at is to provide the "missing" functions
imgresample.c provides and libswscale doesn't.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4





More information about the ffmpeg-devel mailing list