[FFmpeg-devel] [PATCH] sws: Move yuv2rgb cliping into the tables.

Michael Niedermayer michaelni at gmx.at
Tue Jan 10 21:24:50 CET 2012


On Tue, Jan 10, 2012 at 09:19:50PM +0100, Michael Niedermayer wrote:
> On Tue, Jan 10, 2012 at 09:02:03PM +0100, Reimar Döffinger wrote:
> > On Tue, Jan 10, 2012 at 08:57:29PM +0100, Michael Niedermayer wrote:
> > > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > > ---
> > >  libswscale/swscale.c          |   31 +++++++++++++++----------------
> > >  libswscale/swscale_internal.h |   10 ++++++----
> > >  libswscale/yuv2rgb.c          |   22 ++++++++++------------
> > >  3 files changed, 31 insertions(+), 32 deletions(-)
> > 
> > Looks good to me.
> > I'm not that convinced if/how much faster it will be on CPUs with small
> > caches, it doubles the size of the tables after all.
> 
> yep but accesses should be quite localized, color does not change so
> radically from one pixel to the next normally and the areas used for
> cliping should rarely be accessed
> 
> ill wait a bit more to give others also a chance to review if anyone
> wants

also, without this patch there are functions in there that are missing
neccesary cliping

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120110/bb76fd59/attachment.asc>


More information about the ffmpeg-devel mailing list