# US 2022/0295069 A1 · Methods, apparatus, and non-transitory computer readable medium for 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 2022/0295069 A1
- Document ID: US20220295069A1
- Status: Published application
- Kind: A1
- Application number: 17/651,338
- Filed: 2022-02-16
- Published: 2022-09-15
- Earliest claimed: 2021-03-14
- Assignees: Alibaba (China) Co., Ltd.
- Applicants: Alibaba (China) Co., Ltd.
- Inventors: Xinwei LI; Jie CHEN; Ru-Ling LIAO; Yan YE
- Web page: https://patentgrep.com/patent/US20220295069A1

## CPC

- 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/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/1883: {the unit relating to sub-band structure, e.g. hierarchical level, directional tree, e.g. low-high [LH], high-low [HL], high-high [HH]}
- 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

The present disclosure provides a video data processing method for cross-component sample adaptive offset (CCSAO). The method includes determining an index based on a vertical coordinate of a chroma sample within a picture; determining a luma sample based on the index; classifying the chroma sample based on a reconstructed value associated with the luma sample; determining an offset based on the classification; and adding the offset to a reconstructed value associated with the chroma sample.

## Claims

### Claim 1

A video data processing method for cross-component sample adaptive offset, comprising:
determining an index based on a vertical coordinate of a chroma sample within a picture;
determining a luma sample based on the index;
classifying the chroma sample based on a reconstructed value associated with the luma sample;
determining an offset based on the classification; and
adding the offset to a reconstructed value associated with the chroma sample.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the index is obtained by:
index=(y% H)>=H−n?(H−y−1):0
wherein y is the vertical coordinate of the chroma sample within the picture, H is a height associated with a coding tree unit, the n is a positive integer.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the n is equal to 4.

### Claim 4 (depends on 1)

The method of claim 1, wherein in determining the luma sample based on the index, the method further comprises:
determining a horizontal coordinate of the luma sample based on a horizontal coordinate of the chroma sample and a classification method to be used;
determining a vertical coordinate of the luma sample based on the vertical coordinate of the chroma sample, the classification method to be used, and the index; and
determining the luma sample based on the horizontal coordinate of the luma sample and the vertical coordinate of the luma sample.

### Claim 5 (depends on 4)

The method of claim 4, wherein in determining the vertical coordinate of the luma sample, the method further comprises:
determining a first vertical coordinate among three values associated with the vertical coordinate of the chroma sample based on the classification method to be used;
determining the vertical coordinate of the luma sample based on the first vertical coordinate and the index, wherein
in response to the index being equal to 0, the vertical coordinate of the luma sample is set to be the first vertical coordinate; and
in response to the index being greater than 0, a second vertical coordinate associated with a fourth line above a horizontal coding tree unit (CTU) boundary is determined,
when a distance between the first vertical coordinate and the horizontal CTU boundary is less than or equal to a distance between the second vertical coordinate and the horizontal CTU boundary, the vertical coordinate of the luma sample is set to be the first vertical coordinate, or
when the distance between the first vertical coordinate and the horizontal CTU boundary is greater than the distance between the second vertical coordinate and the horizontal CTU boundary, the vertical coordinate of the luma sample is set to be the second vertical coordinate.

### Claim 6 (depends on 4)

The method of claim 4, wherein the classification method to be used is indicated by a flag.

### Claim 7 (depends on 1)

The method of claim 1, wherein in determining an offset based on the classification, the method further comprises:
determining the offset based on the index, wherein
in response to the index being equal to 0, the offset is determined based on the classification; and
in response to the index being greater than 0, the offset is set equal to 0.

### Claim 8

