Frame insertion method, device, storage medium and electronic device

By determining and performing frame interpolation processing only on the non-UI area in the electronic device, the problem in the prior art that frame interpolation causes a distortion of the UI area is solved, and the frame interpolation effect and user experience are improved.

CN115048173BActive Publication Date: 2024-09-13GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210692901.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2024-09-13
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

In the prior art, during the frame insertion process of electronic devices, the entire frame image is usually processed globally, resulting in a distortion in the UI area and affecting the user experience.

Method used

By determining the non-UI area from the display area of ​​the electronic device, and only performing frame interpolation processing on this area, frame interpolation processing on the UI area is avoided, thereby improving the frame interpolation effect.

Benefits of technology

It achieves better frame insertion effect, reduces the distortion of the UI area, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115048173B
    Figure CN115048173B
Patent Text Reader

Abstract

The present application discloses a frame insertion method, device, storage medium and electronic device. The method comprises: determining a non-UI area from a display area of ​​the electronic device; and performing frame insertion processing on the non-UI area. The present application can improve the frame insertion effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and in particular, relates to a frame insertion method, device, storage medium and electronic equipment. Background Art

[0002] With the rapid development of electronic devices such as mobile phones, users spend more and more time using electronic devices. The emergence of electronic devices has changed people's lifestyles and their demand for traditional communication tools. People are no longer satisfied with the appearance and basic functions of mobile phones, but begin to pursue mobile phones that can bring more, stronger and more personalized functional services, such as interpolation. However, the interpolation effect of the interpolation solution provided by the related art is poor. Summary of the invention

[0003] The embodiments of the present application provide a frame insertion method, device, storage medium and electronic device, which can improve the frame insertion effect.

[0004] In a first aspect, an embodiment of the present application provides a frame insertion method, which is applied to an electronic device, including:

[0005] Determining a non-UI area from a display area of ​​the electronic device;

[0006] Perform frame insertion processing on the non-UI area.

[0007] In a second aspect, an embodiment of the present application provides a frame insertion device, which is applied to an electronic device, including:

[0008] An area determination module, used to determine a non-UI area from the display area of ​​the electronic device;

[0009] The regional interpolation module is used to perform interpolation processing on the non-UI area.

[0010] In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the interpolation method provided by the embodiment of the present application.

[0011] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the interpolation method provided in the embodiment of the present application by calling a computer program stored in the memory.

[0012] In the embodiment of the present application, by determining the non-UI area from the display area of ​​the electronic device and performing interpolation processing on the non-UI area, it is achieved that only the non-UI area is interpolated. Compared with the solution of performing interpolation processing on both the non-UI area and the UI area at the same time, which causes a distortion in the UI area, the interpolation effect is better. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0014] Figure 1 This is a first flow chart of the frame insertion method provided in an embodiment of the present application.

[0015] Figure 2 This is a schematic diagram of the first scenario of the interpolation method provided in an embodiment of the present application.

[0016] Figure 3 This is a schematic diagram of a second scenario of the interpolation method provided in an embodiment of the present application.

[0017] Figure 4 This is a schematic diagram of a third scenario of the interpolation method provided in an embodiment of the present application.

[0018] Figure 5 This is a schematic diagram of the fourth scenario of the interpolation method provided in an embodiment of the present application.

[0019] Figure 6 This is a second flow chart of the frame insertion method provided in an embodiment of the present application.

[0020] Figure 7 It is a structural schematic diagram of the frame insertion device provided in an embodiment of the present application.

[0021] Figure 8 This is a schematic diagram of the first structure of an electronic device provided in an embodiment of the present application.

[0022] Fig. 9 This is a second structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] It should be noted that the terms "first", "second" and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products or devices.

[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0025] The embodiments of the present application provide a frame insertion method, a frame insertion device, a storage medium, and an electronic device, wherein the execution subject of the frame insertion method may be the frame insertion device provided in the embodiments of the present application, or an electronic device integrated with the frame insertion device, wherein the frame insertion device may be implemented in hardware or software. The electronic device may be a smart phone, a tablet computer, a PDA, a laptop computer, or other device equipped with a processor and having the frame insertion capability.

[0026] See also Figure 1 , Figure 1 1 is a schematic diagram of a first flow chart of a frame insertion method provided in an embodiment of the present application. The frame insertion method is applied to an electronic device. The flow chart may include:

[0027] In 101 , a non-UI area is determined from a display area of ​​an electronic device.

[0028] In the related art, when interpolation is needed, the entire frame image is usually taken out after the graphics processor renders the entire frame image, and the entire frame image is subjected to global interpolation processing to obtain the interpolated frame image. Since only the entire frame image can be subjected to global interpolation processing, when the interpolated frame image is displayed in the display area of ​​the electronic device, the UI part of the interpolated frame image is easily distorted by the user, which greatly affects the user experience.

