| CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 17 Claims |

|
1. A method comprising:
obtaining a predicted value Ppred(x,y) for a sample of a block of an image, the predicted value being intra predicted according to a value representative of an intra prediction angle; and
determining a sample value P(x,y), such that:
for an intra prediction angle corresponding to a vertical direction: P(x,y)=Ppred(x,y)+((((Pleft−Ppred(x,y))<<log 2(wL))+32)>>6), and
for an intra prediction angle corresponding to a horizontal direction: P(x,y)=Ppred(x,y)+((((Ptop−Ppred(x,y))<<log 2(wT))+32)>>6),
where, Pleft is determined based on the value of a left reference sample, Ptop is determined based on the value of a top reference sample, and wL and wT are weightings.
|