Search

CN-122019037-A - Dynamic wallpaper display method and device, mobile terminal and storage medium

CN122019037ACN 122019037 ACN122019037 ACN 122019037ACN-122019037-A

Abstract

The embodiment of the invention provides a dynamic wallpaper display method, a device, a mobile terminal and a storage medium, wherein the method comprises the steps of acquiring equipment electric quantity of the mobile terminal and/or interaction frequency used for representing the times that the mobile terminal receives an interaction instruction in a preset duration when the dynamic wallpaper is monitored to be in a display state; and determining the working frame rate of the dynamic wallpaper on the mobile terminal based on the equipment electric quantity and/or the interaction frequency and a preset correlation, wherein the preset correlation is a relation between the fluctuation trend of the equipment electric quantity and/or the fluctuation trend of the interaction frequency and the fluctuation trend of the working frame rate, and finally displaying the dynamic wallpaper on the mobile terminal according to the working frame rate. Therefore, the working frame rate when the dynamic wallpaper is displayed can be timely adjusted according to the equipment electric quantity and the interaction frequency, so that the dynamic wallpaper is prevented from being refreshed at a higher fixed frame rate, the electric quantity consumption of the dynamic wallpaper used in the mobile terminal can be reduced, and the cruising duration of the mobile terminal is improved.

Inventors

  • LIANG BIN

Assignees

  • 北京奇艺世纪科技有限公司

Dates

Publication Date
20260512
Application Date
20260119

Claims (10)

  1. 1. A dynamic wallpaper display method, characterized in that it is applied to a mobile terminal, the method comprising: acquiring equipment electric quantity and/or interaction frequency of the mobile terminal when the dynamic wallpaper is in a display state, wherein the interaction frequency is used for representing the times that the mobile terminal receives an interaction instruction in a preset time; Determining the working frame rate of the dynamic wallpaper on the mobile terminal based on the equipment electric quantity and/or the interaction frequency and a preset correlation, wherein the preset correlation is a relation between the fluctuation trend of the equipment electric quantity and/or the fluctuation trend of the interaction frequency and the fluctuation trend of the working frame rate; And displaying the dynamic wallpaper on the mobile terminal according to the working frame rate.
  2. 2. The method of claim 1, wherein the trend of the power of the device and/or the trend of the interaction frequency is the same as the trend of the operation frame rate, and the preset correlation comprises a plurality of operation frame rates, each of which corresponds to one power interval and/or one interaction frequency interval; The determining the working frame rate of the dynamic wallpaper on the mobile terminal based on the equipment electric quantity and/or the interaction frequency and a preset correlation comprises the following steps: When the equipment power is located in a first power interval and/or the interaction frequency is located in a first interaction frequency interval, determining that the working frame rate of the dynamic wallpaper on the mobile terminal is the first power interval and/or the working frequency corresponding to the first interaction frequency interval, wherein the first power interval is any one of a plurality of power intervals, and the first interaction frequency is any one of a plurality of interaction frequency intervals.
  3. 3. The method of claim 1, wherein the displaying the dynamic wallpaper on the mobile terminal according to the work frame rate comprises: acquiring a current image frame to be displayed in the dynamic wallpaper and an image frame previous to the current image frame; Dividing the current image frame and the image frame which is the last image frame of the current image frame into a plurality of first image blocks and a plurality of second image blocks according to a preset image dividing mode, wherein the positions of the first image blocks in the current image frame and the positions of the second image blocks in the image frame which is the last image frame of the current image frame are in one-to-one correspondence; when the pixel difference value is larger than a preset difference value threshold value, determining the first image block with the pixel difference value larger than the preset difference value threshold value as a changed image block; And displaying the rendered current image frame on the mobile terminal based on the working frame rate and all the changed image blocks in the current image frame.
  4. 4. The method of claim 3, wherein the working frame rate comprises a rendering frame rate and/or a display frame rate, wherein the displaying the rendered current image frame on the mobile terminal based on the working frame rate and all of the changed image blocks in the current image frame comprises: rendering all the changed image blocks in the current image frame according to the rendering frame rate and displaying the rendered current image frame on the mobile terminal, or Rendering all the changed image blocks in the current image frame, and displaying the rendered current image frame on the mobile terminal according to the display frame rate, or And rendering all the changed image blocks in the current image frame according to the rendering frame rate, and displaying the rendered current image frame on the mobile terminal according to the display frame rate.
  5. 5. The method according to any one of claims 1 to 4, wherein before the obtaining the device power and/or the interaction frequency of the mobile terminal, the method further comprises: When the dynamic wallpaper is loaded for the first time, acquiring a predetermined key frame image of the dynamic wallpaper, and storing the key frame image into a texture cache; the displaying the dynamic wallpaper on the mobile terminal according to the working frame rate comprises the following steps: Acquiring the key frame image from the texture cache; And displaying the dynamic wallpaper on the mobile terminal based on the key frame image and the working frame rate.
  6. 6. The method of claim 5, wherein the working frame rate comprises a rendering frame rate and/or a display frame rate, wherein the displaying the dynamic wallpaper on the mobile terminal based on the key frame image and the working frame rate comprises: rendering the dynamic wallpaper according to the key frame image and the rendering frame rate, and displaying the rendered dynamic wallpaper on the mobile terminal, or Rendering the dynamic wallpaper according to the key frame image, and displaying the rendered dynamic wallpaper on the mobile terminal according to the display frame rate, or And rendering the dynamic wallpaper according to the rendering frame rate and the key frame image, and displaying the rendered dynamic wallpaper on the mobile terminal according to the display frame rate.
  7. 7. The method of claim 5, wherein after storing the key frame image in a texture buffer, the method further comprises: Acquiring the memory occupation amount of the mobile terminal in real time, and clearing the key frame image cached in the texture cache when the memory occupation amount is larger than a preset occupation amount threshold value; and when the memory occupation amount is smaller than a preset occupation amount threshold value, the key frame image is stored in the texture cache again.
  8. 8. A dynamic wallpaper display device for use in a mobile terminal, said device comprising: The acquisition module is used for acquiring the equipment electric quantity and/or the interaction frequency of the mobile terminal when the dynamic wallpaper is in the display state, wherein the interaction frequency is used for representing the times that the mobile terminal receives the interaction instruction in a preset duration; The determining module is used for determining the working frame rate of the dynamic wallpaper on the mobile terminal based on the equipment electric quantity and/or the interaction frequency and a preset correlation, wherein the preset correlation is a relation between the fluctuation trend of the equipment electric quantity and/or the fluctuation trend of the interaction frequency and the fluctuation trend of the working frame rate; and the display module is used for displaying the dynamic wallpaper on the mobile terminal according to the working frame rate.
  9. 9. The mobile terminal is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; a memory for storing a computer program; a processor for carrying out the method steps of any one of claims 1-7 when executing a program stored on a memory.
  10. 10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-7.

