# US 9,357,229 B2 · Coding motion vectors 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 9,357,229 B2
- Document ID: US9357229B2
- Status: Granted
- Kind: B2
- Application number: 13/179,427
- Filed: 2011-07-08
- Published: 2012-02-02
- Granted: 2016-05-31
- Earliest claimed: 2010-07-28
- Assignees: QUALCOMM Incorporated
- Applicants: Wei-Jung Chien; Marta Karczewicz; Peisong Chen; Xianglin Wang
- Inventors: Wei-Jung Chien; Marta Karczewicz; Peisong Chen; Xianglin Wang
- Web page: https://patentgrep.com/patent/US9357229B2

## CPC

- H04N 19/52: by predictive encoding
- H04N 19/109: among a plurality of temporal predictive coding modes
- H04N 19/114: Adapting the group of pictures [GOP] structure, e.g. number of B-frames between two anchor frames (H04N19/107 takes precedence)
- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/162: User input
- 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/177: the unit being a group of pictures [GOP]
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/463: by compressing encoding parameters before transmission
- H04N 19/573: Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N 19/61: in combination with predictive coding
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

This disclosure relates to techniques for reducing a cost of coding prediction information in video coding. Video blocks in a generalized P/B (GPB) frame are encoded using up to two motion vectors calculated from reference pictures in two separate reference picture lists that are identical. Video blocks of a GPB frame may, therefore, be encoded using a bidirectional prediction mode with a first motion vector from a reference picture in a first reference picture list and a second motion vector from the same or substantially similar reference picture in a second reference picture list. The techniques include jointly coding the first and second motion vectors for a video block of a GPB frame. The techniques include coding the first motion vector relative to a first motion predictor generated from a motion vector of a neighboring block, and coding the second motion vector relative to the first motion vector.

## Claims

### Claim 1

A method of coding video data comprising:
storing a first reference picture list and a second reference picture list, wherein the first and second reference picture lists include identifiers for identical reference pictures;
coding a video block of a video frame designated as a generalized P/B (GPB) frame using bidirectional prediction with a first motion vector from a first reference picture in the first reference picture list and a second motion vector from a second reference picture in the second reference picture list;
predicting the first motion vector for the video block based on a first motion predictor generated from a third motion vector of a neighboring video block, wherein the third motion vector points to the first reference picture in the first reference picture list and is stored for both the first reference picture list and the second reference picture list, and wherein the first motion predictor is generated from the third motion vector and the first reference picture in any of the first reference picture list and the second reference picture list;
predicting the second motion vector for the video block based on the first motion vector for the video block; and
jointly coding the first motion vector and the second motion vector for the video block, wherein jointly coding the first motion vector and the second motion vector comprises:
coding the first motion vector for the video block, wherein coding the first motion vector comprises coding a first syntax element indicating a difference between the first motion vector and the first motion predictor, and coding a second syntax element indicating an index identifying the first reference picture from which the first motion predictor is generated, and
coding the second motion vector for the video block, wherein coding the second motion vector comprises coding a third syntax element indicating a difference between the second motion vector for the video block and the first motion vector for the video block.

### Claim 2 (depends on 1)

The method of claim 1, wherein jointly coding the first motion vector and the second motion vector comprises jointly coding the first and second motion vectors when the first and second motion vectors point to the same reference picture.

### Claim 3 (depends on 1)

The method of claim 1, wherein jointly coding the first motion vector and the second motion vector comprises jointly coding the first and second motion vectors when the first and second motion vectors point to substantially similar reference pictures.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating the first motion predictor for the first motion vector from one or more candidate motion vectors of neighboring video blocks; and
generating a second motion predictor for the second motion vector from one or more candidate motion vectors that include the first motion vector.

### Claim 5 (depends on 1)

The method of claim 1, further comprising, when the first and second motion vectors point to different reference pictures, scaling the first motion vector according to a temporal distance between the first motion vector and the second motion vector before using the first motion vector as a second motion predictor for the second motion vector.

### Claim 6 (depends on 1)

The method of claim 1, further comprising generating the first motion predictor from the third motion vector and the first reference picture in the second reference picture list when the third motion vector of the neighboring video block is not available from the first reference picture list.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
coding the neighboring video block using a unidirectional prediction mode with the third motion vector from the first reference picture in the first reference picture list; and
storing data for the third motion vector in both the first and second reference picture lists.

### Claim 8 (depends on 1)

