US 12,437,454 B2
Image processing method, electronic device, and storage medium
Pingzhen Shen, Shenzhen (CN); and Jinxiao Liu, Shenzhen (CN)
Assigned to Honor Device Co., Ltd., Shenzhen (CN)
Appl. No. 18/267,959
Filed by Honor Device Co., Ltd., Shenzhen (CN)
PCT Filed Dec. 19, 2022, PCT No. PCT/CN2022/140111
§ 371(c)(1), (2) Date Jun. 16, 2023,
PCT Pub. No. WO2023/160167, PCT Pub. Date Aug. 31, 2023.
Claims priority of application No. 202210193791.9 (CN), filed on Feb. 28, 2022.
Prior Publication US 2024/0394937 A1, Nov. 28, 2024
Int. Cl. G06T 11/20 (2006.01); G06T 5/70 (2024.01); G06T 5/73 (2024.01); G06T 15/04 (2011.01); G06T 15/80 (2011.01)
CPC G06T 11/203 (2013.01) [G06T 5/70 (2024.01); G06T 5/73 (2024.01); G06T 15/04 (2013.01); G06T 15/80 (2013.01)] 20 Claims
OG exemplary drawing
 
1. An image processing method, the method comprising:
receiving, by an electronic device, a first binding instruction delivered by an application program running on the electronic device, wherein an operation type in the first binding instruction is not a read-only type, and a first framebuffer identifier in the first binding instruction indicates a first framebuffer used for on-screen rendering;
receiving, by the electronic device, a first rendering instruction delivered by the application program, wherein the first rendering instruction indicates to draw first image content; and
executing, by the electronic device, a second rendering instruction to draw second image content on the first framebuffer, wherein the second rendering instruction indicates to draw the second image content, the second image content is generated based on the first image content, and a resolution of the second image content is higher than a resolution of the first image content;
wherein the first image content is obtained through rendering in a second framebuffer, the second framebuffer is used for off-screen rendering, a first texture is bound to the second framebuffer, and a size of the first texture satisfies a preset condition;
wherein the size of the first texture comprises a width of the first texture and a height of the first texture; and
wherein:
the size of the first texture satisfies the preset condition based on the width of the first texture being greater than a first preset value and the height of the first texture being greater than the first preset value; and/or
the size of the first texture satisfies the preset condition based on a difference between a ratio of the width of the first texture to the height of the first texture and a ratio of a width of a display screen of the electronic device to a height of the display screen being within a preset range.