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

Claim 0:
1. A method of processing video signals based on history based motion vector prediction, comprising:
configuring a merge candidate list based on a neighboring block to a current block, the merge candidate list including spatial merge candidates and a temporal merge candidate, the spatial merge candidates selected among a left neighboring block (A1), a bottom-left neighboring block (A0), a top-right neighboring block (B0), a top neighboring block (B1), and a top-left neighboring block (B2);
adding one or more history based merge candidates of the current block from a history based motion vector predictor candidate list to the merge candidate list based on that a number of merge candidates included in the merge candidate list is smaller than a first predetermined number;
adding a zero motion vector to the merge candidate list based on that the number of merge candidates included in the merge candidate list is smaller than a second predetermined number;
obtaining a merge index indicating a merge candidate used for inter prediction of the current block in the merge candidate list;
generating a prediction sample of the current block based on motion information of the merge candidate indicated by the merge index; and
updating the history based motion vector predictor candidate list based on the motion information,
wherein the step of adding the one or more history based merge candidates of the current block to the merge candidate comprises:
determining whether a specific spatial merge candidate included in the merge candidate list and at least one of a predetermined number of history based merge candidates included in the history based motion vector predictor candidate list have same motion information; and
adding the at least one of the history based merge candidates to the merge candidate list when it is determined that the specific spatial merge candidate and the at least one of the predetermined number of history based merge candidates have different motion information, and
wherein the specific spatial merge candidate is only a spatial candidate corresponding to the left neighboring block (A1) or the top neighboring block (B1), and the predetermined number is 2.