# US 2024/0205438 A1 · Coding enhancement in cross-component sample adaptive offset

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

- Number: US 2024/0205438 A1
- Document ID: US20240205438A1
- Status: Published application
- Kind: A1
- Application number: 18/435,446
- Filed: 2024-02-07
- Published: 2024-06-20
- Earliest claimed: 2021-08-19
- Assignees: Beijing Dajia Internet Information Technology Co., Ltd.
- Applicants: Beijing Dajia Internet Information Technology Co., Ltd.
- Inventors: Che-Wei KUO; Xiaoyu XIU; Wei CHEN; Xianglin WANG; Yi-Wen CHEN; Hong-Jheng JHU; Ning YAN; Bing YU
- Web page: https://patentgrep.com/patent/US20240205438A1

## CPC

- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- 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/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/82: involving filtering within a prediction loop
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An electronic apparatus performs a method of decoding video data, including: receiving, from the video signal, a picture frame that includes a first component, and a second component; determining a classifier for a respective sample of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component, and a second set of samples of the second component associated with the respective sample of the second component, wherein the first set of samples and the second set of samples are collocated, neighbouring, and current samples relative to the respective sample of the second component; determining a sample offset for the respective sample of the second component according to the classifier; and modifying the respective sample of the second component based on the determined sample offset.

## Claims

### Claim 1

A method of decoding a video signal, comprising:
receiving, from the video signal, a picture frame that includes a first component, and a second component;
determining a classifier for a respective sample of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component, and a second set of samples of the second component associated with the respective sample of the second component, wherein the first set of samples of the first component comprises a collocated sample of the first component relative to the respective sample of the second component and neighbouring samples of the collocated sample of the first component, and the second set of samples of the second component comprise a current sample of the second component relative to the respective sample of the second component and neighbouring samples of the current sample of the second component;
determining a sample offset for the respective sample of the second component according to the classifier; and
modifying the respective sample of the second component based on the determined sample offset.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the classifier for the respective sample of the second component comprises:
determining the classifier for the respective sample of the second component using a summation of the set of weighted sample values.

### Claim 3 (depends on 1)

The method of claim 1, wherein
the first component is one selected from the group consisting of a luma component, a first chroma component and a second chroma component, and
the second component is one selected from the group consisting of the luma component, the first chroma component and the second chroma component,
wherein the first component is different from the second component.

### Claim 4 (depends on 1)

The method of claim 1, wherein the picture frame further comprises a third component, and determining the classifier for the respective sample of the second component comprises:
determining the classifier for the respective sample of the second component using the set of weighted sample values and an additional set of weighted sample values from a third set of samples of the third component associated with the respective sample of the second component, wherein the third set of samples of the third component comprises a collocated sample of the third component relative to the respective sample of the second component and neighbouring samples of the collocated sample of the third component.

### Claim 5 (depends on 4)

The method of claim 4, wherein determining the classifier for the respective sample of the second component comprises:
determining the classifier for the respective sample of the second component using a summation of the set of weighted sample values and the additional set of weighted sample values.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the classifier for the respective sample of the second component using the summation comprises:
determining a classification sample value S as:
S
=
∑
i
=
1
,
2
,
3
∑
j
=
0
N
-
1
c
ij
⁢
R
ij
wherein Rij is a j-th sample of collocated or current sample and neighbouring samples of an i-th component relative to the respective sample of the second component, where i is equal to 1, 2, and 3, representing each of the first, second and third components, respectively, j is equal to 0 to N−1, and i and j are both integers, cij is a weighting coefficient corresponding to the Rij, and N is a total number of the collocated or current sample and the neighbouring samples of the i-th component relative to the respective sample of the second component; and
determining the classifier for the respective sample of the second component based on the classification sample value S.

### Claim 7 (depends on 6)

The method of claim 6, wherein a summation
Σi=1,2,3Σj=0N−1cij is 1.

### Claim 8 (depends on 6)

The method of claim 6, wherein the classification sample value S is within a range of a dynamic bit depth of the video signal.

### Claim 9 (depends on 2)

The method of claim 2, wherein the classifier for the respective sample of the second component includes a first classifier using the summation of the set of weighted sample values jointly combined with a second classifier determined from an edge direction and strength of the collocated sample of the first component relative to the respective sample of the second component, wherein the first classifier is different from the second classifier.

### Claim 10 (depends on 6)

The method of claim 6, wherein one of the weighting coefficients of the current sample of the second component is derived from other weighting coefficients.

### Claim 11 (depends on 6)

The method of claim 6, wherein the classification sample value S is used to determine a class index for the classifier as classIdx=(S*bandNumS)>>BitDepth, wherein bandNumS is a band number associated with a sample value of S, and BitDepth is a dynamic bit depth of the video signal.

### Claim 12

An electronic apparatus comprising:
one or more processing units;
a memory coupled to the one or more processing units; and
a plurality of programs stored in the memory that, when executed by the one or more processing units, cause the electronic apparatus to:
receive, from a video signal, a picture frame that includes a first component, and a second component;
determine a classifier for a respective sample of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component, and a second set of samples of the second component associated with the respective sample of the second component, wherein the first set of samples of the first component comprises a collocated sample of the first component relative to the respective sample of the second component and neighbouring samples of the collocated sample of the first component, and the second set of samples of the second component comprise a current sample of the second component relative to the respective sample of the second component and neighbouring samples of the current sample of the second component;
determine a sample offset for the respective sample of the second component according to the classifier; and
modify the respective sample of the second component based on the determined sample offset.

### Claim 13 (depends on 12)

The electronic apparatus of claim 12, wherein the program to determine the classifier for the respective sample of the second component comprises the program to:
determine the classifier for the respective sample of the second component using a summation of the set of weighted sample values.

### Claim 14 (depends on 12)

The electronic apparatus of claim 12, wherein
the first component is one selected from the group consisting of a luma component, a first chroma component and a second chroma component, and
the second component is one selected from the group consisting of the luma component, the first chroma component and the second chroma component,
wherein the first component is different from the second component.

### Claim 15 (depends on 12)

The electronic apparatus of claim 12, wherein the picture frame further comprises a third component, and the program to determine the classifier for the respective sample of the second component comprises the program to:
determine the classifier for the respective sample of the second component using the set of weighted sample values and an additional set of weighted sample values from a third set of samples of the third component associated with the respective sample of the second component, wherein the third set of samples of the third component comprises a collocated sample of the third component relative to the respective sample of the second component and neighbouring samples of the collocated sample of the third component.

### Claim 16 (depends on 15)

The electronic apparatus of claim 15, wherein the program to determine the classifier for the respective sample of the second component comprises the program to:
determine the classifier for the respective sample of the second component using a summation of the set of weighted sample values and the additional set of weighted sample values.

### Claim 17 (depends on 16)

The electronic apparatus of claim 16, wherein the program to determine the classifier for the respective sample of the second component using the summation comprises the program to:
determine a classification sample value S as:
S
=
∑
i
=
1
,
2
,
3
∑
j
=
0
N
-
1
c
ij
⁢
R
ij
wherein Rij is a j-th sample of collocated or current sample and neighbouring samples of an i-th component relative to the respective sample of the second component, where i is equal to 1, 2, and 3, representing each of the first, second and third components, respectively, j is equal to 0 to N−1, and i and j are both integers, cij is a weighting coefficient corresponding to the Rij, and N is a total number of the collocated or current sample and the neighbouring samples of the i-th component relative to the respective sample of the second component; and
determine the classifier for the respective sample of the second component based on the classification sample value S.

### Claim 18 (depends on 17)

The electronic apparatus of claim 17, wherein a summation
Σi=1,2,3Σj=0N−1cij is 1.

### Claim 19 (depends on 17)

The electronic apparatus of claim 17, wherein the classification sample value S is within a range of a dynamic bit depth of the video signal.

### Claim 20

A computer readable storage medium storing a bitstream to be decoded by a decoding method comprising:
receiving, from a video signal, a picture frame that includes a first component, and a second component;
determining a classifier for a respective sample of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component, and a second set of samples of the second component associated with the respective sample of the second component, wherein the first set of samples of the first component comprises a collocated sample of the first component relative to the respective sample of the second component and neighbouring samples of the collocated sample of the first component, and the second set of samples of the second component comprise a current sample of the second component relative to the respective sample of the second component and neighbouring samples of the current sample of the second component;
determining a sample offset for the respective sample of the second component according to the classifier; and
modifying the respective sample of the second component based on the determined sample offset.
