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

Claim 8:
9. A non-transitory computer-readable storage medium storing a bitstream generated by a method, the method comprising:
deriving a history-based motion vector prediction (HMVP) buffer for a current block;
deriving merge candidates for configuring a merge candidate list for the current block, wherein the merge candidates includes spatial candidates derived based on spatial candidate blocks and a temporal candidate derived based on a temporal candidate block, wherein an HMVP candidate comprised in the HMVP buffer is inserted as a merge candidate of the merge candidate list, wherein the HMVP candidate is inserted after the temporal candidate in the merge candidate list;
deriving motion information of the current block based on the HMVP candidate in the merge candidate list;
generating prediction samples for the current block based on the motion information;
deriving residual samples based on the prediction samples; and
encoding image information comprising information on the residual samples,
wherein the image information includes information on a merge index indicating the HMVP candidate among the merge candidates comprised in the merge candidate list,
wherein the current block corresponds to a coding unit (CU) which is split from a coding tree unit (CTU),
wherein the HMVP buffer is initialized at a first-ordered CTU per each CTU row of a slice,
wherein the method further comprises determining whether the CTU is a first-ordered CTU in a CTU row of a current slice, and
wherein based on the result of the determining that the CTU is the first-ordered CTU in the CTU row of the current slice, the HMVP buffer is initialized for the CTU.