| CPC H04N 19/11 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11)] | 20 Claims |

|
1. A method comprising:
determining, by a computing device, a plurality of costs associated with a plurality of matrix-based intra prediction (MIP) modes, wherein each cost, of the plurality of costs, is based on:
a prediction, using each MIP mode, of a first template based on first reference samples, wherein the first reference samples start at a first location that is aligned with a location of a top-leftmost sample of the first template; and
a prediction, using each MIP mode, of a second template based on second reference samples, wherein the second reference samples start at a second location that is aligned with a location of a top-leftmost sample of the second template;
selecting, based on the plurality of costs, an MIP mode of the plurality of MIP modes; and
generating, based on the selected MIP mode, a prediction of a block.
|