Add a static function to return the frame size for a given format
Change the standard resolution definition and add code to guess the resolution from the filesize