CN114500726A - Charging video display method, mobile terminal and storage medium - Google Patents

Charging video display method, mobile terminal and storage medium Download PDF

Info

Publication number
CN114500726A
CN114500726A CN202111615723.9A CN202111615723A CN114500726A CN 114500726 A CN114500726 A CN 114500726A CN 202111615723 A CN202111615723 A CN 202111615723A CN 114500726 A CN114500726 A CN 114500726A
Authority
CN
China
Prior art keywords
charging
mask
video
mode
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111615723.9A
Other languages
Chinese (zh)
Other versions
CN114500726B (en
Inventor
肖良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202111615723.9A priority Critical patent/CN114500726B/en
Publication of CN114500726A publication Critical patent/CN114500726A/en
Application granted granted Critical
Publication of CN114500726B publication Critical patent/CN114500726B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a charging video display method, a mobile terminal and a storage medium, belonging to the technical field of charging videos, wherein the charging video display method comprises the following steps: acquiring a mask dynamic effect and at least one original charging video; when the charger is detected to be connected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode; and displaying the mask charging video and the charging progress related information corresponding to the current charging mode. Because the mask is flexible and changeable in dynamic effect, the mask charging video generated by the mask dynamic effect processing is good in rendering effect, flexible in embodiment mode and capable of improving the use experience of users.

Description

Charging video display method, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of charging videos, in particular to a charging video display method, a mobile terminal and a storage medium.
Background
At present, a mobile terminal can display videos or animations related to charging during charging, so that the charging stage is not tedious, and the charging experience of a user is improved. There are two main ways of charging related video or animation: one is that the user draws the generated animation in the user-defined View, which is called a user-defined animation mode; the other mode is a mode of cyclically playing videos prestored in the mobile terminal, which is called as a fixed video mode. The displayed content can be well controlled in a self-defined animation mode, irregularity is achieved, but the rendering effect of the displayed content is poor; the rich content which is prepared and stored in advance can be played in a fixed video mode, but the display regularity is strong, and the embodiment mode is not flexible enough. A charging video display method with good rendering effect and flexible embodiment is needed urgently.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a charging video display method, a mobile terminal and a storage medium, so as to solve the technical problem that the current charging video cannot simultaneously satisfy the requirements of good rendering effect and flexible embodiment.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to an aspect of an embodiment of the present invention, there is provided a charging video display method including:
acquiring a mask dynamic effect and at least one original charging video;
when the charger is detected to be connected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode;
and displaying the mask charging video and the charging progress related information corresponding to the current charging mode.
Optionally, the displaying the mask charging video and the charging progress related information corresponding to the current charging mode includes:
and displaying the mask charging video and the charging progress related information corresponding to the current charging mode in an upper layer and a lower layer, wherein the charging progress related information is displayed on the upper layer, and the mask charging video is displayed on the lower layer.
Optionally, the mask action is the same as the playing time of the original charging video.
Optionally, the mask animation effect and the video picture of the original charging video are the same in shape and size.
Optionally, after the acquiring the mask animation effect and the at least one original charging video, further comprising:
respectively placing the mask dynamic effect and each original charging video into different video tracks;
the generating of the mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode comprises:
and synthesizing the mask dynamic effect and the original charging video corresponding to the current charging mode in a video track mode to generate a mask charging video corresponding to the current charging mode.
Optionally, the method further comprises:
and when the switching of the charging mode is detected, updating the mask charging video into a mask charging video corresponding to the switched charging mode.
Optionally, the updating the masked charging video to the masked charging video corresponding to the switched charging mode includes:
updating the mask charging video corresponding to the charging mode before switching into the mask charging video in the transition stage;
and updating the mask charging video in the transition stage into a mask charging video corresponding to the switched charging mode.
Optionally, the mask charging video in the transition stage is generated by synthesizing the mask dynamic effect with the original charging video respectively corresponding to the charging modes before and after switching.
According to another aspect of the embodiments of the present invention, there is provided a mobile terminal, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the charging video display method described above.
According to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a charging video display program that, when executed by a processor, implements the steps of the charging video display method described above.
In the charging video display method, the mobile terminal and the storage medium provided by the embodiment of the invention, the mask dynamic effect and at least one original charging video are obtained; when the charger is detected to be connected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode; and displaying the mask charging video and the charging progress related information corresponding to the current charging mode. Because the mask is flexible and changeable in dynamic effect, the mask charging video generated by the mask dynamic effect processing is good in rendering effect, flexible in embodiment mode and capable of improving the use experience of users.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a flowchart of a charging video display method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a mask action and an original charging video according to an embodiment of the present invention;
FIG. 4 is a flow chart of another charging video display method according to an embodiment of the present invention;
FIG. 5a is a schematic diagram of a charging video display mode according to an embodiment of the present invention;
FIG. 5b is another schematic diagram of a charging video display mode according to an embodiment of the present invention;
FIG. 5c is a schematic diagram of a charging video display according to another embodiment of the present invention;
fig. 6 is a flowchart of a charging video display method according to another embodiment of the present invention;
fig. 7 is a schematic diagram of a mask charging video generation manner according to an embodiment of the present invention;
fig. 8 is a flowchart of a charging video display method according to another embodiment of the present invention;
fig. 9 is a flowchart of a charging video display method according to another embodiment of the present invention;
fig. 10 is a schematic diagram of a generation manner of a mask charging video in a transition phase according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
Example one
Fig. 2 is a flowchart of a charging video display method according to an embodiment of the present invention. The method of this embodiment automatically runs through the mobile terminal, where each step may be performed sequentially according to the sequence in the flowchart, or may be performed simultaneously according to multiple steps in an actual situation, which is not limited herein. The charging video display method provided by the invention comprises the following steps:
step S201, acquiring a mask dynamic effect and at least one original charging video;
step S202, when the connection of a charger is detected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode;
and step S203, displaying the mask charging video and the charging progress related information corresponding to the current charging mode.
Through the embodiment, firstly, a mask dynamic effect and at least one original charging video are obtained; then, when the connection of a charger is detected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode; and finally, displaying the mask charging video and the charging progress related information corresponding to the current charging mode. Because the mask is flexible and changeable in dynamic effect, the mask charging video rendering effect is good, the embodiment mode is flexible, and the use experience of a user is improved.
In this embodiment, it should be noted that, in the prior art, the content displayed in the charging video display mode can be well controlled in a custom animation mode, so that the irregularity is achieved, but the rendering effect of the displayed content is not good; the rich content which is prepared and stored in advance can be played in a fixed video mode, but the display regularity is strong, and the technical problem that the mode is not flexible enough is reflected. Therefore, in order to solve the above technical problem, in the present embodiment, the mobile terminal acquires a mask animation and at least one original charging video; when the charger is detected to be connected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode; and displaying the mask charging video and the charging progress related information corresponding to the current charging mode. Because the mask is flexible and changeable in dynamic effect, the mask charging video generated by the mask dynamic effect processing is good in rendering effect, flexible in embodiment mode and capable of improving the use experience of users.
The above steps will be described in detail with reference to specific embodiments.
In step S201, a mask animation and at least one original charging video are acquired.
Specifically, the mobile terminal obtains a mask dynamic effect and at least one original charging video, and the original charging video is processed through the mask dynamic effect to generate a mask charging video. Optionally, the mask action effect may be pre-stored in the mobile terminal when the mobile terminal leaves a factory, downloaded and stored by a user through a network, designed and stored by the user, or acquired by other manners, and a specific acquisition manner of the mask action effect is not limited in this embodiment; the original charging video may be pre-stored in the mobile terminal when the mobile terminal leaves a factory, downloaded and stored by a user through a network, or acquired through other manners, and a specific acquisition manner of the original charging video is not limited in this embodiment. The original charging videos 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.
Optionally, the mask action is the same as the playing time of the original charging video.
Specifically, the playing time of the mask dynamic effect is the same as that of the original charging video, so that each frame of the original charging video is processed through the mask dynamic effect, the mask dynamic effect is flexible and changeable, the generated mask charging video is good in rendering effect and flexible in embodiment mode, and the use experience of a user is improved.
Optionally, the mask animation effect and the video picture of the original charging video are the same in shape and size.
Specifically, the mask moving effect is the same as the shape and size of the video picture of the original charging video, so that each pixel of the original charging video frame can be subjected to the processing of the mask moving effect, and the mask moving effect is flexible and changeable, so that the mask charging video generated by the processing of the mask moving effect is good in rendering effect, flexible in embodying mode and improved in use experience of a user.
For example, referring to fig. 3, fig. 3 is a schematic diagram of a mask animation effect and an original charging video provided by an embodiment of the present invention, where the original charging video includes a slow charging animation video, a fast charging animation video, and a super fast charging animation video, and the shape and size of the video frame of the original charging video corresponding to the mask animation effect and the 3 charging modes are the same.
Optionally, the mask animation effect is an alpha mask animation effect.
Specifically, the mobile terminal obtains an alpha mask dynamic effect and at least one original charging video, so that the opacity of pixel points of the original charging video is controlled through the alpha mask dynamic effect.
For example, first, an average value of first R, G, B values of each first pixel point in each frame of picture of the mask animation effect is calculated, and the average value is used as a first transparent value of the first pixel point; then, acquiring a second pixel point of the original charging video corresponding to the current charging mode, which corresponds to the first pixel point in the frame picture corresponding to the mask dynamic effect, and taking the first transparent value as a second transparent value of the second pixel point; then, a second RGB value of the second pixel point is obtained, and a target pixel value RGBA finally displayed by the second pixel point is generated according to the second RGB value and a second transparent value; and finally, taking the target pixel value RGBA as the pixel value of a pixel point corresponding to the second pixel point in the mask charging video corresponding to the current charging mode. Therefore, the transparency of a certain pixel of the frame picture at a certain moment of the alpha mask dynamic effect controls the transparency of a corresponding pixel point of the frame picture at a corresponding moment of the original charging video. The transparency of the generated mask charging video changes along with the change of the alpha mask dynamic effect, and the alpha mask dynamic effect is flexible and changeable, so that the mask charging video generated through the alpha mask dynamic effect processing is good in rendering effect, flexible in embodiment mode and capable of improving the use experience of a user.
In step S202, when it is detected that a charger is connected, a mask charging video corresponding to the current charging mode is generated according to the mask dynamic effect and the original charging video corresponding to the current charging mode.
Specifically, the mobile terminal detects that the charger is connected to indicate that the mobile terminal starts charging, and at the moment, a mask charging video corresponding to the current charging mode is generated according to the mask dynamic effect and the original charging video corresponding to the current charging mode, so that the mask charging video is displayed on the mobile terminal. As can be understood by those skilled in the art, when there is only one original charging video, each charging mode may correspond to the original charging video; when the original charging video is multiple, different charging modes may correspond to different original charging videos.
In step S203, the mask charging video and the charging progress related information corresponding to the current charging mode are displayed.
Specifically, after a mask charging video is generated, the mobile terminal plays the mask charging video corresponding to the current charging mode and the charging progress related information, so that a user can watch the mask charging video and know the current charging progress. When different charging modes correspond to different original charging videos, different mask charging videos also correspond to different charging modes, and therefore a user can know the current charging mode by watching the mask charging videos. The display form of the information related to the charging progress may be a form preset by the mobile terminal, or may be generated according to a received user instruction. Optionally, the mobile terminal cyclically plays the mask charging video corresponding to the current charging mode.
Optionally, the display form of the information related to the charging progress is generated according to a drawing of a received user instruction. That is, the display form is customized by the user, and may be a text, an icon, a combination of a text and an icon, an animation, or another display form customized by the user, and the specific display form of the information related to the charging progress is not limited in this embodiment.
In an implementation manner, referring to fig. 4, fig. 4 is a flowchart of another charging video display method provided by an embodiment of the present invention, where the displaying the mask charging video and the charging progress related information corresponding to the current charging mode includes:
step S2031, displaying the mask charging video and the charging progress related information corresponding to the current charging mode on an upper layer and displaying the mask charging video on a lower layer, wherein the charging progress related information is displayed on the upper layer.
In the embodiment, the charging progress related information and the mask charging video are displayed in a layered mode, and the development efficiency of the charging video display method can be improved.
For example, an upper layer displaying information related to a charging progress is a simple animation layer, a lower layer displaying a mask charging video is a video animation layer, and referring to fig. 5a to 5c, fig. 5a to 5c are schematic diagrams 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.
Optionally, when a video refresh signal is available, drawing the mask charging video displayed on the lower layer once; and when a vertical synchronous signal exists, drawing the charging progress related information displayed on the upper layer once.
In an implementation manner, referring to fig. 6, fig. 6 is a flowchart of a charging video display method according to another embodiment of the present invention, after acquiring a mask animation effect and at least one original charging video, the method further includes:
step S204, respectively putting the mask dynamic effect and each original charging video into different video tracks;
when the charger is detected to be connected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode comprises the following steps:
step S2021, when the charger is detected to be connected, the mask dynamic effect is synthesized with the original charging video corresponding to the current charging mode in a video track mode, and a mask charging video corresponding to the current charging mode is generated.
In the embodiment, after acquiring a mask dynamic effect and at least one original charging video, the mobile terminal puts the mask dynamic effect and each original charging video into different video tracks respectively; and when the connection of a charger is detected, synthesizing the mask dynamic effect with the original charging video corresponding to the current charging mode in a video track mode to generate a mask charging video corresponding to the current charging mode.
Continuing to use the original charging videos including the slow charging animation video, the fast charging animation video and the super fast charging animation video for example, fig. 7 is a schematic diagram of a generation manner of the mask charging video provided by an embodiment of the present invention, wherein a mask moving effect, the slow charging animation video, the fast charging animation video and the super fast charging animation video are respectively placed in a video track from one position to four positions, and when the mobile terminal detects that the charger is connected, the mask moving effect from the one position is synthesized with the original charging video corresponding to the current charging mode of the mobile terminal in the videos from the second position to the fourth position to generate the mask charging video corresponding to the current charging mode.
In an implementation manner, referring to fig. 8, fig. 8 is a flowchart of a charging video display method according to another embodiment of the present invention, the method further includes:
step S205, when the switching of the charging mode is detected, updating the mask charging video to a mask charging video corresponding to the switched charging mode.
In this embodiment, when the mobile terminal detects the switching of the charging mode, the mask charging video is correspondingly updated to the mask charging video corresponding to the charging mode after the switching. For example, when the charging mode is switched from the super fast charging mode to the fast charging mode, the mask charging video corresponding to the super fast charging mode is correspondingly switched to the mask charging video corresponding to the fast charging mode. Therefore, the user can know the current charging mode through the mask charging video.
Optionally, the mask dynamic effect is synthesized with the original charging video corresponding to the switched charging mode in a video track manner, so as to generate a mask charging video corresponding to the switched charging mode.
In an implementation manner, referring to fig. 9, fig. 9 is a flowchart of a charging video display method according to another embodiment of the present invention, where when a charging mode switch is detected, updating the masked charging video to a masked charging video corresponding to the switched charging mode includes:
step S2051, when the switching of the charging mode is detected, updating the mask charging video corresponding to the charging mode before the switching into the mask charging video in the transition stage;
step S2052, the mask charging video in the transition stage is updated to the mask charging video corresponding to the switched charging mode.
In this embodiment, when detecting the switching of the charging mode, the mobile terminal first updates the mask charging video corresponding to the charging mode before switching to the mask charging video in the transition stage; and then, updating the mask charging video in the transition stage into the mask charging video corresponding to the switched charging mode. The updating process of the mask charging video is more natural through the mask charging video in the transition stage, and the watching experience of a user is improved.
Optionally, the mask charging video in the transition stage is generated by synthesizing the mask dynamic effect with the original charging video respectively corresponding to the charging modes before and after switching.
Specifically, referring to fig. 10, fig. 10 is a schematic diagram of a generation manner of a mask charging video in a transition phase according to an embodiment of the present invention. And when the mobile terminal detects the switching of the charging mode, synthesizing the mask dynamic effect with the original charging video respectively corresponding to the charging modes before and after the switching to generate the mask charging video in the transition stage.
Taking the mask moving effect as an alpha mask moving effect, for example, when the charging mode transits from slow charging to super fast charging, a third transparent value of a certain third pixel point in a frame picture of the alpha mask moving effect at a certain moment in the transition process is alpha, a fourth transparent value of a fourth pixel point corresponding to the third pixel point in the frame picture of the slow charging mode at the moment is a, taking the value range of the transparent values as 0-1 as an example, a fifth transparent value of a fifth pixel point corresponding to the third pixel point in the frame picture of the super fast charging mode at the moment is set as (1-a), and then the pixel value RGBA of a sixth pixel point corresponding to the third pixel point in the frame picture of the mask charging video at the moment transition stage is set as (1-a)6The calculation formula of (2) is as follows:
RGBA6alpha x (a x trickle RGB values + (1-a) x super fast RGB values)
And repeating the process of generating the pixel value of the sixth pixel point to obtain the mask charging video in the transition stage.
In the embodiment of the invention, the mobile terminal obtains the mask dynamic effect and at least one original charging video; when detecting that a charger is connected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode; and displaying the mask charging video and the charging progress related information corresponding to the current charging mode. Because the mask is flexible and changeable in dynamic effect, the mask charging video generated by the mask dynamic effect processing is good in rendering effect, flexible in embodiment mode and capable of improving the use experience of users.
Example two
An embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes a memory, a processor, and a computer program (not shown in the figure) stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the charging video display method according to the first embodiment of the present invention are implemented.
The mobile terminal of the embodiment of the present invention and the charging video display method of the first embodiment belong to the same concept, and specific implementation processes thereof are detailed in corresponding method embodiments, and technical features in the method embodiments are correspondingly applicable in the mobile terminal embodiments, and are not described herein again.
EXAMPLE III
An embodiment of the present invention further provides a computer-readable storage medium, where a charging video display program is stored on the computer-readable storage medium, and when the charging video display program is executed by a processor, the steps of the charging video display method according to the first embodiment of the present invention are implemented.
The computer-readable storage medium of the embodiment of the present invention and the method of the first embodiment belong to the same concept, and specific implementation processes thereof are detailed in the corresponding method embodiments, and technical features in the method embodiments are correspondingly applicable in the computer-readable storage medium embodiments, which are not described herein again.
The corresponding technical features in the above embodiments may be used with each other without causing contradiction in the schemes or without being implementable.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A charging video display method, the method comprising:
acquiring a mask dynamic effect and at least one original charging video;
when the charger is detected to be connected, generating a mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode;
and displaying the mask charging video and the charging progress related information corresponding to the current charging mode.
2. The charging video display method according to claim 1, wherein the displaying the mask charging video and the charging progress related information corresponding to the current charging mode comprises:
and displaying the mask charging video and the charging progress related information corresponding to the current charging mode in an upper layer and a lower layer, wherein the charging progress related information is displayed on the upper layer, and the mask charging video is displayed on the lower layer.
3. The charging video display method according to claim 1, wherein the mask animation effect is the same as the playing time of the original charging video.
4. The charging video display method according to any one of claims 1 to 3, wherein the mask animation effect is the same as a shape and a size of a video picture of the original charging video.
5. The charging video display method according to claim 4, further comprising, after the acquiring the mask animation effect and the at least one original charging video:
respectively placing the mask dynamic effect and each original charging video into different video tracks;
the generating of the mask charging video corresponding to the current charging mode according to the mask dynamic effect and the original charging video corresponding to the current charging mode comprises:
and synthesizing the mask moving effect with the original charging video corresponding to the current charging mode in a video track mode to generate a mask charging video corresponding to the current charging mode.
6. The charging video display method of claim 4, further comprising, after the method:
and when the switching of the charging mode is detected, updating the mask charging video into a mask charging video corresponding to the switched charging mode.
7. The charging video display method according to claim 6, wherein the updating the masked charging video to a masked charging video corresponding to the switched charging mode includes:
updating the mask charging video corresponding to the charging mode before switching into the mask charging video in the transition stage;
and updating the mask charging video in the transition stage into a mask charging video corresponding to the switched charging mode.
8. The charging video display method according to claim 7, wherein the mask charging video in the transition phase is generated by synthesizing the mask animation effect with the original charging video respectively corresponding to the charging modes before and after the switching.
9. A mobile terminal, characterized in that it comprises a memory, a processor and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the charging video display method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a charging video display program which, when executed by a processor, implements the steps of the charging video display method according to any one of claims 1 to 8.
CN202111615723.9A 2021-12-27 2021-12-27 Charging video display method, mobile terminal and storage medium Active CN114500726B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111615723.9A CN114500726B (en) 2021-12-27 2021-12-27 Charging video display method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111615723.9A CN114500726B (en) 2021-12-27 2021-12-27 Charging video display method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114500726A true CN114500726A (en) 2022-05-13
CN114500726B CN114500726B (en) 2024-08-23

Family

ID=81495819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111615723.9A Active CN114500726B (en) 2021-12-27 2021-12-27 Charging video display method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114500726B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063748A1 (en) * 2014-09-01 2016-03-03 Samsung Electronics Co., Ltd. Displaying method of electronic device and electronic device thereof
CN105635844A (en) * 2016-01-12 2016-06-01 腾讯科技(深圳)有限公司 Method and device for playing video in browser
CN106468998A (en) * 2016-09-23 2017-03-01 华为技术有限公司 A kind of display packing of information and terminal
CN109302619A (en) * 2018-09-18 2019-02-01 北京奇艺世纪科技有限公司 A kind of information processing method and device
CN111787240A (en) * 2019-04-28 2020-10-16 北京京东尚科信息技术有限公司 Video generation method, device and computer readable storage medium
CN111954060A (en) * 2019-05-17 2020-11-17 上海哔哩哔哩科技有限公司 Barrage mask rendering method, computer device and readable storage medium
CN112637670A (en) * 2020-12-15 2021-04-09 上海哔哩哔哩科技有限公司 Video generation method and device
CN113747227A (en) * 2021-09-09 2021-12-03 北京有竹居网络技术有限公司 Video playing method and device, storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063748A1 (en) * 2014-09-01 2016-03-03 Samsung Electronics Co., Ltd. Displaying method of electronic device and electronic device thereof
CN105635844A (en) * 2016-01-12 2016-06-01 腾讯科技(深圳)有限公司 Method and device for playing video in browser
CN106468998A (en) * 2016-09-23 2017-03-01 华为技术有限公司 A kind of display packing of information and terminal
CN109302619A (en) * 2018-09-18 2019-02-01 北京奇艺世纪科技有限公司 A kind of information processing method and device
CN111787240A (en) * 2019-04-28 2020-10-16 北京京东尚科信息技术有限公司 Video generation method, device and computer readable storage medium
CN111954060A (en) * 2019-05-17 2020-11-17 上海哔哩哔哩科技有限公司 Barrage mask rendering method, computer device and readable storage medium
CN112637670A (en) * 2020-12-15 2021-04-09 上海哔哩哔哩科技有限公司 Video generation method and device
CN113747227A (en) * 2021-09-09 2021-12-03 北京有竹居网络技术有限公司 Video playing method and device, storage medium and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
吴迪;: "全面解析Premiere Pro中的蒙版技术及应用实例", 电视字幕(特技与动画), no. 07, 15 July 2009 (2009-07-15), pages 43 - 46 *
张继梅;: "如何使用蒙版的技巧美化多媒体影视作品", 电脑知识与技术, no. 02, 15 January 2020 (2020-01-15) *
郭建璞;: "Adobe Premiere CS4中数字视频合成技术的实现", 计算机与现代化, no. 06 *
郭建璞;: "Adobe Premiere CS4中数字视频合成技术的实现", 计算机与现代化, no. 06, 31 December 2011 (2011-12-31), pages 25 - 28 *

Also Published As

Publication number Publication date
CN114500726B (en) 2024-08-23

Similar Documents

Publication Publication Date Title
US11675442B2 (en) Image processing method and flexible-screen terminal
CN107817939B (en) Image processing method and mobile terminal
CN107748640B (en) Screen-off display method and mobile terminal
CN109151367B (en) Video call method and terminal equipment
CN109032486B (en) Display control method and terminal equipment
CN111026316A (en) Image display method and electronic equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN107103581B (en) Image reflection processing method and device and computer readable medium
CN108174109B (en) Photographing method and mobile terminal
CN110928407B (en) Information display method and device
CN107734172B (en) Information display method and mobile terminal
CN107153500B (en) Method and equipment for realizing image display
CN111158817A (en) Information processing method and electronic equipment
CN110022445B (en) Content output method and terminal equipment
CN109445589B (en) Multimedia file playing control method and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment
CN111158815A (en) Dynamic wallpaper fuzzy method, terminal and computer readable storage medium
CN110851219A (en) Information processing method and electronic equipment
CN108551562A (en) A kind of method and mobile terminal of video communication
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN110213437B (en) Editing method and mobile terminal
CN109062483B (en) Image processing method and terminal equipment
CN110781331A (en) Picture display method, electronic equipment and computer readable storage medium
CN108182041B (en) Data display method and mobile terminal
CN110519544B (en) Video call method and electronic equipment

Legal Events

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