A kind of mobile terminal and raising screen interface thereof draw the method for speed
Technical field
The present invention relates to communication technical field, more specifically, relate to a kind of mobile terminal and improve the method that screen interface draws speed.
Background technology
In the past screen interface draw use mode be redraw and picture video resource loading, draw carry out simultaneously.The use of CPU will be caused so too high, make end loads comparatively large, cause some application program not complete smoothly, occur that the interface of such as video is drawn imperfect, or block motionless situation.
The mobile phone of the current overwhelming majority uses hardware decode, and hardware decode needs hardware to have hardware decode module, relevant driving cooperation, suitable playout software and the setting correct to playout software, lacks any one and all can not open hardware decode function.
The advantage of hardware decode is that efficiency is high, low in energy consumption, heat power consumption is low, shortcoming be lack strong support (comprising filter, captions etc.), the limitation comparatively large disabler etc. of the energy-conservation aspect of terminal (after such as the opening hardware decode), terminal CPU uses too high, and arranges comparatively complicated.
Therefore, be necessary that proposing a kind of new technology overcomes above-mentioned drawback.
Summary of the invention
Under the present invention seeks to solve multi-media decoding and encoding software simulating condition, mobile terminal is when using multimedia application, and the long problem of time delay is drawn at interface.
For achieving the above object, the present invention proposes a kind of method improving screen interface drafting speed, when multimedia application is play, adopt and softly realize encoding and decoding, during initializes video, do not carry out screen overlap-add operation, reduce brush screen or non-brush screen, the picture resource being used for drawing is moved in internal memory simultaneously, complete interface to draw, then notify that equipment opened by bottom, brush screen is play.
Further, when multimedia application is play, the application that when application that other priority are high arrives, meeting preferential answering priority is high; Taking to suspend the process playing or exit application to multimedia application makes mobile terminal can respond other application.
Further, when multimedia application is play, obtain the message that upper strata thread sends initialization apparatus, lower floor can set and play correlation parameter.
Further, described correlation parameter comprises size, the pattern of broadcasting, the passage arranging audio frequency, inspection earphone state, the default key color of video playback area.
Further, after lower floor's initialization apparatus, receive message response, perform in the resource to internal memory that Loads Image and draw for interface.
Further, after the picture resource loading of video player, complete drafting interface by drawing function.
Further, described in complete after sendaisle message to lower floor, the lower layer open equipment of notice, the crucial colour be provided with is added on the screen of mobile terminal, creates separately a thread brush screen and complete the drafting of video data on screen.
The present invention also proposes a kind of mobile terminal, and described mobile terminal comprises application management functional module, functional module and video playback capability module are drawn in interface;
Described application management Implement of Function Module is to the management of mobile terminal upper layer application and mobile terminal key response;
Described interface draw functional module move will draw picture resource in internal memory, complete interface and draw;
Described video playback capability module initialization sound, video equipment realize multimedia soft decoding and brush frame of video to screen, display video picture.
Further, when multimedia application is play, the application that when application that other priority are high arrives, meeting preferential answering priority is high; Taking to suspend the process playing or exit application to multimedia application makes mobile terminal can respond other application.
Further, when multimedia application is play, obtain the message that upper strata thread sends initialization apparatus, lower floor can set and play correlation parameter, and described correlation parameter comprises size, the pattern of broadcasting, the passage arranging audio frequency, inspection earphone state, the default key color of video playback area.
In sum, the present invention is adopted to have following beneficial effect:
In technical solution of the present invention, effectively can reduce the load of processor, preferentially complete interface and draw, and also can respond brush screen, decoding in a short period of time, so can be good at improving Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is embodiment of the present invention mobile terminal composition schematic diagram;
Fig. 2 is that the embodiment of the present invention improves screen interface drafting speed method schematic flow sheet.
Embodiment
Under the present invention solves multi-media decoding and encoding software simulating condition, mobile terminal is when using multimedia application, and the long problem of time delay is drawn at interface.
Main thought of the present invention is:
When multimedia application is play, the application that when application that other priority are high arrives, meeting preferential answering priority is high; Taking to suspend the process playing or exit application to media application makes mobile terminal can respond other application; Adopt soft when realizing encoding and decoding, do not carry out screen overlap-add operation during initializes video, reduce brush screen or non-brush screen, the picture resource simultaneously for drawing is moved in internal memory, completes interface and draws; Then notify that equipment opened by bottom, brush screen is play.
Below in conjunction with accompanying drawing, specific implementation principle of the present invention and processing procedure are described.
Please refer to shown in Fig. 1, be embodiment of the present invention mobile terminal composition schematic diagram, mobile terminal of the present invention comprises application management functional module, functional module and video playback capability module are drawn in interface.
Described application management functional module, is used for realizing the management to mobile terminal upper layer application and mobile terminal key response.
Functional module is drawn at described interface, move will draw picture resource in internal memory, complete interface and draw.
Described video playback capability module, being used for initialization sound, video equipment realizes multimedia soft decoding and brush frame of video to LCD, display video picture.
Please refer to shown in Fig. 2, be that the embodiment of the present invention improves screen interface drafting speed method schematic flow sheet, it comprises the steps:
S201: start application;
Mobile terminal starts and improves interface drafting speed function, and this function can be arranged by user and open or close, or starting up of terminal just starts automatically.
S202: initialization apparatus;
Obtain after upper strata thread sends the message of initialization apparatus, lower floor can set some and the correlation parameter play, as the size of video playback area, the pattern (full frame or half screen is play) play, the passage that audio frequency is set, inspection earphone state, default key color, complete the initialization of Audio and Video equipment, instead of continue equipment operating, open equipment (if next open equipment can do brush screen process to LCD, taking the resource of CPU).The initialization of notice upper strata lower floor completes.
S203: resource is loaded into;
After lower floor's initialization sound, video equipment, receive message response, perform in the resource to internal memory that Loads Image and draw for interface.At present, the storage resources major part of falling now appearance technology is all stored in file system, searches this picture resource, be loaded in internal memory by unique ID of picture in file system.
S204: draw screen;
After the picture resource loading of video player, lower floor does not have other action to take the resource of processor, now draw interface, completed by the drafting function of GUI under the condition of resource abundance and draw interface, because now process resource can be used to greatest extent, so can complete the drafting to interface at once, user can experience Video Applications the very first time and open.Promote user's visual experience.
S205: open audio frequency, video equipment;
Sendaisle message after completing, send messages directly to lower floor, for notifying lower layer open equipment, the screen of mobile terminal that the crucial colour be provided with is added to, now can create separately a thread and be used for brush screen and complete the drafting of video data on LCD.
S206: play video.
Next utilize soft decoding to carry out decode video data, start the solution frame of video, being superimposed by the thread that the Frame obtained and key color pass through to have started is presented on LCD, reaches the object of video playback video.
After mobile terminal accepts press key message, message processing function adds the response to this message in message queue, whether the video format that judgement will be opened is legal, whether inquiry has Video Applications to be in operation, if there is Video Applications to be in operation, application before terminating, respond current key response, process simultaneously and whether have other application multimedia to be in operation, because ensure the playing process at video, audio frequency apparatus and video equipment are all exclusive, and judge the priority at first that whether current video playback is, when condition meets, start video playback application.The application of screen buffer is completed intercept and capture the application of press key message notice lower floor startup video playback when this message of process in process function while.
In sum, in the present invention, mobile terminal uses resource to carry out conservative control, concurrent and the path message by thread, complete the message response between levels, can ensure like this, within the shortest time, message is passed to upper strata (or lower floor), path message can also ensure not losing of message, the scheme of first initialization apparatus not brush screen superposition is started to adopt in process at application start, drafting module completes interface and draws, adopt the load that effectively can reduce processor in such a way, preferentially complete interface to draw, and also can respond brush screen in a short period of time, decoding, so can be good at improving Consumer's Experience.
Certainly; the present invention also can have numerous embodiments; do not deviating from the situation of the present invention's spirit and essence thereof; those of ordinary skill in the art can make various corresponding change or change according to the present invention certainly; in every case done within the spirit and principles in the present invention any amendment, equivalent replacement, improvement, all should be included within protection scope of the present invention.