# US 2018/0324417 A1 · Intra reference filter 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 2018/0324417 A1
- Document ID: US20180324417A1
- Status: Published application
- Kind: A1
- Application number: 15/969,294
- Filed: 2018-05-02
- Published: 2018-11-08
- Earliest claimed: 2017-05-05
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Marta Karczewicz; Xin Zhao; Vadim Seregin; Amir Said
- Web page: https://patentgrep.com/patent/US20180324417A1

## 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/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/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/593: involving spatial prediction techniques
- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of decoding video data that includes receiving a current block of video data encoded using an intra prediction mode, determining residual video data for the current block of video data, determining reference samples of the current block of video data, determining filter coefficients for a bilateral filter based on a distance between the reference samples and neighboring reference samples and based on a sample value difference between the reference samples and the neighboring reference samples, applying the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples, generating a prediction block using the filtered reference samples, and adding samples of the prediction block to the determined residual video data to produce a decoded block of video data.

## Claims

### Claim 1

A method of decoding video data, the method comprising:
receiving a current block of video data encoded using an intra prediction mode;
determining residual video data for the current block of video data;
determining reference samples of the current block of video data;
determining filter coefficients for a bilateral filter based on a distance between the reference samples and neighboring reference samples and based on a sample value difference between the reference samples and the neighboring reference samples;
applying the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples;
generating a prediction block using the filtered reference samples; and
adding samples of the prediction block to the determined residual video data to produce a decoded block of video data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the bilateral filter is a 5-tap bilateral filter.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the filter coefficients comprises determining the filter coefficients using the equation:
f
i
=
a
-
(

i

2
σ
0
+

r
x
+
i
-
r
x

2
σ
1
)
,
where fi is a filter coefficient at position i, rx is a value of a reference sample to be filtered, rx+i s a value of a neighboring reference sample i samples from the reference sample to be filtered, i is the distance between the reference sample to be filtered and the neighboring reference sample corresponding to the filter coefficient fi, a is a first filter parameter, σ0 is a second filter parameter, and σ1 is a third filter parameter.

### Claim 4 (depends on 3)

The method of claim 3, wherein a is equal to Napier's constant (2.71828).

### Claim 5 (depends on 3)

The method of claim 3, wherein a is a power of 2.

### Claim 6 (depends on 3)

The method of claim 3, wherein σ0 is equal to 2.4 and σ1 is equal to 260.

### Claim 7 (depends on 3)

The method of claim 3, the method further comprising:
receiving syntax elements that indicate the values of one or more of the first filter parameter, the second filter parameter, or the third filter parameter in one or more of a video parameter set (VPS), sequence parameter set (SPS), picture parameter set (SPS), or slice header.

### Claim 8 (depends on 1)

The method of claim 1, wherein the intra prediction mode is a position-dependent prediction combination (PDPC) mode.

### Claim 9 (depends on 1)

The method of claim 1, wherein applying the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples comprises:
determining an output of the bilateral filter applied to the determined reference samples from a look-up table.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
displaying the decoded block of video data.

### Claim 11

A method of encoding video data, the method comprising:
receiving a current block of video data;
determining an intra prediction mode for the current block of video data;
determining reference samples of the current block of video data based on the determined intra prediction mode;
determining filter coefficients for a bilateral filter based on a distance between the reference samples and neighboring reference samples and based on a sample value difference between the reference samples and the neighboring reference samples;
applying the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples;
generating a prediction block using the filtered reference samples;
generating residual video data from samples of the current block of video data and from samples of the prediction block; and
encoding the residual video data as an encoded block of video data.

### Claim 12 (depends on 11)

The method of claim 11, wherein the bilateral filter is a 5-tap bilateral filter.

### Claim 13 (depends on 11)

The method of claim 11, wherein determining the filter coefficients comprises determining the filter coefficients using the equation:
f
i
=
a
-
(

i

2
σ
0
+

r
x
+
i
-
r
x

2
σ
1
)
,
where fi is a filter coefficient at position i, rx is a value of a reference sample to be filtered, rx+i s a value of a neighboring reference sample i samples from the reference sample to be filtered, i is the distance between the reference sample to be filtered and the neighboring reference sample corresponding to the filter coefficient fi, a is a first filter parameter, σ0 is a second filter parameter, and σ1 is a third filter parameter.

### Claim 14 (depends on 13)

The method of claim 13, wherein a is equal to Napier's constant (2.71828).

### Claim 15 (depends on 13)

The method of claim 13, wherein a is a power of 2.

### Claim 16 (depends on 13)

The method of claim 13, wherein σ0 is equal to 2.4 and σ1 is equal to 260.

### Claim 17 (depends on 13)