[0029] Among them, the display area includes a UI area and a non-UI area. The UI area is an area that can provide feedback on the user's operation, while the non-UI area is an area that cannot provide feedback on the user's operation. For example, taking a game application as an example, when a game application is running, there will often be a corresponding game running interface, which can include a 2D or 3D game scene and a game UI (such as an attack button, a skill button, etc.). Then, the area where the 2D or 3D game scene is located is the non-UI area, and the area where the game UI is located is the UI area.

[0030] In this embodiment, when frame insertion is required, the electronic device determines a non-UI area from the display area of ​​the electronic device.

[0031] For example, when interpolation is required, the electronic device can obtain the image that needs to be interpolated. For example, assuming that the electronic device needs to interpolate between image M1 and image M2, the images that need to be interpolated are image M1 and image M2. After acquiring the image that needs to be interpolated, the electronic device can determine the UI image area and the non-UI image area from any image of the image that needs to be interpolated, such as image M1 or image M2. Subsequently, the electronic device determines the area in the display area where the non-UI image area is displayed as the non-UI area.

[0032] In 102, interpolation processing is performed on the non-UI area.

[0033] In this embodiment, after determining the non-UI area, the electronic device may perform frame insertion processing on the non-UI area.

[0034] For example, the electronic device may perform interpolation processing according to the non-UI image area to obtain an interpolation image of the non-UI area.

[0035] Furthermore, the electronic device may synthesize the interpolated image and the UI image area to obtain the interpolated image of the corresponding display area, so that when the interpolated image needs to be displayed, the interpolated image is displayed in the display area.

[0036] In this embodiment, by determining the non-UI area from the display area of ​​the electronic device and performing interpolation processing on the non-UI area, it is achieved that only the non-UI area is interpolated. Compared with the solution of performing interpolation processing on both the non-UI area and the UI area at the same time, which causes a distortion in the UI area, the interpolation effect is better.

[0037] In an optional embodiment, performing frame insertion processing on the non-UI area includes:

[0038] (1) Obtain a reference image corresponding to the non-UI area;

[0039] (2) Perform interpolation processing based on the reference image to obtain an interpolation image in the non-UI area.

[0040] The reference image is an image on which interpolation processing is performed to obtain an interpolation image of a non-UI area.

[0041] Taking a game application as an example, when the game application is running, it is often necessary to display the image drawn by the graphics processor in the display area at a corresponding display frame rate. For example, the images M1, M2, M3, M4...Mn drawn by the graphics processor are displayed in sequence in the display area at a display frame rate of 60FPS. The display frame rate refers to the number of display frames per second.

[0042] When the electronic device determines that it is necessary to insert a frame between image M1 and image M2, the reference image may be the non-UI image area of ​​image M1 and image M2, or the reference image may be the non-UI image area of ​​image M1, image M2, and image M3. When the electronic device determines that it is necessary to insert a frame between image M2 and image M3, the reference image may be the non-UI image area of ​​image M2 and image M3, or the reference image may be the non-UI image area of ​​image M1, image M2, image M3, or the reference image may be the non-UI image area of ​​image M1, image M2, image M3, and image M4.

[0043] For example, when the reference image is the non-UI image area of ​​the image M1 and the image M2, the electronic device performs interpolation processing according to the non-UI image area of ​​the image M1 and the image M2 to obtain an interpolation image of the non-UI area.

[0044] There may be one or more interpolated images, and the specific number of interpolated images to be obtained may be determined according to actual needs, and is not specifically limited here.

[0045] In an optional embodiment, performing interpolation processing according to the reference image to obtain an interpolation image of the non-UI area includes:

[0046] (1) Obtain interpolation parameters;

[0047] (2) Based on the reference image, interpolation processing is performed according to the interpolation parameters to obtain an interpolation image of the non-UI area.

[0048] The interpolation parameters may include: interpolation multiple, interpolation algorithm or interpolation form, etc.

[0049] The interpolation multiple refers to how many times the display frame rate after interpolation is the display frame rate before interpolation. For example, if the display frame rate before interpolation is 30 frames and the display frame rate after interpolation is 90 frames, the interpolation multiple is 3.

[0050] The interpolation algorithm is an algorithm used when performing interpolation processing based on a reference image, including but not limited to an interpolation algorithm or an external interpolation algorithm.

[0051] The interpolation form refers to the form used for interpolation processing, including but not limited to central processing units (Center Processing Units), graphics processing units (Graphics Processing Unit, GPU), digital signal processors (Digital Signal Processing, DSP) or neural network processors (Neural-network Processing Units, UPU).

[0052] For example, assuming that it is necessary to interpolate frames between image M1 and image M2, the current display frame rate of the electronic device is 30PFS, the interpolation multiple is 2, the interpolation algorithm is interpolation frames, and the interpolation form is GPU, then the electronic device can use the interpolation frame algorithm according to the non-UI image areas of image M1 and image M2, and perform interpolation processing in the form of GPU interpolation to obtain a frame of interpolated image in the non-UI area, that is, the image displayed in the non-UI area of ​​the display area.

[0053] In an optional embodiment, the interpolation frame parameters may be input by a user. For example, the electronic device may provide a parameter configuration interface, through which the interpolation frame parameters input by the user are received.

