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

Claim 16:
17. An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
select, during a conversion between a current block of the 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; and
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 upon execution by the processor, cause the processor to select the template 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.