# US 11,120,289 B2 · Parallel histogram calculation with application to palette table derivation

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

- Number: US 11,120,289 B2
- Document ID: US11120289B2
- Status: Granted
- Kind: B2
- Application number: 16/588,810
- Filed: 2019-09-30
- Published: 2021-04-01
- Granted: 2021-09-14
- Earliest claimed: 2019-09-30
- Assignees: ATI Technologies ULC
- Applicants: ATI Technologies ULC
- Inventors: Feng Pan; Wei Gao; Yang Liu; Crystal Yeong-Pian Sau; Haibo Liu; Edward A. Harold; Ying Luo; Ihab Amer; Gabor Sines
- Web page: https://patentgrep.com/patent/US11120289B2

## CPC

- H04N 19/182: the unit being a pixel
- G06T 5/40: using histogram techniques
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/423: characterised by memory arrangements (H04N19/433 takes precedence)
- H04N 19/436: using parallelised computational arrangements
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Systems, apparatuses, and methods for performing parallel histogram calculation with application to palette table derivation are disclosed. An encoder calculates a first histogram for a first portion of pixel component value bits of a block of pixels. Then, the encoder selects a first number of the highest pixel count bins from the first histogram. Also, the encoder calculates a second histogram for a second portion of pixel component value bits of the block. The encoder selects a second number of the highest pixel count bins from the second histogram. A third histogram is calculated from the concatenation of bits assigned to the first and second number of bins, and the highest pixel count bins are selected from the third histogram. A palette table is derived based on these highest pixel count bins selected from the third histogram, and the block of pixels is encoded using the palette table.

## Claims

### Claim 1

A system comprising:
a memory; and
an encoder comprising circuitry coupled to the memory, wherein the encoder is configured to:
calculate multiple histograms for different subsets of bits of a given pixel component of pixels of a block;
identify a given number of most frequently occurring values for the given pixel component of the pixels of the block based on the multiple histograms;
derive a palette table from the given number of most frequently occurring values; and
encode the given pixel component of the pixels of the block based on the palette table.

### Claim 2 (depends on 1)

The system as recited in claim 1, wherein calculating multiple histograms for different subsets of bits of the given pixel component of the pixels of the block comprises:
calculating a first histogram for a first subset of bits of the given pixel component of the pixels of the block; and
calculating a second histogram for a second subset of bits of the given pixel component of the pixels of the block, wherein the first subset of bits does not overlap with the second subset of bits.

### Claim 3 (depends on 2)

The system as recited in claim 2, wherein identifying the given number of most frequently occurring values for the given pixel component of the pixels of the block based on the multiple histograms comprises:
selecting a first set of bins which have a highest pixel count from the first histogram and selecting a second set of bins which have a highest pixel count from the second histogram;
calculating a third histogram for a third set of bins, wherein each bin of the third set of bins corresponds to a concatenation of bits assigned to a first bin from the first set of bins with bits assigned to a second bin from the second set of bins; and
selecting a fourth set of bins which have a highest pixel count among the third set of bins, wherein pixel component values that are assigned to the fourth set of bins are the given number of most frequently occurring values for the given pixel component of the pixels of the block.

### Claim 4 (depends on 1)

The system as recited in claim 1, wherein a combination of the first subset of bits and the second subset of bits comprise the entirety of the given pixel component.

### Claim 5 (depends on 1)

The system as recited in claim 1, wherein:
the given pixel component has N bits;
the first subset of bits includes N/2 most significant bits of the given pixel component;
the second subset of bits includes N/2 least significant bits of the given pixel component; and
N is a positive, even integer.

### Claim 6 (depends on 1)

The system as recited in claim 1, wherein:
the given pixel component is a red, green, or blue pixel component; and
the block is a portion of an image or video frame.

### Claim 7 (depends on 1)

The system as recited in claim 1, wherein:
the given pixel component is a luminance or chrominance pixel component; and
the block is a portion of an image or video frame.

### Claim 8

A method comprising:
calculating, by an encoder, multiple histograms for different subsets of bits of a given pixel component of pixels of a block;
identifying a given number of most frequently occurring values for the given pixel component of the pixels of the block based on the multiple histograms;
deriving a palette table from the given number of most frequently occurring values; and
encoding the given pixel component of the pixels of the block based on the palette table.