[0054] In an optional embodiment, the interpolation parameters may also be automatically determined by the electronic device.

[0055] In an optional embodiment, after performing interpolation processing according to the reference image to obtain an interpolation image of the non-UI area, the method further includes:

[0056] (1) Determine the UI area from the display area;

[0057] (2) Obtain a reference image corresponding to the UI area;

[0058] (3) The interpolated image and the reference image of the corresponding UI area are synthesized to obtain the interpolated image of the display area.

[0059] For example, when interpolation is required, the electronic device can obtain the image that needs to be interpolated. For example, assuming that the electronic device needs to interpolate between image M1 and image M2, the images that need to be interpolated are image M1 and image M2. After acquiring the image that needs to be interpolated, the electronic device can determine the UI image area and the non-UI image area from any image of the image that needs to be interpolated, such as image M1 or image M2. Subsequently, the electronic device determines the area in the display area where the non-UI image area is displayed as the non-UI area, and determines the area in the display area where the UI image area is displayed as the UI area.

[0060] Among them, the reference image corresponding to the UI area can be determined based on the reference image corresponding to the non-UI area. For example, when the reference image corresponding to the non-UI area is the non-UI image area of ​​image M1 and image M2, the reference image corresponding to the UI area can be the UI image area of ​​image M1 or image M2. When the reference image corresponding to the non-UI area is the non-UI image area of ​​image M1, M2 and image M3, the reference image corresponding to the UI area can be the UI image area of ​​image M1, image M2 or image M3.

[0061] For example, assuming that the interpolated image of the non-UI area is obtained by interpolating the non-UI image areas of image M1 and image M2, then the electronic device can synthesize the interpolated image and the UI image area of ​​image M1 to obtain the interpolated image of the display area; the electronic device can also synthesize the interpolated image and the UI image area of ​​image M2 to obtain the interpolated image of the display area.

[0062] For example, see also Figure 2 and Figure 3 , assuming that it is necessary to interpolate between image M1 and image M2, the current display frame rate of the electronic device is 30PFS, and the interpolation multiple is 2, then the electronic device can perform interpolation processing based on the non-UI image area G11 of image M1 and the non-UI image area G12 of image M2 to obtain a frame of interpolated image G21 in the non-UI area. Then, the electronic device can synthesize the interpolated image G21 in the non-UI area with the UI image area G31 of image M1 to obtain a frame of interpolated image G1 in the display area. Furthermore, the electronic device can display image M1, interpolated image G1, and image M2 in the display area in sequence at a display frame rate of 60FPS. The electronic device can also synthesize the interpolated image G21 in the non-UI area with the UI image area G32 of image M2 to obtain a frame of interpolated image G2 in the display area. Furthermore, the electronic device can display image M1, interpolated image G2, and image M2 in the display area in sequence at a display frame rate of 60FPS.

[0063] For details, please refer to Figure 4 Taking the synthesis of the interpolated image G21 and the image area G31 to obtain the interpolated image G1 as an example, the electronic device first performs interpolation processing according to the non-UI image area G11 of the image M1 and the non-UI image area G12 of the image M2 to obtain the interpolated image G21 of the non-UI area, and then the electronic device determines the relative position of the interpolated image G21 and the UI image area G31 of the image M1. Next, the electronic device splices the interpolated image G21 and the UI image area G31 of the image M1 according to the determined relative position to obtain the interpolated image G1.

[0064] Among them, the relative position of the interpolated image G21 and the UI image area G31 of the image M1 is the same as the relative position of the non-UI image area G11 and the UI image area G31 of the image M1, and the relative position of the interpolated image G21 and the UI image area G31 of the image M1 is the same as the relative position of the non-UI image area G12 and the UI image area G32 of the image M2. Therefore, the relative position of the interpolated image G21 and the UI image area G31 of the image M1 can be determined based on the relative position of the non-UI image area G11 and the UI image area G31 of the image M1 or the relative position of the non-UI image area G12 and the UI image area G32 of the image M2.

[0065] For another example, see Figure 5 , assuming that it is necessary to interpolate between image M1 and image M2, the current display frame rate of the electronic device is 30PFS, and the interpolation multiple is 3, then the electronic device can perform interpolation processing based on the non-UI image area G11 of image M1 and the non-UI image area G12 of image M2 to obtain two interpolated frames G22 and G23 in the non-UI area. Then, the electronic device can synthesize the interpolated image G22 with the UI image area G31 of image M1 to obtain a frame of interpolated image G3 in the display area, and the electronic device can synthesize the interpolated image G23 with the UI image area G32 of image M2 to obtain a frame of interpolated image G4 in the display area. Furthermore, the electronic device can display image M1, interpolated image G3, interpolated image G4 and image M2 in the display area in sequence at a display frame rate of 90FPS.

[0066] In an optional embodiment, before determining the non-UI area of ​​the electronic device, the method further includes:

