Patent ID: 8213511

Claim:
A method of video encoding comprising the steps of: estimating motion vectors between consecutive frames in a video; determining a number of macroblocks N which can be stored in a temporary buffer dependent upon said estimated motion vectors; transferring N macroblocks from a frame buffer storing a latest video frame to said temporary buffer; transferring N macroblocks from a reference buffer storing a prior video frame corresponding to said N macroblocks from said frame buffer in said temporary buffer; determining for each macroblock of the N macroblocks in the latest video frame stored in said temporary buffer whether to be inter frame predicted or intra frame predicted; inter frame prediction encoding all macroblocks determined to be inter frame predicted of said N macroblocks stored in said temporary buffer sequentially and storing said inter frame prediction encoded macroblocks in an output buffer; intra frame prediction encoding all macroblocks determined to be intra frame predicted of said N macroblocks stored in said temporary buffer sequentially and separately from encoding said inter frame prediction encoded macroblocks, and storing said intra frame prediction encoded macroblocks in said output buffer; and outputting said inter and intra frame prediction encoded macroblocks from said output buffer in raster scan order.