# US 2020/0404289 A1 · Unified intra block copy and inter prediction modes

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

- Number: US 2020/0404289 A1
- Document ID: US20200404289A1
- Status: Published application
- Kind: A1
- Application number: 17/009,358
- Filed: 2020-09-01
- Published: 2020-12-24
- Earliest claimed: 2016-12-18
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Bin Li; Ji-Zheng Xu
- Web page: https://patentgrep.com/patent/US20200404289A1

## CPC

- 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/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/513: Processing of motion vectors
- H04N 19/58: Motion compensation with long-term prediction, i.e. the reference frame for a current frame not being the temporally closest one (H04N19/23 takes precedence)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Innovations in unified intra block copy (“BC”) and inter prediction modes are presented. In some example implementations, bitstream syntax, semantics of syntax elements and many coding/decoding processes for inter prediction mode are reused or slightly modified to enable intra BC prediction for blocks of a frame. For example, to provide intra BC prediction for a current block of a current picture, a motion compensation process applies a motion vector that indicates a displacement within the current picture, with the current picture being used as a reference picture for the motion compensation process. With this unification of syntax, semantics and coding/decoding processes, various coding/decoding tools designed for inter prediction mode, such as advanced motion vector prediction, merge mode and skip mode, can also be applied when intra BC prediction is used, which simplifies implementation of intra BC prediction.

## Claims

### Claim at position 1

-35. (canceled)

### Claim 36

In a computer system that implements a video decoder, a method comprising:
receiving encoded data in a bitstream, the encoded data including a first flag that indicates whether intra block copy (IBC) prediction mode is enabled or disabled, wherein the first flag is part of a sequence parameter set; and
decoding a current picture using at least part of the encoded data, the current picture including multiple blocks, wherein the decoding the current picture includes:
determining a second flag that applies for a current block among the multiple blocks, the second flag indicating a prediction mode for the current block is the IBC prediction mode;
determining a vector for the current block, the vector indicating a displacement within the current picture, including, as part of merge mode processing:
determining a set of merge mode candidates, including, for each of multiple candidates: (a) obtaining the candidate, and (b) if the candidate references the current picture, retaining the candidate in the set of merge mode candidates, but otherwise, the candidate not referencing the current picture, excluding the candidate from the set of merge mode candidates; and
selecting, as the vector for the current block, one of the set of merge mode candidates; and
performing IBC prediction for the current block using the vector.

### Claim 37 (depends on 36)

The method of claim 36, wherein the determining the vector for the current block further includes decoding a merge mode index, and wherein the selecting the one of the set of merge mode candidates uses the merge mode index.

### Claim 38 (depends on 36)

The method of claim 36, wherein the determining the set of merge mode candidates further includes (c) determining that a number of merge mode candidates in the set of merge mode candidates is less than a number of merge mode candidate allowed, and (d) adding one or more candidates to the set of merge mode candidates, up to the number of merge mode candidate allowed.

### Claim 39 (depends on 38)

The method of claim 38, wherein a syntax element in the encoded data indicates the number of merge mode candidate allowed.

### Claim 40 (depends on 36)

The method of claim 36, wherein the current block is a 4×4 block.

### Claim 41 (depends on 36)

The method of claim 36, wherein the determining the second flag includes inferring the second flag.

### Claim 42 (depends on 36)

The method of claim 36, wherein the determining the second flag includes decoding the second flag, the encoded data in the bitstream including the second flag.

### Claim 43 (depends on 36)

The method of claim 36, wherein the bitstream is constrained to include no syntax elements that lead to referencing of a non-reconstructed part of the current picture during the decoding the current picture.

### Claim 44 (depends on 36)

The method of claim 36, wherein the current block is part of a current slice, and wherein the second flag is determined for a coding unit associated with the current block.

### Claim 45

A computer system comprising a processor and memory, wherein the computer system implements a video encoder configured to perform operations comprising:
determining whether to enable or disable intra block copy (IBC) prediction mode;
setting a first flag to indicate whether the IBC prediction mode is enabled or disabled;
encoding a current picture that includes multiple blocks, wherein the encoding the current picture includes:
determining that a prediction mode for a current block among the multiple blocks is the IBC prediction mode, wherein a second flag, which applies for the current block, indicates the prediction mode for the current block is the IBC prediction mode;
determining a vector for the current block, the vector indicating a displacement within the current picture, including, as part of merge mode processing:
determining a set of merge mode candidates, including, for each of multiple candidates: (a) obtaining the candidate, and (b) if the candidate references the current picture, retaining the candidate in the set of merge mode candidates, but otherwise, the candidate not referencing the current picture, excluding the candidate from the set of merge mode candidates; and
selecting, as the vector for the current block, one of the set of merge mode candidates; and
performing IBC prediction for the current block using the vector; and
outputting encoded data as part of a bitstream, the encoded data including the first flag as part of a sequence parameter set.

### Claim 46 (depends on 45)

The computer system of claim 45, wherein the encoded data further includes a merge mode index that indicates the selected one of the set of merge mode candidates.

### Claim 47 (depends on 45)

The computer system of claim 45, wherein the determining the set of merge mode candidates further includes (c) determining that a number of merge mode candidates in the set of merge mode candidates is less than a number of merge mode candidate allowed, and (d) adding one or more candidates to the set of merge mode candidates, up to the number of merge mode candidate allowed.

### Claim 48 (depends on 47)

The computer system of claim 47, wherein a syntax element in the encoded data indicates the number of merge mode candidate allowed.

### Claim 49 (depends on 45)

The computer system of claim 45, wherein the current block is a 4×4 block.

### Claim 50 (depends on 45)

The computer system of claim 45, wherein the encoded data lacks the second flag.

### Claim 51 (depends on 45)

The computer system of claim 45, wherein the encoded data includes the second flag.

### Claim 52 (depends on 45)

The computer system of claim 45, wherein the encoding the current picture includes setting values of syntax elements of the bitstream such that none of the syntax elements leads to referencing of a non-reconstructed part of the current picture during decoding the current picture.

### Claim 53 (depends on 45)

The computer system of claim 45, wherein the current block is part of a current slice, and wherein the second flag is signaled for a coding unit associated with the current block.

### Claim 54

One or more computer-readable media having stored thereon encoded data in a bitstream, the encoded data including a first flag that indicates whether intra block copy (IBC) prediction mode is enabled or disabled, wherein the first flag is part of a sequence parameter set for a video sequence, the video sequence including a current picture that includes multiple blocks, the encoded data being organized to facilitate decoding the current picture with a video decoder by operations comprising:
determining a second flag that applies for a current block among the multiple blocks, the second flag indicating a prediction mode for the current block is the IBC prediction mode;
determining a vector for the current block, the vector indicating a displacement within the current picture, including, as part of merge mode processing:
determining a set of merge mode candidates, including, for each of multiple candidates: (a) obtaining the candidate, and (b) if the candidate references the current picture, retaining the candidate in the set of merge mode candidates, but otherwise, the candidate not referencing the current picture, excluding the candidate from the set of merge mode candidates; and
selecting, as the vector for the current block, one of the set of merge mode candidates; and
performing IBC prediction for the current block using the vector.

### Claim 55 (depends on 54)

The one or more computer-readable media of claim 54, wherein the determining the second flag includes decoding the second flag, the encoded data in the bitstream including the second flag.
