CN109739607A - Dynamic image loading method, device, equipment and storage medium - Google Patents
Dynamic image loading method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109739607A CN109739607A CN201811646518.7A CN201811646518A CN109739607A CN 109739607 A CN109739607 A CN 109739607A CN 201811646518 A CN201811646518 A CN 201811646518A CN 109739607 A CN109739607 A CN 109739607A
- Authority
- CN
- China
- Prior art keywords
- image
- timer
- picture frame
- frame
- dynamic image
- 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
Links
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the invention discloses a kind of dynamic image loading method, device, equipment and storage mediums.The described method includes: obtaining each picture frame of dynamic image to be loaded, the playing sequence of each picture frame and the play time of dynamic image by image analysis control;According to the play time of dynamic image, timer is set;When receiving image play instruction, start timer, and control is loaded according to each picture frame of the playing sequence of each picture frame broadcasting dynamic image by image;When receiving image pause instruction, pause timer, and show the picture frame with the current statistic time match of timer;When receiving image recovery play instruction, restore timer, and continue the picture frame of display with the current statistic time match of timer;When timer meets timing termination condition, the last one picture frame in dynamic image is shown.The embodiment of the present invention can reduce the memory source consumption of load dynamic image.
Description
Technical field
The present embodiments relate to data processing technique more particularly to a kind of dynamic image loading method, device, equipment and
Storage medium.
Background technique
With the development of electronic equipment, user when obtaining image information using electronic equipment, also get over by the demand to image
Come higher.
The image of page presentation and the image of application rollouts have no longer met the displaying with static images.In IOS
Operating system either in page presentation, can only load dynamic image by Webview frame, and this mode leads to dynamic
Image is unable to control broadcasting time.If playing dynamic image using dedicated third party control and/or frame, although can smoothness broadcast
It puts, but the dedicated third party control of operation and/or frame need to occupy extra system memory resource, be easy to cause application program
Sudden strain of a muscle is moved back, or leads to not correctly show dynamic image.
Summary of the invention
The embodiment of the invention provides a kind of dynamic image loading method, device, equipment and storage mediums, it is possible to reduce adds
Carry the memory source consumption of dynamic image.
In a first aspect, the embodiment of the invention provides a kind of dynamic image loading methods, comprising:
Each picture frame of dynamic image to be loaded, the playing sequence of each described image frame are obtained by image analysis control
With the play time of the dynamic image;
According to the play time of the dynamic image, timer is set;
When receiving image play instruction, start the timer, and control is loaded according to each figure by image
As the playing sequence of frame plays each described image frame of the dynamic image;
When receiving image pause instruction, suspend the timer, and control is loaded by described image and is shown and institute
State the picture frame of the current statistic time match of timer;
When receiving image recovery play instruction, restore the timer, and control is loaded successively by described image
The matched picture frame of statistical time of display and the timer;
When the timer meets timing termination condition, control is loaded by described image and is shown in the dynamic image
The last one picture frame.
Second aspect, the embodiment of the invention also provides a kind of dynamic image loading devices, comprising:
Picture frame obtain module, for obtained by image analysis control dynamic image to be loaded each picture frame, respectively
The play time of the playing sequence of described image frame and the dynamic image;
Timer setting module, for timer to be arranged according to the play time of the dynamic image;
Picture frame playing module for when receiving image play instruction, starting the timer, and is added by image
Carry each described image frame that control plays the dynamic image according to the playing sequence of each described image frame;
Pause module is played, for suspending the timer, and pass through described image when receiving image pause instruction
Load control is shown and the picture frame of the current statistic time match of the timer;
Recovery module is played, for restoring the timer, and by described when receiving image recovery play instruction
Image load control is successively shown and the matched picture frame of the statistical time of the timer;
Ending module is played, for loading control by described image when the timer meets timing termination condition
Show the last one picture frame in the dynamic image.
The third aspect the embodiment of the invention also provides a kind of equipment, including memory, processor and is stored in memory
Processor described in the upper and computer program that can run on a processor is realized in such as embodiment of the present invention when executing described program
Any dynamic image loading method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program realizes the dynamic image loading method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention realizes each picture frame for obtaining dynamic image by image analysis control, while timing is arranged
Device loads each picture frame of control loaded and displayed by image, solves and pass through in the prior art according to the statistical time of timer
Webview frame load dynamic image be unable to control broadcasting time and by third party control load dynamic image occupancy it is extra
System resource the problem of, play time can be set based on the timing of timer, to realize that multiple loop play is dynamic
State image, while being consumed using the memory source that the Image control that system carries can reduce load dynamic image.
Detailed description of the invention
Fig. 1 is the flow chart of one of embodiment of the present invention one dynamic image loading method;
Fig. 2 is the structure chart of one of embodiment of the present invention two dynamic image loading device;
Fig. 3 is the structural schematic diagram of one of the embodiment of the present invention three equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart,
Many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be pacified again
Row.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing.Institute
Stating processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow chart for dynamic image loading method that the embodiment of the present invention one provides, and the present embodiment is applicable
In in IOS operating system load dynamic image the case where, this method can be added by dynamic image provided in an embodiment of the present invention
It carries and sets to execute, the mode which can be used software and/or hardware is realized, and can generally be integrated and be provided image load service
Electronic equipment in, for example, client or server etc..As shown in Figure 1, the method for the present embodiment specifically includes:
S110 obtains each picture frame of dynamic image to be loaded by image analysis control, each described image frame is broadcast
Put forward the play time of sequence and the dynamic image.
Specifically, image analysis control can refer to for splitting dynamic image and obtaining the soft of dynamic image data
Part.Dynamic image is converted into single independent picture frame, and a frame frame plays, realizes that picture frame continuously plays, to realize
The effect that dynamic image plays.Wherein, dynamic image is gif image.
It is understood that each picture frame needs to know the broadcasting timing of each picture frame when playing, furthermore can lead to
The play time for crossing dynamic image determines the finish time of dynamic image, so that subsequent timely termination plays the dynamic image.
Optionally, each picture frame for obtaining dynamic image to be loaded, comprising: receive and cache dynamic image;It is right
The dynamic image is parsed, and picture frame in the dynamic image is obtained;It is right when determination meets picture quality regularization condition
Picture frame in the dynamic image carries out compression processing;Using each picture frame after compression processing as the figure of the dynamic image
As frame.
Specifically, Mass adjust- ment condition refers to the condition of efficiency and performance for improving picture frame broadcasting, illustratively,
When receiving the instruction of page acceleration, determination meets picture quality regularization condition.By being carried out at compression to each picture frame
Reason reduces memory shared by picture frame, to reduce the memory consumption for playing dynamic image, improves the playability of dynamic image
Energy.
Timer is arranged according to the play time of the dynamic image in S120.
Set the timing time of timer to the play time of dynamic image, or slightly larger than (such as difference is 0.1 second)
The play time of dynamic image, further, it is also possible to which the timing time that timer is arranged is equal to times of the play time of dynamic image
Number, is not specifically limited this embodiment of the present invention.
S130 starts the timer, and load control according to each institute by image when receiving image play instruction
The playing sequence for stating picture frame plays each described image frame of the dynamic image.
Specifically, image load control can refer to software for displaying images.Wherein, image load control is not special
For loading the third party control of dynamic image, it is only used for showing the control of still image, such as can be Webview frame
Frame.Optionally, image load control is the picture control that IOS operating system provides.The control load carried by using system
Image reduces memory source consumption.
According to the playing sequence of each picture frame, each picture frame is successively shown.Wherein, each picture frame can be set identical
Play time, illustratively, play time are 0.02 second;When different broadcastings can also be set to different picture frames with pointer
Between, this embodiment of the present invention is not specifically limited.But need to meet the sum of play time of all picture frames equal to Dynamic Graph
The play time of picture.
Optionally, the playing sequence according to each described image frame plays each described image frame of the dynamic image,
It include: first picture frame in the load dynamic image;After being loaded into the last one picture frame, continue to load first image
Frame.
Specifically, being loaded since first picture frame, while after the display of the last one picture frame, circulation adds again
First picture frame is carried, realizes that dynamic image can repeat playing.
S140 suspends the timer, and load control by described image and show when receiving image pause instruction
With the picture frame of the current statistic time match of the timer.
Image pause instruction can refer to that pause plays the instruction of picture frame, and display can be maintained to be currently displaying at this time
Picture frame.According to the playing sequence of the play time of dynamic image and each picture frame, the broadcast area of each picture frame can be determined
Between corresponding relationship with the statistical time of timer, can determine the picture frame with the current statistic time match of timer,
The picture frame being currently displaying.
Wherein, the statistical time of timer is the time that timer records in real time, and the current statistic time is that timer is current
The time of moment record.
In addition, the operation of pause timer can be with the behaviour of display and the picture frame of the current statistic time match of timer
Make while carrying out.
It should be noted that the play time of each picture frame can be mapped according to the playing sequence of each picture frame
In the statistical time of timer, the playing interval and timing of the corresponding playing interval of each picture frame namely each picture frame are obtained
The corresponding relationship of the statistical time of device, so that it is determined that in the statistical time of the corresponding timer of beginning and ending time point of each picture frame
Time point, thus, it is possible to accurately determine the picture frame that currently shows according to the statistical time of timer.
S150 restores the timer, and load control by described image when receiving image recovery play instruction
Successively show the matched picture frame of statistical time with the timer.
Image, which restores play instruction, can refer to the shape that normal play picture frame is adjusted to from pause broadcasting image frame state
The instruction of state at this point it is possible to restore timer, and continues successively to show picture frame according to the playing sequence of each picture frame, real
The now promptly and accurately load behavior of Restoration dynamics image.
Wherein, the current statistic time after being restored according to timer loads control by image and continues display and timer
Current statistic time match picture frame, and when the picture frame play time at the end of, show the next of the picture frame
Picture frame.Specifically, the end time point in the statistical time of timer is corresponded at the end of the available picture frame, thus,
When the statistical time of timer reaches the end time point, next picture frame of the picture frame is shown.
The pause and recovery that dynamic image may be implemented by pause timer and recovery timer as a result, moreover, only
Image load control need to be controlled and show a picture frame, the occupancy of the memory source of load dynamic image is greatly reduced, can subtract
It is few because the memory source consumption of load dynamic image is excessive, cause dynamic image can not normal load the case where, to improve dynamic
The display quality of state image.
In addition, the operation for restoring timer timing can be with the figure for the current statistic time match for continuing display and timer
As the operation of frame carries out simultaneously.
S160 loads control by described image and shows the dynamic when the timer meets timing termination condition
The last one picture frame in image.
Wherein, timing termination condition can be the condition for referring to that timer reaches setting timing time.It should be noted that fixed
When device timing time be the time set by user, when timer real-time statistics statistical time be equal to setting timing time
When, determine that timer has reached the target of timing, at this point it is possible to show the image with the current statistic time match of timer
Frame, in general, the timing time of timer are equal to the multiple of the play time of dynamic image, when current statistic with timer
Between matched picture frame be the matched picture frame of end statistical time with timer, may thereby determine that display the last one
Picture frame, avoiding showing due to dynamic image terminates to lead to the case where showing blank screen.
Optionally, the dynamic image loading method can also include: to restart when determining that satisfaction replays condition
Timer, and each described image frame that control replays the dynamic image is loaded by described image.
Specifically, replaying condition can specifically include: timer terminates timing;The counter of preset broadcasting time
It is less than given threshold;Receive the instruction of user's input replayed;Receive the page where dynamic image again
Instruction of load etc..In addition, there are also other to limit the condition that dynamic image needs to replay, in this regard, the present invention does not make to have
Body limitation.
Dynamic image is replayed to refer to, image loads control and starts again at broadcasting picture frame from first picture frame, and
Timer restarts timing according further to the statistical time of setting.
On the basis of the above embodiments, optionally, the playing sequence for obtaining each described image frame and the dynamic
The play time of image may include: the play time for obtaining the dynamic image, the play time of each described image frame and each
The playing sequence of described image frame;While according to the play time of the dynamic image, timer is set, further includes: according to
The playing sequence of the play time of the dynamic image, the play time of each described image frame and each described image frame determines each
The initial time in the play time of dynamic image of described image frame and terminate the time;According to each described image frame dynamic
Initial time in the play time of state image and terminate the time, determine the timer statistical time and each described image frame
Corresponding relationship;The picture frame of the display and the current statistic time match of the timer, comprising: according to the timer
Statistical time and each described image frame corresponding relationship, the determining image with the current statistic time match of the timer
Frame, and show.
Specifically, according to the play time of picture frame each in the play time of dynamic image, dynamic image and each picture frame
Playing sequence, can determine the corresponding beginning and ending time point in the play time of dynamic image of each picture frame (when originating
Between and terminate the time), the beginning and ending time point of each picture frame may further be mapped in the statistical time of timer, thus really
Determine the statistical time of timer and the corresponding relationship of each picture frame, realizing can work as according to the determination of the current statistic time of timer
Preceding need picture frame to be shown guarantees the quality of load dynamic image so as to accurately show picture frame.
The embodiment of the present invention realizes each picture frame for obtaining dynamic image by image analysis control, while timing is arranged
Device loads each picture frame of control loaded and displayed by image, solves and pass through in the prior art according to the statistical time of timer
Webview frame load dynamic image be unable to control broadcasting time and by third party control load dynamic image occupancy it is extra
System resource the problem of, play time can be set based on the timing of timer, to realize that multiple loop play is dynamic
State image, while being consumed using the memory source that the Image control that system carries can reduce load dynamic image.
Embodiment two
Fig. 2 is the schematic diagram of dynamic picture loading device provided by Embodiment 2 of the present invention.Embodiment is second is that realize this hair
The related device of bright dynamic picture loading method provided by the above embodiment.
Correspondingly, the device of the present embodiment may include:
Picture frame obtain module 210, for obtained by image analysis control dynamic image to be loaded each picture frame,
The playing sequence of each described image frame and the play time of the dynamic image;
Timer setting module 220, for timer to be arranged according to the play time of the dynamic image;
Picture frame playing module 230, for starting the timer, and pass through figure when receiving image play instruction
As load control plays each described image frame of the dynamic image according to the playing sequence of each described image frame;
Pause module 240 is played, for when receiving image pause instruction, suspending the timer, and by described
Image load control is shown and the picture frame of the current statistic time match of the timer;
Recovery module 250 is played, for restoring the timer, and pass through when receiving image recovery play instruction
Described image load control is successively shown and the matched picture frame of the statistical time of the timer;
Ending module 260 is played, for loading and controlling by described image when the timer meets timing termination condition
Part shows the last one picture frame in the dynamic image.
The embodiment of the present invention realizes each picture frame for obtaining dynamic image by image analysis control, while timing is arranged
Device loads each picture frame of control loaded and displayed by image, solves and pass through in the prior art according to the statistical time of timer
Webview frame load dynamic image be unable to control broadcasting time and by third party control load dynamic image occupancy it is extra
System resource the problem of, play time can be set based on the timing of timer, to realize that multiple loop play is dynamic
State image, while being consumed using the memory source that the Image control that system carries can reduce load dynamic image.
Further, the dynamic picture loading device, is specifically used for: when determining that satisfaction replays condition, restarting
Timer, and each described image frame that control replays the dynamic image is loaded by described image.
Further, described image frame playing module, is specifically used for: loading first picture frame in the dynamic image;?
It is loaded into after the last one picture frame, continues to load first picture frame.
Further, described image frame obtains module, is specifically used for: receiving and caches dynamic image;To the Dynamic Graph
As being parsed, picture frame in the dynamic image is obtained;When determination meets picture quality regularization condition, to the Dynamic Graph
Picture frame as in carries out compression processing;Using each picture frame after compression processing as the picture frame of the dynamic image.
Further, described image frame obtains module, is specifically used for: obtaining the play time of the dynamic image, each institute
State the play time of picture frame and the playing sequence of each described image frame;The timer setting module, is specifically used for: according to institute
The playing sequence for stating the play time of dynamic image, the play time of each described image frame and each described image frame, determines each institute
It states the initial time in the play time of dynamic image of picture frame and terminates the time;According to each described image frame in dynamic
Initial time in the play time of image and terminate the time, determine the timer statistical time and each described image frame
Corresponding relationship;The broadcasting suspends module, is specifically used for: according to pair of the statistical time of the timer and each described image frame
It should be related to, the determining picture frame with the current statistic time match of the timer, and show.
Further, described image load control is the picture control that IOS operating system provides.
Further, the dynamic image is gif image.
Dynamic picture loading method provided by any embodiment of the invention can be performed in above-mentioned dynamic picture loading device, tool
The standby corresponding functional module of dynamic picture loading method and beneficial effect executed.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for equipment that the embodiment of the present invention three provides.Fig. 3, which is shown, to be suitable for being used to realizing this
The block diagram of the example devices 301 of invention embodiment.The equipment 301 that Fig. 3 is shown is only an example, should not be to the present invention
The function and use scope of embodiment bring any restrictions.
As shown in figure 3, equipment 301 is showed in the form of universal computing device.The component of equipment 301 may include but unlimited
In one or more processor or processing unit 302, system storage 303, different system components (including system is connected
Memory 303 and processing unit 302) bus 304.
Bus 304 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (Industry Standard
Architecture, ISA) bus, microchannel architecture (Micro Channel Architecture, MCA) bus, enhancing
Type isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local
Bus and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Equipment 301 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment
The usable medium of 301 access, including volatile and non-volatile media, moveable and immovable medium.
System storage 303 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (Random Access Memory, RAM) 305 and/or cache memory 306.Equipment 301 can be further
Including other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, storage system
System 307 can be used for reading and writing immovable, non-volatile magnetic media (Fig. 3 do not show, commonly referred to as " hard disk drive ").To the greatest extent
It is not shown in pipe Fig. 3, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, with
And to removable anonvolatile optical disk (such as compact disc read-only memory (Compact Disc Read-Only Memory,
CD-ROM), digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums)
The CD drive of read-write.In these cases, each driver can be by one or more data media interfaces and total
Line 304 is connected.System storage 303 may include at least one program product, which has one group (for example, at least one
It is a) program module, these program modules are configured to perform the function of various embodiments of the present invention.
Program/utility 309 with one group of (at least one) program module 308, can store and deposit in such as system
In reservoir 303, such program module 308 include --- but being not limited to --- operating system, one or more application program,
It may include the reality of network environment in other program modules and program data, each of these examples or certain combination
It is existing.Program module 308 usually executes function and/or method in embodiment described in the invention.
Equipment 301 can also be communicated with one or more external equipments 310 (such as keyboard, sensing equipment etc.), can also be with
One or more enables a user to the equipment interacted with the equipment 301 communication, and/or with enable the equipment 301 and one
Or a number of other any equipment (such as network interface card, modem etc.) communications for calculating equipment and being communicated.This communication can
To be carried out by input/output (Input/Output, I/O) interface 312.Also, equipment 301 can also pass through network adapter
313 with one or more network (such as local area network (Local Area Network, LAN), wide area network (Wide Area
Network, WAN) and/or public network, such as internet) communication.As shown, network adapter 313 by bus 304 with
Other modules of equipment 301 communicate.It should be understood that although being not shown in Fig. 3, can with bonding apparatus 301 using other hardware and/
Or software module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, disk
Array (Redundant Arrays of Inexpensive Disks, RAID) system, tape drive and data backup is deposited
Storage system etc..
Processing unit 302 by the program that is stored in system storage 303 of operation, thereby executing various function application with
And data processing, such as realize a kind of dynamic picture loading method provided by the embodiment of the present invention.
Example IV
The embodiment of the present invention four provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The dynamic picture loading method provided such as all inventive embodiments of the application is provided when sequence is executed by processor:
That is, realization when the program is executed by processor: obtaining dynamic image to be loaded by image analysis control
The play time of each picture frame, the playing sequence of each described image frame and the dynamic image;According to broadcasting for the dynamic image
Put time setting timer;When receiving image play instruction, start the timer, and by image load control according to
The playing sequence of each described image frame plays each described image frame of the dynamic image;When receiving image pause instruction,
Suspend the timer, and control is loaded by described image and is shown and the image of the current statistic time match of the timer
Frame;When receiving image and restoring play instruction, restore the timer, and by described image load control successively show and
The matched picture frame of the statistical time of the timer;When the timer meets timing termination condition, pass through described image
Load control shows the last one picture frame in the dynamic image.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, RAM, read-only memory (Read Only of one or more conducting wires
Memory, ROM), erasable programmable read only memory (Erasable Programmable Read Only Memory,
EPROM), flash memory, optical fiber, portable CD-ROM, light storage device, magnetic memory device or above-mentioned any appropriate combination.
In this document, it includes or the tangible medium of storage program that the program can be by that computer readable storage medium, which can be any,
Instruction execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, radio frequency (RadioFrequency, RF) etc. or above-mentioned any appropriate group
It closes.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN or WAN --- even
It is connected to subscriber computer, or, it may be connected to outer computer (such as pass through internet using ISP
Connection).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of dynamic picture loading method, which is characterized in that be applied to IOS operating system, comprising:
Each picture frame of dynamic image to be loaded, the playing sequence of each described image frame and institute are obtained by image analysis control
State the play time of dynamic image;
According to the play time of the dynamic image, timer is set;
When receiving image play instruction, start the timer, and control is loaded according to each described image frame by image
Playing sequence play each described image frame of the dynamic image;
When receiving image pause instruction, suspend the timer, and by described image load control show with it is described fixed
When device current statistic time match picture frame;
When receiving image recovery play instruction, restore the timer, and control is loaded by described image and is successively shown
With the matched picture frame of statistical time of the timer;
When the timer meets timing termination condition, control is loaded by described image and is shown in the dynamic image finally
One picture frame.
2. the method according to claim 1, wherein further include:
When determining that satisfaction replays condition, timer is restarted, and control is loaded by described image and replays described move
Each described image frame of state image.
3. the method according to claim 1, wherein described play institute according to the playing sequence of each described image frame
State each described image frame of dynamic image, comprising:
Load first picture frame in the dynamic image;
After being loaded into the last one picture frame, continue to load first picture frame.
4. the method according to claim 1, wherein each picture frame for obtaining dynamic image to be loaded,
Include:
It receives and caches dynamic image;
The dynamic image is parsed, picture frame in the dynamic image is obtained;
When determination meets picture quality regularization condition, compression processing is carried out to the picture frame in the dynamic image;
Using each picture frame after compression processing as the picture frame of the dynamic image.
5. the method according to claim 1, wherein the playing sequence for obtaining each described image frame and described
The play time of dynamic image, comprising:
The broadcasting for obtaining the play time of the dynamic image, the play time of each described image frame and each described image frame is suitable
Sequence;
While according to the play time of the dynamic image, timer is set, further includes:
Broadcasting according to the play time of the dynamic image, the play time of each described image frame and each described image frame is suitable
Sequence determines the initial time in the play time of dynamic image of each described image frame and terminates the time;
According to initial time in the play time of dynamic image of each described image frame and the time is terminated, determines the timing
The corresponding relationship of the statistical time of device and each described image frame;
The picture frame of the display and the current statistic time match of the timer, comprising:
According to the corresponding relationship of the statistical time of the timer and each described image frame, the determining current system with the timer
Matched picture frame between timing, and show.
6. the method according to claim 1, wherein described image load control is what IOS operating system provided
Picture control.
7. method according to claim 1-6, which is characterized in that the dynamic image is gif image.
8. a kind of dynamic picture loading device characterized by comprising
Picture frame obtain module, for obtained by image analysis control dynamic image to be loaded each picture frame, it is each described in
The play time of the playing sequence of picture frame and the dynamic image;
Timer setting module, for timer to be arranged according to the play time of the dynamic image;
Picture frame playing module for when receiving image play instruction, starting the timer, and is loaded by image and is controlled
Part plays each described image frame of the dynamic image according to the playing sequence of each described image frame;
Pause module is played, is loaded for when receiving image pause instruction, suspending the timer, and by described image
Control is shown and the picture frame of the current statistic time match of the timer;
Recovery module is played, for restoring the timer, and pass through described image when receiving image recovery play instruction
Load control is successively shown and the matched picture frame of the statistical time of the timer;
Ending module is played, for control being loaded by described image and being shown when the timer meets timing termination condition
The last one picture frame in the dynamic image.
9. a kind of equipment including memory, processor and stores the computer journey that can be run on a memory and on a processor
Sequence, which is characterized in that realize that the dynamic picture as described in any in claim 1-7 adds when the processor executes described program
Support method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The dynamic picture loading method as described in any in claim 1-7 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646518.7A CN109739607B (en) | 2018-12-29 | 2018-12-29 | Dynamic image loading method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811646518.7A CN109739607B (en) | 2018-12-29 | 2018-12-29 | Dynamic image loading method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109739607A true CN109739607A (en) | 2019-05-10 |
CN109739607B CN109739607B (en) | 2021-11-09 |
Family
ID=66362831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811646518.7A Active CN109739607B (en) | 2018-12-29 | 2018-12-29 | Dynamic image loading method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739607B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112363778A (en) * | 2020-11-19 | 2021-02-12 | 微医云(杭州)控股有限公司 | Dynamic picture loading method and device, electronic equipment and storage medium |
CN112650872A (en) * | 2020-12-15 | 2021-04-13 | 歌尔光学科技有限公司 | Dynamic picture playing method, device and equipment and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1770098A (en) * | 2004-11-05 | 2006-05-10 | 腾讯科技(深圳)有限公司 | Dynamic skin realizing method |
WO2010027082A1 (en) * | 2008-09-08 | 2010-03-11 | 日本電気株式会社 | Conference server, video conference system, method, and program |
US20100246673A1 (en) * | 2007-09-28 | 2010-09-30 | Nec Corporation | Dynamic image receiving apparatus, dynamic image receiving method and program |
CN106385635A (en) * | 2016-09-18 | 2017-02-08 | 福建天泉教育科技有限公司 | GIF animation real-time control method and player |
CN107436879A (en) * | 2016-05-25 | 2017-12-05 | 广州市动景计算机科技有限公司 | The loading method and loading system of a kind of dynamic picture |
CN108600803A (en) * | 2018-04-10 | 2018-09-28 | 普联技术有限公司 | Back method, device, terminal device and the storage medium of multi-channel video code stream |
-
2018
- 2018-12-29 CN CN201811646518.7A patent/CN109739607B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1770098A (en) * | 2004-11-05 | 2006-05-10 | 腾讯科技(深圳)有限公司 | Dynamic skin realizing method |
US20100246673A1 (en) * | 2007-09-28 | 2010-09-30 | Nec Corporation | Dynamic image receiving apparatus, dynamic image receiving method and program |
WO2010027082A1 (en) * | 2008-09-08 | 2010-03-11 | 日本電気株式会社 | Conference server, video conference system, method, and program |
CN107436879A (en) * | 2016-05-25 | 2017-12-05 | 广州市动景计算机科技有限公司 | The loading method and loading system of a kind of dynamic picture |
CN106385635A (en) * | 2016-09-18 | 2017-02-08 | 福建天泉教育科技有限公司 | GIF animation real-time control method and player |
CN108600803A (en) * | 2018-04-10 | 2018-09-28 | 普联技术有限公司 | Back method, device, terminal device and the storage medium of multi-channel video code stream |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112363778A (en) * | 2020-11-19 | 2021-02-12 | 微医云(杭州)控股有限公司 | Dynamic picture loading method and device, electronic equipment and storage medium |
CN112363778B (en) * | 2020-11-19 | 2023-03-24 | 微医云(杭州)控股有限公司 | Dynamic picture loading method and device, electronic equipment and storage medium |
CN112650872A (en) * | 2020-12-15 | 2021-04-13 | 歌尔光学科技有限公司 | Dynamic picture playing method, device and equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109739607B (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107172454B (en) | Video recommendation method, medium, device and computing equipment | |
US7801409B2 (en) | Glitch-free realtime playback | |
CN111541913B (en) | Video playing method and device of spliced screen, computer equipment and medium | |
CN110381326B (en) | Video system, processing method, device and computer readable medium | |
US20200252580A1 (en) | Video data processing method and video data processing device | |
CN111629253A (en) | Video processing method and device, computer readable storage medium and electronic equipment | |
WO2017080175A1 (en) | Multi-camera used video player, playing system and playing method | |
CN112235604A (en) | Rendering method and device, computer readable storage medium and electronic device | |
WO2016205045A1 (en) | Low latency application streaming using temporal frame transformation | |
KR20100036256A (en) | Digital data management using shared memory pool | |
CN109739607A (en) | Dynamic image loading method, device, equipment and storage medium | |
CN112532896A (en) | Video production method, video production device, electronic device and storage medium | |
CN111726688A (en) | Method and device for self-adapting screen projection picture in network teaching | |
JP2019509547A (en) | GPU resource reconstruction method, user device, system, and storage medium | |
US20240073273A1 (en) | Method and processing unit for creating and rendering synchronized content for content rendering environment | |
CN109739648B (en) | Animation playing control method, device, equipment and storage medium | |
CN116527978A (en) | Multi-screen interaction control method and device | |
CN111467797B (en) | Game data processing method and device, computer storage medium and electronic equipment | |
CN113411661B (en) | Method, apparatus, device, storage medium and program product for recording information | |
JP2010204892A (en) | Video analysis device, video analysis method and video analysis program | |
CN103607596A (en) | Clock calibration processing method and device | |
CN109640023B (en) | Video recording method, device, server and storage medium | |
CN113923514A (en) | Display device and MEMC (motion estimation and motion estimation) repeated frame discarding method | |
CN113542802A (en) | Video transition method and device | |
CN112433696A (en) | Wallpaper display method, device, equipment and 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 |