CN109086105A - A kind of page layout conversion method, device and electronic equipment - Google Patents

A kind of page layout conversion method, device and electronic equipment Download PDF

Info

Publication number
CN109086105A
CN109086105A CN201810921694.0A CN201810921694A CN109086105A CN 109086105 A CN109086105 A CN 109086105A CN 201810921694 A CN201810921694 A CN 201810921694A CN 109086105 A CN109086105 A CN 109086105A
Authority
CN
China
Prior art keywords
transition animation
animation
page layout
transition
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810921694.0A
Other languages
Chinese (zh)
Other versions
CN109086105B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810921694.0A priority Critical patent/CN109086105B/en
Publication of CN109086105A publication Critical patent/CN109086105A/en
Application granted granted Critical
Publication of CN109086105B publication Critical patent/CN109086105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides the method, apparatus and electronic equipment of a kind of conversion of page layout, it include: to obtain the first transition animation that start image frame is first page layout, and first transition animation end picture frame be second page layout, play the start image frame of the first transition animation, and suspend other picture frames for playing the first transition animation, when needing to be switched to second page layout from first page layout, continue to play the first transition animation, after the first transition animation plays, the end picture frame of the first transition animation of display is kept.Using scheme provided in an embodiment of the present invention, it can simplify page layout conversion and have the development scheme of animation effect, and reduce encoding amount, reduce memory overhead.

Description

