CPC H04N 19/159 (2014.11) [H04N 19/147 (2014.11); H04N 19/176 (2014.11); H04N 19/70 (2014.11)] | 19 Claims |
1. A method of processing a video, wherein the video comprises a plurality of frames, each frame comprising blocks of samples, the method comprising, for at least a current block:
selecting, during a conversion between the current block of the video and a bitstream of the video, a first template for the current block;
determining a cost of using each of a plurality of candidate intra prediction modes (IPMs) to predict samples in a template region, wherein determining the cost of using each of the plurality of candidate IPMs to predict samples comprises determining one or more lines of template-reference samples neighboring the first template based on the first template;
selecting a derived IPM from the plurality of candidate IPMs based on the cost; and
predicting the samples in the current block with intra-prediction using the derived IPM; and
performing the conversion based on the predicting,
wherein selecting the template is dependent on coded information including at least one of: block size, color format, single or dual tree partitioning, color component, slice type or picture type.
|