diff --git a/TDeintMod/TDeintMod_AVX2.cpp b/TDeintMod/TDeintMod_AVX2.cpp index 86137d9..b29f8f6 100644 --- a/TDeintMod/TDeintMod_AVX2.cpp +++ b/TDeintMod/TDeintMod_AVX2.cpp @@ -271,7 +271,7 @@ void combineMasks_avx2(const VSFrameRef * src, VSFrameRef * dst, const int plane const T2 count = T2().load(srcpp0 + x - 1) + T2().load_a(srcpp0 + x) + T2().load(srcpp0 + x + 1) + T2().load(srcp0 + x - 1) + T2().load(srcp0 + x + 1) + T2().load(srcpn0 + x - 1) + T2().load_a(srcpn0 + x) + T2().load(srcpn0 + x + 1); - select(T2().load_a(srcp0 + x) == zero_256b() && T2().load_a(srcp1 + x) != zero_256b() && count >= d->cstr, peak, T2().load_a(dstp + x)).stream(dstp + x); + select(T2().load_a(srcp0 + x) == T2(zero_256b()) && T2().load_a(srcp1 + x) != T2(zero_256b()) && count >= d->cstr, peak, T2().load_a(dstp + x)).stream(dstp + x); } srcpp0 = srcp0; diff --git a/TDeintMod/TDeintMod_SSE2.cpp b/TDeintMod/TDeintMod_SSE2.cpp index da34422..d3ce1c2 100644 --- a/TDeintMod/TDeintMod_SSE2.cpp +++ b/TDeintMod/TDeintMod_SSE2.cpp @@ -267,7 +267,7 @@ void combineMasks_sse2(const VSFrameRef * src, VSFrameRef * dst, const int plane const T2 count = T2().load(srcpp0 + x - 1) + T2().load_a(srcpp0 + x) + T2().load(srcpp0 + x + 1) + T2().load(srcp0 + x - 1) + T2().load(srcp0 + x + 1) + T2().load(srcpn0 + x - 1) + T2().load_a(srcpn0 + x) + T2().load(srcpn0 + x + 1); - select(T2().load_a(srcp0 + x) == zero_128b() && T2().load_a(srcp1 + x) != zero_128b() && count >= d->cstr, peak, T2().load_a(dstp + x)).stream(dstp + x); + select(T2().load_a(srcp0 + x) == T2(zero_128b()) && T2().load_a(srcp1 + x) != T2(zero_128b()) && count >= d->cstr, peak, T2().load_a(dstp + x)).stream(dstp + x); } srcpp0 = srcp0;