Screen refresh rate adjusting method and device and storage medium
By detecting the video playback scene and status in the terminal device, and dynamically adjusting the screen refresh rate to match the current decoded frame rate, the problem of not being able to automatically adjust the refresh rate in the prior art is solved, and power consumption reduction and user experience improvement are achieved.
Patent Information
- Application Number
- CN202311576848.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2025-05-23
AI Technical Summary
The prior art cannot automatically adjust the screen refresh rate of the terminal device, resulting in increased power consumption and poor user experience.
By detecting the video playback scene and playback status of the media playback application, dynamically adjust the screen refresh rate to match the current decoded frame rate.
Reduces power consumption and loss caused by high refresh rate and improves user viewing experience.
Smart Images

Figure CN120032606A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of display screens, and in particular to a screen refresh rate adjustment method, device and storage medium. Background Art
[0002] With the continuous development of terminal devices, users are paying more and more attention to the smoothness of terminal display and the power consumption of terminal devices.
[0003] In the related art, when a terminal device switches display screens, the screen refresh rate is determined according to the frame rate of the current screen to be displayed. However, the screen refresh rate cannot be automatically adjusted. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a screen refresh rate adjustment method, device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a screen refresh rate adjustment method is provided, the method comprising: in response to a media playback application of an electronic device being in a video playback scene and the playback state satisfying a predetermined condition, locking the screen refresh rate of the electronic device to a preset screen refresh rate, the media playback application supporting playback of a video source with a first decoding frame rate, the first decoding frame rate being higher than a preset frame rate threshold, the preset screen refresh rate being a screen refresh rate supporting playback of a video corresponding to a second decoding frame rate, the second decoding frame rate being lower than the first decoding frame rate; obtaining a current decoding frame rate of a video source to be played; and adjusting the current screen refresh rate of the electronic device to a screen refresh rate matching the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate.
[0006] In one embodiment, the playback status satisfies predetermined conditions, including at least one of the following: the playback status of the video played based on the first decoding frame rate is a paused playback status; the playback status of the video played based on the first decoding frame rate is an exit status, and the playback status of the next video to be played is not triggered; the function of the media playback application is triggered to a state where the video playback at the first decoding frame rate is not performed, and the function is a function of executing the video playback at the first decoding frame rate.
[0007] In one embodiment, adjusting the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate includes: in response to the current decoding frame rate being greater than the second decoding frame rate, adjusting the screen refresh rate of the electronic device to the first screen refresh rate; or
[0008] In response to the current decoding frame rate being less than or equal to the second decoding frame rate, the screen refresh rate of the electronic device is adjusted to the second screen refresh rate; the first screen refresh rate is greater than the preset screen refresh rate and less than or equal to the screen refresh rate corresponding to the first decoding frame rate; the second screen refresh rate is less than the first screen refresh rate.
[0009] In one implementation, the preset screen refresh rate is the minimum screen refresh rate at which the electronic device supports the media player application to play a video to meet a smoothness condition; and the second screen refresh rate is the preset screen refresh rate.
[0010] In one embodiment, the method further includes: before adjusting the current screen refresh rate of the electronic device to match the screen refresh rate of the current decoding frame rate, determining the screen refresh rate corresponding to the first decoding frame rate at which the electronic device supports the media playback application to play the video to meet the smoothness condition.
[0011] According to a second aspect of an embodiment of the present disclosure, a screen refresh rate adjustment device is provided, comprising: an execution unit, for locking the screen refresh rate of the electronic device to a preset screen refresh rate in response to a media playback application of the electronic device being in a video playback scene and the playback state satisfying a predetermined condition, the media playback application supporting playback of a video source having a first decoding frame rate, the first decoding frame rate being higher than a preset frame rate threshold, the preset screen refresh rate being a screen refresh rate supporting playback of a video corresponding to a second decoding frame rate, the second decoding frame rate being lower than the first decoding frame rate; an acquisition unit, for acquiring a current decoding frame rate of a video source to be currently played; and an adjustment unit, for adjusting the current screen refresh rate of the electronic device to a screen refresh rate matching the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate.
[0012] In one embodiment, the execution unit executes the playback state in at least one of the following ways to meet a predetermined condition, including: the playback state of the video played based on the first decoding frame rate is a paused playback state; the playback state of the video played based on the first decoding frame rate is an exit state, and the playback state of the next video to be played is not triggered; the function of the media playback application is triggered to a state where the video playback of the first decoding frame rate is not performed, and the function is to execute the function of playing the video at the first decoding frame rate.
[0013] In one embodiment, the adjustment unit adjusts the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate, including: in response to the current decoding frame rate being greater than the second decoding frame rate, adjusting the screen refresh rate of the electronic device to the first screen refresh rate; or
[0014] In response to the current decoding frame rate being less than or equal to the second decoding frame rate, the screen refresh rate of the electronic device is adjusted to the second screen refresh rate; the first screen refresh rate is greater than the preset screen refresh rate and less than or equal to the screen refresh rate corresponding to the first decoding frame rate; the second screen refresh rate is less than the first screen refresh rate.
[0015] In one embodiment, the adjustment unit presets the screen refresh rate as the minimum screen refresh rate at which the electronic device supports the media playback application to play videos to meet the smoothness condition in the following manner; the second screen refresh rate is the preset screen refresh rate.
[0016] In one embodiment, the adjustment unit is also used to: before adjusting the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate, determine the screen refresh rate corresponding to the first decoding frame rate that supports the electronic device to play the video by the media playback application to meet the smoothness condition.
[0017] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to execute the executable instructions to execute the display control method in the first aspect or any one of the embodiments of the first aspect.
[0018] According to the fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal device is enabled to execute the screen refresh rate adjustment method in the first aspect or any one of the embodiments of the first aspect.
[0019] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: dynamically adjusting the screen refresh rate of the electronic device according to the scenario in which the media playback application of the electronic device is located and the playback status that meets preset conditions, reducing the screen power consumption caused by long-term high video refresh rate, and dynamically adjusting the screen refresh rate by obtaining the current decoding frame rate and the preset screen refresh rate to improve the user viewing experience.
[0020] 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
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] Figure 1 It is a flow chart of a method for adjusting screen refresh rate in related technology.
[0023] Figure 2 The figure is a flow chart of a method for adjusting a screen refresh rate according to an exemplary embodiment.
[0024] Figure 3 The figure is a flow chart showing a method for setting adjustment prerequisites according to an exemplary embodiment.
[0025] Figure 4 The figure is a flow chart showing a method for adjusting the current screen refresh rate according to an exemplary embodiment.
[0026] Figure 5 A method for dynamically adjusting a screen refresh rate is shown according to an exemplary embodiment.
[0027] Figure 6 The present invention is a practical adjustment flow chart showing a third-party video playback software as an example according to an exemplary embodiment.
[0028] Figure 7 The figure is a block diagram of a device for adjusting screen refresh rate according to an exemplary embodiment.
[0029] Figure 8 The invention is a block diagram of a device for adjusting a screen refresh rate according to an exemplary embodiment. DETAILED DESCRIPTION
[0030] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0031] The screen refresh rate adjustment method provided in the embodiment of the present disclosure is applied to display scenarios in electronic devices. The screen refresh rate adjustment method involved in the embodiment of the present disclosure is mainly applied to video switching scenarios.
[0032] In the related art, the frame rate of the currently playing video is detected. When the user exits the current video and switches to the next video, if the frame rate of the current video to be exited is higher than the frame rate of the next video, or the frame rate of the current video to be exited is higher than the frame rate of the default video of the electronic device, then when the user switches from the current video to the next video, the refresh rate of the electronic device is still based on the frame rate of the current video to be exited, and the video refresh rate of the next video cannot be automatically adjusted during the video switching process.
[0033] Figure 1 1 is a flow chart of a method for adjusting screen refresh rate in the related art. Figure 1As shown, when the electronic device detects that it has entered a video playback scene, that is, a video is being played at 120Hz, if the user switches the video in this situation, the electronic device does not set the refresh rate and remains at 120Hz screen refresh rate. After the video is switched, if the electronic device detects that it has switched to the playback scene of the next video and no user operation of the screen is detected within a period of time (e.g., n seconds) in this scene, the underlying processor will adjust the screen refresh rate to 60Hz.
[0034] During the implementation of relevant technologies, the screen refresh rate cannot be automatically adjusted, which causes the electronic device to consume additional power and fails to improve the user's viewing experience.
[0035] In view of this, the present disclosure provides a screen refresh rate adjustment method. For the frame rate of the detected current video, when the electronic device detects that the user is in the process of switching videos, or the electronic device detects that the frame rate of the video to be switched is lower than the frame rate of the current video, the video refresh rate during the video switching process, or the refresh rate of the video to be switched, is automatically adjusted.
[0036] Figure 2 FIG. 1 is a flow chart of a method for adjusting a screen refresh rate according to an exemplary embodiment. Figure 2 As shown, the screen refresh rate adjustment method is used in an electronic device, comprising the following steps:
[0037] In step S11, in response to the electronic device media playback application being in a video playback scene and the playback state meeting a predetermined condition, the screen refresh rate of the electronic device is locked to a preset screen refresh rate.
[0038] In an embodiment of the present disclosure, the electronic device detects that a current video is in a playback state, detects whether the playback state of the current video satisfies a preset condition, and if the preset condition is met, locks the screen refresh rate of the current electronic device, wherein the locked screen refresh rate is a preset screen refresh rate.
[0039] Among them, the media playback application supports playing a video source with a first decoding frame rate, the first decoding frame rate is higher than a preset frame rate threshold, the preset screen refresh rate is a screen refresh rate that supports playing a video corresponding to a second decoding frame rate, and the second decoding frame rate is less than the first decoding frame rate.
[0040] The predetermined condition may be understood as a condition that a media playback application of an electronic device can support locking the screen refresh rate of the electronic device.
[0041] The first decoding frame rate can be understood as a video source decoding frame rate where the screen refresh rate required after the video source is decoded is higher than the default screen refresh rate of the electronic device. For example, the screen refresh rate required after the video source is decoded is 120 Hz.
[0042] The second decoding frame rate can be understood as a decoding frame rate of the video source decoded and transmitted through the bottom decoder, which is lower than the decoding frame rate of the first decoding frame rate, for example, the second video decoding frame rate is 60 frames / s.
[0043] The preset frame rate threshold can be understood as being used to determine whether the current video source frame rate is a high video source frame rate and whether a high screen refresh rate is required to play the current video. For example, when the maximum video source frame rate supported by the current electronic device media playback application is 120 frames / s, and the default video source frame rate is 60 frames, the preset frame rate threshold can be 60 frames / s, or any frame / s between 60 and 120 frames.
[0044] In step S12, the current decoding frame rate of the video source to be played is obtained.
[0045] In the embodiment of the present disclosure, the electronic device obtains the current decoding frame rate of the video source to be played in the media playback application.
[0046] The currently played video can be understood as the video selected by the user detected by the electronic device.
[0047] In step S13, based on the current decoding frame rate and the preset screen refresh rate, the current screen refresh rate of the electronic device is adjusted to a screen refresh rate that matches the current decoding frame rate.
[0048] In the disclosed embodiment, based on the detected decoding frame rate of the current video source and the preset screen refresh rate, the current screen refresh rate of the electronic device is dynamically adjusted to match the screen refresh rate of the current decoding frame rate.
[0049] In the disclosed embodiment, when the electronic device detects that there is a video being played in the media playback application, before decoding the video source of the video to be played, the current screen refresh rate is set to the preset screen refresh rate, so as to avoid power consumption caused when the screen refresh rate of the electronic device is a higher screen refresh rate and the screen refresh rate required by the video to be played is lower than the current screen refresh rate of the electronic device. In addition, according to the current decoding frame rate and the preset screen refresh rate, the current screen refresh rate of the electronic device is adjusted to the screen refresh rate that matches the current decoding frame rate, and the screen refresh rate of the electronic device is adjusted in real time, so as to improve the user experience and avoid unnecessary power consumption caused by the screen refresh rate of the electronic device being continuously at a higher screen refresh rate.
[0050] Figure 3FIG. 1 is a flow chart showing a method for setting adjustment prerequisites according to an exemplary embodiment. Figure 3 As shown, the following steps are included:
[0051] In step S21, it is determined whether the playing state satisfies a preset condition.
[0052] In the disclosed embodiment, before dynamically adjusting the screen refresh rate of the video to be played, it is determined whether the playback state satisfies a preset condition.
[0053] In step S22, the playback state of the video played based on the first decoding frame rate is a paused playback state.
[0054] In the embodiment of the present disclosure, one of the conditions that the playback state satisfies the preset conditions is that the playback state of the video played at the first decoding frame rate is a paused playback state, that is, the system layer of the electronic device detects an interruption stop by monitoring the decoded video source frame rate, and the state is a paused playback state.
[0055] In step S23, the video playback state based on the first decoding frame rate is an exit state, and the playback state of the next video to be played is not triggered.
[0056] In the embodiment of the present disclosure, another condition that the playback status satisfies the preset conditions is that it is monitored that the playback status of the video played according to the first decoding frame rate is in the exit status, and the playback status of the next video to be played is not triggered; or the current video is detected to be in the exit status, and the status of entering the next video to be played is not triggered.
[0057] In the disclosed embodiment, the prerequisite for adjusting the screen refresh rate is determined based on whether the current video is in a switching state, so as to facilitate accurate adjustment of the screen refresh rate under the prerequisite of different video decoding rates.
[0058] When it is detected that the playback state of the video played according to the first decoding frame rate is in the exit state, and the playback state of the next video to be played is not triggered, it can be understood that the electronic device, while running at a higher screen refresh rate according to the current video, adjusts the screen refresh rate to be lower than the current screen refresh rate during the video switching process.
[0059] When it is detected that the current video is in the exit state and has not triggered the state of entering the next video to be played, it can be understood that the electronic device adjusts the screen refresh rate during the video switching process while running at the default screen refresh rate of the electronic device according to the current video.
[0060] The function of the media playback application is triggered to a state where the video playback at the first decoding frame rate is not performed, and the function is to perform the video playback at the first decoding frame rate.
[0061] In the disclosed embodiment, the video playback status meeting the preset conditions is not limited to the current situation. When the electronic device monitors the decoded video source frame rate, it determines the video playback status and adjusts the screen refresh rate, which means that the playback status meets the preset conditions.
[0062] Figure 4 FIG. 1 is a flow chart showing a method for adjusting the current screen refresh rate according to an exemplary embodiment. Figure 4 As shown, the following steps are included:
[0063] In step S31, based on the current decoding frame rate and the preset screen refresh rate, the current screen refresh rate of the electronic device is adjusted to a screen refresh rate that matches the current decoding frame rate.
[0064] In the embodiment of the present disclosure, according to the current decoding frame rate and the preset screen refresh rate, the current screen refresh rate of the electronic device is adjusted to a screen refresh rate that matches the current decoding frame rate.
[0065] In step S32, in response to the current decoding frame rate being greater than the second decoding frame rate, the screen refresh rate of the electronic device is adjusted to the first screen refresh rate.
[0066] In the embodiment of the present disclosure, when it is detected that the decoding frame rate of the current video source is greater than the second decoding frame rate, the screen refresh rate of the electronic device is adjusted to the first screen refresh rate that matches the decoding frame rate of the current video source.
[0067] In step S33, in response to the current decoding frame rate being less than or equal to the second decoding frame rate, the screen refresh rate of the electronic device is adjusted to the second screen refresh rate.
[0068] In an embodiment of the present disclosure, when it is detected that the decoding frame rate of the current video source is less than or equal to the second decoding frame rate, the screen refresh rate of the electronic device is adjusted to the second screen refresh rate, that is, if the decoding frame rate of the current video source is the screen refresh rate supported by the electronic device or is lower than the screen refresh rate supported by the electronic device, then the screen refresh rate of the electronic device is adjusted to the second screen refresh rate.
[0069] Among them, the first screen refresh rate is greater than the preset screen refresh rate and less than or equal to the screen refresh rate corresponding to the first decoding frame rate; the second screen refresh rate is less than the first screen refresh rate.
[0070] In the disclosed embodiment, the adjustment prerequisites satisfied by the current video to be played are determined, and the specific adjustment method of the screen refresh rate is determined according to the corresponding different adjustment conditions. The video to be played that is higher than the preset screen refresh rate in the electronic device is adjusted to a first screen refresh rate that conforms to the decoded frame of the current video source, thereby improving the user's viewing experience. The video to be played that is lower than or equal to the preset screen refresh rate in the electronic device is adjusted to a second screen refresh rate, thereby avoiding power consumption caused by the electronic device being in a high video refresh rate for a long time.
[0071] In the disclosed embodiment, the preset screen refresh rate involved is the minimum screen refresh rate at which the electronic device supports the media playback application to play videos to meet the smoothness condition, and the second screen refresh rate is the preset screen refresh rate.
[0072] In the disclosed embodiment, the preset screen refresh rate is not a fixed screen refresh rate. The preset screen refresh rates may be different for different electronic devices. However, the preset screen refresh rates are all the minimum screen refresh rates that support the smoothness condition of playing videos by the media playback application in the electronic device. The screen refresh rate of the video to be played is flexibly adjusted according to the preset screen refresh rate to reduce power consumption and enhance the user's viewing experience.
[0073] In the disclosed embodiment, before adjusting the current screen refresh rate of the electronic device to match the screen refresh rate of the current decoding frame rate, it is determined that the screen refresh rate of the electronic device supports the screen refresh rate corresponding to the first decoding frame rate.
[0074] In the disclosed embodiment, during the process of decoding a video source, the electronic device determines whether the device supports the maximum screen refresh rate required by the video source to be played, and adaptively adjusts the screen refresh rate of the video to be played, while ensuring that the electronic device supports the playback of the video source, thereby improving the user viewing experience.
[0075] In the disclosed embodiment, when the electronic device detects that the user switches videos, the refresh rate of the screen is dynamically adjusted.
[0076] Figure 5 A method for dynamically adjusting the screen refresh rate is shown according to an exemplary embodiment. Figure 5 As shown, the specific steps are as follows:
[0077] In step S41, enter the video playing scene.
[0078] In one implementation, the electronic device detects that it has entered a video playback scene and determines a refresh rate of the screen at that time.
[0079] In step S42, the monitoring video is in a switching state.
[0080] In one implementation, the electronic device detects that the current video is in a pause state, or that the current video is in an exit state and has not entered the next video, and the state of the video is defined as a switching state.
[0081] In step S43, the screen refresh rate is limited to 60 Hz.
[0082] In one embodiment, when the electronic device detects that the current video has just been clicked on, or the current video is in a switching state, the event aggregation center of the system is notified at this time, and the event aggregation center switches the screen refresh rate by calling the relevant interface, thereby limiting the screen refresh rate in the electronic device to 60Hz.
[0083] Among them, 60 Hz can be understood as the default screen refresh rate for playing videos in electronic devices. In the embodiment of the present disclosure, the screen refresh rate of 60 Hz is taken as an example, and it may not be limited to 60 Hz in actual applications.
[0084] In one implementation, the purpose of limiting the screen refresh rate to 60 Hz is to ensure that the electronic device runs at the lowest screen refresh rate that can ensure smooth video operation during the process of switching or adjusting videos.
[0085] In step S44, a high frame rate video scene is monitored.
[0086] In one implementation, when the electronic device detects that a video is being played, the electronic device decodes the video source of the video, and determines that the current video is a high-frame video scene by decoding the video source of the video.
[0087] Among them, the high-frame video scene can be understood as a video scene in which the video frame is higher than the video frame of the default video playback. For example, the electronic device defaults to playing 60 frames of video at a screen refresh rate of 60 Hz. Then the high-frame video scene is that the electronic device can play 120 frames of video at a screen refresh rate of 120 Hz.
[0088] In step S45, the screen refresh rate is switched to 120 Hz.
[0089] In one implementation, when the electronic device obtains a video source frame rate of 120 frames by decoding the current video, the electronic device modulates the screen refresh rate to 120 Hz.
[0090] Among them, 120 Hz can be understood as the maximum screen refresh rate supported by the electronic device. In the embodiment of the present disclosure, 120 Hz is taken as an example, but the actual application is not limited to 120 Hz.
[0091] In step S46, it is monitored that the video scene is not a high frame video scene.
[0092] In one implementation, the electronic device detects that a video is being played, and a video source after decoding of the video is not a high-frame video scene.
[0093] In one implementation, based on detecting that the video is in a playback state or a switched state, the system layer detects the frame rate of the decoded video source and, based on the current state of the video, notifies the event aggregation center of the system. The event aggregation center switches the screen refresh rate by calling an interface that can switch the screen refresh rate, thereby reducing power consumption when the video switches from a high-frame playback state to a low-frame playback state, dynamically adjusting the video frame, and improving the user's viewing experience.
[0094] In the embodiment of the present disclosure, the actual process of playing a video by a third-party video player software is taken as an example.
[0095] Figure 6 FIG. 1 is a flow chart showing an actual adjustment process using a third-party video player software as an example according to an exemplary embodiment. Figure 6 As shown, the specific steps are as follows:
[0096] In one implementation, the current video is decoded at the video decoder layer, and the frame rate of the video is calculated by decoding the current video. After receiving the frame rate of the video source, the electronic device transmits it to the upper-layer application that switches the screen refresh rate through the interface transparently transmitted from the bottom layer of the system.
[0097] In one implementation, the upper-layer application first determines whether the electronic device has a screen refresh rate that is compatible with the screen refresh rate required by the third party. If it is compatible, it registers to monitor the callback information of the current video source frame rate. When it detects that the foreground video playback application is the third-party device and is on the third-party video playback page, and the user is playing a 120-frame source, that is, the video source frame rate is 120Hz, the screen refresh rate is increased to the corresponding 120HZ.
[0098] In one embodiment, if the electronic device detects that the user switches to other non-120-frame video films during the period when the electronic device detects the video source frame rate, the underlying decoder transmits the new video source decoding frame rate. If the frame rate transmitted by the underlying decoder is less than 60HZ, the current screen refresh rate will be switched back to the set refresh rate supported by the electronic device, thereby achieving dynamic fixed adjustment of the screen refresh rate.
[0099] In one embodiment, the electronic device monitors the current video source frame rate in real time. When the monitored video source frame rate is greater than the video source frame rate supported by the electronic device by default, the video refresh rate of the electronic device is increased to be suitable for the monitored video source frame rate. When the monitored video source frame rate is not greater than the video source frame rate supported by the electronic device by default, the screen refresh rate of the electronic device is switched to the refresh rate required by the media playback application, thereby improving the user's viewing experience.
[0100] Based on the same concept, an embodiment of the present disclosure also provides a screen refresh rate adjustment device.
[0101] It is understandable that the screen refresh rate adjustment device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0102] Figure 7 FIG. 1 is a block diagram of a screen refresh rate adjustment device according to an exemplary embodiment. Figure 7 The device 100 includes an execution unit 101, an acquisition unit 102 and an adjustment unit 103.
[0103] The execution unit 101 is used to lock the screen refresh rate of the electronic device to a preset screen refresh rate in response to the electronic device media playback application being in a video playback scene and the playback state meeting a predetermined condition, the media playback application supports playing a video source with a first decoding frame rate, the first decoding frame rate is higher than a preset frame rate threshold, the preset screen refresh rate is a screen refresh rate that supports playing a video corresponding to a second decoding frame rate, and the second decoding frame rate is lower than the first decoding frame rate; the acquisition unit 102 is used to acquire the current decoding frame rate of the video source to be played; the adjustment unit 103 is used to adjust the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate.
[0104] In one embodiment, the execution unit 101 executes the playback state to meet the predetermined conditions in at least one of the following ways, including: the playback state of the video played based on the first decoding frame rate is a paused playback state; the playback state of the video played based on the first decoding frame rate is an exit state, and the playback state of the next video to be played is not triggered; the function of the media playback application is triggered to a state where the first decoding frame rate video playback is not performed, and the function is to execute the first decoding frame rate video playback function.
[0105] In one implementation, the adjustment unit 103 adjusts the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate, including: in response to the current decoding frame rate being greater than the second decoding frame rate, adjusting the screen refresh rate of the electronic device to the first screen refresh rate; or
[0106] In response to the current decoding frame rate being less than or equal to the second decoding frame rate, the screen refresh rate of the electronic device is adjusted to the second screen refresh rate; the first screen refresh rate is greater than the preset screen refresh rate and less than or equal to the screen refresh rate corresponding to the first decoding frame rate; the second screen refresh rate is less than the first screen refresh rate.
[0107] In one implementation, the adjustment unit 103 presets the screen refresh rate as the minimum screen refresh rate at which the electronic device supports the media player application to play videos to meet the smoothness condition; the second screen refresh rate is the preset screen refresh rate.
[0108] In one embodiment, the adjustment unit 103 is also used to: before adjusting the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate, determine the screen refresh rate corresponding to the first decoding frame rate that supports the electronic device to play a video that meets the smoothness condition of the media playback application.
[0109] 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.
[0110] Figure 8 1 is a block diagram of a device 200 for adjusting screen refresh rate according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0111] Reference Figure 8 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0112] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 202 may include one or more modules to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate the interaction between the multimedia component 208 and the processing component 202.
[0113] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 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.
[0114] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0115] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, 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 the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0116] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation 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 can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0117] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0118] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0119] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 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 216 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.
[0120] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0121] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0122] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0123] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0124] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.
[0125] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0126] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0127] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0128] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A screen refresh rate adjustment method, It is characterized in that The method comprises: In response to a media playback application of the electronic device being in a video playback scene and the playback state meeting a predetermined condition, locking the screen refresh rate of the electronic device to a preset screen refresh rate, the media playback application supporting playback of a video source with a first decoding frame rate, the first decoding frame rate being higher than a preset frame rate threshold, the preset screen refresh rate being a screen refresh rate supporting playback of a video corresponding to a second decoding frame rate, the second decoding frame rate being lower than the first decoding frame rate; Get the current decoding frame rate of the video source to be played; Based on the current decoding frame rate and the preset screen refresh rate, the current screen refresh rate of the electronic device is adjusted to a screen refresh rate that matches the current decoding frame rate.
2. The method according to claim 1, It is characterized in that The playback status satisfies a predetermined condition, including at least one of the following: The playback state of the video played based on the first decoding frame rate is a paused playback state; The video playback state based on the first decoding frame rate is in an exit state, and the playback state of the next video to be played is not triggered; The function of the media playback application is triggered to a state where the video playback at the first decoding frame rate is not performed, and the function is to perform the video playback at the first decoding frame rate.
3. The method according to claim 1 or 2, It is characterized in that The adjusting the current screen refresh rate of the electronic device to a screen refresh rate matching the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate includes: In response to the current decoding frame rate being greater than the second decoding frame rate, adjusting the screen refresh rate of the electronic device to the first screen refresh rate; or In response to the current decoding frame rate being less than or equal to the second decoding frame rate, adjusting the screen refresh rate of the electronic device to the second screen refresh rate; The first screen refresh rate is greater than the preset screen refresh rate and less than or equal to the screen refresh rate corresponding to the first decoding frame rate; The second screen refresh rate is lower than the first screen refresh rate.
4. The method according to claim 3, It is characterized in that The preset screen refresh rate is the minimum screen refresh rate at which the electronic device supports the media player application to play the video to meet the smoothness condition; The second screen refresh rate is the preset screen refresh rate.
5. The method according to claim 1, It is characterized in that The method further comprises: Before adjusting the current screen refresh rate of the electronic device, it is determined that the screen refresh rate of the electronic device supports the screen refresh rate corresponding to the first decoding frame rate.
6. A screen refresh rate adjustment device, It is characterized in that include: an execution unit, configured to lock the screen refresh rate of the electronic device to a preset screen refresh rate in response to a media playback application of the electronic device being in a video playback scene and the playback state satisfying a predetermined condition, the media playback application supporting playback of a video source with a first decoding frame rate, the first decoding frame rate being higher than a preset frame rate threshold, the preset screen refresh rate being a screen refresh rate supporting playback of a video corresponding to a second decoding frame rate, the second decoding frame rate being lower than the first decoding frame rate; An acquisition unit, used to acquire the current decoding frame rate of the video source to be played; The adjustment unit is used to adjust the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate.
7. The screen refresh rate adjustment device according to claim 6, It is characterized in that The execution unit executes the playback state to meet the predetermined condition in at least one of the following ways, including: The playback state of the video played based on the first decoding frame rate is a paused playback state; The video playback state based on the first decoding frame rate is in an exit state, and the playback state of the next video to be played is not triggered; The function of the media playback application is triggered to a state where the video playback at the first decoding frame rate is not performed, and the function is to perform the video playback at the first decoding frame rate.
8. The screen refresh rate adjustment device according to claim 6 or 7, It is characterized in that The adjusting unit adjusts the current screen refresh rate of the electronic device to a screen refresh rate matching the current decoding frame rate based on the current decoding frame rate and the preset screen refresh rate in the following manner, including: In response to the current decoding frame rate being greater than the second decoding frame rate, adjusting the screen refresh rate of the electronic device to the first screen refresh rate; or In response to the current decoding frame rate being less than or equal to the second decoding frame rate, adjusting the screen refresh rate of the electronic device to the second screen refresh rate; The first screen refresh rate is greater than the preset screen refresh rate and less than or equal to the screen refresh rate corresponding to the first decoding frame rate; The second screen refresh rate is lower than the first screen refresh rate.
9. The screen refresh rate adjustment device according to claim 8, It is characterized in that The adjustment unit presets the screen refresh rate as the minimum screen refresh rate that supports the media playback application to play the video to meet the smoothness condition of the electronic device in the following manner; The second screen refresh rate is the preset screen refresh rate.
10. The screen refresh rate adjustment device according to claim 6, It is characterized in that The adjustment unit is also used to: before adjusting the current screen refresh rate of the electronic device to a screen refresh rate that matches the current decoding frame rate, determine the screen refresh rate corresponding to the first decoding frame rate that supports the electronic device to play the video by the media playback application to meet the smoothness condition.
11. A screen refresh rate adjustment device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method described in any one of claims 1 to 5.
12. A storage medium, It is characterized in that The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Screen refresh rate adjusting method and device, electronic equipment and storage medium
CN111610848A
Picture refreshing method and device and computer readable storage medium
CN112130790A
Refresh rate adjusting method and electronic equipment
CN113438552A
Information processing method and electronic equipment
CN113867668A
Display panel flicker degree detection method and device and computer readable storage medium
CN115240576A