# US 2024/0187613 A1 · Block Vector Signaling for Reconstruction-Reordered Intra Block Copy

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

- Number: US 2024/0187613 A1
- Document ID: US20240187613A1
- Status: Published application
- Kind: A1
- Application number: 18/530,484
- Filed: 2023-12-06
- Published: 2024-06-06
- Earliest claimed: 2022-12-06
- Assignees: Comcast Cable Communications, LLC
- Applicants: Comcast Cable Communications, LLC
- Inventors: Alexey Konstantinovich Filippov; Vasily Alexeevich Rufitskiy; Esmael Hejazi Dinan
- Web page: https://patentgrep.com/patent/US20240187613A1

## CPC

- 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/176: the region being a block, e.g. a macroblock
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/593: involving spatial prediction techniques
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A block vector predictor (BVP) may be adjusted to provide a more accurate prediction of a block vector (BV). A coder (e.g., encoder or decoder) may determine that the at least one component of the BVD may be equal to zero (or, e.g., null), for example, based on a position of the Current Block (CB) relative to a boundary of the reference region. Consequently, the encoder may skip signaling, and the decoder may skip parsing, of the at least one component of the BVD in the bitstream.

## Claims

### Claim 1

A method comprising:
receiving, from a bitstream, an indication of:
flipping of a reference block (RB) for predicting a current block (CB); and
a magnitude of at least one component of a block vector difference (BVD);
determining, based on the indication of flipping, a block vector (BV) offset value associated with a dimension of the CB; and
determining a magnitude of a BV based on:
the BV offset value; and
the indication of the magnitude of the at least one component of the BVD; and
decoding the CB based on the RB displaced from the CB by the BV.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining, based on the indication of flipping, to skip parsing of a Block Vector Predictor (BVP) index from the bitstream;
determining, based on the indication of flipping, that a sign of the at least one component of the BVD is negative; or
determining, based on the indication of flipping, that a sign of the BV is negative.

### Claim 3 (depends on 1)

The method of claim 1, wherein the indication of flipping further comprises an indication of flipping direction; and
wherein the indication of flipping direction is a Reconstruction-Reordered Intra Block Copy (RRIBC) direction flag or an Intra Block Copy (IBC) mirror mode direction flag.

### Claim 4 (depends on 3)

The method of claim 3, wherein the indication of flipping direction indicates horizontal flipping or vertical flipping; and
wherein the dimension of the CB is a width of the CB or a height of the CB.

### Claim 5 (depends on 1)

The method of claim 1, wherein the indication of flipping further comprises an indication of flipping direction, the method further comprising:
determining, based on the indication of flipping direction indicating horizontal flipping, the BV offset value to be equal to the width of CB; or
determining, based on the indication of flipping direction indicating vertical flipping, the BV offset value to be equal to the height of the CB.

### Claim 6 (depends on 1)

The method of claim 1, wherein the indication of flipping further comprises an indication of flipping direction, and wherein the decoding the CB further comprises:
receiving, from the bitstream, a residual of the CB;
determining a reconstructed block based on combining the RB with the residual of the CB;
determining, based on the indication of flipping, to flip the reconstructed block;
flipping the reconstructed block in a direction relative to the indication of flipping direction; and
decoding the CB based on the flipped reconstructed block.

### Claim 7 (depends on 1)

The method of claim 1, wherein the indication of the magnitude of the at least one component of the BVD comprises an absolute value of a magnitude of a non-null component of the BVD.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining, based on an Integer Motion Vector (IMV) flag indicated in the bitstream, a BVD scaling factor; and
multiplying the magnitude of the non-null component of the BVD by the BVD scaling factor.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
determining a position of the CB relative to a boundary of a reference region; and
based on the position of the CB being less than a dimension of the CB, determining to skip parsing of the at least one component of the BVD from the bitstream.

### Claim 10 (depends on 1)

