# US 9,357,235 B2 · Sample adaptive offset merged with adaptive loop filter in video coding

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

- Number: US 9,357,235 B2
- Document ID: US9357235B2
- Status: Granted
- Kind: B2
- Application number: 13/648,367
- Filed: 2012-10-10
- Published: 2013-04-18
- Granted: 2016-05-31
- Earliest claimed: 2011-10-13
- Assignees: QUALCOMM Incorporated
- Applicants: Qualcomm Incorporated
- Inventors: In Suk Chong; Sanjeev Kumar; Marta Karczewicz
- Web page: https://patentgrep.com/patent/US9357235B2

## CPC

- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Techniques for performing sample adaptive offset (SAO) and adaptive loop filter (ALF) processes in a video coding process are described. The SAO and ALF processes may be combined. In one example, the determination of offset values for a SAO filter process may be based on classifications used in an ALF process. In one example, an ALF classification that indicates a particular directional characteristic of a video block may be used to determine how and whether an SAO filter process is applied to each sample within the video block.

## Claims

### Claim 1

A method of filtering video data in a video coding process comprising:
receiving a block of video data, wherein the block of video data includes a plurality of sample values;
determining filter coefficients for the block of video data for an adaptive loop filter (ALF), wherein determining the filter coefficients for the block of video data includes determining the AC coefficients and not determining any DC coefficients;
determining a respective offset value for each of the plurality of sample values based at least in part on a value associated with the filter coefficients, wherein the respective offset values are for a sample adaptive offset (SAO) filter; and
filtering the block of video data based on the determined filter coefficients and the determined respective offset values without filtering the block of video data based on the DC coefficient for the ALF that is not determined.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the respective offset value includes selecting an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: no SAO filter applied, 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, 1D 45-degree edge, 1D less than 45-degree edge, 1D greater than 135 degree edge, central band filter, and side band filter.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the respective offset value includes selecting an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, and 1D 45-degree edge.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining filter coefficients includes determining a directional activity for the block of video data and wherein selecting an SAO filter mode includes selecting an SAO filter mode based at least in part on the directional activity.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining filter coefficients includes determining a classification for the block of video data based on directional activity of the block of video data and wherein determining a respective offset value includes determining not to apply an SAO filter when the classification for the block of video data is class_0.

### Claim 6 (depends on 1)

The method of claim 1, wherein filtering the block of video data based on the determined filter coefficients and the determined respective offset values includes adjusting the value of the one or more of the samples in the block of video data by using the filter coefficients as a weight value and adding the respective offset values to respective sample values.

### Claim 7 (depends on 1)

The method of claim 1, wherein the block of video data is a 4×4 array of sample values block of video data.

### Claim 8 (depends on 1)

The method of claim 1, wherein the block of video data is one of sixteen regions of a video frame.

### Claim 9 (depends on 1)

The method of claim 1, further comprising encoding the block of video data using a predictive technique and signaling the filter coefficients and respective offset values in an encoded bitstream.

### Claim 10 (depends on 1)

The method of claim 1, further comprising decoding the block of video data from an encoded bitstream and wherein determining a respective offset value for each of the plurality of sample values includes decoding the respective offset values from an encoded bitstream.

### Claim 11

An apparatus configured to filter video data in a video coding process comprising:
means for receiving a block of video data, wherein the block of video data includes a plurality of sample values;
means for determining filter coefficients for the block of video data for an adaptive loop filter (ALF), wherein the means for determining the filter coefficients for the block of video data includes means for determining the AC coefficients and not determining any DC coefficients;
means for determining a respective offset value for each of the plurality of sample values based at least in part on a value associated with the filter coefficients, wherein the respective offset values are for a sample adaptive offset (SAO) filter; and
means for filtering the block of video data based on the determined filter coefficients and the determined respective offset values without filtering the block of video data based on the DC coefficient for the ALF that is not determined.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein determining the respective offset value includes selecting an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: no SAO filter applied, 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, 1D 45-degree edge, 1D less than 45-degree edge, 1D greater than 135 degree edge, central band filter, and side band filter.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein determining the respective offset value includes selecting an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, and 1D 45-degree edge.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein determining filter coefficients includes determining a directional activity for the block of video data and wherein selecting an SAO filter mode includes selecting an SAO filter mode based at least in part on the directional activity.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein determining filter coefficients includes determining a classification for the block of video data based on directional activity of the block of video data and wherein determining a respective offset value includes determining not to apply an SAO filter when the classification for the block of video data is class_0.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein filtering the block of video data based on the determined filter coefficients and the determined respective offset values includes adjusting the value of the one or more of the samples in the block of video data by using the filter coefficients as a weight value and adding the respective offset values to respective sample values.

### Claim 17 (depends on 11)

The apparatus of claim 11, wherein the block of video data is a 4×4 array of sample values block of video data.

### Claim 18 (depends on 11)

The apparatus of claim 11, wherein the block of video data is one of sixteen regions of a video frame.

### Claim 19 (depends on 11)

The apparatus of claim 11, further comprising means for encoding the block of video data using a predictive technique and means for signaling the filter coefficients and respective offset values in an encoded bitstream.

### Claim 20 (depends on 11)

The apparatus of claim 11, further comprising means for decoding the block of video data from an encoded bitstream and wherein determining a respective offset value for each of the plurality of sample values includes decoding the respective offset values from an encoded bitstream.

### Claim 21

