core.std.Convolution(clip, [5, 10, 5, 0, 0, 0, -5, -10, -5], divisor=4, saturate=False), core.std.Convolution(clip, [5, 0, -5, 10, 0, -10, 5, 0, -5], divisor=4, saturate=False) ], [ 'x y max {neutral} / 0.86 pow {peak} *'.format( neutral=1 << (clip.format.bits_per_sample - 1), peak=(1 << clip.format.bits_per_sample) - 1) ]) return core.std.MaskedMerge(clip, darken, darken_mask) if __name__ == '__main__': filtered = Filtering().main() brrrr = EncodeGoBrrr(filtered, JPBD, ENCODER, ENC_LOSS, A_EXTRACTER, A_CUTTER, A_ENCODER) brrrr.run() brrrr.cleanup() else: JPBD.clip_cut.text.Text('BD').set_output(0) # lvf.comparison.stack_planes(JPBD.clip_cut).set_output(1) # WEB_AOD.clip_cut.text.Text('AoD').set_output(1) # WEB_CRU.clip_cut.text.Text('CR').set_output(2) FILTERED = Filtering().main() # FILTERED.text.Text('Filtering').set_output(3) FILTERED[0].set_output(1) FILTERED[1].set_output(2) # FILTERED[2].set_output(3)