The method of claim 1, wherein the indication of flipping comprises an indication of horizontal flipping, the method further comprising:
determining that a position of the CB is a horizontal position of the CB relative to a left-most boundary of a reference region;
determining a dimension of the CB to be equal to a width of the CB; and
based on the horizontal position of the CB being less than the width of the CB, setting the at least one component of the BVD to be equal to zero.

### Claim 11 (depends on 1)

The method of claim 1, wherein the indication of flipping comprises an indication of vertical flipping, the method further comprising:
determining that a position of the CB is a vertical position of the CB relative to a top-most boundary of a reference region;
determining a dimension of the CB to be equal to a height of the CB; and
based on the vertical position of the CB being less than the height of the CB, setting the at least one component of the BVD to be equal to zero.

### Claim 12

A method comprising:
receiving, from a bitstream, an indication of flipping of a reference block (RB) associated with predicting a current block (CB);
determining a magnitude of a block vector (BV) based on:
a BV offset value associated with a dimension of the CB; and
an indication of a magnitude of the at least one component of a block vector difference (BVD);
decoding the CB based on the RB displaced from the CB by the BV in a reference region;
based on the indication of flipping direction, determining an unavailable portion of one or more samples; and
padding the unavailable portion of the one or more samples with replacement sample values.

### Claim 13 (depends on 12)

The method of claim 12, wherein the indication of flipping indicates horizontal flipping, and wherein the determining the unavailable portion of the one or more samples comprises:
determining, based on a width of the CB being greater than a width of the RB, the unavailable portion of the one or more samples comprising an RB left of the CB.

### Claim 14 (depends on 12)

The method of claim 12, wherein the indication of flipping indicates vertical flipping, and wherein the determining the unavailable portion of the one or more samples comprises:
determining, based on a height of the CB being greater than a height of the RB, the unavailable portion of the one or more samples comprising an RB above the CB.

### Claim 15 (depends on 12)

The method of claim 12, further comprising determining the replacement sample values based on at least one of:
copying samples from an available portion of the one or more samples comprising the RB into the unavailable portion of the one or more samples comprising the RB;
copying neighboring samples into the unavailable portion of the one or more samples comprising the RB;
copying samples determined by an intra prediction mode into the unavailable portion of the one or more samples comprising the RB; or
copying a constant sample value into the unavailable portion of the one or more samples comprising the RB.

### Claim 16

A method comprising:
determining candidate templates of respective reference block (RB) candidates, indicated by respective block vector difference (BVD) candidates, within a reference region;
determining, based on the candidate templates, to flip the respective RB candidates in a flipping direction for predicting a current block (CB);
comparing samples in each of the candidate templates against samples in a current template of the CB to calculate respective costs, wherein a shape of at least one of the candidate templates matches a shape of the current template that is flipped in the flipping direction;
selecting, based on the respective costs, one of the BVD candidates as a BVD;
determining at least one component of the BVD based on:
a block vector (BV) indicating the CB; and
a BV offset value associated with a dimension of the CB; and signaling, in a bitstream, an indication of:
flipping of the RB associated with predicting the CB; and
a magnitude of the at least one component of the BVD.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
determining, based on the indication of flipping, to skip signaling of a Block Vector Predictor (BVP) index in the bitstream.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
based on the indication of flipping indicating horizontal flipping, determining the BV offset value to be equal to a width of the CB; or
based on the indication of flipping indicating vertical flipping, determining the BV offset value to be equal to a height of the CB.

### Claim 19 (depends on 16)

The method of claim 16, further comprising:
determining an Integer Motion Vector (IMV) flag based on whether a magnitude of a non-null component of the BV is a multiple of a BVD scaling factor;
multiplying the magnitude of the non-null component of the block BVD by the BVD scaling factor; and
signaling the IMV flag in the bitstream.

### Claim 20 (depends on 16)

The method of claim 16, further comprising:
determining, based on the indication of flipping:
that a sign of the at least one component of the BVD is negative; or
that a sign of the BV is negative.