### Claim 9 (depends on 8)

The method as recited in claim 8, wherein calculating multiple histograms for different subsets of bits of the given pixel component of the pixels of the block comprises:
calculating a first histogram for a first subset of bits of the given pixel component of the pixels of the block; and
calculating a second histogram for a second subset of bits of the given pixel component of the pixels of the block, wherein the first subset of bits does not overlap with the second subset of bits.

### Claim 10 (depends on 9)

The method as recited in claim 9, wherein identifying the given number of most frequently occurring values for the given pixel component of the pixels of the block based on the multiple histograms comprises:
selecting a first set of bins which have a highest pixel count from the first histogram and selecting a second set of bins which have a highest pixel count from the second histogram;
calculating a third histogram for a third set of bins, wherein each bin of the third set of bins corresponds to a concatenation of bits assigned to a first bin from the first set of bins with bits assigned to a second bin from the second set of bins; and
selecting a fourth set of bins which have a highest pixel count among the third set of bins, wherein pixel component values that are assigned to the fourth set of bins are the given number of most frequently occurring values for the given pixel component of the pixels of the block.

### Claim 11 (depends on 8)

The method as recited in claim 8, wherein a combination of the first subset of bits and the second subset of bits comprise the entirety of the given pixel component.

### Claim 12 (depends on 8)

The method as recited in claim 8, wherein:
the given pixel component has N bits;
the first subset of bits includes N/2 most significant bits of the given pixel component;
the second subset of bits includes N/2 least significant bits of the given pixel component; and
N is a positive, even integer.

### Claim 13 (depends on 8)

The method as recited in claim 8, wherein:
the given pixel component is a red, green, or blue pixel component; and
the block is a portion of an image or video frame.

### Claim 14 (depends on 8)

The method as recited in claim 8, wherein:
the given pixel component is a luminance or chrominance pixel component; and
the block is a portion of an image or video frame.

### Claim 15

An apparatus comprising:
a memory storing a block of pixels and program instructions; and
a processor coupled to the memory, wherein the program instructions are executable by the processor to:
calculate multiple histograms for different subsets of bits of a given pixel component of the block of pixels;
identify a given number of most frequently occurring values for the given pixel component of the block of pixels based on the multiple histograms;
derive a palette table from the given number of most frequently occurring values; and
encode the given pixel component of the block of pixels based on the palette table.

### Claim 16 (depends on 15)

The apparatus as recited in claim 15, wherein calculating multiple histograms for different subsets of bits of the given pixel component of the pixels of the block comprises:
calculating a first histogram for a first subset of bits of the given pixel component of the pixels of the block; and
calculating a second histogram for a second subset of bits of the given pixel component of the pixels of the block, wherein the first subset of bits does not overlap with the second subset of bits.

### Claim 17 (depends on 16)

The apparatus as recited in claim 16, wherein identifying the given number of most frequently occurring values for the given pixel component of the pixels of the block based on the multiple histograms comprises:
selecting a first set of bins which have a highest pixel count from the first histogram and selecting a second set of bins which have a highest pixel count from the second histogram;
calculating a third histogram for a third set of bins, wherein each bin of the third set of bins corresponds to a concatenation of bits assigned to a first bin from the first set of bins with bits assigned to a second bin from the second set of bins; and
selecting a fourth set of bins which have a highest pixel count among the third set of bins, wherein pixel component values that are assigned to the fourth set of bins are the given number of most frequently occurring values for the given pixel component of the pixels of the block.

### Claim 18 (depends on 15)

The apparatus as recited in claim 15, wherein a combination of the first subset of bits and the second subset of bits comprise the entirety of the given pixel component.

### Claim 19 (depends on 15)

The apparatus as recited in claim 15, wherein:
the given pixel component has N bits;
the first subset of bits includes N/2 most significant bits of the given pixel component;
the second subset of bits includes N/2 least significant bits of the given pixel component; and
N is a positive, even integer.

### Claim 20 (depends on 15)

The apparatus as recited in claim 15, wherein:
the given pixel component is a red, green, or blue pixel component; and
the block is a portion of an image or video frame.
