[FFmpeg-devel] [libswscale PATCH] Invert logic for the single-pass in swScale() functions.

Michael Niedermayer michaelni
Thu Oct 9 02:55:58 CEST 2008


On Thu, Oct 09, 2008 at 01:04:37AM +0200, Diego 'Flameeyes' Petten? wrote:
> Instead of having a firstTime variable defaulting to 1, have a
> passedAlready defaulting to 0. While this should make no difference in
> code speed at runtime, it allows to aggregate the four bytes of that
> variable with clip_table in .bss section, rather than issuing a .data
> section just for that.
> 
> As it is, libswscale require no .data section but .data.rel.ro (that
> can be mitigated by prelinking), so the change might actually save one
> page of memory at runtime (per process).
> ---
> 
>  swscale_template.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

ok if you name it warnedAlready

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

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081009/aa8a73ed/attachment.pgp>



More information about the ffmpeg-devel mailing list