[0067] (1) when the power consumption of the electronic device is greater than the preset power consumption, determining a target drawing frame rate according to the current drawing frame rate of the electronic device, wherein the target drawing frame rate is less than the current drawing frame rate;

[0068] (2) Setting the drawing frame rate of the electronic device to the target drawing frame rate.

[0069] The drawing frame rate refers to the number of drawing frames per second.

[0070] It is understandable that the power consumption of the electronic device for interpolation processing is much less than the power consumption of the electronic device for drawing images. The power consumption of the electronic device is relatively high. For example, when it is greater than the preset power consumption, the electronic device will often heat up seriously and cause the problem of jamming. Based on this, the electronic device can determine the target drawing frame rate according to the current drawing frame rate of the electronic device when the power consumption of the electronic device is greater than the preset power consumption. Subsequently, the electronic device sets the drawing frame rate of the electronic device to the target drawing frame rate, so that the electronic device can draw the image according to the target drawing frame rate to reduce power consumption. Among them, the target drawing frame rate is less than the current drawing frame rate. The preset power consumption can be set by the user or generated by the electronic device based on certain rules.

[0071] It can also be understood that after the drawing frame rate of the electronic device is set to the target drawing frame rate, if interpolation processing is not performed, the display frame rate of the electronic device will also be the same as the target drawing frame rate, that is, the display frame rate of the electronic device will also be reduced. In order to prevent the user experience from deteriorating as the drawing frame rate decreases, after the drawing frame rate of the electronic device is set to the target drawing frame rate, the electronic device will also determine the non-UI area from the display area of ​​the electronic device and perform interpolation processing on the non-UI area, thereby improving the display frame rate of the electronic device.

[0072] For example, assuming that the current rendering frame rate is 90 FPS, the electronic device may determine the target rendering frame rate to be 60 FPS, so that the display frame rate of the electronic device is also 60 FPS. Subsequently, the electronic device sets the interpolation multiple to 1.5 times, so that the display frame rate of the electronic device is still 90 FPS.

[0073] For another example, assuming that the current rendering frame rate is 90 FPS, the electronic device may determine the target rendering frame rate to be 30 FPS, so that the display frame rate of the electronic device is also 30 FPS. Subsequently, the electronic device sets the interpolation multiple to 3 times, so that the display frame rate of the electronic device is still 90 FPS.

[0074] In an optional embodiment, determining the non-UI area from the display area of ​​the electronic device includes:

[0075] In response to a triggering operation of increasing the frame rate, a non-UI area is determined from a display area of ​​the electronic device.

[0076] In order to meet the needs of some users for high frame rates, the electronic device can provide a trigger interface for increasing the frame rate. The user can trigger the increase of the frame rate by triggering, such as clicking or pressing, the trigger interface, so that the electronic device receives the trigger operation for increasing the frame rate. In response to the trigger operation, the electronic device determines a non-UI area from the display area of ​​the electronic device, and performs interpolation processing on the non-UI area, thereby increasing the display frame rate of the electronic device.

[0077] For example, assuming that the current display frame rate of the electronic device is 60FPS, if a trigger operation to increase the frame rate is received from the user, the electronic device can perform 1.5 times interpolation processing on the non-UI area, so that the current display frame rate of the electronic device is 90FPS.

[0078] In an optional embodiment, determining the non-UI area from the display area of ​​the electronic device includes:

[0079] (1) Obtain drawing instructions corresponding to the display area;

[0080] (2) According to the drawing instruction, a non-UI area is determined from the display area of ​​the electronic device.

[0081] For example, when interpolation is required, the electronic device obtains input through a hook method, intercepts the graphics API drawing instructions of the electronic device, and thus obtains the drawing instructions corresponding to the display area. The graphics API drawing instructions that support interception include but are not limited to OpenGL, OpenGL ES, Vulkan, DirectX or Metal.

[0082] Subsequently, the electronic device determines which of the drawing instructions corresponding to the display area belong to UI drawing instructions and which belong to non-UI drawing instructions, and determines the area corresponding to the non-UI drawing instructions in the display area as the non-UI area.

[0083] Specifically, the electronic device may obtain the non-UI image area drawn by the non-UI drawing instruction in the drawing instruction corresponding to the display area, and determine the area in the display area where the non-UI image area is displayed as the non-UI area.

[0084] In an optional embodiment, determining the UI area from the display area includes:

[0085] According to the drawing instruction, a UI area is determined from a display area of ​​the electronic device.

[0086] For example, the electronic device determines which of the drawing instructions corresponding to the display area belong to UI drawing instructions and which belong to non-UI drawing instructions, and determines the area corresponding to the UI drawing instructions in the display area as the UI area.

[0087] Specifically, the electronic device may obtain a UI image area drawn by a UI drawing instruction in a drawing instruction corresponding to the display area, and determine an area in the display area where the UI image area is displayed as the UI area.

[0088] See also Figure 6 , Figure 6 : is a second flow diagram of the frame insertion method provided in an embodiment of the present application. The frame insertion method is applied to an electronic device. The flow may include:

