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

Claim 18:
19. A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:
selecting a first template for a current block of the video;
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;
predicting the samples in the current block with intra-prediction using the derived IPM; and
generating the bitstream 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.