precalculate correct constants for video framing.