# US 2026/0089310 A1 · Selection of multiple reference frames for weighted averaging probability model

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

- Number: US 2026/0089310 A1
- Document ID: US20260089310A1
- Status: Published application
- Kind: A1
- Application number: 19/201,821
- Filed: 2025-05-07
- Published: 2026-03-26
- Earliest claimed: 2024-09-26
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Liang ZHAO; Madhu Peringassery Krishnan; Tianqi Liu
- Web page: https://patentgrep.com/patent/US20260089310A1

## 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/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/172: the region being a picture, frame or field
- H04N 19/58: Motion compensation with long-term prediction, i.e. the reference frame for a current frame not being the temporally closest one (H04N19/23 takes precedence)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An example method of video decoding includes receiving a video bitstream comprising a plurality of frames, and identifying a set of reference frames for a current frame of the plurality of frames. The method also includes selecting a primary reference frame from the set of reference frames, where the primary reference frame is a derived primary reference frame or a signaled primary reference frame, and selecting a secondary reference frame from the set of reference frames. The method further includes obtaining respective contexts for the primary reference frame and the secondary reference frame, and initializing a current frame context for the current frame by performing a weighted average of the respective contexts. The method also includes entropy decoding one or more syntax elements for the current frame using the current frame context, and reconstructing the current frame using information of the one or more syntax elements

## Claims

### Claim 1

A method of video decoding performed at a computing system having memory and one or more processors, the method comprising:
receiving a video bitstream comprising a plurality of frames;
identifying a set of reference frames for a current frame of the plurality of frames;
selecting a primary reference frame from the set of reference frames, wherein the primary reference frame is a derived primary reference frame or a signaled primary reference frame;
selecting a secondary reference frame from the set of reference frames, wherein selection of the secondary reference frame is based on whether the primary reference frame is derived or signaled;
obtaining respective contexts for the primary reference frame and the secondary reference frame;
initializing a current frame context for the current frame by performing a weighted average of the respective contexts;
entropy decoding one or more syntax elements for the current frame using the current frame context; and
reconstructing the current frame using information of the one or more syntax elements.

### Claim 2 (depends on 1)

The method of claim 1, wherein, when the primary reference frame is the signaled primary reference frame, the derived primary reference frame is selected as the secondary reference frame.

### Claim 3 (depends on 1)

The method of claim 1, wherein, when the primary reference frame is the derived primary reference frame, a reference frame of the set of reference frames in a same direction from the current frame as the primary reference frame is selected as the secondary reference frame.

### Claim 4 (depends on 3)

The method of claim 3, wherein the reference frame of the set of reference frames in the same direction from the current frame as the primary reference frame and having a lowest associated rank index in a reference frame buffer is selected as the secondary reference frame.

### Claim 5 (depends on 1)

The method of claim 1, wherein the primary reference frame is a key frame or an intra frame.

### Claim 6 (depends on 1)

The method of claim 1, further comprising, when the primary reference frame is a key frame or an intra frame, initializing the current frame context for the current frame without performing the weighted average.

### Claim 7 (depends on 1)

The method of claim 1, wherein the primary reference frame and the secondary reference frame are selected when a key frame or intra frame is present in a reference frame buffer for the current frame; and
the method further comprises, when the reference frame buffer does not include any key frame or intra frame, initializing the current frame context for the current frame without performing the weighted average.

### Claim 8 (depends on 1)

The method of claim 1, wherein a reference frame from the set of reference frames that is on a same side of the current frame as the primary reference frame is selected as the secondary reference frame.

### Claim 9 (depends on 8)

The method of claim 8, further comprising, when the set of reference frames does not include a reference frame that is on the same side of the current frame as the primary reference frame, initializing the current frame context for the current frame without performing the weighted average.

### Claim 10 (depends on 8)

The method of claim 8, wherein the reference frame is selected as the secondary reference frame in accordance with a determination that the reference frame has a lowest rank of any reference frames in the set of reference frames that are on the same size of the current frame as the primary reference frame.

### Claim 11 (depends on 8)

The method of claim 8, wherein the reference frame is selected as the secondary reference frame in accordance with a determination that the reference frame has is closest to the primary reference frame of any reference frames in the set of reference frames that are on the same size of the current frame as the primary reference frame.

### Claim 12 (depends on 1)

The method of claim 1, wherein a reference frame of the set of reference frames closest to the primary reference frame or the current frame is selected as the secondary reference frame.

### Claim 13 (depends on 1)

The method of claim 1, wherein a reference frame of the set of reference frames with a closest temporal identifier to the primary reference frame or the current frame is selected as the secondary reference frame.

### Claim 14

A method of video encoding performed at a computing system having memory and one or more processors, the method comprising:
receiving video data comprising a plurality of frames;
identifying a set of reference frames for a current frame of the plurality of frames;
selecting a primary reference frame from the set of reference frames, wherein the primary reference frame is a derived primary reference frame or is to be signaled;
selecting a secondary reference frame from the set of reference frames, wherein selection of the secondary reference frame is based on whether the primary reference frame is to be signaled;
obtaining respective contexts for the primary reference frame and the secondary reference frame;
initializing a current frame context for the current frame by performing a weighted average of the respective contexts; and
entropy encoding one or more parameters for the current frame using the current frame context.

### Claim 15 (depends on 14)

The method of claim 14, further comprising encoding the current frame using the one or more parameters.

### Claim 16 (depends on 15)

The method of claim 15, further comprising signaling the encoded current frame and the entropy-encoded parameters for the current frame in a video bitstream.

### Claim 17 (depends on 14)

The method of claim 14, wherein, when the primary reference frame is to be signaled, the derived primary reference frame is selected as the secondary reference frame.

### Claim 18 (depends on 14)

The method of claim 14, wherein, when the primary reference frame is the derived primary reference frame, a reference frame of the set of reference frames in a same direction from the current frame as the primary reference frame is selected as the secondary reference frame.

### Claim 19

A non-transitory computer-readable storage medium storing a video bitstream that is generated by a video encoding method, the video encoding method comprising:
receiving video data comprising a plurality of frames;
identifying a set of reference frames for a current frame of the plurality of frames;
selecting a primary reference frame from the set of reference frames, wherein the primary reference frame is a derived primary reference frame or a signaled primary reference frame;
selecting a secondary reference frame from the set of reference frames;
obtaining respective contexts for the primary reference frame and the secondary reference frame;
initializing a current frame context for the current frame by performing a weighted average of the respective contexts; and
entropy encoding one or more parameters for the current frame using the current frame context; and
wherein the video bitstream comprises the entropy-encoded parameters and encoded information for the current frame.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein the video bitstream comprises the signaled primary reference frame.
