Factor out resolution/fps specific functions and handle the format change callback