# US 12,113,965 B2 · Image encoding and decoding method using bidirectional prediction, and image encoding and decoding apparatus

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

- Number: US 12,113,965 B2
- Document ID: US12113965B2
- Status: Granted
- Kind: B2
- Application number: 18/346,704
- Filed: 2023-07-03
- Published: 2023-11-02
- Granted: 2024-10-08
- Earliest claimed: 2018-11-16
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Seungsoo Jeong; Gahyun Ryu; Minsoo Park; Minwoo Park; Kiho Choi; Narae Choi; Woongil Choi; Anish Tamse; Yinji Piao
- Web page: https://patentgrep.com/patent/US12113965B2

## CPC

- 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/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/177: the unit being a group of pictures [GOP]
- H04N 19/463: by compressing encoding parameters before transmission
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed is an image decoding method according to an embodiment, the image decoding method including: obtaining a first reference block and a second reference block, for bi-directional prediction of a current block; obtaining, from a bitstream, weight information for combining the first reference block with the second reference block; performing entropy decoding on the weight information to obtain a weight index; combining the first reference block with the second reference block according to a candidate value indicated by the weight index among candidate values included in a weight candidate group; and reconstructing the current block based on a result of the combining, wherein a first binary value corresponding to the weight index is entropy-decoded based on a context model, and the remaining binary value corresponding to the weight index is entropy-decoded by a bypass method.

## Claims

### Claim 1

An image decoding method using bi-prediction, the image decoding method comprising:
obtaining, from a bitstream, a weight index;
obtaining a first prediction block by using a first reference image, and obtaining a second prediction block by using a second reference image, for bi-prediction of a current block;
obtaining a candidate value indicated by the weight index among candidate values included in a weight candidate group, and a pair value of the candidate value, wherein the candidate value is applied to the first prediction block, and the pair value is applied to the second prediction block;
obtaining a third prediction block by combining the first prediction block to which the candidate value is applied with the second prediction block to which the pair value is applied; and
reconstructing the current block by using the third prediction block,
wherein a first binary value corresponding to the weight index is entropy-decoded based on a context model,
wherein a remaining binary value corresponding to the weight index is entropy-decoded by a bypass method, and
wherein a number of candidate values indicatable by the weight index in the weight candidate group when a picture order count (POC) of the first reference image and a POC of the second reference image are smaller than or equal to a POC of a current image is larger than a number of candidate values indicatable by the weight index in the weight candidate group when the POC of the first reference image and the POC of the second reference image are greater than the POC of the current image.

### Claim 2

An image encoding method using bi-prediction, the image encoding method comprising:
obtaining a first prediction block by using a first reference image, and obtaining a second prediction block by using a second reference image, for bi-prediction of a current block;
selecting a candidate value from among candidate values included in a weight candidate group;
obtaining a pair value of the candidate value, wherein the candidate value is applied to the first prediction block, and the pair value is applied to the second prediction block;
obtaining a third prediction block by combining the first prediction block to which the candidate value is applied with the second prediction block to which the pair value is applied;
performing entropy encoding on a weight index indicating the selected candidate value; and
generating a bitstream including the entropy-encoded weight index,
wherein a first binary value corresponding to the weight index is entropy-encoded based on a context model,
wherein a remaining binary value corresponding to the weight index is entropy-encoded by a bypass method, and
wherein a number of candidate values indicatable by the weight index in the weight candidate group when a picture order count (POC) of the first reference image and a POC of the second reference image are smaller than or equal to a POC of a current image is larger than a number of candidate values indicatable by the weight index in the weight candidate group when the POC of the first reference image and the POC of the second reference image are greater than the POC of the current image.

### Claim 3

A non-transitory computer-readable medium for recording a bitstream, the bitstream comprising:
an entropy-encoded weight index; and
an encoding result of a current block,
wherein the encoding result is obtained by:
obtaining a first prediction block by using a first reference image, and obtaining a second prediction block by using a second reference image, for bi-prediction of the current block;
selecting a candidate value from among candidate values included in a weight candidate group;
obtaining a pair value of the candidate value, wherein the candidate value is applied to the first prediction block, and the pair value is applied to the second prediction block;
obtaining a third prediction block by combining the first prediction block to which the candidate value is applied with the second prediction block to which the pair value is applied; and
encoding the current block by using the third prediction block,
wherein a first binary value corresponding to a weight index indicating the selected candidate value is entropy-encoded based on a context model,
wherein a remaining binary value corresponding to the weight index is entropy-encoded by a bypass method,
wherein a number of candidate values indicatable by the weight index in the weight candidate group when a picture order count (POC) of the first reference image and a POC of the second reference image are smaller than or equal to a POC of a current image is larger than a number of candidate values indicatable by the weight index in the weight candidate group when the POC of the first reference image and the POC of the second reference image are greater than the POC of the current image.
