CN113254137B - Dynamic image display method and device, storage medium and mobile terminal - Google Patents

Dynamic image display method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN113254137B
CN113254137B CN202110635478.1A CN202110635478A CN113254137B CN 113254137 B CN113254137 B CN 113254137B CN 202110635478 A CN202110635478 A CN 202110635478A CN 113254137 B CN113254137 B CN 113254137B
Authority
CN
China
Prior art keywords
image
dynamic image
frame
target
dynamic
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.)
Active
Application number
CN202110635478.1A
Other languages
Chinese (zh)
Other versions
CN113254137A (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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202110635478.1A priority Critical patent/CN113254137B/en
Publication of CN113254137A publication Critical patent/CN113254137A/en
Application granted granted Critical
Publication of CN113254137B publication Critical patent/CN113254137B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The embodiment of the application provides a dynamic image display method, which comprises the following steps: taking a target dynamic image to be displayed; displaying the initial frame of the target dynamic image and acquiring the initial display time; setting the moment when the dynamic image refreshing is monitored as a target refreshing moment; and determining the position of a target image frame in each dynamic image based on the target refreshing time and the initial display time, determining a dynamic image to be updated in the currently displayed dynamic image, and updating the dynamic image to be updated. According to the method and the device for refreshing the dynamic images, when the plurality of dynamic images are displayed in the mobile terminal, all the dynamic images displayed on the current interface are checked, the dynamic images needing to be refreshed are refreshed, and the problem that excessive dynamic images are refreshed simultaneously, so that the problem of blocking or frame dropping is solved.

Description

Dynamic image display method and device, storage medium and mobile terminal
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for displaying a dynamic image, a storage medium, and a mobile terminal.
Background
With the development of communication technology, the application of animation effect in daily social application is more and more abundant, and in the prior art, the problem that the dynamic images are blocked or dropped in the playing process due to too many dynamic images refreshed simultaneously is easily generated in the scene where a plurality of dynamic images are played simultaneously.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a dynamic image display method, a dynamic image display device, a storage medium and a mobile terminal, when a plurality of dynamic images are displayed in the mobile terminal, all the dynamic images displayed on a current interface can be checked according to the refreshing condition of the dynamic images, the dynamic images needing to be refreshed are refreshed, and the problem that too many dynamic images are refreshed simultaneously so that the dynamic images are stuck or dropped is solved.
The embodiment of the application provides a dynamic image display method, which comprises the following steps:
responding to a dynamic image display instruction, acquiring an image frame set of a target dynamic image to be displayed and inter-frame interval information, wherein the inter-frame interval information comprises time interval information between the image frames of the corresponding dynamic image and display sequence information of the image frames;
displaying a starting frame of the target dynamic image on a terminal based on the image frame set, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently if a plurality of dynamic images displayed currently by the terminal are provided;
if the dynamic image displayed by the terminal is monitored to be refreshed, setting the moment when the dynamic image is monitored to be refreshed as a target refreshing moment;
obtaining a refreshing interval duration based on the target refreshing time and the initial display time;
determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal, wherein the target image frame is an image frame which should be displayed by the dynamic image after the refreshing interval duration passes at the initial display time;
determining a dynamic image to be updated in a currently displayed dynamic image according to the position of the target image frame, wherein the dynamic image to be updated is a dynamic image with the position of the target image frame inconsistent with the position of the currently displayed image frame;
and updating the dynamic image to be updated based on the position of the target image frame.
In some embodiments, if it is monitored that the dynamic image displayed by the terminal is refreshed, setting the time when the dynamic image is refreshed to be a target refresh time includes:
if an image refreshing completion notice is monitored, determining that the dynamic image refreshing displayed by the terminal is monitored, and setting the moment when the image refreshing completion notice is monitored as the target refreshing moment, wherein the image refreshing completion notice is notice information generated after the updating of the currently displayed dynamic image is completed.
In some embodiments, the determining, according to the refresh interval duration, the initial display time, and inter-frame interval information of a dynamic image currently displayed by the terminal, a position of a target image frame in each dynamic image includes:
and according to the initial display time and the inter-frame interval information, acquiring the position of a display image frame displayed by a dynamic image currently displayed by the terminal at the initial display time, and acquiring an image frame of the display image frame at the position after the refreshing interval duration as the target image frame.
In some embodiments, after acquiring the image frame set of the target dynamic image to be displayed and the inter-frame space information in response to the dynamic image display instruction, the method includes:
creating a time point array for each dynamic image displayed by the terminal, wherein the time point array is a group of ordered sets, the time points forming the time point array are consistent with the number of the image frames of the dynamic image, and the value of the time point is determined by the relative position of the image frame corresponding to the time point relative to the initial frame of the dynamic image.
In some embodiments, the determining, according to the refresh interval duration, the initial display time, and inter-frame interval information of a dynamic image currently displayed by the terminal, a position of a target image frame in each dynamic image includes:
determining an initial display time point of the dynamic image according to the time point array of the dynamic image currently displayed by the terminal at the initial display time, wherein the initial display time point is a time point corresponding to the image frame displayed at the initial display time in the time point array of the dynamic image;
and acquiring a time point of the time point array after the refreshing interval time at the initial display time point as a target image time point.
In some embodiments, when the terminal has more than one user interface, the same start time is used for the dynamic images displayed on the same user interface.
In some embodiments, if a newly added dynamic image needs to be displayed, the newly added dynamic image is obtained and displayed;
and displaying the initial frame of the target dynamic image on the terminal by the newly added dynamic image, and setting the display time of the initial frame of the newly added dynamic image as the initial display time of each dynamic image displayed currently.
An embodiment of the present application further provides a dynamic image display device, the device includes:
a dynamic image acquisition module: responding to a dynamic image display instruction, acquiring an image frame set of a target dynamic image to be displayed and inter-frame interval information, wherein the inter-frame interval information comprises time interval information between the image frames of the corresponding dynamic image and display sequence information of the image frames;
a dynamic image display module: displaying a starting frame of the target dynamic image on a terminal based on the image frame set, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently if a plurality of dynamic images displayed currently by the terminal are provided;
the image refreshing monitoring module: if the dynamic image displayed by the terminal is monitored to be refreshed, setting the moment when the dynamic image is monitored to be refreshed as a target refreshing moment;
a target image acquisition module: obtaining a refreshing interval duration based on the target refreshing time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal, wherein the target image frame is the image frame which should be displayed by the dynamic image after the refreshing interval duration passes at the initial display time;
an image comparison module: determining a dynamic image to be updated in the currently displayed dynamic image according to the position of the target image frame, wherein the dynamic image to be updated is a dynamic image with the position of the target image frame inconsistent with the position of the currently displayed image frame;
an image refresh module: and updating the dynamic image to be updated based on the position of the target image frame.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is enabled to execute the steps in the above dynamic image display method.
The embodiment of the present application further provides a mobile terminal, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the steps in the dynamic image display method by calling the computer program stored in the memory.
The method comprises the steps of responding to a dynamic image display instruction, and obtaining an image frame set and inter-frame space information of a target dynamic image to be displayed; displaying a starting frame of the target dynamic image on a terminal based on the image frame set, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently; if the dynamic image displayed by the terminal is monitored to be refreshed, setting the moment when the dynamic image is monitored to be refreshed as a target refreshing moment; obtaining a refreshing interval duration based on the target refreshing time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal; determining a dynamic image to be updated in the currently displayed dynamic image according to the position of the target image frame; and updating the dynamic image to be updated based on the position of the target image frame. According to the embodiment of the application, when a plurality of dynamic images are displayed in the mobile terminal, all the dynamic images displayed on the current interface can be checked according to the refreshing condition of the dynamic images, the dynamic images needing to be refreshed are refreshed, and the problem that too many dynamic images are refreshed simultaneously and therefore blocking or frame dropping is caused is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of a dynamic image display method according to an embodiment of the present disclosure.
Fig. 2 is a schematic view of a first structure of a dynamic image display device according to an embodiment of the present disclosure.
Fig. 3 is a second structural schematic diagram of the dynamic image display apparatus according to the embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a dynamic image display method, which can be applied to a mobile terminal. The mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 1, fig. 1 is a schematic flow chart of a dynamic image display method according to an embodiment of the present disclosure. The dynamic image display method is applied to a mobile terminal, and the mobile terminal is provided with a screen, a camera and the like. The method may comprise the steps of:
step 101, responding to a dynamic image display instruction, acquiring an image frame set and inter-frame interval information of a target dynamic image to be displayed.
Specifically, in response to a dynamic image display instruction, an image frame set of a target dynamic image to be displayed and inter-frame interval information are acquired, where the inter-frame interval information includes time interval information between image frames of corresponding dynamic images and display sequence information of the image frames.
In some embodiments, after acquiring the image frame set of the target dynamic image to be displayed and the inter-frame space information in response to the dynamic image display instruction, the method includes:
creating a time point array for each dynamic image displayed by the terminal, wherein the time point array is a group of ordered sets, the time points forming the time point array are consistent with the number of the image frames of the dynamic image, and the value of the time point is determined by the relative position of the image frame corresponding to the time point relative to the initial frame of the dynamic image.
And 102, displaying a starting frame of the target dynamic image, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently.
Specifically, a starting frame of the target dynamic image is displayed on the terminal based on the image frame set, and if a plurality of dynamic images are currently displayed on the terminal, the display time of the starting frame of the target dynamic image is set as the starting display time of each currently displayed dynamic image.
In some embodiments, if a newly added dynamic image needs to be displayed, the newly added dynamic image is obtained and displayed;
and displaying the initial frame of the target dynamic image on the terminal by the newly added dynamic image, and setting the display time of the initial frame of the newly added dynamic image as the initial display time of each dynamic image displayed currently.
In some embodiments, if the terminal has more than one user interface, the same start time is used for the dynamic images displayed on the same user interface.
And 103, if the dynamic image displayed by the terminal is monitored to be refreshed, setting the moment when the dynamic image is monitored to be refreshed as a target refreshing moment.
Specifically, in the moving image displayed on the terminal, if it is detected that the moving image has completed refreshing, the time when the completion of refreshing is detected is set as a target refreshing time, where the target refreshing time is a time when the moving image displayed on the terminal may be refreshed next time.
In some embodiments, if it is monitored that the dynamic image displayed by the terminal is refreshed, setting the time when the dynamic image is refreshed to be a target refresh time includes:
if the notification of finishing the image refreshing is monitored, determining to monitor the refreshing of the dynamic image displayed by the terminal, and setting the moment of monitoring the notification of finishing the image refreshing as the target refreshing moment, wherein the notification of finishing the image refreshing is notification information generated after the updating of the dynamic image displayed at present is finished.
And 104, obtaining the refreshing interval duration based on the target refreshing time and the starting display time.
Specifically, after the target refreshing time and the starting display time are obtained, a time interval between the target display time and the starting display time is obtained, where the time interval is the refreshing interval duration.
And 105, determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal.
Specifically, the position of a target image frame in each dynamic image is determined according to the refresh interval duration, the initial display time, and inter-frame interval information of the dynamic image currently displayed by the terminal, where the target image frame is an image frame that should be displayed by the dynamic image after the refresh interval duration passes at the initial display time.
In some embodiments, the determining, according to the refresh interval duration, the initial display time, and inter-frame interval information of a dynamic image currently displayed by the terminal, a position of a target image frame in each dynamic image includes:
and according to the initial display time and the inter-frame interval information, acquiring the position of a display image frame displayed by a dynamic image currently displayed by the terminal at the initial display time, and acquiring an image frame of the display image frame at the position after the refreshing interval duration as the target image frame.
In some embodiments, the determining, according to the refresh interval duration, the initial display time, and inter-frame interval information of a dynamic image currently displayed by the terminal, a position of a target image frame in each dynamic image includes:
determining an initial display time point of the dynamic image according to the time point array of the dynamic image currently displayed by the initial display time terminal, wherein the initial display time point is a time point corresponding to the image frame displayed at the initial display time in the time point array of the dynamic image;
and acquiring a time point of the time point array after the refreshing interval time at the initial display time point as a target image time point.
And 106, determining a dynamic image to be updated in the currently displayed dynamic image according to the position of the target image frame.
Specifically, a dynamic image to be updated in the currently displayed dynamic image is determined according to the position of the target image frame, where the dynamic image to be updated is a dynamic image in which the position of the target image frame is inconsistent with the position of the currently displayed image frame.
For example, based on the image frame set, acquiring the position of the target image frame of the dynamic image in the image frame set, acquiring the position of the presentation image frame in the image frame set, and comparing whether the two are consistent;
if the positions of the target image frame and the display image frame in the image frame set are not consistent, the target display frame and the display image frame are judged to be different image frames, and the dynamic image does not need to be refreshed.
If the positions of the target image frame and the display image frame in the image frame set are consistent, the target display frame and the display image frame are judged to be the same image frame, and the dynamic image does not need to be refreshed.
And 107, updating the dynamic image to be updated based on the position of the target image frame.
Specifically, the target image frame is set as a display image frame of the dynamic image to be updated based on the position of the target image frame.
For example, in all the dynamic images currently displayed by the terminal, after the dynamic image to be updated is updated, an image refresh completion notification is sent, where the image refresh completion notification is notification information generated after the currently displayed dynamic image is updated.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In specific implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the dynamic image display method provided in the embodiment of the present application obtains the image frame set and the inter-frame space information of the target dynamic image to be displayed by responding to the dynamic image display instruction; displaying a starting frame of the target dynamic image, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently; if the dynamic image displayed by the terminal is monitored to be refreshed, setting the moment when the dynamic image is monitored to be refreshed as a target refreshing moment; obtaining a refreshing interval duration based on the target refreshing time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal; determining a dynamic image to be updated in the currently displayed dynamic image according to the position of the target image frame; and updating the dynamic image to be updated based on the position of the target image frame. According to the embodiment of the application, when a plurality of dynamic images are displayed in the mobile terminal, all the dynamic images displayed on the current interface can be checked according to the refreshing condition of the dynamic images, the dynamic images needing to be refreshed are refreshed, and the problem that too many dynamic images are refreshed simultaneously and therefore blocking or frame dropping is caused is solved.
The embodiment of the application further provides a dynamic image display device, the dynamic image display device can be integrated in a mobile terminal, and the mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 2, fig. 2 is a first structural schematic diagram of a dynamic image display apparatus according to an embodiment of the present application. The moving picture presentation apparatus 30 may include:
a dynamic image obtaining module 31, configured to, in response to a dynamic image display instruction, obtain an image frame set of a target dynamic image to be displayed and inter-frame interval information, where the inter-frame interval information includes time interval information between image frames of corresponding dynamic images and display sequence information of the image frames;
a dynamic image display module 32, configured to display a start frame of the target dynamic image on a terminal based on the image frame set, and if there are multiple dynamic images currently displayed by the terminal, set a display time of the start frame of the target dynamic image as a start display time of each currently displayed dynamic image;
an image refresh monitoring module 33, configured to set, if it is monitored that a dynamic image displayed by the terminal is refreshed, a time at which the dynamic image is refreshed as a target refresh time;
a target image obtaining module 34, configured to obtain a refresh interval duration based on the target refresh time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal, wherein the target image frame is the image frame which should be displayed by the dynamic image after the refreshing interval duration passes at the initial display time;
an image comparison module 35, configured to determine, according to the position of the target image frame, a to-be-updated dynamic image in the currently displayed dynamic image, where the to-be-updated dynamic image is a dynamic image in which the position of the target image frame is inconsistent with the position of the currently displayed image frame;
and an image refreshing module 36, configured to update the dynamic image to be updated based on the position of the target image frame.
In some embodiments, the dynamic image obtaining module 31, configured to obtain, in response to a dynamic image display instruction, an image frame set of a target dynamic image to be displayed and inter-frame space information, includes:
creating a time point array for each dynamic image displayed by the terminal, wherein the time point array is a group of ordered sets, the time points forming the time point array are consistent with the number of the image frames of the dynamic image, and the value of the time point is determined by the relative position of the image frame corresponding to the time point relative to the initial frame of the dynamic image.
In some embodiments, the dynamic image displaying module 32 is configured to, if a newly added dynamic image needs to be displayed, obtain and display the newly added dynamic image;
and the newly added dynamic image displays the initial frame of the target dynamic image on a terminal, and the display time of the initial frame of the newly added dynamic image is set as the initial display time of each dynamic image displayed currently.
In some embodiments, the dynamic image displaying module 32 is configured to use the same starting time for the dynamic images displayed on the same user interface if the terminal has more than one user interface.
In some embodiments, the image refresh monitoring module 33 is configured to, if it is monitored that the dynamic image displayed on the terminal is refreshed, set a time when the dynamic image is monitored as a target refresh time, and includes:
if the notification of finishing the image refreshing is monitored, determining to monitor the refreshing of the dynamic image displayed by the terminal, and setting the moment of monitoring the notification of finishing the image refreshing as the target refreshing moment, wherein the notification of finishing the image refreshing is notification information generated after the updating of the dynamic image displayed at present is finished.
In some embodiments, the target image obtaining module 34 is configured to determine the position of the target image frame in each dynamic image according to the refresh interval duration, the initial display time, and the inter-frame interval information of the dynamic image currently displayed by the terminal, including:
and acquiring the position of a display image frame displayed by a dynamic image currently displayed by the terminal at the initial display time according to the initial display time and the inter-frame interval information, and acquiring the image frame of the display image frame at the position after the refreshing interval duration as the target image frame.
In some embodiments, the target image obtaining module 34 is configured to determine a position of a target image frame in each dynamic image according to the refresh interval duration, the initial display time, and inter-frame interval information of a dynamic image currently displayed by the terminal, and includes:
determining an initial display time point of the dynamic image according to the time point array of the dynamic image currently displayed by the initial display time terminal, wherein the initial display time point is a time point corresponding to the image frame displayed at the initial display time in the time point array of the dynamic image;
and acquiring a time point of the time point array after the refreshing interval time at the initial display time point as a target image time point.
As can be seen from the above, the dynamic image display apparatus 30 provided in the embodiment of the present application responds to the dynamic image display instruction through the dynamic image obtaining module 31, and obtains the image frame set and the inter-frame space information of the target dynamic image to be displayed; the dynamic image display module 32 is configured to display a start frame of the target dynamic image on a terminal based on the image frame set, and set a display time of the start frame of the target dynamic image as a start display time of each currently displayed dynamic image; if monitoring that the dynamic image displayed by the terminal is refreshed, the image refreshing monitoring module 33 sets the moment of monitoring that the dynamic image is refreshed as a target refreshing moment; the target image obtaining module 34 is configured to obtain a refresh interval duration based on the target refresh time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal; the image comparison module 35 determines a dynamic image to be updated in the currently displayed dynamic image according to the position of the target image frame; the image refreshing module 36 updates the dynamic image to be updated based on the position of the target image frame. According to the embodiment of the application, when a plurality of dynamic images are displayed in the mobile terminal, all the dynamic images displayed on the current interface can be checked according to the refreshing condition of the dynamic images, the dynamic images needing to be refreshed are refreshed, and the problem that excessive dynamic images are refreshed simultaneously so that the images are stuck or the frames are dropped is solved.
Referring to fig. 3, fig. 3 is a second structural diagram of a dynamic image display apparatus according to an embodiment of the present disclosure, in which the dynamic image display apparatus 30 includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a dynamic image acquiring module 31, a dynamic image displaying module 32, an image refreshing monitoring module 33, a target image acquiring module 34, an image comparing module 35, and an image refreshing module 36. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 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. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
a dynamic image obtaining module 31, configured to, in response to a dynamic image display instruction, obtain an image frame set of a target dynamic image to be displayed and inter-frame interval information, where the inter-frame interval information includes time interval information between image frames of corresponding dynamic images and display sequence information of the image frames;
a dynamic image display module 32, configured to display a start frame of the target dynamic image on a terminal based on the image frame set, and if there are multiple dynamic images currently displayed by the terminal, set a display time of the start frame of the target dynamic image as a start display time of each currently displayed dynamic image;
an image refresh monitoring module 33, configured to set, if it is monitored that a dynamic image displayed by the terminal is refreshed, a time at which the dynamic image is refreshed as a target refresh time;
a target image obtaining module 34, configured to obtain a refresh interval duration based on the target refresh time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal, wherein the target image frame is the image frame which should be displayed by the dynamic image after the refreshing interval duration passes at the initial display time;
an image comparison module 35, configured to determine, according to the position of the target image frame, a to-be-updated dynamic image in the currently displayed dynamic image, where the to-be-updated dynamic image is a dynamic image in which the position of the target image frame is inconsistent with the position of the currently displayed image frame;
and an image refreshing module 36, configured to update the dynamic image to be updated based on the position of the target image frame.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The embodiment of the application also provides the mobile terminal. The mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, where the mobile terminal may be used to implement the dynamic image displaying method provided in the foregoing embodiment. The terminal 1200 may be a smart phone or a tablet computer.
As shown in fig. 4, the terminal 1200 may include components such as an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one shown) processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal 1200 configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the dynamic image display method in the above embodiment, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 can further include memory located remotely from the processor 180, which can be connected to the terminal 1200 over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 1200, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. The display unit 140 is a screen in the above embodiment.
The terminal 1200 can also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. As for other sensors such as barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured on the terminal 1200, they will not be described herein again.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal 1200.
The terminal 1200, which can assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 170 (e.g., wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal 1200 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal 1200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit 140 of the terminal 1200 is a touch screen display, and the terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
responding to a dynamic image display instruction, and acquiring an image frame set and inter-frame interval information of a target dynamic image to be displayed; displaying a starting frame of the target dynamic image, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently; if the dynamic image displayed by the terminal is monitored to be refreshed, setting the moment when the dynamic image is monitored to be refreshed as a target refreshing moment; obtaining a refreshing interval duration based on the target refreshing time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal; determining a dynamic image to be updated in the currently displayed dynamic image according to the position of the target image frame; and updating the dynamic image to be updated based on the position of the target image frame.
In some embodiments, the processor 180 is configured to, if it is monitored that the dynamic image displayed on the terminal is refreshed, set a time when the dynamic image is monitored as a target refresh time, and includes:
if the notification of finishing the image refreshing is monitored, determining to monitor the refreshing of the dynamic image displayed by the terminal, and setting the moment of monitoring the notification of finishing the image refreshing as the target refreshing moment, wherein the notification of finishing the image refreshing is notification information generated after the updating of the dynamic image displayed at present is finished.
In some embodiments, the processor 180 is configured to determine the position of the target image frame in each dynamic image according to the refresh interval duration, the initial display time, and the inter-frame interval information of the dynamic image currently displayed by the terminal, including:
and acquiring the position of a display image frame displayed by a dynamic image currently displayed by the terminal at the initial display time according to the initial display time and the inter-frame interval information, and acquiring the image frame of the display image frame at the position after the refreshing interval duration as the target image frame.
In some embodiments, the processor 180 is configured to, after said acquiring the image frame set of the target dynamic image to be displayed and the inter-frame space information in response to the dynamic image display instruction, include:
creating a time point array for each dynamic image displayed by the terminal, wherein the time point array is a group of ordered sets, the time points forming the time point array are consistent with the number of the image frames of the dynamic image, and the value of the time point is determined by the relative position of the image frame corresponding to the time point relative to the initial frame of the dynamic image.
In some embodiments, the processor 180 is configured to determine the position of the target image frame in each dynamic image according to the refresh interval duration, the starting display time, and the inter-frame interval information of the dynamic image currently displayed by the terminal, including:
determining an initial display time point of the dynamic image according to the time point array of the dynamic image currently displayed by the terminal at the initial display time, wherein the initial display time point is a time point corresponding to the image frame displayed at the initial display time in the time point array of the dynamic image;
and acquiring a time point of the time point array after the refreshing interval time at the initial display time point as a target image time point.
In some embodiments, the processor 180 is configured to use the same starting time for the dynamic images displayed on the same user interface if the terminal has more than one user interface.
In some embodiments, the processor 180 is configured to obtain and display the newly added dynamic image if the newly added dynamic image needs to be displayed;
and the newly added dynamic image displays the initial frame of the target dynamic image on a terminal, and the display time of the initial frame of the newly added dynamic image is set as the initial display time of each dynamic image displayed currently.
As can be seen from the above, an embodiment of the present application provides a terminal 1200, where the terminal 1200 performs the following steps: responding to a dynamic image display instruction, and acquiring an image frame set and inter-frame interval information of a target dynamic image to be displayed; displaying a starting frame of the target dynamic image, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently; if monitoring that the dynamic image displayed by the terminal is refreshed, setting the moment of monitoring the refreshing of the dynamic image as a target refreshing moment; obtaining a refreshing interval duration based on the target refreshing time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal; determining a dynamic image to be updated in the currently displayed dynamic image according to the position of the target image frame; and updating the dynamic image to be updated based on the position of the target image frame. According to the embodiment of the application, when a plurality of dynamic images are displayed in the mobile terminal, all the dynamic images displayed on the current interface can be checked according to the refreshing condition of the dynamic images, the dynamic images needing to be refreshed are refreshed, and the problem that excessive dynamic images are refreshed simultaneously so that the images are stuck or the frames are dropped is solved.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the dynamic image display method according to any of the above embodiments.
It should be noted that, for the dynamic image displaying method described in the present application, it can be understood by a person skilled in the art that all or part of the process for implementing the dynamic image displaying method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of a mobile terminal, and executed by at least one processor in the mobile terminal, and the process of executing the process may include the process of the embodiment of the dynamic image displaying method as described above. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the dynamic image display device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The method, the apparatus, the storage medium, and the mobile terminal for displaying a moving image provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A method for displaying a moving image, comprising:
responding to a dynamic image display instruction, acquiring an image frame set of a target dynamic image to be displayed and inter-frame interval information, wherein the inter-frame interval information comprises time interval information between the image frames of the corresponding dynamic image and display sequence information of the image frames;
displaying a starting frame of the target dynamic image on a terminal based on the image frame set, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently if a plurality of dynamic images displayed currently by the terminal are provided;
if monitoring that the dynamic image displayed by the terminal is refreshed, setting the moment of monitoring the refreshing of the dynamic image as a target refreshing moment;
obtaining a refreshing interval duration based on the target refreshing time and the initial display time;
determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal, wherein the target image frame is an image frame which should be displayed by the dynamic image after the refreshing interval duration passes at the initial display time;
determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal, wherein the determining comprises the following steps: according to the initial display time and the inter-frame interval information, acquiring the position of a display image frame displayed by a dynamic image currently displayed by the terminal at the initial display time in the image frame set, and acquiring an image frame at the position of the display image frame after the refreshing interval duration as the target image frame;
determining a dynamic image to be updated in a currently displayed dynamic image according to the position of the target image frame, wherein the dynamic image to be updated is a dynamic image with the position of the target image frame inconsistent with the position of the currently displayed image frame;
and updating the dynamic image to be updated based on the position of the target image frame.
2. The method of claim 1, wherein if the dynamic image refresh displayed on the terminal is monitored, setting the time when the dynamic image refresh is monitored as a target refresh time comprises:
if the notification of finishing the image refreshing is monitored, determining to monitor the refreshing of the dynamic image displayed by the terminal, and setting the moment of monitoring the notification of finishing the image refreshing as the target refreshing moment, wherein the notification of finishing the image refreshing is notification information generated after the updating of the dynamic image displayed at present is finished.
3. The method as claimed in claim 1, wherein the step of acquiring the image frame set and the inter-frame space information of the target dynamic image to be displayed in response to the dynamic image display instruction comprises:
creating a time point array for each dynamic image displayed by the terminal, wherein the time point array is a group of ordered sets, the time points forming the time point array are consistent with the number of the image frames of the dynamic image, and the value of the time point is determined by the relative position of the image frame corresponding to the time point relative to the initial frame of the dynamic image.
4. The method as claimed in claim 3, wherein said determining the position of the target image frame in each dynamic image according to the refresh interval duration, the initial display time, and the inter-frame interval information of the dynamic image currently displayed by the terminal comprises:
determining an initial display time point of the dynamic image according to the time point array of the dynamic image currently displayed by the terminal at the initial display time, wherein the initial display time point is a time point corresponding to the image frame displayed at the initial display time in the time point array of the dynamic image;
and acquiring a time point of the time point array after the refreshing interval time at the initial display time point as a target image time point.
5. The method of claim 1, further comprising:
and if the terminal has more than one user interface, the dynamic images displayed on the same user interface use the same initial display time.
6. The method of claim 1, comprising:
if the newly added dynamic image needs to be displayed, acquiring and displaying the newly added dynamic image;
and the newly added dynamic image displays the initial frame of the target dynamic image on a terminal, and the display time of the initial frame of the newly added dynamic image is set as the initial display time of each dynamic image displayed currently.
7. A dynamic image presentation device, the device comprising:
a dynamic image acquisition module: responding to a dynamic image display instruction, acquiring an image frame set of a target dynamic image to be displayed and inter-frame interval information, wherein the inter-frame interval information comprises time interval information between the image frames of the corresponding dynamic image and display sequence information of the image frames;
a dynamic image display module: displaying a starting frame of the target dynamic image on a terminal based on the image frame set, and setting the display time of the starting frame of the target dynamic image as the starting display time of each dynamic image displayed currently if a plurality of dynamic images displayed currently by the terminal are provided;
the image refreshing monitoring module: if the dynamic image displayed by the terminal is monitored to be refreshed, setting the moment when the dynamic image is monitored to be refreshed as a target refreshing moment;
a target image acquisition module: obtaining a refreshing interval duration based on the target refreshing time and the initial display time; determining the position of a target image frame in each dynamic image according to the refreshing interval duration, the initial display time and the inter-frame interval information of the dynamic image currently displayed by the terminal, wherein the target image frame is the image frame which should be displayed by the dynamic image after the refreshing interval duration passes at the initial display time;
the target image acquisition module: according to the initial display time and the inter-frame interval information, acquiring the position of a display image frame displayed by a dynamic image currently displayed by the terminal at the initial display time in the image frame set, and acquiring an image frame at the position of the display image frame after the refreshing interval duration as the target image frame;
an image comparison module: determining a dynamic image to be updated in a currently displayed dynamic image according to the position of the target image frame, wherein the dynamic image to be updated is a dynamic image with the position of the target image frame inconsistent with the position of the currently displayed image frame;
an image refresh module: and updating the dynamic image to be updated based on the position of the target image frame.
8. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the steps in the moving image presentation method according to any one of claims 1 to 6.
9. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the steps in the dynamic image display method according to any one of claims 1 to 6 by calling the computer program stored in the memory.
CN202110635478.1A 2021-06-08 2021-06-08 Dynamic image display method and device, storage medium and mobile terminal Active CN113254137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110635478.1A CN113254137B (en) 2021-06-08 2021-06-08 Dynamic image display method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110635478.1A CN113254137B (en) 2021-06-08 2021-06-08 Dynamic image display method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN113254137A CN113254137A (en) 2021-08-13
CN113254137B true CN113254137B (en) 2023-03-14

Family

ID=77186954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110635478.1A Active CN113254137B (en) 2021-06-08 2021-06-08 Dynamic image display method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN113254137B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009020A (en) * 2006-06-28 2008-01-17 Victor Co Of Japan Ltd Image display apparatus
CN106157917A (en) * 2016-08-31 2016-11-23 深圳市华星光电技术有限公司 A kind of drive device for display that can reduce power consumption and driving method thereof
CN107479278A (en) * 2017-07-06 2017-12-15 惠科股份有限公司 A kind of display panel and display device
CN108628562A (en) * 2017-03-23 2018-10-09 中科创达软件股份有限公司 A kind of screen refresh method and system
CN112435634A (en) * 2020-11-24 2021-03-02 歌尔光学科技有限公司 Image display method, image display apparatus, and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5954146B2 (en) * 2012-12-04 2016-07-20 富士通株式会社 Correction method, system, information processing apparatus, and correction program
JP7418101B2 (en) * 2019-07-26 2024-01-19 キヤノン株式会社 Information processing device, information processing method, and program
CN111427528B (en) * 2020-03-20 2023-07-25 北京字节跳动网络技术有限公司 Display method and device and electronic equipment
CN111782163B (en) * 2020-06-19 2023-03-28 杭州海康威视数字技术股份有限公司 Image display method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009020A (en) * 2006-06-28 2008-01-17 Victor Co Of Japan Ltd Image display apparatus
CN106157917A (en) * 2016-08-31 2016-11-23 深圳市华星光电技术有限公司 A kind of drive device for display that can reduce power consumption and driving method thereof
CN108628562A (en) * 2017-03-23 2018-10-09 中科创达软件股份有限公司 A kind of screen refresh method and system
CN107479278A (en) * 2017-07-06 2017-12-15 惠科股份有限公司 A kind of display panel and display device
CN112435634A (en) * 2020-11-24 2021-03-02 歌尔光学科技有限公司 Image display method, image display apparatus, and readable storage medium

Also Published As

Publication number Publication date
CN113254137A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US10853979B2 (en) Electronic device and method for displaying screen thereof
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN107977144B (en) Screen capture processing method and mobile terminal
CN110264935B (en) Display driving method, display driving integrated circuit and electronic device
CN108062190B (en) Application running state control method and mobile terminal
EP3079346A2 (en) Apparatus and method for setting camera
CN107102936A (en) The appraisal procedure and mobile terminal and storage medium of a kind of fluency
US20170147187A1 (en) To-be-shared interface processing method, and terminal
CN107203960B (en) Image rendering method and device
CN108762881B (en) Interface drawing method and device, terminal and storage medium
JP7411795B2 (en) How to move icons and electronic devices
CN110162254B (en) Display method and terminal equipment
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108984066B (en) Application icon display method and mobile terminal
CN108304108B (en) Icon display method of application program and mobile terminal
JP2023502414A (en) Target display method and electronic equipment
CN110045958B (en) Texture data generation method, device, storage medium and equipment
CN108366171B (en) Temperature rise control method and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN113515219A (en) Setting method, setting device, electronic equipment and storage medium
CN109922256B (en) Shooting method and terminal equipment
CN106796912B (en) Electronic device and method for setting block
CN113254137B (en) Dynamic image display method and device, storage medium and mobile terminal
CN111142998A (en) Sharing method of background application and electronic equipment
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium

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