# US 2020/0404265 A1 · Offset decoding device, offset coding device, image filtering device

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

- Number: US 2020/0404265 A1
- Document ID: US20200404265A1
- Status: Published application
- Kind: A1
- Application number: 17/008,475
- Filed: 2020-08-31
- Published: 2020-12-24
- Earliest claimed: 2011-06-23
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co.,Ltd.
- Inventors: Takanori Yamazaki; Tomohiro Ikai; Tomoyuki Yamamoto; Yukinobu Yasugi
- Web page: https://patentgrep.com/patent/US20200404265A1

## CPC

- 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/182: the unit being a pixel
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/463: by compressing encoding parameters before transmission
- 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/96: Tree coding, e.g. quad-tree coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An adaptive offset filter (60) adds an offset to the pixel value of each pixel forming an input image. The adaptive offset filter (60) refers to offset-type specifying information, sets offset attributes for a subject unit area of the input image, decodes an offset having a bit width corresponding to an offset value range included in the set offset attributes, and adds the offset to the pixel value of each pixel forming the input image.

## Claims

### Claim 1

An image filtering device, comprising:
an offset attribute setting unit, configured to set an upmost limitation of an offset value range in accordance with a bit depth of pixel values of pixels forming an original image to be encoded;
an offset decoding unit, configured to encode an offset value which is restricted to be within the offset value range, wherein an offset bit depth of the offset value is equal to one of:
the bit depth of the pixel values in a case in which the bit depth of the pixel values is ten or smaller, or
the offset bit depth of the offset value is equal to ten in a case in which the bit depth of the pixel values is eleven or greater;
wherein the offset attribute setting unit is configured to set a maximum bit length representing the upmost limitation of the offset value range to be (the offset bit depth−K) or smaller, wherein the upmost limitation of the offset value range is determined to be (2(the offset bit depth-K-1)−1), and K is an integer greater than 0;
an offset-type determining unit, configured to determine, among first and second offset types, an offset type to which a subject unit area including the pixel forming the input image belongs; and
a filtering unit, configured to left-shift the offset value according to a shift value, and add left-shifted offset value to a pixel value of a pixel included in an input image which is constituted by a plurality of unit areas that are reconstructed by a decoding process, wherein the shift value is equal to (bit depth of the pixel value-minus offset bit depth of the offset value).

### Claim 2 (depends on 1)

The image filtering device according to claim 1, wherein a value of K is equal to 4.

### Claim 3

An image filtering method, comprising:
setting, by a Sample Adaptive Offset (SAO) filter, an upmost limitation of an offset value range in accordance with a bit depth of pixel values of pixels forming an original image to be encoded;
encoding, by a encoder, an offset value which is restricted to be within the offset value range, wherein an offset bit depth of the offset value is equal to one of:
the bit depth of the pixel values in a case in which the bit depth of the pixel values is ten or smaller, or
the offset bit depth of the offset value is ten in a case in which the bit depth of the pixel values is eleven or greater;
wherein a maximum bit length representing the upmost limitation of the offset value range is set by the SAO filter to be (the offset bit depth−K) or smaller, wherein the upmost limitation of the offset value range is determined to be (2(the offset bit depth-K-1)−1), and K is an integer greater than 0;
determining, among first and second offset types, an offset type to which a subject unit area including the pixel forming the input image belongs;
left-shifting the offset value by the SAO filter according to a shift value and adding by the SAO filter the left-shifted offset value to a pixel value of a pixel included in an input image which is constituted by a plurality of unit areas that are reconstructed by a decoding process, wherein the shift value is equal to (bit depth of the pixel value minus offset bit depth of the offset value).

### Claim 4 (depends on 3)

The image filtering method according to claim 3, wherein a value of K is equal to 4.

### Claim 5

An image filtering device comprising:
a non-transitory memory having processor-executable instructions stored thereon; and
a processor in communication with the non-transitory memory, the processor being configured to execute the processor-executable instructions stored in the non-transitory memory to cause the image filtering device to perform the steps of:
setting an upmost limitation of an offset value range in accordance with a bit depth of pixel values of pixels forming an original image to be encoded;
encoding an offset value which is restricted to be within the offset value range, wherein:
an offset bit depth of the offset value is equal to the bit depth of the pixel values in a case in which the bit depth of the pixel values is ten or smaller, or
the offset bit depth of the offset value is equal to ten in a case in which the bit depth of the pixel values is eleven or greater; and, wherein a maximum bit length representing the upmost limitation of the offset value range is set by the SAO filter to be (the offset bit depth−K) or smaller,
wherein the upmost limitation of the offset value range is determined to be (2(the offset bit depth-K-1)−1), and K is an integer greater than 0;
determining, among first and second offset types, an offset type to which a subject unit area including the pixel forming the input image belongs;
left-shifting the offset value according to a shift value, and adding left-shifted offset value to a pixel value of a pixel included in an input image which is constituted by a plurality of unit areas that are reconstructed by a decoding process, wherein the shift value is equal to (bit depth of the pixel value minus offset bit depth of the offset value).

### Claim 6 (depends on 5)

The image filtering device according to claim 5, wherein a value of K is equal to 4.
