CN102117477A - Method and system showing waiting animation of embedded device - Google Patents

Method and system showing waiting animation of embedded device Download PDF

Info

Publication number
CN102117477A
CN102117477A CN2010100426631A CN201010042663A CN102117477A CN 102117477 A CN102117477 A CN 102117477A CN 2010100426631 A CN2010100426631 A CN 2010100426631A CN 201010042663 A CN201010042663 A CN 201010042663A CN 102117477 A CN102117477 A CN 102117477A
Authority
CN
China
Prior art keywords
embedded device
animation
shows
task
waits
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
CN2010100426631A
Other languages
Chinese (zh)
Other versions
CN102117477B (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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN201010042663.1A priority Critical patent/CN102117477B/en
Publication of CN102117477A publication Critical patent/CN102117477A/en
Application granted granted Critical
Publication of CN102117477B publication Critical patent/CN102117477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method showing waiting animation of an embedded device. The method comprises the following steps of A. obtaining system modes, executing the step B when a system executes a task, and stopping the step B when the system finishes the task; and B. displaying a group of pictures preset sequentially according to set speed by a Direct FB shape library of the embedded device and an API (Application Program Interface) provided by a Lite control Library. The invention also provides the system showing the waiting animation of the embedded device correspondingly. On the basis of operating the API at a simple window provided by the Direct FB shape library of the embedded device, when the device needs to wait a background to execute the task, the method and the system realize the animation displaying effect on the interface so as to enhance the visual sense experience of a user.

Description

A kind of embedded device shows cartoon method and the system of waiting for
Technical field
The present invention relates to adopt the embedded device field of DirectFB shape library, more particularly, relate to a kind of embedded device and show cartoon method and the system of waiting for.
Background technology
On embedded device, because system resource constraints need to adopt to take the shape library that resource is few, efficient is high and stable, and the DirectFB shape library just in time can satisfy these requirements.The Direct shape library be one based on framebuffer " shape library ", its main field is embedded, use and expense with MIN resource, maximum hardware-accelerated degree performance is provided, on embedded devices such as handheld mobile device, IPTV set-top box, Web TV and numerically-controlled machine, obtains at present than widespread use.
Yet because this shape library belongs to the bottom shape library, the graphic operation API that provides is limited, does not support the motion picture of gif form.Therefore,, only can Show Picture or literal, make the interface display effect that clamps on single, lack interesting when the user carries out interface operation and system need wait for that resource can not enter into new interface the time.Therefore, need a kind of embedded device of exploitation to show cartoon method and the system of waiting for.
Summary of the invention
The technical problem to be solved in the present invention is, at the single defective of above-mentioned wait interface display effect of existing embedded device, provides a kind of embedded device to show and waits for cartoon method and system.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of embedded device and show cartoon method and the system of waiting for, utilize the DirectFB shape library of embedded device and the API that the Lite widget library provides, show default set of diagrams sheet successively according to setting speed, wait for animation to form.
The invention provides a kind of embedded device and show the wait cartoon method, may further comprise the steps:
A, obtain system state, execution in step B when executing the task in system is at the interrupt step B when finishing that executes the task of system;
The API that B, the DirectFB shape library of utilizing embedded device and Lite widget library provide shows default set of diagrams sheet successively according to setting speed.
Show that at embedded device of the present invention described step B further comprises in the wait cartoon method:
B1, establishment animation window thread;
The API that B2, the DirectFB shape library of utilizing embedded device and Lite widget library provide creates animation window and loads the control of picture;
B3, in the window of creating, carry out animation display.
Show that at embedded device of the present invention this method also comprises default step B0 in the wait cartoon method: in embedded device, deposit in as the set of diagrams sheet of waiting for animation.
Show that at embedded device of the present invention described step B3 further comprises in the wait cartoon method:
B31, transfer default set of diagrams sheet;
B32, show the picture of transferring successively according to setting speed.
Show in the wait cartoon method at embedded device of the present invention, also comprise background and transparency that window is set among the described step B2.
Show that at embedded device of the present invention in the wait cartoon method, described method is destroyed window and thread after also comprising interrupt step B.
The present invention also provides a kind of embedded device to show the system that waits for animation, comprises interrupt module and animation display module;
Described interrupt module is used to obtain system state and opens the animation display module when executing the task in system, executes the task in system and interrupts the animation display module when finishing;
Described animation display module is utilized the DirectFB shape library of embedded device and the API that the Lite widget library provides, and shows default set of diagrams sheet successively according to setting speed.
Show that at embedded device of the present invention described system also comprises the memory module that links to each other with the animation display module, is used to store default set of diagrams sheet in the system that waits for animation.
Implement embedded device of the present invention and show cartoon method and the system of waiting for, have following beneficial effect: the present invention is on the basis of the simple windows operation A PI that the DirectFB of embedded device shape library provides, when equipment need wait for executing the task in the backstage, in the effect of waiting for interface realization animation display, the visual perception who has strengthened the user experiences.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is that embedded device shows wait cartoon method process flow diagram in the preferred embodiment of the present invention;
Fig. 2 is that embedded device shows the further process flow diagram of wait cartoon method in the preferred embodiment of the present invention;
Fig. 3 is the module diagram that embedded device shows the system that waits for animation in the preferred embodiment of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.
Embedded device provided by the invention shows waits for that cartoon method can be applicable on the embedded device that adopts the DirectFB shape library, on embedded devices such as hand-held mobile terminal, IPTV set-top box, Web TV and numerically-controlled machine.See also Fig. 1, wait for the cartoon method process flow diagram for embedded device in the preferred embodiment of the present invention shows.As shown in Figure 1, method provided by the invention may further comprise the steps:
In steps A, obtain system state, execution in step B when executing the task in system is at the interrupt step B when finishing that executes the task of system.
In step B, utilize the DirectFB shape library of embedded device and the API that the Lite widget library provides, show default set of diagrams sheet successively according to setting speed.
In said process, steps A is ongoing, judges constantly that promptly whether system carries out corresponding task on the backstage, and whether the user is in waiting status, thereby shows execution in step B when waiting for animation at needs.Equally, execute the task to finish promptly in system and finish to wait the interrupt step B that bides one's time, to carry out follow-up demonstration.
See also Fig. 2, embedded device shows the particular flow sheet of waiting for step B in the cartoon method in the preferred embodiment of the present invention.As shown in Figure 2, the specific implementation process of step B is as follows:
In step B1, create the animation window thread.
In step B2, utilize the DirectFB shape library of embedded device and API establishment animation window that the Lite widget library provides and the control that loads picture.In a preferred embodiment of the invention, this step B2 can also comprise background and the transparency that window is set.
In step B3, in the window of creating, carry out animation display.
In a preferred embodiment of the invention, this method also comprises default step B0: deposit in embedded device as the set of diagrams sheet of waiting for animation.Therefore, step B3 further comprises: step B31, transfer default set of diagrams sheet; B32, show the picture of transferring successively according to setting speed.
In a preferred embodiment of the invention, behind interrupt step B, also will destroy window and thread.
Below the main code that the present invention is based on the DirectFB shape library is described.
1, in step B1, create the animation window thread:
pWaitWinThread=direct_thread_create(DTT_MESSAGING,kkWaitWinEventThread,pSearchApWaitTips,″Wait?Window″);
2, in step B2, create the control of animation window and loading picture:
lite_new_window(NULL,&rect,DWCAPS_ALPHACHANNEL,
liteDefaultWindowTheme,″″,&window);
res=lite_new_image(LITE_BOX(window),&rect,NULL,&pAniImage);
if(res?!=DFB_OK)
{
_PRINT_NANXQ(″fail?to?create?lite_new_image!\n.″);
}
res=lite_load_image(pAniImage,
SHAREPICTURESDIR″/kktips_wait.png″);
3, in step B3, carry out animation display:
Char*animationPics[12]=...; The preservation position of // continuous picture
while(WaitWinExitFlag==false)
{
usleep(500000);
// calculate to show any pictures; Cnt is the array index that Shows Picture
cnt=cnt%12;
res=lite_load_image(pAniImage,animationPics[cnt]);
if(res!=DFB_OK)
{
print(″lite_load_image?execute?fail.\n″);
}
cnt++;
break;
}
4, withdraw from animation display, destroy the animation display window:
if(WaitWinExitFlag==true)
{
break;
}
kkDestroyWaitWin();
See also Fig. 3, show the module diagram of the system that waits for animation for embedded device in the preferred embodiment of the present invention.As shown in Figure 3, embedded device provided by the invention shows the system that waits for animation, comprises interrupt module 100 and animation display module 200.Wherein, interrupt module 100 is used to obtain system state and opens animation display module 200 when executing the task in system, executes the task in system and interrupts animation display module 200 when finishing.Animation display module 200 is utilized the DirectFB shape library of embedded device and the API that the Lite widget library provides, and shows default set of diagrams sheet successively according to setting speed.In a preferred embodiment of the invention, this system also comprises the memory module 300 that links to each other with the animation display module, is used to store default set of diagrams sheet.
In sum, the present invention at first needs the art designing to draw the continuous picture of one group of relevant action and deposits in the memory module of embedded device, when switching according to certain speed when Showing Picture, just produces animation effect.In order to show animation synchronously, need newly set up a new thread, the basic API that in thread, uses DirectFB shape library and Lite widget library to provide, set up earlier one with the picture that will load window of a size, set the background and the transparency of window, display speed according to prior setting loads background picture in proper order, has just formed the animation display effect.When the system finishing busy condition, stop animation display, and destroy window and destroy thread.
The present invention can be used as when one independently algoritic module realizes that system need wait for that resource can not enter into new interface to carrying out interface operation as the user, present wait for animation with the prompting custom system be in busy in, thereby the visual perception who strengthens the user experiences, and system to take resource less.
The present invention is described according to specific embodiment, but it will be understood by those skilled in the art that when not breaking away from the scope of the invention, can carry out various variations and be equal to replacement.In addition, for adapting to the specific occasion or the material of the technology of the present invention, can carry out many modifications and not break away from its protection domain the present invention.Therefore, the present invention is not limited to specific embodiment disclosed herein, and comprises that all drop into the embodiment of claim protection domain.

Claims (8)

1. an embedded device shows the wait cartoon method, it is characterized in that, may further comprise the steps:
A, obtain system state, execution in step B when executing the task in system is at the interrupt step B when finishing that executes the task of system;
The API that B, the DirectFB shape library of utilizing embedded device and Lite widget library provide shows default set of diagrams sheet successively according to setting speed.
2. embedded device according to claim 1 shows waits for cartoon method, it is characterized in that described step B further comprises:
B1, establishment animation window thread;
The API that B2, the DirectFB shape library of utilizing embedded device and Lite widget library provide creates animation window and loads the control of picture;
B3, in the window of creating, carry out animation display.
3. embedded device according to claim 2 shows waits for cartoon method, it is characterized in that this method also comprises default step B0: deposit in embedded device as the set of diagrams sheet of waiting for animation.
4. embedded device according to claim 3 shows waits for cartoon method, it is characterized in that described step B3 further comprises:
B31, transfer default set of diagrams sheet;
B32, show the picture of transferring successively according to setting speed.
5. embedded device according to claim 2 shows waits for cartoon method, it is characterized in that, also comprises background and transparency that window is set among the described step B2.
6. embedded device according to claim 2 shows waits for cartoon method, it is characterized in that, described method is destroyed window and thread after also comprising interrupt step B.
7. an embedded device shows the system that waits for animation, it is characterized in that, comprises interrupt module and animation display module;
Described interrupt module is used to obtain system state and opens the animation display module when executing the task in system, executes the task in system and interrupts the animation display module when finishing;
Described animation display module is utilized the DirectFB shape library of embedded device and the API that the Lite widget library provides, and shows default set of diagrams sheet successively according to setting speed.
8. embedded device according to claim 7 shows the system that waits for animation, it is characterized in that described system also comprises the memory module that links to each other with the animation display module, is used to store default set of diagrams sheet.
CN201010042663.1A 2010-01-06 2010-01-06 Method and system showing waiting animation of embedded device Active CN102117477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010042663.1A CN102117477B (en) 2010-01-06 2010-01-06 Method and system showing waiting animation of embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010042663.1A CN102117477B (en) 2010-01-06 2010-01-06 Method and system showing waiting animation of embedded device

Publications (2)

Publication Number Publication Date
CN102117477A true CN102117477A (en) 2011-07-06
CN102117477B CN102117477B (en) 2014-12-03

Family

ID=44216230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010042663.1A Active CN102117477B (en) 2010-01-06 2010-01-06 Method and system showing waiting animation of embedded device

Country Status (1)

Country Link
CN (1) CN102117477B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544059A (en) * 2013-07-16 2014-01-29 Tcl集团股份有限公司 Implementation method and system for awaiting and buffering effect at time of application switching
CN105023286A (en) * 2015-06-29 2015-11-04 天脉聚源(北京)科技有限公司 Target picture animation display method and device
CN109710352A (en) * 2018-12-11 2019-05-03 青岛海信电器股份有限公司 A kind of display methods and device of boot animation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770129A (en) * 2004-08-30 2006-05-10 Qnx软件操作系统公司 System for providing transparent access to hardware graphic layer
CN1949269A (en) * 2006-11-10 2007-04-18 北京金山软件有限公司 Cartoon realizing method and cartoon drawing system thereof
CN101241431A (en) * 2007-02-08 2008-08-13 佛山市顺德区顺达电脑厂有限公司 Method for dynamically switching display sequence related image according to program execution stages
CN101458621A (en) * 2008-12-09 2009-06-17 三星电子(中国)研发中心 Application method of object variation track on application program user interface in video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770129A (en) * 2004-08-30 2006-05-10 Qnx软件操作系统公司 System for providing transparent access to hardware graphic layer
CN1949269A (en) * 2006-11-10 2007-04-18 北京金山软件有限公司 Cartoon realizing method and cartoon drawing system thereof
CN101241431A (en) * 2007-02-08 2008-08-13 佛山市顺德区顺达电脑厂有限公司 Method for dynamically switching display sequence related image according to program execution stages
CN101458621A (en) * 2008-12-09 2009-06-17 三星电子(中国)研发中心 Application method of object variation track on application program user interface in video

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544059A (en) * 2013-07-16 2014-01-29 Tcl集团股份有限公司 Implementation method and system for awaiting and buffering effect at time of application switching
CN103544059B (en) * 2013-07-16 2017-08-08 Tcl集团股份有限公司 The realization method and system of pending buffer effect during a kind of application switching
CN105023286A (en) * 2015-06-29 2015-11-04 天脉聚源(北京)科技有限公司 Target picture animation display method and device
CN109710352A (en) * 2018-12-11 2019-05-03 青岛海信电器股份有限公司 A kind of display methods and device of boot animation
CN109710352B (en) * 2018-12-11 2022-02-18 海信视像科技股份有限公司 Display method and device of boot animation

Also Published As

Publication number Publication date
CN102117477B (en) 2014-12-03

Similar Documents

Publication Publication Date Title
CN103810021B (en) Virtual desktop display methods and its system based on host under a kind of VDI
CN103544059B (en) The realization method and system of pending buffer effect during a kind of application switching
US20130024812A1 (en) Foreground/background assortment of hidden windows
CN111127293A (en) Method, apparatus and computer program product for processing data
CN203025673U (en) Multi-screen linkage touch control display system
WO2015161578A1 (en) Window management method and device
CN102270428A (en) Display device and display interface refresh method and device
CN103793169A (en) Mobile communications device and method of switching screen of mobile communications device from screen locked state to screen unlocked state
CN103279331A (en) Multi-task concurrent processing method and device for Android system
CN104778022B (en) A kind of data processing method and electronic equipment
CN104238984B (en) A kind of method and system of multi-host parallel synchronism output image
CN101727282A (en) Method for achieving interactive interface cartoon
CN102117477B (en) Method and system showing waiting animation of embedded device
CN107315531A (en) The control method and system of intelligent terminal application
CN104346064A (en) Information processing method and electronic equipment
CN108769815A (en) Method for processing video frequency and its device
CN108401453A (en) A kind of method, apparatus and intelligent terminal of control display screen
CN111258668A (en) Method and device for dynamically switching display of GPU virtual desktop
CN104035768A (en) System and method for Android platform to be compatible with local code OpenGL program
CN102467383B (en) A kind of method that realizes Shipping Options Page window at graphical interface of embedded system
CN103997673A (en) Event processing method and device
CN108009977A (en) The method and system of multiple remote graphics terminals are supported under multi-thread environment
WO2015196543A1 (en) Terminal and multi-window display method for terminal, and storage medium
CN103237251A (en) Control method of intelligent television system
CN102591656B (en) Achieving method and achieving device for window animation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant