Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def mask_detail(self, clip, final_width, final_height):
temp = self.scaler.descaler(clip, final_width, final_height)
temp = self.scaler.upscaler(temp, clip.width, clip.height)
mask = core.std.Expr([clip, temp], 'x y - abs dup 0.015 > swap 16 * 0 ?').std.Inflate()
mask = _DefineScaler(kernel="spline36").upscaler(mask, final_width, final_height)
return mask