CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 14 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, wherein the intra prediction angle is a diagonal top right to bottom left direction corresponding to a first prediction mode or a diagonal bottom left to top right direction corresponding to a second prediction mode; and
determining a sample value P(x,y), such that:
for the first prediction mode: P(x,y)=Ppred(x,y)+((((Pleft−Ppred(x,y))<<log 2(wL))+32)>>6), and
for the second prediction mode: P(x,y)=Ppred(x,y)+((((Ptop−Ppred(x,y))<<log 2(wT))+32)>>6),
where, Pleft is determined based on a value of a left reference sample, Ptop is determined based on the value of a top reference sample, and wL and wT are weightings.
|