# US 2023/0419570 A1 · Image Processing Method and Electronic Device

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

- Number: US 2023/0419570 A1
- Document ID: US20230419570A1
- Status: Published application
- Kind: A1
- Application number: 18/252,920
- Filed: 2022-06-09
- Published: 2023-12-28
- Earliest claimed: 2021-06-10
- Assignees: Honor Device Co., Ltd.
- Applicants: Honor Device Co., Ltd.
- Inventors: Conger Chen; Jinxiao Liu
- Web page: https://patentgrep.com/patent/US20230419570A1

## CPC

- G06T 11/23: using straight lines or curves
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- Y02D 30/70: in wireless communication networks
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Embodiments of this application disclose an image processing method and an electronic device, which relates to the field of image processing. A large quantity of rendering operations in a primary scene may be executed at a relatively small resolution, thereby achieving an effect of reducing rendering power consumption. A specific solution is: determining a first primary scene in a process of executing rendering processing on a first image, where the first primary scene is a frame buffer that executes a largest quantity of rendering operations in the process of rendering the first image by the electronic device; configuring a temporary frame buffer, where resolution of the temporary frame buffer is less than resolution of the first primary scene; and executing a first rendering operation on the temporary frame buffer when rendering processing is performed on the first image, where the first rendering operation is a rendering operation executed on the first primary scene indicated by an application program.

## Claims

### Claim 1

An image processing method, applicable to an electronic device, wherein the electronic device is configured to run an application program and execute a rendering operation issued by the application program, the method comprising:
executing a rendering operation of a first image on a first frame buffer and a second frame buffer, wherein the first frame buffer is different than the second frame buffer; and
executing a rendering operation of a second image on a third frame buffer and the second frame buffer, wherein the third frame buffer is different than the second frame buffer and different than the first frame buffer,
wherein the first image and the second image are two consecutive frames of images,
wherein the rendering operation of the first image is not executed on the third frame buffer,
wherein the rendering operation of the second image is not executed on the first frame buffer, and
wherein a resolution of the third frame buffer is less than a resolution of the first frame buffer.

### Claim 2 (depends on 1)

The image processing method of claim 1, wherein a quantity of frame buffers used for drawing the first image is the same as a quantity of frame buffers used for drawing the second image.

### Claim 3 (depends on 2)

The image processing method of claim 2, wherein a quantity of rendering operations of the first image executed on the first frame buffer is the same as a quantity of rendering operations of the first image executed on the third frame buffer.

### Claim 4 (depends on 1)

The image processing method of claim 1, wherein the rendering operation of the first image executed on the first frame buffer is the same as the rendering operation of the first image executed on the third frame buffer.

### Claim 5 (depends on 1)

The image processing method of claim 1, further comprising creating the third frame buffer.

### Claim 6 (depends on 1)

The image processing method of claim 1, wherein the first frame buffer is a frame buffer that executes a greatest quantity of rendering operations in the process of rendering the first image by the electronic device.

### Claim 7 (depends on 6)

The image processing method of claim 6, further comprising determining a frame buffer that executes a greatest quantity of rendering operations in the process of rendering the first image by the electronic device.

### Claim 8 (depends on 7)

The image processing method of claim 7, further comprising:
determining a quantity of drawcalls executed on each frame buffer in the process of rendering the first image; and
determining a frame buffer that executes a greatest quantity of drawcalls as the first frame buffer.

### Claim 9 (depends on 1)

The image processing method of claim 1, wherein the rendering operation is glDrawElement.

### Claim 10 (depends on 1)

The image processing method of claim 1, wherein the rendering operation of the second image is after the rendering operation of the first image, the first frame buffer is used for rendering of a primary scene of the first image, and the third frame buffer is used for rendering of a primary scene of the second image.

### Claim 11 (depends on 10)

