CN102331994B - A kind of implementation method and embedded system of embedded system special effects of webpage - Google Patents
A kind of implementation method and embedded system of embedded system special effects of webpage Download PDFInfo
- Publication number
- CN102331994B CN102331994B CN201110172567.3A CN201110172567A CN102331994B CN 102331994 B CN102331994 B CN 102331994B CN 201110172567 A CN201110172567 A CN 201110172567A CN 102331994 B CN102331994 B CN 102331994B
- Authority
- CN
- China
- Prior art keywords
- webpage
- special effects
- parameter
- special
- embedded system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000000694 effects Effects 0.000 title claims abstract description 276
- 238000000034 method Methods 0.000 title claims abstract description 75
- 230000008569 process Effects 0.000 claims description 34
- 238000012545 processing Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 5
- 230000004044 response Effects 0.000 abstract description 9
- 239000002699 waste material Substances 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 9
- 230000033001 locomotion Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000018109 developmental process Effects 0.000 description 5
- 241000208340 Araliaceae Species 0.000 description 3
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 3
- 235000003140 Panax quinquefolius Nutrition 0.000 description 3
- 230000003321 amplification Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 235000008434 ginseng Nutrition 0.000 description 3
- 238000003199 nucleic acid amplification method Methods 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- 230000033772 system development Effects 0.000 description 2
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 241000282485 Vulpes vulpes Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 235000008954 quail grass Nutrition 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of implementation method and embedded system of embedded system special effects of webpage, the implementation method is comprised the following steps:The corresponding relation of parameter preset corresponding table, the parameter corresponding table identification (RNC-ID) analytic parameter and special effects of webpage pattern;Receive the special effects of webpage parameter that transmits of the page and parse, obtain corresponding analytic parameter;According to the analytic parameter and the parameter corresponding table, corresponding special effects of webpage pattern is selected to realize the corresponding special effects of webpage of the special effects of webpage parameter.Using the present invention, can according to certain special effects of webpage of Implementation of Embedded System when to the actual demand degree of resources occupation rate, suitable special effects of webpage pattern is selected to realize this kind of special effects of webpage, so as to reduce the waste of resource in embedded system to a certain extent, the response speed of embedded system is lifted on the whole.
Description
Technical field
The present invention relates to computer network communication applied technical field, specifically, more particularly to a kind of embedded system
The implementation method and embedded system of special effects of webpage.
Background technology
Embedded system, refers generally to non-PC systems, has computer function but can not be referred to as the equipment or device of computer
Material, it is application-centered, and its software and hardware can be reduced.Embedded system is to function, reliability, cost, volume, power consumption
Etc. the comprehensive dedicated computer system for having a strict demand.
Embedded system almost includes all electric equipments in life, such as palm PDA, mobile computing device, TV
Machine Set Top Box, Internet-enabled cell phone, DTV, multimedia, automobile, micro-wave oven, digital camera, domestic automation system, elevator, sky
Tune, security system etc..For example, in existing IPTV (InteractivePersonality TV) service application, just using
Embedded system.
IPTV be it is a kind of with TV, Set Top Box be main terminal device, using broadband cabled mechanics of communication, to domestic consumer
The dats services with increment of interactive television and multimedia service is provided.With the development of IPTV service application, domestic consumer couple
The flexibility demand of IPTV service application is also more and more, the browser in embedded system as IPTV service application presentation
Effect is also more and more important, it is desirable to also more and more higher.
With the development of network technology, in order to the bandwagon effect of the embedded system page is preferably presented, with stronger
Rendering capability, realizes the target across all platforms and browser, IE, red fox (FireFox), Google (Google Chrome),
The major browsers such as Opera continuously according to international standard, have started the research to embedded system special effects of webpage.
On the one hand, a kind of new standard for realizing special effects of webpage, the i.e. (CascadingStyle of CSS 3.0 are occurred in that in the world
Sheets, Cascading Style Sheet).CSS is a kind of technology of CSS (style sheet), also referred to as CSS
(Cascading Style sheet).Use CSS technologies in homepage-making, layout that can effectively to the page, font,
Color, background and other effects are realized more being accurately controlled.As long as making some simple modifications to the corresponding code of the page, just
Can change the different piece of the same page, or the different webpage of number of pages outward appearance and form.Although CSS 3.0 is out
A very long time, but the browser (hereinafter browser) in embedded system is to the special effects of webpage technologies of CSS 3.0
Support considerably less, and in the case of embedded system resource scarcity, support the page of the browser of the special effects of webpage of CSS 3.0
Face Special display effect effect is also poor, reduces the Experience Degree of user.
On the other hand, in current embedded system application, such as in current IPTV service application, photograph album is pre-
Look at, the smooth scaling of plurality of pictures is slided, picture, the page are fade-in fade-out and are slid into and out, word is smooth during video playback, amplify
The special effects of webpage such as slip all propose new requirement to EPG (Electronic Program Guide, electric program menu)
(EPG interface in IPTV service application is similar with Web page, and Web page is referred to as hereinafter), particularly under HD video,
When these special effects of webpage are processed using browser special effect-mode, the utilization rate to cpu resource in embedded system is high, due to
Cpu resource is very in short supply in embedded system, so just reduces the processing speed of embedded system, causes embedded system
Special effects of webpage function display effect is poor.
In summary, during embedded system special effects of webpage is realized, except wanting browser to support special effects of webpage skill
Outside art, in addition it is also necessary to which emphasis considers embedded system to the rigors of cpu resource, reduce as much as possible when realizing special effects of webpage pair
The occupancy of embedded system cpu resource.However, in the prior art, can also be in short supply embedded without a kind of scheme
The speed of service and execution efficiency of high speed are provided in system resource, it is ensured that can preferably be improved in the implementation process of special effects of webpage
The utilization rate of embedded system cpu resource, improves the response speed of embedded system and the Experience Degree of user.
The content of the invention
The main technical problem to be solved in the present invention is to provide the implementation method of a kind of embedded system special effects of webpage and embedding
Embedded system, can according to certain special effects of webpage of Implementation of Embedded System when to the actual demand degree of resources occupation rate, selection
Corresponding special effects of webpage pattern realizes this kind of special effects of webpage, so as to reduce resource in embedded system to a certain extent
Waste, the response speed of embedded system is lifted on the whole.
In order to solve the above technical problems, the present invention proposes a kind of implementation method of embedded system special effects of webpage, including
Following steps:
The corresponding relation of parameter preset corresponding table, the parameter corresponding table identification (RNC-ID) analytic parameter and special effects of webpage pattern;
Receive the special effects of webpage parameter that transmits of the page and parse, obtain corresponding analytic parameter;
According to the analytic parameter and the parameter corresponding table, corresponding special effects of webpage pattern is selected to realize the page
The corresponding special effects of webpage of special effect parameters.
In an embodiment of the present invention, the special effects of webpage parameter is obtained in the following way:
The input information of user is converted into the treatable special effects of webpage information of the page;
According to the special effects of webpage information, the type of the special effects of webpage is analyzed;
According to the type of the special effects of webpage, corresponding special effects of webpage parameter is set.
In an embodiment of the present invention, the special effects of webpage pattern includes browser special effect-mode and multi-process special efficacy
Pattern.
In an embodiment of the present invention, the process in the multi-process special effect-mode includes browser process and figure
Engine process.
In an embodiment of the present invention, the step of enabling multi-process special effect-mode to realize the special effects of webpage is wrapped
Include:
Browser receives the special effects of webpage parameter that the page is transmitted;
Browser is parsed the special effects of webpage parameter, obtains corresponding analytic parameter, and the parsing is joined
Number passes to graphics engine;
Graphics engine performs the handling process of the special effects of webpage according to the analytic parameter, to realize that the page is special
Effect;Meanwhile, browser abandons the treatment to the special effects of webpage, then performs other handling processes.
In an embodiment of the present invention, the graphics engine performs the special effects of webpage according to the analytic parameter
Handling process, include the step of to realize the special effects of webpage:
The graphics engine performs the handling process of the special effects of webpage, to realize the page according to the analytic parameter
The step of face special efficacy, includes:
Graphics engine calculates the execution parameter of the special effects of webpage according to the analytic parameter, and performs ginseng according to described
The corresponding special efficacy window of number generation;
Graphics engine sets special efficacy timer, and operation is polled to corresponding special efficacy window, to realize that the page is special
Effect.
In an embodiment of the present invention, during graphics engine realizes special effects of webpage, graphics engine is to browsing
The corresponding corresponding refresh region of refresh operation merges caused by device, after graphics engine realizes special effects of webpage, then refreshes
The refresh region of merging.
Meanwhile, present invention also offers a kind of embedded system, including:
Presetting module, the parameter corresponding table for pre-setting identification (RNC-ID) analytic parameter and special effects of webpage pattern corresponding relation;
Parsing module, for receiving special effects of webpage parameter that the page transmits and parsing, obtains corresponding analytic parameter;
Selecting module, for according to the analytic parameter and the parameter corresponding table, selecting corresponding special effects of webpage pattern
To realize the corresponding special effects of webpage of the special effects of webpage parameter.
In an embodiment of the present invention, the system also includes page info processing module, at the page info
Reason module includes the input block, converting unit, analytic unit and the setting unit that are sequentially connected;
The input block is used to receive the input information of user;
The converting unit is used to for the input information of user to be converted to the special effects of webpage information that the page can be processed;
The analytic unit is used to be analyzed according to the special effects of webpage information type of the special effects of webpage;
The setting unit is used for the type according to the special effects of webpage, sets corresponding special effects of webpage parameter..
In an embodiment of the present invention, the system also includes multi-process performing module, and the multi-process performs mould
Block includes the receiving unit, resolution unit, computing unit and the execution unit that are sequentially connected;The receiving unit is used to receive page
The special effects of webpage parameter that face is transmitted;The resolution unit is used to parse the special effects of webpage parameter, obtains corresponding solution
Analysis parameter, and the analytic parameter is passed into computing unit;The computing unit is used to, according to the analytic parameter, calculate
The execution parameter of the special effects of webpage;The execution unit is used for according to the execution parameter, accordingly realizes the special effects of webpage.
The beneficial effects of the invention are as follows:The analytic parameter obtained according to parsing and default parameter corresponding table, selection are corresponding
Special effects of webpage pattern realize required special effects of webpage.Analytic parameter in default parameter corresponding table is equipped with a correspondence
, suitable special effects of webpage pattern, and because every kind of special effects of webpage is to that should have a special effects of webpage parameter and analytic parameter.
Therefore, according to the current analytic parameter that obtains of parsing and parameter corresponding table, the special effects of webpage pattern for flexibly choosing must be
It is adapted for carrying out this kind of special effects of webpage pattern of special effects of webpage.Because to embedded system resource occupation when realizing every kind of special effects of webpage
The requirement degree of rate is different, and the special effects of webpage pattern of its corresponding selection is likely to difference.Accordingly it is also possible to be understood that, this hair
It is bright can according to certain special effects of webpage of Implementation of Embedded System when to the different demands of resources occupation rate, flexibly select different pages
Face special effect-mode realizes this kind of special effects of webpage, in this way, can then reduce the wasting of resources of embedded system, improves embedded
The utilization rate of the resource of system, and then the response speed of embedded system is lifted on the whole.
Brief description of the drawings
Fig. 1 is the method flow diagram of Implementation of Embedded System special effects of webpage of the present invention;
Fig. 2 is the flow chart of the acquisition special effects of webpage parameter of an embodiment of the present invention;
Fig. 3 is the flow chart that special effects of webpage is realized using multi-process special effect-mode of an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail below by specific embodiment combination accompanying drawing.
In current embedded system, support that the page display effect of the browser of special effects of webpage technology is very poor.Study carefully it former
Cause, just because in embedded systems, cpu resource is very in short supply.Go to realize to embedding when with the browser in embedded system
During the high special effects of webpage of embedded system CPU resource utilization, for example, the high definition in IPTV service application is processed with browser
During video, will cause that the processing speed of embedded system is very slow, so as to the special effects of webpage function of causing embedded system shows
Show difference.
For the special effects of webpage function display effect for solving the problems, such as the embedded system of existing support special effects of webpage is bad,
The invention provides a kind of implementation method and embedded system of embedded system special effects of webpage.
Central scope of the invention is:Because the cpu resource in existing embedded system is nervous, so as to cause using clear
Device special effect-mode of looking at realizes that the response speed of embedded system during some special effects of webpage higher to cpu resource occupancy is slow.Cause
This, if it is possible to efficiently using the cpu resource in embedded system, then can to a certain extent improve embedded system
Response speed.Therefore, present invention employs following technical scheme:
A kind of implementation method of embedded system special effects of webpage, as shown in figure 1, comprising the following steps:
S1, parameter corresponding table is pre-set, the parameter corresponding table identification (RNC-ID) analytic parameter is corresponding with special effects of webpage pattern to close
System;
S2, receive the special effects of webpage parameter that transmits of the page and parse, obtain corresponding analytic parameter;
S3, according to the analytic parameter and default parameter corresponding table, select corresponding special effects of webpage pattern to realize the page
The corresponding special effects of webpage of face special effect parameters;
Firstly, it is necessary to be illustrated to default parameter corresponding table.The default parameter corresponding table of the present invention, solves for identifying
The corresponding relation of analysis parameter and special effects of webpage pattern.That is, in the parameter corresponding table, each analytic parameter is corresponded to
There is a kind of special effects of webpage pattern.
Parameter corresponding table is that page development personnel formulate jointly with embedded system development personnel.Page development personnel exist
When writing the source program of a certain special effects of webpage, to the reality of the resources occupation rate of embedded system when can estimate that the source program runs
Border conditions of demand, and correspondingly set a kind of special effects of webpage realization of resources occupation rate that can as much as possible reduce embedded system
A kind of pattern, special effects of webpage pattern can be used to realize one or more special effects of webpage.And embedded system development personnel design
During embedded system, the parameter corresponding table can be followed, the special effects of webpage pattern of certain special effects of webpage is realized in ground selection.
In addition, it is necessary to explanation, page development personnel can be certain of the page when with the CSS3.0 fabrication techniques pages
Special effects of webpage sets corresponding special effects of webpage parameter.Therefore, when the special effects of webpage parameter of the page is changed, page will accordingly be changed
The display effect in face.
Because analytic parameter has a corresponding special effects of webpage pattern, and analytic parameter in step S2 is transmitted according to the page
Special effects of webpage Parameter analysis of electrochemical come, and each special effects of webpage parameter is to that should be able to realize a kind of special effects of webpage.Therefore, using step
Method in S3, according to the analytic parameter that default parameter corresponding table and parsing are obtained, then can obtain being currently needed for realizing
Certain special effects of webpage special effects of webpage pattern corresponding with this kind of special effects of webpage is realized.Also, due to being chosen in step S3
Special effects of webpage pattern be money according to the corresponding special effects of webpage of special effects of webpage parameter realized in step S2 to embedded system
The actual demand degree of source occupancy sets, therefore, this reduces resource wave in embedded system to a certain extent
Take, improve the utilization rate of embedded system resource, the resources occupation rate of embedded system is reduced, so as to improve on the whole embedding
The response speed of embedded system.
Herein, it is necessary to be explained to resources occupation rate, in the present invention, resources occupation rate refers to Implementation of Embedded System
, it is necessary to take the ratio of cpu resource in embedded system during certain special effects of webpage.
As shown in Fig. 2 in one embodiment, special effects of webpage parameter can specifically be obtained in the following way:
S11, the input information of user is converted to the treatable special effects of webpage information of the page;
S12, according to the conversion of page information, analyze the type of special effects of webpage;
S13, the type according to special effects of webpage, set corresponding special effect parameters;
It should be noted is that, it is generally the case that the special effects of webpage information of user input is by being embedded with embedded system
The bottom input of the embedded device of system.For example, user can be by the button option that selects the bottom of embedded device to set
To select no special effects of webpage.In this way, then disclosure satisfy that requirement of the user to embedded system ease for use.
The application of embedded system widely, for example, can by embedded system of the invention be applied to IPTV service should
In, embedded system can be specifically embedded into the equipment such as Set Top Box.When user needs to realize certain business, user Ke Tong
Cross button, the corresponding button option of this kind of business is realized in selection, to embedded device bottom issuing service request command.It is embedded
After the input information for receiving user, being converted to JS key assignments and be transmitted to web page the input information of user (can also for system
The referred to as electronic menu page) treatment.The special effects of webpage information that JS key assignments can be processed for Web page, or perhaps Web page
The source program code being capable of identify that.Certainly, according to the actual requirements, it is also possible to which the input information of user is converted into Php key assignments etc.
(because of the source program code that Web page can also recognize using Php language to write).Web page utilizes Java script languages
Speech (a kind of java scripts that can dynamically change Web page of browser) is analyzed to the JS key assignments, makes a concrete analysis of
This kind of type of special effects of webpage, and the special effects of webpage ginseng required for supporting this kind of special effects of webpage is set according to the type of special effects of webpage
Number.Wherein, the type of special effects of webpage has many kinds, can for example include smooth amplifications, downsizing smoothly, it is smooth move, fade in it is light
Go out, slide into and out.
After Web page has set the special effects of webpage parameter for supporting certain special effects of webpage, the special effects of webpage ginseng that will can be set
Number is transferred to the browser in embedded system.Specifically, Web page processes function call browser JS interfaces by JS, to
Browser issues the special effects of webpage parameter of setting, and the special effects of webpage parameter is parsed by browser, obtains analytic parameter, and
Preserved.
Analytic parameter and default parameter corresponding table that browser is obtained according to parsing, it becomes possible to know and realize current page
During the corresponding special effects of webpage of face special effect parameters, it should which kind of special effects of webpage pattern selected.In embodiment, special effects of webpage pattern bag
Include browser special effect-mode and multi-process special effect-mode.Therefore, browser special effect-mode may be selected or multi-process special effect-mode is come
Realize special effects of webpage.
If selection browser special effect-mode, its process for realizing special effects of webpage is specially:Browser receives the page for issuing
After the special effect parameters of face, the special effects of webpage parameter is parsed, obtain analytic parameter and preserved, and update browser
Internal realization mechanism and perform flow, finally to corresponding smooth amplification, downsizing smoothly, smooth move, the page such as be fade-in fade-out
Special efficacy recalculate the display location and figure drawing area of typesetting page, and carries out refreshing in time and show.Normal conditions
Under, browser special effect-mode is adapted to the less demanding special effects of webpage of resources occupation rate to embedded system.
As shown in figure 3, in an embodiment of the present invention, the process in multi-process special effect-mode includes browser process
With graphics engine process, if selecting multi-process special effect-mode to realize special effects of webpage, its concrete implementation process is:
The special effects of webpage parameter of setting is passed to browser by S01, Web page;
S02, browser are parsed the special effects of webpage parameter, obtain corresponding analytic parameter, and the parsing is joined
Number passes to graphics engine;
S03, graphics engine perform the handling process of the special effects of webpage according to the analytic parameter, to realize the special effects of webpage;
Meanwhile, browser abandons the treatment to the special effects of webpage, then performs other handling processes.
For example, in one embodiment, Web page can process function call browser JS interfaces by JS, to browser
Issue the special effects of webpage parameter of setting.After browser receives the special effects of webpage parameter for issuing, the special effects of webpage parameter is carried out
Parsing, obtains corresponding analytic parameter and is preserved, and according to the type of special effects of webpage, will parse the analytic parameter for obtaining
Graphics engine is transmitted to, independently corresponding special effects of webpage (such as smooth scaling, smooth movement etc.) is carried out by graphics engine finally
Typesetting shows.Meanwhile, browser then abandons the execution flow of the special effects of webpage of the type, free system resources, and according to just
Normal handling process carries out processing web page asks sum operation, naturally it is also possible to perform other types of special effects of webpage, without
With the actual motion for comprehending graphics engine special effects of webpage.So multi-process special effect-mode can share special effects of webpage to embedded system
The occupancy of system cpu resource, and different processes can be selected to realize for various different types of special effects of webpage.Such as
This, then disperseed the busy time of embedded system, so as to improve the utilization rate of embedded system cpu resource, reduces embedding
The cpu resource of embedded system is wasted, and then reduces the resources occupation rate for realizing special effects of webpage to embedded system, on the whole
The response speed of embedded system is improve, the display effect of the special effects of webpage function of embedded system is improved.
For example, because HD video is supported in existing IPTV service application, therefore embedded system can be substantially increased
Resources occupation rate.If now processing different special effects of webpage using multiple processes, can reduce in complicated IPTV service
To the occupancy of embedded system cpu resource in applied environment so that whole HD video is more smooth, special effects of webpage display effect
Fruit more smooths.In this way, on the one hand ensure that the real-time of embedded system, on the other hand, embedded system is also ensure that
Special effects of webpage function display effect, meets the demand of user.
It should be noted that embedded OS described in the present invention, refers to include the insertion of operating system
Formula system.Because only that the embedded system including operating system, can support to be run while multiple processes.
In an embodiment of the present invention, graphics engine performs the handling process of the special effects of webpage according to analytic parameter,
The step of to realize the special effects of webpage, is specifically as follows:
Graphics engine can calculate the execution parameter of the special effects of webpage, and generate corresponding according to the analytic parameter for receiving
Special efficacy window;For different types of special effects of webpage, graphics engine can carry out Classification Management, and correspondingly calculate corresponding execution
Parameter, and corresponding special efficacy window is generated according to corresponding execution parameter respectively.Meanwhile, graphics engine also sets up special efficacy regularly
Device, operation is polled to corresponding special efficacy window, performs the handling process of special effects of webpage, to realize that the different types of page is special
Effect.Also, because graphics engine there may be the handling process for running multiple special effects of webpage simultaneously, it is possible that multiple occurs
The situation of special efficacy window.In this way, then needing graphics engine to be managed window, special efficacy window when is generated, when destroy spy
Effect window.After after the handling process that graphics engine has performed special effects of webpage, unification carries out corresponding internal memory and money by graphics engine
The release in source.
Herein, it is necessary to be illustrated to performing parameter.Under normal circumstances, analytic parameter mark is certain special effects of webpage
Original position and final position, and perform parameter and then describe specifically be performed according to which type of mode.If for example,
Realize smoothing the special effects of webpage of movement, because analytic parameter only describes mobile original position and final position, and page
The time that face special efficacy is slided, but mark does not complete translational speed and drawn frame number that the page smooths mobile special efficacy.Cause
This, graphics engine is needed according to analytic parameter, perform the calculating of parameter, calculate smooth mobile special efficacy translational speed and
Drawn frame number, so that smooth movement is better achieved.
It should be noted that in multi-process special effect-mode, having two processes of browser and graphics engine and transporting at the same time
OK, so it must also be taken into account that due to corresponding influence of the refresh operation to graphics engine caused by browser.Therefore, in the present invention
A kind of embodiment in, in the processing procedure that graphics engine performs special effects of webpage, graphics engine is to corresponding caused by browser
The corresponding refresh region of refresh operation merges, and after graphics engine has performed special effects of webpage handling process, then refreshes again
The refresh region of merging.
In multi-process special effect-mode, browser can carry out parsing preservation to special effect parameters as follows:
Because the type of special effects of webpage there are many kinds, different types of special effects of webpage parsing will be respectively introduced below and was preserved
Journey.
1st, downsizing smoothly amplifies (smooth scaling)
Web page is set and smooths the special effects of webpage parameter of scaling, it is necessary to set the page node for doing special effects of webpage (by JS
Method obtain), special effects of webpage complete time (being set by web kit Transition Duration values, unit ms),
Scale type (including resize special efficacys and the web kit Transform special efficacys of special efficacy.Wherein, resize special efficacys are to one
Area zoom, but the thing that includes of region the inside is not scaled, by the left [From Left away from position] of page node,
The final position of top [apart from the position of top margin], width [width of node], height [height of node] regulation special efficacys;
And web kit Transform special efficacys are that region is amplified, including thing inside region amplifies together, the multiple of amplification
By scale controls).Browser receives the special effects of webpage parameter that Web page is transmitted, and it is parsed, and obtains analytic parameter and protects
Deposit.And analytic parameter is passed into graphics engine.Graphics engine is to the current state of Web page and the final shape of page setup
State perform the calculating of parameter, obtains performing parameter, and the execution parameter that will be calculated is added to page as an entirety
In the queue of face special efficacy, and start the timer of special efficacy, start the execution of poll special effects of webpage, until the current page of Web page
Face special effect parameters value is the special effects of webpage parameter value of page setup, then stop the carrying out of special efficacy timer, so as to complete smooth contracting
Put.
2nd, movement is smoothed
Smooth movement is the most common phenomenon in IPTV service application system, regardless of embedded system, is required for
GUI page shows, so also just be unableing to do without the button effect mobile to page display.Smooth movement refers to that movement has individual gradual change
Effect.The special effects of webpage parameter of smooth movement of the browser to setting is parsed, and is obtained analytic parameter and is preserved, and recycling should
Analytic parameter to recalculate needed in the stipulated time how many pixel moved, be divided into move several times it is smoother, finally will weight
The new execution parameter setting being calculated enters in the element of special effects of webpage mobile node, starts special efficacy timer, can be to every
Individual special efficacy node elements are moved and redrawn, the final position until moving to setting.Wherein, the time that special efficacy is completed is by web
Kit TransitionDuration values set, and unit is ms, the final position of special efficacy mobile node by left, top (distances
The left side away from position, apart from the position of top margin) determine.
3rd, it is fade-in fade-out and slides into and out
It is fade-in fade-out and has slid into and out two ways, but the principle that browser is realized but is consistent.Picture
It is fade-in fade-out and the transparency of picture is dynamically set by web page using page timer, sends transparency to browser
Parsing is drawn, to reach the effect being fade-in fade-out;Picture slide into and out be browser to server request download pictures data,
Then carry out picture by browser to show, finally call browser JS interfaces to proceed by and slide into and out operation;The page fades in
It is that browser is parsed by the page of server request to fade out and slide into and out, and all of content of pages is write and is schemed
In the buffering area of shape engine, then further according to the special effects of webpage parameter set in the page, the data of graphics engine buffering area are pressed
The special effects of webpage execution time according to regulation is shown.
Meanwhile, present invention also offers a kind of embedded system, including:Presetting module, for pre-setting identification (RNC-ID) analytic
The parameter corresponding table of parameter and special effects of webpage pattern corresponding relation;
Parsing module, for receiving special effects of webpage parameter that the page transmits and parsing, obtains corresponding analytic parameter;Selection
Module, for according to the analytic parameter and the parameter corresponding table, selecting corresponding special effects of webpage pattern to realize the page
The corresponding special effects of webpage of face special effect parameters.
Wherein, the embedded system also includes page info processing module, and the page info processing module includes phase successively
Input block even, converting unit, analytic unit and setting unit;
The input block is used to receive the input information of user;Converting unit is used to for the input information of user to be converted to page
The special effects of webpage information that face can be processed;Analytic unit is used for according to the special effects of webpage information, analyzes the type of the special effects of webpage;
Setting unit is used for the type according to the special effects of webpage, sets corresponding special effects of webpage parameter.
The embedded system also includes multi-process performing module, and the multi-process performing module includes the reception list being sequentially connected
Unit, resolution unit, computing unit and execution unit;Receiving unit is used to receive the special effects of webpage parameter that the page is transmitted;Parsing
Unit is used to parse special effects of webpage parameter, obtains corresponding analytic parameter, and the analytic parameter is passed into calculating
Unit;Computing unit is used to, according to the analytic parameter for obtaining, calculate the execution parameter of the special effects of webpage;And execution unit is then used for
According to the execution parameter, special effects of webpage is accordingly realized.
The implementation method and embedded system of embedded system special effects of webpage disclosed by the invention, according to parsing special effects of webpage
Analytic parameter and parameter corresponding table that parameter is obtained, ground select corresponding special effects of webpage pattern to realize the special effects of webpage parameter pair
The special effects of webpage answered, in this way, then can according to certain special effects of webpage of Implementation of Embedded System when to the actual need of resources occupation rate
Degree is sought, selects suitable special effects of webpage pattern to realize this kind of special effects of webpage, so as to reduce the resource wave of embedded system
Take, improve the resource utilization of embedded system, and then lift the response speed of embedded system on the whole.
Further, realized using multi-process Special effects mode during special effects of webpage, it is special for various different types of pages
Effect can select different processes to realize, disperse the busy time of embedded system, considerably reduce embedded system
Load, can so be greatly enhanced the execution efficiency and display effect of special effects of webpage, meet embedded system to cpu resource
Requirement, improve the Experience Degree of user.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to assert this hair
Bright specific implementation is confined to these explanations.For general technical staff of the technical field of the invention, do not taking off
On the premise of present inventive concept, some simple deduction or replace can also be made, should all be considered as belonging to protection of the invention
Scope.
Claims (10)
1. a kind of implementation method of embedded system special effects of webpage, it is characterised in that comprise the following steps:
The corresponding relation of parameter preset corresponding table, the parameter corresponding table identification (RNC-ID) analytic parameter and special effects of webpage pattern, the solution
Analysis parameter can characterize resources occupation rate when realizing the corresponding special effects of webpage of respective page special effect parameters to embedded system
Actual demand degree;
Receive the special effects of webpage parameter that transmits of the page and parse, obtain corresponding analytic parameter;
According to the analytic parameter and the parameter corresponding table, corresponding special effects of webpage pattern is selected to realize the special effects of webpage
The corresponding special effects of webpage of parameter.
2. implementation method as claimed in claim 1, it is characterised in that the special effects of webpage parameter is obtained in the following way:
The input information of user is converted into the treatable special effects of webpage information of the page;
According to the special effects of webpage information, the type of the special effects of webpage is analyzed;
According to the type of the special effects of webpage, corresponding special effects of webpage parameter is set.
3. the method for claim 1, it is characterised in that the special effects of webpage pattern includes browser special effect-mode and many
Process special effect-mode.
4. method as claimed in claim 3, it is characterised in that the process in the multi-process special effect-mode is entered including browser
Journey and graphics engine process.
5. method as claimed in claim 4, it is characterised in that enable multi-process special effect-mode to realize the special effects of webpage
Step includes:
Browser receives the special effects of webpage parameter that the page is transmitted;
Browser is parsed the special effects of webpage parameter, obtains corresponding analytic parameter, and the analytic parameter is passed
Pass graphics engine;
Graphics engine performs the handling process of the special effects of webpage, to realize the special effects of webpage according to the analytic parameter;Together
When, browser abandons the treatment to the special effects of webpage, then performs other handling processes.
6. method as claimed in claim 5, it is characterised in that the graphics engine is performed described according to the analytic parameter
The handling process of special effects of webpage, includes the step of to realize the special effects of webpage:
Graphics engine calculates the execution parameter of the special effects of webpage according to the analytic parameter, and according to the execution parameter life
Into corresponding special efficacy window;
Graphics engine sets special efficacy timer, operation is polled to corresponding special efficacy window, to realize the special effects of webpage.
7. the method as described in claim 5 or 6, it is characterised in that during graphics engine realizes special effects of webpage, figure
Engine is merged to the corresponding corresponding refresh region of refresh operation caused by browser, treats that graphics engine realizes special effects of webpage
Afterwards, then the refresh region of merging is refreshed.
8. a kind of embedded system, it is characterised in that including:
Presetting module, the parameter corresponding table for pre-setting identification (RNC-ID) analytic parameter and special effects of webpage pattern corresponding relation is described
Analytic parameter can characterize the resources occupation rate to embedded system when realizing the corresponding special effects of webpage of respective page special effect parameters
Actual demand degree;
Parsing module, for receiving special effects of webpage parameter that the page transmits and parsing, obtains corresponding analytic parameter;
Selecting module, it is real for according to the analytic parameter and the parameter corresponding table, selecting corresponding special effects of webpage pattern
Show the corresponding special effects of webpage of the special effects of webpage parameter.
9. system as claimed in claim 8, it is characterised in that the system also includes page info processing module, the page
Face message processing module includes the input block, converting unit, analytic unit and the setting unit that are sequentially connected;
The input block is used to receive the input information of user;
The converting unit is used to for the input information of user to be converted to the special effects of webpage information that the page can be processed;
The analytic unit is used to be analyzed according to the special effects of webpage information type of the special effects of webpage;
The setting unit is used for the type according to the special effects of webpage, sets corresponding special effects of webpage parameter.
10. system as claimed in claim 8, it is characterised in that the system also includes multi-process performing module, it is described enter
Journey performing module includes the receiving unit, resolution unit, computing unit and the execution unit that are sequentially connected;The receiving unit is used
In the special effects of webpage parameter that the reception page is transmitted;The resolution unit is used to parse the special effects of webpage parameter, obtains
Corresponding analytic parameter, and the analytic parameter is passed into computing unit;The computing unit is used for according to the parsing
Parameter, calculates the execution parameter of the special effects of webpage;The execution unit is used for according to the execution parameter, and corresponding realization is described
Special effects of webpage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110172567.3A CN102331994B (en) | 2011-06-24 | 2011-06-24 | A kind of implementation method and embedded system of embedded system special effects of webpage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110172567.3A CN102331994B (en) | 2011-06-24 | 2011-06-24 | A kind of implementation method and embedded system of embedded system special effects of webpage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102331994A CN102331994A (en) | 2012-01-25 |
CN102331994B true CN102331994B (en) | 2017-07-11 |
Family
ID=45483772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110172567.3A Active CN102331994B (en) | 2011-06-24 | 2011-06-24 | A kind of implementation method and embedded system of embedded system special effects of webpage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102331994B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567031A (en) * | 2012-03-01 | 2012-07-11 | 盛乐信息技术(上海)有限公司 | Video special effect extension method and video special effect extension system |
CN103810042B (en) * | 2012-11-07 | 2017-04-26 | 中兴通讯股份有限公司 | Method and system for adjusting browser parameters |
CN104683868A (en) * | 2013-11-29 | 2015-06-03 | 上海未来宽带技术股份有限公司 | Realization system and realization method for animation effect based on set top box |
CN104035676B (en) * | 2014-06-25 | 2019-01-18 | 百度在线网络技术(北京)有限公司 | A kind of switching method and device of the page |
CN107402985B (en) * | 2017-07-14 | 2021-03-02 | 广州爱拍网络科技有限公司 | Video special effect output control method and device and computer readable storage medium |
CN107608729A (en) * | 2017-09-14 | 2018-01-19 | 光锐恒宇(北京)科技有限公司 | A kind of method and apparatus for showing dynamic effect in the application |
CN108376225B (en) * | 2018-01-04 | 2022-05-13 | 创新先进技术有限公司 | Page processing method and device |
CN111291103B (en) * | 2020-01-19 | 2023-11-24 | 北京有竹居网络技术有限公司 | Interface data analysis method, device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901274A (en) * | 2010-08-11 | 2010-12-01 | 深圳市茁壮网络股份有限公司 | Method and device for achieving special effects of webpage |
CN102026038A (en) * | 2010-12-15 | 2011-04-20 | 中兴通讯股份有限公司 | Method and system for realizing page dynamic display of IPTV set top box |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8234392B2 (en) * | 2006-11-17 | 2012-07-31 | Apple Inc. | Methods and apparatuses for providing a hardware accelerated web engine |
-
2011
- 2011-06-24 CN CN201110172567.3A patent/CN102331994B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901274A (en) * | 2010-08-11 | 2010-12-01 | 深圳市茁壮网络股份有限公司 | Method and device for achieving special effects of webpage |
CN102026038A (en) * | 2010-12-15 | 2011-04-20 | 中兴通讯股份有限公司 | Method and system for realizing page dynamic display of IPTV set top box |
Also Published As
Publication number | Publication date |
---|---|
CN102331994A (en) | 2012-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102331994B (en) | A kind of implementation method and embedded system of embedded system special effects of webpage | |
CN109117138B (en) | Configuration method and device and computer readable storage medium | |
US12170807B2 (en) | Techniques for managing generation and rendering of user interfaces on client devices | |
CN104834544B (en) | Data load method and device | |
US20130258206A1 (en) | Method, apparatus and system for mobile terminal to remotely control television | |
CN103442126A (en) | Mobile phone communication method and system based on cloud service | |
CN110782387B (en) | Image processing method and device, image processor and electronic equipment | |
EP4242839A1 (en) | Page switching display method and apparatus, storage medium, and electronic device | |
CN102298491B (en) | Embedded graphical interface system and image generation method thereof | |
CN109190078A (en) | Webpage construction method, device and storage medium | |
CN105808307A (en) | Page display method and device | |
CN107436743A (en) | Method and apparatus for pushed information | |
CN110647273B (en) | Method, device, equipment and medium for self-defined typesetting and synthesizing long chart in application | |
CN112672210A (en) | Variable frame rate multi-channel video rendering method and system | |
WO2014032545A1 (en) | Webpage display method and apparatus | |
CN113282852A (en) | Method and device for editing webpage | |
CN105589883B (en) | Method and device for displaying page elements of webpage | |
CN110209965B (en) | Method and apparatus for displaying information | |
CN113805709A (en) | Information input method and device | |
CN103914223A (en) | Terminal application interface generation method and device | |
CN113407189B (en) | Picture material processing method and device, storage medium and electronic equipment | |
CN110309462B (en) | Data display method and system | |
US12288373B2 (en) | Method of processing image, electronic device, storage medium, and program product | |
US10140258B2 (en) | Portable device and image displaying method thereof | |
CN105872691A (en) | Method and device for controlling browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |