Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2017-12-03 18:58:09 +0300
committerMartin Vignali <martin.vignali@gmail.com>2017-12-03 21:17:19 +0300
commit51345cb1d5539027f2faa45b920cf97bbd9d5ff1 (patch)
tree84ca556dfca640bf8bf37e239e4808c2113b722a /libavfilter/x86
parentcfce4427503a1f17cddfcb32b9e414af508061b7 (diff)
avfilter/x86/vf_threshold : make macro for threshold8 in order to add avx2 version
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_threshold.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavfilter/x86/vf_threshold.asm b/libavfilter/x86/vf_threshold.asm
index 9b0bfd8161..38499dcd04 100644
--- a/libavfilter/x86/vf_threshold.asm
+++ b/libavfilter/x86/vf_threshold.asm
@@ -30,7 +30,7 @@ pb_128: times 16 db 128
SECTION .text
-INIT_XMM sse4
+%macro THRESHOLD_8 0
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
@@ -65,5 +65,9 @@ cglobal threshold8, 10, 13, 5, in, threshold, min, max, out, ilinesize, tlinesiz
sub hd, 1
jg .nextrow
RET
+%endmacro
+
+INIT_XMM sse4
+THRESHOLD_8
%endif