# US 2021/0281852 A1 · Video decoding method and device therefor, and video encoding method and device therefor

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

- Number: US 2021/0281852 A1
- Document ID: US20210281852A1
- Status: Published application
- Kind: A1
- Application number: 16/317,910
- Filed: 2017-07-14
- Published: 2021-09-09
- Earliest claimed: 2017-07-14
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Elena ALSHINA; Alexandria ALSHIN
- Web page: https://patentgrep.com/patent/US20210281852A1

## CPC

- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- 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/176: the region being a block, e.g. a macroblock
- 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

Provided is a video decoding method including: obtaining a first motion vector indicating a first reference block of a current block in a first reference picture and a second motion vector indicating a second reference block of the current block in a second reference picture; obtaining a parameter related to pixel group unit motion compensation of the current block, based on at least one of information of the parameter related to the pixel group unit motion compensation and a parameter related to an image including the current picture; generating a prediction block by performing, with respect to the current block, block unit motion compensation based on the first motion vector and the second motion vector and performing the pixel group unit motion compensation based on the parameter related to the pixel group unit motion compensation; and reconstructing the current block. Here, a pixel group may include at least one pixel.

## Claims

### Claim 1

A video decoding method comprising:
obtaining, from a bitstream, motion prediction mode information regarding a current block in a current picture;
when the obtained motion prediction mode information indicates a bi-directional motion prediction mode, obtaining, from the bitstream, a first motion vector and a second motion vector, wherein the first motion vector indicates a first reference block of the current block in a first reference picture, and the second motion vector indicates a second reference block of the current block in a second reference picture;
obtaining a parameter related to pixel group unit motion compensation of the current block, based on at least one of information of the parameter related to the pixel group unit motion compensation obtained from the bitstream and a parameter related to an image including the current picture;
generating a prediction block of the current block by performing, with respect to the current block, block unit motion compensation based on the first motion vector and the second motion vector and performing the pixel group unit motion compensation based on the parameter related to the pixel group unit motion compensation;
obtaining a residual block of the current block from the bitstream; and
reconstructing the current block based on the prediction block and the residual block,
wherein a pixel group comprises at least one pixel.

### Claim 2 (depends on 1)

The video decoding method of claim 1, further comprising determining whether to perform the pixel group unit motion compensation based on at least one of flag information which is obtained from the bitstream and is about whether to perform the pixel group unit motion compensation, a size of the current block, a prediction direction, a size of a motion vector, a picture order count (POC) difference between the reference picture and the current picture, and availability of a predetermined coding/decoding tool,
wherein the generating of the prediction block comprises generating the prediction block of the current block by performing the pixel group unit motion compensation based on the determining.

### Claim 3 (depends on 1)

The video decoding method of claim 1, wherein the obtaining of the parameter related to the pixel group unit motion compensation comprises obtaining a shift value for de-scaling after an interpolation operation or a gradient operation, based on at least one of a bit depth of a sample, an input range of a filter used for the interpolation operation or the gradient operation, and a coefficient of the filter, and
the generating of the prediction block of the current block comprises performing the de-scaling after the interpolation operation or the gradient operation with respect to a pixel included in the first reference block and the second reference block by using the shift value for de-scaling.

### Claim 4 (depends on 1)

The video decoding method of claim 1, wherein the obtaining of the parameter related to the pixel group unit motion compensation comprises obtaining a regularization parameter related to a displacement vector per unit time in a horizontal or vertical direction, based on at least one of information which is obtained from the bitstream and is about a parameter related to the displacement vector per unit time in the horizontal or vertical direction, a bit depth of a sample, a size of a group of picture (GOP), a motion vector, a parameter related to a temporal distance between a reference picture and the current picture, a frame rate, a setting parameter related to an encoding prediction structure, and a prediction direction, and
the generating of the prediction block of the current block comprises determining, based on the regularization parameter related to the displacement vector per unit time in the horizontal or vertical direction, the displacement vector per unit time in the horizontal or vertical direction by using a gradient value of pixels in a first window having a certain size and including a first pixel group included in the first reference block, a gradient value of pixels in a second window having a certain size and including a second pixel group included in the second reference block, pixel values of the pixels in the first window, and pixel values of the pixels in the second window.

### Claim 5 (depends on 1)

The video decoding method of claim 1, wherein the obtaining of the parameter related to the pixel group unit motion compensation comprises:
obtaining a parameter related to a size of a window used to calculate a displacement vector per unit time, based on at least one of information about a window size obtained from the bitstream, a hierarchy depth of a picture, a size of a GOP, an image resolution, a parameter related to a temporal distance between a reference picture and the current picture, a frame rate, a motion vector, a setting parameter related to an encoding prediction structure, and a prediction direction, and
the generating of the prediction block of the current block comprises determining, based on the parameter related to the size of the window, a displacement vector per unit time in a horizontal or vertical direction by using a gradient value of pixels in a first window having a certain size and including a first pixel group included in the first reference block, a gradient value of pixels in a second window having a certain size and including a second pixel group included in the second reference block, pixel values of the pixels in the first window, and pixel values of the pixels in the second window.

### Claim 6 (depends on 1)

The video decoding method of claim 1, wherein the pixel group comprises a plurality of pixels,
the obtaining of the parameter related to the pixel group unit motion compensation comprises obtaining a parameter related to a size of the pixel group based on at least one of information about the size of the pixel group obtained from the bitstream, an image resolution, and a frame rate, and
the generating of the prediction block of the current block comprises generating the prediction block of the current block by performing the block unit motion compensation based on the first motion vector and the second motion vector and performing the pixel group unit motion compensation based on the parameter related to the size of the pixel group.

