# US 2014/0369621 A1 · Encoding an image

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

- Number: US 2014/0369621 A1
- Document ID: US20140369621A1
- Status: Published application
- Kind: A1
- Application number: 14/263,373
- Filed: 2014-04-28
- Published: 2014-12-18
- Earliest claimed: 2013-05-03
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: Jonathan Diggins; Paul Brasnett
- Web page: https://patentgrep.com/patent/US20140369621A1

## CPC

- H04N 19/124: Quantisation
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/149: by estimating the code amount by means of a model, e.g. mathematical model or statistical model
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/50: using predictive coding (H04N19/61 takes precedence)
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N 19/88: involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An image processor comprises an image pre-processing block and an encoder processing block for processing and encoding an image. The image pre-processing block receives image data and processes it to provide an image comprising image sections which each comprise pixels. For each of the image sections, the pixels are analysed to estimate an indication of the complexity of the image section, and metadata is determined based on the estimated complexity indications of the image sections. The metadata is passed to the encoder processing block which uses it to determine a quantization level for use in encoding the image. The encoder processing block can then encode the image using the determined quantization level. Conveniently, the image pre-processing block 106 processes the image data to provide the image, and therefore has access to the image which it can analyse to determine the metadata without requiring a separate read operation of the image.

## Claims

### Claim 1

An image processor comprising an image pre-processing block and an encoder processing block,
wherein the image pre-processing block is configured to:
receive image data;
process the received image data to provide an image comprising one or more image sections which each comprise a plurality of pixels;
for each of the one or more image sections in the image, analyse the pixels in the image section to estimate an indication of the complexity of the image section;
determine metadata based on the one or more estimated indications of the complexity of the one or more image sections; and
output the determined metadata,
and wherein the encoder processing block is configured to:
receive the metadata determined by the image pre-processing block;
use the received metadata to determine a quantization level for use in encoding the image; and
encode the image using the determined quantization level.

### Claim 2 (depends on 1)

The image processor of claim 1, wherein the image pre-processing block is configured to send the image to a memory for storage therein, and wherein the encoder processing block is configured to receive the image from the memory.

### Claim 3 (depends on 2)

The image processor of claim 2 wherein the memory is external to the image processor.

### Claim 4 (depends on 1)

The image processor of claim 1 wherein the image pre-processing block is configured to send the image to the encoder processing block.

### Claim 5 (depends on 1)

The image processor of claim 1 wherein the encoder processing block comprises a rate controller and an encoder module, wherein it is the rate controller that is configured to receive the metadata determined by the image pre-processing block and to use the received metadata to determine a quantization level for use in encoding the image, and wherein it is the encoder module that is configured to encode the image using the determined quantization level.

### Claim 6 (depends on 1)

The image processor of claim 1 wherein the metadata comprises said one or more estimated indications of the complexity of the one or more image sections, and wherein the encoder processing block is configured to:
use the one or more estimated indications of the complexity of the one or more image sections to estimate, for each of a plurality of candidate quantization levels, an indication of the number of bits that would be generated by encoding the one or more image sections in the image using the respective candidate quantization level; and
select one of the plurality of candidate quantization levels based on a target number of bits and based on the estimated indications of the number of bits that would be generated by encoding the one or more image sections in the image using the respective candidate quantization levels, wherein the encoder processing block is configured to use said selected quantization level in encoding the image.

### Claim 7 (depends on 1)

The image processor of claim 1 wherein the image pre-processing block is configured to determine the metadata by:
using the one or more estimated indications of the complexity of the one or more image sections to estimate, for each of a plurality of candidate quantization levels, an indication of the number of bits that would be generated by encoding the one or more image sections in the image using the respective candidate quantization level; and
selecting one of the plurality of candidate quantization levels based on a target number of bits and based on the estimated indications of the number of bits that would be generated by encoding the one or more image sections in the image using the respective candidate quantization levels, wherein the metadata comprises the selected quantization level.