The method of claim 1, wherein the method of coding video data comprises a method of encoding video data using a video encoder, the method comprising:
storing the first and second reference picture lists that include identifiers for identical reference pictures;
encoding the video block of the GPB frame in an encoded bitstream using bidirectional prediction with the first motion vector from the first reference picture in the first reference picture list and the second motion vector from the second reference picture in the second reference picture list;
predicting the first motion vector for the video block based on the first motion predictor;
predicting the second motion vector for the video block based on the first motion vector for the video block; and
jointly encoding the first motion vector and the second motion vector for the video block in the encoded bistream, wherein jointly encoding the first motion vector and the second motion vector comprises:
encoding the first motion vector for the video block, wherein encoding the first motion vector comprises encoding the first syntax element indicating the difference between the first motion vector and the first motion predictor in the encoded bitstream, and encoding the second syntax element indicating the index identifying the first reference picture from which the first motion predictor is generated in the encoded bitstream, and
encoding the second motion vector for the video block, wherein encoding the second motion vector comprises encoding the third syntax element indicating the difference between the second motion vector for the video block and the first motion vector for the video block in the encoded bitstream.

### Claim 9 (depends on 1)

The method of claim 1, wherein the method of coding video data comprises a method of decoding video data using a video decoder, the method comprising:
receiving an encoded bitstream;
storing the first and second reference picture lists that include identifiers for identical reference pictures;
jointly decoding the first motion vector and the second motion vector for the video block of the GPB frame from the encoded bitstream, wherein jointly decoding the first motion vector and the second motion vector comprises:
decoding the first motion vector for the video block, wherein decoding the first motion vector comprises decoding the first syntax element indicating the difference between the first motion vector and the first motion predictor from the encoded bitstream, and decoding the second syntax element indicating the index identifying the first reference picture from which the first motion predictor is generated from the encoded bitstream, and
decoding the second motion vector for the video block, wherein decoding the second motion vector comprises decoding the third syntax element indicating the difference between the second motion vector for the video block and the first motion vector for the video block from the encoded bitstream;
predicting the first motion vector for the video block based on the first motion predictor and the decoded first and second syntax elements;
predicting the second motion vector for the video block based on the first motion vector for the video block and the decoded third syntax element; and
decoding the video block from the encoded bitstream using bidirectional prediction with the predicted first motion vector and the predicted second motion vector.

### Claim 10 (depends on 1)

The method of claim 1, further comprising coding a one-bit syntax element indicating whether the video block is coded using one of a unidirectional prediction mode or a bidirectional prediction mode, without indicating one of the first reference picture list or the second reference picture list used for the unidirectional prediction mode.

### Claim 11

A video coding device comprising:
a memory configured to store a first reference picture list and a second reference picture list, wherein the first and second reference picture lists include identifiers for identical reference pictures; and
a processor in communication with the memory and configured to code a video block of a video frame designated as a generalized P/B (GPB) frame using a bidirectional prediction mode with a first motion vector from a first reference picture in the first reference picture list and a second motion vector from a second reference picture in the second reference picture list, predict the first motion vector for the video block based on a first motion predictor generated from a third motion vector of a neighboring video block, wherein the third motion vector points to the first reference picture in the first reference picture list and is stored for both the first reference picture list and the second reference picture list, and wherein the first motion predictor is generated from the third motion vector and the first reference picture in any of the first reference picture list and the second reference picture list, predict the second motion vector for the video block based on the first motion vector for the video block, and jointly code the first motion vector and the second motion vector for the video block, wherein, to jointly code the first motion vector and the second motion vector, the processor is configured to:
code the first motion vector for the video block, wherein the processor is further configured to code a first syntax element indicating a difference between the first motion vector and the first motion predictor, and code a second syntax element indicating an index identifying the first reference picture from which the first motion predictor is generated, and
code the second motion vector for the video block as a third syntax element indicating a difference between the second motion vector for the video block and the first motion vector for the video block.

### Claim 12 (depends on 11)

The video coding device of claim 11, wherein the processor jointly codes the first and second motion vectors when the first and second motion vectors point to the same reference picture.

### Claim 13 (depends on 11)

The video coding device of claim 11, wherein the processor jointly codes the first and second motion vectors when the first and second motion vectors point to substantially similar reference pictures.

### Claim 14 (depends on 11)

The video coding device of claim 11, wherein the processor:
generates the first motion predictor for the first motion vector from one or more candidate motion vectors of neighboring video blocks; and
generates a second motion predictor for the second motion vector from one or more candidate motion vectors that include the first motion vector.

### Claim 15 (depends on 11)

