IP Library › Granted Patent US 12,282,980
Granted Patent B2
US 12,282,980 · App. 17/919,880 · Granted Apr 22, 2025

Picture loading method and related apparatus

Inventor: Wei Fu (Xi'an, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06T1/20H04N19/186H04N21/440218
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,282,980
App. No.
17/919,880
Granted
Apr 22, 2025
Kind
B2
Abstract

A picture loading method includes an electronic device that obtains a first picture file. The first picture file includes a format field and a data field. The format field indicates a source format of the first picture file, and the data field includes pixel data of the first picture file. The electronic device determines, based on the source format of the first picture file, a rendering operation corresponding to the first picture file and renders the first picture file on a display.

Claims (56)

1. A method, comprising:

obtaining a first picture file comprising a format field indicating a source format and comprising a control bit, a color format, and a data field comprising first pixel data;

identifying whether the source format supports a transparent channel;

rendering, in response to identifying that the source format supports a transparent channel, the first picture file on a display with a transparent effect; and

rendering, in response to identifying that the source format does not support a transparent channel, the first picture file on the display with no transparent effect.

2. The method of claim 1 , further comprising controlling transparency of the first picture file using the transparent channel.

3. The method of claim 1 , wherein before obtaining the first picture file, the method further comprises:

obtaining a source file of the first picture file; and

performing format conversion on the source file to obtain the first picture file.

4. The method of claim 3 , further comprising:

compressing the source file based on a preset compression algorithm;

filling, after compressing the source file, second pixel data into the data field when a compression ratio is greater than or equal to a threshold, wherein the compression ratio is of a first size of the source file before compressing to a second size of the source file after compressing; and

filling third pixel data into the data field of the first picture file when the compression ratio is less than the threshold, wherein the compression ratio is a ratio of a size of the source file of the first picture file before the compression to a size after the compression.

5. The method of claim 4 , wherein before rendering the first picture file, the method further comprises:

decompressing the data field based on a preset decompression algorithm when the data field is a compressed field, and filling fourth pixel data after decompressing into the data field; and

skipping changing the data field when the data field is not a compressed field.

6. The method of claim 1 , wherein the first picture file further comprises a transparent color field indicating a transparently displayed color area in the first picture file.

7. The method of claim 6 , further comprising:

identifying that the source format is a third format, and wherein

in response to identifying that the source format is the third format, rendering further comprises:

performing transparency processing on the first picture file based on the transparent color field and displaying the transparently displayed color area when the transparent color field is valid; and

displaying, the first picture file so that it blocks a second picture file when the transparent color field is not valid.

8. The method of claim 1 , further comprising:

obtaining configuration information of the display, wherein the configuration information comprises a size of the display and a display configuration of the display; and

further rendering, based on the configuration information, the first picture file.

9. The method of claim 8 , wherein the rendering comprises one or more of scaling, rotation, or transparent computing.

10. The method of claim 1 , wherein the first picture file further comprises a palette field indicating a mapping relationship between a pixel color of the first picture file and an index number, and wherein one index number represents one color.

11. An electronic device comprising:

a display; and

a processor coupled to the display and configured to:

obtain a first picture file comprising a format field indicating a source format and comprising a control bit, a color format, and a data field comprising first pixel data;

identify whether the source format supports a transparent channel;

render, in response to identifying that the source format supports a transparent channel, the first picture file on the display with a transparent effect; and

render, in response to identifying that the source format does not support a transparent channel, the first picture file on the display with no transparent effect.

12. The electronic device of claim 11 , wherein rendering further comprises controlling transparency of the first picture file using the transparent channel, when the source format supports the transparent channel.

13. The electronic device of claim 11 , wherein before obtaining the first picture file, the processor is further configured to:

obtain a source file of the first picture file; and

perform format conversion on the source file to obtain the first picture file.

14. The electronic device of claim 13 , wherein the processor is further configured to:

compress the source file based on a preset compression algorithm;

fill second pixel data after compressing into the data field when a compression ratio is greater than or equal to a threshold, wherein the compression ratio is of a first size of the source file before compressing to a second size of the source file after compressing; and

fill third pixel data into the data field of the first picture file when the compression ratio is less than the threshold, wherein the compression ratio is a ratio of a size of the source file of the first picture file before the compression to a size after the compression.

15. The electronic device of claim 14 , wherein before rendering the first picture file, the processor is further configured to:

decompress the data field based on a preset decompression algorithm when the data field is a compressed field, and fill fourth pixel data after decompressing into the data field; and

skip changing the data field when the data field is not a compressed field.

16. The electronic device of claim 11 , wherein the first picture file further comprises a transparent color field indicating a transparently displayed color area in the first picture file.

17. The electronic device of claim 16 , wherein the processor is further configured to:

identify that the source format is a third format; and

in response to identifying that the source format is the third format, the rendering further comprises:

performing transparency processing on the first picture file based on the transparent color field and displaying the transparently displayed color area when the transparent color field is valid; and

displaying the first picture file so that it blocks a second picture file when the transparent color field is not valid.

18. The electronic device of claim 11 , wherein the processor is further configured to:

obtain configuration information comprising a size of the display and a display configuration of the display; and

further render, based on the configuration information, the first picture file.

19. The electronic device of claim 18 , wherein the rendering comprises one or more of scaling, rotation, or transparent computing.

20. The electronic device of claim 11 , wherein the first picture file further comprises a palette field indicating a mapping relationship between a pixel color of the first picture file and an index number, and wherein one index number represents one color.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 28, 2023
From: FU, WEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 063127/0997 →
Priority Claims (1)
CN 202010314065.9 · Apr 20, 2020 · national
Continuity (1)
Related Publication 20230162317A1 · May 25, 2023
References Cited (21)
US 6587588B1 · Bottou et al. · 2003 [cited by applicant]
US 6606040B2 · Abdat · 2003 [cited by examiner]
US 6983074B1 · Clauson et al. · 2006 [cited by applicant]
US 9218689B1 · Baldwin · 2015 [cited by examiner]
US 10757347B1 · Corwin · 2020 [cited by examiner]
US 20020196853A1 · Liang · 2002 [cited by examiner]
US 20060041840A1 · Blair · 2006 [cited by examiner]
US 20130194288A1 · Weng et al. · 2013 [cited by applicant]
US 20200077122A1 · Alakuijala · 2020 [cited by examiner]
US 20200196853A1 · van Hemert · 2020 [cited by examiner]
US 20210090413A1 · Nystrom · 2021 [cited by examiner]
CN 101226470A · 2008 [cited by applicant]
CN 102013105A · 2011 [cited by applicant]
CN 102244784A · 2011 [cited by applicant]
CN 102567381A · 2012 [cited by applicant]
CN 103124350A · 2013 [cited by applicant]
CN 104142924A · 2014 [cited by applicant]
CN 107066430A · 2017 [cited by applicant]
CN 109408612A · 2019 [cited by applicant]
EP 2618582A1 · 2013 [cited by applicant]
Jin Zhenxun et al, A Lossless Image Compression Algorithmwith High Compression Ratioin Decoding Process of Embedded System, Bulletin of Science and Technology, Vo. 29, No. 9, Sep. 2013, with the English Abstracts, 3 pag… [cited by applicant]