CPC H04N 19/593 (2014.11) [H04N 19/119 (2014.11); H04N 19/126 (2014.11); H04N 19/176 (2014.11)] | 8 Claims |
1. A method of generating a prediction sample value for a current sample in a video block according to a planar prediction, the method comprising:
calculating a vertical interpolation value by multiplying a sum of a first value and a second value by a width of the video block, wherein the first value is a value of a reconstructed sample located in an adjacent above row to the video block and having a same horizontal position as the current sample weighted by a distance of the current value from a bottom row of the video block, and wherein the second value is a value of a reconstructed sample located in an adjacent left column to the video block and having a vertical position at a height of the video block weighted by a distance of the current sample from the adjacent above row to the video block;
calculating a horizontal interpolation value by multiplying a sum of a third value and a fourth value by the height of the video block, wherein the third value is a value of a reconstructed sample located in the adjacent left column to the video block and having a same vertical position as the current sample weighted by a distance of the current sample from a rightmost column of the video block, and wherein the fourth value is a value of a reconstructed sample located in the adjacent above row to the video block and having a horizontal position at the width of the video block weighted by a distance of the current sample from the adjacent left column to the video block; and
generating the prediction sample value based on a sum of the vertical interpolation value and the horizontal interpolation value.
|