### Claim 7

A video decoding apparatus comprising:
an obtainer configured to obtain, from a bitstream, motion prediction mode information regarding a current block in a current picture, and when the obtained motion prediction mode information indicates a bi-directional motion prediction mode, obtain, from the bitstream, a first motion vector indicating a first reference block of the current block in a first reference picture and a second motion vector indicating a second reference block of the current block in a second reference picture, obtain a parameter related to pixel group unit motion compensation of the current block, based on at least one of information of the parameter related to the pixel group unit motion compensation, the information being obtained from the bitstream, and a parameter related to an image including the current picture, and obtain a residual block of the current block from the bitstream;
an inter predictor configured to generate a prediction block of the current block by performing, with respect to the current block, block unit motion compensation based on the first motion vector and the second motion vector and the pixel group unit motion compensation based on the parameter related to the pixel group unit motion compensation; and
a decoder configured to reconstruct the current block based on the prediction block and the residual block,
wherein a pixel group comprises at least one pixel.

### Claim 8 (depends on 7)

The video decoding apparatus of claim 7, wherein the inter predictor is further configured to determine whether to perform the pixel group unit motion compensation based on at least one of flag information which is obtained from the bitstream and is about whether to perform the pixel group unit motion compensation, a size of the current block, a prediction direction, a size of a motion vector, a picture order count (POC) difference between the reference picture and the current picture, and availability of a predetermined coding/decoding tool, and generate the prediction block of the current block by performing the pixel group unit motion compensation based on the determining.

### Claim 9 (depends on 7)

The video decoding apparatus of claim 7, wherein the inter predictor is further configured to obtain a shift value for de-scaling after an interpolation operation or a gradient operation, based on at least one of a bit depth of a sample, an input range of a filter used for the interpolation operation or the gradient operation, and a coefficient of the filter, and perform the de-scaling after the interpolation operation or the gradient operation with respect to a pixel included in the first reference block and the second reference block by using the shift value for de-scaling.

### Claim 10 (depends on 7)

The video decoding apparatus of claim 7, wherein the inter predictor is further configured to obtain a regularization parameter related to a displacement vector per unit time in a horizontal or vertical direction, based on at least one of information which is obtained from the bitstream and is about a parameter related to the displacement vector per unit time in the horizontal or vertical direction, a bit depth of a sample, a size of a group of pictures (GOP), a motion vector, a parameter related to a temporal distance between a reference picture and the current picture, a frame rate, a setting parameter related to an encoding prediction structure, and a prediction direction, and determine, based on the regularization parameter related to the displacement vector per unit time in the horizontal or vertical direction, the displacement vector per unit time in the horizontal or vertical direction by using a gradient value of pixels in a first window having a certain size and including a first pixel group included in the first reference block, a gradient value of pixels in a second window having a certain size and including a second pixel group included in the second reference block, pixel values of the pixels in the first window, and pixel values of the pixels in the second window.

### Claim 11 (depends on 7)

The video decoding apparatus of claim 7, wherein the obtainer is further configured to obtain a parameter related to a size of a window used to calculate a displacement vector per unit time, based on at least one of information about a window size and obtained from the bitstream, a hierarchy depth of a picture, a size of a GOP, an image resolution, a parameter related to a temporal distance between a reference picture and the current picture, a frame rate, a motion vector, a setting parameter related to an encoding prediction structure, and a prediction direction, and
the inter predictor is further configured to determine, based on the parameter related to the size of the window, a displacement vector per unit time in a horizontal or vertical direction by using a gradient value of pixels in a first window having a certain size and including a first pixel group included in the first reference block, a gradient value of pixels in a second window having a certain size and including a second pixel group included in the second reference block, pixel values of the pixels in the first window, and pixel values of the pixels in the second window.

### Claim 12 (depends on 7)

The video decoding apparatus of claim 7, wherein the pixel group comprises a plurality pixels, and
the inter predictor is further configured to obtain a parameter related to a size of the pixel group based on at least one of information about the size of the pixel group and obtained from the bitstream, an image resolution, and a frame rate, and generate the prediction block of the current block by performing the block unit motion compensation based on the first motion vector and the second motion vector and performing the pixel group unit motion compensation based on the parameter related to the size of the pixel group.

### Claim 13

A video encoding method comprising:
obtaining a prediction block of a current block, a first motion vector, a second motion vector, and a parameter related to pixel group unit motion compensation by performing block unit motion compensation and the pixel group unit motion compensation on the current block; and
generating a bitstream comprising information related to the first motion vector and the second motion vector and motion prediction mode information indicating that a motion prediction mode regarding the current block is a bi-directional motion prediction mode,
wherein a pixel group comprises at least one pixel,
the first motion vector is a motion vector indicating a first reference block of a first reference picture corresponding to the current block in a current picture from the current block,
the second motion vector is a motion vector indicating a second reference block of a second reference picture corresponding to the current block in a current picture from the current block, and
a parameter related to the pixel group unit motion compensation of the current block is obtained from a parameter related to an image including the current picture while the pixel group unit motion compensation is performed on the current block or
the parameter related to the pixel group unit motion compensation of the current block is determined while the pixel group unit motion compensation is performed on the current block and information about the determined parameter related to the pixel group unit motion compensation is included in the bitstream.

### Claim 14

(canceled)

### Claim 15 (depends on 1)

A computer-readable recording medium having recorded thereon a program which performs the video decoding method of claim 1.