A kind of page layout conversion method, device and electronic equipment
Technical field
The present invention relates to multimedia display technology fields, more particularly to a kind of page layout conversion method, device and electricity Sub- equipment.
Background technique
Traditional page is laid out in conversion method, in order to realize page layout transition animation in page layout conversion process Effect, mostly use substep construct page layout and required page layout transition animation method, for example, in order to make first page Layout has animation effect during being transformed into second page layout, firstly, constructing and loading first page layout, then constructs Then page layout transition animation is transferred and played to required page layout transition animation, when page layout transition animation plays After, it constructs and loads second page layout, to complete from first page layout to the conversion second page layout.
Inventor has found that at least there are the following problems for the prior art in the implementation of the present invention:
Traditional page is laid out in conversion process, need successively to construct and load first page be laid out, transition animation and the Two page layouts, so that program development mode is complicated, encoding amount is more, and the operation of repeated loading, increases opening for memory Pin.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of page layout conversion method, to simplify development scheme, reduces and compiles Code amount.Specific technical solution is as follows:
The embodiment of the present invention provides a kind of page layout conversion method, comprising:
Obtain the first transition animation that start image frame is first page layout, the end image of first transition animation Frame is second page layout;
The start image frame of first transition animation is played, and suspends other images for playing first transition animation Frame;
When needing to be switched to second page layout from first page layout, continue to play first conversion Animation;
After first transition animation plays, the end picture frame for showing first transition animation is kept.
Further, in the start frame for playing the transition animation, and suspend other for playing the transition animation After picture frame, further includes:
When needing to be switched to third page layout from first page layout, obtaining start image frame is described first Second transition animation of page layout, the end picture frame of second transition animation are third page layout;
Play second transition animation;
After second transition animation plays, the end picture frame for showing second transition animation is kept.
Further, after the end picture frame for keeping display first transition animation, further includes:
When needing to be switched to first page layout from second page layout, the first conversion described in reverse-play Animation;
After the first transition animation reverse-play, the start image for showing first transition animation is kept Frame.
It is further, described to obtain the first transition animation that start image frame is first page layout, comprising:
From the transition animation database pre-established, it is dynamic to obtain the first conversion that start image frame is first page layout Draw, be stored with each transition animation being pre-created in the transition animation database, the start image frame of each transition animation and Terminating picture frame is that there are the two of transformational relation page layouts.
The embodiment of the present invention also provides a kind of page layout conversion equipment, and described device includes:
Animation obtains module, the first transition animation being laid out for obtaining start image frame for first page, and described first The end picture frame of transition animation is second page layout;
Animation play module for playing the start image frame of first transition animation, and suspends broadcasting described first Other picture frames of transition animation;And when needing to be switched to second page layout from first page layout, after First transition animation is put in continued broadcasting;And after first transition animation plays, keep display first conversion dynamic The end picture frame of picture.
Further, the animation obtains module, is also used to play first conversion in the animation play module dynamic The start image frame of picture, and after suspending other picture frames for playing first transition animation, when needing from the first page When face layout is switched to third page layout, the second transition animation that start image frame is first page layout, institute are obtained The end picture frame for stating the second transition animation is third page layout;
The animation play module is also used to play second transition animation, plays and ties in second transition animation Shu Hou keeps the end picture frame for showing second transition animation.
Further, the animation play module is also used in the end for keeping showing first transition animation After picture frame, when needing to be switched to first page layout from second page layout, first described in reverse-play Transition animation;And after the first transition animation reverse-play, the starting for showing first transition animation is kept Picture frame.
Further, the animation obtains module, specifically for obtaining from the transition animation database pre-established Beginning picture frame is the first transition animation of first page layout, is stored with each turn be pre-created in the transition animation database Move picture, and the start image frame and end picture frame of each transition animation are that there are the two of transformational relation page layouts.
The embodiment of the present invention also provides a kind of electronic equipment, including processor, communication interface, memory and communication bus, Wherein, processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any of the above-described page layout conversion method Step.
Present invention implementation additionally provides a kind of computer readable storage medium, storage in the computer readable storage medium There is the step of computer program, the computer program realizes any of the above-described page layout conversion method when being executed by processor.
The embodiment of the invention also provides a kind of computer program products comprising instruction, when it runs on computers When, so that computer executes any of the above-described page layout conversion method.
The method, apparatus and electronic equipment of a kind of page layout conversion provided in an embodiment of the present invention in scheme, are needing When showing first page layout, available start image frame is the first transition animation of first page layout, and first converts The end picture frame of animation is second page layout, plays the start image frame of the first transition animation, and suspends first turn of broadcasting Move other picture frames of picture, to realize display first page layout, also, when needing to be switched to the from first page layout When two page layouts, continue to play the first transition animation, after the first transition animation plays, keeps the first conversion of display dynamic The end picture frame of picture, that is, realize from first page layout be switched to second page layout, due to the process in switching, only plus A transition animation has been carried, compared with prior art, has reduced the load number of page layout, has been imitated so as to simplify with animation The development scheme of fruit page layout conversion, and encoding amount is reduced, meanwhile, reduce memory overhead.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the flow chart of page layout conversion method provided by one embodiment of the present invention;
Fig. 2 is the flow chart for the page layout conversion method that another embodiment of the present invention provides;
Fig. 3 is the flow chart for the page layout conversion method that another embodiment of the invention provides;
Fig. 4 is the structural schematic diagram of page layout conversion equipment provided by one embodiment of the present invention;
Fig. 5 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to provide the development scheme for simplifying the page layout with animation effect and converting, and reduce the realization side of encoding amount Case, the embodiment of the invention provides a kind of page layout conversion method, device and electronic equipments, below in conjunction with Figure of description pair The embodiment of the present invention is illustrated.And in the absence of conflict, the features in the embodiments and the embodiments of the present application It can be combined with each other.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
In one embodiment of the invention, a kind of page layout conversion method is provided, as shown in Figure 1, this method includes Following steps:
S101: the first transition animation that start image frame is first page layout, the end figure of the first transition animation are obtained As frame is second page layout.
In this step, from the transition animation database pre-established, obtaining start image frame is first page layout First transition animation is stored with each transition animation being pre-created, the starting figure of each transition animation in transition animation database As frame and end picture frame are that there are the two of transformational relation page layouts;
S102: playing the start image frame of the first transition animation, and suspends other picture frames for playing the first transition animation.
In the embodiment of the present invention, specifically, in iOS system, it, can based on the transition animation of Core Animation building To pass through calling-(void) pauseLayer:(CALayer*) layer function, parameter speed=0 is set, realizes the temporary of animation Break and puts.
S103: when needing to be switched to second page layout from first page layout, continue to play the first transition animation.
It, will when receiving the input information for requiring to be switched to second page layout from first page layout in this step Continue to play the first transition animation.
In the embodiment of the present invention, specifically, in iOS system, it, can based on the transition animation of Core Animation building With pass through callings-(void) resumeLayer:(CALayer*) layer function, setting parameter speed=1 realization animation after Continued broadcasting is put.
S104: after the first transition animation plays, the end picture frame of the first transition animation of display is kept.
In the embodiment of the present invention, specifically, based on the transition animation of Core Animation building, being adjusted in iOS system With-(void) pauseLayer:(CALayer*) layer function, the first transition animation is existed by setting parameter speed=0 Terminate to suspend at picture frame and play.
In above-mentioned page layout conversion method provided in an embodiment of the present invention, when needing to show first page layout, lead to The first transition animation for obtaining that start image frame is first page layout is crossed, and the end picture frame of the first transition animation is second Page layout, plays the start image frame of the first transition animation, and suspends other picture frames for playing the first transition animation, thus Display first page layout is realized, and when needs are switched to the second page from first page layout and are laid out, after continued broadcasting The first transition animation is put, after the first transition animation plays, keeps the end picture frame of the first transition animation of display, i.e., in fact Show from first page layout and be switched to second page layout, due to the process in switching, has only been loaded with a transition animation, phase Than the prior art, reduce the load number of page layout, so as to simplify opening with the conversion of animation effect page layout Originating party formula, and encoding amount is reduced, meanwhile, reduce memory overhead.
In another embodiment of the present invention, a kind of page layout conversion method is also provided, as shown in Fig. 2, this method The following steps are included:
S201: the first transition animation that start image frame is first page layout, the end figure of the first transition animation are obtained As frame is second page layout.
This step can specifically be executed by the way of above-mentioned steps S101 description, is no longer described in detail herein.
S202: the start image frame of the first transition animation is played, and suspends other figures for playing first transition animation As frame.
This step can specifically be executed by the way of above-mentioned steps S102 description, is no longer described in detail herein.
S203: switching command is received, judges conversion of page mode.
In this step, when received switching command requires to be switched to specified page layout from first page layout, sentence Whether the fixed page layout of severed finger is second page layout,
If so, entering step S204;
If it is not, using specified page layout as third page layout, and enter step S208.
S204: the first transition animation is played.
This step can specifically be executed by the way of above-mentioned steps S103 description, is no longer described in detail herein.
S205: after the first transition animation plays, the end picture frame of the first transition animation of display is kept.
This step can specifically be executed by the way of above-mentioned steps S104 description, is no longer described in detail herein.
S206: when needing to be switched to first page layout from second page layout, the first transition animation of reverse-play.
In the embodiment of the present invention, specifically, based on the transition animation of Core Animation building, being adjusted in iOS system With CAAnimation correlation function, parameter speed=-1 is set, realizes the first transition animation of reverse-play.
S207: after the first transition animation reverse-play, the start image frame of the first transition animation of display is kept.
In the embodiment of the present invention, specifically, based on the transition animation of Core Animation building, being adjusted in iOS system With-(void) pauseLayer:(CALayer*) layer function, the first transition animation is existed by setting parameter speed=0 Suspend at start image frame and plays.
S208: the second transition animation that start image frame is first page layout, the end figure of the second transition animation are obtained As frame is third page layout.
In the embodiment of the present invention, specifically, when switching command requires to be switched to the third page from first page layout When layout, it is dynamic that the second conversion that start image frame is first page layout is obtained from the transition animation database pre-established It draws, the end picture frame of the second transition animation is third page layout.
S209: the second transition animation is played.
In the embodiment of the present invention, specifically, in iOS system, it, can based on the transition animation of Core Animation building To pass through calling-(void) resumeLayer:(CALayer*) layer function, setting parameter speed=1 the second conversion of realization The broadcasting of animation.
S210: after the second transition animation plays, the end picture frame of the second transition animation of display is kept.
In the embodiment of the present invention, specifically, based on the transition animation of Core Animation building, being adjusted in iOS system With-(void) pauseLayer:(CALayer*) layer function, by setting parameter speed=0 by the second transition animation It is played terminating to suspend at picture frame.
In above-mentioned page layout conversion method shown in Fig. 2 provided in an embodiment of the present invention, by obtaining start image frame For the first transition animation of first page layout, and the end picture frame of the first transition animation is that second page is laid out, broadcasting the The start image frame of one transition animation, and suspend other picture frames for playing the first transition animation, when received switching command is wanted Ask from first page layout be switched to specified page layout when, specified page layout be second page be laid out when, after continued broadcasting The first transition animation is put, after the first transition animation plays, keeps the end picture frame of the first transition animation of display.Work as finger When fixed page layout is not second page, it obtains the second transition animation and plays out, when the broadcasting of the second transition animation terminates Afterwards, the end picture frame of the second transition animation of display is kept.In addition, when needing to be switched to first page layout from second page layout When, by the first transition animation of reverse-play, after the first transition animation reverse-play, keep the first transition animation of display Start image frame.It can simplify page layout conversion and have the development scheme of animation effect, and reduce encoding amount, and be able to achieve Flexible conversion between each page layout.
Above-mentioned specific embodiment can further be realized by creation state machine, as shown in figure 3, this method includes Following steps:
S301: creation state machine.
In the embodiment of the present invention, after application program launching, state machine is constructed first, wherein state machine has four elements: Existing state, condition, movement and next state.Specifically, using the conversion of page animation shown in page layout as the existing state of state machine, Condition of the switching command that will acquire as state machine, the conversion of page animation needed for state machine is obtained is as the dynamic of state machine Make, the required conversion of page animation after acquisition is the next state of state machine.It is emphasized that above-mentioned " next state of state machine " It is for " the existing state of state machine ", " next state of state machine " is once activated, and is transformed into that new " state machine shows State ".
S302: the first transition animation that start image frame is first page layout is obtained by state machine, the first conversion is dynamic The end frame of picture is second page layout.
In the embodiment of the present invention, specifically, page layout and state machine carry out just simultaneously if application program is to start for the first time Initial page layout is laid out by beginningization as first page, and state machine obtains first that start image frame is first page layout The end frame of transition animation, the first transition animation is second page layout, wherein the first transition animation had both been the existing state of state machine.
If application program has been completed multiple page layout conversion, after last time is completed page layout conversion Page layout is laid out as first page, and last time completes the page layout before page layout conversion as second page cloth Office, last time complete the transition animation of page layout conversion as the first transition animation, i.e., after the movement of last time state machine Next state be transformed into the new existing state of state machine.
S303: playing the start image frame of first transition animation, and suspends its for playing first transition animation His picture frame.
This step can specifically be executed by the way of above-mentioned steps S102 description, is no longer described in detail herein.
S304: receiving switching command, and state machine obtains required page layout transition animation according to switching command.
In the embodiment of the present invention, specifically, judgement receive switching command requirement conversion after page layout whether be Second page layout, if so, state machine obtains the first transition animation, and enters step S305 according to switching command;
If it is not, the page layout after switching command is required conversion is as third page layout, foundation switching command, shape State machine obtains the second transition animation, and enters step S309.
S305: the first transition animation is played.
This step can specifically be executed by the way of above-mentioned steps S103 description, is no longer described in detail herein.
S306: after the first transition animation plays, the end picture frame of the first transition animation of display is kept.
This step can specifically be executed by the way of above-mentioned steps S104 description, is no longer described in detail herein.
S307: when needing to be switched to first page layout from second page layout, the first transition animation of reverse-play.
This step can specifically be executed by the way of above-mentioned steps S206 description, is no longer described in detail herein.
S308: after the first transition animation reverse-play, the start image frame of the first transition animation of display is kept.
This step can specifically be executed by the way of above-mentioned steps S207 description, is no longer described in detail herein.
S309: the second transition animation is played.
This step can specifically be executed by the way of above-mentioned steps S209 description, is no longer described in detail herein.
S310: after the second transition animation plays, the end picture frame of the second transition animation of display is kept.
This step can specifically be executed by the way of above-mentioned steps S210 description, is no longer described in detail herein.
In above-mentioned page layout conversion method shown in Fig. 3 provided in an embodiment of the present invention, by the state machine of creation come Obtain the transition animation in page layout conversion process, wherein state machine can quickly obtain required according to switching command Transition animation is simplifying the development scheme with the conversion of animation effect page layout, and on the basis of reducing encoding amount, is also realizing , in the code maintenance in later period, in order to realize that page layout plays new transition animation effect in the process, can directly pass through State machine is added required new transition animation, or modifies to original transition animation, without to other page layouts The transition animation played in conversion process is modified, and the scalability of code has both been increased.
Based on the same inventive concept, the method for the page layout conversion provided according to embodiments of the present invention, the present invention are implemented Example additionally provides a kind of page layout conversion equipment, as shown in figure 4, the device includes:
Animation obtains module 401, the first transition animation being laid out for obtaining start image frame for first page, and first turn Move picture end picture frame be second page layout;
Animation play module 402, for playing the start image frame of the first transition animation, and it is dynamic to suspend the first conversion of broadcasting Other picture frames drawn;And when needing to be switched to second page layout from first page layout, continue to play the first conversion Animation;And after the first transition animation plays, the end picture frame of aobvious first transition animation is kept.
Further, it as shown in figure 4, animation obtains module 401, can be also used for playing the in animation play module 402 The start image frame of one transition animation, and after suspending other picture frames for playing the first transition animation, when needing from described the When one page layout is switched to third page layout, the second transition animation that picture frame is first page layout is obtained, the The end picture frame of two transition animations is third page layout;
Animation play module 402 can be also used for playing the second transition animation, after the second transition animation plays, Keep the end picture frame of the second transition animation of display.
Further, animation play module 402 can be also used in the end picture frame for keeping the first transition animation of display Later, when needing to be switched to first page layout from second page layout, the first transition animation of reverse-play;And first After transition animation reverse-play, the start image frame of the first transition animation of display is kept.
Further, as shown in figure 4, animation obtains module 401, specifically for from the transition animation database pre-established In, the first transition animation that start image frame is first page layout is obtained, is stored in advance in above-mentioned transition animation database Each transition animation of creation, the start image frame and end picture frame of each transition animation are that there are the two of the transformational relation pages Layout.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 5, include processor 501, communication interface 502, Memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 are complete by communication bus 504 At mutual communication,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, realizes following steps:
The first transition animation that start image frame is first page layout is obtained, the end picture frame of the first transition animation is Second page layout;
The start image frame of the first transition animation is played, and suspends other picture frames for playing the first transition animation;
When needing to be switched to second page layout from first page layout, continue to play the first transition animation;
After the first transition animation plays, the end picture frame of the first transition animation of display is kept.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described page layout when being executed by processor The step of conversion method.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any page layout conversion method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For terminal device, computer readable storage medium, computer program product, since it is substantially similar to the method embodiment, institute To be described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of page layout conversion method characterized by comprising
The first transition animation that start image frame is first page layout is obtained, the end picture frame of first transition animation is Second page layout;
The start image frame of first transition animation is played, and suspends other picture frames for playing first transition animation;
When need to be switched to the second page from first page layout be laid out when, it is dynamic to continue to play first conversion It draws;
After first transition animation plays, the end picture frame for showing first transition animation is kept.
2. the method according to claim 1, wherein in the start image for playing first transition animation Frame, and after suspending other picture frames for playing first transition animation, further includes:
When needing to be switched to third page layout from first page layout, acquisition start image frame is the first page Second transition animation of layout, the end picture frame of second transition animation are third page layout;
Play second transition animation;
After second transition animation plays, the end picture frame for showing second transition animation is kept.
3. the method according to claim 1, wherein in the end for keeping showing first transition animation After picture frame, further includes:
When needing to be switched to first page layout from second page layout, the first conversion described in reverse-play is dynamic It draws;
After the first transition animation reverse-play, the start image frame for showing first transition animation is kept.
4. the method according to claim 1, wherein obtain that start image frame is first page layout the One transition animation, comprising:
From the transition animation database pre-established, the first transition animation that start image frame is first page layout is obtained, Each transition animation being pre-created, the start image frame of each transition animation and end are stored in the transition animation database Picture frame is that there are the two of transformational relation page layouts.
5. a kind of page layout conversion equipment characterized by comprising
Animation obtains module, for obtaining the first transition animation that start image frame is first page layout, first conversion The end picture frame of animation is second page layout;
Animation play module for playing the start image frame of first transition animation, and is suspended and plays first conversion Other picture frames of animation;And when needing to be switched to second page layout from first page layout, after continued broadcasting Put first transition animation;And after first transition animation plays, keep showing first transition animation Terminate picture frame.
6. device according to claim 5, which is characterized in that the animation obtains module, is also used to broadcast in the animation Amplification module plays the start image frame of first transition animation, and suspends other picture frames for playing first transition animation Later, when needing to be switched to third page layout from first page layout, acquisition start image frame is the first page Second transition animation of face layout, the end picture frame of second transition animation are third page layout;
The animation play module is also used to play second transition animation, after second transition animation plays, Keep showing the end picture frame of second transition animation.
7. device according to claim 5, which is characterized in that the animation play module is also used to keep aobvious described After the end picture frame for showing first transition animation, the first page is switched to when needing to be laid out from the second page When layout, the first transition animation described in reverse-play;And after the first transition animation reverse-play, display is kept The start image frame of first transition animation.
8. device according to claim 5, which is characterized in that the animation obtains module, specifically for from pre-establishing Transition animation database in, obtain start image frame be first page layout the first transition animation, the transition animation number According to each transition animation being pre-created is stored in library, the start image frame and end picture frame of each transition animation are to exist to turn Change two page layouts of relationship.
9. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-4.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-4 any method and step when the computer program is executed by processor.
CN201810921694.0A 2018-08-14 2018-08-14 Page layout conversion method and device and electronic equipment Active CN109086105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810921694.0A CN109086105B (en) 2018-08-14 2018-08-14 Page layout conversion method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810921694.0A CN109086105B (en) 2018-08-14 2018-08-14 Page layout conversion method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109086105A true CN109086105A (en) 2018-12-25
CN109086105B CN109086105B (en) 2022-12-06

