# US 2023/0054332 A1 · Method and apparatus for decoding video, and method and apparatus for encoding video

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0054332 A1
- Document ID: US20230054332A1
- Status: Published application
- Kind: A1
- Application number: 17/981,582
- Filed: 2022-11-07
- Published: 2023-02-23
- Earliest claimed: 2018-12-21
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Anish TAMSE; Minwoo PARK; Minsoo PARK
- Web page: https://patentgrep.com/patent/US20230054332A1

## CPC

- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/52: by predictive encoding
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/107: between spatial and temporal predictive coding, e.g. picture refresh
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/40: using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
- H04N 19/513: Processing of motion vectors
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Provided are a video decoding method and apparatus for, in a video encoding and decoding procedure, when a merge candidate list of a current block is configured, determining whether the number of merge candidates included in the merge candidate list is greater than 1 and is smaller than a predetermined maximum merge candidate number, when the number of the merge candidates included in the merge candidate list is greater than 1 and is smaller than the predetermined maximum merge candidate number, determining an additional merge candidate by using a first merge candidate and a second merge candidate of the merge candidate list of the current block, configuring the merge candidate list by adding the determined additional merge candidate to the merge candidate list, and performing prediction on the current block, based on the merge candidate list.

## Claims

### Claim 1

A video decoding method comprising:
configuring a plurality of merge candidates for a current block including a first merge candidate and a second merge candidate;
when both the first merge candidate and the second merge candidate correspond to a reference picture list L0, determining a motion vector of an additional merge candidate using an average value of a first motion vector of the first merge candidate and a second motion vector of the second merge candidate without using any merge candidate other than the first merge candidate and the second merge candidate; and
reconstructing the current block using a motion vector of a merge candidate in a merge candidate list including the plurality of merge candidates and the additional merge candidate,
wherein the first merge candidate is a merge candidate at a first position in the merge candidate list and the second merge candidate is a merge candidate at a second position in the merge candidate list, and
wherein a number of merge candidates in the merge candidate list including the plurality of merge candidates and the additional merge candidate is less than a fixed number, a candidate corresponding to a zero motion vector is added to the merge candidate list.

### Claim 2

A video encoding method comprising:
configuring a plurality of merge candidates for a current block including a first merge candidate and a second merge candidate;
when both the first merge candidate and the second merge candidate correspond to a reference picture list L0, determining a motion vector of an additional merge candidate using an average value of a first motion vector of the first merge candidate and a second motion vector of the second merge candidate without using any merge candidate other than the first merge candidate and the second merge candidate; and
encoding a residual block indicating a difference between an original block of the current block and a prediction block of the current block using a motion vector of a merge candidate in a merge candidate list including the plurality of merge candidates and the additional merge candidate,
wherein the first merge candidate is a merge candidate at a first position in the merge candidate list and the second merge candidate is a merge candidate at a second position in the merge candidate list, and
wherein a number of merge candidates in the merge candidate list including the plurality of merge candidates and the additional merge candidate is less than a fixed number, a candidate corresponding to a zero motion vector is added to the merge candidate list.

### Claim 3

A non-transitory computer-readable medium for recording a bitstream, the bitstream comprising:
a residual block indicating a difference between an original block of a current block and a prediction block of the current block,
wherein, the residual block is obtained by:
configuring a plurality of merge candidates for the current block including a first merge candidate and a second merge candidate;
when both the first merge candidate and the second merge candidate correspond to a reference picture list L0, determining a motion vector of an additional merge candidate using an average value of a first motion vector of the first merge candidate and a second motion vector of the second merge candidate without using any merge candidate other than the first merge candidate and the second merge candidate; and
encoding the residual block using a motion vector of a merge candidate in a merge candidate list including the plurality of merge candidates and the additional merge candidate,
wherein the first merge candidate is a merge candidate at a first position in the merge candidate list and the second merge candidate is a merge candidate at a second position in the merge candidate list, and
wherein a number of merge candidates in the merge candidate list including the plurality of merge candidates and the additional merge candidate is less than a fixed number, a candidate corresponding to a zero motion vector is added to the merge candidate list.
