Patent ID: 8238429

Claim:
A method for motion compensation of compressed video comprising the steps of for each macroblock in a video frame: updating the coordinates of a bounding box encompassing a plurality of macroblocks assuming the current macroblock is to be included in the current bounding box; calculating the area of the current bounding box as expanded to encompass the current macroblock; determining if the area of the current bounding box exceeds a maximum bounding box area; if the area of the current bounding box exceeds a maximum bounding box area, closing the current bounding box with dimensions before said updating coordinates and opening a new bounding box encompassing the current macroblock; calculating a bounding box memory utilization by a ratio of motion compensation data to bounding box data; if the bounding box memory utilization is less than a predetermined memory utilization threshold, closing the current bounding box with dimensions before said updating coordinates and opening a new bounding box encompassing the current macroblock; and upon consideration of a plurality of macroblocks for a portion of a video frame, transferring motion compensation data for the plurality of macroblocks via direct memory access data transfer of the bounding boxes.