Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-02 Thread James Almer
On 12/2/2017 6:27 AM, Paul B Mahol wrote: > On 12/2/17, James Almer wrote: >> On 12/1/2017 3:41 PM, Paul B Mahol wrote: >>> Signed-off-by: Paul B Mahol >>> --- >>> libavfilter/threshold.h | 51 +++ >>> libavfilter/vf_threshold.c | 28 --- >

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-02 Thread Paul B Mahol
On 12/2/17, James Almer wrote: > On 12/1/2017 3:41 PM, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavfilter/threshold.h | 51 +++ >> libavfilter/vf_threshold.c | 28 --- >> libavfilter/x86/Makefile| 2 ++ >>

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-01 Thread James Almer
On 12/1/2017 3:41 PM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavfilter/threshold.h | 51 +++ > libavfilter/vf_threshold.c | 28 --- > libavfilter/x86/Makefile| 2 ++ > libavfilter/x86/vf_threshold.asm|

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-01 Thread Martin Vignali
> >> > > Do you need pxor m0, m4 and pxor m1, m4 ? > > Yes, > I need it. > > Yes, you're right, sorry for the noise Martin ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-01 Thread James Almer
On 12/1/2017 5:00 PM, Martin Vignali wrote: > Hello, > > + >> +INIT_XMM sse4 >> > Maybe use a macro (AVX2 can probably, be easy to add) > > >> +cglobal threshold8, 10, 13, 5, in, threshold, min, max, out, ilinesize, >> tlinesize, flinesize, slinesize, olinesize, w, h, x >> +mov wd, d

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-01 Thread Paul B Mahol
On 12/1/17, Martin Vignali wrote: > Hello, > > + >> +INIT_XMM sse4 >> > Maybe use a macro (AVX2 can probably, be easy to add) Not now. > > >> +cglobal threshold8, 10, 13, 5, in, threshold, min, max, out, ilinesize, >> tlinesize, flinesize, slinesize, olinesize, w, h, x >> +mov wd, dw

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-01 Thread Martin Vignali
Hello, + > +INIT_XMM sse4 > Maybe use a macro (AVX2 can probably, be easy to add) > +cglobal threshold8, 10, 13, 5, in, threshold, min, max, out, ilinesize, > tlinesize, flinesize, slinesize, olinesize, w, h, x > +mov wd, dword wm > +mov hd, dword hm > Maybe you can use p

[FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-12-01 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/threshold.h | 51 +++ libavfilter/vf_threshold.c | 28 --- libavfilter/x86/Makefile| 2 ++ libavfilter/x86/vf_threshold.asm| 69 + libavfilter/

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-11-12 Thread James Darnley
On 2017-11-12 21:15, Rostislav Pehlivanov wrote: > On 12 November 2017 at 19:15, Paul B Mahol wrote: > +movam7, [pb_128] >> +addinq, wq >> +add thresholdq, wq >> +add minq, wq >> +add maxq, wq >> +add outq, wq >> +neg wq >> +.ne

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-11-12 Thread James Almer
On 11/12/2017 4:15 PM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavfilter/threshold.h | 51 +++ > libavfilter/vf_threshold.c | 32 + > libavfilter/x86/Makefile| 2 ++ > libavfilter/x86/vf_threshold.asm

Re: [FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-11-12 Thread Rostislav Pehlivanov
On 12 November 2017 at 19:15, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavfilter/threshold.h | 51 +++ > libavfilter/vf_threshold.c | 32 + > libavfilter/x86/Makefile| 2 ++ > libavfilter/x86/vf_thresho

[FFmpeg-devel] [PATCH] avfilter/vf_threshold: add x86 SIMD

2017-11-12 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/threshold.h | 51 +++ libavfilter/vf_threshold.c | 32 + libavfilter/x86/Makefile| 2 ++ libavfilter/x86/vf_threshold.asm| 69 + libavfilte