# US 2021/0092393 A1 · Simplified palette predictor update for video coding

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

- Number: US 2021/0092393 A1
- Document ID: US20210092393A1
- Status: Published application
- Kind: A1
- Application number: 17/029,767
- Filed: 2020-09-23
- Published: 2021-03-25
- Earliest claimed: 2019-09-24
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Yung-Hsuan Chao; Cheng-Teh Hsieh; Marta Karczewicz
- Web page: https://patentgrep.com/patent/US20210092393A1

## CPC

- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/50: using predictive coding (H04N19/61 takes precedence)
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An example device includes a memory configured to store at least a portion of an encoded video bitstream; and one or more processors that are implemented in circuitry and configured to: determine, based on a parameter of a first block of video data, a maximum number of entries to be used for palette-mode coding of the current block; generate, based on the determined maximum number of entries and based on a palette predictor, a palette for the first block of video data, the palette including one or more entries each including a palette index that is associated with a color value; decode, from the encoded video bitstream and for the first block of video data, index values for samples of the first block that identify entries in the palette; and reconstruct, based on the index values, the samples of the first block.

## Claims

### Claim 1

A device for decoding video data, the device comprising
a memory configured to store at least a portion of an encoded video bitstream; and
one or more processors that are implemented in circuitry and configured to:
determine, based on a parameter of a first block of video data, a maximum number of entries to be used for palette-mode coding of the current block;
generate, based on the determined maximum number of entries and based on a palette predictor, a palette for the first block of video data, the palette including one or more entries each including a palette index that is associated with a color value;
decode, from the encoded video bitstream and for the first block of video data, index values for samples of the first block that identify entries in the palette; and
reconstruct, based on the index values, the samples of the first block.

### Claim 2 (depends on 1)

The device of claim 1, wherein the maximum number of entries is restricted to a value less than 63.

### Claim 3 (depends on 2)

The device of claim 2, wherein, to determine the maximum number of entries, the one or more processors are configured to:
restrict the maximum number of entries to be 16 responsive to the parameter having a first value; and
restrict the maximum number of entries to be 32 responsive to the parameter having a second value different than the first value.

### Claim 4 (depends on 1)

The device of claim 1, wherein the one or more processors are further configured to:
obtain an input palette predictor, wherein, to generate the palette, the one or more processors are configured to generate the palette based on the input palette predictor;
update, based on the generated palette, the input palette predictor to generate an updated palette predictor, wherein, to update the input palette predictor, the one or more processors are configured to:
copy, to the updated palette predictor, entries from the palette for the first block; and
copy, to the updated palette predictor and at a position that is after the entries from the palette for the first block, entries from a restricted portion of the input palette predictor that are not included in the palette for the first block; and
generate, based on the updated palette predictor, a palette for a second block of video data.

### Claim 5 (depends on 4)

The device of claim 4, wherein, to update the input palette predictor, the one or more processors are configured to:
copy, to the updated palette predictor and at a position that is after the entries from the restricted portion of the input palette predictor, entries from an unrestricted portion of the input palette predictor until a maximum size of the updated palette predictor is reached.

### Claim 6 (depends on 5)

The device of claim 5, wherein, to copy the entries from the restricted portion, the one or more processors are configured to:
copy a limited number of entries from the restricted portion.

### Claim 7 (depends on 1)

The device of claim 1, wherein the one or more processors are further configured to:
obtain an input palette predictor, wherein, to generate the palette, the one or more processors are configured to generate the palette based on the input palette predictor;
update, based on the generated palette, the input palette predictor to generate an updated palette predictor, wherein, to update the input palette predictor, the one or more processors are configured to:
copy, to the updated palette predictor, entries from the palette for the first block; and
stuff the updated palette predictor with entries of the input palette predictor that are not included in the palette for the first block; and
generate, based on the updated palette predictor, a palette for a second block of video data.

### Claim 8 (depends on 7)

The device of claim 7, wherein, to stuff the palette, the one or more processors are configured to stuff the updated palette predictor in response to determining that a size of the first block is greater than a threshold size.

### Claim 9 (depends on 8)

The device of claim 8, wherein, to stuff the palette, the one or more processors are configured to not stuff the updated palette predictor in response to determining that the size of the first block is less than the threshold size.

### Claim 10 (depends on 1)

The device of claim 1, further comprising a display configured to output the reconstructed first block of video data.

### Claim 11

A method of decoding video data, the method comprising:
determining, based on a parameter of a first block of video data, a maximum number of entries to be used for palette-mode coding of the current block;
generating, based on the determined maximum number of entries and based on a palette predictor, a palette for the first block of video data, the palette including one or more entries each including a palette index that is associated with a color value;
decoding, from an encoded video bitstream and for the first block of video data, index values for samples of the first block that identify entries in the palette; and
reconstructing, based on the index values, the samples of the first block.

