# US 2019/0246119 A1 · Interframe predictive coding method and device

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

- Number: US 2019/0246119 A1
- Document ID: US20190246119A1
- Status: Published application
- Kind: A1
- Application number: 16/313,601
- Filed: 2017-08-09
- Published: 2019-08-08
- Earliest claimed: 2016-08-30
- Assignees: Beijing Qiyi Century Science & Technology Co., Ltd.
- Applicants: Beijing Qiyi Century Science & Technology Co., Ltd.
- Inventors: Hongbo ZHU
- Web page: https://patentgrep.com/patent/US20190246119A1

## CPC

- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/503: involving temporal prediction (adaptive coding with adaptive selection between spatial and temporal predictive coding H04N19/107; adaptive coding with adaptive selection among a plurality of temporal predictive coding modes H04N19/109)
- H04N 19/577: Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An inter-frame predictive encoding method is disclosed and comprises: dividing a frame to be encoded into a plurality of block to be encoded by an encoder; determining, for each block to be encoded, a forward encoding block and a backward encoding block corresponding to the block to be encoded; determining a first weighting parameter corresponding to the forward encoding block; determining an overall brightness-based second weighting parameter of a reference image containing the forward encoding block, and determining an overall brightness-based third weighting parameter of a reference image containing the backward encoding block; determining a fourth weighting parameter corresponding to the backward encoding block according to the first weighting parameter; determining a predictive actual weighting parameter of the block to be encoded according to the first, second, third, and fourth weighting parameters; performing predictive encoding on the block to be encoded by the predictive actual weighting parameter.

## Claims

### Claim 1

An inter-frame predictive encoding method, wherein the method comprises:
dividing a frame to be encoded into a plurality of blocks to be encoded;
determining, for each block to be encoded, a forward encoding block and a backward encoding block corresponding to the block to be encoded;
determining a first weighting parameter corresponding to the forward encoding block;
determining an overall brightness-based second weighting parameter of a reference image containing the forward encoding block, and determining an overall brightness-based third weighting parameter of a reference image containing the backward encoding block;
determining a fourth weighting parameter corresponding to the backward encoding block according to the first weighting parameter;
determining a predictive actual weighting parameter of the block to be encoded according to the first weighting parameter, the second weighting parameter, the third weighting parameter and the fourth weighting parameter; and
performing predictive encoding on the block to be encoded by the predictive actual weighting parameter.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the step of determining, for each block to be encoded, a forward encoding block and a backward encoding block corresponding to the block to be encoded comprises:
determining, for each block to be encoded, a forward encoding block and a backward encoding block corresponding to the block to be encoded through motion search technique.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the step of determining a first weighting parameter corresponding to the forward encoding block comprises:
calculating a predictive block corresponding to each preset forward weighting parameter according to the forward encoding block and the backward encoding block;
calculating a residual value between the block to be encoded and each predictive block;
determining a forward weighting parameter corresponding to a residual value having the smallest absolute value as the first weighting parameter.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the step of determining an overall brightness-based weighting parameter of a reference image comprises:
determining the overall brightness-based weighting parameter of the reference image according to the brightness values of all the pixels and the total number of pixels of the reference image.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the reference image is a reference image containing the forward encoding block; the step of determining the overall brightness-based second weighting parameter of the reference image containing the forward encoding block comprises: determining the overall brightness-based second weighting parameter of the reference image containing the forward encoding block according to the brightness values of all the pixels and the total number of pixels of the reference image containing the forward encoding block;
the reference image is a reference image containing the backward encoding block; the step of determining the overall brightness-based third weighting parameter of the reference image containing the backward encoding block comprises: determining the overall brightness-based third weighting parameter of the reference image containing the backward encoding block according to the brightness values of all the pixels and the total number of pixels of the reference image containing the backward encoding block.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the step of determining an overall brightness-based weighting parameter of a reference image comprises:
determining the overall brightness-based weighting parameter of the reference image according to the image to be encoded and the reference image through minimal residual technique.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the reference image is a reference image containing the forward encoding block; the step of determining the overall brightness-based second weighting parameter of the reference image containing the forward encoding block comprise: determining the overall brightness-based second weighting parameter of the reference image containing the forward encoding block according to the image to be encoded and the reference image containing the forward encoding block through minimal residual technique;
the reference image is a reference image containing the backward encoding block; the step of determining the overall brightness-based third weighting parameter of the reference image containing the backward encoding block comprises: determining the overall brightness-based third weighting parameter of the reference image containing the backward encoding block according to the image to be encoded and the reference image containing the backward encoding block through minimal residual technique.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the step of determining the fourth weighting parameter corresponding to the backward encoding block according to the first weighting parameter comprises:
determining the fourth weighting parameter corresponding to the backward encoding block according to the first weighting parameter and the following formula: fourth weighting parameter=1−first weighting parameter.

### Claim 9

An inter-frame predictive encoding device, wherein the device comprises a processor and a memory, the processor is configured to execute the following program modules stored in the memory:
a division module for dividing a frame to be encoded into a plurality of blocks to be encoded;
a first determination module for determining, for each block to be encoded, a forward encoding block and a backward encoding block corresponding to the block to be encoded;
a second determination module for determining a first weighting parameter corresponding to the forward encoding block;
a third determination module for determining an overall brightness-based second weighting parameter of a reference image containing the forward encoding block, and determining an overall brightness-based third weighting parameter of a reference image containing the backward encoding block;
a fourth determination module for determining a fourth weighting parameter corresponding to the backward encoding block according to the first weighting parameter;
a fifth determination module for determining a predictive actual weighting parameter of the block to be encoded according to the first weighting parameter, the second weighting parameter, the third weighting parameter and the fourth weighting parameter;
an encoding module for performing predictive encoding on the block to be encoded by the predictive actual weighting parameter.

### Claim 10 (depends on 9)

The device according to claim 9, wherein the first determination module is specifically used for:
determining, for each block to be encoded, a forward encoding block and a backward encoding block corresponding to the block to be encoded through motion search technique.

### Claim 11 (depends on 9)

The device according to claim 9, wherein the second determination module comprises: a first calculation sub-module, a second calculation sub-module, a determination sub-module;
the first calculation sub-module is used for calculating a predictive block corresponding to each preset forward weighting parameter according to the forward encoding block and the backward encoding block;
the second calculation sub-module is used for calculating a residual value between the block to be encoded and each predictive block;
the determination sub-module is used for determining a forward weighting parameter corresponding to a residual value having the smallest absolute value as the first weighting parameter.

### Claim 12 (depends on 9)

The device according to claim 9, wherein the fourth determination module is specifically used for:
determining the fourth weighting parameter corresponding to the backward encoding block according to the first weighting parameter and the following formula: fourth weighting parameter=1−first weighting parameter.

### Claim 13 (depends on 1)

An electronic device, wherein the electronic device comprises at least one processor and a memory;
the memory is used for storing computer programs;
the processor is used for performing the steps of the method of claim 1 when the programs stored on the memory are executed.

### Claim 14 (depends on 1)

A computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when being executed on a computer, cause the computer to perform the steps of the method of claim 1.

### Claim 15

(canceled)
