Re: [FFmpeg-devel] [PATCH] avcodec/scpr: optimize shift loop.

2017-09-10 Thread Michael Niedermayer
On Sat, Sep 09, 2017 at 08:02:04PM -0300, James Almer wrote: > On 9/9/2017 7:47 PM, Michael Niedermayer wrote: > > On Sat, Sep 09, 2017 at 04:37:52PM -0500, Brian Matherly wrote: > >> > >> On 9/9/2017 1:27 PM, Michael Niedermayer wrote: > >>> +// If the image is sufficiently aligned, co

Re: [FFmpeg-devel] [PATCH] avcodec/scpr: optimize shift loop.

2017-09-09 Thread James Almer
On 9/9/2017 7:47 PM, Michael Niedermayer wrote: > On Sat, Sep 09, 2017 at 04:37:52PM -0500, Brian Matherly wrote: >> >> On 9/9/2017 1:27 PM, Michael Niedermayer wrote: >>> +// If the image is sufficiently aligned, compute 8 samples at >>> once >>> +if (!(((uintptr_t)dst) &

Re: [FFmpeg-devel] [PATCH] avcodec/scpr: optimize shift loop.

2017-09-09 Thread Michael Niedermayer
On Sat, Sep 09, 2017 at 04:37:52PM -0500, Brian Matherly wrote: > > On 9/9/2017 1:27 PM, Michael Niedermayer wrote: > >+// If the image is sufficiently aligned, compute 8 samples at > >once > >+if (!(((uintptr_t)dst) & 7)) { > >+uint64_t *dst64 = (uint64_t

Re: [FFmpeg-devel] [PATCH] avcodec/scpr: optimize shift loop.

2017-09-09 Thread Brian Matherly
On 9/9/2017 1:27 PM, Michael Niedermayer wrote: +// If the image is sufficiently aligned, compute 8 samples at once +if (!(((uintptr_t)dst) & 7)) { +uint64_t *dst64 = (uint64_t *)dst; +int w = avctx->width>>1; +for (x = 0; x