# US 2019/0320168 A1 · Method and system for reducing slice header parsing overhead 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 2019/0320168 A1
- Document ID: US20190320168A1
- Status: Published application
- Kind: A1
- Application number: 16/452,732
- Filed: 2019-06-26
- Published: 2019-10-17
- Earliest claimed: 2012-06-08
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Minhua Zhou
- Web page: https://patentgrep.com/patent/US20190320168A1

## 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/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/174: the region being a slice, e.g. a line of blocks or a group of blocks
- H04N 19/186: the unit being a colour or a chrominance component
- 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/23: with coding of regions that are present throughout a whole video segment, e.g. sprites, background or mosaic
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/503: involving temporal prediction (adaptive coding with adaptive selection between spatial and temporal predictive coding H04N19/107; adaptive coding with adaptive selection among a plurality of temporal predictive coding modes H04N19/109)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for encoding a picture of a video sequence in a bit stream that reduces slice header parsing overhead is provided. The method includes determining weighting factors that may be used for weighted prediction in encoding at least one slice of the picture, wherein a total number of the weighting factors is constrained to not exceed a predetermined threshold number of weighting factors, wherein the threshold number is less than a maximum possible number of weighting factors, and signaling weighted prediction parameters including the weighting factors in a slice header in the bit stream.

## Claims

### Claim 1

A method for encoding a picture of a video sequence in a bit stream, the method comprising:
determining weighting factors that may be used for weighted prediction in encoding at least one slice of the picture, wherein a total number of the weighting factors is constrained to not exceed a predetermined threshold number of weighting factors, wherein the threshold number is less than a maximum possible number of weighting factors; and
signaling weighted prediction parameters comprising the weighting factors in a slice header in the bit stream.

### Claim 2 (depends on 1)

The method of claim 1, wherein the threshold number is twenty-four.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining weighting factors further comprises:
determining, for each reference picture of a first plurality of reference pictures, whether or not weighted prediction is to be enabled for a luminance component of the reference picture and enabling or disabling a luminance weight flag corresponding to the reference picture accordingly;
computing luminance weighting factors for each reference picture for which weighted prediction is enabled for the luminance component;
determining, for each reference picture of the first plurality of reference pictures, whether or not weighted prediction is to be enabled for chrominance components of the reference picture and enabling or disabling a chrominance weight flag corresponding to the reference picture accordingly; and
computing chrominance weighting factors for each reference picture for which weighted prediction is enabled for the chrominance components.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining weighting factors further comprises determining a number of weighting factors computed for the first plurality of reference pictures by computing a sum of a number of enabled luminance weight flags and two times a number of enabled chrominance weight flags.

### Claim 5 (depends on 3)

The method of claim 3, wherein signaling weighted prediction parameters comprises:
signaling the luminance weight flags corresponding to the first plurality of reference pictures sequentially in the bit stream;
signaling the chrominance weight flags corresponding to the first plurality of reference pictures sequentially in the bit stream following the luminance weight flags;
signaling the luminance weighting factors corresponding to the first plurality of reference pictures sequentially in the bit stream following the chrominance weight flags; and
signaling the chrominance weighting factors corresponding to the first plurality of reference pictures sequentially in the bit stream following the luminance weighting factors.

### Claim 6 (depends on 3)

The method of claim 3, wherein determining weighting factors further comprises:
determining, for each reference picture of a second plurality of reference pictures, whether or not weighted prediction is to be enabled for a luminance component of the reference picture and enabling or disabling a luminance weight flag corresponding to the reference picture accordingly;
computing luminance weighting factors for each reference picture of a second plurality of reference pictures for which weighted prediction is enabled for the luminance component;
determining, for each reference picture of the second plurality of reference pictures, whether or not weighted prediction is to be enabled for chrominance components of the reference picture and enabling or disabling a chrominance weight flag corresponding to the reference picture accordingly; and
computing chrominance weighting factors for each reference picture of the second plurality of reference pictures for which weighted prediction is enabled for the chrominance components.

### Claim 7 (depends on 6)

The method of claim 6, wherein determining weighting factors further comprises determining a number of weighting factors computed for the first plurality of reference pictures and the second plurality of reference pictures by computing a sum of a number of enabled luminance weight flags for the first plurality of reference pictures, two times a number of enabled chrominance weight flags for the first plurality of reference pictures, a number of enabled luminance weight flags for the second plurality of reference pictures, and two times a number of enabled chrominance weight flags for the second plurality of reference pictures.

### Claim 8 (depends on 6)

The method of claim 6, wherein signaling weighted prediction parameters comprises:
signaling the luminance weight flags corresponding to the first plurality of reference pictures sequentially in the bit stream;
signaling the chrominance weight flags corresponding to the first plurality of reference pictures sequentially in the bit stream following the luminance weight flags corresponding to the first plurality of reference pictures;
signaling the luminance weighting factors corresponding to the first plurality of reference pictures sequentially in the bit stream following the chrominance weight flags corresponding to the first plurality of reference pictures;
signaling the chrominance weighting factors corresponding to the first plurality of reference pictures sequentially in the bit stream following the luminance weighting factors corresponding to the first plurality of reference pictures;
signaling the luminance weight flags corresponding to the second plurality of reference pictures sequentially in the bit stream following the chrominance weighting factors corresponding to the first plurality of reference pictures;
signaling the chrominance weight flags corresponding to the second plurality of reference pictures sequentially in the bit stream following the luminance weight flags corresponding to the second plurality of reference pictures;
signaling the luminance weighting factors corresponding to the second plurality of reference pictures sequentially in the bit stream following the chrominance weight flags corresponding to the second plurality of reference pictures; and
signaling the chrominance weighting factors corresponding to the second plurality of reference pictures sequentially in the bit stream following the luminance weighting factors corresponding to the second plurality of reference pictures.

