Patent ID: 11902537
Assignee: LEMON INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 17:
18. A non-transitory computer-readable storage medium storing instructions that cause a processor to:
select, during a conversion between a current block of a video and a bitstream of the video, a first template for the current block;
determine 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;
select a derived IPM from the plurality of candidate IPMs based on the cost;
predict the samples in the current block with intra-prediction using the derived IPM; and
perform the conversion based on the predicted samples,
wherein the instructions to select the template are 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.