QSV: framerate sanitize and testing code.
Minor cleanup.
QSV: more cleanup.
QSV: fix tuspid bug.
QSV: major cleanup pt1
Almost final.
OK that's it.