CPC H04N 19/105 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 18 Claims |
1. A coding device, comprising:
one or more processors; and
a non-transitory computer-readable medium in communication with the one or more processors to store program code, which when executed by the one or more processors, causes the coding device to:
for a sample of a block of a picture:
acquire one or more reference sample values from neighboring blocks of the block;
obtain a predicted sample value of the block from the one or more reference sample values by performing intra prediction using a PLANAR intra prediction mode;
multiply the predicted sample value by a sample weighting factor to produce a weighted predicted sample value; and
obtain a modified predicted sample value by performing an arithmetic right shift on a sum of an additional value and the weighted predicted sample value;
wherein the sample weighting factor is ((2<<p)−wL−wT) or (64−wL−wT),
wherein
p is a parameter of the sample weighting factor,
wL is a horizontal weighting factor, and
wT is a vertical weighting factor.
|