CN102695096A - Method and device for acquiring output image-text language of bit stream and set top box - Google Patents

Method and device for acquiring output image-text language of bit stream and set top box Download PDF

Info

Publication number
CN102695096A
CN102695096A CN2012101539161A CN201210153916A CN102695096A CN 102695096 A CN102695096 A CN 102695096A CN 2012101539161 A CN2012101539161 A CN 2012101539161A CN 201210153916 A CN201210153916 A CN 201210153916A CN 102695096 A CN102695096 A CN 102695096A
Authority
CN
China
Prior art keywords
picture
text language
language
weight
current
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.)
Pending
Application number
CN2012101539161A
Other languages
Chinese (zh)
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.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN2012101539161A priority Critical patent/CN102695096A/en
Publication of CN102695096A publication Critical patent/CN102695096A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Machine Translation (AREA)

Abstract

The invention is suitable for the technical field of a set top box and provides a method and a device for acquiring an output image-text language of a bit stream and a set top box. The method comprises the following steps of: acquiring all current image-text languages in a current bit stream in a current program; according to a preset corresponding relation table of the image-text languages and weights, acquiring the weight corresponding to each current image-text language; and setting the current image-text language corresponding to the maximum weight into the output image-text language of the current bit stream. According to the method and device provided by the invention, by presetting the corresponding relation table of the image-text languages and the weights, the weights of all the current image-text languages in the current bit stream can be acquired so as to easily acquire the current image-text language corresponding to the maximum weight, and therefore, the time and the space which are required by the operation are reduced, the image-text language required by a user is more rapidly acquired, the response speed and efficiency are also improved and the like.

Description

A kind of method, device and STB that obtains the output picture and text language of code stream
Technical field
The invention belongs to the set-top box technique field, relate in particular to a kind of method, device and STB that obtains the output picture and text language of code stream.
Background technology
STB is being brought into play increasing effect in people's life, the picture and text function can be user's display program captions, and the user can obtain needed information more convenient, efficiently.Also for eyesight or hearing function have the user of obstacle that some helps are provided, make them can get access to some TV informations more effectively simultaneously, thereby remedy because the information dropout problem that the obstacle of hearing, eyesight causes.As everyone knows, when having multiple picture and text language in the program, relate to the problem of which kind of picture and text language of preferential selection.According to user's needs, set-top box software usually can be stored the picture and text language that the user selects, and picture and text language of acquiescence or the like is set.Generally the user is the highest through the priority of the picture and text language of the interface selection of STB, and the user takes second place through the picture and text language priority of the application software setting of STB, and then priority is minimum for other picture and text language.So here just relate to a issue of priority how to judge picture and text language in the code stream; Generally application software can select that the highest a kind of picture and text language of priority to handle; But the priority ratio of various picture and text language, comprises that the priority language of same level all can go to sort out.So the ordering of the different picture and text language of this priority directly has influence on user's operating interactive and experiences.
Be illustrated in figure 1 as so that picture and text are divided into following three kinds (actual conditions maybe be more) according to priority, the user selects a certain picture and text language A in the code stream through the interface of STB; Certain acquiescence picture and text language B that the application software of STB is provided with through the user; The common picture and text language of in the code stream other C is an example, utilizes prior art to obtain the method flow diagram of the output picture and text language of code stream, is described below:
In step S101, the general using STB obtains all the current picture and text language in the current code stream of current program data.
In step S102, whether each current picture and text language of cycle detection meets the situation of A, be, execution in step S103 then, the current picture and text language that meets the A situation is set to limit priority, not, then continues execution in step S104.
In step S104, whether each current picture and text language of cycle detection meets the situation of B, be, execution in step S105 then, the current picture and text language that meets the B situation is set to limit priority, not, then continues execution in step S106.
In step S106, whether each current picture and text language of cycle detection meets the situation of C, is; Execution in step S107 then; The current picture and text language that meets the C situation is set to limit priority, not, then continues execution in step S108; It is limit priority that empty output language is set, and does not also promptly export any language.
Step S109, the current picture and text language that output priority is the highest.
Finally more just can draw the highest a kind of current picture and text language of current priority through the recycle ratio of permanent order repeatedly; And then the highest current picture and text language of output priority; If the current picture and text language of next segment encode stream changes, then repeating step S101 is to step S109.Yet this method need be passed through multiple recycle ratio, again the picture and text language is sorted and compares; Make that the selection course of picture and text language of limit priority is relatively redundant; And the more time and space resource of consumption system, efficient is lower, influences the response speed of STB.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of method, device and STB of the code stream output picture and text language that obtains; When being intended to solve the output language that utilizes prior art to obtain code stream; Need carry out repeatedly cycle criterion operation, cause complicated operation, response speed slow, obtain the lower problem of efficient.
The embodiment of the invention is achieved in that a kind of method of obtaining the stream output picture and text language of sign indicating number, and said method comprises the steps:
Obtain all the current picture and text language in the current code stream of current program;
According to the preset picture and text language and the mapping table of weight, obtain and the corresponding weight of each current picture and text language;
Pairing current picture and text language was set to the output picture and text language of said current code stream when weight was maximum.
Another purpose of the embodiment of the invention is to provide a kind of device that obtains the output picture and text language of code stream, and said device comprises:
The current language acquiring unit is used for obtaining all current picture and text language of the current code stream of current program;
The weight acquiring unit is used for obtaining and the corresponding weight of each current picture and text language according to the preset picture and text language and the mapping table of weight; And
The output language acquiring unit, pairing current picture and text language is set to the output picture and text language of said current code stream when being used for the weight maximum.
Another purpose of the embodiment of the invention is to provide a kind of STB that comprises the device of the output picture and text language that obtains code stream.
The embodiment of the invention is passed through according to the preset picture and text language and the mapping table of weight; Obtain the corresponding weight of all current picture and text language in the current code stream; Solved when utilizing prior art to obtain the output language of code stream; Need carry out repeatedly cycle criterion operation, cause complicated operation, response speed slow, obtain the lower problem of efficient, make the complicated operation degree be reduced, obtain efficient and response speed all is improved.
Description of drawings
Fig. 1 utilizes prior art to obtain the realization flow figure of method of the output picture and text language of code stream;
Fig. 2 is the realization flow figure of the method for the output picture and text language that obtains code stream that provides of first embodiment of the invention;
Fig. 3 is the realization flow figure of the method for the output picture and text language that obtains code stream that provides of second embodiment of the invention;
Fig. 4 is the structure chart of the device of the output picture and text language that obtains code stream that provides of third embodiment of the invention;
Fig. 5 is the part-structure figure of the device of the output picture and text language that obtains code stream that provides of third embodiment of the invention.
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.
The embodiment of the invention through set up between picture and text language and the weight related; The mapping table of also promptly preset picture and text language and weight; Make the ordering to all picture and text language priority of current code stream convert ordering into to the weight size of correspondence; Make that acquisition methods to the output picture and text language of current code stream is simpler, the time of cycle-index and cost still less, thereby improve acquisition speed and efficient etc.
Below in conjunction with specific embodiment concrete realization of the present invention is described in detail:
Embodiment one:
Fig. 2 shows the realization flow of the method for the output picture and text language that obtains code stream that first embodiment of the invention provides, and details are as follows:
In step S201, obtain all the current picture and text language in the current code stream of current program.
Particularly, when the user when watching a certain program, and generally, a certain program has often comprised multiple picture and text language, such as, Chinese, English, French etc. then relate to the output language of any picture and text language of preferential selection as this program.Can from STB, obtain through this step S201 current program a certain moment code stream or claim all the current picture and text language in the current code stream; Such as the sequencing that in current code stream, occurs according to current picture and text language, all current picture and text language of this that obtains comprise Chinese, English, three kinds of current picture and text language of French successively.
In step S202,, obtain and the corresponding weight of each current picture and text language according to the preset picture and text language and the mapping table of weight.
Wherein, comprise the picture and text language of the multiple appointment of setting in advance in the mapping table of this preset picture and text language and weight, and with the picture and text language of this multiple appointment in each picture and text language weight one to one.In addition; The mapping table of this picture and text language and weight also comprises other picture and text language except that the picture and text language of above-mentioned multiple appointment that are provided with in advance; The pairing weight of these other picture and text language is identical, and less than the corresponding weight of any one picture and text language in the picture and text language of above-mentioned multiple appointment.
Particularly, according to user's needs, set-top box software usually can be stored picture and text language that the user selects, picture and text language of acquiescence or the like is set; Such as the mapping table that can set up picture and text language and weight in advance, stored the multiple picture and text language that the user possibly need usefulness in this mapping table, also comprise the weight corresponding with each picture and text language; The picture and text language of selecting such as the user is the Chinese of appointment, and this Chinese weight can be set is 10000, and the English that first default language is appointment is set; The weight that this English is corresponding is 1000; The French that second default language is appointment is set, and the weight that this French is corresponding is 100, and the Japanese that the 3rd default language is appointment is set; The weight that this Japanese is corresponding is 10 etc., also can be provided with except that Chinese, English, French, the weight of other picture and text language the Japanese and be 0 etc.
In embodiments of the present invention, this step S202 is specially:
Judge whether arbitrary current picture and text language in these all current picture and text language belongs to the picture and text language of a kind of appointment in the mapping table of this preset picture and text language and weight;
When judged result when being, the corresponding weight of this arbitrary current picture and text language is set to the corresponding weight of picture and text language of this a kind of appointment;
When judged result for not the time, the weight of this arbitrary current picture and text language is set to the corresponding weight of any one other picture and text language;
Repeat above-mentioned steps, until obtaining and the corresponding weight of each current picture and text language.
After this step S202, the method for this code stream that obtains output picture and text language also comprises:
Set up and store the language and the weight relationship table of this current code stream, this language comprises this each current picture and text language and corresponding weight of each current picture and text language with this with the weight relationship table.
In concrete implementation process; All current picture and text language can comprise that Chinese, English, three kinds of current picture and text language of French are example with this; Judge in regular turn whether exist in the mapping table of picture and text language that this is preset and weight should Chinese, English, French, the respective weights of then obtaining is respectively 10000,1000,100.If this current picture and text language is Russian; And the mapping table of picture and text language that should be preset and weight is not stored as the picture and text language of the appointment of Russian; Then the weight of this Russian is set in this mapping table the corresponding weight of other picture and text language, and the correspondence weight that can know this Russian of tabling look-up is 0.
Further; After obtaining the weight corresponding with each current picture and text language; Can set up the language and the weight relationship table of this current code stream, this language comprise this each current picture and text language with the weight relationship table and with this corresponding weight of each current picture and text language, and this language and weight relationship table be stored in the region of memory of STB temporarily; After this STB was closed, language in the region of memory and weight relationship table just can be deleted.
In step S203, pairing current picture and text language was set to the output picture and text language of this current code stream when weight was maximum.
Particularly, when pairing current picture and text language was multiple when this weight is maximum, pairing current picture and text language perhaps was this current picture and text language that in this current code stream, occurs at first for any one this current picture and text language when this weight maximum was set.
Since in the picture and text language that should be preset and the mapping table of weight except that the picture and text language of appointment; The weight of other picture and text language is identical; Pairing current picture and text language was multiple when the weight that then might get access to was maximum; Then this moment the user can be provided with as required this weight when maximum pairing current picture and text language be any one this current picture and text language, also can be this current picture and text language of appearance etc. at first in this current code stream.And the weight of the Chinese in current picture and text language is set is 10000, and English weight is 1000, after the weight of French is 100, can find out that the weight of Chinese is maximum, and then this Chinese is set to the output picture and text language of this current code stream.
In the practical implementation process; Can obtain the method for the output picture and text language of code stream through this for the different code streams of any program; Obtain the weight maximum picture and text language that priority is the highest in other words; The output picture and text language of current code stream can meet the user and watch needs, improves user's experience.
In embodiments of the present invention; This method of obtaining the output picture and text language of code stream is passed through the preset picture and text language and the mapping table of weight; Various picture and text language conversion are become a kind of weight sign of quantification, and make and set up relatedly between picture and text language and the weight, the weight of all current picture and text language in the in progress current code stream can be set; Can also set up and store the language and the weight relationship table of current code stream; Then according to simple and clear weight relationship table, can be easy to obtain weight pairing current picture and text language when maximum, and it is set to the output picture and text language of current code stream.Often need repeatedly cycle criterion to obtain the picture and text language of limit priority with respect to prior art; The embodiment of the invention only needs a cycle criterion; Add and once obtain the peaked judgement of weight, just can obtain the picture and text language of limit priority, particularly when current picture and text language does not belong to the highest picture and text language of preset first kind of priority; The method of the output picture and text language that obtains code stream that the embodiment of the invention provides has greatly reduced cycle-index; Reduced the time and the space resources that take, reduced the complicated operation degree, also improved response speed and obtained efficient etc. simultaneously.
Embodiment two:
Fig. 3 shows the realization flow of the method for the output picture and text language that obtains code stream that second embodiment of the invention provides, and is specially the language of current code stream in this method and the acquisition methods of weight relationship table, and details are as follows:
As one embodiment of the present invention; The current picture and text language of in obtaining the current code stream of current program all; And after the language of the preceding paragraph code stream and the weight relationship table, this foundation is also stored the language of this current code stream and the step of weight relationship table can also specifically may further comprise the steps:
In step S301, all the current picture and text language in the current code stream and all the picture and text language in the preceding paragraph code stream are complementary, whether judge increases or has reduced one or more picture and text language in this current code stream.
Wherein, this preceding paragraph code stream can be the preceding paragraph code stream of current program, or the final stage code stream of the different programs that obtain, and this initial code stream is meant first segment encode stream that obtains after STB starts.Particularly; After the current picture and text language of in obtaining the current code stream of current program all; Owing to can store all picture and text language of the preceding paragraph code stream, can judge then that the picture and text language of two segment encodes stream is whether identical to be complementary in other words, inequality; Then increase or reduced one or more picture and text language in this current code stream of explanation; Thereby one or more picture and text language that can obtain this increase or reduce, if identical, then the output language of the preceding paragraph code stream is set to the output picture and text language of current code stream.And when this current code stream is initial code stream; Then this preceding paragraph code stream is empty; Can learn that this current code stream compares the picture and text language that belongs to increase entirely with the preceding paragraph code stream, thereby can continue to obtain the language and the weight relationship table of current code stream according to the method described in the embodiment one.
In step S302; When in judging this current code stream, having increased one or more picture and text language; According to the preset picture and text language and the mapping table of weight, obtain and add all picture and text language of this increase and the weight of correspondence is added in the language and weight relationship table of this preceding paragraph code stream.
In step S303, when judging that this has reduced one or more picture and text language, all the picture and text language and the corresponding weight of this minimizing of storing in the language of deleting this preceding paragraph code stream and the weight relationship table.
In the practical implementation process; If judge the picture and text language of the existing increase of obtaining the picture and text language of minimizing is arranged again; Then can select to add the perhaps sequencing of the operation of deletion according to actual conditions; Then the order of step S303 and step S302 can be changed, and is not used in restriction the present invention at this, and is following for afterwards to carry out deletion action be example to add earlier.If got access to one or more picture and text language that increase newly; According to the preset picture and text language and the mapping table of weight; Obtain the corresponding weight of one or more picture and text language that increases newly with this; And these one or more picture and text language that increase newly and corresponding weight are added in the language and weight relationship table of this preceding paragraph code stream, other picture and text language and weight are constant, thereby upgrade this language and weight relationship table.Such as; If all the picture and text language in the preceding paragraph code stream are T1, T2, T3, corresponding weight is respectively 1000,10000,100, and the prioritization that then can show the picture and text language is T2>T3>T1; If all the current picture and text language in the current code stream are T4, T2, T1; Can know that then this picture and text language that increases newly is T4, the then preset more picture and text language and the mapping table of weight learn that the weight of this T4 is 10, and then the prioritization of T1, T2, T3, T4 is T2>T3>T1>T4.Continue to judge and to know a kind of picture and text language T3 that has got access to minimizing; One or more picture and text language of this minimizing of storing in the language of this preceding paragraph code stream and the weight relationship table and corresponding weight are carried out deletion action; Same this this language and the weight relationship table of upgrading; Then the prioritization of the T1 of picture and text language, T2, T4 is T2>T1>T4, thus can obtain the priority of all current picture and text language easy, clear, legibly.
In step S304, the language and the weight relationship table of the preceding paragraph code stream after the language of this current code stream and weight relationship table are set to upgrade.
Particularly; Through above-mentioned steps obtain language and weight relationship table after the renewal then be with current code stream in current picture and text language corresponding, thereby the language and the weight relationship table of the preceding paragraph code stream after language that can this current code stream and weight relationship table are set to upgrade.So far, the user just can draw weight corresponding current picture and text language when maximum according to this language and weight relationship table, thereby has accomplished the deterministic process of whole priority language, finally with the output language of this current picture and text language as current code stream.
In embodiments of the present invention; Except according to the step in the embodiment of the invention one; Also promptly mainly be to have used the preset picture and text language and the mapping table of weight; Obtain outside the language and weight relationship table of current code stream, same, under the situation of the language of learning the preceding paragraph code stream and weight relationship table; Also can obtain the language and the weight relationship table of current code stream according to the step of the embodiment of the invention two, so weight when maximum pairing current picture and text language be set to the output language of this current code stream.The language of the current code stream that the embodiment of the invention provides and weight relationship acquisition methods; Compare with the acquisition methods that embodiment one provides; Language and the weight relationship that can further simplify this current code stream obtain operation; And then further reduced the cycle-index of the output picture and text language that obtains current code stream, particularly change under the more frequent situation language and the weight relationship acquisition methods that utilize the embodiment of the invention to provide at the pairing picture and text language of difference code stream constantly; Utilize the language of the preceding paragraph code stream and language and the weight relationship table that the weight relationship table just can obtain current code stream basically; And cycling that need not be frequent has reached the comparison time of obtaining picture and text priority that significantly reduces, the purpose of the reaction speed of quickening system, lifting user operating experience effect etc.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
Embodiment three:
Fig. 4 shows the structure of the device of the output picture and text language that obtains code stream that third embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with the embodiment of the invention.
This device that obtains the output picture and text language of code stream can be used for STB; Perhaps having picture and text language priority obtains in the other-end of function; It can be the software unit that runs in these terminals; Also can be used as independently suspension member and be integrated in these terminals or run in the application system at these terminals, this device that obtains the output picture and text language of code stream comprises current language acquiring unit 41, weight acquiring unit 42 and output language acquiring unit 43, wherein:
Current language acquiring unit 41 is used for obtaining all current picture and text language of the current code stream of current program.
Weight acquiring unit 42 is used for obtaining and the corresponding weight of each current picture and text language according to the preset picture and text language and the mapping table of weight.
Wherein, The picture and text language that comprises the multiple appointment that is provided with in advance in the picture and text language that should be preset and the mapping table of weight; And with the picture and text language of this multiple appointment in each picture and text language weight one to one; The mapping table of this picture and text language and weight also comprises other picture and text language except that the picture and text language of above-mentioned multiple appointment that are provided with in advance; The pairing weight of these other picture and text language is identical, and less than the corresponding weight of any one picture and text language in the picture and text language of above-mentioned multiple appointment.And the picture and text language that should be preset and the mapping table of weight generally are stored in the specific location of STB; Weight such as Chinese can be set is 1000, and English weight is 100, and the weight of French is 10; The weight of Japanese is 1, and other picture and text language weights are 0.5 etc.
As shown in Figure 4, this weight acquiring unit 42 specifically comprises:
Whether judging unit 421, the arbitrary current picture and text language that is used for judging these all current picture and text language belong to the picture and text language of a kind of appointment in the mapping table of this preset picture and text language and weight;
The first weight acquiring unit 422, be used for when this judging unit 421 output results when being, the corresponding weight of this arbitrary current picture and text language is set to the weight of the picture and text language correspondence of this a kind of appointment;
The second weight acquiring unit 423, be used for when this judging unit 421 output results for not the time, the weight of this arbitrary current picture and text language is set to the corresponding weight of any one other picture and text language; And
Weight is obtained subelement 424, is used to trigger this judging unit 421, until obtaining and the corresponding weight of each current picture and text language.
In embodiments of the present invention; All current picture and text language can comprise that English, two kinds of current picture and text language of Russian are example with this; Can know that according to judging unit 421 Russian belongs to this preset picture and text language and other picture and text language in the weight relationship table; Then utilize the second weight acquiring unit 423 can obtain the weight of this Russian, and the minimal weight in this mapping table of this weight, such as 0.5 etc.; Utilizing the first weight acquiring unit 422 can obtain this English weight is 100, then this current picture and text language: the weight English, that Russian is corresponding is followed successively by 100,0.5.
After triggering weight acquiring unit 42, this device that obtains the code stream output language can also comprise:
Relation table is set up the unit, is used to set up and store the language and the weight relationship table of this current code stream, and this language comprises this each current picture and text language and corresponding weight of each current picture and text language with this with the weight relationship table.
Output language acquiring unit 43, pairing current picture and text language is set to the output picture and text language of this current code stream when being used for the weight maximum.
In embodiments of the present invention, set up according to relation table in language and the weight relationship table of this current code stream that the unit obtains and comprised English, Russian, and corresponding respectively weight 100,0.5.Can learn easily that then English weight is the highest, then be set to the output language of this current code stream, to meet consumers' demand according to output language acquiring unit 43 Chinese.
This device that obtains the output language of code stream also comprises:
Language is provided with the unit; When being used for that pairing current picture and text language is multiple when this weight is maximum, be provided with this weight when maximum pairing current picture and text language for any one this current picture and text language or be this current picture and text language of appearance at first in this current code stream.
In embodiments of the present invention; If the current picture and text language that obtains successively in this current code stream is merely two kinds; These two kinds of picture and text language correspondences belong to other language in the mapping table of this preset picture and text language and weight, and corresponding weight is identical, thereby at this moment; Pairing current picture and text language was both when this weight was maximum; Such as being German, Russian, the output picture and text language that this current code stream then can be set be German or Russian all can, the German that also can obtain at first is set to weight pairing current picture and text language etc. when maximum.
The embodiment of the invention provides a kind of device that comprises the output picture and text language that obtains code stream of current language acquiring unit 41, weight acquiring unit 42 and output language acquiring unit 43; Can utilize weight to realize ordering through this device that obtains the code stream output language to the picture and text language priority of current code stream; With the highest maximum picture and text language of weighted value in other words of output priority; Can reduce the complicated operation degree with respect to prior art, efficient and response speed etc. are provided.
As shown in Figure 5, to set up on the basis of unit based on triggering current language acquiring unit and relation table, this device that obtains the output picture and text language of code stream also comprises:
Matching judgment unit 51 is used for all current picture and text language of current code stream and all the picture and text language in the preceding paragraph code stream are complementary, and whether judge increases or reduced one or more picture and text language in this current code stream;
Relation table first updating block 52; Be used for judging this current code stream and increased one or more picture and text language when this matching judgment unit 51; According to the preset picture and text language and the mapping table of weight, obtain and add in the language and weight relationship table of weight to this preceding paragraph code stream of all picture and text language and correspondence of this increase;
Relation table second updating block 53; Be used for judging this current code stream and having reduced one or more picture and text language all the picture and text language and the corresponding weight of this minimizing of storing in the language of deleting this preceding paragraph code stream and the weight relationship table when this matching judgment unit 51; And
Current relation table acquiring unit 54, the language and the weight relationship table of the preceding paragraph code stream after language and the weight relationship table that is used for this current code stream is set to upgrade.
Wherein, this preceding paragraph code stream can be the preceding paragraph code stream of current program, or the final stage code stream of the different programs that obtain, and this initial code stream is meant first segment encode stream that obtains after STB starts.
In embodiments of the present invention; The current picture and text language of in obtaining the current code stream of current program all; And after the language of the preceding paragraph code stream and the weight relationship table; This foundation and the structure of storing language and the weight relationship table of this current code stream can also comprise matching judgment unit 51 as shown in Figure 5, relation table first updating block 52, relation table second updating block 53 and current relation table acquiring unit 54; The function of four unit that this is shown in Figure 5 is corresponding with the method shown in the embodiment of the invention two, repeats no more at this.Aspect the effect that realizes; Whether can real-time judge go out in this current code stream through this matching judgment unit 51 is to increase or reduced one or more picture and text language; Not only increased but also reduced certain picture and text language etc. in other words; And judged result according to this matching judgment unit 51; Can dynamically upgrade the language and the weight relationship table of the preceding paragraph code stream through relation table first updating block 52, relation table second updating block 53, after upgrading, the language and the weight relationship table of the language that this current code stream then can directly be set and the weight relationship table the preceding paragraph code stream after for renewal; Can significantly reduce the obtaining step of picture and text language weight, the number of times of priority cycle criterion like this, and then can improve code stream and export the response speed of picture and text language, strengthen user's experience or the like.
The embodiment of the invention is through all the current picture and text language in the current code stream that obtains current program; According to the preset picture and text language and the mapping table of weight; Obtain and the corresponding weight of each current picture and text language, pairing current picture and text language was set to the output picture and text language of said current code stream when weight was maximum, when having solved the output picture and text language that utilizes prior art to obtain code stream; Need carry out repeatedly cycle criterion operation; Cause complicated operation, efficient is lower, response speed is slow problem, reduced cycle-index and complicated operation degree, improved the picture and text language and obtained efficient and system response time etc.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method of obtaining the output picture and text language of code stream is characterized in that said method comprises the steps:
Obtain all the current picture and text language in the current code stream of current program;
According to the preset picture and text language and the mapping table of weight, obtain and the corresponding weight of each current picture and text language;
Pairing current picture and text language was set to the output picture and text language of said current code stream when weight was maximum.
2. the method for claim 1; It is characterized in that; The picture and text language that comprises the multiple appointment that is provided with in advance in the mapping table of said preset picture and text language and weight; And with the picture and text language of said multiple appointment in each picture and text language weight one to one; And also comprise other picture and text language except that the picture and text language of said multiple appointment in the mapping table of said preset picture and text language and weight, the pairing weight of said other picture and text language is identical, and less than the corresponding weight of any one picture and text language in the picture and text language of said multiple appointment.
3. method as claimed in claim 2 is characterized in that, the picture and text language that said basis is preset and the mapping table of weight, and the step of obtaining the weight corresponding with each current picture and text language is specially:
Judge whether arbitrary current picture and text language in said all current picture and text language belongs to the picture and text language of a kind of appointment in the mapping table of said preset picture and text language and weight;
When judged result when being, the corresponding weight of said arbitrary current picture and text language is set to the corresponding weight of picture and text language of said a kind of appointment;
When judged result for not the time, the weight of said arbitrary current picture and text language is set to the corresponding weight of any one other picture and text language;
Repeat above-mentioned steps, until obtaining and the corresponding weight of each current picture and text language.
4. method as claimed in claim 3; It is characterized in that; After the said step of obtaining the weight corresponding with each current picture and text language, pairing current picture and text language was set to before the step of output picture and text language of said current code stream when said weight was maximum, and said method also comprises:
When pairing current picture and text language is multiple when said weight is maximum, be provided with said weight when maximum pairing current picture and text language be any one said current picture and text language or said current picture and text language in said current code stream, occurring at first.
5. the method for claim 1 is characterized in that, after the said step of obtaining the weight corresponding with each current picture and text language, said method also comprises:
Set up and store the language and the weight relationship table of said current code stream, said language and weight relationship table comprise said each current picture and text language and with the corresponding weight of said each current picture and text language.
6. method as claimed in claim 5 is characterized in that, when said current code stream was not initial code stream, said foundation was also stored the language of said current code stream and the step of weight relationship table specifically comprises:
Whether all current picture and text language in the current code stream and all the picture and text language in the preceding paragraph code stream, judging increases or has reduced one or more picture and text language in the said current code stream if being complementary;
In judging said current code stream is to have increased one or more picture and text language; According to the preset picture and text language and the mapping table of weight, obtain and all picture and text language and the corresponding weight of adding said increase extremely in the language and weight relationship table of said the preceding paragraph code stream;
In judging said current code stream is to have reduced one or more picture and text language, all the picture and text language and the corresponding weight of the said minimizing of storing in the language of deleting said the preceding paragraph code stream and the weight relationship table;
The language of the preceding paragraph code stream after the language of said current code stream and weight relationship table are set to upgrade and weight relationship table.
7. the device of a code stream output picture and text language that obtains is characterized in that said device comprises:
The current language acquiring unit is used for obtaining all current picture and text language of the current code stream of current program;
The weight acquiring unit is used for obtaining and the corresponding weight of each current picture and text language according to the preset picture and text language and the mapping table of weight; And
The output language acquiring unit, pairing current picture and text language is set to the output picture and text language of said current code stream when being used for the weight maximum.
8. device as claimed in claim 7 is characterized in that, said device also comprises:
Relation table is set up the unit, is used to set up and store the language and the weight relationship table of said current code stream, said language and weight relationship table comprise said each current picture and text language and with the corresponding weight of said each current picture and text language.
9. device as claimed in claim 8 is characterized in that, said device also comprises:
The matching judgment unit is used for all current picture and text language of current code stream and all the picture and text language in the preceding paragraph code stream are complementary, and whether judge increases or reduced one or more picture and text language in the said current code stream;
Relation table first updating block; Be used for having increased one or more picture and text language when said matching judgment unit judges goes out said current code stream; According to the preset picture and text language and the mapping table of weight, obtain and all picture and text language and the corresponding weight of adding said increase extremely in the language and weight relationship table of said the preceding paragraph code stream;
Relation table second updating block; Be used for going out said current code stream and having reduced one or more picture and text language all the picture and text language and the corresponding weight of the said minimizing of storing in the language of deleting said the preceding paragraph code stream and the weight relationship table when said matching judgment unit judges; And
Current relation table acquiring unit, the language and the weight relationship table of the preceding paragraph code stream after language and the weight relationship table that is used for said current code stream is set to upgrade.
10. a STB is characterized in that, said STB comprises each described device that obtains the output picture and text language of code stream of claim 7 to 9.
CN2012101539161A 2012-05-17 2012-05-17 Method and device for acquiring output image-text language of bit stream and set top box Pending CN102695096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101539161A CN102695096A (en) 2012-05-17 2012-05-17 Method and device for acquiring output image-text language of bit stream and set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101539161A CN102695096A (en) 2012-05-17 2012-05-17 Method and device for acquiring output image-text language of bit stream and set top box