### Claim 9

A method for decoding a slice of picture from a bit stream when weighted prediction is enabled for the slice, the method comprising:
decoding a first sequence of luminance weight flags corresponding to a first plurality of reference pictures from the bit stream;
decoding a first sequence of chrominance weight flags corresponding to the first plurality of reference pictures from the bit stream, wherein the encoded first sequence of chrominance weight flags follows the encoded first sequence of luminance weight flags in the bit stream;
decoding luminance weighting factors for each luminance weight flag of the first sequence of luminance weight flags that is set to indicate weighted prediction of a luminance component of a corresponding reference picture is enabled, wherein the encoded luminance weighting factors follow the encoded first sequence of chrominance weight flags in the bit stream; and
decoding chrominance weighting factors for each chrominance weight flag of the first sequence of chrominance weight flags that is set to indicate weighted prediction of chrominance components of a corresponding reference picture is enabled, wherein the encoded chrominance weighting factors follow the encoded luminance weighting factors in the bit stream.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
decoding a second sequence of luminance weight flags corresponding to a second plurality of reference pictures from the bit stream, wherein the second sequence of luminance weight flags follows the encoded chrominance weighting factors corresponding to the first sequence of chrominance weight flags in the bit stream;
decoding a second sequence of chrominance weight flags corresponding to the second plurality of reference pictures from the bit stream, wherein the encoded second sequence of chrominance weight flags follows the encoded second sequence of luminance weight flags in the bit stream;
decoding luminance weighting factors for each luminance weight flag of the second sequence of luminance weight flags that is set to indicate weighted prediction of a luminance component of a corresponding reference picture is enabled, wherein the encoded luminance weighting factors corresponding to the second sequence of luminance weight flags follow the encoded second sequence of chrominance weight flags in the bit stream; and
decoding chrominance weighting factors for each chrominance weight flag of the second sequence of chrominance weight flags that is set to indicate weighted prediction of chrominance components of a corresponding reference picture is enabled, wherein the encoded chrominance weighting factors corresponding to the second sequence of chrominance weight flags follow the encoded luminance weighting factors in the bit stream.

### Claim 11

A method for encoding a picture of a video sequence in a bit stream, the method comprising:
determining weighted prediction parameters for a first plurality of reference pictures, wherein the weighted prediction parameters may be used for weighted prediction in encoding at least one slice of the picture, and wherein the weighting prediction parameters comprise first luminance weight flags, first luminance weighting factors, first chrominance weight flags, and first chrominance weighting factors for the first plurality of reference pictures; and
signaling the weighted prediction parameters in a slice header in the bit stream, wherein signaling comprises:
signaling the first luminance weight flags sequentially in the bit stream;
signaling the first chrominance weight flags sequentially in the bit stream following the first luminance weight flags;
signaling the first luminance weighting factors sequentially in the bit stream following the first chrominance weight flags; and
signaling the first chrominance weighting factors sequentially in the bit stream following the first luminance weighting factors.

### Claim 12 (depends on 11)

The method of claim 11, wherein determining weighted prediction parameters further comprises determining the first luminance weighting factors and the first chrominance weighting factors such that a total number of weighting factors is constrained to not exceed a predetermined threshold number of weighting factors, wherein the threshold number is less than a maximum possible number of weighting factors.

### Claim 13 (depends on 12)

The method of claim 12, wherein the threshold number is twenty-four.

### Claim 14 (depends on 12)

The method of claim 12, wherein determining weighted prediction parameters further comprises determining a number of weighting factors for the first plurality of reference pictures by computing a sum of a number of enabled first luminance weight flags and two times a number of enabled first chrominance weight flags.

### Claim 15 (depends on 11)

The method of claim 11, wherein determining weighted prediction parameters further comprises determining weighted prediction parameters for a second plurality of reference pictures, wherein the weighting prediction parameters further comprise second luminance weight flags, second luminance weighting factors, second chrominance weight flags, and second chrominance weighting factors for the second plurality of reference pictures; and wherein signaling the weighted prediction parameters further comprises:
signaling the second luminance weight flags sequentially in the bit stream following the first chrominance weighting factors;
signaling the second chrominance weight flags sequentially in the bit stream following the second luminance weight flags;
signaling the second luminance weighting factors sequentially in the bit stream following the second chrominance weight flags; and
signaling the second chrominance weighting factors sequentially in the bit stream following the second luminance weighting factors.

### Claim 16 (depends on 15)

The method of claim 15, wherein determining weighted prediction parameters further comprises determining the first luminance weighting factors, the first chrominance weighting factors, the second luminance weighting factors, and the second chrominance weighting factors such that a total number of weighting factors is constrained to not exceed a predetermined threshold number of weighting factors, wherein the threshold number is less than a maximum possible number of weighting factors.

### Claim 17 (depends on 16)

The method of claim 16, wherein the threshold number is twenty-four.

### Claim 18 (depends on 16)

The method of claim 16, wherein determining weighting factors further comprises determining a number of weighting factors for the first plurality of reference pictures and the second plurality of reference pictures by computing a sum of a number of enabled first luminance weight flags, two times a number of enabled first chrominance weight flags, a number of enabled second luminance weight flags, and two times a number of enabled second chrominance weight flags.
