# US 2022/0295105 A1 · Image or video coding based on escape binarization in palette mode

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

- Number: US 2022/0295105 A1
- Document ID: US20220295105A1
- Status: Published application
- Kind: A1
- Application number: 17/639,129
- Filed: 2020-08-31
- Published: 2022-09-15
- Earliest claimed: 2019-08-29
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: SUNMI YOO; Junghak Nam; Seunghwan Kim; Jie Zhao
- Web page: https://patentgrep.com/patent/US20220295105A1

## CPC

- H04N 19/124: Quantisation
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- 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/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

According to the disclosure of the present document, an escape value may be effectively binarized on the basis of a maximum value of an escape value, which may be inferred by a quantization parameter in a palette mode. Accordingly, in a palette mode, the length of a bin may be adjusted or the number bits may be saved, according to a maximum value of an escape value, whereby coding efficiency may be improved.

## Claims

### Claim 1

An image decoding method performed by a decoding apparatus, the image decoding method comprising:
obtaining image information including information on a quantized escape value in a palette mode and information on a quantization parameter from a bitstream;
deriving an escape value for a current block based on the information on the quantized escape value and the information on the quantization parameter; and
generating a reconstructed sample of the current block based on the escape value,
wherein the information on the quantized escape value is obtained based on a binarization process,
the binarization process is performed based on a maximum value of the information on the quantized escape value, and
the maximum value is derived based on a quantization parameter derived from the information on the quantization parameter.

### Claim 2 (depends on 1)

The image decoding method of claim 1, wherein
the binarization process includes performing a truncated binary (TB) binarization on the information on the quantized escape value based on the maximum value.

### Claim 3 (depends on 2)

The image decoding method of claim 2, wherein
the information on the quantized escape value has symbol values from 0 to the maximum value,
in the TB binarization on the information on the quantized escape value, first u symbols are indicated based on k bits and remaining cMax−u+1 symbols are indicated based on (k+1) bits,
cMax indicates the maximum value,
k indicates an integer satisfying 2k≤cMax<2k+1, and
u is derived based on 2k+1−(cMax+1).

### Claim 4 (depends on 2)

The image decoding method of claim 2, wherein,
in the TB binarization, the maximum value is derived based on Clip(0, (1<<bitDepth)−1, (quantScale[qRem]*maxValue+(1<<(qBits−1)))>>qBits, bitDepth is a bit depth, quantScale is an array including k scale values, maxValue is derived based on (1<<bitDepth)−1, qRem is derived based on QP % 6, qBits is derived based on 14+(QP/6), and QP is the quantization parameter.

### Claim 5 (depends on 1)

The image decoding method of claim 1, wherein
the binarization process includes performing fixed length binarization on information on the quantized escape value.

### Claim 6 (depends on 5)

The image decoding method of claim 5, wherein,
in the FL binarization, the maximum value is derived based on Clip(0, (1<<bitDepth)−1, (1<<binLength)−1),
bitDepth is a bit depth,
binLength is derived based on bitDepth−(Max(0, QP−5)/6), and
QP is the quantization parameter.

### Claim 7 (depends on 1)

The image decoding method of claim 1, wherein
the binarization process includes performing k-th order Exp-Golomb (EG) binarization on the information on the quantized escape information.

### Claim 8 (depends on 7)

The image decoding method of claim 7, wherein,
in the k-th order EG binarization, the k-th order is determined variably based on the maximum value.

### Claim 9 (depends on 1)

The image decoding method of claim 1, wherein,
for the current block including at least one escape-coded sample, the information on the quantized escape value is included in the image information.

### Claim 10 (depends on 1)

The image decoding method of claim 1, wherein
the information on the quantized escape value is a syntax element for a quantized escape value of an escape-coded sample in the current block.

### Claim 11 (depends on 1)

The image decoding method of claim 1, wherein
the information on the quantization parameter is a syntax element for a minimum quantization parameter for a transform skip mode.

### Claim 12

An image encoding method performed by an encoding apparatus, the image encoding method comprising:
deriving an escape value in a palette mode for a current block;
deriving a quantized escape value based on the escape value and a quantization parameter; and
encoding image information including information on the quantized escape value,
wherein the information on the quantized escape value is encoded based on a binarization process,
the binarization process is performed based on a maximum value of the information on the quantized escape value, and
the maximum value is derived based on the quantization parameter.

### Claim 13 (depends on 12)

The image encoding method of claim 12, wherein
the binarization process includes performing a truncated binary (TB) binarization on the information on the quantized escape value based on the maximum value.

### Claim 14 (depends on 12)

The image encoding method of claim 12, wherein
the binarization process includes performing fixed length binarization on information on the quantized escape value.

### Claim 15 (depends on 12)

The image encoding method of claim 12, wherein
the binarization process includes performing k-th order Exp-Golomb (EG) binarization on the information on the quantized escape information.

### Claim 16 (depends on 15)

The image encoding method of claim 15, wherein,
in the k-th order EG binarization, the k-th order is determined variably based on the maximum value.

### Claim 17 (depends on 12)

The image encoding method of claim 12, wherein
for the current block including at least one escape-coded sample, the information on the quantized escape value is included in the image information.

### Claim 18 (depends on 12)

The image encoding method of claim 12, wherein
the information on the quantized escape value is a syntax element for a quantized escape value of an escape-coded sample in the current block.

### Claim 19 (depends on 12)

The image encoding method of claim 12, wherein
the information on the quantization parameter is a syntax element for a minimum quantization parameter for a transform skip mode.

### Claim 20

A computer-readable storage medium storing encoded information causing an image decoding apparatus to perform an image decoding method, wherein the image decoding method comprising:
obtaining image information including information on a quantized escape value in a palette mode and information on a quantization parameter from a bitstream;
deriving an escape value for a current block based on the information on the quantized escape value and the information on the quantization parameter; and
generating a reconstructed sample of the current block based on the escape value,
wherein the information on the quantized escape value is obtained based on a binarization process,
the binarization process is performed based on a maximum value of the information on the quantized escape value, and
the maximum value is derived based on a quantization parameter derived from the information on the quantization parameter.