The method of claim 13, the method further comprising:
generating syntax elements that indicate the values of one or more of the first filter parameter, the second filter parameter, or the third filter parameter in one or more of a video parameter set (VPS), sequence parameter set (SPS), picture parameter set (SPS), or slice header.

### Claim 18 (depends on 11)

The method of claim 11, wherein the intra prediction mode is a position-dependent prediction combination (PDPC) mode.

### Claim 19 (depends on 11)

The method of claim 11, wherein applying the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples comprises:
determining an output of the bilateral filter applied to the determined reference samples from a look-up table.

### Claim 20 (depends on 11)

The method of claim 11, further comprising:
outputting the encoded block of video data in an encoded video bitstream.

### Claim 21

An apparatus configured to decode video data, the apparatus comprising:
a memory configured to store a current block of video data; and
one or more processors in communication with the memory, the one or more processors configured to:
receive the current block of video data encoded using an intra prediction mode;
determine residual video data for the current block of video data;
determine reference samples of the current block of video data;
determine filter coefficients for a bilateral filter based on a distance between the reference samples and neighboring reference samples and based on a sample value difference between the reference samples and the neighboring reference samples;
apply the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples;
generate a prediction block using the filtered reference samples; and
add samples of the prediction block to the determined residual video data to produce a decoded block of video data.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein the bilateral filter is a 5-tap bilateral filter.

### Claim 23 (depends on 21)

The apparatus of claim 21, wherein to determine the filter coefficients, the one or more processors are further configured to determine the filter coefficients using the equation:
f
i
=
a
-
(

i

2
σ
0
+

r
x
+
i
-
r
x

2
σ
1
)
,
where fi is a filter coefficient at position i, rx is a value of a reference sample to be filtered, rx+i s a value of a neighboring reference sample i samples from the reference sample to be filtered, i is the distance between the reference sample to be filtered and the neighboring reference sample corresponding to the filter coefficient fi, a is a first filter parameter, σ0 is a second filter parameter, and σ1 is a third filter parameter.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein a is equal to Napier's constant (2.71828).

### Claim 25 (depends on 23)

The apparatus of claim 23, wherein a is a power of 2.

### Claim 26

An apparatus configured to encode video data, the apparatus comprising:
a memory configured to store a current block of video data; and
one or more processors in communication with the memory, the one or more processors configured to:
receive the current block of video data;
determine an intra prediction mode for the current block of video data;
determine reference samples of the current block of video data based on the determined intra prediction mode;
determine filter coefficients for a bilateral filter based on a distance between the reference samples and neighboring reference samples and based on a sample value difference between the reference samples and the neighboring reference samples;
apply the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples;
generate a prediction block using the filtered reference samples;
generate residual video data from samples of the current block of video data and from samples of the prediction block; and
encode the residual video data as an encoded block of video data.

### Claim 27 (depends on 26)

The apparatus of claim 26, wherein the bilateral filter is a 5-tap bilateral filter.

### Claim 28 (depends on 26)

The apparatus of claim 26, wherein to determine the filter coefficients, the one or more processors are further configured to determine the filter coefficients using the equation:
f
i
=
a
-
(

i

2
σ
0
+

r
x
+
i
-
r
x

2
σ
1
)
,
where fi is a filter coefficient at position i, rx is a value of a reference sample to be filtered, rx+i s a value of a neighboring reference sample i samples from the reference sample to be filtered, i is the distance between the reference sample to be filtered and the neighboring reference sample corresponding to the filter coefficient fi, a is a first filter parameter, σ0 is a second filter parameter, and σ1 is a third filter parameter.

### Claim 29

A non-transitory computer-readable storage medium storing instructions that, when executed, causes one or more processors of a device configured to decode video data to:
receive the current block of video data encoded using an intra prediction mode;
determine residual video data for the current block of video data;
determine reference samples of the current block of video data;
determine filter coefficients for a bilateral filter based on a distance between the reference samples and neighboring reference samples and based on a sample value difference between the reference samples and the neighboring reference samples;
apply the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples;
generating a prediction block using the filtered reference samples; and
add samples of the prediction block to the determined residual video data to produce a decoded block of video data.

### Claim 30

A non-transitory computer-readable storage medium storing instructions that, when executed, causes one or more processors of a device configured to encode video data to:
receive the current block of video data;
determine an intra prediction mode for the current block of video data;
determine reference samples of the current block of video data based on the determined intra prediction mode;
determine filter coefficients for a bilateral filter based on a distance between the reference samples and neighboring reference samples and based on a sample value difference between the reference samples and the neighboring reference samples;
apply the bilateral filter with the determined filter coefficients to the determined reference samples to produce filtered reference samples;
generate a prediction block using the filtered reference samples;
generate residual video data from samples of the current block of video data and from samples of the prediction block; and
encode the residual video data as an encoded block of video data.
