# US 2020/0396453 A1 · Interpolation for inter prediction with refinement

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

- Number: US 2020/0396453 A1
- Document ID: US20200396453A1
- Status: Published application
- Kind: A1
- Application number: 17/005,483
- Filed: 2020-08-28
- Published: 2020-12-17
- Earliest claimed: 2018-11-05
- Assignees: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Inventors: Kai ZHANG; Li ZHANG; Hongbin LIU; Yue WANG
- Web page: https://patentgrep.com/patent/US20200396453A1

## 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/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- 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/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- 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/513: Processing of motion vectors
- H04N 19/52: by predictive encoding
- H04N 19/537: Motion estimation other than block-based
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N 19/563: Motion estimation with padding, i.e. with filling of non-object values in an arbitrarily shaped picture block or region for estimation purposes
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Devices, systems and methods for digital video coding, which includes inter prediction with refinement, are described. An exemplary method of video processing includes determining to use, for a conversion between a current block of a video and a bitstream representation of the video, a first linear optimization model for the conversion using a first coding mode, the first linear optimization model being derived from a second linear optimization model that is used for the conversion using a second coding mode, and performing, based on the determining, the conversion. Another exemplary method of video processing includes determining to use, for a conversion between a current block of a video and a bitstream representation of the video, a gradient value computation algorithm for a bi-directional optical flow tool, and performing, based on the determining, the conversion.

## Claims

### Claim 1

A method of coding video data, comprising:
determining that a coding mode using optical flow is enabled for a current video block of a video;
deriving, with a padding operation instead of a first interpolating filtering operation, one or more outer samples of the current video block;
performing, a second interpolation filtering operation for the current video block; and
performing, based on the padding operation and the second interpolation filtering operation, a conversion between the current video block and a bitstream representation of the video.

### Claim 2 (depends on 1)

The method of claim 1, wherein a bi-linear filter is used in the first interpolation filtering operation.

### Claim 3 (depends on 1)

The method of claim 1, wherein only an 8-tap interpolation filter is used in the second interpolation filtering operation for a luma component of the current video block.

### Claim 4 (depends on 1)

The method of claim 1, wherein a size of the current video block is M×N, wherein a first number of samples required by a gradient calculation is (M+G)×(N+G), wherein an interpolation filter used in the second interpolation filtering operation for a luma component of the current video block comprises L taps, wherein a second number of samples required by the second interpolation filtering operation without enabling the coding mode using optical flow is (M+G+L−1)×(N+G+L−1), wherein a third number of samples required by the second interpolation filtering operation with enabling the coding mode using optical flow is (M+k+L−1)×(N+k+L−1), wherein M, N, G, and L are positive integers, and wherein k is an integer less than G.

### Claim 5 (depends on 4)

The method of claim 4, wherein a fourth number of samples that comprise a difference between the second number of samples and the third number of samples are padded in the padding operation.

### Claim 6 (depends on 4)

The method of claim 4, wherein L=8 and G=2.

### Claim 7 (depends on 4)

The method of claim 4, wherein k=0.

### Claim 8 (depends on 4)

The method of claim 4, wherein M is equal to 8 or 16, and N is equal to 8 or 16.

### Claim 9 (depends on 1)

The method of claim 1, wherein the coding mode using optical flow comprises a bi-directional optical flow (BDOF) prediction mode.

### Claim 10 (depends on 1)

The method of claim 1, wherein the conversion includes generating the current video block from the bitstream representation.

### Claim 11 (depends on 1)

The method of claim 1, wherein the conversion includes generating the bitstream representation from the current video block.

### Claim 12

An apparatus for coding video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
determining that a coding mode using optical flow is enabled for a current video block of a video;
deriving, with a padding operation instead of a first interpolating filtering operation, one or more outer samples of the current video block;
performing, a second interpolation filtering operation for the current video block; and
performing, based on the padding operation and the second interpolation filtering operation, a conversion between the current video block and a bitstream representation of the video.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein a bi-linear filter is used in the first interpolation filtering operation.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein only an 8-tap interpolation filter is used in the second interpolation filtering operation for a luma component of the current video block.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein a size of the current video block is M×N, wherein a first number of samples required by a gradient calculation is (M+G)×(N+G), wherein an interpolation filter used in the second interpolation filtering operation for a luma component of the current video block comprises L taps, wherein a second number of samples required by the second interpolation filtering operation without enabling the coding mode using optical flow is (M+G+L−1)×(N+G+L−1), wherein a third number of samples required by the second interpolation filtering operation with enabling the coding mode using optical flow is (M+k+L−1)×(N+k+L−1), wherein M, N, G, and L are positive integers, and wherein k is an integer less than G.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein a fourth number of samples that comprise a difference between the second number of samples and the third number of samples are padded in the padding operation.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein L=8, k=0 and G=2.

### Claim 18 (depends on 12)

The apparatus of claim 12, wherein the coding mode using optical flow comprises a bi-directional optical flow (BDOF) prediction mode.

### Claim 19

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
determining that a coding mode using optical flow is enabled for a current video block of a video;
deriving, with a padding operation instead of a first interpolating filtering operation, one or more outer samples of the current video block;
performing, a second interpolation filtering operation for the current video block; and
performing, based on the padding operation and the second interpolation filtering operation, a conversion between the current video block and a bitstream representation of the video.

### Claim 20

A non-transitory computer-readable recording medium storing a bitstream representation which is generated by a method performed by a video processing apparatus, wherein the method comprises:
determining that a coding mode using optical flow is enabled for a current video block of a video;
deriving, with a padding operation instead of a first interpolating filtering operation, one or more outer samples of the current video block;
performing, a second interpolation filtering operation for the current video block; and
generating the bitstream representation from the current video block based on the padding operation and the second interpolation filtering operation.