Description

Dynamic wallpaper display method and device, mobile terminal and storage medium Technical Field The present invention relates to the field of electronic devices, and in particular, to a method and apparatus for displaying dynamic wallpaper, a mobile terminal, and a storage medium. Background With the development of electronic technology, mobile terminals (such as smart phones and tablet computers) are becoming more and more popular, and because dynamic wallpaper can be used for beautifying the interface of the mobile terminal and improving user experience, the mobile terminal is favored by users, and based on the dynamic wallpaper, the dynamic wallpaper becomes one of the functions of key popularization of an operating system and an application manufacturer. However, the applicant found that in the prior art, when dynamic wallpaper is used on a mobile terminal, the wallpaper is generally refreshed at a higher fixed frame rate, so that the power consumption of the mobile terminal is relatively high, and the cruising duration of the mobile terminal is reduced. Disclosure of Invention The embodiment of the invention aims to provide a dynamic wallpaper display method, a device, a mobile terminal and a storage medium, so as to reduce the electric quantity consumption of dynamic wallpaper used in the mobile terminal and improve the endurance of the mobile terminal. The specific technical scheme is as follows: In a first aspect of the embodiment of the present invention, there is first provided a dynamic wallpaper display method, applied to a mobile terminal, the method including: When the dynamic wallpaper is in a display state, acquiring equipment electric quantity and/or interaction frequency of the mobile terminal, wherein the interaction frequency is used for representing the times that the mobile terminal receives an interaction instruction in a preset duration; Determining the working frame rate of the dynamic wallpaper on the mobile terminal based on the equipment electric quantity and/or the interaction frequency and a preset correlation, wherein the preset correlation is a relation between the fluctuation trend of the equipment electric quantity and/or the fluctuation trend of the interaction frequency and the fluctuation trend of the working frame rate; And displaying the dynamic wallpaper on the mobile terminal according to the working frame rate. Optionally, the fluctuation trend of the electric quantity of the equipment and/or the fluctuation trend of the interaction frequency are the same as the fluctuation trend of the work frame rate, and the preset correlation comprises a plurality of work frame rates, wherein each work frame rate corresponds to one electric quantity interval and/or one interaction frequency interval; based on the equipment electric quantity and/or the interaction frequency and a preset correlation, determining the working frame rate of the dynamic wallpaper on the mobile terminal comprises the following steps: When the equipment power is located in a first power interval and/or the interaction frequency is located in a first interaction frequency interval, determining that the working frame rate of the dynamic wallpaper on the mobile terminal is the first power interval and/or the working frequency corresponding to the first interaction frequency interval, wherein the first power interval is any one of a plurality of power intervals, and the first interaction frequency is any one of a plurality of interaction frequency intervals. Optionally, displaying the dynamic wallpaper on the mobile terminal according to the work frame rate includes: acquiring a current image frame to be displayed in the dynamic wallpaper and an image frame previous to the current image frame; Dividing a current image frame and an image frame which is the last image frame of the current image frame into a plurality of first image blocks and a plurality of second image blocks according to a preset image dividing mode, wherein the positions of the first image blocks in the current image frame correspond to the positions of the second image blocks in the image frame which is the last image frame of the current image frame one by one; when the pixel difference value is larger than a preset difference value threshold value, determining the first image block with the pixel difference value larger than the preset difference value threshold value as a changed image block; and displaying the rendered current image frame on the mobile terminal based on the working frame rate and all the changed image blocks in the current image frame. Optionally, the working frame rate includes a rendering frame rate and/or a display frame rate, and displaying the rendered current image frame on the mobile terminal based on the working frame rate and all the changed image blocks in the current image frame, including: rendering all the changed image blocks in the current image frame according to the rendering frame rate and displaying