| CPC H04N 19/119 (2014.11) [H04N 19/176 (2014.11); H04N 19/50 (2014.11); H04N 19/105 (2014.11); H04N 19/11 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11)] | 14 Claims |

|
10. A decoder, comprising:
one or more processors; and
a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, wherein the programming, when executed by the processors, configures the decoder to carry out operations of:
obtaining a value of an angle parameter for a current block, a value of a distance index, a value of a width of the current block, a value of a height of the current block, a first value according to the value of the angle parameter, and a comparison value between the value of the width of the current block and the value of the height of the current block, wherein the first value represents a linearly scaled distance step size;
calculating a sample distance value for a sample in the current block according to the first value, the value of the angle parameter, the value of the distance index, the value of the width of the current block, and the value of the height of the current block;
obtaining a prediction value for the sample in the current block according to the sample distance value; and
obtaining an offsetX value and an offsetY value based on the first value, wherein the sample distance value is obtained based on the offsetX and offsetY values.
|