From 932d64aabf2a6467d4feeb112684184a6136cc42 Mon Sep 17 00:00:00 2001 From: HolyWu Date: Fri, 2 Jun 2017 23:37:27 +0800 Subject: [PATCH] MinBlur: Remove workaround for CTMF in r=2 when input is 16 bits --- havsfunc.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/havsfunc.py b/havsfunc.py index f518310..0ccf1d0 100644 --- a/havsfunc.py +++ b/havsfunc.py @@ -4435,12 +4435,7 @@ def MinBlur(clp, r=1, planes=[0, 1, 2]): RG4 = core.std.Median(clp, planes=planes) elif r == 2: RG11 = core.rgvs.RemoveGrain(clp, M11).std.Convolution(matrix=matrix, planes=planes) - if bits == 16: - s16 = clp - RG4 = core.fmtc.bitdepth(clp, bits=12, planes=planes, dmode=1).ctmf.CTMF(radius=2, planes=planes) - RG4 = mvf.LimitFilter(s16, core.fmtc.bitdepth(RG4, bits=16, planes=planes), thr=1, elast=2, planes=planes) - else: - RG4 = core.ctmf.CTMF(clp, radius=2, planes=planes) + RG4 = core.ctmf.CTMF(clp, radius=2, planes=planes) else: RG11 = core.rgvs.RemoveGrain(clp, M11).std.Convolution(matrix=matrix, planes=planes).std.Convolution(matrix=matrix, planes=planes) if bits == 16: