General filter implementation for Clip