Image frame processing method, device and equipment, mobile phone and storage medium
By determining the graphics processing time state of the image frame in the smart terminal device and increasing the frequency under high temperature conditions, the problem of high frame drop rate during the graphics processing is solved, and the smoothness and performance of the device are improved.
Patent Information
- Application Number
- CN202310579665.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2024-11-22
AI Technical Summary
Smart terminal devices have a high frame loss rate during graphics processing, resulting in poor user experience, especially when there are many layout levels and superimposed functional requirements, the drawing and rendering process during view drawing is complicated, resulting in high temperature drop in processor frequency. Frequency limit, performance degradation.
By determining the graphics processing time status of the current image frame, if the timeout is exceeded, query the target operation upper limit frequency and perform frequency enhancement operations when the shell temperature is appropriate, break through the high-temperature frequency reduction limit, and increase the processor operation frequency to reduce the frame loss rate.
Break through the temperature control limit in a short time under high temperature conditions, improve the processor operating frequency, significantly reduce the frame loss rate, and improve the smoothness and performance of the user experience.
Smart Images

Figure CN119006261A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of graphics processing technology, and in particular to an image frame processing method, device, equipment, mobile phone and storage medium. Background Art
[0002] The popularization of smart terminal devices has driven the rapid development of mobile development and provided convenience for users' daily lives.
[0003] As functional requirements continue to accumulate, there are too many layout levels, which leads to multiple drawing of views, too many nested layouts, and a high frame loss rate during graphics processing. Summary of the invention
[0004] The present disclosure provides an image frame processing method, device, equipment, mobile phone and storage medium to at least solve the problem of serious frame loss in the existing graphics process.
[0005] The technical solution of the present disclosure is as follows:
[0006] The present disclosure discloses an image frame processing method, including:
[0007] Determine the graphics processing duration state of the current image frame;
[0008] In a case where the graphics processing duration state is a timeout state, determining a target upper limit operating frequency of the processor according to the timeout duration, wherein the upper limit operating frequency of the processor is greater than a current operating frequency of the processor;
[0009] When the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit, the processor is frequency-increased according to the frequency-increase time corresponding to the current active event and the target operating upper limit frequency to perform graphics processing operations on subsequent image frames.
[0010] Optionally, the method further comprises:
[0011] When the graphics processing duration is in a non-timeout state, the current image frame is synthesized and displayed.
[0012] Optionally, before determining the graphics processing duration state of the current image frame, the method further includes:
[0013] Determine the current focus application;
[0014] In the case that the focus application is a preset list application, the graphics processing duration state of the current image frame of the focus application is determined, wherein the preset list application is an application whose failure frequency meets a set condition.
[0015] Optionally, determining the graphics processing duration state of the current image frame includes:
[0016] Performing an image processing operation on the current image frame;
[0017] In the case that at least one of the drawing duration, the request buffer duration, and the release buffer duration of the current image frame times out, determining that the graphics processing duration state of the current image frame is a timeout state;
[0018] In the case that the drawing duration, the request buffer duration, and the release buffer duration of the current image frame are not timed out, it is determined that the graphics processing duration state of the current image frame is a non-timed out state.
[0019] Optionally, determining a target upper limit operating frequency of the processor according to the timeout duration includes:
[0020] According to the timeout duration, a mapping relationship table between the timeout duration interval and the upper limit operating frequency is queried to obtain the target upper limit operating frequency of the processor.
[0021] Optionally, the current activity event includes: a current process or a current operation scenario; before performing a frequency increase operation on the processor according to the frequency increase time corresponding to the current activity event and the target upper limit frequency of the operation to perform a graphics processing operation on subsequent image frames, the method further includes:
[0022] According to the current process, query the mapping relationship table between the preset process and the first preset frequency increase time to obtain the frequency increase time corresponding to the current process; or
[0023] According to the current operation scenario, a mapping relationship table between preset operation scenarios and second preset frequency increase time is queried to obtain the frequency increase time corresponding to the current operation scenario.
[0024] Optionally, the frequency increase time is multiple, and after determining the target upper limit frequency of the processor according to the timeout duration, the method further includes:
[0025] Determining a plurality of repetitive time periods of the frequency increasing times;
[0026] A deduplication operation is performed on the repeated time period to obtain a frequency-increasing time after deduplication.
[0027] The present disclosure also provides an image frame processing device, including:
[0028] A first determination module, used to determine the graphics processing duration state of the current image frame;
[0029] A second determination module, when the graphics processing duration state is a timeout state, is used to determine a target upper limit operating frequency of the processor according to the timeout duration, wherein the upper limit operating frequency of the processor is greater than a current operating frequency of the processor;
[0030] The frequency boost module is used to boost the frequency of the processor according to the frequency boost time corresponding to the current active event and the target operating upper limit frequency when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit, so as to perform graphics processing operations on subsequent image frames.
[0031] Optionally, the second determining module may also be used to:
[0032] When the graphics processing duration is in a non-timeout state, the current image frame is synthesized and displayed.
[0033] Optionally, before determining the graphics processing duration state of the current image frame, the first determining module may also be used to:
[0034] Determine the current focus application;
[0035] In the case that the focus application is a preset list application, the graphics processing duration state of the current image frame of the focus application is determined, wherein the preset list application is an application whose failure frequency meets a set condition.
[0036] Optionally, when determining the graphics processing duration state of the current image frame, the first determining module is used to:
[0037] Performing an image processing operation on the current image frame;
[0038] In the case that at least one of the drawing duration, the request buffer duration, and the release buffer duration of the current image frame times out, determining that the graphics processing duration state of the current image frame is a timeout state;
[0039] In the case that the drawing duration, the request buffer duration, and the release buffer duration of the current image frame are not timed out, it is determined that the graphics processing duration state of the current image frame is a non-timed out state.
[0040] Optionally, when determining the target upper limit operating frequency of the processor according to the timeout duration, the second determining module is configured to:
[0041] According to the timeout duration, a mapping relationship table between the timeout duration interval and the upper limit operating frequency is queried to obtain the target upper limit operating frequency of the processor.
[0042] Optionally, the current activity event includes: a current process or a current operation scenario; before the frequency increase module performs a frequency increase operation on the processor according to the frequency increase time corresponding to the current activity event and the target upper limit frequency of the operation to perform a graphics processing operation on subsequent image frames, it can also be used to:
[0043] According to the current process, query the mapping relationship table between the preset process and the first preset frequency increase time to obtain the frequency increase time corresponding to the current process; or
[0044] According to the current operation scenario, a mapping relationship table between preset operation scenarios and second preset frequency increase time is queried to obtain the frequency increase time corresponding to the current operation scenario.
[0045] Optionally, the frequency increasing time is multiple, and after determining the target upper limit frequency of the processor according to the timeout duration, the frequency increasing module may be further used to:
[0046] Determining a plurality of repetitive time periods of the frequency increasing times;
[0047] A deduplication operation is performed on the repeated time period to obtain a frequency-increasing time after deduplication.
[0048] The present disclosure also provides an electronic device, including:
[0049] processor;
[0050] a memory for storing instructions executable by the processor;
[0051] The processor is configured to execute the instructions to implement each step in the above method.
[0052] The present disclosure also provides a mobile phone, including:
[0053] processor;
[0054] a memory for storing instructions executable by the processor;
[0055] The processor is configured to execute the instructions to implement each step in the above method.
[0056] The embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above method is implemented.
[0057] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which implements the above method when executed by a processor.
[0058] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0059] In some embodiments of the present disclosure, the graphics processing duration status of the current image frame is determined; when the graphics processing duration status is a timeout state, the target operating upper limit frequency of the processor is determined based on the timeout duration, wherein the operating upper limit frequency of the processor is greater than the current operating frequency of the processor; when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit value, the processor is frequency-increased according to the frequency-increase time and the target operating upper limit frequency corresponding to the current active event, and when the shell temperature is greater than the device temperature control threshold, the device temperature control limit is broken through in a short time, the operating frequency of the processor is increased, and the frame loss rate is reduced.
[0060] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0062] Figure 1 A flowchart of an image frame processing method provided for an exemplary embodiment of the present application;
[0063] Figure 2 A schematic diagram of a frequency boosting time deduplication method provided by an exemplary embodiment of the present disclosure;
[0064] Figure 3 A schematic diagram of the structure of an image frame processing device provided by an exemplary embodiment of the present application;
[0065] Figure 4 A schematic structural diagram of an electronic device provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0067] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure.
[0068] It should be noted that the user information involved in this disclosure includes but is not limited to: user device information and user personal information; the collection, storage, use, processing, transmission, provision and disclosure of user information in this disclosure comply with the relevant laws and regulations and do not violate public order and good morals.
[0069] With the continuous accumulation of functional requirements, there are too many layout levels, resulting in multiple views being drawn, too many nested layouts and complex layouts, resulting in long measurement times when drawing views, improper memory usage, and a large number of calculations on the main thread causing freezes. In addition, the sliding smoothness of the same application on terminal devices with different configurations also varies significantly, which has a great impact on the actual user experience. Therefore, how to optimize the frame loss scenario to the maximum extent is of great practical significance.
[0070] In order to achieve a dynamic balance between performance and power consumption, combined with frame rate prediction, break through the high temperature frequency reduction limit function under high temperature conditions to improve fluency and bring users a pleasant experience, the following methods are currently commonly used to optimize frame loss:
[0071] Method 1 for optimizing frame loss: Sliding frequency increase, covering all sliding scenarios, so the frequency increase cannot be too high, otherwise it will increase power consumption and heat. If a lower gear is configured, frame loss will occur.
[0072] Optimize frame loss method 2: Bottom-level CPU scheduling strategy: Affected by the overall CPU load of the system, it cannot cover sudden frame drop scenarios. The CPU load rate is not high and the bottom-level CPU scheduling cannot be triggered.
[0073] In response to the above technical problems, in some embodiments of the present disclosure, the graphics processing duration status of the current image frame is determined; when the graphics processing duration status is a timeout state, the target operating upper limit frequency of the processor is determined according to the timeout duration, wherein the operating upper limit frequency of the processor is greater than the current operating frequency of the processor; when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit value, the processor is frequency-increased according to the frequency-increase time and the target operating upper limit frequency corresponding to the current active event, and when the shell temperature is greater than the device temperature control threshold, the device temperature control limit is broken through in a short time, the operating frequency of the processor is increased, and the frame loss rate is reduced.
[0074] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0075] Figure 1 The following is a flow chart of an image frame processing method provided by an exemplary embodiment of the present application. Figure 1 As shown, the method includes:
[0076] S101: Determine the graphics processing duration state of the current image frame;
[0077] S102: when the graphics processing duration state is a timeout state, determining a target upper limit operating frequency of the processor according to the timeout duration, wherein the upper limit operating frequency of the processor is greater than a current operating frequency of the processor;
[0078] S103: When the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit, the processor is frequency-increased according to the frequency-increase time and the target operating upper limit frequency corresponding to the current activity event to perform graphics processing operations on subsequent image frames.
[0079] In this embodiment, the executor of the above method is a terminal device with a screen. It should be noted that the terminal device with a screen includes but is not limited to the following: smart phones, tablet computers, laptops, desktop computers and smart screens.
[0080] In this embodiment, the process of displaying an image frame on the interface is called a graphics processing operation process, which includes drawing, rendering and synthesis.
[0081] Among them, drawing refers to converting the attribute information describing the object such as geometric structure and material into the presentation form of pixels or vector graphics. In this process, operations such as geometric transformation and texture mapping are required to determine the position and shape of the object in the screen space. Before drawing, the view needs to be measured to obtain information such as width and height. Usually, the size of the view is limited by the parent container, so it is necessary to measure according to the parameters passed by the parent container; after the measurement is completed, the view is laid out, and the layout refers to the position and size occupied by the view on the screen. After the layout is completed, it can be drawn, and drawing refers to rendering the view to the screen in a specific shape and style. Common drawing content includes text, shapes, pictures, etc. The above is the process of view drawing, and the specific details and implementation methods need to be determined according to the specific situation.
[0082] Rendering is a further process of drawing, which calculates the lighting and surface shading of objects at the pixel level to generate the final image or animation sequence. Rendering usually involves a variety of algorithms and techniques, such as ray tracing, shadow calculation, depth testing, etc.
[0083] Compositing refers to combining multiple different images and video elements to generate a final composite image or movie. In this process, color correction, transparency adjustment, masking and other operations are required to ensure smooth transitions and good integration between the various elements.
[0084] In general, drawing is the process of converting the description information of an object into screen coordinates; rendering is the process of calculating the illumination and shading of an object at the pixel level to generate the final image; and synthesis is the process of combining different elements together to form the final film or image. These three processes are inextricably linked, forming a complex and exquisite visual effect.
[0085] In this embodiment, the terminal device has a high-temperature frequency reduction limit function. The high-temperature frequency reduction limit function means that when the shell temperature of the terminal device is greater than the device temperature control threshold, the thermal frequency reduction mechanism will be activated to prevent the device from overheating and damage. When the device temperature reaches the device temperature control threshold of the high-temperature frequency reduction limit, the system will automatically reduce the frequency and voltage of the processor to reduce the operating temperature of the components. This process may cause the performance of the device to decline because the operating speed of the central and graphics processors will be reduced, but it also helps to protect the device and prevent it from overheating. High-temperature frequency reduction limitation is common in cases of high load, long-term use or high ambient temperature.
[0086] It should be noted that the upper temperature limit of the device is the maximum temperature that the terminal device can withstand. When the device is running, the heat will cause the temperature to rise. If the upper temperature limit of the device is exceeded, it may cause device failure or damage. The device temperature control threshold is less than the upper temperature limit of the device.
[0087] In this embodiment, the terminal device determines the graphics processing duration status of the current image frame; when the graphics processing duration status is a timeout state, the target operating upper limit frequency of the processor is determined according to the timeout duration, wherein the operating upper limit frequency of the processor is greater than the current operating frequency of the processor; when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit value, the processor is frequency-increased according to the frequency-increase time and the target operating upper limit frequency corresponding to the current active event, and when the shell temperature is greater than the device temperature control threshold, the device temperature control limit is broken through in a short time, the operating frequency of the processor is increased, and the frame loss rate is reduced.
[0088] In some embodiments of the present disclosure, the current focus application is determined; if the focus application is a preset list application, the graphics processing duration state of the current image frame of the focus application is determined, wherein the preset list application is an application whose failure frequency meets the set condition. The present disclosure embodiment does not limit the set condition, and the application that meets the set condition can be an application whose failure frequency is ranked in the front set position, or an application whose failure frequency is greater than the set frequency threshold.
[0089] In the above embodiments, the user's operation on the terminal device includes different operation scenarios. For example, multiple application windows, dragging to adjust the window size and sliding windows, etc. From the multiple application interfaces currently displayed, determining the current focus application includes but is not limited to the following methods:
[0090] Determination method 1: When switching between multiple application windows, determine that the currently displayed application is the focus application.
[0091] Method 2: Most operating systems allow you to use shortcut keys to switch the focus application. For example, in Windows and macOS, you can use Alt+Tab to switch to the next application. In macOS, you can also use the Command+Tab keyboard shortcut to switch.
[0092] Method 3: In Task Manager, you can view all currently running applications and the resources they occupy. The running applications will be marked as "Running".
[0093] Method 4: In Windows, you can use the Ctrl+Shift+Esc key combination to open the Task Manager and view the running applications. In macOS, you can use the command line tool in Terminal.app to execute commands such as "top" and "ps" and view the running process information.
[0094] It should be noted that the processor includes: a central processing unit and a graphics processing unit. Correspondingly, the operating frequency of the processor includes: the operating frequency of the central processing unit and the operating frequency of the graphics processing unit.
[0095] In some embodiments of the present disclosure, the graphics processing duration state of the current image frame is determined. One achievable method is to perform image processing operations on the current image frame; when at least one of the drawing duration, request buffer duration, and release buffer duration of the current image frame has timed out, the graphics processing duration state of the current image frame is determined to be a timed out state; when the drawing duration, request buffer duration, and release buffer duration of the current image frame have not timed out, the graphics processing duration state of the current image frame is determined to be a non-timed out state. When the graphics processing duration state is a non-timed out state, it means that the graphics processing efficiency of the processor at this time can meet the current view display requirements, and the current image frame is synthesized and sent for display.
[0096] In some embodiments of the present disclosure, the target upper limit operating frequency of the processor is determined based on the timeout duration. One achievable method is to query the mapping relationship table between the timeout duration interval and the upper limit operating frequency based on the timeout duration to obtain the target upper limit operating frequency of the processor. It should be noted that the timeout duration is divided into different timeout duration intervals, and different timeout duration intervals correspond to different upper limit operating frequencies. For example, if it exceeds one-half of the prescribed duration, it is the first upper limit operating frequency; if it exceeds two-thirds of the prescribed duration, it is the second upper limit operating frequency; if it exceeds three-quarters of the prescribed duration, it is the third upper limit operating frequency; wherein the first upper limit operating frequency is less than the second upper limit operating frequency, and the second upper limit operating frequency is less than the third upper limit operating frequency.
[0097] In some embodiments of the present disclosure, when the shell temperature is limited by the high temperature frequency reduction limit function, agile scheduling cannot increase the operating frequency of the processor to the frequency of the corresponding gear. The high temperature frequency reduction limit function limits the frequency of the processor to a certain operating frequency. Therefore, it is necessary to break through the limitation of the high temperature frequency reduction limit function. When the shell temperature is lower than the device temperature control threshold, the operating frequency of the processor is not limited by the high temperature frequency reduction limit function, and agile scheduling can increase the operating frequency to the frequency of the corresponding gear. When the shell temperature is greater than the device temperature control threshold and less than the upper limit value of the device temperature, the operating frequency of the processor is limited by the high temperature frequency reduction limit function, and it is necessary to break through the limitation of the high temperature frequency reduction limit function on the operating frequency of the processor.
[0098] It should be noted that the current activity event includes: the current process or the current operation scenario.
[0099] In an embodiment of the present disclosure, according to the current process, a mapping relationship table between a preset process and a first preset frequency boost time is queried to obtain the frequency boost time corresponding to the current process; or, according to the current operation scenario, a mapping relationship table between a preset operation scenario and a second preset frequency boost time is queried to obtain the frequency boost time corresponding to the current operation scenario. A mapping relationship table between a preset process and the first preset frequency boost time corresponding to the preset process, and a mapping relationship table between a preset operation scenario and the second preset frequency boost time are prepared in advance, and the current process and the current scenario are identified by setting a process identifier and a scenario identifier. It should be noted that the embodiment of the present disclosure does not limit the first preset frequency boost time and the second preset frequency boost time, and adjustments can be made according to actual conditions.
[0100] When the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit, and the application accelerator process is set to a whitelist process, the user behavior triggers the scene to call the accelerator, which will force the processor's operating frequency upper limit. When the dispatch center needs to increase the frequency, it will not be limited by the high temperature frequency reduction limit function. In order to ensure power consumption and heat, the shell temperature needs to be judged. If the shell temperature is greater than the device temperature upper limit, there is no high temperature frequency reduction limit. When the accelerator is called, it directly returns to predict the next frame status. However, the common applications supported by the dispatch center still need to ensure performance, and the temperature conditions will not affect the dispatch center.
[0101] When the shell temperature is lower than the temperature control threshold and the scenario is a whitelist application, it is determined that the scenario is not related to high temperature, and the normal temperature frame rate prediction is entered. The agile scheduling logic is triggered, and the frequency increase operation is performed according to the frequency increase time and the target operating upper limit frequency corresponding to the current active event to reduce the degree of lag and improve fluency.
[0102] In some embodiments of the present disclosure, Figure 2A schematic diagram of a frequency boost time deduplication method provided by an exemplary embodiment of the present disclosure. An accelerator may provide multiple frequency boost times, which may lead to conflicts in multiple frequency boosts. Determine the repeated time periods of the multiple frequency boost times; perform deduplication operations on the repeated time periods to obtain the deduplicated frequency boost time. Figure 2 As shown in the figure, the first frequency increase time and the second frequency increase time have overlapping time periods, so the second frequency increase time is removed. The second frequency increase start time is later than the first frequency increase start time, and the second frequency increase end time is earlier than the first frequency increase end time, so the second frequency increase time is removed, and the third frequency increase end time is later than the first frequency increase end time, so the time periods of the first frequency increase end time and the third frequency increase end time should be retained.
[0103] In the above method embodiment of the present disclosure, the graphics processing duration status of the current image frame is determined; when the graphics processing duration status is a timeout state, the target operating upper limit frequency of the processor is determined according to the timeout duration, wherein the operating upper limit frequency of the processor is greater than the current operating frequency of the processor; when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit value, the processor is frequency-increased according to the frequency-increase time and the target operating upper limit frequency corresponding to the current active event, and when the shell temperature is greater than the device temperature control threshold, the device temperature control limit is broken through in a short time, the operating frequency of the processor is increased, and the frame loss rate is reduced.
[0104] Figure 3 FIG. 3 is a schematic diagram of the structure of an image frame processing device 30 provided in an exemplary embodiment of the present application. Figure 3 As shown, the image frame processing device 30 includes: a first determination module 31, a second determination module 32 and a frequency increasing module 33.
[0105] The first determination module 31 is used to determine the graphics processing duration state of the current image frame;
[0106] The second determination module 32 is used to determine the target upper limit frequency of the processor according to the timeout duration when the graphics processing duration state is a timeout state, wherein the upper limit frequency of the processor is greater than the current operating frequency of the processor;
[0107] The frequency boost module 33 is used to boost the processor according to the frequency boost time and target operating upper limit frequency corresponding to the current active event when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit, so as to perform graphics processing operations on subsequent image frames.
[0108] The second determining module 32 may also be used to:
[0109] When the graphics processing duration is not in a timeout state, the current image frame is synthesized and displayed.
[0110] Optionally, before determining the graphics processing duration state of the current image frame, the first determining module 31 may also be used to:
[0111] Determine the current focus application;
[0112] In the case that the focus application is a preset list application, the graphics processing duration state of the current image frame of the focus application is determined, wherein the preset list application is an application whose failure frequency meets the set condition.
[0113] Optionally, when determining the graphics processing duration state of the current image frame, the first determining module 31 is used to:
[0114] Perform image processing operations on the current image frame;
[0115] When at least one of the drawing duration, the request buffer duration, and the release buffer duration of the current image frame times out, determining that the graphics processing duration state of the current image frame is in a timeout state;
[0116] When the drawing duration, the request buffer duration, and the release buffer duration of the current image frame are not timed out, it is determined that the graphics processing duration state of the current image frame is not timed out.
[0117] Optionally, when determining the target upper limit operating frequency of the processor according to the timeout duration, the second determining module 32 is configured to:
[0118] According to the timeout duration, a mapping relationship table between the timeout duration interval and the upper limit operating frequency is queried to obtain the target upper limit operating frequency of the processor.
[0119] Optionally, the current activity event includes: a current process or a current operation scenario; the frequency increasing module 33 performs a frequency increasing operation on the processor according to the frequency increasing time and the target upper limit frequency corresponding to the current activity event, so as to perform a graphics processing operation on subsequent image frames, and can also be used to:
[0120] According to the current process, query the mapping relationship table between the preset process and the first preset frequency increase time to obtain the frequency increase time corresponding to the current process; or
[0121] According to the current operation scenario, a mapping relationship table between the preset operation scenario and the second preset frequency increase time is queried to obtain the frequency increase time corresponding to the current operation scenario.
[0122] Optionally, there are multiple frequency increase times. After determining the target upper limit frequency of the processor according to the timeout duration, the frequency increase module 33 may also be used to:
[0123] Determine the repetitive time periods of multiple frequency boost times;
[0124] De-duplicate the repeated time periods to obtain the frequency-increasing time after de-duplicate.
[0125] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0126] Figure 4 The following is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Figure 4 As shown, the electronic device includes: a memory 41 and a processor 42. In addition, the electronic device also includes a power supply component 43 and a communication component 44.
[0127] The memory 41 is used to store computer programs and can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application program or method operating on the electronic device.
[0128] The memory 41 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0129] The communication component 44 is used for data transmission with other devices.
[0130] The processor 42 can execute computer instructions stored in the memory 41 to: determine the graphics processing duration state of the current image frame; when the graphics processing duration state is a timeout state, determine the target operating upper limit frequency of the processor according to the timeout duration, wherein the operating upper limit frequency of the processor is greater than the current operating frequency of the processor; when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit value, perform a frequency increase operation on the processor according to the frequency increase time and the target operating upper limit frequency corresponding to the current active event, so as to perform graphics processing operations on subsequent image frames.
[0131] Optionally, the processor 42 may also be configured to:
[0132] When the graphics processing duration is not in a timeout state, the current image frame is synthesized and displayed.
[0133] Optionally, before determining the graphics processing duration state of the current image frame, the processor 42 may also be configured to:
[0134] Determine the current focus application;
[0135] In the case that the focus application is a preset list application, the graphics processing duration state of the current image frame of the focus application is determined, wherein the preset list application is an application whose failure frequency meets the set condition.
[0136] Optionally, when determining the graphics processing duration state of the current image frame, the processor 42 is configured to:
[0137] Perform image processing operations on the current image frame;
[0138] When at least one of the drawing duration, the request buffer duration, and the release buffer duration of the current image frame times out, determining that the graphics processing duration state of the current image frame is in a timeout state;
[0139] When the drawing duration, the request buffer duration, and the release buffer duration of the current image frame are not timed out, it is determined that the graphics processing duration state of the current image frame is not timed out.
[0140] Optionally, when determining the target upper limit operating frequency of the processor according to the timeout duration, the processor 42 is configured to:
[0141] According to the timeout duration, a mapping relationship table between the timeout duration interval and the upper limit operating frequency is queried to obtain the target upper limit operating frequency of the processor.
[0142] Optionally, the current activity event includes: a current process or a current operation scenario; before the processor 42 performs a frequency increase operation on the processor according to the frequency increase time and the target upper limit frequency corresponding to the current activity event to perform a graphics processing operation on subsequent image frames, it can also be used to:
[0143] According to the current process, query the mapping relationship table between the preset process and the first preset frequency increase time to obtain the frequency increase time corresponding to the current process; or
[0144] According to the current operation scenario, a mapping relationship table between the preset operation scenario and the second preset frequency increase time is queried to obtain the frequency increase time corresponding to the current operation scenario.
[0145] Optionally, there are multiple frequency increase times. After determining the target upper limit frequency of the processor according to the timeout duration, the processor 42 may also be used to:
[0146] Determine the repetitive time periods of multiple frequency boost times;
[0147] De-duplicate the repeated time periods to obtain the frequency-increasing time after de-duplicate.
[0148] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer-readable storage medium stores the computer program and the computer program is executed by one or more processors, the one or more processors execute Figure 1 Each step in the method embodiment.
[0149] Accordingly, the embodiment of the present application also provides a computer program product, the computer program product includes a computer program / instruction, and the computer program / instruction is executed by a processor. Figure 1 Each step in the method embodiment.
[0150] Above Figure 4 The communication component in is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0151] Above Figure 4 The power supply component in the device provides power to various components of the device where the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply component is located.
[0152] The electronic device also includes a display screen and an audio component.
[0153] The display screen includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0154] The audio component may be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.
[0155] In the above-mentioned apparatus, device, storage medium and computer program product embodiments of the present disclosure, the graphics processing duration state of the current image frame is determined; when the graphics processing duration state is a timeout state, the target operating upper limit frequency of the processor is determined according to the timeout duration, wherein the operating upper limit frequency of the processor is greater than the current operating frequency of the processor; when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit value, the processor is frequency-increased according to the frequency-increase time and the target operating upper limit frequency corresponding to the current active event, and when the shell temperature is greater than the device temperature control threshold, the device temperature control limit is broken through in a short time, the operating frequency of the processor is increased, and the frame loss rate is reduced.
[0156] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0157] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0158] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0159] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0160] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0161] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0162] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0163] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0164] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An image frame processing method, characterized in that: include: Determine the graphics processing duration state of the current image frame; In a case where the graphics processing duration state is a timeout state, determining a target upper limit operating frequency of the processor according to the timeout duration, wherein the upper limit operating frequency of the processor is greater than a current operating frequency of the processor; When the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit, the processor is frequency-increased according to the frequency-increase time corresponding to the current active event and the target operating upper limit frequency to perform graphics processing operations on subsequent image frames.
2. The method according to claim 1, characterized in that The method further comprises: When the graphics processing duration is in a non-timeout state, the current image frame is synthesized and displayed.
3. The method according to claim 1, characterized in that Before determining the graphics processing duration state of the current image frame, the method further includes: Determine the current focus application; In the case that the focus application is a preset list application, the graphics processing duration state of the current image frame of the focus application is determined, wherein the preset list application is an application whose failure frequency meets a set condition.
4. The method according to claim 1, characterized in that The step of determining the graphics processing duration state of the current image frame includes: Performing an image processing operation on the current image frame; In the case that at least one of the drawing duration, the request buffer duration, and the release buffer duration of the current image frame times out, determining that the graphics processing duration state of the current image frame is a timeout state; In the case that the drawing duration, the request buffer duration, and the release buffer duration of the current image frame are not timed out, it is determined that the graphics processing duration state of the current image frame is a non-timed out state.
5. The method according to claim 1, characterized in that Determining the target upper limit frequency of the processor according to the timeout duration includes: According to the timeout duration, a mapping relationship table between the timeout duration interval and the upper limit operating frequency is queried to obtain the target upper limit operating frequency of the processor.
6. The method according to claim 1, characterized in that The current activity event includes: a current process or a current operation scenario; before performing a frequency increase operation on the processor according to the frequency increase time corresponding to the current activity event and the target upper limit frequency of operation to perform a graphics processing operation on subsequent image frames, the method further includes: According to the current process, query the mapping relationship table between the preset process and the first preset frequency increase time to obtain the frequency increase time corresponding to the current process; or According to the current operation scenario, a mapping relationship table between preset operation scenarios and second preset frequency increase time is queried to obtain the frequency increase time corresponding to the current operation scenario.
7. The method according to claim 1, characterized in that The frequency increase time is multiple, and after determining the target upper limit frequency of the processor according to the timeout duration, the method further includes: Determining a plurality of repetitive time periods of the frequency increasing times; A deduplication operation is performed on the repeated time period to obtain a frequency-increasing time after deduplication.
8. An image frame processing device, characterized in that: include: A first determination module, used to determine the graphics processing duration state of the current image frame; A second determination module, when the graphics processing duration state is a timeout state, is used to determine a target upper limit operating frequency of the processor according to the timeout duration, wherein the upper limit operating frequency of the processor is greater than a current operating frequency of the processor; The frequency boost module is used to boost the frequency of the processor according to the frequency boost time corresponding to the current active event and the target operating upper limit frequency when the shell temperature is greater than the device temperature control threshold and less than the device temperature upper limit, so as to perform graphics processing operations on subsequent image frames.
9. The device according to claim 8, characterized in that The second determination module may also be used to: When the graphics processing duration is in a non-timeout state, the current image frame is synthesized and displayed.
10. The device according to claim 8, characterized in that Before determining the graphics processing duration state of the current image frame, the first determining module may also be used to: Determine the current focus application; In the case that the focus application is a preset list application, the graphics processing duration state of the current image frame of the focus application is determined, wherein the preset list application is an application whose failure frequency meets a set condition.
11. The device according to claim 8, characterized in that When determining the graphics processing duration state of the current image frame, the first determination module is used to: Performing an image processing operation on the current image frame; In the case that at least one of the drawing duration, the request buffer duration, and the release buffer duration of the current image frame times out, determining that the graphics processing duration state of the current image frame is a timeout state; In the case that the drawing duration, the request buffer duration, and the release buffer duration of the current image frame are not timed out, it is determined that the graphics processing duration state of the current image frame is a non-timed out state.
12. The device according to claim 8, characterized in that When determining the target upper limit operating frequency of the processor according to the timeout duration, the second determining module is used to: According to the timeout duration, a mapping relationship table between the timeout duration interval and the upper limit operating frequency is queried to obtain the target upper limit operating frequency of the processor.
13. The device according to claim 8, characterized in that The current activity event includes: a current process or a current operation scenario; the frequency increasing module may also be used to: According to the current process, query the mapping relationship table between the preset process and the first preset frequency increase time to obtain the frequency increase time corresponding to the current process; or According to the current operation scenario, a mapping relationship table between preset operation scenarios and second preset frequency increase time is queried to obtain the frequency increase time corresponding to the current operation scenario.
14. The device according to claim 8, characterized in that The frequency increase time is multiple, and after determining the target upper limit frequency of the processor according to the timeout duration, the frequency increase module can also be used to: Determining a plurality of repetitive time periods of the frequency increasing times; A deduplication operation is performed on the repeated time period to obtain a frequency-increasing time after deduplication.
15. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement each step in the method according to any one of claims 1 to 7.
16. A mobile phone, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement each step in the method according to any one of claims 1 to 7.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
18. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
