# US 2020/0221138 A1 · Method and apparatus for entropy-encoding and entropy-decoding video signal

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

- Number: US 2020/0221138 A1
- Document ID: US20200221138A1
- Status: Published application
- Kind: A1
- Application number: 16/645,400
- Filed: 2018-11-07
- Published: 2020-07-09
- Earliest claimed: 2017-09-07
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Jaeho LEE
- Web page: https://patentgrep.com/patent/US20200221138A1

## CPC

- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- 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/176: the region being a block, e.g. a macroblock
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/51: Motion estimation or motion compensation
- H04N 19/54: using feature points or meshes
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

The present invention relates to a method for performing entropy decoding on a video signal including a current block. The method comprises the steps of: deriving affine coding information and/or affine prediction mode information of a left block and/or an upper block which are adjacent to the current block; determining a context index of a syntax element associated with an affine prediction of the current block on the basis of at least one of the affine coding information and/or the affine prediction mode information of the left block and/or the upper block; and entropy decoding the syntax element associated with the affine prediction of the current block on the basis of the context index.

## Claims

### Claim 1

A method of performing entropy decoding on a video signal including a current block, the method comprising:
checking whether a left block and top block neighboring the current block are available;
deriving affine coding information and/or affine prediction mode information of the left block and/or the top block when at least one of the left block and/or the top block is available;
determining a context index of an affine prediction-related syntax element of the current block based on at least one of the affine coding information and/or affine prediction mode information of the left block and/or the top block; and
entropy-decoding an affine prediction-related syntax element of the current block based on the context index,
wherein the affine coding information is information indicating whether an affine motion prediction has been performed,
wherein the affine prediction mode information is information indicating whether the affine motion prediction is performed based on an AF4 mode or an AF6 mode,
wherein the AF4 mode indicates that an affine motion prediction is performed by four parameters, and
wherein the AF6 mode indicates that an affine motion prediction is performed by six parameters.

### Claim 2 (depends on 1)

The method of claim 1,
wherein when the affine prediction-related syntax element includes an affine flag, a context index of the affine flag is determined based on a sum of the affine coding information of the left block and the affine coding information of the top block, and
wherein the affine flag is a flag indicating whether an affine motion prediction has been performed.

### Claim 3 (depends on 1)

The method of claim 1,
wherein when the affine prediction-related syntax element includes an affine parameter flag, a context index of the affine parameter flag is determined based on a sum of a first value determined by the affine coding information and affine prediction mode information of the left block and a second value determined by the affine coding information and affine prediction mode information of the top block, and
wherein the affine parameter flag is a flag indicating whether an affine motion prediction is performed based on the AF4 mode or the AF6 mode.

### Claim 4 (depends on 3)

The method of claim 3,
wherein an affine motion prediction is performed on the left block based on the affine flag, and
wherein the first value is determined as 1 when the left block is coded based on the AF6 mode based on the affine parameter flag, and the first value is determined as 0 when the left block is not coded based on the AF6 mode based on the affine parameter flag.

### Claim 5 (depends on 3)

The method of claim 3,
wherein an affine motion prediction is performed on the top block based on the affine flag, and
wherein the second value is determined as 1 when the top block is coded based on the AF6 mode based on the affine parameter flag, and the second value is determined as 0 when the top block is not coded based on the AF6 mode based on the affine parameter flag.

### Claim 6 (depends on 1)

The method of claim 1,
wherein when the affine prediction-related syntax element includes an affine motion vector predictor index and/or a non-affine motion vector predictor index, the affine motion vector predictor index and the non-affine motion vector predictor index are defined by different tables,
wherein the affine motion vector predictor index indicates a candidate used for an affine motion prediction, and
wherein the non-affine motion vector predictor index indicates a candidate used for an inter prediction.

### Claim 7

An apparatus performing entropy decoding on a video signal including a current block, the apparatus comprising:
a context modeling unit configured to check whether a left block and top block neighboring the current block are available, derive affine coding information and/or affine prediction mode information of the left block and/or the top block when at least one of the left block and/or the top block is available, and determine a context index of an affine prediction-related syntax element of the current block based on at least one of the affine coding information and/or affine prediction mode information of the left block and/or the top block; and
a binary arithmetic decoding unit configured to entropy-decode an affine prediction-related syntax element of the current block based on the context index,
wherein the affine coding information is information indicating whether an affine motion prediction has been performed,
wherein the affine prediction mode information is information indicating whether the affine motion prediction is performed based on an AF4 mode or an AF6 mode,
wherein the AF4 mode indicates that an affine motion prediction is performed by four parameters, and
wherein the AF6 mode indicates that an affine motion prediction is performed by six parameters.

### Claim 8 (depends on 7)

The apparatus of claim 7,
wherein when the affine prediction-related syntax element includes an affine flag, a context index of the affine flag is determined based on a sum of the affine coding information of the left block and the affine coding information of the top block, and
wherein the affine flag is a flag indicating whether an affine motion prediction has been performed.

### Claim 9 (depends on 7)

The apparatus of claim 7,
wherein when the affine prediction-related syntax element includes an affine parameter flag, a context index of the affine parameter flag is determined based on a sum of a first value determined by the affine coding information and affine prediction mode information of the left block and a second value determined by the affine coding information and affine prediction mode information of the top block, and
wherein the affine parameter flag is a flag indicating whether an affine motion prediction is performed based on the AF4 mode or the AF6 mode.

### Claim 10 (depends on 9)

The apparatus of claim 9,
wherein an affine motion prediction is performed on the left block based on the affine flag, and
wherein the first value is determined as 1 when the left block is coded based on the AF6 mode based on the affine parameter flag, and the first value is determined as 0 when the left block is not coded based on the AF6 mode based on the affine parameter flag.

### Claim 11 (depends on 9)

The apparatus of claim 9,
wherein an affine motion prediction is performed on the top block based on the affine flag, and
wherein the second value is determined as 1 when the top block is coded based on the AF6 mode based on the affine parameter flag, and the second value is determined as 0 when the top block is not coded based on the AF6 mode based on the affine parameter flag.

### Claim 12 (depends on 7)

The apparatus of claim 7,
wherein when the affine prediction-related syntax element includes an affine motion vector predictor index and/or a non-affine motion vector predictor index, the affine motion vector predictor index and the non-affine motion vector predictor index are defined by different tables,
wherein the affine motion vector predictor index indicates a candidate used for an affine motion prediction, and
wherein the non-affine motion vector predictor index indicates a candidate used for an inter prediction.
