# US 2021/0287404 A1 · System and method for compressing and decompressing images using block-based compression format

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

- Number: US 2021/0287404 A1
- Document ID: US20210287404A1
- Status: Published application
- Kind: A1
- Application number: 16/820,264
- Filed: 2020-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Meta Platforms Technologies, LLC
- Applicants: Facebook Technologies, LLC
- Inventors: Cheng Chang; Richard Lawrence Greene; Richard Webb
- Web page: https://patentgrep.com/patent/US20210287404A1

## CPC

- G06T 9/00: Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00)
- H04N 19/12: Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/176: the region being a block, e.g. a macroblock
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed herein includes a system, a method, and a device for compressing image data. The device includes one or more processors, coupled to memory, configured to identify a plurality of sub-blocks of a block of image data including a first sub-block and a second sub-block. The one or more processors are configured to identify a first data characteristic of data of the first sub-block and a second data characteristic of data of the second sub-block, determine a first compression technique based at least on the first data characteristic of the first sub-block, determine a second compression technique based at least on the second data characteristic of the second sub-block, and compress the first sub-block using the first compression technique and the second sub-block using the second compression technique.

## Claims

### Claim 1

A method for compressing image data, comprising:
identifying, by a processor, a plurality of sub-blocks of a block of image data including a first sub-block and a second sub-block;
identifying, by the processor, a first data characteristic of data of the first sub-block and a second data characteristic of data of the second sub-block;
determining, by the processor, a first compression technique based at least on the first data characteristic of the first sub-block;
determining, by the processor, a second compression technique, based at least on the second data characteristic of the second sub-block; and
compressing, by the processor, the first sub-block using the first compression technique and the second sub-block using the second compression technique.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the data characteristic of each of the first and second sub-blocks is at least one of an image quality, a range of values, a compression rate, or a distortion efficiency.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
determining a range of values within each of the first and second sub-blocks such that the range of values satisfy a target cost function of (1) a compression rate and (2) a distortion efficiency.

### Claim 4 (depends on 1)

The method according to claim 1, wherein each of the first and second compression techniques is one of lossless compression, lossy compression, prediction-based compression, or no compression.

### Claim 5 (depends on 1)

The method according to claim 1, wherein
the block of image data corresponds to one of a plurality of channels, each channel being one of a color channel or an alpha channel.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
generating a plurality of first compressed blocks by compressing a plurality of first blocks, each block of the plurality of first blocks corresponding to one of the plurality of channels; and
dividing the plurality of first compressed blocks into a plurality of first data slices, each of the plurality of first data slices including a plurality of portions, each portion including compressed blocks corresponding to a respective one of the plurality of channels.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
generating a plurality of second compressed blocks by compressing a plurality of second blocks, each block of the plurality of second blocks corresponding to one of the plurality of channels; and
dividing the plurality of second compressed blocks into a plurality of second data slices, each of the plurality of second data slices including a plurality of portions, each portion including compressed blocks corresponding to a respective one of the plurality of channels,
wherein the plurality of first blocks have a first MIP level different from a second MIP level of the plurality of second blocks.

### Claim 8 (depends on 6)

The method according to claim 6, further comprising:
generating, based on the plurality of first data slices, an indirection table indicating address information of compressed blocks in the plurality of data slices.

### Claim 9

A device for compressing image data, comprising:
one or more processors, coupled to memory and configured to
identify a plurality of sub-blocks of a block of image data including a first sub-block and a second sub-block;
identify a first data characteristic of data of the first sub-block and a second data characteristic of data of the second sub-block;
determine a first compression technique based at least on the first data characteristic of the first sub-block;
determine a second compression technique based at least on the second data characteristic of the second sub-block; and
compress the first sub-block using the first compression technique and the second sub-block using the second compression technique.

### Claim 10 (depends on 9)

The device according to claim 9, wherein the data characteristic of each of the first and second sub-blocks is at least one of an image quality, a range of values, a compression rate, or a distortion efficiency.

### Claim 11 (depends on 10)

The device according to claim 10, wherein the processor is further configured to:
determine a range of values within each of the first and second sub-blocks such that the range of values satisfy a target cost function of (1) a compression rate and (2) a distortion efficiency.

### Claim 12 (depends on 9)

The device according to claim 9, wherein each of the first and second compression techniques is one of lossless compression, lossy compression, prediction-based compression, or no compression.

### Claim 13 (depends on 9)

The device according to claim 9, wherein
the block of image data corresponds to one of a plurality of channels, each channel being one of a color channel or an alpha channel.

### Claim 14 (depends on 13)

The device according to claim 13, wherein the processor is further configured to:
generate a plurality of first compressed blocks by compressing a plurality of first blocks, each block of the plurality of first blocks corresponding to one of the plurality of channels; and
divide the plurality of first compressed blocks into a plurality of first data slices, each of the plurality of first data slices including a plurality of portions, each portion including compressed blocks corresponding to a respective one of the plurality of channels.

### Claim 15 (depends on 14)

The device according to claim 14, wherein the processor is further configured to:
generate a plurality of second compressed blocks by compressing a plurality of second blocks, each block of the plurality of second blocks corresponding to one of the plurality of channels; and
divide the plurality of second compressed blocks into a plurality of second data slices, each of the plurality of second data slices including a plurality of portions, each portion including compressed blocks corresponding to a respective one of the plurality of channels,
wherein the plurality of first blocks have a first MIP level different from a second MIP level of the plurality of second blocks.

### Claim 16 (depends on 15)

The device according to claim 15, wherein the processor is further configured to:
generate, based on the plurality of first data slices, an indirection table indicating address information of compressed blocks in the plurality of data slices.

### Claim 17

A non-transitory computer readable medium storing program instructions for causing one or more processors to:
identify a plurality of sub-blocks of a block of image data including a first sub-block and a second sub-block;
identify a first characteristic of data of the first sub-block and a second data characteristic of data of the second sub-block;
determine a first compression technique based at least on the first data characteristic of the first sub-block;
determine a second compression technique based at least on the second data characteristic of the second sub-block; and
compress the first sub-block using the first compression technique and the second sub-block using the second compression technique.

### Claim 18 (depends on 17)

The non-transitory computer readable medium according to claim 17, wherein the data characteristic of each of the first and second sub-blocks is at least one of an image quality, a range of values, a compression rate, or a distortion efficiency.
