# US 2022/0046272 A1 · Coding of block vectors for intra block copy-coded blocks

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

- Number: US 2022/0046272 A1
- Document ID: US20220046272A1
- Status: Published application
- Kind: A1
- Application number: 17/506,539
- Filed: 2021-10-20
- Published: 2022-02-10
- Earliest claimed: 2019-05-25
- Assignees: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Inventors: Li ZHANG; Jizheng XU; Kai ZHANG; Hongbin LIU
- Web page: https://patentgrep.com/patent/US20220046272A1

## CPC

- H04N 19/52: by predictive encoding
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/139: Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- 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

Methods, devices and systems for intra-block coding based decoding or encoding of video while using block vector signaling and/or merge candidates are disclosed. An example method for video processing includes performing a conversion between a video region of a video and a bitstream representation of the video, wherein the bitstream representation selectively includes motion vector difference (MVD) related syntax elements for an intra block copy (IBC) advanced motion vector prediction (AMVP) mode based on a maximum number of a first type of IBC candidates used during the conversion of the video region, wherein, when an IBC mode is applied, samples of the video region are predicted from other samples in a video picture corresponding to the video region.

## Claims

### Claim 1

A method for video processing, comprising:
performing a conversion between a video region of a video and a bitstream of the video, wherein whether to include at least one syntax element for an intra block copy (IBC) motion vector prediction mode in the bitstream is based on a maximum number of IBC candidates used during the conversion of the video region,
wherein, when an IBC mode is applied, samples of the video region are predicted from other samples in a video picture comprising the video region; and when an IBC motion vector prediction mode is applied, a vector of the video region is derived based on a vector predictor and a vector difference.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least one syntax element includes a motion vector predictor index.

### Claim 3 (depends on 1)

The method of claim 1, wherein the at least one syntax element includes a precision of a motion vector predictor, motion vector differences, and a precision of a motion vector difference of the IBC motion vector prediction mode.

### Claim 4 (depends on 1)

The method of claim 1, wherein, based on the maximum number of the IBC candidates being larger than to K, the bitstream includes the at least one syntax element and based on the maximum number of the IBC candidates being smaller than or equal to K, the bitstream excludes the at least one syntax element.

### Claim 5 (depends on 4)

The method of claim 4, wherein a motion vector predictor index comprised in the at least one syntax element is excluded, and the motion vector predictor index is inferred to be zero.

### Claim 6 (depends on 4)

The method of claim 4, wherein K=1.

### Claim 7 (depends on 1)

The method of claim 1, wherein the maximum number of IBC candidates is equal to zero and the IBC motion vector prediction is disabled.

### Claim 8 (depends on 1)

The method of claim 1, wherein the maximum number of IBC candidates is indicated in the bitstream.

### Claim 9 (depends on 1)

The method of claim 1, wherein the maximum number of the IBC candidates is derived to be (L−an indication signaled in the bitstream), wherein L is a pre-defined value.

### Claim 10 (depends on 9)

The method of claim 9, wherein L=6.

### Claim 11 (depends on 1)

The method of claim 1, wherein the maximum number of IBC candidates is decoupled from a maximum number of regular merge candidates of a block.

### Claim 12 (depends on 1)

The method of claim 1, wherein when the IBC mode is enabled for a slice comprising the video region, the bitstream satisfies that the maximum number of IBC candidates is greater than 0.

### Claim 13 (depends on 1)

The method of claim 1, wherein the maximum number of IBC candidates is a maximum number of IBC merge candidates (denoted by maxIBCMrgNum).

### Claim 14 (depends on 1)

The method of claim 1, wherein the conversion comprises decoding the video region from the bitstream.

### Claim 15 (depends on 1)

The method of claim 1, wherein the conversion comprises encoding the video region into the bitstream.

### Claim 16

An apparatus for processing video data comprising a processor and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
perform a conversion between a video region of a video and a bitstream of the video, wherein whether to include at least one syntax element for an intra block copy (IBC) motion vector prediction mode in the bitstream is based on a maximum number of IBC candidates used during the conversion of the video region,
wherein, when an IBC mode is applied, samples of the video region are predicted from other samples in a video picture comprising the video region; and when an IBC motion vector prediction mode is applied, a vector of the video region is derived based on a vector predictor and a vector difference.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the at least one syntax element includes a motion vector predictor index; and wherein, based on the maximum number of the IBC candidates being larger than to K, the bitstream includes the at least one syntax element and based on the maximum number of the IBC candidates being smaller than or equal to K, the bitstream excludes the at least one syntax element.

### Claim 18

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
perform a conversion between a video region of a video and a bitstream of the video, wherein whether to include at least one syntax element for an intra block copy (IBC) motion vector prediction mode in the bitstream is based on a maximum number of IBC candidates used during the conversion of the video region,
wherein, when an IBC mode is applied, samples of the video region are predicted from other samples in a video picture comprising the video region; and when an IBC motion vector prediction mode is applied, a vector of the video region is derived based on a vector predictor and a vector difference.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the at least one syntax element includes a motion vector predictor index; and wherein, based on the maximum number of the IBC candidates being larger than to K, the bitstream includes the at least one syntax element and based on the maximum number of the IBC candidates being smaller than or equal to K, the bitstream excludes the at least one syntax element.

### Claim 20

A non-transitory computer-readable recording medium storing a bitstream of a video which is generated by a method performed by a video processing apparatus, wherein the method comprises:
generating the bitstream based on a video region of the video, wherein whether to include at least one syntax element for an intra block copy (IBC) motion vector prediction mode in the bitstream is based on a maximum number of IBC candidates used during the conversion of the video region,
wherein, when an IBC mode is applied, samples of the video region are predicted from other samples in a video picture comprising the video region; and when an IBC motion vector prediction mode is applied, a vector of the video region is derived based on a vector predictor and a vector difference.