Publications (1)

Publication Number Publication Date
CN102695096A true CN102695096A (en) 2012-09-26

Family

ID=46860352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101539161A Pending CN102695096A (en) 2012-05-17 2012-05-17 Method and device for acquiring output image-text language of bit stream and set top box

Country Status (1)

Country Link
CN (1) CN102695096A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389162A (en) * 2014-09-09 2016-03-09 北京金山安全软件有限公司 Method and device for changing terminal system language and terminal
WO2017045638A1 (en) * 2015-09-18 2017-03-23 深圳市九洲电器有限公司 Method and system for changing set-top box interface
CN110970018A (en) * 2018-09-28 2020-04-07 珠海格力电器股份有限公司 Speech recognition method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1208924A (en) * 1997-06-19 1999-02-24 索尼株式会社 Reproducing apparatus for automatically designating language corresponding to user and method for automatically designating language corresponding to the user
CN1839626A (en) * 2003-06-18 2006-09-27 松下电器产业株式会社 Reproduction apparatus, program, and reproduction method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1208924A (en) * 1997-06-19 1999-02-24 索尼株式会社 Reproducing apparatus for automatically designating language corresponding to user and method for automatically designating language corresponding to the user
CN1839626A (en) * 2003-06-18 2006-09-27 松下电器产业株式会社 Reproduction apparatus, program, and reproduction method
CN101261861A (en) * 2003-06-18 2008-09-10 松下电器产业株式会社 Playback apparatus, program, and playback method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389162A (en) * 2014-09-09 2016-03-09 北京金山安全软件有限公司 Method and device for changing terminal system language and terminal
WO2017045638A1 (en) * 2015-09-18 2017-03-23 深圳市九洲电器有限公司 Method and system for changing set-top box interface
CN110970018A (en) * 2018-09-28 2020-04-07 珠海格力电器股份有限公司 Speech recognition method and device

