# US 2022/0191486 A1 · Encoder-side decisions for sample adaptive offset filtering

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

- Number: US 2022/0191486 A1
- Document ID: US20220191486A1
- Status: Published application
- Kind: A1
- Application number: 17/684,514
- Filed: 2022-03-02
- Published: 2022-06-16
- Earliest claimed: 2016-10-28
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Bin Li; You Zhou; Jizheng Xu; Chih-Lung Lin; Feng Wu
- Web page: https://patentgrep.com/patent/US20220191486A1

## 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/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N 19/172: the region being a picture, frame or field
- 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/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/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed herein are exemplary embodiments of innovations in the area of encoding pictures or portions of pictures (e.g., slices, coding tree units, or coding units) and determining whether and how certain filtering operation should be performed and flagged for performance by the decoder in the bitstream. In particular examples, various implementations for setting the sample adaptive offset (SAO) syntax elements in the H.265/HEVC standard are disclosed. Although these examples concern the H.265/HEVC standard and its SAO filter, the disclosed technology is more widely applicable to other video codecs that involve filtering operations (particularly multi-stage filtering operations) as part of their encoding and decoding processes.

## Claims

### Claim at position 1

-17. (canceled)

### Claim 18

In a computing device implementing a video encoder or image encoder, a method comprising:
for a series of pictures or picture portions being encoded, periodically applying a second stage of filtering of a multi-stage filtering process;
for each picture or picture portion in the series, specifying one or more syntax elements for controlling the second stage of filtering, including a syntax element that signals the periodic application of the second stage;
encoding the series of picture portions in a bitstream, the bitstream further including the specified one or more syntax elements that control application of the second stage of filtering; and
outputting the bitstream.

### Claim 19 (depends on 18)

The method of claim 18, wherein the periodically applying comprises applying the second stage of filtering every n pictures, and wherein n is an integer value greater than or equal to 2.

### Claim 20

(canceled)

### Claim 21 (depends on 18)

The method of claim 18, wherein the periodically applying comprises applying the second stage of filtering every n picture portions, and wherein n is an integer value greater than or equal to 2.

### Claim 22 (depends on 21)

The method of claim 21, wherein the periodically applying further comprises varying the applying the second stage of filtering regionally from picture to picture, so that a given region does not have the second stage of filtering disabled between consecutive pictures.

### Claim 23 (depends on 21)

The method of claim 21, wherein the picture portions are coding tree units.

### Claim 24 (depends on 21)

The method of claim 21, wherein the picture portions are slices.

### Claim 25 (depends on 18)

The method of claim 18, wherein the second stage of filtering comprises sample adaptive offset (SAO) filtering, and wherein a first stage of filtering of the multi-stage filtering process comprises applying a deblocking filter.

### Claim 26 (depends on 25)

The method of claim 25, wherein the SAO filtering includes applying an edge offset (EO) technique, wherein the specifying comprises specifying a SAO parameter that indicates an EO class and SAO parameters that indicate offset values for the EO technique, and wherein the SAO parameter that indicates the EO class indicates which one of multiple directional one-dimensional patterns is to be used when applying the EO technique.

### Claim 27 (depends on 25)

The method of claim 25, wherein the SAO filtering includes applying a band offset (BO) technique, and wherein the specifying comprises specifying an SAO parameter that indicates a starting band position for applying offset values and SAO parameters that indicate the offset values for bands to which the BO technique is to be applied.

### Claim 28 (depends on 18)

The method of claim 18, wherein the periodically applying uses a fixed period.

### Claim 29 (depends on 18)

The method of claim 18, wherein the second stage of filtering includes non-linear filter operations, transform operations, or another type of filter operations.

### Claim 30

One or more tangible computer-readable media storing computer-executable instructions for causing a computing device, when programmed thereby, to perform operations comprising:
for a series of pictures or picture portions being encoded, periodically applying a second stage of filtering of a multi-stage filtering process;
for each picture or picture portion in the series, specifying one or more syntax elements for controlling the second stage of filtering, the one or more syntax elements including a syntax element that signals the periodic application of the second stage of filtering;
encoding the series of picture portions, thereby producing a bitstream, the bitstream including the specified one or more syntax elements for controlling application of the second stage of filtering; and
outputting the bitstream.

### Claim 31 (depends on 30)

The one or more computer-readable media of claim 30, wherein the periodically applying comprises applying the second stage of filtering every n pictures, and wherein n is an integer value greater than or equal to 2.

### Claim 32 (depends on 30)

The one or more computer-readable media of claim 30, wherein the periodically applying comprises applying the second stage of filtering every n picture portions, and wherein n is an integer value greater than or equal to 2.

### Claim 33 (depends on 32)

The one or more computer-readable media of claim 32, wherein the periodically applying further comprises varying the applying the second stage of filtering regionally from picture to picture, so that a given region does not have the second stage of filtering disabled between consecutive pictures.

### Claim 34 (depends on 32)

The one or more computer-readable media of claim 32, wherein the picture portions are coding tree units or slices.

### Claim 35 (depends on 30)

The one or more computer-readable media of claim 30, wherein the second stage of filtering comprises sample adaptive offset (SAO) filtering, and wherein a first stage of filtering of the multi-stage filtering process comprises applying a deblocking filter.

### Claim 36 (depends on 30)

The one or more computer-readable media of claim 30, wherein the periodically applying uses a fixed period.

### Claim 37

A computer system comprising:
a video encoder, implemented using one or more processors and memory, configured to perform operations, the operations comprising:
for a series of pictures or picture portions being encoded, periodically applying a second stage of filtering of a multi-stage filtering process;
for each picture or picture portion in the series, specifying one or more syntax elements for controlling the second stage of filtering, the one or more syntax elements including a syntax element that signals the periodic application of the second stage of filtering; and
encoding the series of picture portions, thereby producing a bitstream, the bitstream including the specified one or more syntax elements for controlling application of the second stage of filtering; and
a buffer configured to store the bitstream for output.

### Claim 38 (depends on 37)

The computer system of claim 37, wherein the periodically applying comprises applying the second stage of filtering every n picture portions, and wherein n is an integer value greater than or equal to 2.