An apparatus for performing video data processing, the apparatus comprising:
a memory figured to store instructions; and
one or more processors configured to execute the instructions to cause the apparatus to perform:
determining an index based on a vertical coordinate of a chroma sample within a picture;
determining a luma sample based on the index;
classifying the chroma sample based on a reconstructed value associated with the luma sample;
determining an offset based on the classification; and
adding the offset to a reconstructed value associated with the chroma sample.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the index is obtained by:
index=(y% H)>=H−n?(H−y−1):0
wherein y is the vertical coordinate of the chroma sample within the picture, H is a height associated with a coding tree unit, the n is a positive integer.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein then is equal to 4.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein in determining the luma sample based on the index, the one or more processors are further configured to execute the instructions to cause the apparatus to perform:
determining a horizontal coordinate of the luma sample based on a horizontal coordinate of the chroma sample and a classification method to be used;
determining a vertical coordinate of the luma sample based on the vertical coordinate of the chroma sample, the classification method to be used, and the index; and
determining the luma sample based on the horizontal coordinate of the luma sample and the vertical coordinate of the luma sample.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein in determining the vertical coordinate of the luma sample, the one or more processors are further configured to execute the instructions to cause the apparatus to perform:
determining a first vertical coordinate among three values associated with the vertical coordinate of the chroma sample based on the classification method to be used;
determining the vertical coordinate of the luma sample based on the first vertical coordinate and the index, wherein
in response to the index being equal to 0, the vertical coordinate of the luma sample is set to be the first vertical coordinate; and
in response to the index being greater than 0, a second vertical coordinate associated with a fourth line above a horizontal coding tree unit (CTU) boundary is determined,
when a distance between the first vertical coordinate and the horizontal CTU boundary is less than or equal to a distance between the second vertical coordinate and the horizontal CTU boundary, the vertical coordinate of the luma sample is set to be the first vertical coordinate, and
when the distance between the first vertical coordinate and the horizontal CTU boundary is greater than the distance between the second vertical coordinate and the horizontal CTU boundary, the vertical coordinate of the luma sample is set to be the second vertical coordinate.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the classification method to be used is indicated by a flag.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein in determining an offset based on the classification, the one or more processors are further configured to execute the instructions to cause the apparatus to perform:
determining the offset based on the index, wherein
in response to the index being equal to 0, the offset is determined based on the classification; and
in response to the index being greater than 0, the offset is set equal to 0.

### Claim 15

A non-transitory computer readable medium that stores a set of instructions that is executable by one or more processors of an apparatus to cause the apparatus to initiate a method for performing video data processing, the method comprising:
determining an index based on a vertical coordinate of a chroma sample within a picture;
determining a luma sample based on the index;
classifying the chroma sample based on a reconstructed value associated with the luma sample;
determining an offset based on the classification; and
adding the offset to a reconstructed value associated with the chroma sample.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the index is obtained by:
index=(y% H)>=H−n?(H−y−1):0
wherein y is the vertical coordinate of the chroma sample within the picture, H is a height associated with a coding tree unit, the n is a positive integer.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein the n is equal to 4.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the set of instructions that is executable by one or more processors of an apparatus to cause the apparatus to further perform:
determining a horizontal coordinate of the luma sample based on a horizontal coordinate of the chroma sample and a classification method to be used;
determining a vertical coordinate of the luma sample based on the vertical coordinate of the chroma sample, the classification method to be used, and the index; and
determining the luma sample based on the horizontal coordinate of the luma sample and the vertical coordinate of the luma sample.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the set of instructions that is executable by one or more processors of an apparatus to cause the apparatus to further perform:
determining a first vertical coordinate among three values associated with the vertical coordinate of the chroma sample based on the classification method to be used;
determining the vertical coordinate of the luma sample based on the first vertical coordinate and the index, wherein
in response to the index being equal to 0, the vertical coordinate of the luma sample is set to be the first vertical coordinate; and
in response to the index being greater than 0, a second vertical coordinate associated with a fourth line above a horizontal coding tree unit (CTU) boundary is determined,
when a distance between the first vertical coordinate and the horizontal CTU boundary is less than or equal to a distance between the second vertical coordinate and the horizontal CTU boundary, the vertical coordinate of the luma sample is set to be the first vertical coordinate, and
when the distance between the first vertical coordinate and the horizontal CTU boundary is greater than the distance between the second vertical coordinate and the horizontal CTU boundary, the vertical coordinate of the luma sample is set to be the second vertical coordinate.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the set of instructions that is executable by one or more processors of an apparatus to cause the apparatus to further perform:
determining the offset based on the index, wherein
in response to the index being equal to 0, the offset is determined based on the classification; and
in response to the index being greater than 0, the offset is set equal to 0.
