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

|
1. A method comprising:
encoding a block of a picture of a video in intra prediction mode using linear weighted prediction,
wherein the encoding comprises:
determining a set of n neighboring reference samples x;
selecting at least a first weight matrix G of size m×r, a second weight matrix HT of size r×n, and an associated bias vector b among a set of weight matrices and associated bias vectors based on a mode of linear weighted intra prediction and a block shape, the first weight matrix G having a size m×r and the second weight matrix HT having a size r×n, where m, n, r are integers with r smaller than m and r smaller than n; and
obtaining intra predicted samples ŷ of the block from a first product of matrices HTx, a second product of matrices G(HTx), and adding associated bias b resulting in ŷ=G(HTx)+b.
|