Embodiments of the present disclosure provide a solution for video processing. A method for video processing is proposed. The method comprises: constructing, during a conversion between a target video block of a video and a bitstream of the video, at least one template in the target video block based on at least one neighbor sample of the target video block that satisfies a predetermined criterion; applying template matching to refine motion information for the target video block based on the at least one determined template, to obtain refined motion information; and performing the conversion based on the refined motion information. Compared with the conventional solution, the proposed method can advantageously improve the coding efficiency and performance.
Full Text
What is claimed is: