# US 2022/0292628 A1 · Image processing method and apparatus

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

- Number: US 2022/0292628 A1
- Document ID: US20220292628A1
- Status: Published application
- Kind: A1
- Application number: 17/627,951
- Filed: 2020-07-15
- Published: 2022-09-15
- Earliest claimed: 2019-07-19
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wei TAN; Kun MENG; Yun TU; Liang WANG
- Web page: https://patentgrep.com/patent/US20220292628A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06N 3/08: Learning methods
- G06T 1/60: Memory management
- G06T 15/005: {General purpose rendering architectures}
- G06T 15/04: Texture mapping
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method includes: displaying an interaction interface of an application, and when a preset operation performed by a user on the interaction interface is detected, decoding to-be-displayed image data of the application into bitmap data, and encapsulating the bitmap data into texture data; storing the texture data in a memory partition accessible to a graphics processing unit GPU; triggering the GPU to read the texture data and perform drawing processing to obtain rendered data; and triggering a display to display an image based on the rendered data.

## Claims

### Claim at position 1

1-13. (canceled)

### Claim 14

An image processing method, comprising:
applying for a memory partition accessible by a graphics processing unit (GPU);
displaying an interaction interface of an application;
in response to detecting a preset operation performed by a user on the interaction interface, decoding image data of the application into bitmap data, and
encapsulating the bitmap data into texture data;
storing the texture data in a memory partition;
triggering the GPU to read the texture data and perform drawing processing to obtain rendered data; and
triggering a display to display an image based on the rendered data.

### Claim 15 (depends on 14)

The method according to claim 14, wherein applying for the memory partition accessible by the GPU comprises:
invoking a first interface to apply to an internal storage for the memory partition accessible to the GPU, wherein the first interface is a standard interface of the GPU for applying for the memory partition, and wherein the memory partition accessible to the GPU comprises a range of physical addresses accessible to the GPU and a size of the memory partition accessible to the GPU.

### Claim 16 (depends on 14)

The method according to claim 14, wherein the decoding image data of the application into bitmap data, and encapsulating the bitmap data into texture data comprises:
for each row of a plurality of rows of the image data,
decoding the row of image data to generate bitmap data of the row of image data, and
performing data conversion on the bitmap data of the row of image data to generate texture data of the row of image data.

### Claim 17 (depends on 15)

The method according to claim 15, wherein the decoding to-be-displayed image data of the application into bitmap data, and encapsulating the bitmap data into texture data comprises:
for each row of a plurality of rows of the image data,
decoding the row of image data to generate bitmap data of the row of image data, and
performing data conversion on the bitmap data of the row of image data to generate texture data of the row of image data.

### Claim 18 (depends on 16)

The method according to claim 16, further comprising:
for each row of the plurality of rows of the image data,
invoking a decoding function to perform decoding processing on the row of image data to generate the bitmap data corresponding to the row of image data; and
invoking a texture conversion dynamic library to perform data type conversion processing on the bitmap data corresponding to the row of image data, to generate the texture data corresponding to the row of image data, wherein the texture conversion dynamic library comprises a conversion function for converting bitmap data into texture data.

### Claim 19 (depends on 17)

The method according to claim 17, further comprising:
for each row of the plurality of rows of image data,
invoking a decoding function to perform decoding processing on the row of image data to generate the bitmap data corresponding to the row of image data; and
invoking a texture conversion dynamic library to perform data type conversion processing on the bitmap data corresponding to the row of image data, to generate the texture data corresponding to the row of image data, wherein the texture conversion dynamic library comprises a conversion function for converting bitmap data into texture data.

### Claim 20

An electronic device, comprising:
a processor,
a storage coupled to the processor, and
a memory coupled to the processor to store instructions, which when executed by the processor, cause the processor to perform the operations, the operations comprising:
applying for a memory partition accessible by a graphics processing unit (GPU);
displaying an interaction interface of an application;
in response to detecting a preset operation performed by a user on the interaction interface, decoding image data of the application into bitmap data;
encapsulating the bitmap data into texture data;
storing the texture data in the memory partition;
triggering the GPU to read the texture data and perform drawing processing to obtain rendered data; and
triggering a display to display an image based on the rendered data.

### Claim 21 (depends on 20)

The electronic device according to claim 20, wherein applying for a memory partition comprises:
invoking a first interface to apply to an internal storage for the memory partition accessible to the GPU, wherein the first interface is a standard interface of the GPU for applying for the memory partition, and wherein the memory partition accessible to the GPU comprises a range of physical addresses accessible to the GPU and a size of the memory partition accessible to the GPU.

### Claim 22 (depends on 20)

The electronic device according to claim 20, wherein the decoding image data of the application into bitmap data, and encapsulating the bitmap data into texture data comprises:
for each row of a plurality of rows of the image data,
decoding the row of image data to generate bitmap data of the row of image data, and
performing data conversion on the bitmap data of the row of image data to generate texture data of the row of image data.

### Claim 23 (depends on 21)

The electronic device according to claim 21, wherein the decoding image data of the application into bitmap data, and encapsulating the bitmap data into texture data comprises:
for each row of a plurality of rows of the image data,
decoding the row of image data to generate bitmap data of the row of image data;
performing data conversion on the bitmap data of the row of image data to generate texture data of the row of image data.

### Claim 24 (depends on 22)

The electronic device according to claim 22, further comprising:
for each row of a plurality of rows of the image data,
invoking a decoding function to perform decoding processing on the row of image data to generate the bitmap data corresponding to the row of image data; and
invoking a texture conversion dynamic library to perform data type conversion processing on the bitmap data corresponding to the row of image data, to generate the texture data corresponding to the row of image data, wherein the texture conversion dynamic library comprises a conversion function for converting bitmap data into texture data.

### Claim 25 (depends on 23)

The electronic device according to claim 23, further comprising:
for each row of a plurality of rows of the image data,
invoking a decoding function to perform decoding processing on the row of image data to generate the bitmap data corresponding to the row of image data; and
invoking a texture conversion dynamic library to perform data type conversion processing on the bitmap data corresponding to the row of image data, to generate the texture data corresponding to the first row of image data, wherein the texture conversion dynamic library comprises a conversion function for converting bitmap data into texture data.

### Claim 26

A non-transitory machine-readable storage medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising:
applying for a memory partition accessible by a graphics processing unit (GPU);
displaying an interaction interface of an application;
in response to detecting a preset operation performed by a user on the interaction interface, decoding image data of the application into bitmap data;
encapsulating the bitmap data into texture data;
storing the texture data in the memory partition;
triggering the GPU to read the texture data and perform drawing processing to obtain rendered data; and
triggering a display to display an image based on the rendered data.

### Claim 27 (depends on 26)

The non-transitory machine-readable storage medium according to claim 26, wherein applying for a memory partition comprises:
invoking a first interface to apply to an internal storage for the memory partition accessible to the GPU, wherein the first interface is a standard interface of the GPU for applying for the memory partition, and wherein the memory partition accessible to the GPU comprises a range of physical addresses accessible to the GPU and a size of the memory partition accessible to the GPU.

### Claim 28 (depends on 26)

The non-transitory machine-readable storage medium according to claim 26, wherein the decoding image data of the application into bitmap data, and encapsulating the bitmap data into texture data comprises:
for each row of a plurality of rows of the image data,
decoding the row of image data to generate bitmap data of the row of image data, and
performing data conversion on the bitmap data of the row of image data to generate texture data of the row of image data.

### Claim 29 (depends on 27)

The non-transitory machine-readable storage medium according to claim 27, wherein the decoding image data of the application into bitmap data, and encapsulating the bitmap data into texture data comprises:
for each row of a plurality of rows of the image data,
decoding the row of image data to generate bitmap data of the row of image data, and
performing data conversion on the bitmap data of the row of image data to generate texture data of the row of image data.

### Claim 30 (depends on 28)

The non-transitory machine-readable storage medium according to claim 28, wherein the operations further comprise:
for each row of the plurality of rows of the image data,
invoking a decoding function to perform decoding processing on the row of image data to generate the bitmap data corresponding to the row of image data; and
invoking a texture conversion dynamic library to perform data type conversion processing on the bitmap data corresponding to the row of image data, to generate the texture data corresponding to the row of image data, wherein the texture conversion dynamic library comprises a conversion function for converting bitmap data into texture data.

### Claim 31 (depends on 29)

The non-transitory machine-readable storage medium according to claim 29, wherein the operations further comprise:
for each row of the plurality of rows of the image data,
invoking a decoding function to perform decoding processing on the row of image data to generate the bitmap data corresponding to the row of image data; and
invoking a texture conversion dynamic library to perform data type conversion processing on the bitmap data corresponding to the row of image data, to generate the texture data corresponding to the row of image data, wherein the texture conversion dynamic library comprises a conversion function for converting bitmap data into texture data.