Family

ID=64834646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810921694.0A Active CN109086105B (en) 2018-08-14 2018-08-14 Page layout conversion method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109086105B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109646954A (en) * 2018-12-18 2019-04-19 北京像素软件科技股份有限公司 Game animation state transition method and device
CN111862272A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Animation state machine creation method, animation control method, device, equipment and medium
CN112433698A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
CN112433697A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
CN111708524B (en) * 2020-06-02 2024-02-23 苏州宏软信息技术有限公司 Method and system for realizing distributed dynamic finite state machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385473A (en) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 Page switching method and device
CN102736912A (en) * 2010-12-13 2012-10-17 微软公司 Coordination of animations across multiple applications or processes
JP2012243077A (en) * 2011-05-19 2012-12-10 Sony Corp Information processing device, information processing method, and program
CN103324403A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Page switching method and device as well as mobile terminal
CN105630478A (en) * 2014-12-01 2016-06-01 阿里巴巴集团控股有限公司 Method and device for realizing page switching
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385473A (en) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 Page switching method and device
CN102736912A (en) * 2010-12-13 2012-10-17 微软公司 Coordination of animations across multiple applications or processes
JP2012243077A (en) * 2011-05-19 2012-12-10 Sony Corp Information processing device, information processing method, and program
CN103324403A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Page switching method and device as well as mobile terminal
CN105630478A (en) * 2014-12-01 2016-06-01 阿里巴巴集团控股有限公司 Method and device for realizing page switching
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109646954A (en) * 2018-12-18 2019-04-19 北京像素软件科技股份有限公司 Game animation state transition method and device
CN111862272A (en) * 2019-04-30 2020-10-30 北京达佳互联信息技术有限公司 Animation state machine creation method, animation control method, device, equipment and medium
CN111862272B (en) * 2019-04-30 2023-06-20 北京达佳互联信息技术有限公司 Animation state machine creation method, animation control method, device, equipment and medium
CN111708524B (en) * 2020-06-02 2024-02-23 苏州宏软信息技术有限公司 Method and system for realizing distributed dynamic finite state machine
CN112433698A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
CN112433697A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium
CN112433697B (en) * 2020-11-30 2023-02-28 上海米哈游天命科技有限公司 Resource display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109086105B (en) 2022-12-06