### Claim 8 (depends on 7)

The image processor of claim 7 wherein the encoder processing block comprises a rate controller and an encoder module, wherein it is the rate controller that is configured to receive the metadata determined by the image pre-processing block and to use the received metadata to determine a quantization level for use in encoding the image, and wherein it is the encoder module that is configured to encode the image using the determined quantization level,
and wherein the rate controller determines the quantization level by receiving the selected quantization level in the metadata and passing an indication of the selected quantization level to the encoder module.

### Claim 9 (depends on 6)

The image processor of claim 6 wherein said selected quantization level is the one of the plurality of candidate quantization levels for which the estimated indication of the number of bits that would be generated by encoding the one or more image sections in the image using that candidate quantization levels is closest to the target number of bits.

### Claim 10 (depends on 6)

The image processor of claim 6 wherein the plurality of candidate quantization levels comprises either: (i) all of the quantization levels that the encoder processing block is configured to be able to use to encode the image, or (ii) a subset of all of the quantization levels that the encoder processing block is configured to be able to use to encode the image.

### Claim 11 (depends on 1)

The image processor of claim 1 wherein the indication of the complexity of an image section is an entropy of the image section.

### Claim 12 (depends on 1)

The image processor of claim 1 wherein the encoder processing block is configured to encode the image according to the High Efficiency Video Coding compression standard.

### Claim 13 (depends on 1)

The image processor of claim 1 wherein the received image data relates to at least one of:
(i) an image captured by an image sensor;
(ii) a computer-generated image rendered by a graphics processing unit;
(iii) a screen-shot of a display of a device; and
(iv) an image retrieved from a memory.

### Claim 14 (depends on 13)

The image processor of claim 13,
wherein the received image data relates to an image captured by an image sensor and wherein the image pre-processing block is configured to receive the image data from the image sensor; or
wherein the received image data relates to a computer-generated image rendered by a graphics processing unit and wherein the image pre-processing block is configured to receive the image data from the graphics processing unit.

### Claim 15

A method of processing an image using an image processor comprising an image pre-processing block and an encoder processing block, wherein the method comprises:
receiving image data at the image pre-processing block;
processing the received image data at the image pre-processing block to provide an image comprising one or more image sections which each comprise a plurality of pixels;
for each of the one or more image sections in the image, the image pre-processing block analysing the pixels in the image section to estimate an indication of the complexity of the image section;
the image pre-processing block determining metadata based on the one or more estimated indications of the complexity of the one or more image sections;
using the metadata at the encoder processing block to determine a quantization level for use in encoding the image; and
encoding the image at the encoder processing block using the determined quantization level.

### Claim 16 (depends on 15)

The method of claim 15 further comprising:
sending the image from the image pre-processing block to a memory for storage therein; and
receiving the image at the encoder processing block from the memory.

### Claim 17 (depends on 16)

The method of claim 16 wherein the memory is external to the image processor.

### Claim 18 (depends on 15)

The method of claim 15 further comprising sending the image from the image pre-processing block to the encoder processing block.

### Claim 19 (depends on 15)

The method of claim 15 further comprising:
for each of a plurality of candidate quantization levels, using the one or more estimated indications of the complexity of the one or more image sections to estimate an indication of the number of bits that would be generated by encoding the one or more image sections in the image using the respective candidate quantization level; and
selecting one of the plurality of candidate quantization levels based on a target number of bits and based on the estimated indications of the number of bits that would be generated by encoding the one or more image sections in the image using the respective candidate quantization levels, wherein said selected quantization level is for use by the encoder processing block in encoding the image.

### Claim 20 (depends on 15)

The method of claim 15 wherein the received image data relates to at least one of:
(i) an image captured by an image sensor;
(ii) a computer-generated image rendered by a graphics processing unit;
(iii) a screen-shot of a display of a device; and
(iv) an image retrieved from a memory.