[0089] 201. When the power consumption of the electronic device is greater than a preset power consumption, a target drawing frame rate is determined according to a current drawing frame rate of the electronic device, and the target drawing frame rate is less than the current drawing frame rate.

[0090] 202. Set a drawing frame rate of the electronic device as a target drawing frame rate.

[0091] It is understandable that the power consumption of the electronic device for interpolation processing is much less than the power consumption of the electronic device for drawing images. The power consumption of the electronic device is relatively high. For example, when it is greater than the preset power consumption, the electronic device will often heat up seriously and cause the problem of jamming. Based on this, the electronic device can determine the target drawing frame rate according to the current drawing frame rate of the electronic device when the power consumption of the electronic device is greater than the preset power consumption. Subsequently, the electronic device sets the drawing frame rate of the electronic device to the target drawing frame rate, so that the electronic device can draw the image according to the target drawing frame rate to reduce power consumption. Among them, the target drawing frame rate is less than the current drawing frame rate. The preset power consumption can be set by the user or generated by the electronic device based on certain rules.

[0092] For example, assuming that the current rendering frame rate is 90 FPS, the electronic device may determine the target rendering frame rate to be 60 FPS, so that the display frame rate of the electronic device is also 60 FPS.

[0093] For another example, assuming that the current rendering frame rate is 90 FPS, the electronic device may determine the target rendering frame rate to be 30 FPS, so that the display frame rate of the electronic device is also 30 FPS.

[0094] In an optional embodiment, a preset mapping relationship between power consumption and reference drawing frame rate can be preset and built into the electronic device. Among them, one power consumption can correspond to one reference drawing frame rate, one power consumption interval can correspond to one reference drawing frame rate, one power consumption interval can correspond to one reference drawing frame rate interval, and one power consumption can correspond to one reference drawing frame rate interval.

[0095] When the power consumption of the electronic device is greater than the preset power consumption, the electronic device can determine the corresponding reference drawing frame rate according to the power consumption of the electronic device and the preset mapping relationship. Subsequently, the electronic device can use the difference between the current drawing frame rate and the reference drawing frame rate as the target drawing frame rate.

[0096] It is understandable that if the preset mapping relationship between power consumption and reference drawing frame rate is one power consumption corresponding to one reference drawing frame rate or one power consumption range corresponding to one reference drawing frame rate, then when the power consumption of the electronic device is greater than the preset power consumption, the electronic device can directly determine the corresponding reference drawing frame rate according to the power consumption of the electronic device and the preset mapping relationship. Subsequently, the electronic device can use the difference between the current drawing frame rate and the reference drawing frame rate as the target drawing frame rate.

[0097] For example, if the preset mapping relationship between power consumption and reference drawing frame rate is one power consumption corresponding to one reference drawing frame rate interval or one power consumption interval corresponding to one reference drawing frame rate interval, then when the power consumption of the electronic device is greater than the preset power consumption, the electronic device can determine the target reference drawing frame rate interval according to the power consumption of the electronic device and the preset mapping relationship; the electronic device can determine the target reference drawing frame rate from the target reference drawing frame rate interval. Subsequently, the electronic device can use the difference between the current drawing frame rate and the target reference drawing frame rate as the target drawing frame rate.

[0098] Among them, the target reference drawing frame rate can be automatically determined by the electronic device from the target reference drawing frame rate interval. For example, the electronic device can determine any reference drawing frame rate in the target reference drawing frame rate interval as the target reference drawing frame rate, and can also determine the larger, such as the largest, reference drawing frame rate in the target reference drawing frame rate interval as the target reference drawing frame rate when the difference between the power consumption and the preset power consumption is greater than the preset difference, and determine the smaller, such as the smallest, reference drawing frame rate in the target reference drawing frame rate interval as the target reference drawing frame rate when the difference between the power consumption and the preset power consumption is less than or equal to the preset difference. The target reference drawing frame rate can also be determined by the user from the target reference drawing frame rate interval. For example, the electronic device can provide a frame rate selection interface according to the target reference drawing frame rate interval, receive the reference drawing frame rate selected by the user through the frame rate selection interface, and determine the reference drawing frame rate selected by the user as the target reference drawing frame rate.

[0099] 203. Obtain drawing instructions corresponding to the display area.

[0100] 204. Determine a non-UI area from the display area of ​​the electronic device according to the drawing instruction.

[0101] It can be understood that after the drawing frame rate of the electronic device is set to the target drawing frame rate, if no interpolation processing is performed, the display frame rate of the electronic device will also be the same as the target drawing frame rate, that is, the display frame rate of the electronic device will also be reduced. In order to prevent the user experience from deteriorating as the drawing frame rate decreases, after the drawing frame rate of the electronic device is set to the target drawing frame rate, the electronic device also determines the non-UI area from the display area of ​​the electronic device according to the drawing instructions corresponding to the display area.

[0102] The electronic device obtains input by hooking, intercepts the graphics API drawing instructions of the electronic device, and thus obtains the drawing instructions corresponding to the display area. The graphics API drawing instructions that support interception include but are not limited to OpenGL, OpenGLES, Vulkan, DirectX or Metal.

[0103] Subsequently, the electronic device determines which of the drawing instructions corresponding to the display area belong to UI drawing instructions and which belong to non-UI drawing instructions, and determines the area corresponding to the non-UI drawing instructions in the display area as the non-UI area.

[0104] Specifically, the electronic device may obtain the non-UI image area drawn by the non-UI drawing instruction in the drawing instruction corresponding to the display area, and determine the area in the display area where the non-UI image area is displayed as the non-UI area.

[0105] 205. Obtain a reference image corresponding to the non-UI area.

[0106] The reference image is an image on which interpolation processing is performed to obtain an interpolation image of a non-UI area.

[0107] Taking a game application as an example, when the game application is running, it is often necessary to display the image drawn by the graphics processor in the display area at a corresponding display frame rate. For example, the images M1, M2, M3, M4...Mn drawn by the graphics processor are displayed in sequence in the display area at a display frame rate of 60FPS. The display frame rate refers to the number of display frames per second.

[0108] When the electronic device determines that it is necessary to insert a frame between image M1 and image M2, the reference image may be the non-UI image area of ​​image M1 and image M2, or the reference image may be the non-UI image area of ​​image M1, image M2, and image M3. When the electronic device determines that it is necessary to insert a frame between image M2 and image M3, the reference image may be the non-UI image area of ​​image M2 and image M3, or the reference image may be the non-UI image area of ​​image M1, image M2, image M3, or the reference image may be the non-UI image area of ​​image M1, image M2, image M3, and image M4.

[0109] 206. Get interpolation parameters.

[0110] The interpolation parameters may include: interpolation multiple, interpolation algorithm or interpolation form, etc.

[0111] The interpolation multiple refers to how many times the display frame rate after interpolation is the display frame rate before interpolation. For example, if the display frame rate before interpolation is 30 frames and the display frame rate after interpolation is 90 frames, the interpolation multiple is 3.

[0112] The interpolation algorithm is an algorithm used when performing interpolation processing based on a reference image, including but not limited to an interpolation algorithm or an external interpolation algorithm.

[0113] The interpolation form refers to the form used for interpolation processing, including but not limited to central processing units (Center Processing Units), graphics processing units (Graphics Processing Unit, GPU), digital signal processors (Digital Signal Processing, DSP) or neural network processors (Neural-network Processing Units, UPU).

[0114] In an optional embodiment, the interpolation frame parameters may be input by a user. For example, the electronic device may provide a parameter configuration interface, through which the interpolation frame parameters input by the user are received.

[0115] In an optional embodiment, the interpolation parameters may also be automatically determined by the electronic device.

[0116] 207. Perform interpolation processing according to the reference image and interpolation parameters to obtain an interpolation image of the non-UI area.

[0117] For example, assuming that it is necessary to interpolate frames between image M1 and image M2, the current display frame rate of the electronic device is 30PFS, the interpolation multiple is 2, the interpolation algorithm is interpolation frames, and the interpolation form is GPU, then the electronic device can use the interpolation frame algorithm according to the non-UI image areas of image M1 and image M2, and perform interpolation processing in the form of GPU interpolation to obtain a frame of interpolated image in the non-UI area, that is, the image displayed in the non-UI area of ​​the display area.

[0118] 208. Determine a UI area from the display area of ​​the electronic device according to the drawing instruction.

[0119] For example, the electronic device determines which of the drawing instructions corresponding to the display area belong to UI drawing instructions and which belong to non-UI drawing instructions, and determines the area corresponding to the UI drawing instructions in the display area as the UI area.

[0120] Specifically, the electronic device may obtain a UI image area drawn by a UI drawing instruction in a drawing instruction corresponding to the display area, and determine an area in the display area where the UI image area is displayed as the UI area.

[0121] 209. Obtain a reference image corresponding to the UI area.

[0122] Among them, the reference image corresponding to the UI area can be determined based on the reference image corresponding to the non-UI area. For example, when the reference image corresponding to the non-UI area is the non-UI image area of ​​image M1 and image M2, the reference image corresponding to the UI area can be the UI image area of ​​image M1 or image M2. When the reference image corresponding to the non-UI area is the non-UI image area of ​​image M1, M2 and image M3, the reference image corresponding to the UI area can be the UI image area of ​​image M1, image M2 or image M3.

[0123] 210 . Perform synthesis processing on the interpolated frame image and the reference image corresponding to the UI area to obtain the interpolated frame image of the display area.

[0124] For example, assuming that the interpolated image of the non-UI area is obtained by interpolating the non-UI image areas of image M1 and image M2, then the electronic device can synthesize the interpolated image and the UI image area of ​​image M1 to obtain the interpolated image of the display area; the electronic device can also synthesize the interpolated image and the UI image area of ​​image M2 to obtain the interpolated image of the display area.

[0125] For example, see also Figure 2 and Figure 3 , assuming that it is necessary to interpolate between image M1 and image M2, the current display frame rate of the electronic device is 30PFS, and the interpolation multiple is 2, then the electronic device can perform interpolation processing based on the non-UI image area G11 of image M1 and the non-UI image area G12 of image M2 to obtain a frame of interpolated image G21 in the non-UI area. Then, the electronic device can synthesize the interpolated image G21 in the non-UI area with the UI image area G31 of image M1 to obtain a frame of interpolated image G1 in the display area. Furthermore, the electronic device can display image M1, interpolated image G1, and image M2 in the display area in sequence at a display frame rate of 60FPS. The electronic device can also synthesize the interpolated image G21 in the non-UI area with the UI image area G32 of image M2 to obtain a frame of interpolated image G2 in the display area. Furthermore, the electronic device can display image M1, interpolated image G2, and image M2 in the display area in sequence at a display frame rate of 60FPS.

[0126] For another example, see Figure 5 , assuming that it is necessary to interpolate between image M1 and image M2, the current display frame rate of the electronic device is 30PFS, and the interpolation multiple is 3, then the electronic device can perform interpolation processing based on the non-UI image area G11 of image M1 and the non-UI image area G12 of image M2 to obtain two interpolated frames G22 and G23 in the non-UI area. Then, the electronic device can synthesize the interpolated image G22 with the UI image area G31 of image M1 to obtain a frame of interpolated image G3 in the display area, and the electronic device can synthesize the interpolated image G22 with the UI image area G32 of image M2 to obtain a frame of interpolated image G4 in the display area. Furthermore, the electronic device can display image M1, interpolated image G3, interpolated image G4 and image M2 in the display area in sequence at a display frame rate of 90FPS.

[0127] See also Figure 7 , Figure 7 The schematic diagram of the structure of the frame insertion device provided in the embodiment of the present application is as follows: The frame insertion device 300 includes: a region determination module 301 and a region frame insertion module 302 .

[0128] The area determination module 301 is used to determine a non-UI area from the display area of ​​the electronic device.

[0129] The regional frame insertion module 302 is used to perform frame insertion processing on the non-UI area.

[0130] In an optional embodiment, the regional interpolation module 302 may be used to: obtain a reference image corresponding to the non-UI area; and perform interpolation processing according to the reference image to obtain an interpolation image of the non-UI area.

[0131] In an optional embodiment, the regional interpolation module 302 may be used to: obtain interpolation parameters; perform interpolation processing according to the reference image and the interpolation parameters to obtain an interpolation image of the non-UI area.

[0132] In an optional embodiment, the regional interpolation module 302 can be used to: determine the UI area from the display area; obtain a reference image corresponding to the UI area; and synthesize the interpolation image and the reference image corresponding to the UI area to obtain the interpolation image of the display area.

[0133] In an optional embodiment, the interpolation device 300 may further include a frame rate setting module, which may be used to: when the power consumption of the electronic device is greater than a preset power consumption, determine a target drawing frame rate according to the current drawing frame rate of the electronic device, the target drawing frame rate being less than the current drawing frame rate; and set the drawing frame rate of the electronic device to the target drawing frame rate.

[0134] In an optional embodiment, the area determination module 301 may be used to: determine a non-UI area from a display area of ​​the electronic device in response to a trigger operation of increasing a frame rate.

[0135] In an optional embodiment, the area determination module 301 may be used to: obtain a drawing instruction corresponding to the display area; and determine a non-UI area from the display area of ​​the electronic device according to the drawing instruction.

[0136] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the frame insertion method provided in this embodiment.

[0137] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the frame insertion method provided in the present embodiment by calling a computer program stored in the memory.

[0138] For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Figure 8 , Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0139] The electronic device 400 may include components such as a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0140] The processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.

[0141] The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 401 executes various functional applications and data processing by running the applications stored in the memory 402.

[0142] In this embodiment, the processor 401 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application program stored in the memory 402, thereby implementing the process:

[0143] Determine a non-UI area from a display area of ​​the electronic device;

[0144] Perform interpolation processing on non-UI areas.

[0145] See also Fig. 9 The electronic device 400 may include components such as a processor 401, a memory 402, an input unit 403, and an output unit 404.

[0146] The processor 401 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.

[0147] The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 401 executes various functional applications and data processing by running the applications stored in the memory 402.

[0148] The input unit 403 may be used to receive input numbers, character information or user feature information (such as fingerprints), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0149] The output unit 404 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, videos, and any combination thereof. The output unit may include a display screen, which may include a display area.

[0150] In this embodiment, the processor 401 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application program stored in the memory 402, thereby implementing the process:

[0151] Determine a non-UI area from a display area of ​​the electronic device;

[0152] Perform interpolation processing on non-UI areas.

[0153] In an optional embodiment, when the processor 401 performs interpolation processing on the non-UI area, it can execute: obtaining a reference image corresponding to the non-UI area; performing interpolation processing according to the reference image to obtain an interpolation image of the non-UI area.

[0154] In an optional embodiment, when the processor 401 performs interpolation processing according to the reference image to obtain the interpolation image of the non-UI area, it can execute: obtaining interpolation parameters; performing interpolation processing according to the reference image and the interpolation parameters to obtain the interpolation image of the non-UI area.

