# US 2023/0421808 A1 · Line-based compression for digital image data

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

- Number: US 2023/0421808 A1
- Document ID: US20230421808A1
- Status: Published application
- Kind: A1
- Application number: 18/464,433
- Filed: 2023-09-11
- Published: 2023-12-28
- Earliest claimed: 2009-10-02
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Ying Chen; Madhukar Budagavi; Minhua Zhou
- Web page: https://patentgrep.com/patent/US20230421808A1

## CPC

- H04N 19/593: involving spatial prediction techniques
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/124: Quantisation
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/15: by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
- 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/182: the unit being a pixel
- H04N 19/423: characterised by memory arrangements (H04N19/433 takes precedence)
- H04N 19/43: Hardware specially adapted for motion estimation or compensation
- H04N 19/61: in combination with predictive coding
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of compressing digital image data is provided that includes selecting an entropy code for encoding a line of pixels in the digital image data, wherein the entropy code is selected from a plurality of variable length entropy codes, using spatial prediction to compute a pixel predictor and a pixel residual for a pixel in the line of pixels, and selectively encoding the pixel residual using one of the entropy code or run mode encoding.

## Claims

### Claim 1

A method comprising:
receiving reference frame data from storage;
decompressing the reference frame data by at least:
selecting an entropy code for decoding;
computing a pixel predictor; and
selectively decoding a pixel residual based on the pixel predictor using the entropy code or using run mode decoding.

### Claim 2 (depends on 1)

The method of claim 1, wherein receiving the reference frame data comprises retrieving compressed data from the storage.

### Claim 3 (depends on 2)

The method of claim 2, further comprising reading an indicator of the entropy code from the compressed data,
wherein selecting the entropy code is based on reading the indicator of the entropy code.

### Claim 4 (depends on 1)

The method of claim 1, wherein receiving the reference frame data comprises retrieving the reference frame data from off-chip memory.

### Claim 5 (depends on 4)

The method of claim 4,
wherein the reference frame data is first reference frame data,
wherein receiving the first reference frame data comprises retrieving compressed reference frame data from the off-chip memory, and
wherein the method further comprises, before retrieving the first reference frame data:
compressing second reference frame data to generate the compressed reference frame data; and
storing the compressed reference frame data to the off-chip memory.

### Claim 6 (depends on 1)

The method of claim 1, wherein computing the pixel predictor comprises:
computing a minimum absolute sample difference (MASD) for a current pixel based on neighboring pixels; and
computing the pixel predictor for the current pixel based on the MASD for the current pixel.

### Claim 7 (depends on 1)

The method of claim 1,
wherein selectively decoding the pixel residual comprises selectively decoding a first pixel residual of a current pixel, and
wherein the method further comprises:
determining that a second pixel residual of a previous pixel equals zero; and
decoding the first pixel residual based on the pixel predictor using run mode decoding in response to determining that the second pixel residual equals zero.

### Claim 8 (depends on 1)

The method of claim 1, further comprising reconstructing a current pixel based on the pixel predictor and the pixel residual after decoding the pixel residual using the entropy code.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
generating a picture based on the decompressed reference frame data; and
displaying the picture.

### Claim 10

A system comprising:
a memory; and
one or more processors operable to:
retrieve reference frame data from the memory;
decompress the reference frame data by at least:
select an entropy code for decoding;
compute a pixel predictor; and
selectively decode a pixel residual based on the pixel predictor using the entropy code or using run mode decoding.

### Claim 11 (depends on 10)

The system of claim 10, wherein the reference frame data retrieved from the memory includes compressed data.

### Claim 12 (depends on 11)

The system of claim 11,
wherein the one or more processors are further operable to read an indicator of the entropy code from the compressed data, and
wherein the one or more processors are operable to select the entropy code based on reading the indicator of the entropy code.

### Claim 13 (depends on 10)

The system of claim 10, wherein the memory includes off-chip memory that is external to the one or more processors.

### Claim 14 (depends on 13)

The system of claim 13,
wherein the reference frame data is first reference frame data,
wherein to retrieve the first reference frame data, the one or more processors are operable to comprises retrieve compressed reference frame data from the off-chip memory, and
wherein the one or more processors are further operable to, before retrieving the first reference frame data:
compress second reference frame data to generate the compressed reference frame data; and
store the compressed reference frame data to the off-chip memory.

### Claim 15 (depends on 10)

The system of claim 10, wherein to computing the pixel predictor, the one or more processors are operable to:
compute a minimum absolute sample difference (MASD) for a current pixel based on neighboring pixels; and
compute the pixel predictor for the current pixel based on the MASD for the current pixel.

### Claim 16 (depends on 10)

The system of claim 10,
wherein to selectively decode the pixel residual, the one or more processors are operable to selectively decode a first pixel residual of a current pixel, and
wherein the one or more processors are further operable to:
determine that a second pixel residual of a previous pixel equals zero; and
decode the first pixel residual based on the pixel predictor using run mode decoding in response to determining that the second pixel residual equals zero.

### Claim 17 (depends on 10)

The system of claim 10, wherein the one or more processors are further operable to reconstruct a current pixel based on the pixel predictor and the pixel residual after decoding the pixel residual using the entropy code.

### Claim 18 (depends on 10)

The system of claim 10,
wherein the one or more processors are operable to generate a picture based on the decompressed reference frame data, and
wherein the system further comprises a display configured to display the picture.

### Claim 19

A non-transitory computer-readable medium having executable instructions stored thereon, configured to be executable by one or more processors for causing the one or more processors to:
compress first reference frame data to generate compressed reference frame data;
store the compressed reference frame data to off-chip storage;
retrieve the compressed reference frame data from the off-chip storage;
decompress the compressed reference frame data by at least:
selecting an entropy code for decoding;
computing a pixel predictor; and
selectively decoding a pixel residual based on the pixel predictor using the entropy code or using run mode decoding.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the instructions are executable by the one or more processors for further causing the one or more processors to:
read an indicator of the entropy code from the compressed reference frame data, wherein the instructions to select the entropy code include instructions to select the entropy code based on the indicator;
generate a picture based on the decompressed reference frame data; and
display the picture.