The video coding device of claim 11, wherein, when the first and second motion vectors point to different reference pictures, the processor scales the first motion vector according to a temporal distance between the first motion vector and the second motion vector before using the first motion vector as a second motion predictor for the second motion vector.

### Claim 16 (depends on 11)

The video coding device of claim 11, wherein the processor generates the first motion predictor from the third motion vector and the first reference picture in the second reference picture list when the third motion vector of the neighboring video block is not available from the first reference picture list.

### Claim 17 (depends on 11)

The video coding device of claim 11, wherein the processor:
codes the neighboring video block using a unidirectional prediction mode with the third motion vector from the first reference picture in the first reference picture list; and
stores data for the third motion vector in both the first and second reference picture lists.

### Claim 18 (depends on 11)

The video coding device of claim 11, wherein the video coding device comprises a video encoding device configured to encode video data, the processor of the video encoding device being configured to:
encode the video block of the GPB frame in an encoded bitstream using bidirectional prediction with the first motion vector from the first reference picture in the first reference picture list and the second motion vector from the second reference picture in the second reference picture list;
predict the first motion vector for the video block based on the first motion predictor;
predict the second motion vector for the video block based on the first motion vector for the video block; and
jointly encode the first motion vector and the second motion vector for the video block in the encoded bistream, wherein, to jointly encode the first motion vector and the second motion vector, the processor is configured to:
encode the first motion vector for the video block, wherein the processor is further configured to encode the first syntax element indicating the difference between the first motion vector and the first motion predictor in the encoded bitstream, and encode the second syntax element indicating the index identifying the first reference picture from which the first motion predictor is generated in the encoded bitstream, and
encode the second motion vector for the video block, wherein the processor is further configured to encode the third syntax element indicating the difference between the second motion vector for the video block and the first motion vector for the video block in the encoded bitstream.

### Claim 19 (depends on 11)

The video coding device of claim 11, wherein the video coding device comprises a video decoding device configured to decode video data, the processor of the video decoding device being configured to:
receive an encoded bitstream;
jointly decode the first motion vector and the second motion vector for the video block of the GPB frame from the encoded bitstream, wherein, to jointly decode the first motion vector and the second motion vector, the processor is configured to:
decode the first motion vector for the video block, wherein the processor is further configured to decode the first syntax element indicating the difference between the first motion vector and the first motion predictor from the encoded bitstream, and decode the second syntax element indicating the index identifying the first reference picture from which the first motion predictor is generated from the encoded bitstream, and
decode the second motion vector for the video block, wherein the processor is further configured to decode the third syntax element indicating the difference between the second motion vector for the video block and the first motion vector for the video block from the encoded bitstream,
predict the first motion vector for the video block based on the first motion predictor and the decoded first and second syntax elements;
predict the second motion vector for the video block based on the first motion vector for the video block and the decoded third syntax element; and
decode the video block from the encoded bitstream using bidirectional prediction with the predicted first motion vector and the predicted second motion vector.

### Claim 20 (depends on 11)

The video coding device of claim 11, wherein the processor is configured to code a one-bit syntax element indicating whether the video block is coded using one of a unidirectional prediction mode or a bidirectional prediction mode, without indicating one of the first reference picture list or the second reference picture list used for the unidirectional prediction mode.

### Claim 21

A video coding device comprising:
means for storing a first reference picture list and a second reference picture list, wherein the first and second reference picture lists include identifiers for identical reference pictures;
means for coding a video block of a video frame designated as a generalized P/B (GPB) frame using a bidirectional prediction mode with a first motion vector from a first reference picture in the first reference picture list and a second motion vector from a second reference picture in the second reference picture list;
means for predicting the first motion vector for the video block based on a first motion predictor generated from a third motion vector of a neighboring video block, wherein the third motion vector points to the first reference picture in the first reference picture list and is stored for both the first reference picture list and the second reference picture list, and wherein the first motion predictor is generated from the third motion vector and the first reference picture in any of the first reference picture list and the second reference picture list
means for predicting the second motion vector for the video block based on the first motion vector for the video block; and
means for jointly coding the first motion vector and the second motion vector for the video block, wherein the means for jointly coding the first motion vector and the second motion vector comprise:
means for coding the first motion vector for the video block, wherein the means for coding the first motion vector further comprise means for coding a first syntax element indicating a difference between the first motion vector and the first motion predictor, and means for coding a second syntax element indicating an index identifying the first reference picture in the first reference picture list from which the first motion predictor is generated, and
means for coding the second motion vector for the video block as a third syntax element indicating a difference between the second motion vector for the video block and the first motion vector for the video block.

