Improves the refinement search for global motion. Change-Id: If6160ebf0f5309a0d7fb648ec5efb0778766cb87