Similar Documents

Publication Publication Date Title
US9865252B2 (en) Voice recognition apparatus and method for providing response information
CN112740645B (en) Server, method of controlling server, and readable recording medium
CN101876907B (en) Multi-language implementation method and device of human-computer interaction interface
CN104965659A (en) Page information preloading method and apparatus
CN101252640B (en) Method for writing sequence number to set top box
CN104765750A (en) Input language switch method and device for input method application
CN104159113A (en) Method and device for selecting video coding mode for Android system
CN103023755A (en) Method and electronic device for data transmission
JP2011146036A (en) Information processor, control method for the same, and program
CN105187845A (en) Video data decoding device and method
CN101521782A (en) Method for fast-forward and fast-backward browsing video, system and multimedia equipment
US8423481B2 (en) Self-learning method for keyword based human machine interaction and portable navigation device
CN106201155A (en) Method for displaying user interface and system
CN104601999A (en) Encoding method and encoding device based on key frame
CN102695096A (en) Method and device for acquiring output image-text language of bit stream and set top box
CN104461545A (en) Method and device of providing contents in mobile terminals to users
CN102508822A (en) Thai display method, device and system
US20140359325A1 (en) Method, device and system for energy management
CN105094776A (en) List processing method and device
CN105100862A (en) Grid movement display processing method and grid movement display processing system
US20210105234A1 (en) Message processing method and electronic device supporting the same
CN109933734B (en) Page skipping method, device and system and storage medium
CN111836095A (en) Mode for circularly displaying programs at TV (television) end
CN102521261A (en) Method for manufacturing dot matrix word stock according to vector word stock
CN105338097A (en) Terminal screen size-based flow control method, terminal and business server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120926