FrameFilter can just be an std::function instead