# US 2022/0279165 A1 · Method and device for subpicture-based image encoding/decoding, and method for transmitting bitstream

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

- Number: US 2022/0279165 A1
- Document ID: US20220279165A1
- Status: Published application
- Kind: A1
- Application number: 17/703,291
- Filed: 2022-03-24
- Published: 2022-09-01
- Earliest claimed: 2019-09-24
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Hyeong Moon JANG
- Web page: https://patentgrep.com/patent/US20220279165A1

## 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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- 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/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image encoding/decoding method and apparatus are provided. An image decoding method according to the present disclosure is performed by an image decoding apparatus. The image decoding method comprises determining whether bi-directional optical flow (BDOF) or prediction refinement with optical flow (PROF) applies to a current block, based on BDOF or PROF applying to the current block, fetching a prediction sample of the current block from a reference picture of the current block based on motion information of the current block, and deriving a refined prediction sample for the current block, by applying BDOF or PROF to the current block based on the fetched prediction sample.

## Claims

### Claim 1

An image decoding method performed by an image decoding apparatus, the image decoding method comprising:
determining whether bi-directional optical flow (BDOF) or prediction refinement with optical flow (PROF) is applied to a current block;
based on BDOF or PROF being applied to the current block, generating a prediction sample of the current block from a reference picture of the current block based on motion information of the current block; and
deriving a refined prediction sample for the current block, by applying BDOF or PROF to the current block based on the generated prediction sample.

### Claim 2 (depends on 1)

The image decoding method of claim 1, wherein the generating the prediction sample of the current block is performed based on whether a current subpicture including the current block is treated as a picture.

### Claim 3 (depends on 2)

The image decoding method of claim 2, wherein whether the current subpicture is treated as the picture is determined based on flag information signaled through a bitstream.

### Claim 4 (depends on 3)

The image decoding method of claim 3, wherein the flag information is signaled through a sequence parameter set (SPS).

### Claim 5 (depends on 2)

The image decoding method of claim 2,
wherein the generating the prediction sample of the current block is performed based on a position inside the reference picture for generating the prediction sample, and
wherein the position inside the reference picture is clipped in a predetermined range.

### Claim 6 (depends on 5)

The image decoding method of claim 5, wherein, based on the current subpicture being treated as the picture, the predetermined range is specified by a boundary position of the current subpicture.

### Claim 7 (depends on 6)

The image decoding method of claim 6,
wherein the position inside the reference picture comprises an x-coordinate and a y-coordinate,
wherein the x-coordinate is clipped in a range of a left boundary position and right boundary position of the current subpicture, and
wherein the y-coordinate is clipped in a range of a top boundary position and bottom boundary position of the current subpicture.

### Claim 8 (depends on 7)

The image decoding method of claim 7,
wherein the left boundary position of the current subblock is derived as a product of position information of a predetermined unit specifying a left position of the current subpicture and a width of the predetermined unit,
wherein the right boundary position of the current subpicture is derived by performing “−1” operation on a product of position information of a predetermined unit specifying a right position of the current subpicture and a width of the predetermined unit,
wherein the top boundary position of the current subpicture is derived as a product of position information of a predetermined unit specifying a top position of the current subpicture and a height of the predetermined unit, and
wherein the bottom boundary position of the current subpicture is derived by performing “−1” operation on a product of position information of a predetermined unit specifying a bottom position of the current subpicture and a height of the predetermined unit.

### Claim 9 (depends on 8)

The image decoding method of claim 8, wherein the predetermined unit is a grid or a CTU.

### Claim 10 (depends on 5)

The image decoding method of claim 5, wherein, based on the current subpicture being not treated as the picture, the predetermined range is a range of a current picture including the current block.

### Claim 11

An image encoding method performed by an image encoding apparatus, the image encoding method comprising:
determining whether bi-directional optical flow (BDOF) or prediction refinement with optical flow (PROF) is applied to a current block;
based on BDOF or PROF being applied to the current block, generating a prediction sample of the current block from a reference picture of the current block based on motion information of the current block; and
deriving a refined prediction sample for the current block, by applying BDOF or PROF to the current block based on the generated prediction sample.

### Claim 12 (depends on 11)

The image encoding method of claim 11, wherein the generating the prediction sample of the current block is performed based on whether a current subpicture including the current block is treated as a picture.

### Claim 13 (depends on 11)

A method of transmitting a bitstream generated by the image encoding method of claim 11.
