# US 2021/0289204 A1 · Method for encoding/decoding image and apparatus therefor

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

- Number: US 2021/0289204 A1
- Document ID: US20210289204A1
- Status: Published application
- Kind: A1
- Application number: 16/318,010
- Filed: 2017-07-13
- Published: 2021-09-16
- Earliest claimed: 2016-07-14
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd
- Inventors: Yin-ji PIAO; Chan-yul KIM
- Web page: https://patentgrep.com/patent/US20210289204A1

## CPC

- H04N 19/124: Quantisation
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

According to an embodiment, an image decoding method and an image decoding apparatus capable of performing the image decoding method are provided. The image decoding method includes determining, based on image data obtained from a bitstream, a plurality of coding units included in a current slice that is one of a plurality of slices included in an image; determining a prediction method performed on a current coding unit that is one of the plurality of coding units; determining a quantization parameter of the current coding unit, based on whether the prediction method performed on the current coding unit is inter prediction or intra prediction; and decoding the image by using the determined quantization parameter. According to an embodiment, an image encoding method and an image encoding apparatus capable of performing the image encoding method involving processes opposite or similar to the image decoding method are provided.

## Claims

### Claim 1

An image decoding method comprising:
determining, based on image data obtained from a bitstream, a plurality of coding units comprised in a current slice that is one of a plurality of slices comprised in an image;
determining a prediction method performed on a current coding unit that is one of the plurality of coding units;
determining a quantization parameter of the current coding unit, based on whether the prediction method performed on the current coding unit is inter prediction or intra prediction; and
decoding the image by using the determined quantization parameter.

### Claim 2 (depends on 1)

The image decoding method of claim 1, wherein the determining of the quantization parameter of the current coding unit comprises:
determining whether a type of the current slice comprising the current coding unit is an intra slice type or an inter slice type; and
when the type of the current slice is an inter slice, determining the quantization parameter of the current coding unit, based on whether the prediction method performed on the current coding unit is the inter prediction or the intra prediction.

### Claim 3 (depends on 1)

The image decoding method of claim 1, wherein the determining of the quantization parameter of the current coding unit comprises:
obtaining at least one offset information from the bitstream; and
determining the quantization parameter of the current coding unit, based on the at least one offset information and a quantization parameter of at least one of an intra coding unit and an inter coding unit, wherein the intra coding unit is a coding unit on which the intra prediction is to be performed and the inter coding unit is a coding unit on which the inter prediction is to be performed.

### Claim 4 (depends on 3)

The image decoding method of claim 3, wherein the determining of the quantization parameter of the current coding unit comprises determining the quantization parameter of the intra coding unit, based on a quantization parameter of the current slice and a first offset comprised in the at least one offset information, wherein the quantization parameter of the intra coding unit is greater than the quantization parameter of the inter coding unit.

### Claim 5 (depends on 4)

The image decoding method of claim 4, wherein the quantization parameter of the inter coding unit is equal to the quantization parameter of the current slice.

### Claim 6 (depends on 3)

The image decoding method of claim 3, wherein the determining of the quantization parameter of the current coding unit comprises:
determining the quantization parameter of the intra coding unit, based on a quantization parameter of the current slice and a first offset comprised in the at least one offset information; and
determining the quantization parameter of the inter coding unit, based on the quantization parameter of the current slice and a second offset comprised in the at least one offset information.

### Claim 7 (depends on 3)

The image decoding method of claim 3, wherein the determining of the quantization parameter of the current coding unit comprises:
determining the quantization parameter of the intra coding unit by adding a third offset to a quantization parameter of the current slice, the third offset being comprised in the at least one offset information; and
determining the quantization parameter of the inter coding unit by subtracting the third offset from the quantization parameter of the current slice, wherein the third offset has a value greater than 0.

### Claim 8 (depends on 3)

The image decoding method of claim 3, wherein the obtaining of the at least one offset information comprises obtaining the at least one offset information from the bitstream with respect to at least one of a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, and a largest coding unit.

### Claim 9 (depends on 1)

The image decoding method of claim 1, wherein the determining of the quantization parameter of the current coding unit comprises:
determining a quantization parameter of the current slice;
determining a base quantization parameter of the current coding unit, based on the quantization parameter of the current slice and a difference quantization parameter obtained from the bitstream according to each of the plurality of coding units;
determining an offset of the current coding unit, based on whether the prediction method performed on the current coding unit is inter prediction or intra prediction; and
determining the quantization parameter of the current coding unit, based on the base quantization parameter and the offset.

### Claim 10 (depends on 1)

The image decoding method of claim 1, wherein the determining of the quantization parameter of the current coding unit comprises, only when the current slice is determined to be a slice to be referred to in a process of performing inter prediction in the image, determining the quantization parameter of the current coding unit based on whether the prediction method performed on the current coding unit is inter prediction or intra prediction.

### Claim 11 (depends on 1)

The image decoding method of claim 1, wherein the determining of the quantization parameter of the current coding unit comprises:
determining whether a size of the current coding unit is equal to or less than a preset size; and
when the size of the current coding unit is equal to or less than the preset size, determining the quantization parameter of the current coding unit based on whether the prediction method performed on the current coding unit is inter prediction or intra prediction.

### Claim 12 (depends on 11)

The image decoding method of claim 11, wherein the determining of the quantization parameter of the current coding unit comprises, when the size of the current coding unit is greater than the preset size, determining the quantization parameter of the current coding unit based on a quantization parameter of the current slice and a difference quantization parameter of the current coding unit, the difference quantization parameter being obtained from the bitstream.

### Claim 13 (depends on 1)

The image decoding method of claim 1, wherein the decoding of the image comprises:
determining a reconstructed image associated with the image, based on the determined quantization parameter;
performing deblocking filtering on the reconstructed image; and
determining a filtered reconstructed image, based on a result of the deblocking filtering.

### Claim 14

An image decoding apparatus comprising:
an obtainer configured to obtain image data from a bitstream;
a decoder configured to determine, based on the image data, a plurality of coding units comprised in a current slice that is one of a plurality of slices comprised in an image, to determine a prediction method performed on a current coding unit that is one of the plurality of coding units, to determine a quantization parameter of the current coding unit, based on whether the prediction method performed on the current coding unit is inter prediction or intra prediction, and to decode the image by using the determined quantization parameter.

### Claim 15

An image encoding method comprising:
determining a plurality of coding units comprised in a current slice that is one of a plurality of slices comprised in an image;
determining a prediction method performed on a current coding unit that is one of the plurality of coding units;
determining a quantization parameter of the current coding unit, based on whether the prediction method performed on the current coding unit is inter prediction or intra prediction; and
generating a bitstream comprising information about the image encoded by using the determined quantization parameter.
