Patent ID: 10129544

Abstract:
The a method and system of making a coding mode decision for a given macroblock of a current frame is disclosed. A codec for making the coding mode decision is provided. The codec disclosed herein performs prediction of the motion vectors in inter-frames. The macroblock may be coded in one of six inter modes, such as skip mode, P16×16 mode, P16×8 mode, P8×16 mode, and P8×8 mode or in intra modes such as intra 4×4 mode and intra 16×16 mode. Each block in the inter-frame is predicted from a block of equal size in the reference frame. In each mode, the codec finds a best match, that is, a motion vector for each block size in the reference frame and calculates a corresponding cost. The codec evaluates each mode based on cost and the mode with the least cost is selected as best mode for coding the given macroblock.