# US 2022/0295054 A1 · Sample Offset with Predefined Filters

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

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

## 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/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- 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: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for in-loop sample offset filtering in a video decoder is disclosed. The method includes extracting at least one loop filtering parameter from a coded video bitstream for a reconstructed sample of a first color component in a current picture reconstructed from the coded video bitstream, the at least one loop filtering parameter comprising a flag, and determining based on the flag a type of sample offset filter to be applied to the reconstructed sample of the first color component, the type of sample offset filter being either a predefined sample offset filter type or an encoder-derived sample offset filter type. The method further includes identifying a target sample offset filter to be applied to the reconstructed sample of the first color component based at least on the determined type of sample offset filter, and filtering the reconstructed sample of the first color component based on the target sample offset filter and a plurality of reconstructed reference samples of a second color component to generate a filtered reconstructed sample of the first color component.

## Claims

### Claim 1

A method for in-loop filtering in a video decoder, comprising:
extracting at least one loop filtering parameter from a coded video bitstream for a reconstructed sample of a first color component in a current picture reconstructed from the coded video bitstream, the at least one loop filtering parameter comprising a flag;
determining based on the flag a type of sample offset filter to be applied to the reconstructed sample of the first color component, the type of sample offset filter being either a predefined sample offset filter type or an encoder-derived sample offset filter type;
identifying a target sample offset filter to be applied to the reconstructed sample of the first color component based at least on the determined type of sample offset filter; and
filtering the reconstructed sample of the first color component based on the target sample offset filter and a plurality of reconstructed reference samples of a second color component to generate a filtered reconstructed sample of the first color component.

### Claim 2 (depends on 1)

The method of claim 1, wherein the flag in the at least one loop filtering parameter is signaled in the coded video bitstream as part of:
a video parameter set (VPS);
a sequence parameter set (SPS)
a picture parameter set (PPS);
an adaptation parameter set (APS);
a frame header;
a slice header; or
a tile header.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the flag indicates that the type of sample offset filter is of the encoder-derived sample offset filter type;
the target sample offset filter is correspondingly of the encoder-derived sample offset filter type; and
the target sample offset filter is signaled in the coded video bitstream.

### Claim 4 (depends on 1)

The method of claim 1, wherein
the flag indicates that the type of sample offset filter is of the predefined sample offset filter type;
the at least one coded loop filter parameter further comprising a filter index to one or more predefined sample offset filters; and
identifying the target sample offset filter comprises using the filter index into the one or more predefined sample offset filters to determine the target sample offset filter.

### Claim 5 (depends on 4)

The method of claim 4, wherein the filter index in the at least one loop filtering parameter is signaled in the coded video bitstream as part of:
a video parameter set (VPS);
a sequence parameter set (SPS)
a picture parameter set (PPS);
an adaptation parameter set (APS);
a frame header;
a slice header; or
a tile header.

### Claim 6 (depends on 4)

The method of claim 4, wherein the one or more predefined sample offset filters are pre-trained offline.

### Claim 7 (depends on 4)

The method of claim 4, wherein:
the plurality of reconstructed reference samples of the second color component are determined by:
determining a first location of the reconstructed sample of the first color component and second locations of a plurality of filter taps associated with the target sample offset filter, the first location and the second locations being relative to the current picture; and
identifying reconstructed samples of the second color component at the first location and the second locations as the plurality of reconstructed reference samples; and
filtering the reconstructed sample of the first color component based on the target sample offset filter and the plurality of reconstructed reference samples of the second color component to generate the filtered reconstructed sample of the first color component comprises:
determining a delta measure between the reconstructed reference samples corresponding to the second locations and the reconstructed reference sample corresponding to the first location, both in the second color component of the current picture;
extracting a sample offset value from the target sample offset filter based on the delta measure; and
filtering the reconstructed sample of the first color component using the sample offset value to generate the filtered reconstructed sample.

### Claim 8 (depends on 4)

The method of claim 4, wherein:
the flag and the filter index form a single indicator of the at least one loop filter parameter; and
the single indicator points to one of the one or more predefined sample offset filters and the encoder-derived sample offset filters as the target sample offset filter.

### Claim 9 (depends on 8)

The method of claim 8, wherein the single indicator in the at least one loop filtering parameter is signaled in the coded video bitstream as part of:
a video parameter set (VPS);
a sequence parameter set (SPS)
a picture parameter set (PPS);
an adaptation parameter set (APS);
a frame header;
a slice header; or
a tile header.

### Claim 10 (depends on 4)

The method of claim 4, wherein:
each sample offset filter of the predefined sample offset filter type and the encoder-derived sample offset filter type is associated with a set of filter support configurations; and
the set of filter support configurations comprises at least one of a filter tap number, a set of filter tap locations, and a delta quantization step size.

### Claim 11 (depends on 10)

The method of claim 10, wherein the predefined sample offset filter type and the encoder-derived sample offset filter type share at least one of:
the same filter tap number and the same set of filter tap locations; or
the same delta quantization step size.

### Claim 12 (depends on 10)

The method of claim 10, wherein the one or more predefined sample offset filters share the same filter tap number, the same set of filter tap locations, and the same delta quantization step size.

### Claim 13 (depends on 12)

The method of claim 12, wherein sample offset filters of the encoder-derived sample offset filter type share the same set of filter tap locations, and the same delta quantization step size, but at least one of these filter support configurations is different from that of the one or more predefined sample offset filters.

### Claim 14 (depends on 10)

The method of claim 10, wherein at least one of the set of filter support configurations are different among the one or more predefined sample offset filters.

### Claim 15 (depends on 10)

The method of claim 10, wherein the number of taps for sample offset filters of the predefined sample offset filter type is larger than the encoder-derived sample offset filter type.

### Claim 16 (depends on 10)

The method of claim 10, wherein the number of taps for sample offset filters of the predefined sample offset filter type is smaller than the encoder-derived sample offset filter type.

### Claim 17 (depends on 10)

The method of claim 10, wherein the set of filter tap locations of the encoder-derived sample offset filter type is a subset of that of the predefined sample offset filter type.

### Claim 18 (depends on 10)

The method of claim 10, wherein the delta quantization step size differs between sample offset filters of the predefined sample offset filter type and the encoder-derived sample offset filter type.

### Claim 19 (depends on 10)

The method of claim 10, wherein:
the set of filter support configurations further comprises a number of delta quantization levels;
the number of delta quantization levels differs between sample offset filters of the predefined sample offset filter type and the encoder-derived sample offset filter type

### Claim 20

A device for in-loop filtering in video decoding, comprising a processing circuitry configured to:
extract at least one loop filtering parameter from a coded video bitstream for a reconstructed sample of a first color component in a current picture reconstructed from a coded video bitstream, the at least one loop filtering parameter comprising a flag;
determine based on the flag a type of sample offset filter to be applied to the reconstructed sample of the first color component, the type of sample offset filter being either a predefined sample offset filter type or an encoder-derived sample offset filter type;
identify a target sample offset filter to be applied to the reconstructed sample of the first color component based at least on the determined type of sample offset filter; and
filter the reconstructed sample of the first color component based on the target sample offset filter and a plurality of reconstructed reference samples of a second color component to generate a filtered reconstructed sample of the first color component.
