avfilter/vf_chromanr: move thres calculation to filter_frame()