# US 2016/0366413 A1 · Sample adaptive offset coding

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

- Number: US 2016/0366413 A1
- Document ID: US20160366413A1
- Status: Published application
- Kind: A1
- Application number: 14/737,790
- Filed: 2015-06-12
- Published: 2016-12-15
- Earliest claimed: 2015-06-12
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Ximin Zhang; Sang-Hee Lee; Dmitry E. Ryzhov
- Web page: https://patentgrep.com/patent/US20160366413A1

## 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/114: Adapting the group of pictures [GOP] structure, e.g. number of B-frames between two anchor frames (H04N19/107 takes precedence)
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/124: Quantisation
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/142: Detection of scene cut or scene change
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/172: the region being a picture, frame or field
- H04N 19/177: the unit being a group of pictures [GOP]
- H04N 19/179: the unit being a scene or a shot
- H04N 19/197: {including determination of the initial value of an encoding parameter (H04N19/56 takes precedence)}
- H04N 19/52: by predictive encoding
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Techniques related to video coding with sample adaptive offset coding are discussed. Such techniques may include setting a sample adaptive offset coding flag for a picture of a group of pictures based at least in part on a comparison of an available coding bit limit of the picture to a first threshold and a quantization parameter of the picture to a second threshold. In some examples, such techniques may also include setting the sample adaptive offset coding flag based on a coding structure associated with coding the group of pictures.

## Claims

### Claim 1

A computer-implemented method for video coding comprising:
determining, for an individual picture of a group of pictures, an available coding bit limit and a quantization parameter;
setting a sample adaptive offset coding flag for the individual picture based at least in part on a comparison of the available coding bit limit to a first threshold and the quantization parameter to a second threshold; and
coding the individual picture based at least in part on the sample adaptive offset coding flag.

### Claim 2 (depends on 1)

The method of claim 1, wherein the sample adaptive offset coding flag for the individual picture is set to off when the available coding bit limit is not greater than the first threshold and the quantization parameter is not less than the second threshold.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first threshold comprises an adaptive threshold based on a resolution of the individual picture.

### Claim 4 (depends on 1)

The method of claim 1, wherein the available coding bit limit is not less than the first threshold or the quantization parameter is not greater than the second threshold, the method further comprising:
determining the individual picture is a scene change picture; and
setting the sample adaptive offset coding flag to on based on the determination the individual picture is a scene change picture.

### Claim 5 (depends on 1)

The method of claim 1, wherein the available coding bit limit is not less than the first threshold or the quantization parameter is not greater than the second threshold, the method further comprising:
setting the sample adaptive offset coding flag for the individual picture based at least in part on a coding structure associated with coding the group of pictures.

### Claim 6 (depends on 5)

The method of claim 5, wherein the individual picture comprises an I-picture, and setting the sample adaptive offset coding flag comprises setting the sample adaptive offset coding flag to on.

### Claim 7 (depends on 5)

The method of claim 5, wherein the coding structure comprises a hierarchical B structure, the individual picture comprises a non-reference B-picture, and setting the sample adaptive offset coding flag comprises setting the sample adaptive offset coding flag to off.

### Claim 8 (depends on 5)

The method of claim 5, wherein the coding structure comprises a hierarchical B structure, the individual picture comprises at least one of a B1-picture or a B2-picture, and setting the sample adaptive offset coding flag comprises setting the sample adaptive offset coding flag to off.

### Claim 9 (depends on 5)

The method of claim 5, wherein the coding structure comprises a low delay coding structure and setting the sample adaptive offset coding flag for the individual picture comprises setting sample adaptive offset coding flags to the group of pictures at a fixed picture interval.

### Claim 10 (depends on 5)

The method of claim 5, wherein the coding structure comprises an adaptive quantization parameter low delay coding structure and setting the sample adaptive offset coding flag for the individual picture comprises setting the flag to off when a high quantization parameter is associated with the individual picture and setting the flag to on when a low quantization parameter is associated with the individual picture.

### Claim 11 (depends on 1)

The method of claim 1, wherein the sample adaptive offset coding flag is on, the method further comprising:
determining the individual picture matches a reference picture associated with the individual picture; and
setting the sample adaptive offset coding flag to off based on the determination the individual picture matches the reference picture.

### Claim 12 (depends on 1)

The method of claim 1, wherein the sample adaptive offset coding flag is on, the method further comprising:
determining, for a coding unit of the individual picture, at least one of a motion vector associated with the coding unit is a zero vector or a prediction residue associated with the coding unit is not greater than a third threshold; and
setting a coding unit sample adaptive offset flag to off for the coding unit.

### Claim 13 (depends on 1)