### Claim 12 (depends on 11)

The method of claim 11, wherein the maximum number of entries is restricted to a value less than 63.

### Claim 13 (depends on 12)

The method of claim 12, wherein determining the maximum number of entries comprises selectively restricting the maximum number of entries to be either 16 or 32.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
obtaining an input palette predictor, wherein generating the palette comprises generating the palette based on the input palette predictor;
updating, based on the generated palette, the input palette predictor to generate an updated palette predictor, wherein updating the input palette predictor comprises:
copying, to the updated palette predictor, entries from the palette for the first block; and
copying, to the updated palette predictor and at a position that is after the entries from the palette for the first block, entries from a restricted portion of the input palette predictor that are not included in the palette for the first block; and
generating, based on the updated palette predictor, a palette for a second block of video data.

### Claim 15 (depends on 14)

The method of claim 14, wherein updating the input palette predictor further comprises:
copying, to the updated palette predictor and at a position that is after the entries from the restricted portion of the input palette predictor, entries from an unrestricted portion of the input palette predictor until a maximum size of the updated palette predictor is reached.

### Claim 16 (depends on 15)

The method of claim 15, wherein copying the entries from the restricted portion comprises:
copying a limited number of entries from the restricted portion.

### Claim 17 (depends on 11)

The method of claim 11, further comprising:
obtaining an input palette predictor, wherein generating the palette comprises generating the palette based on the input palette predictor;
updating, based on the generated palette, the input palette predictor to generate an updated palette predictor, wherein updating the input palette predictor comprises:
copying, to the updated palette predictor, entries from the palette for the first block; and
stuffing the updated palette predictor with entries of the input palette predictor that are not included in the palette for the first block; and
generating, based on the updated palette predictor, a palette for a second block of video data.

### Claim 18 (depends on 17)

The method of claim 17, wherein stuffing the palette comprises stuffing the updated palette predictor in response to determining that a size of the first block is greater than a threshold size.

### Claim 19 (depends on 18)

The method of claim 18, further comprising not stuffing the updated palette predictor in response to determining that the size of the first block is less than the threshold size.

### Claim 20

A device for encoding video data, the device comprising
a memory configured to store at least a portion of an encoded video bitstream; and
one or more processors that are implemented in circuitry and configured to:
determine, based on a parameter of a first block of video data, a maximum number of entries to be used for palette-mode coding of the current block;
generate, based on the determined maximum number of entries and based on a palette predictor, a palette for the first block of video data, the palette including one or more entries each including a palette index that is associated with a color value; and
encode, in the encoded video bitstream and for the first block of video data, index values for samples of the first block that identify entries in the palette.

### Claim 21 (depends on 20)

The device of claim 20, wherein the maximum number of entries is restricted to a value less than 63.

### Claim 22 (depends on 21)

The device of claim 21, wherein, to determine the maximum number of entries, the one or more processors are configured to:
restrict the maximum number of entries to be 16 responsive to the parameter having a first value; and
restrict the maximum number of entries to be 32 responsive to the parameter having a second value.

### Claim 23

A method of encoding video data, the method comprising:
determining, based on a parameter of a first block of video data, a maximum number of entries to be used for palette-mode coding of the current block;
generating, based on the determined maximum number of entries and based on a palette predictor, a palette for the first block of video data, the palette including one or more entries each including a palette index that is associated with a color value; and
encoding, in an encoded video bitstream and for the first block of video data, index values for samples of the first block that identify entries in the palette.

### Claim 24 (depends on 23)

The method of claim 23, wherein the maximum number of entries is restricted to a value less than 63.

### Claim 25 (depends on 24)

The method of claim 24, wherein determining the maximum number of entries comprises selectively restricting the maximum number of entries to be either 16 or 32.

### Claim 26

A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors of a video decoder to:
determine, based on a parameter of a first block of video data, a maximum number of entries to be used for palette-mode coding of the current block;
generate, based on the determined maximum number of entries and based on a palette predictor, a palette for the first block of video data, the palette including one or more entries each including a palette index that is associated with a color value;
decode, from an encoded video bitstream and for the first block of video data, index values for samples of the first block that identify entries in the palette; and
reconstruct, based on the index values, the samples of the first block.

### Claim 27

A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors of a video encoder to:
determine, based on a parameter of a first block of video data, a maximum number of entries to be used for palette-mode coding of the current block;
generate, based on the determined maximum number of entries and based on a palette predictor, a palette for the first block of video data, the palette including one or more entries each including a palette index that is associated with a color value; and
encode, in an encoded video bitstream and for the first block of video data, index values for samples of the first block that identify entries in the palette.
