Patent ID: 11876999
Assignee: KT CORPORATION
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A method for decoding a video, the method comprising:
obtaining a first motion vector of a current coding unit, the first motion vector being obtained by adding a first motion vector difference value and a first motion vector prediction value;
obtaining a second motion vector of the current coding unit, the second motion vector being obtained by adding a second motion vector difference value and a second motion vector prediction value;
generating a first prediction block for the current coding unit by using the first motion vector and a first reference picture of the current coding unit;
generating a second prediction block for the current coding unit by using the second motion vector and a second reference picture of the current coding unit;
determining a first weight and a second weight, one of the first weight and the second weight being specified by index information, specifying one among a plurality of weight prediction parameter candidates, parsed from a bitstream; and
generating a final prediction block of the current coding unit by applying the first weight to the first prediction block and the second weight to the second prediction block,
wherein the index information specifies one among a plurality of weighted prediction parameter candidates,
wherein maximum bit-length of the index information is determined based on a temporal direction of the first reference picture and the second reference picture,
wherein the index information is binarized with a truncated unary binarization, and wherein the maximum bit-length of the index information is different between when both the first reference picture and the second reference picture are previous or subsequent reference pictures and when one of the first reference picture and the second reference picture is a previous reference picture and the other of the first reference picture and the second reference picture is a subsequent reference picture, the previous reference picture representing a reference picture whose a picture order count is less than a picture order count of a current picture and the subsequent reference picture representing a reference picture whose a picture order count is greater than the picture order count of the current picture.