svq3: rip out the svq3-relevant parts of pred_motion() out of h264