code to do halfpel interpolation per frame (unfinished and under ifdef but it