[0155] In an optional embodiment, after the processor 401 performs interpolation processing based on the reference image to obtain the interpolation image of the non-UI area, it can also perform: determining the UI area from the display area; obtaining the reference image of the corresponding UI area; and synthesizing the interpolation image and the reference image of the corresponding UI area to obtain the interpolation image of the display area.

[0156] In an optional embodiment, before the processor 401 determines the non-UI area from the display area of ​​the electronic device, it may also execute: when the power consumption of the electronic device is greater than the preset power consumption, determining a target drawing frame rate according to the current drawing frame rate of the electronic device, the target drawing frame rate is less than the current drawing frame rate; setting the drawing frame rate of the electronic device to the target drawing frame rate.

[0157] In an optional embodiment, when the processor 401 determines the non-UI area from the display area of ​​the electronic device, it can perform: in response to a trigger operation of increasing the frame rate, determining the non-UI area from the display area of ​​the electronic device.

[0158] In an optional embodiment, when the processor 401 determines the non-UI area from the display area of ​​the electronic device, it can execute: obtaining a drawing instruction corresponding to the display area; and determining the non-UI area from the display area of ​​the electronic device according to the drawing instruction.

[0159] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the interpolation method above, and will not be repeated here.

[0160] The interpolation device provided in the embodiment of the present application belongs to the same concept as the interpolation method in the above embodiment. Any method provided in the interpolation method embodiment can be run on the interpolation device. The specific implementation process is detailed in the interpolation method embodiment, which will not be repeated here.

[0161] It should be noted that, for the interpolation method of the embodiment of the present application, ordinary technicians in the field can understand that all or part of the process of implementing the interpolation method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the interpolation method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0162] For the interpolation device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.

[0163] The above is a detailed introduction to an interpolation method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A frame insertion method, applied to an electronic device, characterized in that: include: When the power consumption of the electronic device is greater than the preset power consumption, determining a target drawing frame rate according to the current drawing frame rate of the electronic device, wherein the target drawing frame rate is less than the current drawing frame rate; Setting the drawing frame rate of the electronic device to the target drawing frame rate; Draw an image according to the target drawing frame rate to obtain an image of a corresponding display area; Determining a non-UI area from a display area of ​​the electronic device; Determine a non-UI image area corresponding to the non-UI area from the image corresponding to the display area, and obtain a reference image corresponding to the non-UI area, wherein the reference image is a partial area of ​​the image; Performing interpolation processing according to the reference image to obtain an interpolation image of the non-UI area; Determine a UI area from the display area; Determine a UI image area corresponding to the UI area from the image corresponding to the display area, and obtain a reference image corresponding to the UI area; Performing synthesis processing on the interpolated frame image and a reference image corresponding to the UI area to obtain an interpolated frame image of the display area; The image and the interpolated image of the display area are displayed.

2. The frame insertion method according to claim 1, characterized in that: The performing interpolation processing according to the reference image to obtain the interpolation image of the non-UI area includes: Get interpolation parameters; According to the reference image, interpolation processing is performed according to the interpolation parameters to obtain an interpolation image of the non-UI area.

3. The frame insertion method according to claim 1 or 2, characterized in that: The determining a non-UI area from a display area of ​​the electronic device includes: In response to a triggering operation of increasing the frame rate, a non-UI area is determined from a display area of ​​the electronic device.

4. The frame insertion method according to claim 1 or 2, characterized in that: The determining a non-UI area from a display area of ​​the electronic device includes: Obtaining a drawing instruction corresponding to the display area; According to the drawing instruction, a non-UI area is determined from the display area of ​​the electronic device.

5. A frame insertion device, applied to electronic equipment, characterized in that: include: A frame rate setting module, configured to determine a target drawing frame rate according to a current drawing frame rate of the electronic device when the power consumption of the electronic device is greater than a preset power consumption, wherein the target drawing frame rate is less than the current drawing frame rate; set the drawing frame rate of the electronic device to the target drawing frame rate; draw an image according to the target drawing frame rate to obtain an image of a corresponding display area; An area determination module, used to determine a non-UI area from the display area of ​​the electronic device; A regional interpolation module, configured to determine a non-UI image region corresponding to the non-UI region from an image corresponding to the display region, and obtain a reference image corresponding to the non-UI region, wherein the reference image is a partial region of the image; Performing interpolation processing according to the reference image to obtain an interpolation image of the non-UI area; Determine a UI area from the display area; determine a UI image area corresponding to the UI area from an image corresponding to the display area, and obtain a reference image corresponding to the UI area; Performing synthesis processing on the interpolated frame image and a reference image corresponding to the UI area to obtain an interpolated frame image of the display area; The image and the interpolated image of the display area are displayed.

6. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is run on a computer, the computer is enabled to execute the frame insertion method according to any one of claims 1 to 4.

7. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the interpolation method according to any one of claims 1 to 4 by calling the computer program stored in the memory.