# US 2021/0176486 A1 · Methods and apparatuses for motion compensation

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

- Number: US 2021/0176486 A1
- Document ID: US20210176486A1
- Status: Published application
- Kind: A1
- Application number: 17/075,197
- Filed: 2020-10-20
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Applicants: Alibaba Group Holding Limited
- Inventors: Zhao WANG; Jiancong LUO; Yan YE
- Web page: https://patentgrep.com/patent/US20210176486A1

## CPC

- H04N 19/52: by predictive encoding
- 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/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/198: {including smoothing of a sequence of encoding parameters, e.g. by averaging, by choice of the maximum, minimum or median value}
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present disclosure provides methods for motion compensation. The method can include: determining intermediate interpolation coefficients of an interpolation filter based on a position of an integer sample and a fractional position of a fractional sample; determining integer interpolation coefficients of the interpolation filter, comprising rounding each of the intermediate interpolation coefficients to an integer; and applying the interpolation filter on a picture to perform motion compensation prediction.

## Claims

### Claim 1

A video processing method, comprising:
determining intermediate interpolation coefficients of an interpolation filter based on a position of an integer sample and a fractional position of a fractional sample;
determining integer interpolation coefficients of the interpolation filter, comprising rounding each of the intermediate interpolation coefficients to an integer; and
applying the interpolation filter on a picture to perform motion compensation prediction.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining integer interpolation coefficients of the interpolation filter comprises:
determining whether an intermediate interpolation coefficient satisfies a condition in association with a difference between the intermediate interpolation coefficient and an integer that is nearest to the intermediate interpolation coefficient; and
in response to a first intermediate interpolation coefficient being determined to satisfy the condition, rounding the first intermediate interpolation coefficient to a first integer that is nearest to the first intermediate interpolation coefficient.

### Claim 3 (depends on 2)

The method of claim 2, wherein the condition comprises:
the difference between the intermediate interpolation coefficient and the integer that is nearest to the intermediate interpolation coefficient is less than a threshold.

### Claim 4 (depends on 2)

The method of claim 2, wherein determining integer interpolation coefficients of the interpolation filter further comprises:
in response to one or more intermediate interpolation coefficients being determined to not satisfy the condition,
generating one or more combinations of candidate integer interpolation coefficients for the one or more intermediate interpolation coefficients; and
selecting a first combination that minimizes a sum of rounding displacements of the one or more intermediate interpolation coefficients.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining intermediate interpolation coefficients of the interpolation filter comprises:
determining intermediate interpolation coefficients of the interpolation filter based on a smoothing window function.

### Claim 6 (depends on 5)

The method of claim 5, wherein the smoothing window function comprises at least one of:
a cosine function in association with the position of the integer sample, the fractional position of the fractional sample, and a smoothing parameter;
a sine function in association with the position of the integer sample, the fractional position of the fractional sample, and a smoothing parameter;
a fractional function in association with a smoothing parameter; or
a constant function.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
determining the smoothing parameter based on a cost function in association with a reference filter.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining the smoothing parameter based on the cost function in association with the reference filter comprises:
determining a plurality of candidate frequency responses for a plurality of candidate smoothing parameters within a given range, respectively;
determining deviations between each of the plurality of candidate frequency responses and a reference frequency response of the reference filter; and
determining a candidate smoothing parameter having a smallest deviation as the smoothing parameter in association with the smoothing window function.

### Claim 9 (depends on 8)

The method of claim 8, wherein determining deviations between each of the plurality of candidate frequency responses and the reference frequency response of the reference filter comprises:
determining at least one of a hill or a valley of a candidate frequency response;
determining a cutoff shift between the candidate frequency response and the reference frequency response; and
determining a deviation between the candidate frequency response and the reference frequency response based on an area of the at least one of the hill or valley and the cutoff shift.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining intermediate interpolation coefficients of the interpolation filter comprises:
determining real-number interpolation coefficients of the interpolation filter based on the position of the integer sample and the fractional position of the fractional sample; and
multiplying the real-number interpolation coefficients of the interpolation filter by a scaling factor.

### Claim 11 (depends on 1)

The method of claim 1, wherein the interpolation filter has 6 filter taps and used for 4×4 motion compensation block.

### Claim 12

A video processing apparatus, comprising:
at least one memory for storing instructions; and
at least one processor configured to execute the instructions to cause the apparatus to perform:
determining intermediate interpolation coefficients of an interpolation filter based on a position of an integer sample and a fractional position of a fractional sample;
determining integer interpolation coefficients of the interpolation filter, comprising rounding each of the intermediate interpolation coefficients to an integer; and
applying the interpolation filter on a picture to perform motion compensation prediction.

### Claim 13

A non-transitory computer readable storage medium storing a set of instructions that are executable by one or more processing devices to cause a video processing apparatus to perform a method comprising:
determining intermediate interpolation coefficients of an interpolation filter based on a position of an integer sample and a fractional position of a fractional sample;
determining integer interpolation coefficients of the interpolation filter, comprising rounding each of the intermediate interpolation coefficients to an integer; and
applying the interpolation filter on a picture to perform motion compensation prediction.

### Claim 14 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
determining whether an intermediate interpolation coefficient satisfies a condition in association with a difference between the intermediate interpolation coefficient and an integer that is nearest to the intermediate interpolation coefficient; and
in response to a first intermediate interpolation coefficient being determined to satisfy the condition, rounding the first intermediate interpolation coefficient to a first integer that is nearest to the first intermediate interpolation coefficient.

### Claim 15 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein the condition comprises:
the difference between the intermediate interpolation coefficient and the integer that is nearest to the intermediate interpolation coefficient is less than a threshold.

### Claim 16 (depends on 14)

The non-transitory computer readable storage medium of claim 14, wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
in response to one or more intermediate interpolation coefficients being determined to not satisfy the condition,
generating one or more combinations of candidate integer interpolation coefficients for the one or more intermediate interpolation coefficients; and
selecting a first combination that minimizes a sum of rounding displacements of the one or more intermediate interpolation coefficients.

### Claim 17 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
determining intermediate interpolation coefficients of the interpolation filter based on a smoothing window function,
wherein the smoothing window function comprises at least one of:
a cosine function in association with the position of the integer sample, the fractional position of the fractional sample, and a smoothing parameter;
a sine function in association with the position of the integer sample, the fractional position of the fractional sample, and a smoothing parameter;
a fractional function in association with a smoothing parameter; or
a constant function.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
determining a plurality of candidate frequency responses for a plurality of candidate smoothing parameters within a given range, respectively;
determining deviations between each of the plurality of candidate frequency responses and a reference frequency response of the reference filter; and
determining a candidate smoothing parameter having a smallest deviation as the smoothing parameter in association with the smoothing window function.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
determining at least one of a hill or a valley of a candidate frequency response;
determining a cutoff shift between the candidate frequency response and the reference frequency response; and
determining a deviation between the candidate frequency response and the reference frequency response based on an area of the at least one of the hill or valley and the cutoff shift.

### Claim 20 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein the interpolation filter has 6 filter taps and used for 4×4 motion compensation block.
