Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-22 Thread Martin Vignali
> > patches should be ok > > Pushed, thanks. Martin ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-21 Thread Michael Niedermayer
On Mon, Aug 20, 2018 at 03:34:26PM +0200, Martin Vignali wrote: > Updated patch in attach > also fix the conversion when using float gray as input, and 8bpc uint as > output > > Martin patches should be ok thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-20 Thread Martin Vignali
Updated patch in attach also fix the conversion when using float gray as input, and 8bpc uint as output Martin 0002-swscale-treat-float-input-data-as-uint-16bpc.patch Description: Binary data 0003-swscale-swscale-small-cosmetic.patch Description: Binary data

Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-20 Thread Martin Vignali
Hello, New patch in attach Add an if case for float input, in order to define the shift value. I try to add some details in the commit msg. Pass fate test for me (Mac os 10.12, x86_64). Martin 0002-swscale-treat-float-input-data-as-uint-16bpc.patch Description: Binary data

Re: [FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-19 Thread Michael Niedermayer
On Sun, Aug 19, 2018 at 09:00:05PM +0200, Martin Vignali wrote: > Hello, > > Patch in attach fix for me, Gray Float to UINT16 conversion > (see discussion : avcodec/psd : add support for gray float (WIP)) > > After this patch and psd patch, > > this command line works : > ./ffmpeg -i

[FFmpeg-devel] swscale : hScale16To19 : limit shift for float(32bits) input

2018-08-19 Thread Martin Vignali
Hello, Patch in attach fix for me, Gray Float to UINT16 conversion (see discussion : avcodec/psd : add support for gray float (WIP)) After this patch and psd patch, this command line works : ./ffmpeg -i lena-gray_float.psd res16.png Maybe not the best way to fix that. Comments welcome Martin