# US 2022/0295053 A1 · Flexible filter shape for sample offset

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

- Number: US 2022/0295053 A1
- Document ID: US20220295053A1
- Status: Published application
- Kind: A1
- Application number: 17/449,199
- Filed: 2021-09-28
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Yixin DU; Xin ZHAO; Shan LIU
- Web page: https://patentgrep.com/patent/US20220295053A1

## CPC

- 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/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/182: the unit being a pixel
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/82: involving filtering within a prediction loop
- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Aspects of the disclosure provide methods and apparatuses for video encoding/decoding. In some examples, an apparatus for video decoding includes processing circuitry. The processing circuitry determines offset values associated with a first filter shape configuration of a video filter based on signals in a coded video bitstream that carries a video. The video filter is based on non linear mapping. The number of filter taps of the first filter shape configuration is smaller than five. The processing circuitry applies the video filter on a sample to be filtered, using the offset values associated with the first filter shape configuration.

## Claims

### Claim 1

A method for filtering in video decoding, comprising:
determining, by a processor, offset values associated with a first filter shape configuration of a video filter based on signals in a coded video bitstream that carries a video, a number of filter taps of the first filter shape configuration being smaller than five, the video filter being based on a non linear mapping; and
applying, by the processor, the non linear mapping based filter on a sample that is to be filtered, using the offset values associated with the first filter shape configuration.

### Claim 2 (depends on 1)

The method of claim 1, wherein the video filter includes at least one of a cross-component sample offset (CCSO) filter and a local sample offset (LSO) filter.

### Claim 3 (depends on 1)

The method of claim 1, wherein positions of the filter taps of the first filter shape configuration include a position of the sample.

### Claim 4 (depends on 1)

The method of claim 1, wherein positions of the filter taps of the first filter shape configuration exclude a position of the sample.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first filter shape configuration includes a single filter tap, and the method comprises:
determining a mean sample value in an area;
calculating a difference of a reconstructed sample value at a position of the single filter tap and the mean sample value in the area; and
applying, the video filter on the sample that is to be filtered based on the difference of the reconstructed sample value at the position of the single filter tap and the mean sample value in the area.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
selecting the first filter shape configuration from a group of filter shape configurations of the video filter.

### Claim 7 (depends on 6)

The method of claim 6, wherein the filter shape configurations in the group respectively have the number of filter taps.

### Claim 8 (depends on 6)

The method of claim 6, wherein one or more filter shape configurations in the group have a different number of filter taps from the first filter shape configuration.

### Claim 9 (depends on 6)

The method of claim 6, further comprising:
decoding an index from the coded video bitstream that carries the video, the index being indicative of a selection of the first filter shape configuration from the group for the video filter.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
decoding the index from a syntax signaling of at least one of a block level, a coding tree unit (CTU) level, a super block (SB) level, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, a tile header and a frame header.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
quantizing a delta value of sample values at positions of two filter taps into one of a number of possible quantization outputs, the number of possible quantization outputs being an integer in a range from 1 to 1024 inclusive.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
decoding an index from a syntax signaling of at least one of a block level, a coding tree unit (CTU) level, a super block (SB) level, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, a tile header and a frame header, the index being indicative of the number of possible quantization outputs.

### Claim 13

An apparatus for video decoding, comprising processing circuitry configured to:
determine offset values associated with a first filter shape configuration of a video filter based on signals in a coded video bitstream that carries a video, a number of filter taps of the first filter shape configuration being smaller than five, the video filter being based on a non linear mapping; and
apply the non linear mapping based filter on a sample that is to be filed using the offset values associated with the first filter shape configuration.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the video filter includes at least one of a cross-component sample offset (CCSO) filter and a local sample offset (LSO) filter.

### Claim 15 (depends on 13)

The apparatus of claim 13, wherein positions of the filter taps of the first filter shape configuration include a position of the sample.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein positions of the filter taps of the first filter shape configuration exclude a position of the sample.

### Claim 17 (depends on 13)

The apparatus of claim 13, wherein the first filter shape configuration includes a single filter tap, and the processing circuitry is further configured to:
determine a mean sample value in an area;
calculate a difference of a reconstructed sample value at a position of the single filter tap and the mean sample value in the area; and
apply the video filter on the sample based on the difference of the reconstructed sample value at the position of the single filter tap and the mean sample value in the area.

### Claim 18 (depends on 13)

The apparatus of claim 13, wherein the processing circuitry is configured to:
select the first filter shape configuration from a group of filter shape configurations of the video filter.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the filter shape configurations in the group respectively have the number of filter taps.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein one or more filter shape configurations in the group have a different number of filter taps from the first filter shape configuration.

### Claim 21 (depends on 18)

The apparatus of claim 18, wherein the processing circuitry is configured to:
decode an index from the coded video bitstream that carries the video, the index being indicative of a selection of the first filter shape configuration from the group for the video filter.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein the processing circuitry is configured to:
decode the index from a syntax signaling of at least one of a block level, a coding tree unit (CTU) level, a super block (SB) level, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, a tile header and a frame header.

### Claim 23 (depends on 13)

The apparatus of claim 13, wherein the processing circuitry is configured to:
quantize a delta value of sample values at positions of two filter taps into one of a number of possible quantization outputs, the number of possible quantization outputs being an integer in a range from 1 to 1024 inclusive.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the processing circuitry is configured to:
decode an index from a syntax signaling of at least one of a block level, a coding tree unit (CTU) level, a super block (SB) level, a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), a slice header, a tile header and a frame header, the index being indicative of the number of possible quantization outputs.
