# US 2021/0176467 A1 · Video encode pre-analysis bit budgeting based on context and features

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

- Number: US 2021/0176467 A1
- Document ID: US20210176467A1
- Status: Published application
- Kind: A1
- Application number: 16/706,473
- Filed: 2019-12-06
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: ATI Technologies ULC
- Applicants: ATI Technologies ULC
- Inventors: Mehdi Saeedi; Boris Ivanovic
- Web page: https://patentgrep.com/patent/US20210176467A1

## CPC

- H04N 19/115: Selection of the code volume for a coding unit prior to coding
- H04N 19/124: Quantisation
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/194: involving only two passes
- H04N 19/85: using pre-processing or post-processing specially adapted for video compression
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Systems, apparatuses, and methods for bit budgeting in video encode pre-analysis based on context and features are disclosed. A pre-encoder receives a video frame and evaluates each block of the frame for the presence of several contextual indicators. The contextual indicators can include memory colors, text, depth of field, and other specific objects. For each contextual indicator detected, a coefficient is generated and added with other coefficients to generate a final importance value for the block. The coefficients can be adjusted so that only a defined fraction of the picture is deemed important. The final importance value of the block is used to determine the bit budget for the block. The block bit budgets are provided to the encoder and used to influence the quantization parameters used for encoding the blocks.

## Claims

### Claim 1

An apparatus comprising:
a pre-encoder configured to:
receive a frame to be encoded, wherein the frame comprises a plurality of blocks;
generate an importance value for each block based on a presence or absence of specified contextual indicators within each block;
assign a bit budget to each block based at least in part on the importance value generated for the block; and
an encoder configured to encode each block to meet the bit budget assigned to the block.

### Claim 2 (depends on 1)

The apparatus as recited in claim 1, wherein the pre-encoder is further configured to:
determine a rarity of each contextual indicator throughout the frame in its entirety; and
adjust the importance value of each block based on the rarity of each detected contextual indicator.

### Claim 3 (depends on 1)

The apparatus as recited in claim 1, wherein the plurality of contextual indicators comprise memory colors, text, and signs.

### Claim 4 (depends on 1)

The apparatus as recited in claim 1, wherein the pre-encoder is further configured to generate the importance value for each block based on a score assigned to each contextual indicator that was detected in the block.

### Claim 5 (depends on 4)

The apparatus as recited in claim 4, wherein the pre-encoder is further configured to adjust a first score assigned to a first contextual indicator responsive to detecting a second contextual indicator in the block.

### Claim 6 (depends on 1)

The apparatus as recited in claim 1, wherein the pre-encoder is further configured to access a table specifying a plurality of contextual indicators to search for in the plurality of blocks of the frame.

### Claim 7 (depends on 1)

The apparatus as recited in claim 1, wherein the pre-encoder is further configured to:
receive a first table specifying a first plurality of contextual indicators corresponding to a first application;
search for the first plurality of contextual indicators in a first frame responsive to the first application generating the first frame to be encoded;
receive a second table specifying a second plurality of contextual indicators corresponding to a second application; and
search for the second plurality of contextual indicators in a second frame responsive to the second application generating the second frame to be encoded.

### Claim 8

A method comprising:
receiving, by a pre-encoder, a frame to be encoded, wherein the frame comprises a plurality of blocks;
generating an importance value for each block based on a presence or absence of specified contextual indicators within each block;
assigning a bit budget to each block based at least in part on the importance value generated for the block; and
encoding, by the encoder, each block to meet the bit budget assigned to the block.

### Claim 9 (depends on 8)

The method as recited in claim 8, further comprising:
determining a rarity of each contextual indicator throughout the frame in its entirety; and
adjusting the importance value of each block based on the rarity of each detected contextual indicator.

### Claim 10 (depends on 8)

The method as recited in claim 8, wherein the plurality of contextual indicators comprise memory colors, text, and signs.

### Claim 11 (depends on 8)

The method as recited in claim 8, further comprising generating the importance value for each block based on a score assigned to each contextual indicator that was detected in the block.

### Claim 12 (depends on 11)

The method as recited in claim 11, further comprising adjusting a first score assigned to a first contextual indicator responsive to detecting a second contextual indicator in the block.

### Claim 13 (depends on 8)

The method as recited in claim 8, further comprising accessing a table specifying a plurality of contextual indicators to search for in the plurality of blocks of the frame.

### Claim 14 (depends on 8)

The method as recited in claim 8, further comprising:
receiving a first table specifying a first plurality of contextual indicators corresponding to a first application;
searching for the first plurality of contextual indicators in a first frame responsive to the first application generating the first frame to be encoded;
receiving a second table specifying a second plurality of contextual indicators corresponding to a second application; and
searching for the second plurality of contextual indicators in a second frame responsive to the second application generating the second frame to be encoded.

### Claim 15

A system comprising:
a memory; and
a pre-encoder coupled to the memory, wherein the pre-encoder is configured to:
receive a frame to be encoded, wherein the frame comprises a plurality of blocks;
generate an importance value for each block based on a presence or absence of specified contextual indicators within each block;
assign a bit budget to each block based at least in part on the importance value generated for the block; and
convey the bit budgets to an encoder and cause each block to be encoded to meet the bit budget assigned to the block.

### Claim 16 (depends on 15)

The system as recited in claim 15, wherein the pre-encoder is further configured to:
determine a rarity of each contextual indicator throughout the frame in its entirety; and
adjust the importance value of each block based on the rarity of each detected contextual indicator.

### Claim 17 (depends on 15)

The system as recited in claim 15, wherein the plurality of contextual indicators comprise memory colors, text, and signs.

### Claim 18 (depends on 15)

The system as recited in claim 15, wherein the pre-encoder is further configured to generate the importance value for each block based on a score assigned to each contextual indicator that was detected in the block.

### Claim 19 (depends on 15)

The system as recited in claim 15, wherein the pre-encoder is further configured to access a table specifying a plurality of contextual indicators to search for in the plurality of blocks of the frame.

### Claim 20 (depends on 15)

The system as recited in claim 15, wherein the pre-encoder is further configured to:
receive a first table specifying a first plurality of contextual indicators corresponding to a first application;
search for the first plurality of contextual indicators in a first frame responsive to the first application generating the first frame to be encoded;
receive a second table specifying a second plurality of contextual indicators corresponding to a second application; and
search for the second plurality of contextual indicators in a second frame responsive to the second application generating the second frame to be encoded.
