lavfi/nlmeans: make compute_safe_ssd_integral_image_c faster