Refactor global motion functions out of encodeframe Change-Id: I76dd7365454206229e86cf5d942e89cff4a4a519