1. A device comprising: a spatial estimation module that generates spatial statistics for macroblocks within a video frame; a motion estimation module that generates motion statistics for the macroblocks within the video frame; a motion integration module that integrates the spatial statistics and the motion statistics to determine a global motion vector for the frame; and a stabilization module that applies an offset to an image defined by the macroblocks based on the global motion vector.