CN111158815A - Dynamic wallpaper fuzzy method, terminal and computer readable storage medium - Google Patents

Dynamic wallpaper fuzzy method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN111158815A
CN111158815A CN201911312254.6A CN201911312254A CN111158815A CN 111158815 A CN111158815 A CN 111158815A CN 201911312254 A CN201911312254 A CN 201911312254A CN 111158815 A CN111158815 A CN 111158815A
Authority
CN
China
Prior art keywords
dynamic wallpaper
wallpaper
dynamic
fuzzy
frame rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911312254.6A
Other languages
Chinese (zh)
Other versions
CN111158815B (en
Inventor
廖松茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201911312254.6A priority Critical patent/CN111158815B/en
Publication of CN111158815A publication Critical patent/CN111158815A/en
Application granted granted Critical
Publication of CN111158815B publication Critical patent/CN111158815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a dynamic wallpaper fuzzy method, a terminal and a computer readable storage medium, aiming at the problems that icons and characters are involved in fuzziness, no dynamic effect is achieved, and the switching between screenshot fuzzy wallpaper and original dynamic wallpaper is not consistent and the like caused by adopting a screenshot fuzzy scheme in the existing dynamic wallpaper fuzzy scheme, reading a real-time picture of the dynamic wallpaper and providing a corresponding picture interface; acquiring the frame rate of the dynamic wallpaper, providing a playing frame rate which is the same as the frame rate, and providing a frame rate interface for acquiring the playing frame rate; acquiring a real-time image of the dynamic wallpaper through an image interface according to the playing frame rate, carrying out fuzzy processing on the image, and making a dynamic wallpaper fuzzy video; in a preset scene, the dynamic wallpaper fuzzy video is used as the background, so that independent fuzzy of the dynamic wallpaper is realized, interference of the dynamic wallpaper on specific display contents is reduced, the continuity of switching between the original dynamic wallpaper and the processed fuzzy dynamic wallpaper is ensured, and the use experience of a user is improved.

Description

Dynamic wallpaper fuzzy method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal display interfaces, and more particularly, to a dynamic wallpaper blurring method, a terminal, and a computer-readable storage medium.
Background
With the development of modern society, people can not leave various terminals in daily life. Many terminals in daily life are provided with display interfaces, and the most obvious display interface is wallpaper. Because of different preferences of each person, users often set favorite pictures as wallpapers, and many users set dynamic wallpapers. In some application scenarios, for example, when a folder of a desktop is expanded and a recent taskbar is opened, few wallpapers or dynamic wallpapers may interfere with target display contents and affect user experience, and therefore, how to perform blurring processing on the wallpapers or dynamic wallpapers also becomes a focus of attention of people.
Many terminals have the Gaussian blur wallpaper function, the function is easy to realize, only the current static wallpaper needs to be subjected to Gaussian blur, but when the terminal uses the dynamic wallpaper, because the picture of the dynamic wallpaper is changed all the time, the blurring processing is difficult to perform, so most of the terminals adopt a scheme of not performing blurring processing on the dynamic wallpaper at present, the dynamic wallpaper is directly displayed, and part of the terminals adopt a scheme of screenshot and Gaussian blur processing on the current dynamic wallpaper, but the scheme can cause some icons and characters of the wallpaper to participate in blur, and is not simple wallpaper blur, the scheme of screenshot and blurring processing can cause no dynamic effect, and the effect expected by a user can not be achieved; in addition, when the fuzzy state returns to the normal display state, the original static fuzzy freeze frame can be different from the current normal dynamic wallpaper frame in a high probability, so that interface transition is not consistent, and user experience is reduced.
Disclosure of Invention
The technical problem to be solved by the invention is how to blur only the dynamic wallpaper, reduce the interference of the dynamic wallpaper on specific display contents in partial application scenes, and keep the consistency when the original dynamic wallpaper and the dynamic wallpaper after the blur processing are switched with each other.
In order to solve the technical problem, the invention provides a dynamic wallpaper blurring method, which comprises the following steps:
reading a real-time picture of the dynamic wallpaper, and providing a picture interface for acquiring the real-time picture of the dynamic wallpaper;
acquiring a frame rate of the dynamic wallpaper, providing a play frame rate which is the same as the frame rate of the dynamic wallpaper, and providing a frame rate interface for acquiring the play frame rate;
acquiring a play frame rate, acquiring a real-time image of the dynamic wallpaper through an image interface according to the play frame rate, carrying out fuzzy processing on the real-time image of the dynamic wallpaper, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video;
and under a preset scene, taking the dynamic wallpaper fuzzy video as a background.
Optionally, the acquiring the dynamic wallpaper picture includes:
the drawing contents of the wallpaper window are distinguished independently through a system drawing core;
and reading the real-time picture of the dynamic wallpaper in the wallpaper window.
Optionally, the obtaining of the real-time picture of the dynamic wallpaper through the picture interface according to the play frame rate specifically includes:
and according to the playing frame rate, in the playing process of the dynamic wallpaper, acquiring a real-time picture of the dynamic wallpaper at a specific time interval until the dynamic wallpaper is completely played at least once.
Optionally, the method for performing blur processing on the real-time image of the dynamic wallpaper specifically includes: and blurring the real-time picture of the dynamic wallpaper by utilizing a Gaussian blurring algorithm.
Optionally, the step of making the real-time image of the dynamic wallpaper after the blurring processing into the dynamic wallpaper blurred video includes:
and according to the play frame rate, sequentially inserting the real-time pictures of the dynamic wallpaper after the blurring processing at a specific time interval to synthesize a dynamic wallpaper blurring video, wherein the duration of the dynamic blurring video is the same as that of the dynamic wallpaper.
Optionally, the taking of the dynamic wallpaper blurred video as a background includes:
the dynamic wallpaper fuzzy video is used as a new wallpaper interface to replace the original dynamic wallpaper interface;
or, the dynamic wallpaper fuzzy video is used as an independent interface to be covered on the original dynamic wallpaper interface.
Optionally, the play start picture of the dynamic wallpaper blurred video corresponds to the current picture of the original dynamic wallpaper.
Optionally, the preset scenario at least includes one of the following scenarios:
when a desktop folder window is expanded, a task bar is displayed, a desktop is arranged, a status bar is pulled down, and a window pops up.
Further, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the dynamic wallpaper obfuscation method described above.
Further, an embodiment of the present invention also provides a computer-readable storage medium, which stores one or more programs, where the one or more programs are executable by one or more processors to implement the steps of the above-mentioned dynamic wallpaper blurring method.
The invention has the advantages of
The invention provides a dynamic wallpaper blurring method, a terminal and a computer readable storage medium, aiming at the problems that icons and characters are blurred due to the adoption of a screenshot and blurring scheme in the existing dynamic wallpaper blurring scheme, a dynamic effect is not achieved, and switching between screenshot blurring wallpaper and original dynamic wallpaper is not consistent, the invention provides a picture interface for obtaining a real-time picture of the dynamic wallpaper by reading the real-time picture of the dynamic wallpaper; acquiring a frame rate of the dynamic wallpaper, providing a play frame rate which is the same as the frame rate of the dynamic wallpaper, and providing a frame rate interface for acquiring the play frame rate; acquiring a play frame rate, acquiring a real-time image of the dynamic wallpaper through an image interface according to the play frame rate, performing fuzzy processing, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video; in a preset scene, the dynamic wallpaper fuzzy video is used as the background, independent fuzzy of the dynamic wallpaper is achieved (irrelevant icons and characters are prevented from being fuzzy), interference of the dynamic wallpaper on specific display contents is reduced in a part of scenes, the continuity of switching between the original dynamic wallpaper and the processed fuzzy dynamic wallpaper is guaranteed, and the use experience of a user is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a diagram illustrating an alternative terminal hardware architecture for implementing various embodiments of the present invention;
FIG. 2 is a flowchart illustrating a method for blurring dynamic wallpaper according to a first embodiment of the invention;
FIG. 3 is a schematic view illustrating blurred dynamic wallpaper when a folder window of a desktop is opened according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a blurred dynamic wallpaper when the status bar is pulled down according to an embodiment of the invention;
FIG. 5 is a schematic diagram illustrating a blurred dynamic wallpaper when a window pops up according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for blurring dynamic wallpaper according to a second embodiment of the invention;
FIG. 7 is a flowchart of a method for blurring dynamic wallpaper according to a third embodiment of the present invention;
fig. 8 is a diagram of a terminal structure in the fourth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (wideband and Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the above mobile terminal hardware structure, various embodiments of the present invention are proposed.
First embodiment
In order to solve the problems that icons and characters are involved in fuzziness, no dynamic effect is achieved, and switching between the screenshot-fuzzy wallpaper and the original dynamic wallpaper is not consistent due to the adoption of the screenshot-fuzzy scheme in the existing dynamic wallpaper fuzzy scheme, the embodiment provides a dynamic wallpaper fuzzy method which can be applied to various electronic terminals, including various mobile terminals, such as mobile phones, tablets, palmtop computers or notebook computers; the method can also be used for non-mobile terminals such as desktop computers and the like. Fig. 2 is a flowchart of a dynamic wallpaper blurring method according to an embodiment of the present invention, where the dynamic wallpaper blurring method includes the following steps:
s201: and reading the real-time picture of the dynamic wallpaper, and providing a picture interface for acquiring the real-time picture of the dynamic wallpaper.
In an Android (Android, hereinafter, all expressed by Android) system, there are many system services, including a surfeffinger (system drawing core, hereinafter, all expressed by surfeffinger) service. The underlying surfacemaker display of the Android system is a combination of one or more windows (graphical interfaces, which are described below), each of which is independent of the other and has a respective position and size on the screen, and the content, size, position, etc. displayed in each of the windows may change when we change the application, for example, in a WeChat application, the top status bar and the bottom navigation button are both present. The wallpaper is also an independent window, and the desktop interface is drawn on the wallpaper window, so that the window of the wallpaper can be distinguished independently through a SurfaceFlinger service, and then the picture of the wallpaper is read, and when the used wallpaper is a dynamic wallpaper, the read picture is a current real-time picture of the dynamic wallpaper. It should be understood that whether static or dynamic wallpaper, its window may be looked up by the surfacemaker service. In addition, the surfaceflunger service may also provide an interface for capturing a picture of the wallpaper. It should be understood that the present invention is not limited to this interface, as long as the interface can obtain the current wallpaper picture, for example, a getCurrentWallpaperBitmap interface may be defined to obtain the real-time picture of the current dynamic wallpaper.
S202: the method comprises the steps of obtaining a frame rate of the dynamic wallpaper, providing a playing frame rate which is the same as the frame rate of the dynamic wallpaper, and providing a frame rate interface for obtaining the playing frame rate.
The nature of the dynamic wallpaper is that a video is played, so that the dynamic wallpaper service in the Android system can be utilized to obtain relevant parameters of the dynamic wallpaper in use, wherein the parameters comprise the frame rate of the dynamic wallpaper. The dynamic wallpaper service provides a same playing frequency according to the obtained dynamic wallpaper frequency, and the playing frequency can be obtained through an interface provided by the dynamic wallpaper service. It should be understood that the present invention is not limited to this interface, as long as the interface can obtain the above-mentioned play frame rate, for example, a getdynamic wallpaperfps interface can be defined to obtain the play frame rate.
S203: and acquiring a play frame rate, acquiring a real-time image of the dynamic wallpaper through an image interface according to the play frame rate, performing fuzzy processing, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video.
The Gaussian fuzzy client acquires a playing frame rate through an interface provided by the dynamic wallpaper service, and acquires a current real-time picture of the dynamic wallpaper through a picture interface provided by the SurfaceFlinger service according to the frame rate. The method for acquiring the dynamic wallpaper real-time picture specifically comprises the following steps: and according to the playing frame rate, in the playing process of the dynamic wallpaper, acquiring a real-time picture of the dynamic wallpaper at a specific time interval until the dynamic wallpaper is completely played at least once. For example, when the playing frame rate is 50 frames per second, it means that 50 real-time pictures of the dynamic wallpaper need to be acquired every second, so the time interval of the acquisition is 0.02 second, that is, the first real-time picture of the dynamic wallpaper is acquired in 0 th second, and then one real-time picture of the dynamic wallpaper is acquired every 0.02 second until the dynamic wallpaper is completely played at least once. It should be understood that the process of acquiring the real-time picture of the dynamic wallpaper needs to be continued until the dynamic wallpaper is completely played at least once, so as to acquire all real-time pictures at a specific time interval of the dynamic wallpaper, and avoid the dynamic video blurring effect from being inconsistent with the original dynamic video due to omission.
The gaussian fuzzy client performs fuzzy processing on the acquired dynamic wallpaper real-time picture, and it should be understood that the dynamic wallpaper real-time picture can be subjected to fuzzy processing each time the dynamic wallpaper real-time picture is acquired, or can be subjected to fuzzy processing after all dynamic wallpaper real-time pictures are acquired. The blurring processing on the acquired dynamic wallpaper real-time image is not limited, and any processing method capable of realizing the image blurring effect can be adopted, for example, algorithms including but not limited to gaussian blurring, mean blurring, stack blur blurring, and the like can be adopted to perform blurring processing on the dynamic wallpaper real-time image. Preferably, in this embodiment, a gaussian blur algorithm is used to blur the real-time image of the dynamic wallpaper. Before the real-time image blurring processing of the dynamic wallpaper is carried out, the user can set the grade needing blurring, the higher the grade is, the stronger the blurring effect is, and if the grade is not set, the processing is carried out according to the default blurring grade.
After blurring all the acquired dynamic wallpaper real-time pictures is finished, the dynamic wallpaper real-time pictures are made into dynamic wallpaper blurred videos, and the method specifically comprises the following steps: and according to the play frame rate, sequentially inserting the real-time pictures of the dynamic wallpaper after the blurring processing at a specific time interval to synthesize a dynamic wallpaper blurring video, wherein the duration of the dynamic blurring video is the same as that of the dynamic wallpaper. For example, when the playback frame rate is 50 frames per second, a real-time frame of the dynamic wallpaper after the blurring processing is inserted every 0.02 second, and a dynamic wallpaper blurring video is synthesized. Because the number of the acquired real-time pictures of the dynamic wallpaper is determined by the duration of the dynamic wallpaper and the play frame rate, the time length of the fuzzy video of the synthesized dynamic wallpaper is the same as that of the dynamic wallpaper under the condition that the frame rate and the number of the real-time pictures of the dynamic wallpaper after the fuzzy processing are the same. Before the dynamic wallpaper fuzzy video is synthesized, a preview interface can be provided for the user to preview the effect of the dynamic wallpaper fuzzy video, and if the user is unsatisfied with the effect, the user can return to the step of selecting the fuzzy grade for reselection.
S204: and under a preset scene, taking the dynamic wallpaper fuzzy video as a background.
The preset scene refers to a scene in which the dynamic wallpaper may affect a specific display content, or a scene set by a terminal manufacturer and a user, for example, the preset scene may be set to at least one of the following scenes: when a folder window of a desktop is expanded, when a recent taskbar is displayed, when desktop sorting is performed, when a status bar is pulled down, and when a window pops up. The following description will take the scenes of expanding a folder window of a desktop, status bar pull-down, window pop-up, and the like as examples.
The effect of using the dynamic wallpaper blurred video as the background when the folder window of the desktop is expanded is shown in fig. 3, and the dynamic wallpaper is normally displayed before the folder window is expanded. After the folder window is unfolded, the dynamic wallpaper fuzzy video serves as a background, and the effect that the dynamic wallpaper is fuzzy is shown.
The effect of using the blurred video of the dynamic wallpaper as the background when the status bar is pulled down is as shown in fig. 4, and the dynamic wallpaper is normally displayed before the status bar is pulled down. After the status bar is pulled down, the dynamic wallpaper fuzzy video is used as a background, and the effect that the dynamic wallpaper is fuzzy is shown.
The effect of using the blurred video of the dynamic wallpaper as the background when the window pops up is shown in fig. 5, and when no window pops up, the dynamic wallpaper is normally displayed. After the window pops up, the dynamic wallpaper fuzzy video is used as a background, and the effect that the dynamic wallpaper is fuzzy is shown.
The method specifically comprises the following steps of taking the dynamic wallpaper fuzzy video as a background: taking the dynamic wallpaper fuzzy video as a new window to replace the original dynamic wallpaper window; or the dynamic wallpaper blurred video is used as an independent window to be overlaid on the window of the dynamic wallpaper.
Preferably, in order to ensure the consistency when the dynamic wallpaper fuzzy video and the original dynamic wallpaper are switched with each other, before the dynamic wallpaper fuzzy video is used as the background, the same picture as the current dynamic wallpaper can be used as the starting picture for playing, so that the progress when the dynamic wallpaper fuzzy video is played can be ensured to be the same as the playing progress of the current dynamic wallpaper. It should be understood that each frame of the dynamic wallpaper fuzzy video can be compared with a dynamic wallpaper real-time picture when dynamic wallpaper fuzzy needs to be performed in an image comparison mode, a frame with the highest similarity is found, and the dynamic wallpaper fuzzy video is played from the frame; the dynamic wallpaper fuzzy video can also be played at the same progress of the dynamic wallpaper fuzzy video by acquiring the current playing progress (playing time, playing percentage and the like) of the dynamic wallpaper.
The embodiment provides a dynamic wallpaper fuzzy method which comprises the steps of reading a real-time picture of dynamic wallpaper, obtaining a frame rate of the dynamic wallpaper through an interface, and providing a play frame rate which is the same as the frame rate of the dynamic wallpaper; acquiring a play frame rate, acquiring a real-time image of the wallpaper according to the play frame rate, carrying out fuzzy processing on the real-time image of the dynamic wallpaper, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video; and under a preset scene, taking the dynamic wallpaper fuzzy video as a background. By acquiring the frame rate of the dynamic wallpaper, acquiring the real-time image of the dynamic wallpaper according to the play frame rate, performing fuzzy processing, synthesizing the dynamic wallpaper fuzzy video, and taking the dynamic wallpaper fuzzy video as a background in a preset scene, the dynamic wallpaper is independently fuzzy, interference of the dynamic wallpaper on specific display contents is reduced in partial scenes, the continuity of switching between the original dynamic wallpaper and the processed fuzzy dynamic wallpaper is ensured, and the user experience is improved.
Second embodiment
In order to solve the problems that icons and characters are involved in fuzziness, no dynamic effect is achieved, and switching between the screenshot-fuzzy wallpaper and the original dynamic wallpaper is not consistent due to the adoption of the screenshot-fuzzy scheme in the existing dynamic wallpaper fuzzy scheme, the embodiment provides a dynamic wallpaper fuzzy method which can be applied to various electronic terminals, including various mobile terminals, such as mobile phones, tablets, palmtop computers or notebook computers; the method can also be used for non-mobile terminals such as desktop computers and the like. Fig. 6 is a flowchart of a dynamic wallpaper blurring method according to a second embodiment of the present invention, where the dynamic wallpaper blurring method includes the following steps:
s601: and reading the real-time picture of the dynamic wallpaper, and providing a picture interface for acquiring the real-time picture of the dynamic wallpaper.
In an Android (Android, hereinafter, all expressed by Android) system, there are many system services, including a surfeffinger (system drawing core, hereinafter, all expressed by surfeffinger) service. The underlying surfacemaker display of the Android system is a combination of one or more windows (graphical interfaces, which are described below), each of which is independent of the other and has a respective position and size on the screen, and the content, size, position, etc. displayed in each of the windows may change when we change the application, for example, in a WeChat application, the top status bar and the bottom navigation button are both present. The wallpaper is also an independent window, and the desktop interface is drawn on the wallpaper window, so that the window of the wallpaper can be distinguished independently through a SurfaceFlinger service, and then the picture of the wallpaper is read, and when the used wallpaper is a dynamic wallpaper, the read picture is a current real-time picture of the dynamic wallpaper. It should be understood that whether static or dynamic wallpaper, its window may be looked up by the surfacemaker service. In addition, the surfaceflunger service may also provide an interface for capturing a picture of the wallpaper. It should be understood that the present invention is not limited to this interface, as long as the interface can obtain the current wallpaper picture, for example, a getCurrentWallpaperBitmap interface may be defined to obtain the real-time picture of the current dynamic wallpaper.
S602: and acquiring the frame rate of the dynamic wallpaper, judging whether the frame rate meets a preset condition, and providing a corresponding play frame rate according to the condition met by the frame rate.
The nature of the dynamic wallpaper is that a video is played, so that the dynamic wallpaper service in the Android system can be utilized to obtain relevant parameters of the dynamic wallpaper in use, wherein the parameters comprise the frame rate of the dynamic wallpaper.
Comparing the obtained frame rate of the dynamic wallpaper with the maximum frame rate supported by the terminal display screen, and when the frame rate of the dynamic wallpaper is less than or equal to the maximum frame rate supported by the terminal display screen, providing a playing frequency which is the same as the frame rate of the dynamic wallpaper by the dynamic wallpaper service; when the frame rate of the dynamic wallpaper is greater than the maximum frame rate supported by the display screen of the terminal, the dynamic wallpaper service provides a playing frequency which is the same as the maximum frame rate supported by the display screen of the terminal. For example, the maximum frame rate supported by the display screen of the terminal is 60 frames, and when the frame rate of the dynamic wallpaper is 30 frames, the dynamic wallpaper service provides a play frame rate of 30 frames; when the frame rate of the dynamic wallpaper is 90 frames, the dynamic wallpaper service provides a play frame rate of 60 frames.
In addition, in order to achieve the effect of saving resources, the user can also define the playing frame rate. For example, the maximum frame rate supported by the display screen of the terminal is 60 frames, and the frame rate of the dynamic wallpaper is also 60 frames, and the user can set the play frame rate of the dynamic wallpaper service for providing 30 frames to save resources.
The play frame rate may be obtained through an interface provided by the dynamic wallpaper service. It should be understood that the present invention is not limited to this interface, as long as the interface can obtain the above-mentioned play frame rate, for example, a getdynamic wallpaperfps interface can be defined to obtain the play frame rate.
S603: and acquiring a play frame rate, acquiring a real-time image of the dynamic wallpaper through an image interface according to the play frame rate, performing fuzzy processing, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video.
The Gaussian fuzzy client acquires a playing frame rate through an interface provided by the dynamic wallpaper service, and acquires a current real-time picture of the dynamic wallpaper through a picture interface provided by the SurfaceFlinger service according to the frame rate. The method for acquiring the dynamic wallpaper real-time picture specifically comprises the following steps: and according to the playing frame rate, in the playing process of the dynamic wallpaper, acquiring a real-time picture of the dynamic wallpaper at a specific time interval until the dynamic wallpaper is completely played at least once. For example, when the playing frame rate is 50 frames per second, it means that 50 real-time pictures of the dynamic wallpaper need to be acquired every second, so the time interval of the acquisition is 0.02 second, that is, the first real-time picture of the dynamic wallpaper is acquired in 0 th second, and then one real-time picture of the dynamic wallpaper is acquired every 0.02 second until the dynamic wallpaper is completely played at least once. It should be understood that the process of acquiring the real-time picture of the dynamic wallpaper needs to be continued until the dynamic wallpaper is completely played at least once, so as to acquire all real-time pictures at a specific time interval of the dynamic wallpaper, and avoid the dynamic video blurring effect from being inconsistent with the original dynamic video due to omission.
The gaussian fuzzy client performs fuzzy processing on the acquired dynamic wallpaper real-time picture, and it should be understood that the dynamic wallpaper real-time picture can be subjected to fuzzy processing each time the dynamic wallpaper real-time picture is acquired, or can be subjected to fuzzy processing after all dynamic wallpaper real-time pictures are acquired. The blurring processing on the acquired dynamic wallpaper real-time image is not limited, and any processing method capable of realizing the image blurring effect can be adopted, for example, algorithms including but not limited to gaussian blurring, mean blurring, stack blur blurring, and the like can be adopted to perform blurring processing on the dynamic wallpaper real-time image. Preferably, in this embodiment, a gaussian blur algorithm is used to blur the real-time image of the dynamic wallpaper. Before the real-time image blurring processing of the dynamic wallpaper is carried out, the user can set the grade needing blurring, the higher the grade is, the stronger the blurring effect is, and if the grade is not set, the processing is carried out according to the default blurring grade.
After blurring all the acquired dynamic wallpaper real-time pictures is finished, the dynamic wallpaper real-time pictures are made into dynamic wallpaper blurred videos, and the method specifically comprises the following steps: and according to the play frame rate, sequentially inserting the real-time pictures of the dynamic wallpaper after the blurring processing at a specific time interval to synthesize a dynamic wallpaper blurring video, wherein the duration of the dynamic blurring video is the same as that of the dynamic wallpaper. For example, when the playback frame rate is 50 frames per second, a real-time frame of the dynamic wallpaper after the blurring processing is inserted every 0.02 second, and a dynamic wallpaper blurring video is synthesized. Because the number of the acquired real-time pictures of the dynamic wallpaper is determined by the duration of the dynamic wallpaper and the play frame rate, the time length of the fuzzy video of the synthesized dynamic wallpaper is the same as that of the dynamic wallpaper under the condition that the frame rate and the number of the real-time pictures of the dynamic wallpaper after the fuzzy processing are the same. Before the dynamic wallpaper fuzzy video is synthesized, a preview interface can be provided for the user to preview the effect of the dynamic wallpaper fuzzy video, and if the user is unsatisfied with the effect, the user can return to the step of selecting the fuzzy grade for reselection.
S604: and under a preset scene, taking the dynamic wallpaper fuzzy video as a background.
The preset scene refers to a scene in which the dynamic wallpaper may affect a specific display content, or a scene set by a terminal manufacturer and a user, for example, the preset scene may be set to at least one of the following scenes: when a folder window of a desktop is expanded, when a recent taskbar is displayed, when desktop sorting is performed, when a status bar is pulled down, and when a window pops up.
The method specifically comprises the following steps of taking the dynamic wallpaper fuzzy video as a background: taking the dynamic wallpaper fuzzy video as a new window to replace the original dynamic wallpaper window; or the dynamic wallpaper blurred video is used as an independent window to be overlaid on the window of the dynamic wallpaper.
Preferably, in order to ensure the consistency when the dynamic wallpaper fuzzy video and the original dynamic wallpaper are switched with each other, before the dynamic wallpaper fuzzy video is used as the background, the same picture as the current dynamic wallpaper can be used as the starting picture for playing, so that the progress when the dynamic wallpaper fuzzy video is played can be ensured to be the same as the playing progress of the current dynamic wallpaper. It should be understood that each frame of the dynamic wallpaper fuzzy video can be compared with a dynamic wallpaper real-time picture when dynamic wallpaper fuzzy needs to be performed in an image comparison mode, a frame with the highest similarity is found, and the dynamic wallpaper fuzzy video is played from the frame; the dynamic wallpaper fuzzy video can also be played at the same progress of the dynamic wallpaper fuzzy video by acquiring the current playing progress (playing time, playing percentage and the like) of the dynamic wallpaper.
The embodiment provides a dynamic wallpaper fuzzy method which comprises the steps of reading a real-time picture of dynamic wallpaper, obtaining a frame rate of the dynamic wallpaper through an interface, judging whether the frame rate meets a preset condition or not and providing a corresponding play frame rate; acquiring a play frame rate, acquiring a real-time image of the wallpaper according to the play frame rate, carrying out fuzzy processing on the real-time image of the dynamic wallpaper, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video; and under a preset scene, taking the dynamic wallpaper fuzzy video as a background. The frame rate of the dynamic wallpaper is obtained, the corresponding play frame rate is provided, the real-time image of the dynamic wallpaper is obtained according to the play frame rate to carry out fuzzy processing, the dynamic wallpaper fuzzy video is synthesized, the dynamic wallpaper fuzzy video is used as the background in the preset scene, the independent fuzzy of the dynamic wallpaper is realized, the interference of the dynamic wallpaper on specific display content is reduced in partial scenes, the continuity of switching between the dynamic wallpaper and the processed fuzzy dynamic wallpaper is ensured, the relation between the dynamic fuzzy effect and resource consumption can be adjusted in a self-adaptive mode, and the user experience is improved.
Third embodiment
In order to solve the problems that icons and characters are involved in fuzziness, no dynamic effect is achieved, switching between the screen capture fuzzy wallpaper and the original dynamic wallpaper is not consistent and the like caused by the adoption of a screen capture and fuzzy scheme in the existing dynamic wallpaper fuzzy scheme, the embodiment provides a dynamic wallpaper fuzzy method which is applied to a system comprising an initiating terminal and a processing terminal. The initiating terminal can be various electronic terminals, including various mobile terminals, such as a mobile phone, a tablet, a palm computer or a notebook computer; the method can also be used for non-mobile terminals such as desktop computers and the like. Fig. 7 is a flowchart of a dynamic wallpaper blurring method provided by an embodiment of the present invention, where the method includes the following steps:
s701: and the initiating terminal sends the dynamic wallpaper to the processing terminal.
The dynamic wallpaper can be the dynamic wallpaper currently used by the initiating terminal, and the method is executed once to avoid changing the dynamic wallpaper each time, and the dynamic wallpaper stored in the terminal can also be sent. Preferably, the maximum frame rate supported by the display screen of the initiating terminal or the frame rate customized by the user can be sent to the processing terminal while the dynamic wallpaper is sent.
S702: and the processing terminal sets the received dynamic wallpaper as the wallpaper in the android virtual machine.
And the processing end runs an Andriod virtual machine, and after receiving the dynamic wallpaper, the dynamic wallpaper is set as the wallpaper in the Andriod virtual machine.
It should be understood that the following steps S703-S705 are all executed in the Andriod virtual machine on the processing side.
S703: and reading the real-time picture of the dynamic wallpaper, and providing a picture interface for acquiring the real-time picture of the dynamic wallpaper.
In an Android (Android, hereinafter, all expressed by Android) system, there are many system services, including a surfeffinger (system drawing core, hereinafter, all expressed by surfeffinger) service. The underlying surfacemaker display of the Android system is a combination of one or more windows (graphical interfaces, which are described below), each of which is independent of the other and has a respective position and size on the screen, and the content, size, position, etc. displayed in each of the windows may change when we change the application, for example, in a WeChat application, the top status bar and the bottom navigation button are both present. The wallpaper is also an independent window, and the desktop interface is drawn on the wallpaper window, so that the window of the wallpaper can be distinguished independently through a SurfaceFlinger service, and then the picture of the wallpaper is read, and when the used wallpaper is a dynamic wallpaper, the read picture is a current real-time picture of the dynamic wallpaper. It should be understood that whether static or dynamic wallpaper, its window may be looked up by the surfacemaker service. In addition, the surfaceflunger service may also provide an interface for capturing a picture of the wallpaper. It should be understood that the present invention is not limited to this interface, as long as the interface can obtain the current wallpaper picture, for example, a getCurrentWallpaperBitmap interface may be defined to obtain the real-time picture of the current dynamic wallpaper.
S704: the method comprises the steps of obtaining a frame rate of the dynamic wallpaper or a user-defined frame rate, providing a playing frame rate which is the same as the frame rate, and providing a frame rate interface for obtaining the playing frame rate.
The nature of the dynamic wallpaper is that a video is played, so that the dynamic wallpaper service in the Android system can be utilized to obtain relevant parameters of the dynamic wallpaper in use, wherein the parameters comprise the frame rate of the dynamic wallpaper. The dynamic wallpaper service provides a same playing frequency according to the obtained dynamic wallpaper frequency, and the playing frequency can be obtained through an interface provided by the dynamic wallpaper service. It should be understood that the present invention is not limited to this interface, as long as the interface can obtain the above-mentioned play frame rate, for example, a getdynamic wallpaperfps interface can be defined to obtain the play frame rate.
S705: and acquiring a play frame rate, acquiring a real-time image of the dynamic wallpaper through an image interface according to the play frame rate, performing fuzzy processing, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video.
The Gaussian fuzzy client acquires a playing frame rate through an interface provided by the dynamic wallpaper service, and acquires a current real-time picture of the dynamic wallpaper through a picture interface provided by the SurfaceFlinger service according to the frame rate. The method for acquiring the dynamic wallpaper real-time picture specifically comprises the following steps: and according to the playing frame rate, in the playing process of the dynamic wallpaper, acquiring a real-time picture of the dynamic wallpaper at a specific time interval until the dynamic wallpaper is completely played at least once. For example, when the playing frame rate is 50 frames per second, it means that 50 real-time pictures of the dynamic wallpaper need to be acquired every second, so the time interval of the acquisition is 0.02 second, that is, the first real-time picture of the dynamic wallpaper is acquired in 0 th second, and then one real-time picture of the dynamic wallpaper is acquired every 0.02 second until the dynamic wallpaper is completely played at least once. It should be understood that the process of acquiring the real-time picture of the dynamic wallpaper needs to be continued until the dynamic wallpaper is completely played at least once, so as to acquire all real-time pictures at a specific time interval of the dynamic wallpaper, and avoid the dynamic video blurring effect from being inconsistent with the original dynamic video due to omission.
The gaussian fuzzy client performs fuzzy processing on the acquired dynamic wallpaper real-time picture, and it should be understood that the dynamic wallpaper real-time picture can be subjected to fuzzy processing each time the dynamic wallpaper real-time picture is acquired, or can be subjected to fuzzy processing after all dynamic wallpaper real-time pictures are acquired. The blurring processing on the acquired dynamic wallpaper real-time image is not limited, and any processing method capable of realizing the image blurring effect can be adopted, for example, algorithms including but not limited to gaussian blurring, mean blurring, stack blur blurring, and the like can be adopted to perform blurring processing on the dynamic wallpaper real-time image. Preferably, in this embodiment, a gaussian blur algorithm is used to blur the real-time image of the dynamic wallpaper.
After blurring all the acquired dynamic wallpaper real-time pictures is finished, the dynamic wallpaper real-time pictures are made into dynamic wallpaper blurred videos, and the method specifically comprises the following steps: and according to the play frame rate, sequentially inserting the real-time pictures of the dynamic wallpaper after the blurring processing at a specific time interval to synthesize a dynamic wallpaper blurring video, wherein the duration of the dynamic blurring video is the same as that of the dynamic wallpaper. For example, when the playback frame rate is 50 frames per second, a real-time frame of the dynamic wallpaper after the blurring processing is inserted every 0.02 second, and a dynamic wallpaper blurring video is synthesized. Because the number of the acquired real-time pictures of the dynamic wallpaper is determined by the duration of the dynamic wallpaper and the play frame rate, the time length of the fuzzy video of the synthesized dynamic wallpaper is the same as that of the dynamic wallpaper under the condition that the frame rate and the number of the real-time pictures of the dynamic wallpaper after the fuzzy processing are the same.
S706: and the processing end sends the dynamic wallpaper fuzzy video to the initiating end.
S707: and the initiating end takes the dynamic wallpaper fuzzy video as a background in a preset scene.
The preset scene refers to a scene in which the dynamic wallpaper may affect a specific display content, or a scene set by a terminal manufacturer and a user, for example, the preset scene may be set to at least one of the following scenes: when a folder window of a desktop is expanded, when a recent taskbar is displayed, when desktop sorting is performed, when a status bar is pulled down, and when a window pops up.
The method specifically comprises the following steps of taking the dynamic wallpaper fuzzy video as a background: taking the dynamic wallpaper fuzzy video as a new window to replace the original dynamic wallpaper window; or the dynamic wallpaper blurred video is used as an independent window to be overlaid on the window of the dynamic wallpaper.
Preferably, in order to ensure the consistency when the dynamic wallpaper fuzzy video and the original dynamic wallpaper are switched with each other, before the dynamic wallpaper fuzzy video is used as the background, the same picture as the current dynamic wallpaper can be used as the starting picture for playing, so that the progress when the dynamic wallpaper fuzzy video is played can be ensured to be the same as the playing progress of the current dynamic wallpaper. It should be understood that each frame of the dynamic wallpaper fuzzy video can be compared with a dynamic wallpaper real-time picture when dynamic wallpaper fuzzy needs to be performed in an image comparison mode, a frame with the highest similarity is found, and the dynamic wallpaper fuzzy video is played from the frame; the dynamic wallpaper fuzzy video can also be played at the same progress of the dynamic wallpaper fuzzy video by acquiring the current playing progress (playing time, playing percentage and the like) of the dynamic wallpaper.
The embodiment provides a dynamic wallpaper fuzzy method which is applied to a system comprising an initiating terminal and a processing terminal, wherein the dynamic wallpaper fuzzy method comprises the steps that the sending terminal sends dynamic wallpaper to the processing terminal, and the processing terminal executes the following steps in an Android virtual machine: applying the dynamic wallpaper, reading a real-time picture of the dynamic wallpaper, acquiring a frame rate of the dynamic wallpaper through an interface, judging whether the frame rate meets a preset condition and providing a corresponding play frame rate; and acquiring a play frame rate, acquiring a real-time image of the wallpaper according to the play frame rate, carrying out fuzzy processing, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video. And the processing terminal sends the dynamic wallpaper fuzzy video to the initiating terminal, and the initiating terminal takes the dynamic wallpaper fuzzy video as a background in a preset scene. The dynamic wallpaper to be processed is obtained by the external equipment, the corresponding play frame rate is provided according to the frame rate of the dynamic wallpaper, the real-time picture of the dynamic wallpaper is obtained according to the play frame rate to be subjected to fuzzy processing, the dynamic wallpaper fuzzy video is synthesized and then is sent to the initiating terminal, the initiating terminal takes the dynamic wallpaper fuzzy video as the background in the preset scene, independent fuzzy of the dynamic wallpaper is achieved, interference of the dynamic wallpaper on specific display content is reduced in partial scenes, the continuity of switching between the original dynamic wallpaper and the processed fuzzy dynamic wallpaper is guaranteed, most of the fuzzy processes of the dynamic wallpaper are processed by the external equipment, the resource consumption of the initiating terminal is reduced, and the user experience is improved.
Fourth embodiment
The present embodiment provides a terminal, as shown in fig. 8, which includes a processor 81, a memory 82 and a communication bus 83, wherein:
the communication bus 83 is used for realizing connection communication between the processor 81 and the memory 82;
processor 81 is configured to execute one or more programs stored in memory 82 to implement the steps of the dynamic wallpaper obfuscation method of the first and/or second and/or third embodiments described above.
The present embodiment also provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the steps in the dynamic wallpaper blurring method according to the first embodiment, the second embodiment and/or the third embodiment, which are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A dynamic wallpaper obfuscation method, comprising:
reading a real-time picture of the dynamic wallpaper, and providing a picture interface for acquiring the real-time picture of the dynamic wallpaper;
acquiring the frame rate of the dynamic wallpaper, providing a playing frame rate which is the same as the frame rate of the dynamic wallpaper, and providing a frame rate interface for acquiring the playing frame rate;
acquiring the play frame rate, acquiring the real-time image of the dynamic wallpaper through the image interface according to the play frame rate, performing fuzzy processing, and making the real-time image of the dynamic wallpaper after the fuzzy processing into a dynamic wallpaper fuzzy video;
and under a preset scene, taking the dynamic wallpaper fuzzy video as a background.
2. The method of claim 1, wherein reading the dynamic wallpaper picture comprises:
the drawing contents of the wallpaper window are distinguished independently through a system drawing core;
and reading the real-time picture of the dynamic wallpaper in the wallpaper window.
3. The blurring method for dynamic wallpaper according to claim 2, wherein the obtaining of the real-time image of the dynamic wallpaper through the image interface according to the frame rate is specifically:
and according to the playing frame rate, in the playing process of the dynamic wallpaper, acquiring a real-time picture of the dynamic wallpaper at a specific time interval until the dynamic wallpaper is completely played at least once.
4. The method for blurring the dynamic wallpaper according to claim 3, wherein the blurring processing of the real-time image of the dynamic wallpaper is specifically performed by: and blurring the real-time picture of the dynamic wallpaper by utilizing a Gaussian blurring algorithm.
5. The method for blurring the dynamic wallpaper according to claim 4, wherein the step of making the real-time picture of the dynamic wallpaper after blurring processing into a dynamic wallpaper blurred video comprises the following steps:
and according to the play frame rate, sequentially inserting the real-time pictures of the dynamic wallpaper after the blurring processing at a specific time interval to synthesize a dynamic wallpaper blurring video, wherein the duration of the dynamic blurring video is the same as that of the dynamic wallpaper.
6. The dynamic wallpaper obfuscation method as recited in claim 5, wherein said taking the dynamic wallpaper obfuscated video as a background comprises:
the dynamic wallpaper fuzzy video is used as a new wallpaper interface to replace the original dynamic wallpaper interface;
or, the dynamic wallpaper fuzzy video is used as an independent interface to be covered on the interface of the dynamic wallpaper.
7. The dynamic wallpaper blurring method as claimed in claim 6, wherein a play start picture of the dynamic wallpaper blurring video corresponds to a current picture of an original dynamic wallpaper.
8. A dynamic wallpaper obscuring method according to any one of claims 1 to 7 wherein said preset scenes comprise at least one of:
when a desktop folder window is expanded, a task bar is displayed, a desktop is arranged, a status bar is pulled down, and a window pops up.
9. A terminal, characterized in that the terminal comprises a processor, a memory and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the dynamic wallpaper blurring method as claimed in any one of claims 1 to 8.
10. A computer readable storage medium, storing one or more programs, the one or more programs being executable by one or more processors for performing the steps of the dynamic wallpaper blurring method as claimed in any one of claims 1 to 8.
CN201911312254.6A 2019-12-18 2019-12-18 Dynamic wallpaper blurring method, terminal and computer readable storage medium Active CN111158815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911312254.6A CN111158815B (en) 2019-12-18 2019-12-18 Dynamic wallpaper blurring method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911312254.6A CN111158815B (en) 2019-12-18 2019-12-18 Dynamic wallpaper blurring method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111158815A true CN111158815A (en) 2020-05-15
CN111158815B CN111158815B (en) 2023-06-23

Family

ID=70557294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911312254.6A Active CN111158815B (en) 2019-12-18 2019-12-18 Dynamic wallpaper blurring method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111158815B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631698A (en) * 2020-12-18 2021-04-09 平安普惠企业管理有限公司 Data display method and device, computer equipment and storage medium
CN116051387A (en) * 2022-06-30 2023-05-02 荣耀终端有限公司 Dynamic image blurring method, terminal device, and computer-readable storage medium
CN116719466A (en) * 2022-09-14 2023-09-08 荣耀终端有限公司 Method for displaying multi-task interface, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387239A (en) * 2010-08-27 2012-03-21 希姆通信息技术(上海)有限公司 Method for implementing dynamic wallpaper of mobile phone
US20130038627A1 (en) * 2011-08-08 2013-02-14 Research In Motion Limited Method and apparatus for displaying an image
CN105204624A (en) * 2015-08-28 2015-12-30 努比亚技术有限公司 Fuzzy processing method and device for shooting
CN105975239A (en) * 2016-04-29 2016-09-28 广东远峰电子科技股份有限公司 Method and device for generating dynamic background of display screen of vehicle-mounted electronic equipment
CN107832103A (en) * 2017-11-02 2018-03-23 四川长虹电器股份有限公司 The method of the processing of UI controls blurred background and Dynamic Announce based on android system
CN105453010B (en) * 2014-07-30 2019-06-11 华为技术有限公司 UI control background setting method, device and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387239A (en) * 2010-08-27 2012-03-21 希姆通信息技术(上海)有限公司 Method for implementing dynamic wallpaper of mobile phone
US20130038627A1 (en) * 2011-08-08 2013-02-14 Research In Motion Limited Method and apparatus for displaying an image
CN105453010B (en) * 2014-07-30 2019-06-11 华为技术有限公司 UI control background setting method, device and terminal
CN105204624A (en) * 2015-08-28 2015-12-30 努比亚技术有限公司 Fuzzy processing method and device for shooting
CN105975239A (en) * 2016-04-29 2016-09-28 广东远峰电子科技股份有限公司 Method and device for generating dynamic background of display screen of vehicle-mounted electronic equipment
CN107832103A (en) * 2017-11-02 2018-03-23 四川长虹电器股份有限公司 The method of the processing of UI controls blurred background and Dynamic Announce based on android system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631698A (en) * 2020-12-18 2021-04-09 平安普惠企业管理有限公司 Data display method and device, computer equipment and storage medium
CN116051387A (en) * 2022-06-30 2023-05-02 荣耀终端有限公司 Dynamic image blurring method, terminal device, and computer-readable storage medium
CN116719466A (en) * 2022-09-14 2023-09-08 荣耀终端有限公司 Method for displaying multi-task interface, electronic equipment and storage medium
CN116719466B (en) * 2022-09-14 2024-04-12 荣耀终端有限公司 Method for displaying multi-task interface, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111158815B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US11243653B2 (en) Method for display control and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN109874038B (en) Terminal display method and terminal
CN110072012B (en) Reminding method for screen state switching and mobile terminal
CN109213416B (en) Display information processing method and mobile terminal
CN109814786B (en) Image storage method and terminal equipment
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN109558046B (en) Information display method and terminal equipment
CN109412932B (en) Screen capturing method and terminal
CN110855921B (en) Video recording control method and electronic equipment
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
US20220318076A1 (en) Application sharing method, first electronic device, and computer-readable storage medium
CN110928407B (en) Information display method and device
US20220083207A1 (en) Editing method and mobile terminal
CN109672845B (en) Video call method and device and mobile terminal
CN109126127B (en) Game control method, dual-screen mobile terminal and computer-readable storage medium
CN110825474A (en) Interface display method and device and electronic equipment
CN108924035B (en) File sharing method and terminal
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN110083205B (en) Page switching method, wearable device and computer-readable storage medium
CN109947323B (en) Terminal display method and terminal
CN112527405A (en) Application starting method, terminal device and storage medium
CN109889652B (en) Eye protection mode display control method, terminal and computer readable storage medium
CN109922256B (en) Shooting method and terminal equipment
US20230051076A1 (en) Method for cross-application processing for multimedia content, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant