Summary of the invention
The invention provides a kind of display packing of screen locking EFR STK, use this method can make the screen locking EFR STK in the electronic communication terminal demonstrate fully the characteristics of GIF, improve user's visual experience.
The invention provides a kind of display device of screen locking EFR STK, this device can make the screen locking EFR STK in the electronic communication terminal demonstrate fully the characteristics of GIF, improves user's visual experience.
Technical scheme of the present invention is achieved in that
A kind of display packing of screen locking EFR STK, described screen locking EFR STK comprises the foreground picture of figures exchange pattern; Key is that when electronic communication equipment entered lock-out state, this method comprised:
A, described foreground picture is resolved to more than two frames, and the circular order of each frame foreground picture is set;
B, read the data of present frame foreground picture, and start timing;
C, when described timing arrives when playing scheduled duration, play the present frame foreground picture;
D, judge whether described lock-out state finishes, if cancellation shows the present frame foreground picture, otherwise according to described circular order with the next frame foreground picture of present frame foreground picture as the present frame foreground picture, and return execution in step B.
A kind of display device of screen locking EFR STK, described screen locking EFR STK comprises the foreground picture of figures exchange pattern; Key is that this device comprises:
Parsing module when electronic communication equipment enters lock-out state, resolves to described foreground picture more than two frames, and the circular order of each frame foreground picture is set;
Read module reads the data of present frame foreground picture from described parsing module, and triggers the startup of master control timing module;
The master control timing module triggers the startup timing by read module;
First display module when the timing of master control timing module arrives the broadcast scheduled duration, is play the present frame foreground picture; Judge whether lock-out state finishes, if cancellation shows the present frame foreground picture, otherwise trigger read module according to described circular order with the next frame foreground picture of present frame foreground picture as present frame foreground picture executable operations once more.
As seen, in the display packing of screen locking EFR STK of the present invention, the foreground picture in the screen locking EFR STK is divided into a plurality of frames, and before the release flow process begins afterwards, to finish, timing arrives the broadcast scheduled duration at every turn, just plays the present frame foreground picture, and so circulation finishes until lock-out state.Like this, background picture shows after the release flow process begins according to existing mode still and presents dynamically that foreground picture shows, also presents dynamically according to method of the present invention after entering lock-out state, thereby has demonstrated fully the characteristics of GIF, have more innervation, improved user's visual experience.
Embodiment
For making objects and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with drawings and Examples.
Fig. 1 is the display packing of screen locking EFR STK among the present invention, same as the prior art is, screen locking EFR STK in this method also comprises background picture and the foreground picture of GIF, wherein the display mode of background picture is with of the prior art identical, unlike the prior art be that this method is improved the display mode of foreground picture.When the user triggered electronic communication equipment and enters lock-out state, flow process shown in Figure 1 began to carry out.
Flow process shown in Figure 1 comprises:
Step 11: foreground picture is resolved to more than two frames, and the circular order of each frame foreground picture is set.
In this step, the GIF foreground picture is resolved to more than two frames, concrete analysis mode is the common practise of this area, repeats no more here.Suppose that this step resolves to 3 frames with foreground picture, then circular order can be made as 1->2->3->1->2->3, so repeatedly circulation.
Step 12: read the data of present frame foreground picture, and start timing.
Step 13: when timing arrives the broadcast scheduled duration, play the present frame foreground picture.
Step 14: judge whether described lock-out state finishes, if cancellation shows the present frame foreground picture, otherwise according to circular order with the next frame foreground picture of present frame foreground picture as the present frame foreground picture, and return execution instep 12.
As seen, in the display packing of screen locking EFR STK of the present invention, foreground picture in the screen locking EFR STK is divided into a plurality of frames, and after entering lock-out state, before lock-out state do not finish, timing arrives the broadcast scheduled duration at every turn, just play the present frame foreground picture, so circulation finishes until lock-out state.Like this, background picture still begins the back demonstration and presents dynamic in the release flow process according to existing mode, foreground picture shows after entering lock-out state, also presents dynamically according to method of the present invention, thereby has demonstrated fully the characteristics of GIF, has improved user's visual experience.
After electronic communication equipment is finished the release flow process, background picture will be cancelled demonstration according to existing mode, and foreground picture is also cancelled demonstration according to method of the present invention, thereby after finishing lock-out state, not show the screen locking EFR STK to the user.
Providing an embodiment of the inventive method below, in the present embodiment, is example with the mobile call terminal, the screen locking EFR STK comprises background picture and foreground picture, wherein background picture is a bead, and the number of bead is more than one, and foreground picture is the wallpaper that is arranged in bead.
Fig. 2 is the process flow diagram of the display packing of screen locking EFR STK in the embodiment of the invention, after mobile call terminal enters lock-out state, flow process shown in Figure 2 begins, and this flow process only describes at the demonstration of foreground picture, can show according to existing mode as for background picture.
Flow process shown in Figure 2 comprises:
Step 201: read the data of wallpaper, and resolve the size of wallpaper.
Step 202: judge whether the size of wallpaper meets the size at release interface, if, execution instep 204, otherwise execution instep 203.
Step 203: bead is stretched or shrinks.
In this step, at be the situation of bead size adjustable, promptly can make the size of the size conforms wallpaper of bead by this step to the adjustment of bead size this moment.
Also has a kind of special scene, be that wallpaper is of a size of and fixedly installs, for example wallpaper is set to the circle shape of fixed measure and less than the size of bead, the place that this moment can also be in bead, wallpaper not have covering, fill other colors, the selection of color can be determined according to the visual experience demand.
Step 204: wallpaper is resolved to more than two frames, and the circular order of each frame wallpaper is set.
Step 205: read the data of present frame wallpaper, and start timing.
In this step, if read for the first time, what read is exactly the data of the first frame wallpaper.
Step 206: the timing duration arrives when playing scheduled duration, plays the present frame wallpaper.
In the present embodiment, because it is faster with respect to the broadcast frequency of the wallpaper in the bead to want to reach the bead motion on visual effect, thus also be provided with mobile scheduled duration, and mobile scheduled duration is less than playing scheduled duration.In flow process shown in Figure 2, when timing arrives mobile scheduled duration, just bead is moved default step-length.Suppose that the timing in the present embodiment finished by timer, then above-mentioned mobile scheduled duration and play scheduled duration and can be set to the timer multiple of time-count cycle.
Step 207: judge whether lock-out state finishes, if cancellation shows wallpaper and process ends, otherwise according to circular order with the next frame wallpaper of present frame wallpaper as the present frame wallpaper, and returnstep 205.
In this step, if mobile call terminal finishes lock-out state, promptly mobile call terminal is not in the lock state, and then no longer shows the screen locking EFR STK.
Fig. 3 is the structural representation of the display device of screen locking EFR STK among the present invention, and this device comprises: parsing module, read module, master control timing module and first display module.
Above-mentioned parsing module when electronic communication equipment enters lock-out state, resolves to described foreground picture more than two frames, and the circular order of each frame foreground picture is set.
Above-mentioned read module reads the data of present frame foreground picture from described parsing module, and triggers the startup of master control timing module.
Above-mentioned master control timing module triggers the startup timing by read module.
Above-mentioned first display module when the timing of master control timing module arrives the broadcast scheduled duration, is play the present frame foreground picture; Judge whether lock-out state finishes, if cancellation shows the present frame foreground picture, otherwise trigger read module according to described circular order with the next frame foreground picture of present frame foreground picture as present frame foreground picture executable operations once more.
Faster in order to realize background picture with respect to the broadcast frequency of foreground picture, further comprise in this device: second display module, when the timing of master control timing module arrives mobile scheduled duration, background picture in the screen locking EFR STK is moved default step-length, when lock-out state finishes, cancel showing Background Picture.The mobile scheduled duration here all can be set to the master control timing module multiple of time-count cycle less than playing scheduled duration.
Under the situation that the size of foreground picture and background picture is not exclusively mated,, then further comprise in this device if the size of background picture can be adjusted: adjusting module, read the image data of foreground picture, and resolve the size of foreground picture; Judge whether the size of background picture meets the size of foreground picture, if then trigger the parsing module executable operations, otherwise elder generation stretches to background picture or shrinks, and triggers the parsing module executable operations again.
The size of foreground picture and background picture not exclusively mate and the situation of foreground picture size less than the background picture size under, if the size of background picture can not be adjusted, then further comprise in this device: adjusting module, read the image data of foreground picture, and resolve size; When being of a size of, the prospect picture fixedly installs and during less than background picture, other colors are filled in the zone that is not occupied by foreground picture on background picture.Which, can be provided with arbitrarily according to the demand of visual effect as for the concrete color of filling.
Said apparatus provided by the invention is according to the concrete executable operations of method provided by the invention.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.