Patent ID: 11917191
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 3:
4. A non-transitory computer-readable medium having stored thereon instructions which, when executed by at least one processor, cause the at least one processor to perform operations to generate a bitstream, the bitstream comprising:
information regarding a predetermined integer number n, wherein the information is included in at least one of a sequence parameter set (SPS), a picture parameter set (PPS), and a slice header;
a flag indicating whether a prediction mode of a current prediction unit is a merge mode which uses a motion vector included in merge motion vector candidates; and
an index indicating a motion vector from among n motion vectors included in the merge motion vector candidates,
wherein when the prediction mode of the current prediction unit is determined as the merge mode, the merge motion vector candidates are obtained by using a motion vector of a temporally neighboring prediction unit that is temporally related to the current prediction unit and motion vectors of spatially neighboring prediction units that are spatially related to the current prediction unit,
wherein when a number of motion vectors included in the obtained merge motion vector candidates is smaller than n−1, a plurality of zero vectors are added to the obtained merge motion vector candidates so that the number of motion vectors included in the merge motion vector candidates reaches the predetermined integer number n,
wherein the spatially neighboring prediction units comprise a spatially neighboring prediction unit located at upper side of the current prediction unit and a spatially neighboring prediction unit located on a left side of the current prediction unit.