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

Michael Niedermayer michael at niedermayer.cc
Wed Aug 22 03:24:12 EEST 2018


On Mon, Aug 20, 2018 at 04:41:02PM +0200, Martin Vignali wrote:
> Hello,
> 
> Patch in attach modify GrayFloat to Gray16 conversion
> using the same method currently use inside exr decoder (no float calc)
> 
> duplicate the float_to_uint func inside swscale_internal
> 
> Martin

>  input.c            |   10 +++++-----
>  swscale_internal.h |   20 ++++++++++++++++++++
>  2 files changed, 25 insertions(+), 5 deletions(-)
> 075a95ff08c3976a0b804422c515e49bea3a529b  0004-swscale-input-avoid-float-calc-for-grayFloat-to-uint.patch
> From 742160d2f161b316ad923b0ea0c60d79193c3357 Mon Sep 17 00:00:00 2001
> From: Martin Vignali <martin.vignali at gmail.com>
> Date: Mon, 20 Aug 2018 16:35:13 +0200
> Subject: [PATCH 4/4] swscale/input : avoid float calc for grayFloat to uint16 
>  conversion
> 
> reuse the float to uint16 func currently use inside exr decoder
> ---
>  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 ?

thx

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

During times of universal deceit, telling the truth becomes a
revolutionary act. -- George Orwell
-------------- 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/64fc8835/attachment.sig>


More information about the ffmpeg-devel mailing list