The image processing method of claim 10, wherein the electronic device is provided with one or more processors and a rendering processing module, and wherein executing the rendering operation of the first image on the first frame buffer and the second frame buffer comprises:
issuing, by the one or more processors, a first rendering instruction stream to the rendering processing module in a case that the one or more processors receive the rendering operation on the first image from the application program, wherein the first rendering instruction stream instructs the rendering processing module to execute the rendering operation of the first image on the first frame buffer and the second frame buffer; and
executing, by the rendering processing module, the rendering operation of the first image on the first frame buffer and the second frame buffer based on the first rendering instruction stream.

### Claim 12 (depends on 11)

The image processing method according to claim 11, wherein executing the rendering operation of the second image on the third frame buffer and the second frame buffer comprises:
issuing, by the or more processors, a second rendering instruction stream to the rendering processing module in a case that the one or more processors receives the rendering operation on the first image from the application program, wherein the rendering operation of the application program on the second image instructs the rendering processing module to execute the rendering operation of the second image on the first frame buffer and the second frame buffer, and the second rendering instruction stream instructs the rendering processing module to execute the rendering operation of the second image on the third frame buffer and the second frame buffer; and
executing, by the rendering processing module, the rendering operation of the second image on the third frame buffer and the second frame buffer based on the second rendering instruction stream.

### Claim 13 (depends on 12)

The image processing method of claim 12, wherein before issuing the second rendering instruction stream to the rendering processing module, the method further comprises:
determining, by the more processors, the frame buffer executing the greatest quantity of rendering operations as the first frame buffer based on the rendering operation of the first image; and
creating, by the one or more processors, the third frame buffer, wherein the third frame buffer is used for executing the rendering operation on the first frame buffer.

### Claim 14 (depends on 13)

The image processing method of claim 13, wherein after creatin the third frame buffer, the method further comprises replacing, by the one or more processors, a frame buffer pointed to by the rendering operation executed on the first frame buffer with the third frame buffer in the rendering operation of the application program on the second image, to obtain a third rendering instruction stream.

### Claim 15 (depends on 14)

The image processing method of claim 14, wherein the one or more processors a central processing unit (CPU).

### Claim 16 (depends on 15)

The image processing method of claim 15, wherein the rendering processing module is a graphics processing unit (GPU).

### Claim 17 (depends on 16)

The image processing method of claim 16, further comprising performing multisampling on the second image.

### Claim 18

An electronic device, comprising:
one or more processors; and
one or more memories coupled to the one or more processors, wherein the one or more memories store computer instructions that, when executed by the one or more processors, cause the electronic device to be configured to:
execute a rendering operation of a first image on a first frame buffer and a second frame buffer, wherein the first frame buffer is different than the second frame buffer; and
execute a rendering operation of a second image on a third frame buffer and the second frame buffer, wherein the third frame buffer is different than the second frame buffer and different than the first frame buffer,
wherein the first image and the second image are two consecutive frames of images,
wherein the rendering operation of the first image is not executed on the third frame buffer,
wherein the rendering operation of the second image is not executed on the first frame buffer, and
wherein a resolution of the third frame buffer is less than a resolution of the first frame buffer.

### Claim 19

A non-transitory computer-readable storage medium containing instructions that, when executed by one or more processors of an electronic device, cause the electronic device to be configured to:
execute a rendering operation of a first image on a first frame buffer and a second frame buffer, wherein the first frame buffer is different than the second frame buffer; and
execute a rendering operation of a second image on a third frame buffer and the second frame buffer, wherein the third frame buffer is different than the second frame buffer and different than the first frame buffer,
wherein the first image and the second image are two consecutive frames of images,
wherein the rendering operation of the first image is not executed on the third frame buffer,
wherein the rendering operation of the second image is not executed on the first frame buffer, and
wherein a resolution of the third frame buffer is less than a resolution of the first frame buffer.

### Claim 20

(canceled)

### Claim 21 (depends on 18)

The electronic device of claim 18, wherein a quantity of frame buffers used for drawing the first image is the same as a quantity of frame buffers used for drawing the second image.