A device comprising:
a memory configured to store video data; and
a video coder configured to:
receive a block of the video data, wherein the block of the video data includes a plurality of sample values;
determine filter coefficients for the block of video data for an adaptive loop filter (ALF), wherein determining the filter coefficients for the block of video data includes determining the AC coefficients and not determining any DC coefficients;
determine a respective offset value for each of the plurality of sample values based at least in part on a value associated with the filter coefficients, wherein the respective offset values are for a sample adaptive offset (SAO) filter; and
filter the block of video data based on the determined filter coefficients and the determined respective offset values without filtering the block of video data based on the DC coefficient for the ALF that is not determined.

### Claim 22 (depends on 21)

The device of claim 21, wherein, to determine a respective offset value, the video coder is configured to select an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: no SAO filter applied, 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, 1D 45-degree edge, 1D less than 45-degree edge, 1D greater than 135 degree edge, central band filter, and side band filter.

### Claim 23 (depends on 21)

The device of claim 21, wherein to determine a respective offset value, the video coder is configured to select an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, and 1D 45-degree edge.

### Claim 24 (depends on 23)

The device of claim 23, wherein, to determine filter coefficients, the video coder is configured to determine a directional activity for the block of video data and wherein, to select an SAO filter mode, the video coder is configured to select an SAO filter mode based at least in part on the directional activity.

### Claim 25 (depends on 21)

The device of claim 21, wherein, to determine filter coefficients, the video coder is configured to determine a classification for the block of video data based on directional activity of the block of video data and wherein, to determine a respective offset value, the video is configured to determine not to apply an SAO filter when the classification for the block of video data is class_0.

### Claim 26 (depends on 21)

The device of claim 21, wherein, to filter the block of video data based on the determined one or more filter coefficients and the determined respective offset values, the video coder is configured to adjust the value of the one or more of the samples in the block of video data by using the one or more filter coefficients as a weight value and adding the respective offset values to respective sample values.

### Claim 27 (depends on 21)

The device of claim 21, wherein the block of video data is a 4×4 array of sample values block of video data.

### Claim 28 (depends on 21)

The device of claim 21, wherein the block of video data is one of sixteen regions of a video frame.

### Claim 29 (depends on 21)

The device of claim 21, wherein the video coder comprises a video encoder and is further configured to encode the block of video data using a predictive technique and signal the filter coefficients and respective offset values in an encoded bitstream.

### Claim 30 (depends on 21)

The device of claim 21, wherein the video coder comprises a video decoder, wherein the video decoder is configured to decode the block of video data from an encoded bitstream, and wherein, to determine a respective offset value for each of the plurality of sample values, the video decoder is configured to decode the respective offset values from an encoded bitstream.

### Claim 31

A non-transitory computer-readable storage medium having instructions stored thereon that upon execution cause one or more processors of a video coding device to:
receive a block of video data, wherein the block of video data includes a plurality of sample values;
determine filter coefficients for the block of video data for an adaptive loop filter (ALF), wherein determining the filter coefficients for the block of video data includes determining the AC coefficients and not determining any DC coefficients;
determine a respective offset value for each of the plurality of sample values based at least in part on a value associated with the filter coefficients, wherein the respective offset values are for a sample adaptive offset (SAO) filter; and
filter the block of video data based on the determined filter coefficients and the determined respective offset values without filtering the block of video data based on the DC coefficient for the ALF that is not determined.

### Claim 32 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, wherein the instructions that cause the one or more processors to determine a respective offset value comprise instructions that cause the one or more processors to select an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: no SAO filter applied, 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, 1D 45-degree edge, 1D less than 45-degree edge, 1D greater than 135 degree edge, central band filter, and side band filter.

### Claim 33 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, wherein the instructions that cause the one or more processors to determine a respective offset value comprise instructions that cause the one or more processors to select an SAO filter mode from a set of SAO filter modes, wherein the set of SAO filter modes includes: 1D 0-degree edge, 1D 90-degree edge, 1D 135-degree edge, and 1D 45-degree edge.

### Claim 34 (depends on 33)

The non-transitory computer-readable storage medium of claim 33, wherein the instructions that cause the one or more processors to determine filter coefficients comprise instructions that cause the one or more processors to determine a directional activity for the block of video data and wherein selecting an SAO filter mode includes selecting an SAO filter mode based at least in part on the directional activity.

### Claim 35 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, wherein the instructions that cause the one or more processors to determine filter coefficients comprise instructions that cause the one or more processors to determine a classification for the block of video data based on directional activity of the block of video data, and wherein the instructions that cause the one or more processors to determine a respective offset value comprise the instructions that cause the one or more processors to determine not to apply an SAO filter when the classification for the block of video data is class_0.

### Claim 36 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, wherein the instructions that cause the one or more processors to filter the block of video data based on the determined filter coefficients and the determined respective offset values comprise instructions that cause the one or more processors to adjust the value of the one or more of the samples in the block of video data by using the filter coefficients as a weight value and adding the respective offset values to respective sample values.

### Claim 37 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, wherein the block of video data is a 4×4 array of sample values block of video data.

### Claim 38 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, wherein the block of video data is one of sixteen regions of a video frame.

### Claim 39 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, further comprising instructions that cause the one or more processors to:
encode the block of video data using a predictive technique and signal the filter coefficients and respective offset values in an encoded bitstream.

### Claim 40 (depends on 31)

The non-transitory computer-readable storage medium of claim 31, further comprising instructions that cause the one or more processors to:
decode the block of video data from an encoded bitstream, and wherein the instructions that cause the one or more processors to determine a respective offset value for each of the plurality of sample values comprise instructions that cause the one or more processors to decode the respective offset values from an encoded bitstream.
