Summary of the invention
The technical problem that the present invention mainly solves provides a kind of receiving terminal for digital television and ad data processing method thereof, with the processing speed of receiving terminal for digital television such as raising STB to ad data, promotes sense of experience of users.
The embodiment of the invention provides a kind of ad data processing method of receiving terminal for digital television, said method comprising the steps of:
The ad data that reception server sends, said ad data comprises picture control information table, pictorial information table or image data table, wherein, every kind of table all has corresponding table sign;
In said picture control information table, pictorial information table or the image data table that parsing receives one or more obtain every kind of corresponding table of table and identify;
Judge resolving one or more picture control information tables, pictorial information table and the image data table that obtain said table sign, judge that its corresponding table sign is whether in the Already in said receiving terminal for digital television;
If in the Already in said receiving terminal for digital television of corresponding table sign, then all of same table sign are shown corresponding stored one by one.
Wherein, before with advertisement data store, said method is further comprising the steps of:
Judge whether to obtain all ad datas, if, otherwise continue to obtain ad data then with the ad data packing back storage of obtaining.
Wherein, after obtaining said picture control information table, said method is further comprising the steps of:
Version in the said picture control information table and the version that is stored in said receiving terminal for digital television are compared, judge whether and need the ad data of having stored be upgraded.
Wherein, before the step of the ad data that reception server sends, said method is further comprising the steps of:
Said ad data is saved in advance in the structure of said receiving terminal for digital television.
Wherein, said method is further comprising the steps of:
Obtain the type and the server identification of said receiving terminal for digital television display control interface; The sign of obtaining said ad data according to the type and the server identification of said display control interface; Sign according to said ad data reads corresponding image data, shows after converting the image data that reads into the type matching of said display control interface form.
An also purpose of the embodiment of the invention is to provide a kind of receiving terminal for digital television, and said terminal comprises:
The ad data receiver module is used for the ad data that reception server sends, and said ad data comprises picture control information table, pictorial information table or image data table, and wherein, every kind of table all has corresponding table sign;
The ad data parsing module is used for resolving one or more of said picture control information table, pictorial information table or image data table of reception, obtains every kind of corresponding table sign of table;
Judge module is used for judging resolving one or more picture control information tables, pictorial information table and the image data table that obtain said table sign, judges that its corresponding table sign is whether in the Already in said receiving terminal for digital television;
Memory module is used for according to said sign the ad data that obtains corresponding stored one by one.
Wherein, said judge module also is used to judge whether to obtain all ad datas, if, then control said memory module with the ad data packing back storage of obtaining, continue to obtain ad data otherwise control said ad data parsing module.
Wherein, said terminal also comprises:
Version contrast module is used for the version of said picture control information table and the version that is stored in said receiving terminal for digital television are compared, and judges whether and need the ad data of having stored be upgraded.
Wherein, said memory module also is used for said ad data is saved in advance the structure of said receiving terminal for digital television.
Wherein, said terminal also comprises:
Display control module; Be used to obtain the type and the server identification of said digital TV terminal display control interface; The sign of obtaining said ad data according to the type and the server identification of said display control interface; Sign according to said ad data reads corresponding image data, shows after converting the image data that reads into the type matching of said display control interface form.
Through the foregoing description, the invention enables receiving terminal for digital television such as STB fast, stable, realize processing efficiently to ad data, be beneficial to popularizing of receiving terminal for digital television such as STB.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
First embodiment of the invention provides a kind of ad data processing method of receiving terminal for digital television, said method comprising the steps of:
The ad data that reception server sends, said ad data comprises picture control information table, pictorial information table or image data table, wherein, every kind of table all has corresponding table sign;
In said picture control information table, pictorial information table or the image data table that parsing receives one or more obtain every kind of corresponding table of table and identify;
Judge resolving one or more picture control information tables, pictorial information table and the image data table that obtain said table sign, judge that its corresponding table sign is whether in the Already in said receiving terminal for digital television;
If corresponding table sign is whether in the Already in said receiving terminal for digital television, then all of same table sign are shown corresponding stored one by one.
Second embodiment of the invention provides a kind of receiving terminal for digital television, and said terminal comprises:
The ad data receiver module is used for the ad data that reception server sends, and said ad data comprises picture control information table, pictorial information table or image data table, and wherein, every kind of table all has corresponding table sign;
The ad data parsing module is used for resolving one or more of said picture control information table, pictorial information table or image data table of reception, obtains every kind of corresponding table sign of table;
Judge module is used for judging resolving one or more picture control information tables, pictorial information table and the image data table that obtain said table sign, judges that its corresponding table sign is whether in the Already in said receiving terminal for digital television;
Memory module is used for according to said sign the ad data that obtains corresponding stored one by one.
See also Fig. 1, Fig. 1 shows the flow process of the ad data processing method of the receiving terminal for digital television that the embodiment of the invention provides.For ease of explanation, the embodiment of the invention is that STB is that example describes with the receiving terminal for digital television.
In step S101, the ad data that reception server sends.
Wherein, ad data comprises picture control information table, pictorial information table or image data table, and wherein, every kind of table all has corresponding table sign.More detailed description about above-mentioned each table sees also hereinafter.
In the practical implementation process, before the step of the ad data that reception server sends, comprising:
In the set-top-box opening process, read the ad data of preserving in the said memory, when reading, directly receive ad data step S101 from server less than said ad data; When reading said ad data, said ad data is saved in advance in the structure of said digital TV terminal, and carries out step S102.
In step S102, one or more in picture control information table, pictorial information table or the image data table that parsing receives obtain every kind of corresponding table of table and identify.
In the practical implementation process; The embodiment of the invention also compares version in the picture control information table and the version that is stored in STB; Judge whether and need the ad data of having stored be upgraded; When version was consistent, directly demonstration had been stored in the ad data in the STB, otherwise carries out step S103.
The foregoing description is that the ad data when realizing set-top-box opening loads; Will in each start, obtain the once ad data of reception like this; When in reception, judging that version is consistent, directly carry out advertisement and show with last ad data, raise the efficiency greatly.
In step S103, judge resolving one or more picture control information tables, pictorial information table and the image data table that obtain said table sign, judge that its corresponding table sign is whether in the Already in said STB; If whether corresponding table sign in the Already in said STB, is then carried out step S104, otherwise is carried out step S105.
In step S104, all of same table sign are shown corresponding stored one by one.
In the practical implementation process, also judge whether to have obtained all ad datas, if, otherwise continue to obtain ad data then with the ad data packing back storage of obtaining.
In step S105, the table that is resolved to is directly stored.
In the practical implementation process; STB is when showing ad data; Obtain the type and the server identification of said STB display control interface; The sign of obtaining said ad data according to the type and the server identification of display control interface reads corresponding image data according to the sign of ad data, shows after converting the image data that reads into the type matching of display control interface form.
The present invention makes STB save the plenty of time, realizes Data Receiving treatment mechanism efficiently, and quick, stable, advertisement receiving system efficiently are provided.
In another embodiment; Realize safety protecting mechanism; Promptly receive in the ad data step from front end, when outage, holding wire are pulled out perhaps front end data interruption, perhaps when the ad data that receives exceeds threshold values; When the ad data version that perhaps receives was the same with the ad data version in the memory, method ends no longer carried out the said image data of accomplishing packaging is write the memory step of STB.
For realizing another kind of safety protecting mechanism; Prevent can't reduce after the system crash, the memory step that the said image data of accomplishing packaging is write STB comprises: will accomplish the said image data of packaging and the time data that writes for the first time writes the memory of STB.
In another embodiment; The ad data that receives is handled during imperfect; Promptly receive in the ad data step from front end, when the ad data that receives is imperfect, carry out simultaneously said reception ad data step, with show the picture step in the said memory through mechanism itself.
Among the embodiment, receive ad data and the multiplexing data flow TS step of television programme data are comprised more specifically from front end:
1), obtains the electric program menu EPG frequency at ad data place;
2), in set-top-box opening, lock said frequency;
3), the locking said frequency after, the identity code transmission package PID of ad data receive path is set, and opens said passage;
4), adopt said passage to receive data flow TS from front end, said data flow is with ad data and the multiplexing data flow of television programme data;
5), when receiving said data flow TS, adopt filter to filter out other data except that ad data.
For better describing the present invention, the application note of a specific embodiment is provided below:
See also Fig. 2, Fig. 2 is the relation between advertisement pictorial information, image data and the MPTS in the STB.
STB of the present invention supports multichannel Service to have the transmission means of own corresponding advertisement picture.When the advertisement picture issues,, accomplish to specifying Service to distribute the advertisement picture through in the control section of advertisement picture MPTS, inserting PicLink Description descriptor.In the connection procedure; Support one road Service to link a width of cloth advertisement picture; Also support a plurality of different Service to link same width of cloth advertisement picture, concrete implementation is please with reference to the structure of PicLink Description among picture control information table shown in Figure 3 and Fig. 4.
Wherein, the segmental structure table for image data stream shown in Figure 5; Shown in Figure 6 is the pictorial information table; Shown in Figure 7 is pictorial information Pic_Info (); Shown in Figure 8 is image data table: pic_segment_data_section ().
See also Fig. 9, Fig. 9 shows the flow process of advertisement implementation procedure in the present invention's enforcement.
Relation through each table among above-mentioned Fig. 3 to Fig. 8; The form that ad data is packaged into TS stream is multiplexing with other TV programme; According to the front end bandwidth situation; The broadcast code check of adjustment ad stream, STB finds ad data according to the specific descriptor of advertisement among the TS and parses, and by STB the advertisement picture that parses is presented on the terminal televisions through distinctive mechanism again.
See also Figure 10, Figure 10 is an ad data receiving course flow process.
(Electronic ProgramGuide, EPG) frequency go locked frequency point in set-top-box opening, if the frequency locking success is carried out next step, if failure then directly withdraw from reception at first to obtain the electric program menu at ad data place.The sign Pid of ad data receive path is set after the frequency locking success, gives to receive the ad data open walk, filter out other data except that ad data through filter is set again.
In the embodiment of the invention, the ad data loading procedure is described below:
STB at first can go to read the ad data of preserving among the FLASH in start process, if do not have data then directly carry out Data Receiving; If data are arranged, earlier the data among the FLASH are saved in the structure, and then carry out Data Receiving; Will in each start, obtain the once data of reception like this; When in reception, judging that version is consistent, directly carry out advertisement and show with last data, raise the efficiency greatly.
In the embodiment of the invention, following to ad data parsing (to the description of each table of Fig. 3 to Fig. 8) process prescription:
Because the several tables of Fig. 3 to Fig. 8 have identical table_id, so order receives together before and after can being regardless of.Below be description to the resolution data of each table:
At first in storing process, need several variablees:
The associated in correspondence number of A, actual reception (receiving what picture control information tables), the PicID that describes according to each picture control information table when being used for picture information and image data searches;
Total segment number of B, actual reception is used to judge whether to receive whole segment;
The segment number of C, actual reception one width of cloth picture is used to receive after the data data packaging with each picture;
The pictorial information number of D, actual reception is used for searching data at the pictorial information that receives;
E, for judging that identical section_id does not go to repeat to receive, whether practical this section_id of binary search of the embodiment of the invention had received, if received then skip.
See also Figure 11, Figure 11 shows and resolves picture control information flow journey in the embodiment of the invention.
Describe the corresponding relation of all advertisement pictures in this table, comprised service_id, the type of picture and the id of picture that picture is corresponding; , table_extension_id and section_number represent picture control information table when being all 0.At first parse pic_control_version (version), compare with set-top box memory FLASH the inside versions of data.If identical then show do not have the picture version to change, directly the data in the FLASH are copied structure used when showing, jump out Data Receiving.If version is inequality, resolve and obtain picture number pic_number, be used for judgment data and whether receive all advertisement pictures.When resolving this table, the number (the related number of actual reception) that receives picture control information table also preserved in record, and the subscript when being used to store is stored ServiceID, PicType, the PicID of each corresponding relation; Whenever receive that a picture control information table just adds the number of associated in correspondence once.After all receiving, can obtain having resolved what corresponding relations altogether, be exactly above-described associated in correspondence number.
See also Figure 12, Figure 12 resolves picture information table flow process in the embodiment of the invention.
Explained the information data of each advertisement picture in this table: the size after the wide height of picture, original size, the compression, the quantity of picture segment data, whether the term of validity of compression, picture etc. is arranged; The picture number of at first judging actual reception is less than maximum (maximum has operator to provide); Because the reception of three kinds of tables order is not fixed; What might receive earlier is not the pictorial information table; So will go for whether received this pic_id in the control information table of searching actual reception according to section_number (identical),, the pictorial information data of resolving composed the corresponding picture to pic_id if exist with pic_id; Before picture control information table, do not receive that so this pic_id is preserved, the pictorial information number with actual reception adds once simultaneously if there is not explanation picture information table earlier.
See also Figure 13, Figure 13 shows and resolves picture tables of data flow process in the embodiment of the invention.
What this table was corresponding is the data field of each picture; The picture information table is identical with resolving; Also to go for whether received this pic_id in the control information table of searching actual reception according to sign section_number (identical) with pic_id; If do not exist; Explain that then the picture tables of data receives that earlier also this pic_id is preserved, the pictorial information number with actual reception adds once simultaneously before the picture control information table.If exist, the image data of resolving is composed the corresponding picture (buffer of picture, segment_id, size) to pic_id, the segment number with a width of cloth picture of actual reception adds once simultaneously.
Reception to section is that three kinds of tables (picture control information table, pictorial information table, image data table) receive simultaneously; From code stream, receive a section and total segment_num is added 1 with regard to going to resolve and preserve simultaneously; In this case the order of table not successively, so when receiving pictorial information table and image data table, at first will judge the pic_id (section_number) that whether had received in the control information table that receives described in these two tables.Like this, be that what table all can be preserved him earlier regardless of what receive earlier, go assignment according to the description in the corresponding relation (picture control information table) again.
In embodiments of the present invention; After the whole receptions of ad data finish; With the total number of picture that receives is outer circulation, will judge earlier whether the segment of a width of cloth picture actual reception and the segment that parses (in the pictorial information table, description being arranged) number equate.Unequal explanation does not receive whole ad datas, and directly the ad data with the FLASH storage shows; If equate; Again with the segment number circulation of the actual reception of every width of cloth picture; Obtain the segment data and the size of certain width of cloth picture according to pic_id; The segment data of each picture are pieced together in order, be packaged in together, the picture number according to actual reception writes FLASH in the lump with data again.
Figure 14 shows the flow for displaying of the advertisement picture that the embodiment of the invention provides.
In embodiments of the present invention, STB comes the display ads picture through the mode of control.At first create an advertise control in the interface China that wants display ads; Because each interface will show the different advertisement picture; Here need provide the type and the pairing service_id at interface; Take out the id (pic_id) of picture again according to the type at service_id and interface, take out corresponding pictorial information according to picture pic_id again: image data, wide, high, big or small, picture/mb-type (such as gif, jpeg, bmp, I frame etc.); The image data of all forms of getting is resolved to the picture format that the STB acquiescence shows, the mode through the space is presented on the interface.
In embodiments of the present invention; Not only do the mechanism of timeout treatment in the safe handling in receiving data procedures; Judge also whether segment total in describing is identical with total number of actual reception, also has each picture segment number of segment and actual reception of each picture in the description whether identical.So just guarantee whether whether Data Receiving correctly receive; When carrying out the FLASH read-write, just do not judge the crc verification, also add the time and date that writes FLASH for the first time, guarantee that STB can normally start under abnormal conditions.
See also Figure 15, Figure 15 is that flow chart is upgraded in the advertisement of the embodiment of the invention, in view of the clear statement of diagramatic content, no longer details here.
See also Figure 16, Figure 16 shows the structure of the receiving terminal for digital television that the embodiment of the invention provides.
Wherein, ad data receiver module 161 is used for the ad data that reception server sends, and said ad data comprises picture control information table, pictorial information table or image data table, and wherein, every kind of table all has corresponding table sign;
Ad data parsing module 162 is used for resolving one or more of said picture control information table, pictorial information table or image data table of reception, obtains every kind of corresponding table sign of table;
Judge module 163 is used for judging resolving one or more picture control information tables, pictorial information table and the image data table that obtain said table sign, judges that its corresponding table sign is whether in the Already in said receiving terminal for digital television;
Memory module 164 is used for according to said sign the ad data that obtains corresponding stored one by one.
In the practical implementation process; Said judge module 163 also is used to judge whether to obtain all ad datas, if; Then control said memory module with the ad data packing back storage of obtaining, continue to obtain ad data otherwise control said ad data parsing module.
Said terminal also comprises:
Version contrast module 165 is used for the version of said picture control information table and the version that is stored in said receiving terminal for digital television are compared, and judges whether and need the ad data of having stored be upgraded.
Said memory module 164 also is used for said ad data is saved in advance the structure of said digital TV terminal.
Display control module 166; Be used to obtain the type and the server identification of said digital TV terminal display control interface; The sign of obtaining said ad data according to the type and the server identification of said display control interface; Sign according to said ad data reads corresponding image data, shows after converting the image data that reads into the type matching of said display control interface form.
The embodiment of the invention need not to wait for by putting in order of ad data the ad data of correct order, according to the sign of the table that receives, judges whether to store the table of like-identified; If have; According to the sign corresponding stored, if do not have, directly storage; Save the plenty of time, realized Data Receiving treatment mechanism efficiently.
The above is merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.