A charging video display method, mobile terminal and storage medium
By obtaining the mask dynamic effect and the original charging video, and generating the mask charging video according to the charging mode, the problem of poor rendering effect and presentation method in the existing technology is solved, and the charging video display is realized with good rendering effect and flexible presentation method. The combination improves the user experience.
Patent Information
- Application Number
- CN202111615723.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-27
AI Technical Summary
Existing charging video display methods cannot meet the needs of good rendering effects and flexible display methods at the same time. Custom animation methods control content irregularly but have poor rendering effects. Although fixed video methods have good rendering effects, the display methods are not flexible enough.
By obtaining the mask motion effect and the original charging video, the mask charging video is generated according to the charging mode, and the mask charging video and charging progress related information corresponding to the charging mode are displayed. The mask motion effect is flexible and changeable to improve the rendering effect and performance. flexibility of approach.
It realizes charging video display with good rendering effect and flexible display method, which improves the user experience.
Smart Images

Figure CN114500726B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of charging videos, and in particular to a charging video display method, a mobile terminal and a storage medium. Background Art
[0002] At present, mobile terminals will display charging-related videos or animations when charging, making the charging stage no longer boring and improving the user's charging experience. There are two main ways to display charging-related videos or animations: one is that the user draws and generates animations in a custom View, which is called the custom animation method; the other is to loop the video pre-stored in the mobile terminal, which is called the fixed video method. The custom animation method can well control the displayed content and achieve irregularity, but the rendering effect of the displayed content is not good; the fixed video method can play rich content that has been prepared and saved in advance, but the display is very regular and the presentation method is not flexible enough. There is an urgent need for a charging video display method with good rendering effect and flexible presentation method. Summary of the invention
[0003] In view of this, the purpose of the embodiments of the present invention is to provide a charging video display method, a mobile terminal and a storage medium to solve the technical problem that the current charging video cannot simultaneously meet the requirements of good rendering effect and flexible display method.
[0004] The technical solution adopted by the present invention to solve the above technical problems is as follows:
[0005] According to one aspect of an embodiment of the present invention, a charging video display method is provided, the method comprising:
[0006] Get the mask animation and at least one original charging video;
[0007] When it is detected that a charger is connected, a masked charging video corresponding to the current charging mode is generated according to the masked animation and the original charging video corresponding to the current charging mode;
[0008] The masked charging video corresponding to the current charging mode and information related to the charging progress are displayed.
[0009] Optionally, the displaying of the masked charging video corresponding to the current charging mode and information related to the charging progress includes:
[0010] The masked charging video and charging progress related information corresponding to the current charging mode are displayed in two layers, wherein the charging progress related information is displayed in the upper layer, and the masked charging video is displayed in the lower layer.
[0011] Optionally, the mask animation and the original charging video have the same playing duration.
[0012] Optionally, the mask animation is the same in shape and size as the video screen of the original charging video.
[0013] Optionally, after obtaining the masked motion effect and at least one original charging video, the method further includes:
[0014] Put the mask animation and each of the original charging videos into different video tracks respectively;
[0015] The step of generating a masked charging video corresponding to the current charging mode according to the masked animation and the original charging video corresponding to the current charging mode includes:
[0016] The masked animation is synthesized with the original charging video corresponding to the current charging mode by means of a video track to generate a masked charging video corresponding to the current charging mode.
[0017] Optionally, the method further comprises:
[0018] When the charging mode switching is detected, the masked charging video is updated to a masked charging video corresponding to the switched charging mode.
[0019] Optionally, updating the masked charging video to a masked charging video corresponding to the switched charging mode includes:
[0020] Updating the masked charging video corresponding to the charging mode before switching to the masked charging video in the transition phase;
[0021] The masked charging video in the transition phase is updated to a masked charging video corresponding to the switched charging mode.
[0022] Optionally, the masked charging video in the transition stage is generated by synthesizing the masked motion effect with the original charging videos corresponding to the charging modes before and after the switching.
[0023] According to another aspect of an embodiment of the present invention, a mobile terminal is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned charging video display method when executed by the processor.
[0024] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, on which a charging video display program is stored, and when the charging video display program is executed by a processor, the steps of the charging video display method are implemented.
[0025] In the charging video display method, mobile terminal and storage medium provided by the embodiment of the present invention, a masked animation and at least one original charging video are obtained; when it is detected that a charger is connected, a masked charging video corresponding to the current charging mode is generated according to the masked animation and the original charging video corresponding to the current charging mode; and the masked charging video corresponding to the current charging mode and charging progress related information are displayed. Since the masked animation is flexible and changeable, the masked charging video generated by the masked animation processing not only has a good rendering effect, but also has a flexible expression method, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0027] Figure 1 It is a hardware structure diagram of a mobile terminal involved in the present invention;
[0028] Figure 2 is a flow chart of a charging video display method provided by an embodiment of the present invention;
[0029] Figure 3 It is a schematic diagram of the masked dynamic effect and the original charging video provided by an embodiment of the present invention;
[0030] Figure 4 is a flow chart of another charging video display method provided by an embodiment of the present invention;
[0031] Figure 5a is a schematic diagram of a charging video display method provided by an embodiment of the present invention;
[0032] Figure 5b is another schematic diagram of a charging video display method provided by an embodiment of the present invention;
[0033] Figure 5c is another schematic diagram of a charging video display method provided by an embodiment of the present invention;
[0034] Figure 6 is a flow chart of another charging video display method provided by an embodiment of the present invention;
[0035] Figure 7 It is a schematic diagram of a mask charging video generation method provided by an embodiment of the present invention;
[0036] Figure 8 is a flow chart of another charging video display method provided by an embodiment of the present invention;
[0037] Fig. 9 is a flow chart of another charging video display method provided by an embodiment of the present invention;
[0038] Fig.10 It is a schematic diagram of a method for generating a mask charging video in a transition phase provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0040] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0041] The terminal may be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0042] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed-type terminals.
[0043] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0044] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:
[0045] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.
[0046] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0047] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0048] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.
[0049] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0050] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0051] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.
[0052] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.
[0053] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0054] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0055] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0056] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0057] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0058] Based on the above mobile terminal hardware structure, various embodiments of the method of the present invention are proposed.
[0059] Embodiment 1
[0060] Figure 2 The flowchart of a charging video display method provided by an embodiment of the present invention. The method of this embodiment is automatically executed by a mobile terminal, wherein each step can be performed in sequence as shown in the flowchart, or multiple steps can be performed simultaneously according to actual conditions, which is not limited here. The charging video display method provided by the present invention includes:
[0061] Step S201, obtaining a mask animation and at least one original charging video;
[0062] Step S202, when it is detected that a charger is connected, generating a masked charging video corresponding to the current charging mode according to the masked animation and the original charging video corresponding to the current charging mode;
[0063] Step S203, displaying the masked charging video corresponding to the current charging mode and information related to the charging progress.
[0064] Through the above implementation, first, a masked animation and at least one original charging video are obtained; then, when a charger is detected to be connected, a masked charging video corresponding to the current charging mode is generated according to the masked animation and the original charging video corresponding to the current charging mode; finally, the masked charging video corresponding to the current charging mode and charging progress related information are displayed. Since the masked animation is flexible and changeable, the masked charging video has a good rendering effect and a flexible expression method, which improves the user experience.
[0065] In this embodiment, it should be noted first that, considering the existing technology, the charging video display method has the following technical problems: the content displayed can be well controlled through custom animation to achieve irregularity, but the rendering effect of the displayed content is not good; the rich content prepared and saved in advance can be played through a fixed video method, but the regularity of the display is very strong, and the expression method is not flexible enough. Therefore, in order to solve the above technical problems, in this embodiment, the mobile terminal obtains a masked animation and at least one original charging video; when it is detected that a charger is connected, a masked charging video corresponding to the current charging mode is generated according to the masked animation and the original charging video corresponding to the current charging mode; the masked charging video corresponding to the current charging mode and charging progress related information are displayed. Because the masked animation is flexible and changeable, the masked charging video generated by the masked animation processing not only has a good rendering effect, but also has a flexible expression method, which improves the user experience.
[0066] The above steps will be described in detail below in conjunction with specific implementation methods.
[0067] In step S201, a mask animation and at least one original charging video are obtained.
[0068] Specifically, the mobile terminal obtains a masked animation and at least one original charging video, and processes the original charging video through the masked animation to generate a masked charging video. Optionally, the masked animation may be pre-stored in the mobile terminal when the mobile terminal leaves the factory, downloaded and saved by the user through the network, designed and saved by the user, or obtained by other means. This embodiment does not limit the specific method for obtaining the masked animation; the original charging video may be pre-stored in the mobile terminal when the mobile terminal leaves the factory, downloaded and saved by the user through the network, or obtained by other means. This embodiment does not limit the specific method for obtaining the original charging video. The original charging video may be one or more, and correspondingly, all charging modes of the mobile terminal correspond to one original charging video, or different charging modes correspond to different original charging videos.
[0069] Optionally, the mask animation and the original charging video have the same playing duration.
[0070] Specifically, the playback time of the masked animation and the original charging video is the same, so that each frame of the original charging video is processed by the masked animation. Since the masked animation is flexible and changeable, the generated masked charging video has good rendering effect and flexible expression method, which improves the user experience.
[0071] Optionally, the mask animation is the same in shape and size as the video screen of the original charging video.
[0072] Specifically, the mask animation is the same shape and size as the video screen of the original charging video, so that every pixel of the original charging video frame can be processed by the mask animation. Since the mask animation is flexible and changeable, the mask charging video generated by the mask animation processing not only has a good rendering effect, but also has a flexible expression method, thereby improving the user experience.
[0073] For example, the original charging video includes a slow charging animation video, a fast charging animation video, and a super fast charging animation video. Figure 3 , Figure 3 It is a schematic diagram of the mask animation and the original charging video provided by an embodiment of the present invention, wherein the mask animation and the video screen of the original charging video corresponding to the three charging modes are the same in shape and size.
[0074] Optionally, the mask animation is an alpha mask animation.
[0075] Specifically, the mobile terminal obtains an alpha mask animation and at least one original charging video to control the opacity of pixels of the original charging video through the alpha mask animation.
[0076] For example, first, the average value of the first R, G, and B values of each first pixel in each frame of the mask animation is calculated, and the average value is used as the first transparency value of the first pixel; then, the second pixel corresponding to the first pixel in the original charging video corresponding to the current charging mode in the frame corresponding to the mask animation is obtained, and the first transparency value is used as the second transparency value of the second pixel; then, the second RGB value of the second pixel is obtained, and the target pixel value RGBA finally displayed by the second pixel is generated according to the second RGB value and the second transparency value; finally, the target pixel value RGBA is used as the pixel value of the pixel corresponding to the second pixel in the mask charging video corresponding to the current charging mode. Thus, the transparency of the corresponding pixel of the frame at the corresponding moment of the original charging video is controlled by the transparency of a certain pixel of the frame at a certain moment of the alpha mask animation. The transparency of the generated mask charging video changes with the change of the alpha mask animation. Since the alpha mask animation is flexible and changeable, the mask charging video generated by the alpha mask animation processing not only has a good rendering effect, but also has a flexible expression method, which improves the user experience.
[0077] In step S202, when it is detected that a charger is connected, a masked charging video corresponding to the current charging mode is generated based on the masked animation and the original charging video corresponding to the current charging mode.
[0078] Specifically, the mobile terminal detects that the charger is connected, indicating that the mobile terminal starts charging. At this time, a masked charging video corresponding to the current charging mode is generated according to the masked animation and the original charging video corresponding to the current charging mode, so as to display the masked charging video on the mobile terminal. It can be understood by those skilled in the art that when there is only one original charging video, each charging mode can correspond to the original charging video; when there are multiple original charging videos, different charging modes can correspond to different original charging videos.
[0079] In step S203, the masked charging video corresponding to the current charging mode and information related to the charging progress are displayed.
[0080] Specifically, after generating the masked charging video, the mobile terminal plays the masked charging video and charging progress related information corresponding to the current charging mode, so that the user can understand the current charging progress while watching the masked charging video. When different charging modes correspond to different original charging videos, different masked charging videos also correspond to different charging modes. Therefore, the user can also understand the current charging mode by watching the masked charging video. Among them, the display form of the charging progress related information can be a form pre-set by the mobile terminal, or it can be generated according to the received user instructions. Optionally, the mobile terminal plays the masked charging video corresponding to the current charging mode in a loop.
[0081] Optionally, the display form of the charging progress related information is drawn and generated according to the received user instruction. That is, the display form is customized by the user and can be text, icon, text and icon combination, animation or other user-defined display forms. This embodiment does not limit the specific display form of the charging progress related information.
[0082] In one embodiment, reference Figure 4 , Figure 4 is a flow chart of another charging video display method provided by an embodiment of the present invention, wherein the display of the masked charging video corresponding to the current charging mode and the charging progress related information includes:
[0083] Step S2031, displaying the masked charging video and charging progress related information corresponding to the current charging mode in two layers, wherein the charging progress related information is displayed in the upper layer, and the masked charging video is displayed in the lower layer.
[0084] In this implementation, the charging progress related information and the masked charging video are displayed in layers, which can improve the development efficiency of the charging video display method.
[0085] For example, the upper layer that displays information related to the charging progress is a simple animation layer, and the lower layer that displays the mask charging video is a video animation layer. Figure 5a-5c , Figure 5a-5c It is a schematic diagram of a charging video display method provided by an embodiment of the present invention, and the simple animation layer is displayed above the video animation layer.
[0086] Optionally, when there is a video refresh signal, the mask charging video displayed on the lower layer is drawn once; when there is a vertical synchronization signal, the charging progress related information displayed on the upper layer is drawn once.
[0087] In one embodiment, reference Figure 6 , Figure 6is a flow chart of another charging video display method provided by an embodiment of the present invention. After obtaining the mask animation and at least one original charging video, the method further includes:
[0088] Step S204, putting the mask animation and each of the original charging videos into different video tracks respectively;
[0089] When it is detected that a charger is connected, generating a masked charging video corresponding to the current charging mode according to the masked animation and the original charging video corresponding to the current charging mode includes:
[0090] Step S2021, when it is detected that the charger is connected, the masked animation is synthesized with the original charging video corresponding to the current charging mode by means of a video track to generate a masked charging video corresponding to the current charging mode.
[0091] In this embodiment, after obtaining the mask animation and at least one original charging video, the mobile terminal places the mask animation and each of the original charging videos into different video tracks respectively; when it is detected that the charger is connected, the mask animation is synthesized with the original charging video corresponding to the current charging mode through the video track to generate a mask charging video corresponding to the current charging mode.
[0092] Continuing with the example that the original charging video includes a slow charging animation video, a fast charging animation video, and a super fast charging animation video, Figure 7 It is a schematic diagram of a masked charging video generation method provided by an embodiment of the present invention, wherein masked motion effects, slow charging animation videos, fast charging animation videos and super fast charging animation videos are respectively placed in video tracks at positions one to four. When the mobile terminal detects that a charger is connected, the masked motion effect at position one is synthesized with the original charging video corresponding to the current charging mode of the mobile terminal in the videos at positions two to four to generate a masked charging video corresponding to the current charging mode.
[0093] In one embodiment, reference Figure 8 , Figure 8 is a flowchart of another charging video display method provided by an embodiment of the present invention, and the method further includes:
[0094] Step S205, when the charging mode switching is detected, the masked charging video is updated to a masked charging video corresponding to the switched charging mode.
[0095] In this embodiment, when the mobile terminal detects that the charging mode is switched, the masked charging video is updated to a masked charging video corresponding to the switched charging mode. For example, when the charging mode is switched from the super fast charging mode to the fast charging mode, the masked charging video corresponding to the super fast charging mode is switched to a masked charging video corresponding to the fast charging mode. Thus, the user can understand the current charging mode through the masked charging video.
[0096] Optionally, the masked animation is synthesized with the original charging video corresponding to the switched charging mode by means of a video track to generate a masked charging video corresponding to the switched charging mode.
[0097] In one embodiment, reference Fig. 9 , Fig. 9 is a flowchart of another charging video display method provided by an embodiment of the present invention, wherein when a charging mode switch is detected, updating the masked charging video to a masked charging video corresponding to the switched charging mode comprises:
[0098] Step S2051, when a charging mode switch is detected, the masked charging video corresponding to the charging mode before the switch is updated to a masked charging video in a transitional stage;
[0099] Step S2052: updating the masked charging video in the transition phase to a masked charging video corresponding to the switched charging mode.
[0100] In this embodiment, when the mobile terminal detects the switching of the charging mode, it first updates the masked charging video corresponding to the charging mode before the switching to the masked charging video in the transition stage; then, it updates the masked charging video in the transition stage to the masked charging video corresponding to the charging mode after the switching. The masked charging video in the transition stage makes the updating process of the masked charging video more natural, improving the user's viewing experience.
[0101] Optionally, the masked charging video in the transition stage is generated by synthesizing the masked motion effect with the original charging videos corresponding to the charging modes before and after the switching.
[0102] Specifically, refer to Fig.10 , Fig.10 The present invention is a schematic diagram of a method for generating a masked charging video in a transitional stage provided by an embodiment of the present invention. When the mobile terminal detects a charging mode switch, the masked charging video in the transitional stage is generated by synthesizing the masked charging video with the original charging videos corresponding to the charging modes before and after the switch.
[0103] Taking the mask animation as an alpha mask animation, and the charging mode transitioning from slow charging to super fast charging as an example, the third transparency value of a third pixel point in the frame of the alpha mask animation at a certain moment in the transition process is alpha, and the fourth transparency value of the fourth pixel point corresponding to the third pixel point in the frame of the slow charging mode at this moment is a. Taking the transparency value range of 0-1 as an example, the fifth transparency value of the fifth pixel point corresponding to the third pixel point in the frame of the super fast charging mode at this moment is set to (1-a), then the calculation formula of the pixel value RGBA6 of the sixth pixel point corresponding to the third pixel point in the frame of the mask charging video in the transition stage at this moment is:
[0104] RGBA6 = alpha × (a × RGB value of slow charge + (1-a) × RGB value of super fast charge)
[0105] The process of generating the pixel value of the sixth pixel is repeated to obtain the mask charging video in the transition stage.
[0106] In the embodiment of the present invention, the mobile terminal obtains a masked animation and at least one original charging video; when detecting that a charger is connected, generates a masked charging video corresponding to the current charging mode according to the masked animation and the original charging video corresponding to the current charging mode; and displays the masked charging video corresponding to the current charging mode and information related to the charging progress. Since the masked animation is flexible and changeable, the masked charging video generated by the masked animation processing not only has a good rendering effect, but also has a flexible expression method, which improves the user experience.
[0107] Embodiment 2
[0108] An embodiment of the present invention also provides a mobile terminal, which includes a memory, a processor, and a computer program (not shown in the figure) stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the charging video display method described in the above embodiment 1 are implemented.
[0109] The mobile terminal of the embodiment of the present invention and the charging video display method of the above-mentioned embodiment 1 belong to the same concept. The specific implementation process is detailed in the corresponding method embodiment, and the technical features in the method embodiment are correspondingly applicable in the mobile terminal embodiment, which will not be repeated here.
[0110] Embodiment 3
[0111] An embodiment of the present invention further provides a computer-readable storage medium, on which a charging video display program is stored. When the charging video display program is executed by a processor, the steps of the charging video display method described in the first embodiment are implemented.
[0112] The computer-readable storage medium of the embodiment of the present invention and the method of the above-mentioned embodiment 1 belong to the same concept. The specific implementation process is detailed in the corresponding method embodiment, and the technical features in the method embodiment are correspondingly applicable in the embodiment of the computer-readable storage medium, which will not be repeated here.
[0113] The corresponding technical features in the above-mentioned embodiments can be used interchangeably without causing contradiction or impracticability of the solutions.
[0114] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0115] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0117] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A charging video display method, characterized in that: The method comprises: Get the mask animation and at least one original charging video; When it is detected that a charger is connected, a masked charging video corresponding to the current charging mode is generated according to the masked animation and the original charging video corresponding to the current charging mode; Displaying the masked charging video and charging progress related information corresponding to the current charging mode; After obtaining the masked animation and at least one original charging video, the method further includes: Putting the mask animation and each of the original charging videos into different video tracks respectively, wherein the original charging videos include multiple original charging videos, and different charging modes correspond to different original charging videos; The step of generating a masked charging video corresponding to the current charging mode according to the masked animation and the original charging video corresponding to the current charging mode includes: The masked dynamic effect is synthesized with the original charging video corresponding to the current charging mode by means of a video track to generate a masked charging video corresponding to the current charging mode; The method then further comprises: When a charging mode switch is detected, the masked charging video is updated to a masked charging video corresponding to the switched charging mode. Specifically, the masked animation is synthesized with the original charging video corresponding to the switched charging mode by means of a video track to generate a masked charging video corresponding to the switched charging mode. The updating of the masked charging video to a masked charging video corresponding to the switched charging mode comprises: Updating the masked charging video corresponding to the charging mode before switching to a masked charging video in a transitional stage, wherein the masked charging video in the transitional stage is generated by synthesizing the masked animation with the original charging videos corresponding to the charging modes before and after switching; The masked charging video in the transition phase is updated to a masked charging video corresponding to the switched charging mode.
2. The charging video display method according to claim 1, characterized in that: The display of the masked charging video corresponding to the current charging mode and the charging progress related information includes: The masked charging video and charging progress related information corresponding to the current charging mode are displayed in two layers, wherein the charging progress related information is displayed in the upper layer, and the masked charging video is displayed in the lower layer.
3. The charging video display method according to claim 1, characterized in that: The mask animation and the original charging video have the same playing time.
4. The charging video display method according to any one of claims 1 to 3, characterized in that: The mask animation is the same in shape and size as the video screen of the original charging video.
5. A mobile terminal, characterized in that: The mobile terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the charging video display method according to any one of claims 1 to 4 are implemented.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a charging video display program, and when the charging video display program is executed by a processor, the steps of the charging video display method according to any one of claims 1 to 4 are implemented.