### Claim 22 (depends on 21)

The video coding device of claim 21, wherein the means for jointly coding the first motion vector and the second motion vector comprise means for jointly coding the first and second motion vectors when the first and second motion vectors point to the same reference picture.

### Claim 23 (depends on 21)

The video coding device of claim 21, wherein the means for jointly coding the first motion vector and the second motion vector comprise means for jointly coding the first and second motion vectors when the first and second motion vectors point to substantially similar reference pictures.

### Claim 24 (depends on 21)

The video coding device of claim 21, further comprising:
means for generating the first motion predictor for the first motion vector from one or more candidate motion vectors of neighboring video blocks; and
means for generating a second motion predictor for the second motion vector from one or more candidate motion vectors that include the first motion vector.

### Claim 25 (depends on 21)

The video coding device of claim 21, further comprising, when the first and second motion vectors point to different reference pictures, means for scaling the first motion vector according to a temporal distance between the first motion vector and the second motion vector before using the first motion vector as a second motion predictor for the second motion vector.

### Claim 26 (depends on 21)

The video coding device of claim 21, further comprising means for generating the first motion predictor from the third motion vector and the first reference picture in the second reference picture list when the third motion vector of the neighboring video block is not available from the first reference picture list.

### Claim 27 (depends on 21)

The video coding device of claim 21, further comprising:
means for coding the neighboring video block using a unidirectional prediction mode with the third motion vector from the first reference picture in the first reference picture list; and
means for storing data for the third motion vector in both the first and second reference picture lists.

### Claim 28

A computer-readable storage medium storing instructions for coding video data that, upon execution in a processor, cause the processor to:
store a first reference picture list and a second reference picture list, wherein the first and second reference picture lists include identifiers for identical reference pictures;
code a video block of a video frame designated as a generalized P/B (GPB) frame using bidirectional prediction with a first motion vector from a first reference picture in the first reference picture list and a second motion vector from a second reference picture in the second reference picture list;
predict the first motion vector for the video block based on a first motion predictor generated from a third motion vector of a neighboring video block, wherein the third motion vector points to the first reference picture in the first reference picture list and is stored for both the first reference picture list and the second reference picture list, and wherein the first motion predictor is generated from the third motion vector and the first reference picture in any of the first reference picture list and the second reference picture list;
predict the second motion vector for the video block based on the first motion vector for the video block; and
jointly code the first motion vector and the second motion vector for the video block, wherein the instructions that cause the processor to jointly code the first motion vector and the second motion vector further cause the processor to:
code the first motion vector for the video block, wherein the instructions further cause the processor to code a first syntax element indicating a difference between the first motion vector and the first motion predictor, and code a second syntax element indicating an index identifying the first reference picture from which the first motion predictor is generated, and
code the second motion vector for the video block as a third syntax element indicating a difference between the second motion vector for the video block and the first motion vector for the video block.

### Claim 29 (depends on 28)

The computer-readable storage medium of claim 28, wherein the instructions cause the processor to jointly code the first and second motion vectors when the first and second motion vectors point to the same reference picture.

### Claim 30 (depends on 28)

The computer-readable storage medium of claim 28, wherein the instruction cause the processor to jointly code the first and second motion vectors when the first and second motion vectors point to substantially similar reference pictures.

### Claim 31 (depends on 28)

The computer-readable storage medium of claim 28, further comprising instructions that cause the processor to:
generate the first motion predictor for the first motion vector from one or more candidate motion vectors of neighboring video blocks; and
generate a second motion predictor for the second motion vector from one or more candidate motion vectors that include the first motion vector.

### Claim 32 (depends on 28)

The computer-readable storage medium of claim 28, further comprising, when the first and second motion vectors point to different reference pictures, instructions that cause the processor to scale the first motion vector according to a temporal distance between the first motion vector and the second motion vector before using the first motion vector as a second motion predictor for the second motion vector.

### Claim 33 (depends on 28)

The computer-readable storage medium of claim 28, further comprising instructions that cause the processor to generate the first motion predictor from the third motion vector and the first reference picture in the second reference picture list when the third motion vector of the neighboring video block is not available from the first reference picture list.

### Claim 34 (depends on 28)

The computer-readable storage medium of claim 28, further comprising instructions that cause the processor to:
code the neighboring video block using unidirectional prediction with the third motion vector from the first reference picture in the first reference picture list; and
store data for the third motion vector in both the first and second reference picture lists.
