# US 10,958,929 B2 · Flexible reference picture management for video encoding and decoding

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

- Number: US 10,958,929 B2
- Document ID: US10958929B2
- Status: Granted
- Kind: B2
- Application number: 16/689,500
- Filed: 2019-11-20
- Published: 2020-03-19
- Granted: 2021-03-23
- Earliest claimed: 2019-11-20
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Bin Li; Jizheng Xu
- Web page: https://patentgrep.com/patent/US10958929B2

## CPC

- H04N 19/513: Processing of motion vectors
- 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/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/142: Detection of scene cut or scene change
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/17: the unit being an image region, e.g. an object
- H04N 19/179: the unit being a scene or a shot
- H04N 19/23: with coding of regions that are present throughout a whole video segment, e.g. sprites, background or mosaic
- H04N 19/426: using memory downsizing methods
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- 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/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Innovations in flexible reference picture management are described. For example, a video encoder and video decoder use a global reference picture set (“GRPS”) of reference pictures that remain in memory, and hence are available for use in video encoding/decoding, longer than conventional reference pictures. In particular, reference pictures of the GRPS remain available across random access boundaries. Or, as another example, a video encoder and video decoder clip a reference picture so that useful regions of the reference picture are retained in memory, while unhelpful or redundant regions of the reference picture are discarded. Reference picture clipping can reduce the amount of memory needed to store reference pictures or improve the utilization of available memory by providing better options for motion compensation. Or, as still another example, a video encoder and video decoder filter a reference picture to remove random noise (e.g., capture noise due to camera imperfections during capture).

## Claims

### Claim 1

In a computer system that implements a video decoder, a method comprising:
receiving, as part of a bitstream, encoded data for one or more pictures of a video sequence, the encoded data including:
encoded data for a global reference picture that is part of a global reference picture set; and
encoded data for other pictures, the other pictures including at least one picture designated to be a random access picture; and
decoding the encoded data to reconstruct the one or more pictures, including:
decoding the global reference picture; and
decoding the other pictures, wherein the global reference picture is available across one or more random access boundaries defined by the at least one picture designated to be a random access picture.

### Claim 2 (depends on 1)

The method of claim 1, wherein the global reference picture is accessible to decode at least one of the other pictures before the designated random access picture in bitstream order and display order, and wherein the global reference picture is accessible to decode at least one of the other pictures after the designated random access picture in bitstream order and display order.

### Claim 3 (depends on 1)

The method of claim 1, wherein, as part of the decoding the other pictures, the designated random access picture uses the global reference picture for reference in motion compensation operations.

### Claim 4 (depends on 3)

The method of claim 3, wherein the global reference picture has a reference picture identifier, and wherein the motion compensation operations use the reference picture identifier to locate the global reference picture in a buffer.

### Claim 5 (depends on 1)

The method of claim 1, wherein the encoded data for the one or more pictures of the video sequence further includes:
one or more parameter sets that control the decoding the other pictures, wherein the one or more parameters sets are available across the one or more random access boundaries.

### Claim 6 (depends on 1)

The method of claim 1, wherein the encoded data for the global reference picture is marked, with a unit type in the bitstream, as being part of the global reference picture set.

### Claim 7 (depends on 1)

The method of claim 1, wherein the decoding the other pictures includes, for a given picture of the other pictures:
constructing a current reference picture set that includes pictures available for reference in motion compensation operations for the given picture and any picture later than the given picture in coding order, the current reference picture set including the global reference picture; and
constructing one or more reference picture lists from the current reference picture set.

### Claim 8 (depends on 1)

The method of claim 1, wherein the decoding the encoded data to reconstruct the one or more pictures further includes removing a reference picture from a buffer and storing the global reference picture in the buffer, and wherein decoding of the designated random access picture does not cause removal of the global reference picture from the buffer.

### Claim 9 (depends on 1)

The method of claim 1, wherein the decoding the other pictures includes:
determining that the global reference picture is not available in a buffer; and
skimming the bitstream to locate the encoded data for the global reference picture, or requesting re-transmission of the encoded data for the global reference picture.

### Claim 10

A computer system comprising a buffer and a video decoder configured to perform video decoding operations comprising:
receiving, as part of a bitstream, encoded data for one or more pictures of a video sequence; and
decoding the encoded data to reconstruct the one or more pictures, including:
reconstructing a given picture of the one or more pictures;
clipping the reconstructed picture according to clipping parameters, including cropping at least some regions of the reconstructed picture to produce a clipped picture;
storing the clipped picture in a buffer for use as a reference picture; and
using the reference picture in motion compensation operations.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the decoding further comprises one or more of:
scaling the reconstructed picture before the clipping; and
scaling the clipped picture.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein clipping information in the bitstream indicates the clipping parameters, and wherein the clipping information includes information indicating location of the clipped picture within the reconstructed picture.

### Claim 13 (depends on 10)

The computer system of claim 10, wherein the decoding further comprises:
determining the clipping parameters according to one or more rules.

### Claim 14 (depends on 10)

The computer system of claim 10, wherein the decoding further comprises:
determining a motion vector for a current block of a current picture, wherein the current block references the reference picture in at least one of the motion compensation operations; and
adjusting a location referenced by the motion vector to compensate for the clipping.

### Claim 15 (depends on 10)

The computer system of claim 10, wherein the decoding further comprises:
assigning a reference picture index to the reference picture, wherein information in the bitstream indicates the reference picture index or the reference picture index is assigned according to one or more rules.

### Claim 16 (depends on 10)

The computer system of claim 10, wherein the clipping parameters are first clipping parameters, the clipped picture is a first clipped picture, and the reference picture is a first reference picture, and wherein the decoding further comprises:
clipping the reconstructed picture according to second clipping parameters different than the first clipping parameters, including cropping at least some regions of the given picture to produce a second clipped picture different than the first clipped picture; and
storing the second clipped picture in the buffer for use as a second reference picture.

### Claim 17

One or more computer-readable media having stored therein computer-executable instructions for causing a computer system programmed thereby to perform video decoding operations comprising:
receiving, as part of a bitstream, encoded data for one or more pictures of a video sequence; and
decoding the encoded data to reconstruct the one or more pictures, including:
reconstructing a given picture of the one or more pictures;
filtering the reconstructed picture, with a filter adapted to remove random noise, to produce a denoised picture;
storing the denoised picture in a buffer for use as a reference picture; and
using the reference picture in motion compensation operations.

### Claim 18 (depends on 17)

The one or more computer-readable media of claim 17, wherein the encoded data includes filter information that indicates filter parameters for the filter.

### Claim 19 (depends on 17)

The one or more computer-readable media of claim 17, wherein the filter is selected from the group consisting of:
a variation of frequency-domain lowpass filter;
a variation of spatial/temporal-domain lowpass filter;
a variation of spatial/temporal-domain median filter; and
a filter that uses block-matching and three-dimensional filtering.

### Claim 20 (depends on 17)

The one or more computer-readable media of claim 17, wherein the decoding further comprises:
storing the reconstructed picture in the buffer for use as a reference picture.
