Neural Proxy Functions for Computational Cameras and Displays