The method of claim 1, wherein the sample adaptive offset coding flag is on, the method further comprising:
determining, for a coding unit of the individual picture, a motion vector associated with the coding unit is a zero vector and a second quantization parameter of a reference coding unit associated with the coding unit is not less than a third threshold; and
copying sample adaptive offset parameters of the reference coding unit for the coding unit of the individual picture.

### Claim 14

A system for video encoding comprising:
a memory to store a group of pictures; and
a graphics processor coupled to the memory, the graphics processor to determine, for an individual picture of the group of pictures, an available coding bit limit and a quantization parameter, set a sample adaptive offset coding flag for the individual picture based at least in part on a comparison of the available coding bit limit to a first threshold and the quantization parameter to a second threshold, and code the individual picture based at least in part on the sample adaptive offset coding flag.

### Claim 15 (depends on 14)

The system of claim 14, wherein the available coding bit limit is not less than the first threshold or the quantization parameter is not greater than the second threshold and the graphics processor is further to set the sample adaptive offset coding flag for the individual picture based at least in part on a coding structure associated with coding the group of pictures.

### Claim 16 (depends on 15)

The system of claim 15, wherein the coding structure comprises a hierarchical B structure, the individual picture comprises a non-reference B-picture, and the graphics processor to set the sample adaptive offset coding flag comprises the graphics processor to set the sample adaptive offset coding flag to off.

### Claim 17 (depends on 15)

The system of claim 15, wherein the coding structure comprises a low delay coding structure and the graphics processor to set the sample adaptive offset coding flag for the individual picture comprises the graphics processor to set sample adaptive offset coding flags to the group of pictures at a fixed picture interval.

### Claim 18 (depends on 15)

The system of claim 15, wherein the coding structure comprises an adaptive quantization parameter low delay coding structure and the graphics processor to set the sample adaptive offset coding flag for the individual picture comprises the graphics processor to set the flag to off when a high quantization parameter is associated with the individual picture and set the flag to on when a low quantization parameter is associated with the individual picture.

### Claim 19 (depends on 14)

The system of claim 14, wherein the sample adaptive offset coding flag is on, and the graphics processor is further to determine, for a coding unit of the individual picture, a motion vector associated with the coding unit is a zero vector and a second quantization parameter of a reference coding unit associated with the coding unit is not less than a third threshold and copy sample adaptive offset parameters of the reference coding unit for the coding unit of the individual picture.

### Claim 20

At least one machine readable medium comprising a plurality of instructions that, in response to being executed on a computing device, cause the computing device to perform video coding by:
determining, for an individual picture of a group of pictures, an available coding bit limit and a quantization parameter;
setting a sample adaptive offset coding flag for the individual picture based at least in part on a comparison of the available coding bit limit to a first threshold and the quantization parameter to a second threshold; and
coding the individual picture based at least in part on the sample adaptive offset coding flag.

### Claim 21 (depends on 20)

The machine readable medium of claim 20, wherein the available coding bit limit is not less than the first threshold or the quantization parameter is not greater than the second threshold, the machine readable medium comprising further instructions that, in response to being executed on the computing device, cause the computing device to perform video coding by:
setting the sample adaptive offset coding flag for the individual picture based at least in part on a coding structure associated with coding the group of pictures.

### Claim 22 (depends on 21)

The machine readable medium of claim 21, wherein the coding structure comprises a hierarchical B structure, the individual picture comprises a non-reference B-picture, and setting the sample adaptive offset coding flag comprises setting the sample adaptive offset coding flag to off.

### Claim 23 (depends on 21)

The machine readable medium of claim 21, wherein the coding structure comprises a low delay coding structure and setting the sample adaptive offset coding flag for the individual picture comprises setting sample adaptive offset coding flags to the group of pictures at a fixed picture interval.

### Claim 24 (depends on 21)

The machine readable medium of claim 21, wherein the coding structure comprises an adaptive quantization parameter low delay coding structure and setting the sample adaptive offset coding flag for the individual picture comprises setting the flag to off when a high quantization parameter is associated with the individual picture and setting the flag to on when a low quantization parameter is associated with the individual picture.

### Claim 25 (depends on 20)

The machine readable medium of claim 20, wherein the sample adaptive offset coding flag is on, the machine readable medium comprising further instructions that, in response to being executed on the computing device, cause the computing device to perform video coding by:
determining, for a coding unit of the individual picture, a motion vector associated with the coding unit is a zero vector and a second quantization parameter of a reference coding unit associated with the coding unit is not less than a third threshold; and
copying sample adaptive offset parameters of the reference coding unit for the coding unit of the individual picture.
