[FFmpeg-devel] swscale/input : avoid float calc for GrayFloat to Gray16 conv

Michael Niedermayer michael at niedermayer.cc
Wed Aug 22 21:47:43 EEST 2018


On Wed, Aug 22, 2018 at 12:45:50PM +0200, Martin Vignali wrote:
> > > ---
> > >  libswscale/input.c            | 10 +++++-----
> > >  libswscale/swscale_internal.h | 20 ++++++++++++++++++++
> > >  2 files changed, 25 insertions(+), 5 deletions(-)
> >
> > please provide benchmark, what is the impact on speed from this ?
> >
> >
> In my tests, the patch increase speed by around 20%.

well then it should be ok
not sure if the ff_ prefix is ideal for a static inline function 

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Does the universe only have a finite lifespan? No, its going to go on
forever, its just that you wont like living in it. -- Hiranya Peiri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180822/5e5c96d8/attachment.sig>


More information about the ffmpeg-devel mailing list