Dynamic wallpaper display method and electronic equipment
By detecting the opening and closing angle of electronic devices, adjusting the perspective of the dynamic wallpaper and combining other elements, the problem of lack of interaction and ritual in the existing technology of dynamic wallpaper experience is solved, and rich user interaction experience and high-quality dynamic wallpaper are achieved. Play.
Patent Information
- Application Number
- CN202410971386.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-12-06
AI Technical Summary
The prior art is difficult to provide a rich dynamic wallpaper experience during the interaction between users and devices, and lacks interaction and a sense of ritual.
By detecting the opening and closing angle between the main body of the electronic device and the cover, the display screen is activated and the perspective of the dynamic wallpaper is adjusted according to the angle, combining elements such as time, date, weather, account avatar and password input box to provide a diverse interactive experience .
It realizes an interactive experience between users and devices, enhances the ritual sense of the cover opening, unlocking and locking screen process, and ensures the smoothness and high-quality playback of dynamic wallpaper through efficient video encoding and animation curve control.
Smart Images

Figure CN119094652A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a display method and electronic device for dynamic wallpaper. Background Art
[0002] Wallpaper is the background image displayed in electronic devices. It can reflect the user's personality and make the electronic device look more beautiful. Wallpapers can be divided into static wallpapers and dynamic wallpapers. Dynamic wallpapers include dynamic and changeable pictures, which can make the display of electronic devices more interesting. The display method of dynamic wallpapers is closely related to the user experience. Summary of the invention
[0003] The present application provides a method for displaying dynamic wallpapers and an electronic device, which can display dynamic wallpapers based on the interaction between a user and the device, bring rich interactive effects, and provide users with an interesting wallpaper experience.
[0004] In a first aspect, a method for displaying a dynamic wallpaper is provided, which is applied to an electronic device including a main body and a cover body, and the method may include: detecting that an opening and closing angle between the main body and the cover body increases and reaches a first value; starting a display screen of the electronic device; detecting that the opening and closing angle continues to increase; after starting the display screen, playing a first dynamic wallpaper with a first motion effect on the display screen, the first motion effect including an adjustment of a viewing angle, the first dynamic wallpaper being a video, wherein a larger the opening and closing angle, a larger the adjustment of the viewing angle in the first motion effect.
[0005] In the implementation of the method of the first aspect, each frame of the dynamic wallpaper displayed by the electronic device is associated with the opening and closing angle. The larger the opening and closing angle, the greater the change in viewing angle. In this way, the electronic device can play the dynamic wallpaper according to the opening and closing angle, so that the interaction between the user and the electronic device (i.e., the cover opening operation) is reflected in the playback of the dynamic wallpaper, which can bring a rich wallpaper experience to the user and bring a ritualistic and interactive cover opening experience.
[0006] In combination with the first aspect, in some embodiments, before detecting that the opening and closing angle between the main body and the cover increases and reaches a first value, the angle between the main body and the cover may be 0, or the angle may be greater than 0. That is, the electronic device may start to open the cover from a closed state, or may start to open the cover from a smaller angle.
[0007] In combination with the first aspect, in some embodiments, before detecting that the opening and closing angle between the main body and the cover increases and reaches a first value, the electronic device is in a shutdown state or a sleep state.
[0008] In conjunction with the first aspect, in some implementations, during the process of playing the first dynamic wallpaper with the first motion effect on the display screen, one or more of the following items are also displayed on the display screen: time, date, weather. In this way, the display screen can display more elements after startup, providing the user with more information, thereby improving the user experience.
[0009] In combination with the first aspect, in some embodiments, the method may further include: displaying the avatar and password input box of the first account on the display screen, and continuing to play the first dynamic wallpaper with a second dynamic effect, wherein the second dynamic effect includes an adjustment of the viewing angle. In this way, after entering the lock screen stage, the electronic device can also display a dynamic wallpaper with a changing viewing angle, providing the user with a rich lock screen interface.
[0010] In combination with the previous embodiment, the electronic device can display the avatar and password input box of the first account on the display screen after a period of time of playing the first dynamic wallpaper with the first dynamic effect. The period of time can be related to the opening time, or it can also be related to the opening and closing angle. For example, the electronic device can start to display the avatar and password input box of the first account after the cover is opened for a preset time, or after the opening and closing angle reaches a preset value.
[0011] In combination with the previous embodiment, in some embodiments, the method may further include: receiving the password of the first account input in the password input box of the first account; continuing to play the first dynamic wallpaper with the third animation effect, and the third animation effect includes the adjustment of the viewing angle. In this way, after the electronic device is unlocked, it can also display the dynamic wallpaper with the changing viewing angle, providing the user with a rich post-unlocking interface.
[0012] In combination with the previous embodiment, in some embodiments, the speed of playing the first dynamic wallpaper with the third motion effect is gradually reduced, so that the user can feel that the wallpaper is playing slowly after unlocking.
[0013] In combination with the above embodiment, in some embodiments, the electronic device uses a linear animation curve to play the first dynamic wallpaper with a first motion effect, and uses a deceleration animation curve to play the first dynamic wallpaper with a third motion effect. In this way, the slow playback effect in the above embodiment can be achieved.
[0014] In combination with the first aspect, in some implementations, after playing the first dynamic wallpaper on the display screen for a period of time, the electronic device may stop playing the first dynamic wallpaper, and when the first dynamic wallpaper is stopped, the first image frame of the first dynamic wallpaper is displayed on the display screen; a first user operation is received; and in response to the first user operation, the first dynamic wallpaper is continued to be played starting from the first image frame. In this way, after the electronic device stops playing the dynamic wallpaper, the user can trigger the electronic device to continue playing the dynamic wallpaper.
[0015] In the above embodiment, the electronic device may stop playing the dynamic wallpaper during the process of playing the first dynamic wallpaper with the first motion effect, or the electronic device may stop playing the dynamic wallpaper during the process of playing the first dynamic wallpaper with the second motion effect, or the electronic device may stop playing the dynamic wallpaper during the process of playing the first dynamic wallpaper with the third motion effect. That is, the electronic device may stop playing the dynamic wallpaper at any stage of the wake-up stage, the lock screen stage, and the desktop stage.
[0016] In the previous implementation, the period of time may be related to the time of opening the cover, or may be related to the time of entering the desktop.
[0017] In combination with the previous embodiment, in some embodiments, after the first dynamic wallpaper is continuously played starting from the first image frame, the method may further include: receiving a second user operation; in response to the second user operation, stopping the first dynamic wallpaper, and displaying the second image frame of the first dynamic wallpaper on the display screen when the first dynamic wallpaper is stopped. In this way, after the electronic device continues to play the dynamic wallpaper, the user can trigger the electronic device to stop playing the dynamic wallpaper. If the above operation occurs in the desktop stage, the user can select a frame in the dynamic wallpaper as the desktop background according to his or her own preferences.
[0018] In combination with the first aspect, in some embodiments, the method may further include: detecting that the opening and closing angle is gradually decreasing; and playing the first dynamic wallpaper in reverse starting from the image frame displayed on the display screen. In other words, the first dynamic wallpaper can be played in reverse during the closing process of the electronic device.
[0019] In combination with the previous embodiment, in some embodiments, playing the first dynamic wallpaper in reverse specifically includes: playing the first dynamic wallpaper in reverse with a fourth motion effect, the fourth motion effect including adjustment of viewing angle, wherein the smaller the opening and closing angle, the greater the adjustment of viewing angle in the fourth motion effect.
[0020] In combination with the first aspect, in some embodiments, the parameters of the first dynamic wallpaper meet one or more of the following: the encoding method is H.265 encoding method, the frame rate is 120, the resolution is 2K, the duration is less than the second value, and each frame included is an I frame. Among them, the H.265 encoding method has higher compression efficiency and better video quality, the frame rate of 120 can ensure the smoothness of slow playback after the electronic device enters the desktop stage, and the resolution of 2K can meet the user's demand for video quality. The above parameters can control the size of the dynamic wallpaper of the present application within 60MB, so that high-quality dynamic wallpaper playback can be achieved through a smaller memory space.
[0021] In combination with the first aspect, in some embodiments, the method may further include: detecting that the electronic device switches from a first posture to a second posture; wherein the first dynamic wallpaper played on the display screen is specifically a screen captured from a first position in the first dynamic wallpaper, and in the process of the electronic device switching from the first posture to the second posture, the first position in the first dynamic wallpaper is determined by the real-time posture of the electronic device; when the electronic device switches to the second posture, the first position in the first dynamic wallpaper is determined by the second posture. This is equivalent to changing the posture of the device, and the framing screen of the dynamic wallpaper displayed by the electronic device changes accordingly.
[0022] In combination with the previous embodiment, in some embodiments, the shape of the image frame in the first dynamic wallpaper is a square, and the side length of the square is greater than or equal to the diagonal length of the display screen. This ensures that when the electronic device displays the dynamic wallpaper according to the previous embodiment, the entire area of the viewfinder can capture the image without black edges or blank spaces on the display screen.
[0023] In combination with the first aspect, in some embodiments, the method may further include: detecting that the electronic device switches from a first posture to a second posture; wherein the first dynamic wallpaper played on the display screen is specifically a screen captured from a first position in the first dynamic wallpaper, and in the process of the electronic device switching from the first posture to the second posture, the first position in the first dynamic wallpaper is determined by the first posture; when the electronic device switches to the second posture, the first position in the first dynamic wallpaper is determined by the second posture. That is, when the device posture changes, the electronic device changes the dynamic wallpaper's framing screen after the posture is fixed, and in the process of posture change, the dynamic wallpaper's framing screen taken when the posture was fixed last time is still used.
[0024] In combination with the previous embodiment, in some embodiments, the shape of the image frame in the first dynamic wallpaper is a square, and the side length of the square is greater than or equal to the length and width of the display screen. This ensures that when the electronic device displays the dynamic wallpaper according to the previous embodiment, the entire area of the viewfinder can capture the image without black edges or blank spaces on the display screen.
[0025] In combination with the first aspect, in some implementations, a display screen is embedded in the cover of the electronic device, or a display screen is embedded in both the cover and the body of the electronic device.
[0026] In combination with the first aspect, in some embodiments, the electronic device is a laptop computer, or the electronic device is a foldable mobile phone.
[0027] In combination with the first aspect or any of the above-mentioned embodiments, the adjustment of the viewing angle includes one or more of the following: zooming in, zooming out, and rotating the viewing angle, and the viewing angle rotation includes rotation in any direction, such as rotating from left to right, from top to bottom, etc.
[0028] In a second aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement a method as in the first aspect or any one of the embodiments of the first aspect.
[0029] According to a third aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to the first aspect or any one of the embodiments of the first aspect is implemented.
[0030] According to a fourth aspect, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the method according to the first aspect or any one of the embodiments of the first aspect is implemented.
[0031] In a fifth aspect, a chip system is provided, which includes a processing circuit and an interface circuit, the interface circuit is used to receive computer instructions and transmit them to the processing circuit, and the processing circuit is used to execute the computer instructions to implement a method as in the first aspect or any one of the embodiments of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A user interface displayed by a laptop computer during the wake-up phase provided by an embodiment of the present application;
[0033] Figure 2 A user interface displayed on a laptop computer in the lock screen stage provided by an embodiment of the present application;
[0034] Figure 3 A user interface displayed on a laptop computer at a desktop stage provided by an embodiment of the present application;
[0035] Figure 4 The animation curve change process of the laptop computer provided in the embodiment of the present application in the lock screen stage and the desktop stage;
[0036] Figure 5 A user interface for interacting with a user after displaying a static image in a desktop stage in a notebook computer provided in an embodiment of the present application;
[0037] Figure 6 , Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present application switching from a horizontal screen state to a vertical screen state;
[0038] Figure 8 An internal module interaction diagram when an electronic device according to an embodiment of the present application executes a method for displaying a dynamic wallpaper;
[0039] Fig. 9 A hardware structure block diagram of a vehicle-shaped electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings.
[0041] Wallpaper is the background image displayed by an electronic device. Wallpapers can be divided into two categories: dynamic wallpapers and static wallpapers. The embodiments of this application mainly focus on the display of dynamic wallpapers. Dynamic wallpapers include multiple frames of images, which can present a dynamic display effect. Dynamic wallpapers can be a video, and an electronic device can display dynamic wallpapers by playing the video. The material of dynamic wallpapers can be scenery, games, pets, geometric figures, etc. Dynamic wallpapers can be videos obtained by real-life shooting, or they can be videos produced by electronic devices through algorithms.
[0042] According to the usage scenario, the wallpaper can be used as a wake-up (welcome / wakeup) background, lock screen (lockscreen / login) background, desktop (desktop) background, screen saver (screensaver) background, etc. displayed on the display screen of the electronic device. Among them, the wake-up background refers to the background picture displayed by the electronic device before entering the lock screen interface after receiving the user's wake-up command in the off state or sleep state. The lock screen background refers to the background picture displayed by the electronic device when the lock screen interface is displayed. The desktop background refers to the background picture displayed by the electronic device when the desktop is displayed. The screen saver background refers to the background picture displayed by the electronic device when it is in the screen saver interface. The names of the above-mentioned backgrounds are only examples, and their essence has been clearly explained in the introduction of this application. Their names do not constitute a limitation on this application, and they may also be called other names. For example, the wake-up background can also be called the startup screen of the basic input output system (BIOS), and the desktop background can also be called wallpaper, etc.
[0043] The embodiments of the present application provide a method for displaying dynamic wallpapers. An electronic device can display dynamic wallpapers based on the interaction between a user and the device, thereby bringing about rich interactive effects and providing the user with an interesting wallpaper experience.
[0044] The method provided in the embodiments of the present application can be applied to laptop computers, tablet computers, mobile phones (such as foldable mobile phones, tablet phones, etc.), desktop computers, desktop computers with touch-sensitive surfaces or touch panels, laptop computers, handheld computers, smart screen augmented reality (AR) devices, virtual reality (VR) devices, car computers, game consoles and other devices.
[0045] The following uses a laptop computer and a tablet computer as examples to introduce the user interface involved in the process of an electronic device executing the method for displaying the dynamic wallpaper.
[0046] Figure 1-Figure 3 , Figure 5 A set of user interfaces for displaying dynamic wallpaper on a laptop computer is exemplarily shown.
[0047] Figure 1 The user interface displayed by the notebook computer during the wake-up phase is exemplarily shown. The user interface is a user interface including a wake-up background.
[0048] The laptop consists of a cover and a main body. The cover has a display screen, camera and other devices embedded inside, and the main body includes a motherboard, battery, keyboard and other devices. The cover and the main body are connected by a hinge, which can be opened and stabilized at a desired angle.
[0049] The wake-up phase of the laptop computer can be realized after the laptop computer is opened. Opening the cover means that the opening and closing angle between the cover body and the main body gradually increases from 0 degrees or a state close to 0 degrees or a smaller angle, for example, gradually increases to 60 degrees, 90 degrees, 120 degrees, etc. Figure 1 Several user interfaces are shown demonstrating the decapping process.
[0050] Initially, the laptop computer may be in a dormant state or in a shutdown state, with the display screen not working and in an off state. At this time, the laptop computer may be in a closed state, that is, the angle between the cover and the main body is 0 degrees or close to 0 degrees, or the laptop computer may have a certain opening and closing angle.
[0051] like Figure 1 As shown, the user can input an opening operation to the laptop computer. In response to the opening operation, the opening and closing angle between the cover and the main body of the laptop computer gradually increases and finally stays at Figure 1 In this process, the acceleration sensor, gyroscope, magnetic sensor, opening and closing angle sensor, etc. in the laptop computer can collect data, and these data can be used by the laptop computer to calculate the current angle between the cover and the main body. For example, the acceleration sensor, gyroscope, magnetic sensor, etc. can be located on the cover body, and the opening and closing angle sensor can be located near the hinge to detect the opening and closing angle.
[0052] like Figure 1As shown in the first figure, when the opening and closing angle of the laptop computer gradually increases and reaches a certain value, the laptop computer can end the sleep state or shutdown state and start the display screen. Since the laptop computer may be initially in a closed state or have a certain opening and closing angle, the laptop computer may end the sleep state or shutdown state and start the display screen after the opening and closing angle gradually increases from 0 or a smaller angle to a first value, or after it gradually increases from a larger angle. In some embodiments, the laptop computer can start the display screen after detecting that the opening and closing angle gradually increases and reaches a first value. The first value can be preset in the laptop computer, for example, it can be 10 degrees, 20 degrees, etc., and the embodiments of the present application do not limit this. In other embodiments, the laptop computer can use an ambient light sensor to detect light. When the detected light gradually increases and reaches a certain intensity, it can be considered that the opening and closing angle of the laptop computer increases and reaches a certain value, and the display screen can be started.
[0053] After the laptop starts the display screen, it starts playing the dynamic wallpaper. The electronic device can store multiple dynamic wallpaper resources, and the dynamic wallpaper played is the dynamic wallpaper selected by the user from the multiple dynamic wallpapers, or the dynamic wallpaper selected by default for the electronic device. The dynamic wallpaper played by the laptop can also be called the first dynamic wallpaper. The dynamic effect of the dynamic wallpaper played by the laptop during the wake-up phase may include the adjustment of the viewing angle. The adjustment of the viewing angle includes but is not limited to: changing the viewing angle distance (such as zooming in or out) and rotating the viewing angle. Among them, the zooming in perspective provides the effect of moving toward the material in the dynamic wallpaper to make it look larger or more detailed, that is, the zooming in effect; the zooming out perspective provides the effect of moving away from the material in the dynamic wallpaper to make it look smaller or wider, that is, the zooming out effect; the rotating perspective provides rotation around the material in the dynamic wallpaper to present its effects at different angles, such as rotating from left to right, rotating from top to bottom, rotating from right to left, etc.
[0054] For example, Figure 1 As shown, the material of the dynamic wallpaper 101 is a cube, and the dynamic effect of the dynamic wallpaper displayed by the laptop in the wake-up stage is: gradually zooming out the viewing angle, and gradually rotating the viewing angle from the top of the cube (A side) to the front (B side). In this way, the cube displayed on the display screen gradually becomes smaller, and gradually switches from displaying the top (A side) to displaying the front (B side).
[0055] In some embodiments, the dynamic wallpaper played by the laptop during the wake-up phase can also be associated with the opening and closing angle. The laptop can detect the opening and closing angle in real time during the open phase, and play the dynamic wallpaper during the wake-up phase according to the opening and closing angle. When the opening and closing angle is larger, the viewing angle adjustment of the dynamic wallpaper is also larger. For example, the larger the opening and closing angle, the farther the viewing angle is. For another example, the larger the opening and closing angle, the larger the viewing angle rotation angle. For example, Figure 1 As shown, each frame of the dynamic wallpaper displayed by the laptop is associated with the opening and closing angle. The larger the opening and closing angle, the farther the viewing angle is and the larger the rotation angle of the viewing angle is. In this way, the laptop can play the dynamic wallpaper according to the opening and closing angle, so that the interaction between the user and the laptop (i.e., the cover opening operation) is reflected in the playback of the dynamic wallpaper, which can bring users a rich wallpaper experience and a ceremonial and interactive cover opening experience.
[0056] As mentioned above, dynamic wallpaper is a video. In the implementation of the previous paragraph, in order to play the dynamic wallpaper according to the opening and closing angle, the electronic device can detect the opening and closing angle in real time. In this process, the faster the opening and closing angle changes (that is, the faster the lid is opened), the faster the laptop plays the dynamic wallpaper; the slower the opening and closing angle changes (that is, the slower the lid is opened), the slower the laptop plays the dynamic wallpaper. In this way, the playback of the dynamic wallpaper can be associated with the opening and closing angle.
[0057] In other implementations, the laptop computer can also directly play the dynamic wallpaper after starting the display screen, without playing the dynamic wallpaper according to the opening and closing angle. In this way, the laptop computer does not need to detect the opening and closing angle in real time during the wake-up phase, which can reduce power consumption.
[0058] During the wake-up phase, the brightness of the dynamic wallpaper displayed by the laptop computer can be gradually increased. During the wake-up phase, the transparency of the dynamic wallpaper displayed by the laptop computer can be gradually reduced to present an effect of gradually displaying the dynamic wallpaper.
[0059] During the wake-up phase, in addition to the dynamic wallpaper as the wake-up background, the laptop can also display some other elements. Figure 1 The laptop computer can also display time 102, date 103, weather 104, account avatar 105, password input box 106, etc. on the dynamic wallpaper. The above elements can be displayed at fixed positions in the display screen, for example, time 102, date 103 and weather 104 are displayed at the upper middle position of the display screen, and account avatar 105 and password input box 106 are displayed at the lower middle position of the display screen. In some embodiments, during the wake-up phase, the brightness of the above elements can be gradually increased, and / or the transparency of the above elements can be gradually reduced to present a gradually appearing effect.
[0060] After the wake-up phase, the laptop enters the lock screen phase.
[0061] In the lock screen stage, the laptop displays an account avatar 105 and a password input box 106. There is no strict dividing line between the wake-up stage and the lock screen stage. As long as the laptop displays the account avatar 105 and the password input box 106, it can be considered that the lock screen stage has been entered. The account corresponding to the account avatar 105 displayed by the laptop in the lock screen stage can be called the first account.
[0062] Figure 2 The user interface displayed by the notebook computer in the lock screen stage is exemplified. The user interface is a lock screen interface including a lock screen background.
[0063] During the lock screen phase, the laptop continues to play the dynamic wallpaper after the wake-up phase screen.
[0064] In some embodiments, the dynamic wallpaper in the lock screen stage may continue the dynamic wallpaper in the wake-up stage. For example, if the dynamic wallpaper in the wake-up stage is to gradually zoom out and gradually rotate the view from the top of the cube to the front, the dynamic wallpaper in the lock screen stage may continue to gradually zoom out and gradually rotate the view from the top of the cube to the front.
[0065] In some other embodiments, the effect of the dynamic wallpaper in the lock screen stage may be different from the dynamic effect in the wake-up stage. Figure 1 The animation effect of the awakening stage shown is to gradually zoom out the perspective and gradually rotate the perspective from directly above the cube to directly in front of it. Figure 2 The animation effect of the awakening stage shown is to gradually rotate the viewing angle from the front of the cube (side B) to the right side (side C).
[0066] In the lock screen stage, while the laptop displays the dynamic wallpaper, it can also continue to display the account avatar 105 and the password input box 106. The positions of the account avatar 105 and the password input box 106 in the display screen remain unchanged.
[0067] The user can enter the password corresponding to the account indicated by the account avatar 105 in the password input box 106 in the lock screen interface. After receiving the password, the laptop can respond to the password, or respond to the confirmation operation entered by the user after entering the password, execute the unlocking action and enter the desktop.
[0068] Figure 3 The user interface displayed by the notebook computer in the desktop stage is exemplified, and the user interface is the desktop including the desktop background.
[0069] During the desktop phase, the laptop continues to play the dynamic wallpaper after the screen during the lock screen phase.
[0070] In some implementations, the dynamic wallpaper in the desktop stage can continue the dynamic wallpaper in the lock screen stage. Figure 2 The animation effect of the lock screen stage shown is to gradually rotate the view from the front of the cube to the right side. Figure 3 The dynamic effect of the dynamic wallpaper in the desktop stage shown is to continue to gradually rotate the viewing angle from the right side (C side) of the cube to the rear (D side).
[0071] In other embodiments, the effect of the dynamic wallpaper in the desktop stage may be different from the dynamic effect in the lock screen stage. For example, if the dynamic effect in the lock screen stage is to gradually rotate the view from the front of the cube to the right side, the dynamic effect in the desktop stage may be to gradually rotate the view from the right front of the cube to the top.
[0072] In some embodiments, in the desktop stage, compared with the lock screen stage or the wake-up stage, the laptop will continue to play the dynamic wallpaper, and the playback speed will gradually slow down until it stops, presenting the user with an effect of slow playback and finally stopping. Figure 1-Figure 3 , the time interval between any two adjacent frames in the above figures is the same, and by comparison, it can be seen that Figure 3 The perspective of the dynamic wallpaper changes more slowly, that is, the playback speed is slower.
[0073] Referring to the previous introduction, the playback speed of the dynamic wallpaper in the wake-up stage can be adjusted with the opening and closing angle, or the playback speed of the dynamic wallpaper in the wake-up stage can be determined independently by the laptop computer without adjusting the opening and closing angle. For the latter case, the laptop computer can play the dynamic wallpaper in the wake-up stage at a uniform speed, the dynamic wallpaper in the lock screen stage at a uniform speed, and the dynamic wallpaper in the desktop stage at a slow speed. Among them, the playback speed in the wake-up stage and the lock screen stage is higher than the playback speed in the desktop stage. The playback speed in the desktop stage may not be uniform, but gradually decreases to present the effect of the dynamic wallpaper gradually changing to a static state. It is equivalent to that in the desktop stage, the electronic device makes adjustments in the time domain to lengthen the display time between two adjacent frames, thereby achieving the effect of slow playback, for example, the frame rate can be adjusted from 120 frames per second to 60 frames per second.
[0074] For the playback effect of the dynamic wallpaper introduced in the previous paragraph, the laptop can achieve it by controlling the animation curve of the dynamic wallpaper. The animation curve is a two-dimensional function curve with the time axis as the X-axis and other types of values as the Y-axis. Among them, time is measured in frames, and other types of values can be positions, rotation angles, scaling, etc., depending on the actual desired control properties, which are not limited in this application. The slope between two adjacent frames on the animation curve represents the speed change of the two frames. A positive slope indicates accelerated motion, a negative slope indicates decelerated motion, and a slope of 0 indicates uniform motion.
[0075] In the embodiment of the present application, the laptop computer can use a linear animation curve to control the display of the dynamic wallpaper in the wake-up stage and / or the lock screen stage to achieve a uniform display of the dynamic wallpaper; and can also use a deceleration animation curve to control the display of the dynamic wallpaper in the desktop stage to achieve a decelerated display of the dynamic wallpaper. The slope of the explicit animation curve is 0, and the slope of the deceleration animation curve is negative.
[0076] Figure 4 The changing process of the animation curve of a laptop computer in the lock screen stage and the desktop stage is exemplified.
[0077] like Figure 4 As shown, the laptop uses a linear animation curve in the lock screen stage and a deceleration animation curve in the desktop stage. In the above process, three threads are mainly involved: a main thread for processing tasks related to the current frame, a decoding input thread for decapsulating and decoding input, and a decoding output thread for decoding output and display. First, the main thread executes a frame callback, uses an animation curve to generate the frame number of the video sequence, and puts it into the video frame queue; then, the decoding input thread obtains the current video sequence frame number from the video frame queue, and locates the corresponding frame from the dynamic wallpaper video according to the frame number (for example, the corresponding frame can be located through the seekto function), decapsulates the frame and sends it to the decoding output thread; the decoding output thread outputs the decoded video frame to the buffer for display.
[0078] like Figure 4 As shown in the figure, the frame rate of the laptop can be 60fps, that is, the time between each two frames is about 16.67ms. In the lock screen stage, the laptop skips frames for decoding, and in the desktop stage, the laptop decodes frames continuously and can decode the same frame twice in a row, so that the slow playback effect of the desktop stage can be achieved.
[0079] In the desktop stage, in addition to the dynamic wallpaper as the desktop background, the laptop can also display some other desktop elements. For example, Figure 3, the desktop elements may include, but are not limited to: a tray 301 containing multiple application icons at the bottom of the desktop, a schedule card 302, a weather card 303, a status bar 304, etc. Each desktop element can be slowly brought into the display from the edge of the display screen closest to it, presenting a gradual entry effect. For example, the tray 301 can be slowly moved upward from the bottom of the display screen, the schedule card 302 and the weather card 303 can be slowly moved to the right from the left side of the display screen, and the status bar 304 can be slowly moved downward from the top of the display screen until the above desktop elements reach their preset positions in the display screen. After each desktop element reaches the preset position, it can be continuously displayed on the desktop. Of course, in other embodiments, the laptop can also directly display the above desktop elements after entering the desktop stage without presenting a gradual entry effect. In some embodiments, the brightness of the above desktop elements can be gradually increased during the display process, and / or the transparency of the above desktop elements can be gradually reduced to present a gradually appearing effect.
[0080] As mentioned above, after the laptop enters the desktop stage, it will continue to play the dynamic wallpaper, and the playback speed will gradually slow down until it stops. Finally, a frame of image at the still state can be displayed persistently as the desktop background. The laptop can achieve stillness in any of the following ways: 1. The laptop stops playing the dynamic wallpaper after a preset time after being unlocked. The preset time can be set in advance and is not limited here. 2. The laptop can be in the desktop stage after the preset time of starting the display screen, and stop playing the dynamic wallpaper in response to the preset time. The preset time can be set in advance and is not limited here. The preset time and the preset time in the first method can be different or the same.
[0081] In the desktop stage, the static image displayed when the laptop stops playing the dynamic wallpaper is a frame of the dynamic wallpaper. The specific frame depends on how long the laptop keeps playing in each stage. The user may not want to display the static image as the desktop background permanently. For example, the user may not be satisfied with the composition, perspective, color, etc. of the static image. For this, the embodiment of the present application also provides an interactive method for users to adjust the static image used as the desktop background. For details, please refer to the subsequent Figure 5 Related introduction of .
[0082] In an embodiment of the present application, the motion effect of the dynamic wallpaper played by the laptop in the wake-up stage can be called the first motion effect, the motion effect of the dynamic wallpaper played in the lock screen stage can be called the second motion effect, and the motion effect of the dynamic wallpaper played in the desktop stage can be called the third motion effect.
[0083] Figure 5 The user interface of the notebook computer that interacts with the user after displaying a static image in the desktop stage is exemplified.
[0084] like Figure 5 As shown in the first figure, after the laptop displays a static image in the desktop stage, it can receive a user operation, such as a double-click operation on the mouse or a double-click operation on the display screen when the focus of the display screen is located in an empty area without controls. In response to the user operation, the laptop can start from the static image and continue to play the dynamic wallpaper. The animation effect of continuing to play the dynamic wallpaper can continue the animation effect of the desktop stage described above. For example, Figure 5 As shown, the dynamic wallpaper's dynamic effect is to gradually rotate the viewing angle from the rear of the cube (D side) to the left side (E side).
[0085] When the laptop computer continues to play the dynamic wallpaper, if the image displayed is an image that the user is satisfied with, the user can input a user operation to the laptop computer, such as a double-click operation on the mouse or a double-click operation on the display screen when the focus of the display screen is located in an empty area without controls. The laptop computer can respond to the user operation, stop playing the dynamic wallpaper, and display the currently displayed frame of the image as the desktop background permanently. In this way, the user can select any frame of the subsequent image frames as the desktop background according to his or her own ideas.
[0086] In some embodiments, if the laptop computer continues to play the dynamic wallpaper and does not receive a user operation of selecting a satisfactory image until the last frame of the dynamic wallpaper, the laptop computer may replay the dynamic wallpaper from the beginning. During the process of replaying the dynamic wallpaper, the user may select a satisfactory image as the desktop background, which makes it convenient for the user to select any frame of the dynamic wallpaper as the desktop background according to his or her own ideas.
[0087] In an embodiment of the present application, the laptop computer can preset the duration from the start of the dynamic wallpaper to the end of the dynamic wallpaper. Since the duration of the laptop computer in the wake-up stage, the lock screen stage, and the desktop stage is related to the user's operation, such as the user slowly opening the cover or the user staying on the lock screen interface for a long time, the laptop computer may stop playing the dynamic wallpaper at any stage in the wake-up stage, the lock screen stage, and the desktop stage. If the laptop computer stops playing the dynamic wallpaper at the desktop stage, the dynamic wallpaper displayed in the above stages can refer to Figure 1-Figure 3 , and the user can also interact with the laptop to trigger the laptop to continue playing. If the laptop stops playing the dynamic wallpaper during the wake-up phase or the lock screen phase, the user can also interact with the laptop to trigger the laptop to continue playing. For specific interaction methods, please refer to the introduction in the previous paragraphs.
[0088] In some embodiments, when the laptop computer starts the display screen and plays the dynamic wallpaper, it can receive a user operation of the user selecting a satisfactory image, such as a double-click operation on the mouse or a double-click operation on the display screen when the focus of the display screen is located in an empty area that does not contain a control. In response to the user operation, the laptop computer stops playing the dynamic wallpaper and displays the currently displayed frame of the image as the desktop background for a long time. In this way, the user can select any frame of the dynamic wallpaper as the desktop background according to his own ideas.
[0089] In the aforementioned implementation, after the laptop stops playing the dynamic wallpaper, the user operation for triggering the laptop to continue playing the dynamic wallpaper can be referred to as the first user operation, and the image frame displayed when the laptop stops playing the dynamic wallpaper can be referred to as the first image frame. After the laptop continues playing the dynamic wallpaper, the user operation for triggering the laptop to stop playing the dynamic wallpaper can be referred to as the second user operation, and the image frame displayed when the laptop stops playing the dynamic wallpaper can be referred to as the second image frame.
[0090] Previous Figure 1-Figure 3 , Figure 5 Several frames of images captured during the playback of dynamic wallpapers on a laptop are shown. During the actual playback process, the laptop plays a continuous video of the dynamic wallpaper. Playing continuous dynamic wallpapers in the wake-up stage, lock screen stage, and desktop stage can present a one-shot transition effect. The dynamic effect of changing the perspective in the dynamic wallpaper can reflect the sense of spatial depth and give the user an immersive effect. In addition, the laptop can interact with the user during the playback of dynamic wallpapers, allowing the user to select a static image that meets their expectations as the desktop background, giving the user a rich interactive experience.
[0091] Not limited to Figure 1-Figure 3 , Figure 5 The dynamic wallpaper shown as the wake-up background, lock screen background, and desktop background can also be used as a screen saver background. A screen saver is a program for protecting a display screen. A laptop computer can automatically run the screen saver program and enter the screen saver interface when no user operation is received for a long time. In an embodiment of the present application, a laptop computer can play dynamic wallpapers in the screen saver interface, and the dynamic effects of the dynamic wallpapers can refer to the dynamic effects introduced in the previous wake-up stage, lock screen stage, desktop stage, etc. In this way, the screen saver interface also becomes vivid and interesting, which can give users a better user experience. In the screen saver interface, the laptop computer can play the dynamic wallpaper in a loop from the beginning after playing the dynamic wallpaper, or it can stay at the last frame or a preset specified frame after playing the dynamic wallpaper. When displaying the screen saver interface, if the laptop computer receives a user operation (such as clicking the display screen or acting on the mouse), the laptop computer will enter the lock screen stage or the desktop stage, and can play the dynamic wallpaper on the lock screen interface or the desktop interface.
[0092] exist Figure 1 In the process of opening the cover shown, the laptop computer plays the dynamic wallpaper forward from the first frame of the dynamic video. The laptop computer has not only an opening process, but also a closing process.
[0093] In one case, the user opens the cover of the laptop computer to a certain angle and then closes the cover of the laptop computer. In this case, the laptop computer can play the dynamic wallpaper in reverse from the image frame displayed at the angle until the laptop computer detects that the cover and the main body are closed. For example, referring to Figure 1 , assuming that the laptop opening process is as follows Figure 1 As shown, the user opens the laptop to Figure 1 The laptop computer plays the dynamic wallpaper in reverse, for example, the dynamic wallpaper can be played in reverse order. Figure 1 User interface.
[0094] In other cases, after the user has opened the laptop and used it for a period of time, the user may close the lid of the laptop. In this case, the laptop can play the dynamic wallpaper in reverse, for example, starting from the last frame or the middle frame of the dynamic wallpaper. If the laptop happens to display a desktop background or a lock screen background when the lid is closed, the laptop can start from the image frame of the desktop background or the lock screen background and play the dynamic wallpaper in reverse.
[0095] When the laptop is closed, the dynamic wallpaper's motion effect can be associated with the opening and closing angle when the laptop is played in reverse. For details, please refer to the association between the dynamic effect and the opening and closing angle in the previous article. Playing the dynamic wallpaper in reverse when the laptop is closed can bring users an interesting closing experience and enhance the user experience.
[0096] The animation effect when the laptop plays the dynamic wallpaper in reverse can be called the fourth animation effect.
[0097] In some embodiments, the laptop computer can turn off the display screen after detecting that the opening and closing angle is less than a preset value. The preset value can be preset in the laptop computer, for example, 10 degrees, 5 degrees, etc., and the embodiments of the present application do not limit this. In other embodiments, the laptop computer can use an ambient light sensor to detect light. When the detected light is less than a certain intensity, it can be considered that the opening and closing angle of the laptop computer is less than a certain value, and the display screen can be turned off. After the display screen is turned off, the laptop computer naturally stops playing the dynamic wallpaper.
[0098] In order to achieve reverse playback of dynamic wallpaper, the dynamic wallpaper in the embodiment of the present application can be composed of all I frames, that is, each frame contained in the dynamic wallpaper is an I frame. I frame is also called key frame or intra-coded frame. I frame is a complete frame that contains all the information required by the decoder to reconstruct the entire frame. There is no dependency between I frame and other frames. The decoder can reconstruct I frame using only I frame information. In the process of reverse playback of dynamic wallpaper, the laptop computer can use the information of a frame in the dynamic wallpaper to decode and reconstruct the frame without referring to the previous frame of the frame, and there is no need to decode the frame after decoding the previous frame, so reverse playback can be achieved.
[0099] Figure 1-Figure 3 , Figure 5 The method for displaying dynamic wallpapers is introduced by taking a laptop computer as an example. The method is not limited to laptop computers. Other devices that can open and close covers, such as foldable mobile phones, can also execute the above-mentioned method for displaying dynamic wallpapers to display dynamic wallpapers in the wake-up stage, the lock screen stage, the desktop stage, etc. The device that can open and close covers can have a cover body and a main body, or can be provided with an external cover body to realize opening and closing of the cover.
[0100] The method of displaying dynamic wallpapers is not limited to devices that can open and close covers, such as laptops and foldable phones. Other devices that cannot open and close covers, such as candy-bar phones and tablets, can also perform the method of displaying dynamic wallpapers. When a device that cannot open and close covers performs the method of displaying dynamic wallpapers, the following steps may be included:
[0101] Wake-up phase. A device that cannot open and close its lid is different from a device that can open and close its lid. It can enter the wake-up phase and start the display after receiving a user operation of pressing the power button, or after detecting that the device is shaken, or after detecting that the display is tapped. After entering the wake-up phase, the device that cannot open and close its lid starts playing dynamic wallpaper. The way the device plays dynamic wallpaper can be referred to Figure 1 The difference is that since the device cannot open and close the cover, the animation of the dynamic wallpaper played during the wake-up phase cannot be associated with the opening and closing angle.
[0102] Lock screen stage. For devices that cannot open or close the cover, please refer to the following for how to play dynamic wallpapers in this stage. Figure 2 Related description.
[0103] Desktop stage. For devices that cannot open and close the cover, please refer to the following for how to play dynamic wallpapers in this stage. Figure 3 and Figure 5 Related description.
[0104] Some relatively light devices, such as mobile phones (including foldable mobile phones, candy-bar mobile phones, etc.), tablet computers, etc., can switch between landscape and portrait modes, and can display interface elements in different display directions in landscape and portrait modes. This application also provides a method for displaying dynamic wallpaper when the above-mentioned device switches between landscape and portrait modes, which is described below.
[0105] Figure 6 The schematic diagram exemplarily shows the electronic device switching from the landscape state to the portrait state, wherein the display direction of the electronic device in the landscape state and the display direction in the portrait state are in a vertical relationship.
[0106] like Figure 6 As shown, the electronic device is initially in a landscape state. In response to a user's operation of converting the electronic device from a landscape state to a portrait state, the electronic device rotates and converts to a portrait state. Figure 6 The next layer of the electronic device in FIG. 1 shows a dynamic wallpaper, which can be played according to the method described above. Figure 6 As shown, the position of the underlying dynamic wallpaper remains unchanged, and the electronic device can be regarded as a viewfinder. When the electronic device is converted from a horizontal screen state to a vertical screen state, the viewfinder position rotates around a certain point (such as the center point of the viewfinder), and the position of the dynamic wallpaper taken in the viewfinder also changes accordingly. The picture of the dynamic wallpaper taken in the viewfinder is the dynamic wallpaper displayed by the electronic device.
[0107] In a specific implementation, the electronic device can collect data through acceleration sensors, gyroscopes, magnetic sensors, etc., and analyze the rotation angle of the electronic device through these data, so as to determine the position of the viewfinder on the dynamic wallpaper according to the rotation angle of the electronic device, thereby capturing the dynamic wallpaper picture that the viewfinder can see, and displaying the captured picture on the electronic device.
[0108] pass Figure 6 In the manner shown, during the state switching process, the electronic device can select pictures of different positions of the dynamic wallpaper to display according to the rotation angle, which can provide users with a richer display experience.
[0109] Not limited to Figure 6 The electronic device shown in FIG. 1 is switched from a horizontal screen state to a vertical screen state. When the electronic device is switched from a vertical screen state to a horizontal screen state, the framing position of the dynamic wallpaper can also be changed according to the above method. Figure 6 In the reverse manner shown, the electronic device can reversely obtain the position of the viewfinder and display the dynamic wallpaper. Figure 6When the last vertical screen state is continued to be rotated clockwise to the horizontal screen state, the electronic device determines the position of the viewfinder on the dynamic wallpaper according to the rotation angle, captures the dynamic wallpaper picture that can be seen by the viewfinder, and displays the captured picture.
[0110] In some embodiments, the shape of the dynamic wallpaper can be set to a square, the side length of which is greater than or equal to the diagonal length of the electronic device display screen, so that the electronic device can be ensured to be in accordance with Figure 6 When the dynamic wallpaper is displayed in the manner shown, the entire area of the viewfinder can capture the image without black edges or blank spaces on the display screen. In other embodiments, the shape of the dynamic wallpaper can also be set to a rectangle, with the length of its short side being greater than or equal to the diagonal length of the electronic device display screen, which can also avoid black edges or blank spaces on the display screen.
[0111] Figure 7 Another schematic diagram exemplarily shows the switching of an electronic device from a landscape state to a portrait state.
[0112] like Figure 7 As shown, the electronic device is initially in a landscape state. In response to a user's operation of converting the electronic device from a landscape state to a portrait state, the electronic device rotates and converts to a portrait state. Figure 7 The next layer of the electronic device in FIG. 1 shows a dynamic wallpaper, which can be played according to the method described above. Figure 7 As shown, the electronic device displays the dynamic wallpaper image captured in a fixed horizontal screen frame when in the horizontal screen state and when the vertical screen state is detected; after the electronic device detects the vertical screen state, it displays the dynamic wallpaper image captured in the fixed vertical screen frame.
[0113] In a specific implementation, the electronic device can collect data through acceleration sensors, gyroscopes, magnetic sensors, etc., and analyze the rotation angle of the electronic device through these data, so as to determine the state of the electronic device according to the rotation angle of the electronic device, thereby capturing the dynamic wallpaper picture that can be seen in the viewfinder, and displaying the captured picture on the electronic device.
[0114] pass Figure 7 In the manner shown, during the state switching process, the electronic device can select pictures of different positions of the dynamic wallpaper to display as the horizontal and vertical screen states are switched, which can provide users with a richer display experience.
[0115] Not limited to Figure 7 The electronic device shown in FIG. 1 is switched from a horizontal screen state to a vertical screen state. When the electronic device is switched from a vertical screen state to a horizontal screen state, the framing position of the dynamic wallpaper can also be changed according to the above method. Figure 7In the reverse manner shown, the electronic device can reversely obtain the position of the viewfinder and display the dynamic wallpaper. Figure 7 If the electronic device continues to rotate clockwise to the horizontal state when the last vertical state is detected, the electronic device first displays the picture taken with the fixed vertical viewfinder, and then displays the picture taken with the fixed horizontal viewfinder after detecting that the horizontal state has been entered.
[0116] In some embodiments, the shape of the dynamic wallpaper can be set to a square, and the side length is greater than or equal to the length and width of the electronic device display screen, so that the electronic device can be ensured to be displayed in accordance with the Figure 7 When the dynamic wallpaper is displayed in the manner shown, the entire area of the viewfinder can capture the image without black edges or blank spaces on the display screen. In other embodiments, the shape of the dynamic wallpaper can also be set to a rectangle, with the length of its short side being greater than or equal to the length and width of the electronic device display screen, which can also avoid black edges or blank spaces on the display screen.
[0117] During the posture switching process of the electronic device, the posture before the switching can be called the first posture, and the posture after the switching can be called the second posture. During the posture switching process, the position of the viewfinder can be called the first position in the dynamic wallpaper.
[0118] Above Figure 6 and Figure 7 The state switching of the electronic device introduced can occur at any stage, such as the wake-up stage, the lock screen stage, the desktop stage, etc., which depends on the user operation and is not limited here.
[0119] exist Figure 6 or Figure 7 During the switching process of the horizontal and vertical screen states of the electronic device shown, other interface elements other than the dynamic wallpaper displayed by the electronic device may also be rotated in any of the following ways: 1. As the rotation angle of the electronic device rotates, for example, during the switching process from the horizontal screen state to the vertical screen state, other interface elements gradually rotate from the horizontal screen display direction to the vertical screen display direction. 2. Switch the display direction as the state of the electronic device switches, for example, when the horizontal screen state is detected, other interface elements are displayed in the horizontal screen display direction, and after switching to the vertical screen state, other interface elements are switched to be displayed in the vertical screen display direction.
[0120] In an embodiment of the present application, the parameters of the dynamic wallpaper may include the following items: H.265 encoding, 120 frame rate, 2K resolution, and a shorter duration (such as more than ten seconds, more than twenty seconds, etc.). The H.265 encoding method has higher compression efficiency and better video quality. The frame rate of 120 can ensure the smoothness of slow playback after the electronic device enters the desktop stage, and the 2K resolution can meet the user's demand for video quality. The above parameters can control the size of the dynamic wallpaper of the present application within 60MB, so that high-quality dynamic wallpaper playback can be achieved through a smaller memory space. The dynamic wallpaper of the embodiment of the present application can be hard-decoded by a hardware codec, or it can be decoded by a soft decoding method, and the present application does not limit this.
[0121] Figure 8 The diagram exemplarily shows the internal module interaction when an electronic device executes a method for displaying a dynamic wallpaper.
[0122] like Figure 8 As shown, the electronic device may include the following modules: interface state management (also known as scene board), theme editor, theme service framework, theme package resource management, theme engine service, multimedia framework, etc. Among them, the interface state management is used to manage the interface state displayed on the display screen, and may specifically include modules such as desktop management, lock screen management, and wallpaper management. The theme editor is used to display, edit, and switch themes. The theme engine service may include engine instances, rendering pages, and video control modules. The multimedia framework provides video decapsulation capabilities and video decoding capabilities. The theme defines the display style of the interface, which may include wallpapers, icon sets, window border styles, menu styles, sound effects, etc.
[0123] like Figure 8 As shown, the internal module interaction process may include the following steps:
[0124] 1. Wallpaper management displays content rendered by the theme engine service, for example, you can use UIExtension to render the display across processes.
[0125] 2. Desktop management triggers the theme editor to read the theme resources in the theme package resources and display these theme resources to the user for selection.
[0126] 3. The desktop manager receives the user's operation to switch themes.
[0127] 4. Desktop management triggers the theme service framework through the theme editor to migrate the theme resources selected by the user from the preset directory to the working directory.
[0128] 5. The theme service framework synchronizes the domain-specific language (DSL) description of the theme resource selected by the user to the engine instance for parsing.
[0129] 6. The engine example triggers the video control module to render the video of the dynamic wallpaper according to the DSL description of the theme resource, and binds the surface of the rendering page.
[0130] 7. The video control module triggers the multimedia framework to perform decapsulation, decoding and display of the dynamic wallpaper video.
[0131] 8. Desktop management synchronizes desktop states such as lock screen, unlock screen, and user operation events to the engine instance, so that the engine instance triggers the corresponding dynamic wallpaper effect.
[0132] refer to Fig. 9 , Fig. 9 A hardware structure diagram of the electronic device 100 provided in an embodiment of the present application.
[0133] like Fig. 9 As shown, the electronic device 100 may include: the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a button 190, a camera 193, a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a touch sensor 180K, an ambient light sensor 180L, etc.
[0134] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0135] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0136] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0137] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0138] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0139] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0140] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0141] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0142] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0143] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0144] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microled, micro-oled, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0145] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0146] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0147] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory.
[0148] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level; can be divided into universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0149] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data, etc.
[0150] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0151] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0152] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0153] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0154] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0155] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0156] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0157] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0158] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0159] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0160] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0161] In the embodiment of the present application, the internal memory 121 is used to store a computer program for implementing a method for displaying a dynamic wallpaper, and the processor 110 is used to execute the computer program to implement the method for displaying the dynamic wallpaper. The display screen 194 is used to play the dynamic wallpaper, and the content displayed can refer to the above introduction to the user interface.
[0162] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0163] The present application also provides an electronic device, which may include a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement a method executed on the electronic device side as in any of the above embodiments.
[0164] The present application also provides a chip system, which includes at least one processor, for implementing the method executed by the electronic device side in any of the above embodiments. In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0165] A chip system can be composed of chips or include chips and other discrete devices.
[0166] Optionally, there may be one or more processors in the chip system. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0167] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
[0168] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0169] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method executed on the electronic device side in any of the above embodiments is implemented.
[0170] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the method executed on the electronic device side in any of the above embodiments.
[0171] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0172] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0173] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0174] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0175] The terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0176] In short, the above is only an embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included in the protection scope of this application.
Claims
1. A method for displaying a dynamic wallpaper, It is characterized in that The method is applied to an electronic device including a main body and a cover body, and the method includes: detecting that the opening and closing angle between the main body and the cover increases and reaches a first value; Activating a display screen of the electronic device; detecting that the opening and closing angle continues to increase; After starting the display screen, a first dynamic wallpaper is played on the display screen with a first motion effect, wherein the first motion effect includes adjustment of viewing angle, and the first dynamic wallpaper is a video, wherein the larger the opening and closing angle, the greater the adjustment of viewing angle in the first motion effect.
2. The method according to claim 1, It is characterized in that The method further comprises: During the process of playing the first dynamic wallpaper with the first motion effect on the display screen, one or more of the following items are also displayed on the display screen: time, date, and weather.
3. The method according to claim 1 or 2, It is characterized in that The method further comprises: The avatar and password input box of the first account are displayed on the display screen, and the first dynamic wallpaper continues to be played with a second motion effect, wherein the second motion effect includes adjustment of viewing angle.
4. The method according to claim 3, It is characterized in that The method further comprises: receiving the password of the first account entered in the password input box of the first account; Continue to play the first dynamic wallpaper with a third motion effect, where the third motion effect includes adjustment of viewing angle.
5. The method according to claim 4, It is characterized in that The speed of playing the first dynamic wallpaper with the third motion effect is gradually reduced.
6. The method according to claim 5, It is characterized in that Playing the first dynamic wallpaper with the first motion effect specifically includes: using a linear animation curve to play the first dynamic wallpaper with the first motion effect; Playing the first dynamic wallpaper with the third motion effect specifically includes: using a deceleration animation curve to play the first dynamic wallpaper with the third motion effect.
7. The method according to any one of claims 4 to 6, It is characterized in that The method further comprises: During the process of playing the dynamic wallpaper with the third motion effect, one or more of the following are also displayed on the display screen: a status bar, icons of multiple application programs, and an information card.
8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: After playing the first dynamic wallpaper on the display screen for a period of time, stopping playing the first dynamic wallpaper, and displaying the first image frame of the first dynamic wallpaper on the display screen when stopping playing the first dynamic wallpaper; Receiving a first user operation; In response to the first user operation, the first dynamic wallpaper continues to be played starting with the first image frame.
9. The method according to claim 8, It is characterized in that After continuing to play the first dynamic wallpaper starting from the first image frame, the method further includes: Receiving a second user operation; In response to the second user operation, the first dynamic wallpaper is stopped from playing, and the second image frame of the first dynamic wallpaper is displayed on the display screen when the first dynamic wallpaper is stopped from playing.
10. The method according to any one of claims 1 to 9, It is characterized in that The method further comprises: detecting that the opening and closing angle gradually decreases; Starting with the image frame displayed on the display screen, the first dynamic wallpaper is played in reverse.
11. The method according to claim 10 It is characterized in that Playing the first dynamic wallpaper in reverse specifically includes: playing the first dynamic wallpaper in reverse with a fourth dynamic effect, the fourth dynamic effect including an adjustment of viewing angle, wherein the smaller the opening and closing angle is, the greater the adjustment of viewing angle in the fourth dynamic effect is.
12. The method according to any one of claims 1 to 11, It is characterized in that The parameters of the first dynamic wallpaper satisfy one or more of the following: the encoding method is H.265 encoding method, the frame rate is 120, the resolution is 2K, the duration is less than the second value, and each frame contained is an I frame.
13. The method according to any one of claims 1 to 12, It is characterized in that The method further comprises: Detecting that the electronic device switches from a first posture to a second posture; Among them, the first dynamic wallpaper played on the display screen is specifically a picture captured from a first position in the first dynamic wallpaper. When the electronic device switches from a first posture to a second posture, the first position in the first dynamic wallpaper is determined by the real-time posture of the electronic device; when the electronic device switches to the second posture, the first position in the first dynamic wallpaper is determined by the second posture.
14. The method according to claim 13, It is characterized in that The shape of the image frame in the first dynamic wallpaper is a square, and the side length of the square is greater than or equal to the diagonal length of the display screen.
15. The method according to any one of claims 1 to 12, It is characterized in that The method further comprises: Detecting that the electronic device switches from a first posture to a second posture; Among them, the first dynamic wallpaper played on the display screen is specifically a picture captured from a first position in the first dynamic wallpaper. In the process of the electronic device switching from a first posture to a second posture, the first position in the first dynamic wallpaper is determined by the first posture; when the electronic device switches to the second posture, the first position in the first dynamic wallpaper is determined by the second posture.
16. The method according to claim 15, It is characterized in that The shape of the image frame in the first dynamic wallpaper is a square, and the side length of the square is greater than or equal to the length and width of the display screen.
17. An electronic device, It is characterized in that The device comprises a main body and a cover body, wherein the main body comprises a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement the method according to any one of claims 1 to 16.
18. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
19. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
20. A chip system, comprising a processing circuit and an interface circuit, wherein the interface circuit is used to receive computer instructions and transmit them to the processing circuit, and the processing circuit is used to execute the computer instructions to implement the method as described in any one of claims 1-16.
