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

2018-08-22 Thread Michael Niedermayer
On Wed, Aug 22, 2018 at 09:02:57PM +0200, Martin Vignali wrote: > > > > well then it should be ok > > not sure if the ff_ prefix is ideal for a static inline function > > > > > Do you think flt_2_uint16 is a better name ? yes thx > (can probably be interesting to also add same kind of func for

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

2018-08-22 Thread Martin Vignali
> > well then it should be ok > not sure if the ff_ prefix is ideal for a static inline function > > Do you think flt_2_uint16 is a better name ? (can probably be interesting to also add same kind of func for float to uint8 in unscaled part) Martin ___

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

2018-08-22 Thread Michael Niedermayer
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

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

2018-08-22 Thread Martin Vignali
> > --- > > 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

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

2018-08-21 Thread Michael Niedermayer
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

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

2018-08-20 Thread Martin Vignali
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 0004-swscale-input-avoid-float-calc-for-grayFloat-to-uint.patch Description: Binary data