# US 2021/0092435 A1 · Simplified coding of generalized bi-directional index

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

- Number: US 2021/0092435 A1
- Document ID: US20210092435A1
- Status: Published application
- Kind: A1
- Application number: 17/109,821
- Filed: 2020-12-02
- Published: 2021-03-25
- Earliest claimed: 2018-10-22
- Assignees: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.; Bytedance Inc.
- Inventors: Hongbin LIU; Li ZHANG; Kai ZHANG; Yue WANG
- Web page: https://patentgrep.com/patent/US20210092435A1

## CPC

- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- 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/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/463: by compressing encoding parameters before transmission
- H04N 19/521: {for estimating the reliability of the determined motion vectors or motion vector field, e.g. for smoothing the motion vector field or for correcting motion vectors}
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Devices, systems and methods for digital video coding, which include decoder side motion vector derivation (DMVD) tools, are described. An exemplary method for video processing includes making a decision, based on a determination that a current block of a video is coded using a multi-hypothesis prediction mode, regarding a selective enablement of a DMVD tool for the current block, wherein the DMVD tool derives a refinement of motion information signaled in a bitstream representation of the video; and performing, based on the decision, a conversion between the current block and the bitstream representation.

## Claims

### Claim 1

A method for video processing, comprising:
determining, for a conversion between a current block of a video and a bitstream representation of the current block, a weight index of a first prediction mode, wherein the first prediction mode is configured to select a weight w from a set of weights based on the weight index to generate a bi-prediction signal for the current block, and wherein the set of weights comprise multiple weights that are different from ½; and
performing, based on the weight index, a conversion between the current block and the bitstream representation, wherein the weight w and a weight 1−w are respectively applied to two prediction blocks generated from reference picture list 0 and reference picture list 1 to derive the bi-prediction signal;
wherein the weight index is represented by a bin string which is comprised in the bitstream representation, and the bin string comprises a plurality of bins and at least one bin of the plurality of bins is bypass coded.

### Claim 2 (depends on 1)

The method of claim 1, wherein a first bin of the plurality of bins is coded with at least one context, and wherein all other bins of the plurality of bins are bypass coded.

### Claim 3 (depends on 2)

The method of claim 2, wherein the at least one context consists of one context.

### Claim 4 (depends on 2)

The method of claim 2, wherein the at least one context consists of three contexts.

### Claim 5 (depends on 4)

The method of claim 4, wherein the three contexts are defined as:
ctxIdx=aboveBlockIsGBIMode+leftBlockIsGBIMode,
wherein aboveBlockIsGBIMode=1 if an above neighboring block to the current block is coded using the GBI mode and zero otherwise,
wherein leftBlockIsGBIMode=1 if a left neighboring block to the current block is coded using the first prediction mode and zero otherwise.

### Claim 6 (depends on 1)

The method of claim 1, wherein each of a first K bins of the plurality of bins is coded with at least one context, wherein all other bins of the plurality of bins are bypass coded, wherein K is a non-negative integer, wherein 0≤K≤maxGBIIdxLen, and wherein maxGBIIdxLen is a maximum length of the plurality of bins.

### Claim 7 (depends on 6)

The method of claim 6, wherein one context is shared for the first K bins except for a first bin of the first K bins.

### Claim 8 (depends on 6)

The method of claim 6, wherein one context is used for each of the first K bins except for a first bin of the first K bins.

### Claim 9 (depends on 1)

The method of claim 1, wherein in response to the weight w being not equal to weight 1−w, a second prediction mode is not applied for the current video block, wherein the second prediction mode uses gradients in different directions to derive a motion offset and a prediction offset.

### Claim 10 (depends on 1)

The method of claim 1, wherein the conversion comprises decoding the current block from the bitstream representation.

### Claim 11 (depends on 1)

The method of claim 1, wherein the conversion comprises encoding the current block into the bitstream representation.

### Claim 12

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:
determine, for a conversion between a current block of a video and a bitstream representation of the current block, a weight index of a first prediction mode, wherein the first prediction mode is configured to select a weight w from a set of weights based on the weight index to generate a bi-prediction signal for the current block, and wherein the set of weights comprise multiple weights that are different from ½; and
perform, based on the weight index, a conversion between the current block and the bitstream representation, wherein the weight w and a weight 1−w are respectively applied to two prediction blocks generated from reference picture list 0 and reference picture list 1 to derive the bi-prediction signal;
wherein the weight index is represented by a bin string which is comprised in the bitstream representation, and the bin string comprises a plurality of bins and at least one bin of the plurality of bins is bypass coded.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein a first bin of the plurality of bins is coded with at least one context, and wherein all other bins of the plurality of bins are bypass coded.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the at least one context consists of one context.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein the conversion comprises decoding the current block from the bitstream representation.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein the conversion comprises encoding the current block into the bitstream representation.

### Claim 17

A non-transitory computer-readable storage medium storing instructions that cause a processor to:
determine, for a conversion between a current block of a video and a bitstream representation of the current block, a weight index of a first prediction mode, wherein the first prediction mode is configured to select a weight w from a set of weights based on the weight index to generate a bi-prediction signal for the current block, and wherein the set of weights comprise multiple weights that are different from ½; and
perform, based on the weight index, a conversion between the current block and the bitstream representation, wherein the weight w and a weight 1−w are respectively applied to two prediction blocks generated from reference picture list 0 and reference picture list 1 to derive the bi-prediction signal;
wherein the weight index is represented by a bin string which is comprised in the bitstream representation, and the bin string comprises a plurality of bins and at least one bin of the plurality of bins is bypass coded.

### Claim 18 (depends on 17)

The storage medium of claim 17, wherein the conversion comprises decoding the current block from the bitstream representation.

### Claim 19 (depends on 17)

The storage medium of claim 17, wherein the conversion comprises encoding the current block into the bitstream representation.

### Claim 20

A non-transitory computer-readable recording medium storing a bitstream representation which is generated by a method performed by a video processing apparatus, wherein the method comprises:
determining, for a conversion between a current block of a video and a bitstream representation of the current block, a weight index of a first prediction mode, wherein the first prediction mode is configured to select a weight w from a set of weights based on the weight index to generate a bi-prediction signal for the current block, and wherein the set of weights comprise multiple weights that are different from ½; and
generating, based on the weight index, the bitstream representation from the current block; wherein the weight w and a weight 1−w are respectively applied to two prediction blocks generated from reference picture list 0 and reference picture list 1 to derive the bi-prediction signal;
wherein the weight index is represented by a bin string which is comprised in the bitstream representation, and the bin string comprises a plurality of bins and at least one bin of the plurality of bins is bypass coded.
