# US 2022/0046271 A1 · Handling of Decoder-Side Motion Vector Refinement (DMVR) Coding Tool for Reference Picture Resampling in Video Coding

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

- Number: US 2022/0046271 A1
- Document ID: US20220046271A1
- Status: Published application
- Kind: A1
- Application number: 17/484,803
- Filed: 2021-09-24
- Published: 2022-02-10
- Earliest claimed: 2019-05-15
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jianle Chen; FNU Hendry; Ye-Kui Wang
- Web page: https://patentgrep.com/patent/US20220046271A1

## CPC

- H04N 19/52: by predictive encoding
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- 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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/172: the region being a picture, frame or field
- 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/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/513: Processing of motion vectors
- H04N 19/56: Motion estimation with initialisation of the vector search, e.g. estimating a good candidate to initiate a search
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N 19/33: in the spatial domain
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of decoding includes determining, by the video decoder, whether a resolution of a current picture being decoded is the same as the resolution of reference pictures identified by a reference picture list associated with the current picture; enabling, by the video decoder, decoder-side motion vector refinement (DMVR) for a current block of the current picture when the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures; disabling, by the video decoder, the DMVR for the current block of the current picture when the resolution of the current picture is determined to be different than the resolution of either of the reference pictures; and refining, by the video decoder, motion vectors corresponding to the current block using the DMVR when the DMVR flag is enabled for the current block.

## Claims

### Claim 1

A method of decoding implemented by a video decoder, comprising:
determining, by the video decoder, whether a resolution of a current picture being decoded is the same as a resolution of reference pictures identified by a reference picture list associated with the current picture;
enabling, by the video decoder, decoder-side motion vector refinement (DMVR) for a current block of the current picture when the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures;
disabling, by the video decoder, the DMVR for the current block of the current picture when the resolution of the current picture is determined to be different than the resolution of either of the reference pictures; and
refining, by the video decoder, motion vectors corresponding to the current block using the DMVR when the DMVR is enabled for the current block.

### Claim 2 (depends on 1)

The method of claim 1, wherein enabling the DMVR comprises setting a DMVR flag to a first value, and wherein disabling the DMVR comprises setting the DMVR flag to a second value.

### Claim 3 (depends on 1)

The method of claim 1, further comprising generating the reference pictures for the current picture based on the reference picture list in accordance with a bi-directional inter prediction mode.

### Claim 4 (depends on 1)

The method of claim 1, further comprising both selectively enabling and disabling the DMVR for blocks in a plurality of pictures depending on whether a resolution of each picture is different from or the same as the resolution of reference pictures associated with the pictures.

### Claim 5 (depends on 1)

The method of claim 1, further comprising enabling reference picture resampling (RPR) for an entire coded video sequence (CVS) containing the current picture when the DMVR is disabled.

### Claim 6 (depends on 1)

The method of claim 1, wherein the resolution of the current picture is disposed in a parameter set of a coded video bitstream, and wherein the current block is in a slice of the current picture.

### Claim 7 (depends on 1)

The method of claim 1, further comprising enabling, by the video decoder, the DMVR for the current block of the current picture when one or more of the following conditions is also met:
a general merge flag is equal to zero;
a first prediction list utilization flag and a second prediction list utilization flag are each equal to one;
a merge mode with motion vector difference flag is equal to zero;
a first differential picture order count corresponding to a first reference picture list is equal to a second differential picture order count corresponding to a second reference picture list;
a bi-prediction weight index is equal to zero;
a first luma weight flag and a second luma weight flag are each equal to zero;
a coding block width measured in luma samples is greater than or equal to eight;
a coding block height measured in the luma samples is greater than or equal to eight; and
a product of the coding block height and the coding block weight is greater than or equal to one hundred twenty eight.

### Claim 8 (depends on 1)

The method of claim 1, further comprising displaying on a display of an electronic device an image generated using the current block.

### Claim 9

A method of encoding a video bitstream implemented by a video encoder, the method comprising:
determining, by the video encoder, whether a resolution of a current picture being encoded is the same as a resolution of reference pictures identified in a reference picture list associated with the current picture;
enabling, by the video encoder, decoder-side motion vector refinement (DMVR) for a current block of the current picture when the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures;
disabling, by the video encoder, the DMVR for the current block of the current picture when the resolution of the current picture is determined to be different than the resolution of either of the reference pictures; and
refining, by the video encoder, motion vectors corresponding to the current block using the DMVR when the DMVR is enabled for the current block.

### Claim 10 (depends on 9)

The method of claim 9, wherein the method further comprises:
determining, by the video encoder, the motion vectors for the current picture based on the reference pictures;
encoding, by the video encoder, the current picture based on the motion vectors; and
decoding, by the video encoder, the current picture using a hypothetical reference decoder.

### Claim 11 (depends on 9)

The method of claim 9, wherein enabling the DMVR comprises setting a DMVR flag to a first value, and wherein disabling the DMVR comprises setting the DMVR flag to a second value.

### Claim 12 (depends on 9)

The method of claim 9, further comprising generating the reference pictures for the current picture based on reference picture lists in accordance with a bi-directional inter prediction mode.

### Claim 13 (depends on 9)

The method of claim 9, further comprising both selectively enabling and disabling the DMVR for blocks in a plurality of pictures depending on whether a resolution of each picture is different from or the same as the resolution of reference pictures associated with the pictures.

### Claim 14 (depends on 9)

The method of claim 9, further comprising enabling reference picture resampling (RPR) for an entire coded video sequence (CVS) containing the current picture even when the DMVR is disabled.

### Claim 15 (depends on 9)

The method of claim 9, further comprising transmitting the video bitstream containing the current block toward a video decoder.

### Claim 16

A decoding device, comprising:
a receiver configured to receive a coded video bitstream;
a memory coupled to the receiver, the memory storing instructions; and
a processor coupled to the memory, the processor configured to execute the instructions to cause the decoding device to:
determine whether a resolution of a current picture being decoded is the same as a resolution of reference pictures identified by a reference picture list associated with the current picture;
enable decoder-side motion vector refinement (DMVR) for a current block of the current picture when the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures;
disable the DMVR for the current block of the current picture when the resolution of the current picture is determined to be different than the resolution of either of the reference pictures; and
refine motion vectors corresponding to the current block using the DMVR when the DMVR is enabled for the current block.

### Claim 17 (depends on 16)

The decoding device of claim 16, wherein reference picture resampling (RPR) is enabled for an entire coded video sequence (CVS) containing the current picture when the DMVR is disabled.

### Claim 18 (depends on 16)

The decoding device of claim 16, further comprising a display configured to display an image as generated based on the current block.

### Claim 19

An encoding device, comprising:
a memory containing instructions;
a processor coupled to the memory, the processor configured to implement the instructions to cause the encoding device to:
determine whether a resolution of a current picture being encoded is the same as a resolution of reference pictures identified in a reference picture list associated with a current block;
enable decoder-side motion vector refinement (DMVR) for a current block of the current picture when the resolution of the current picture is determined to be the same as the resolution of each of the reference pictures;
disable the DMVR for the current block of the current picture when the resolution of the current picture is determined to be different than the resolution of either of the reference pictures; and
refine motion vectors corresponding to the current block using the DMVR when a DMVR flag is enabled for the current block; and
a transmitter coupled to the processor, the transmitter configured to transmit a video bitstream containing the current block toward a video decoder.

### Claim 20 (depends on 19)

The encoding device of claim 19, wherein reference picture resampling (RPR) is enabled for an entire coded video sequence (CVS) containing the current picture even when the DMVR is disabled.

### Claim 21 (depends on 19)

The encoding device of claim 19, wherein the memory stores the video bitstream prior to the transmitter transmitting the video bitstream toward the video decoder.
