Re: [FFmpeg-devel] pngdsp add bytes padding

2016-02-18 Thread Michael Niedermayer
On Thu, Feb 18, 2016 at 05:53:46PM +0100, Clément Bœsch wrote: > On Thu, Feb 18, 2016 at 12:42:59PM +0100, Michael Niedermayer wrote: > > On Thu, Feb 18, 2016 at 11:36:18AM +0100, Clément Bœsch wrote: > > > Hi, > > > > > > While working on PNG DSP, I realized the filter up was doing extra > > > ov

Re: [FFmpeg-devel] pngdsp add bytes padding

2016-02-18 Thread Clément Bœsch
On Thu, Feb 18, 2016 at 12:42:59PM +0100, Michael Niedermayer wrote: > On Thu, Feb 18, 2016 at 11:36:18AM +0100, Clément Bœsch wrote: > > Hi, > > > > While working on PNG DSP, I realized the filter up was doing extra > > overflow checks on the bytes non multiple of the long word size. This > > log

Re: [FFmpeg-devel] pngdsp add bytes padding

2016-02-18 Thread Michael Niedermayer
On Thu, Feb 18, 2016 at 11:36:18AM +0100, Clément Bœsch wrote: > Hi, > > While working on PNG DSP, I realized the filter up was doing extra > overflow checks on the bytes non multiple of the long word size. This > logic is present in both C and x86 ASM. Here is the current C code for > reference:

[FFmpeg-devel] pngdsp add bytes padding

2016-02-18 Thread Clément Bœsch
Hi, While working on PNG DSP, I realized the filter up was doing extra overflow checks on the bytes non multiple of the long word size. This logic is present in both C and x86 ASM. Here is the current C code for reference: -- 8< // 0x7f7f7f7f or 0x7f7f7f7f7f7f7f7f or