Patent ID: 8279920

Claim:
An intra-frame prediction apparatus, comprising: an input data unit, providing a part of or the whole of surrounding pixels of a predicted block; a control unit, providing an input selection signal, a computing signal, and an output selection signal; a selection unit, coupled to the input data unit and the control unit, selecting the surrounding pixels according to the input selection signal; a processing unit, coupled to the selection unit, computing the surrounding pixels selected by the selection unit according to the computing signal and producing a plurality of computing results; and an output data unit, coupled to the processing unit and the control unit, selecting a part of or the whole of the computing results according to the output selection signal; wherein the processing unit comprises a plurality of first operation units; one of the first operation units computes the following equation according to the computing signal for acquiring a computing result Tn: Tn =( Src 0 +Src 1 <<C+Src 2 +R )>> S, wherein S is the computing signal, Src 0 , Src 1 , and Src 2 are the surrounding pixels selected by the selection unit, “Src 1 <<C” represents left shift the pixel Src 1 by C digits, “(Src 0 + . . . +R)>>S” represents right shift “(Src 0 + . . . +R)” by S digits, R is S or 0, and C=R>>1.