Similar Documents

Publication Publication Date Title
CN109086105A (en) A kind of page layout conversion method, device and electronic equipment
CN109168026B (en) Instant video display method and device, terminal equipment and storage medium
CN111669623B (en) Video special effect processing method and device and electronic equipment
CN108010112B (en) Animation processing method, device and storage medium
CN106507161B (en) Net cast method and live broadcast device
CN109740751B (en) Architecture fusion method of neural network model and related device
CN102323882B (en) Data processing device and method applied to Web3D
CN106648945A (en) Interface data testing method and device and electronic equipment
CN110070496B (en) Method and device for generating image special effect and hardware device
BR112021009629A2 (en) method of processing user interface content, system, and non-transient computer readable media
US20220241689A1 (en) Game Character Rendering Method And Apparatus, Electronic Device, And Computer-Readable Medium
CN103678526A (en) Method and device for decoding images of browser and client
CN114006894A (en) Data processing system, method, electronic device, and computer storage medium
CN109937537A (en) Coding Variable length symbol is to realize parallel decoding
CN110971958A (en) Live broadcast gift banner frame-by-frame animation display method, storage medium, equipment and system
CN109992177A (en) User interaction approach, system, electronic equipment and the computer media of electronic equipment
WO2020077912A1 (en) Image processing method, device, and hardware device
CN113205601B (en) Roaming path generation method and device, storage medium and electronic equipment
CN112256653B (en) Data sampling method and device
CN114155119A (en) Data processing system, method, electronic device, and computer storage medium
JP5736056B2 (en) Information providing apparatus, information providing method, and program
CN110209462B (en) Window arrangement method, device and equipment
CN104765704B (en) A kind of mobile communication device and electronic equipment
CN115544622B (en) Urban and rural participated three-dimensional planning design platform, method, equipment and storage medium
CN111866508B (en) Video processing method, device, medium and electronic equipment

Legal Events

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