Patent ID: 11936899
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:
determining, during a conversion between a current video block of a video and a bitstream of the video, at least one set of motion candidates for the current video block, each motion candidate comprising predicted motion information determined from neighboring video blocks of the current video block;
determining, based on a template of the current video block and from the at least one set of motion candidates, a target motion candidate for the current video block by using a template matching cost rule; and
performing the conversion based on the target motion candidate,
wherein a number of advanced motion vector prediction (AMVP) candidates in an AMVP mode candidate list is set based on whether template matched decoder side motion vector derivation is applied:
in response to template matched decoder side motion vector derivation being applied in a motion vector prediction mode, the number of AMVP candidates in the AMVP mode candidate list is set to be a first number; and
in response to template matched decoder side motion vector derivation being not applied in the motion vector prediction mode, the number of AMVP candidates in the AMVP mode candidate list is set to be a second number different from the first number.