摘要 |
A method and apparatus are used for intra prediction of video data. The method includes performing intra prediction on a current macroblock in a plurality of KxL intra prediction modes using original pixel values of a plurality of previous macroblocks that are adjacent to the current macroblock. The KxL intra prediction mode having a relatively low intra prediction error among the plurality of KxL intra prediction modes is determined, Intra prediction is performed on the current macroblock in a plurality of MxN intra prediction modes using the original pixel values of the plurality of previous macroblocks. The MxN intra prediction mode having a relatively low intra prediction error among the plurality of MxN intra prediction modes is determined. One of the determined KxL intra prediction mode and the determined MxN intra prediction mode which has the smaller intra prediction error is used as an optimum intra prediction mode for the current macroblock. |