# US 2025/0168326 A1 · Method and an encoder for inter-encoding an image frame

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

- Number: US 2025/0168326 A1
- Document ID: US20250168326A1
- Status: Published application
- Kind: A1
- Application number: 18/945,164
- Filed: 2024-11-12
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: Axis AB
- Applicants: Axis AB
- Inventors: Viktor EDPALM; Johan EKENSTIERNA; Martin GREN
- Web page: https://patentgrep.com/patent/US20250168326A1

## CPC

- H04N 19/107: between spatial and temporal predictive coding, e.g. picture refresh
- H04N 19/124: Quantisation
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- 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: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

There is provided a method and an encoder for inter-encoding an image frame in a sequence of image frames. The method comprises obtaining a compression level for each pixel block of the image frame, inter-encoding the image frame in a first encoding pass using the obtained compression level and identifying pixel blocks in the image frame that were intra-coded in the first encoding pass and for which the obtained compression level exceeds a compression level threshold. The method further comprises lowering the compression level for the identified pixel blocks, and inter-encoding the image frame in a second encoding pass using the lowered compression level for the identified pixel blocks and the obtained compression level for each remaining pixel block.

## Claims

### Claim 1

A method for inter-encoding an image frame in a sequence of image frames, comprising:
obtaining a compression level for each pixel block of the image frame, wherein the compression level corresponds to a quantization level and is higher for pixel blocks in some regions of the image frame than for pixel blocks in other regions of the image frame,
inter-encoding the image frame in a first encoding pass using the obtained compression level for each pixel block of the image frame, wherein each pixel block is either inter-coded or intra-coded,
identifying pixel blocks in the image frame that were intra-coded in the first encoding pass and for which the obtained compression level exceeds a compression level threshold,
lowering the compression level for each identified pixel block, and
inter-encoding the image frame in a second encoding pass using the lowered compression level for each identified pixel block and using the obtained compression level for each remaining pixel block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the compression level for each identified pixel block is lowered to a value which is equal to or below the compression level threshold.

### Claim 3 (depends on 1)

The method of claim 1, wherein each pixel block in the image frame has a respective compression level threshold which is set in relation to a compression level used when a spatially corresponding pixel block having a same spatial position as the pixel block was last intra-coded in a previous image frame in the sequence.

### Claim 4 (depends on 3)

The method of claim 3, wherein the compression level threshold of a pixel block in the image frame is set at a predefined positive offset, corresponding to a relative increase in compression level, from said compression level used when a spatially corresponding pixel block was last intra-coded in a previous image frame of the sequence.

### Claim 5 (depends on 4)

The method of claim 4, wherein the compression level for each identified pixel block is lowered to said compression level used when a spatially corresponding pixel block was last intra-coded in a previous image frame in the sequence.

### Claim 6 (depends on 1)

The method of claim 1, wherein the method is carried out each time an image frame in the sequence of image frames is to be inter-encoded.

### Claim 7 (depends on 1)

The method of claim 1, wherein the method is carried out for a selection of image frames in the sequence of image frames, the selection being fewer than every image frame in the sequence of image frames that is to be inter-coded.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining, based on the number of identified pixel blocks in a currently inter-encoded image frame, how often the method is to be carried out when inter-encoding future image frames in the sequence of image frames, wherein a higher number of identified pixel blocks results in the method being carried out more often than would be done at a lower number of identified pixel blocks.

### Claim 9 (depends on 1)

The method of claim 1, wherein the inter-encoding in the first encoding pass operates on a lower resolution of the image frame than the inter-encoding in the second encoding pass.

### Claim 10 (depends on 7)

The method of claim 7, wherein the steps of obtaining a compression level, inter-encoding the image frame in a first encoding pass, and identifying pixel blocks are carried out each time an image frame is to be inter-encoded, but the steps of lowering the compression level and encoding the image frame in the second encoding pass are only carried out on a condition that the number of identified pixel blocks in the image frame is higher than a pixel block threshold.

### Claim 11 (depends on 1)

The method of claim 1, wherein the compression level is higher for pixel blocks which are not within a region of interest of the image frame than for pixel blocks which are within a region of interest of the image frame.

### Claim 12 (depends on 1)

The method of claim 1, wherein the first encoding pass and the second encoding pass are performed by the same encoding unit.

### Claim 13

An encoder for inter-encoding an image frame in a sequence of image frames, comprising circuitry configured to carry out a method for inter-encoding an image frame in a sequence of image frames, comprising:
obtaining a compression level for each pixel block of the image frame, wherein the compression level corresponds to a quantization level and is higher for pixel blocks in some regions of the image frame than for pixel blocks in other regions of the image frame,
inter-encoding the image frame in a first encoding pass using the obtained compression level for each pixel block of the image frame, wherein each pixel block is either inter-coded or intra-coded,
identifying pixel blocks in the image frame that were intra-coded in the first encoding pass and for which the obtained compression level exceeds a compression level threshold,
lowering the compression level for each identified pixel block, and
inter-encoding the image frame in a second encoding pass using the lowered compression level for each identified pixel block and using the obtained compression level for each remaining pixel block.

### Claim 14

A computer-readable storage medium comprising computer program code which, when executed by a computer, causes the computer to carry out a method for inter-encoding an image frame in a sequence of image frames, comprising:
obtaining a compression level for each pixel block of the image frame, wherein the compression level corresponds to a quantization level and is higher for pixel blocks in some regions of the image frame than for pixel blocks in other regions of the image frame,
inter-encoding the image frame in a first encoding pass using the obtained compression level for each pixel block of the image frame, wherein each pixel block is either inter-coded or intra-coded,
identifying pixel blocks in the image frame that were intra-coded in the first encoding pass and for which the obtained compression level exceeds a compression level threshold,
lowering the compression level for each identified pixel block, and
inter-encoding the image frame in a second encoding pass using the lowered compression level for each identified pixel block and using the obtained compression level for each remaining pixel block.
