Intelligent television based on 3D model large data placard approaches to IMTechnical field
The present invention relates to intelligent television, the method for particularly Multi-thread control and data prestrain on intelligent television.
Background technology
Along with the arriving in cloud epoch, large data (Big data) have also attracted increasing concern, and large data are changing our life style and understanding the mode in the world, and intelligent television industry also opens a major reform thereupon.At large data age, intelligent television has only as user provides the resource information of magnanimity to attract user, the market competitiveness of improving product, video playback is then the favorite a kind of resource of user, user is when carrying out video request program preview, need to carry out loading to the placard picture of video resource to refresh, current ubiquitous problem be when placard data volume larger, time hardware resource configures again not high, it is slow that user obviously feels that placard loads refresh rate, and Focal Point Shift is slow, Consumer's Experience is caused to decline, greatly affect the core competitiveness of intelligent television product.
Summary of the invention
Technical problem to be solved by this invention, is just to provide a kind of intelligent television based on 3D model large data placard approaches to IM, solves the Caton phenomenon of user when preview placard and Focal Point Shift retardation problem to reach.
The present invention solve the technical problem, the technical scheme adopted is, intelligent television based on 3D model large data placard approaches to IM, during system receives user video request program preview command, load refreshing video preview placard, played up at current display page, the Focal Point Shift that system realizes intelligent television by multiple line distance management mode is movable, graph rendering is movable and the prestrain of placard picture, the refreshing of picture and memory management activity;
Described Focal Point Shift is movably arranged in main thread;
Described graph rendering is movably arranged in 3DUI thread;
The prestrain of described picture, the refreshing of picture and memory management are movably arranged in Buffer thread.
Further, also comprise after the intelligent television page shows, whether systems axiol-ogy receives Focal Point Shift order in setting-up time, if not, carries out prestrain to placard picture on backstage;
If have, then block all tasks in Buffer thread, and respond Focal Point Shift order.
Further, the described intelligent television based on 3D model large data placard approaches to IM also comprises, when user sends the display page switching command of preview placard picture, system is first by the refreshing inside Buffer thread, prestrain task empties, then carry out the detection of data page internal memory, if the placard information of current data page has been buffered in internal memory, then directly carry out playing up of picture; The download carrying out picture if, do not need in real time refreshes.
Further, all image cache data are less than or equal to system assignment to the stored memory of video placard image data.
Further, the priority being arranged at the Focal Point Shift activity in main thread is movable higher than other in 3DUI thread and Buffer thread.
Further, the priority of memory management in described Buffer thread is higher than the refreshing of picture, and the priority of the refreshing of picture is higher than the prestrain of picture.
The invention has the beneficial effects as follows, realize by adopting multiple line distance management mode that the Focal Point Shift of intelligent television is movable, graph rendering is movable and the prestrain of placard picture, the refreshing of picture and memory management activity, Focal Point Shift is movably arranged in main thread, graph rendering is movably arranged in 3DUI thread, the prestrain of picture, the refreshing of picture and memory management are movably arranged in Buffer thread, achieve the preemptive type management of multitask like this, promote key response and placard Data import refresh rate;
In addition, system detects in setting-up time whether have focus switching command in real time, if not, utilizes free time to carry out backstage and loads placard picture, can promote placard loading efficiency further, like this when user's page turning preview, can be very fast just placard picture is played up out.
Embodiment
Technical scheme of the present invention is described in detail below in conjunction with embodiment:
The present invention is directed in prior art, when placard data volume is larger, time hardware resource configures again not high, it is slow that user obviously feels that placard loads refresh rate, and Focal Point Shift is slow, cause the problem that Consumer's Experience declines, a kind of intelligent television based on 3D model large data placard approaches to IM is provided, during system receives user video request program preview command, load refreshing video preview placard, played up at current display page, the Focal Point Shift that system realizes intelligent television by multiple line distance management mode is movable, the prestrain of graph rendering activity and placard picture, the refreshing of picture and memory management activity, described Focal Point Shift is movably arranged in main thread, described graph rendering is movably arranged in 3DUI thread, the prestrain of described picture, the refreshing of picture and memory management are movably arranged in Buffer thread.Realize by adopting multiple line distance management mode that the Focal Point Shift of intelligent television is movable, graph rendering is movable and the prestrain of placard picture, the refreshing of picture and memory management activity, Focal Point Shift is movably arranged in main thread, graph rendering is movably arranged in 3DUI thread, the prestrain of picture, the refreshing of picture and memory management are movably arranged in Buffer thread, achieve the preemptive type management of multitask like this, promote key response and placard Data import refresh rate; In addition, system detects in setting-up time whether have focus switching command in real time, if not, utilizes free time to carry out backstage and loads placard picture, can promote placard loading efficiency further, like this when user's page turning preview, can be very fast just placard picture is played up out.
Embodiment
Under set hardware platform; the present invention is by the reasonable management and control to intelligent television large data placard information; dynamically memory management not only can effectively protect intelligent television product; internal memory can be caused when avoiding a large amount of placard picture to load to rise suddenly and sharply the problem that movement can be made to generate heat rapidly; extend product useful life; and when user carries out video request program preview; effectively can promote video placard information and load the speed refreshed; solve the problem that user focus switch card pauses simultaneously, improve the fluency of Consumer's Experience.
This routine technical scheme realizes as follows:
Create data page display model by 3D modeling software blender in prior art, in 3D interactive interface, various animation effect can be realized very easily, and animation effect is smooth, vividly.Data page display model quantity is determined jointly by intelligent television display layout and animation effect.The stored memory that supposing the system distributes to video placard image data is N, and every page of 12 data models in 3D model.Store M can only open placard data under set internal memory N, therefore M need be the integral multiple of 12.
The conversion of placard pictorial information, the placard pictorial information that intelligent television obtains from the Internet is all png, jpg form, and playing up of 3D model carries out graph rendering by calling Android OpenGL ES2.0 interface, it is Bitmap form that picture is played up in requirement, 3D data model is by managing texture and material in addition, and texture and material not only comprises the texture information of picture, also has illumination, shadow informations etc., this example has only used the picture texture information in texture and material.User is when carrying out video request program preview, placard picture number is huge, and data display model quantity is certain, therefore must bind dynamically to tie up with solution to model and placard picture texture and operate to ensure that the correct of placard pictorial information mates, these are all current those skilled in the art's common technology means, explain no longer further herein.
In order to promote key response and placard Data import refresh rate, the Focal Point Shift of intelligent television is movably arranged in main thread by this example, OpenGL ES2.0 graph rendering is movably arranged in 3DUI thread, the loading of placard picture, the refreshing of placard picture and memory management are movably arranged in Buffer thread, achieve the preemptive type management of multitask like this.
The loading of placard picture, refreshing, memory management activity, inside same thread, carry out user the process that video request program page turning preview all can see a placard Data import, refreshing so at every turn.Therefore, in order to placard loading efficiency can be promoted further, time at one's leisure, namely user is when carrying out video request program preview, 5 seconds when not carrying out any button operation, system carries out prestrain to placard picture on backstage automatically, and like this when user's page turning preview, very fast just plays up out by placard picture.
From the above, the present invention relates to 3 threads when video request program preview, and each thread comprises one or more task, and reasonably or synchronous task asynchronous to these regulates and controls, and effectively can realize the information management of intelligent television large data placard.For Consumer's Experience, when user carries out video request program preview, it is alternately most important that focus switches, as long as so user carries out focus handover operation, the necessary real-time response of focus controller, therefore focus switching is given limit priority by the present invention, namely when user carries out focus handover operation, the task inside Buffer thread is all blocked; 3DUI thread is that the built-in Render circulation of Android OpenGL ES2.0 plays up that thread is per second carries out repeatedly refresh inquiry to 3D model, and when Buffer thread gets clogged, 3DUI thread has just carried out query manipulation, does not need consumes resources.Buffer thread is the core of large data placard information management, and include the loading of data, refreshing, memory management three tasks inside Buffer thread, memory management is that three task medium priorities are the highest, and being secondly that picture refreshes, is finally picture prestrain.
This example utilizes page turning as memory management trigger point, supposes that prestrain total data is X page, and namely internal memory the placard picture of prestrain X page (if X is odd number, then can only comprise current data page, X/2 page data page above, X/2 page data page below; If X is even number, then comprise current data page, (X-1)/2 page data page above, X/2 page data page below), in whole video request program previews, the data volume stored inside placard datarams must be less than or equal to X page, effectively can control internal memory like this, prevent EMS memory occupation from rising suddenly and sharply, reduce quantity of heat production, effectively extend product service time.
When user carries out program request preview page turning, first by the refreshing inside Buffer thread, prestrain task empties, memory management then retains as limit priority, then carry out the detection of data page internal memory, the placard image data buffer memory beyond X page is removed, then carries out the refreshing of data page.If the placard information of current data page has been buffered in internal memory, then directly carry out playing up of picture, otherwise then need the download carrying out picture in real time to refresh, in this way can the information management of effectively realization large data placard.
The foregoing is only case study on implementation of the present invention, be not limited to the present invention, all do within principle of the present invention and spirit any amendment, equivalent replace and improve, be all included within protection scope of the present invention.