# US 2020/0288157 A1 · Method and apparatus for video coding

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

- Number: US 2020/0288157 A1
- Document ID: US20200288157A1
- Status: Published application
- Kind: A1
- Application number: 16/809,189
- Filed: 2020-03-04
- Published: 2020-09-10
- Earliest claimed: 2019-03-08
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Xiang LI; Guichun Li; Xiaozhong Xu; Shan Liu
- Web page: https://patentgrep.com/patent/US20200288157A1

## CPC

- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/54: using feature points or meshes
- 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/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- 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/176: the region being a block, e.g. a macroblock
- H04N 19/513: Processing of motion vectors
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An apparatus for video decoding includes processing circuitry configured to determine an affine model for a current block coded with an interweaved affine mode. Based on the affine model, a first prediction block corresponding to a first pattern for partitioning the current block into first sub-blocks and a second prediction block corresponding to a second pattern for partitioning the current block into second sub-blocks can be generated. The first and second prediction blocks include interpolated samples having an intermediate bit-depth larger than an input bit-depth of the current block. Co-located first and samples in the first and second prediction blocks with a precision corresponding to the intermediate bit-depth are weighted averaged to obtain averaged samples. The averaged samples are rounded to the input bit-depth to obtain corresponding third samples in a final prediction block of the current block.

## Claims

### Claim 1

A method of video decoding at a video decoder, comprising:
determining an affine model for a current block coded with an interweaved affine mode;
generating, based on the affine model, a first prediction block corresponding to a first pattern for partitioning the current block into first sub-blocks and a second prediction block corresponding to a second pattern for partitioning the current block into second sub-blocks, wherein the first and second prediction blocks include interpolated samples having an intermediate bit-depth larger than an input bit-depth of the current block; and
generating a third prediction block based on the first and second prediction blocks, wherein first samples in the first prediction block and corresponding second samples in the second prediction block each with a precision corresponding to the intermediate bit-depth are combined by performing a weighted average operation to obtain averaged samples, and the averaged samples are rounded to the input bit-depth to obtain corresponding third samples in the third prediction block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the weighted average operation includes adding a rounding offset to a weighted sum of the first sample and the corresponding second sample.

### Claim 3 (depends on 1)

The method of claim 1, wherein the second pattern is shifted with respect to the first pattern and includes whole sub-blocks and fractional sub-blocks, and
when the first and second samples are located within a region corresponding to the fractional sub-blocks of the second blocks, then the second sample is given a zero weight in the weighted average operation.

### Claim 4 (depends on 3)

The method of claim 3, wherein when the first and second samples are located within a region corresponding to the whole sub-blocks of the second blocks, then the first and second samples are given an equal weight in the weighted average operation.

### Claim 5 (depends on 1)

The method of claim 1, wherein the third sample is constrained to be within a range from 0 to a maximum possible value corresponding to the input bit-depth.

### Claim 6 (depends on 1)

The method of claim 1, wherein deblocking is disabled for the current block.

### Claim 7 (depends on 1)

The method of claim 1, wherein the second pattern is shifted with respect to the first pattern and includes whole sub-blocks and fractional sub-blocks, and
deblocking is disabled within a region corresponding to the whole sub-blocks of the second blocks, and is applied or not applied to a region corresponding to the fractional sub-blocks of the second blocks.

### Claim 8

An apparatus of video decoding, comprising circuitry configured to:
determine an affine model for a current block coded with an interweaved affine mode;
generating, based on the affine model, a first prediction block corresponding to a first pattern for partitioning the current block into first sub-blocks and a second prediction block corresponding to a second pattern for partitioning the current block into second sub-blocks, wherein the first and second prediction blocks include interpolated samples having an intermediate bit-depth larger than an input bit-depth of the current block; and
generate a third prediction block based on the first and second prediction blocks, wherein first samples in the first prediction block and corresponding second samples in the second prediction block each with a precision corresponding to the intermediate bit-depth are combined by performing a weighted average operation to obtain averaged samples, and the averaged samples are rounded to the input bit-depth to obtain corresponding third samples in the third prediction block.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the weighted average operation includes adding a rounding offset to a weighted sum of the first sample and the corresponding second sample.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein the second pattern is shifted with respect to the first pattern and includes whole sub-blocks and fractional sub-blocks, and
when the first and second samples are located within a region corresponding to the fractional sub-blocks of the second blocks, then the second sample is given a zero weight in the weighted average operation.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein when the first and second samples are located within a region corresponding to the whole sub-blocks of the second blocks, then the first and second samples are given an equal weight in the weighted average operation.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein the third sample is constrained to be within a range from 0 to a maximum possible value corresponding to the input bit-depth.

### Claim 13 (depends on 8)

The apparatus of claim 8, wherein deblocking is disabled for the current block.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the second pattern is shifted with respect to the first pattern and includes whole sub-blocks and fractional sub-blocks, and
deblocking is disabled within a region corresponding to the whole sub-blocks of the second blocks, and is applied or not applied to a region corresponding to the fractional sub-blocks of the second blocks.

### Claim 15

A non-transitory computer-readable medium storing instructions that, when executed by a computer for video decoding, cause the computer to perform a method of video decoding, the method comprising:
determining an affine model for a current block coded with an interweaved affine mode;
generating, based on the affine model, a first prediction block corresponding to a first pattern for partitioning the current block into first sub-blocks and a second prediction block corresponding to a second pattern for partitioning the current block into second sub-blocks, wherein the first and second prediction blocks include interpolated samples having an intermediate bit-depth larger than an input bit-depth of the current block; and
generating a third prediction block based on the first and second prediction blocks, wherein first samples in the first prediction block and corresponding second samples in the second prediction block each with a precision corresponding to the intermediate bit-depth are combined by performing a weighted average operation to obtain averaged samples, and the averaged samples are rounded to the input bit-depth to obtain corresponding third samples in the third prediction block.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the second pattern is shifted with respect to the first pattern and includes whole sub-blocks and fractional sub-blocks, and
when the first and second samples are located within a region corresponding to the fractional sub-blocks of the second blocks, then the second sample is given a zero weight in the weighted average operation.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein when the first and second samples are located within a region corresponding to the second blocks having the first size, then the first and second samples are given an equal weight in the weighted average operation.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the third sample is constrained to be within a range from 0 to a maximum possible value corresponding to the input bit-depth.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein deblocking is disabled for the current block.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the second pattern is shifted with respect to the first pattern and includes whole sub-blocks and fractional sub-blocks, and
deblocking is disabled within a region corresponding to the whole sub-blocks of the second blocks, and is applied or not applied to a region corresponding to the fractional sub-blocks of the second blocks.
