The extended method and device of process resource
Technical field
The present embodiments relate to the extended methods and device of the communication technology more particularly to a kind of process resource.
Background technique
With the continuous development of the communication technology, smart television is increasingly becoming electronic equipment indispensable in people's life,
The smart television may include various software or hardware resource, such as document handling system (file), loudspeaker
(Speaker), tuner (Tuner) etc., each resource are properly termed as a Pathswitch.One PathSwitch can
It is input terminal (Source) and output terminal (Sink) respectively, wherein Source shows this to include two main terminals
The type for the source data that PathSwitch is capable of handling, Sink show the type of the target data of PathSwitch output.
Currently, the resource placement of smart television is all limited to the hardware and software resource of the machine, it is only capable of being based on working as
Preceding resource handles source data, and for some new resources (or new technology) or some raisings that may occur in future
The technology of the processing speed of legacy version TV can not use on the smart television of legacy version, so that the intelligence of legacy version
Can TV can not handle certain form of data, or the speed of processing data is slow, and then can not bring for user and preferably make
With experience.
Summary of the invention
The embodiment of the present invention provides the extended method and device of a kind of process resource, to solve legacy version in the prior art
Smart television can not merge new process resource, cause the function of smart television deficient, the speed for handling data is slow, Jin Erwu
Method is the technical issues of user brings better usage experience.
In a first aspect, the present invention provides a kind of extended method of process resource, comprising:
After detecting the first process resource access television system, the processing capacity of first process resource is obtained;Its
In, the processing capacity of first process resource includes type and the institute for the source data that first process resource can be handled
The type of the target data of output;
First process resource is stored according to the processing capacity of first process resource, so that the TV
System carries out resource selection according to the type information of input data from currently stored process resource;Wherein, the type
Information includes the type of input data and the type of target data to be obtained.
In a kind of possible embodiment, the processing capacity according to first process resource will be at described first
Reason resource is stored, and is specifically included:
Judge first process resource processing capacity whether with preset first resource set or preset second
Resource collection matching, obtains matching result;
First process resource is stored to the first resource set or described second according to the matching result
In resource collection;
Wherein, the first resource set includes multiple first subclass, includes at least one in each first subclass
The identical second processing resource of processing capacity;The Secondary resource set includes that multiple second subset are closed, and each second subset is closed
In include at least one third process resource, the type for the source data that each third process resource can be handled is all the same.
In another possible embodiment, it is described according to the matching result by first process resource store to
In the first resource set or the Secondary resource set, specifically include:
If the type for the source data that the matching result can be handled for first process resource and the mesh exported
The type of mark data is matched with any first subclass in the first resource set, then by the mark of first process resource
Knowledge is added in first subclass;
If the type for the source data that the matching result can be handled for first process resource and the Secondary resource
Any second subset in set closes matching, then the mark of first process resource is added in the second subset conjunction;
If the type for the source data that the matching result can be handled for first process resource and the mesh exported
The type and the first subclass of each of the first resource set for marking data mismatch, the first process resource institute energy
The type of the source data of processing is mismatched with each second subset conjunction in the Secondary resource set, then will be at described first
The mark of reason resource is respectively stored in the first resource set and the Secondary resource set as new subclass.
In another possible embodiment, the type information according to input is from currently stored process resource
Middle progress resource selection, specifically includes:
Determine that the first resource set whether there is and the type information matched second according to the type information
Process resource;
If it exists with the matched second processing resource of the type information, then will be matched with the type information and idle
Second processing resource as currently processed resource;
If it does not exist with the matched second processing resource of the type information, then described is determined according to the type information
It is closed in two resource collections with the presence or absence of with the second subset of the type matching of the input data;
It is closed if it exists with the second subset of the type matching of the input data, then from the type with the input data
An optional third process resource handles the input data in the second subset conjunction matched, and obtains output data, and will be described defeated
Data determine new type information as new input data, and according to the new input data out;
Continued to judge that the first resource set whether there is and the new type letter according to the new type information
Matched second processing resource is ceased, it is currently processed up to being got according to the new type information from the first resource set
Until resource;Alternatively, until with there is no idle thirds to handle in the second subset conjunction of the type matching of the input data
Until resource.
Second aspect, the present invention provide a kind of expanding unit of process resource, comprising:
Module is obtained, for obtaining first process resource after detecting the first process resource access television system
Processing capacity;Wherein, the processing capacity of first process resource includes the source number that first process resource can be handled
According to type and the target data exported type;
Memory module, for being deposited first process resource according to the processing capacity of first process resource
Storage, so that the television system carries out resource choosing according to the type information of input data from currently stored process resource
It takes;Wherein, the type information includes the type of input data and the type of target data to be obtained.
In a kind of possible embodiment, described device further includes judgment module;
The judgment module, for judge first process resource processing capacity whether with preset first resource collection
Conjunction or preset Secondary resource sets match, obtain matching result;
The memory module, for being stored first process resource to the first resource according to the matching result
In set or the Secondary resource set;
Wherein, the first resource set includes multiple first subclass, includes at least one in each first subclass
The identical second processing resource of processing capacity;The Secondary resource set includes that multiple second subset are closed, and each second subset is closed
In include at least one third process resource, the type for the source data that each third process resource can be handled is all the same.
In another possible embodiment, the memory module, for being at described first in the matching result
In the type of source data and the type of the target data exported and the first resource set that reason resource can be handled
When any first subclass matches, the mark of first process resource is added in first subclass;Alternatively, being used for
In the type and the Secondary resource set for the source data that the matching result can be handled for first process resource
When any second subset closes matching, the mark of first process resource is added in the second subset conjunction;Alternatively, being used for
Type in the source data that the matching result can be handled for first process resource and the target data that is exported
The first subclass of each of type and the first resource set mismatches, the source that first process resource can be handled
When each second subset in the type of data and the Secondary resource set closes mismatch, by first process resource
Mark is respectively stored in the first resource set and the Secondary resource set as new subclass.
In another possible embodiment, described device further include: resource chooses module;
The resource chooses module, for determining that the first resource set whether there is and institute according to the type information
The matched second processing resource of type information is stated, it, then will be with institute if it exists with the matched second processing resource of the type information
Type information matching and the second processing resource of free time are stated as currently processed resource;If it does not exist with the type information
The second processing resource matched, then being determined in the Secondary resource set according to the type information whether there is and the input number
According to type matching second subset close;If it exists with the second subset of the type matching of the input data close, then from institute
It states an optional third process resource in the second subset conjunction of the type matching of input data and handles the input data, obtain defeated
Data out, and using the output data as new input data, and new type is determined according to the new input data
Information;And continued to judge that the first resource set whether there is and the new type information according to the new type information
Matched second processing resource, until getting currently processed money from the first resource set according to the new type information
Until source;Alternatively, until being provided with being handled in the second subset conjunction of the type matching of the input data there is no idle third
Until source.
The extended method and device of process resource provided by the invention, by detecting the first process resource access TV
After system, the processing capacity of first process resource is obtained, and will be described according to the processing capacity of first process resource
First process resource is stored, so that the television system is according to the type information of input data from currently stored processing
Resource selection is carried out in resource.The method of the present embodiment is provided by having increased the first processing newly in the configuration file of television system
Source, when the processing capacity of the part process resource stored in the processing capacity of the first process resource and local profile is complete
When identical or part is identical, the resource capacity expansion to the television system of legacy version is realized, so that the processing speed of data
Degree is improved;When the processing of any process resource stored in the processing capacity of the first process resource and local profile
When ability is different, the process resource for increasing the TV of legacy version new technology or new function is realized, so as to rich
The function of rich legacy version TV meets the diversified requirement of user, substantially increases the experience of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the architecture diagram of resource expansion system provided by the invention;
Fig. 2 is the flow diagram of the extended method embodiment one of process resource provided by the invention;
Fig. 3 is the flow diagram of the extended method embodiment two of process resource provided by the invention;
Fig. 4 is that PathSwitch provided by the invention divides schematic diagram one;
Fig. 5 is that PathSwitch provided by the invention divides schematic diagram two;
Fig. 6 is the flow diagram of the extended method embodiment three of process resource provided by the invention;
Fig. 7 is the flow diagram of the extended method example IV of process resource provided by the invention;
Fig. 8 is the structural schematic diagram of the expanding unit embodiment one of process resource provided by the invention;
Fig. 9 is the structural schematic diagram of the expanding unit embodiment two of process resource provided by the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The extended method and device of process resource provided in an embodiment of the present invention can be adapted for resource shown in FIG. 1 and expand
Exhibition system.As shown in Figure 1, the resource expansion system may include an external equipment and a smart television;Optionally, this external sets
It is standby to can be the equipment such as USB flash disk, mobile hard disk, mobile phone, it can also be that other can provide the equipment of resource for smart television.It is above-mentioned
A television system involved in smart television may include a resource placement center (Source Center, letter in the television system
Claim SC), which can realize that the SC can be the expansion of above-mentioned process resource by way of software, hardware or soft or hard combination
Extending apparatus, the processing capacity of available external process resource, and the process resource is stored accordingly.This implementation
Process resource involved in example can be a kind of module or equipment for being arbitrarily capable of handling user demand, i.e. the present embodiment
Involved in process resource, can be software process resource, can also be hardware processing resources, for example, tuner
(Tuner), loudspeaker (Speaker), splitter (Demux), document handling system (file) etc..One process resource can be with
A referred to as resource apparatus gateway (PathSwitch), the PathSwitch include two terminals of Source and Sink, wherein
Source shows the type for the source data that the PathSwitch is capable of handling, and Sink shows the target data of PathSwitch output
Type, for example, file can handle any kind of input data, output is a file of file system, Speaker
It can receive voice data stream, output is sound.
In the prior art, the resource placement of smart television is all limited to the hardware and software resource of the machine, is only capable of
Source data is handled based on current resource, for some new resources (or new technology) that may occur in future, existing skill
Art can not know the processing capacity of these process resources, therefore it can not be used on the smart television of legacy version, so that
The limited types of the smart television processing data of legacy version, function is also limited, and the diversification for being unable to satisfy user requires;In addition,
If it is intended to carrying out dilatation to the process resource of legacy version, for example, smart television of legacy version increases some existing place itself
Resource is managed, so that the process resource number of legacy version increases, to improve the data processing speed of legacy version, the prior art is still
The dilatation can not be supported to handle, therefore its speed for handling data is slow, and then better usage experience can not be brought for user.
To sum up, the extended method and device of process resource provided by the embodiment of the present invention, it is intended to solve the prior art
Problem as above.
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below
Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
Fig. 2 is the flow diagram of the extended method embodiment one of process resource provided by the invention.The present embodiment is related to
Be by SC obtain the first process resource processing capacity, thus according to the processing capacity of the first process resource by first processing
Resource is stored, to realize the detailed process of the resource expansion of television system.As described in Figure 2, this method comprises:
S101: after detecting the first process resource access television system, the processing energy of first process resource is obtained
Power.
Wherein, the processing capacity of first process resource includes the source data that first process resource can be handled
The type of type and the target data exported.
Specifically, the first process resource that television system detects can be external process resource, it can also be system
In before undetected process resource, i.e. first process resource is to be different from the television system locally process resource that is stored
Resource, which can be tuner (Tuner), loudspeaker (Speaker), splitter (Demux), file process system
Unite (file) etc..After television system detects first process resource, the processing capacity of first process resource is obtained, it should
Processing capacity includes the type for the source data that first process resource can be handled and the type of its target data exported,
I.e. first process resource is properly termed as the first Pathswitch comprising two terminals of Source and Sink, wherein Source
Show the type for the source data that first process resource can be handled, Sink shows the output type of first process resource.It can
Choosing, television system obtains the first process resource, can be the first process resource after accessing television system, actively to TV system
System or the SC into television system report the processing capacity of itself.
Optionally, which can be one, can also be multiple.Optionally, first process resource
Processing capacity can be identical with the processing capacity of part process resource stored in television system local profile, i.e.,
The source data of part process resource processing in the type and local profile of the source data of first process resource processing
Type is identical, and the target data of the type of the target data of the first process resource processing output and part process resource output
Type it is also identical.Optionally, which can also be with the part that is stored in television system local profile
The processing capacity part of process resource is identical, for example, first process resource processing source data type and local profile
In part process resource processing source data type it is identical, but the first process resource processing output target data type
It is different from the type of target data of part process resource output;Alternatively, the class of the source data of first process resource processing
Type is different from the type of source data of part process resource processing in local profile, but the processing output of the first process resource
Target data type it is identical as the type of target data that the part process resource exports;Optionally, the first processing money
Source can also be all different from the processing capacity of any process resource stored in television system local profile, i.e., this first
The type of the source data of any process resource processing in the type and local profile of the source data of process resource processing is not
Together, and the first process resource handles any process resource output in the type and local profile of the target data exported
The type of target data is not also identical, and the present embodiment is to the processing capacity of the first process resource and without limitation.
S102: first process resource is stored according to the processing capacity of first process resource, so that institute
It states television system and resource selection is carried out from currently stored process resource according to the type information of input data.
Wherein, the type information includes the type of input data and the type of target data to be obtained.
Specifically, after television system obtains the processing capacity of the first process resource, according to first process resource
Processing capacity stores first process resource, optionally, can be first process resource and other process resources
It carries out centrally stored, can also be and individually stored first process resource.In the present embodiment, television system is matched including one
File is set, may include the mark of multiple process resources and the processing capacity of each process resource in the configuration file, this is multiple
The example of process resource is written in another configuration file.In this way, when television system is at the place for getting the first process resource
After reason ability, so that it may be determined for first process resource to be stored in configuration text according to the processing capacity of first process resource
Specifically there is which position of configuration file not to the first process resource in which of part, optionally, the present embodiment
It limits, as long as the processing capacity of the first process resource and the first process resource is stored in television system.
It later, can the letter of the type according to corresponding to the input data if television system receives an input data
Breath knows the type of the input data, and know external equipment wish television system by input data processing why type
The type that output data, i.e. television system can obtain the target data that external equipment wants acquisition from type information (exports
Type).Then, television system can carry out resource selection according to the type information from currently stored process resource, i.e.,
Select the process resource for being capable of handling present input data.Due to having been increased newly at first in the configuration file of television system
Resource is managed, when the processing capacity of the part process resource stored in the processing capacity of the first process resource and local profile
Identical or part is identical, then the method for the present embodiment realizes the resource capacity expansion to the television system of legacy version, thus
So that the processing speed of data is improved;When what is stored in the processing capacity of the first process resource and local profile appoints
When the processing capacity of one process resource is different, then the method for the present embodiment realize to the TV of legacy version increase new technology or
The process resource of person's new function meets the diversified requirement of user, greatly so as to enrich the function of legacy version TV
The experience of user is improved greatly.
The extended method of process resource provided in an embodiment of the present invention, by detecting the first process resource access TV
After system, the processing capacity of first process resource is obtained, and will be described according to the processing capacity of first process resource
First process resource is stored, so that the television system is according to the type information of input data from currently stored processing
Resource selection is carried out in resource.The method of the present embodiment is provided by having increased the first processing newly in the configuration file of television system
Source, when the processing capacity of the part process resource stored in the processing capacity of the first process resource and local profile is complete
When identical or part is identical, the resource capacity expansion to the television system of legacy version is realized, so that the processing speed of data
Degree is improved;When the processing of any process resource stored in the processing capacity of the first process resource and local profile
When ability is different, the process resource for increasing the TV of legacy version new technology or new function is realized, so as to rich
The function of rich legacy version TV meets the diversified requirement of user, substantially increases the experience of user.
Fig. 3 is the flow diagram of the extended method embodiment two of process resource provided by the invention.The present embodiment is related to
Be the detailed process for being stored the first process resource according to the processing capacity of the first process resource.In above-described embodiment
On the basis of, further, above-mentioned S102 can specifically include following steps:
S201: judge first process resource processing capacity whether with preset first resource set or preset
Secondary resource sets match, obtains matching result.
S202: first process resource is stored to the first resource set or described according to the matching result
In Secondary resource set.
Wherein, the first resource set includes multiple first subclass, includes at least one in each first subclass
The identical second processing resource of processing capacity;The Secondary resource set includes that multiple second subset are closed, and each second subset is closed
In include at least one third process resource, the type for the source data that each third process resource can be handled is all the same.
Specifically, can be each process resource (PathSwitch) setting processing energy in television system start-up course
Power, that is, be arranged corresponding Source and Sink, and the configuration file in television system has recorded the processing of each PathSwitch
Ability.It may include multiple same type of PathSwitch in the configuration file, same type mentioned here refers to
The type of source data handled by this multiple PathSwitch is all the same, and the type of the target data exported is also identical, TV
These PathSwitch can be divided into one kind in configuration file in record by system;Optionally, which can also be with
Including multiple PathSwitch (classes of the target data of these PathSwitch output for being capable of handling same type of source data
Type is different), these PathSwitch can be divided into one kind in configuration file in record by television system;Optionally, this is matched
Setting file also may include target data for same type of multiple PathSwitch, and television system can configured in record
These PathSwitch are divided into one kind by file.Optionally, a PathSwitch may handle multiple and different types
The target data of Source, its corresponding output are also possible to multiple and different types.It should be noted that no matter what type
PathSwitch, a Source correspond to a Sink.It should be noted that is stored in above-mentioned configuration file is
The mark of PathSwitch and the processing capacity of PathSwitch, the corresponding specific example of PathSwitch (i.e. program code) are protected
There are in other file.
So television system can will handle same type of Source and obtain same type target data
PathSwitch is classified as a set, shown in Figure 4, and in Fig. 4, for input type be Source0, output is Sink1's
For data, PathSwitch0 and PathSwitch1 can handle the data of Source0 type, and PathSwitch0 and
The output type of PathSwitch1 includes Sink1, therefore, PathSwitch0 and PathSwitch1 is divided to the first son
In set A0, i.e. included PathSwitch is to be capable of handling the data of Source0 type and obtain Sink1 type in A0
Target data PathSwitch;Correspondingly, for the data that input type is Source1, output is Sink0, Fig. 4
In only PathSwitch0 meet, PathSwitch0 is divided in the first subclass A1 by television system, i.e. included in A1
PathSwitch be to be capable of handling the data of Source1 type and obtain the target data of Sink0 type
PathSwitch.And so on, television system can obtain multiple first subclass, to constitute first resource set.Also
It is to say, above-mentioned first resource set may include multiple first subclass, include at least one processing in each first subclass
The identical second processing resource of ability, for example, the PathSwitch0 and PathSwitch1 in A0 are second processing resources.Figure
P0 in 4 refers to that PathSwitch0, P1 refer to PathSwitch1.
Shown in Figure 5 according to the above method, television system can also be identical multiple by the type of the source data of processing
PathSwitch is classified as a set (set is unrelated with the type for the target data that process resource exports).In Fig. 5, for defeated
For entering the data that type is Source0, PathSwitch0, PathSwitch1, PathSwitch2 be can handle
Therefore PathSwitch0, PathSwitch1, PathSwitch2 are divided to second subset and closed by the data of Source0 type
In S0, i.e. included PathSwitch is the PathSwitch for being capable of handling the data of Source0 type in S0;Accordingly
, only have PathSwitch0 for input type is the data of Source1, in Fig. 5 and meet, television system will
PathSwitch0 is divided to second subset and closes in S1, i.e. included PathSwitch is to be capable of handling Source1 class in S1
The PathSwitch of the data of type.And so on, television system can obtain multiple second subset and close, to constitute Secondary resource
Set.That is, the Secondary resource set may include that multiple second subset are closed, it include at least one in each second subset conjunction
The type of a third process resource, source data handled by each third process resource is all the same, for example, in S0
PathSwitch0, PathSwitch1 and PathSwitch2 are third process resources.P0 in Fig. 5 is referred to
PathSwitch0, P1 refer to that PathSwitch1, P2 refer to PathSwitch1.
So judging the processing capacity is after television system obtains the processing capacity of above-mentioned first process resource
It is no with preset first resource set or preset Secondary resource sets match, and according to matching result by the first process resource
It stores into the first resource set or the Secondary resource set.It optionally, here can be according to matching result by
One process resource stores in some first subclass into first resource set, or can be according to matching result by first
Process resource stores during some second subset into Secondary resource set closes, alternatively, can also be according to matching result by the
One process resource, first subclass new as one is stored in first resource set, or the second subset new as one
Conjunction is stored in Secondary resource set, specifically may refer to the detailed process of following embodiments shown in fig. 6, i.e., above-mentioned S202 tool
Body may include:
S301: if the type for the source data that the matching result can be handled by first process resource and being exported
The type of target data matched with any first subclass in the first resource set, then by first process resource
Mark be added in first subclass.
In this storage mode, the processing capacity and some first subset in first resource set of the first process resource
The processing capacity of conjunction is identical, i.e., the type and the first process resource for the source data that can be handled in first subclass can be handled
Source data type it is identical, first subclass output target data type and first process resource output target
The type of data is identical, thus, the mark of first process resource is added in first subclass, as the first subclass
In an element.
S302: if the type and described second for the source data that the matching result can be handled for first process resource
Any second subset in resource collection closes matching, then the mark of first process resource is added to the second subset and closed
In.
In this storage mode, type and certain in Secondary resource set of the source data that the first process resource can be handled
The type that one second subset closes the source data that can be handled is identical, thus, the mark of first process resource is added to this
During second subset is closed, as an element in second subset conjunction.
S303: if the type for the source data that the matching result can be handled by first process resource and being exported
Target data type and the first subclass of each of the first resource set mismatch, the first process resource institute
The type for the source data that can be handled is mismatched with each second subset conjunction in the Secondary resource set, then by described first
The mark of process resource is respectively stored in the first resource set and the Secondary resource set as new subclass.
In this storage mode, the type for the source data that the first process resource can be handled with it is every in first resource set
The type for the source data that a first subclass can be handled is different, and the type of target data that the first process resource is exported
The type of the target data exported from each of first resource set the first subclass is also different, meanwhile, first processing
The type for the source data that resource can be handled and each second subset in Secondary resource set close the source data that can be handled
Type is different, and therefore, the present invention is stored respectively using first process resource as an individual subclass to first resource
During set and second subset are closed, that is to say, that first process resource can be used as one new first in first resource set
Subclass (the first process resource also just becomes the second processing resource in the first new subclass at this time) can also be used as the
One new in two resource collections second subset close (at this time the first process resource also just become the new second subset close in the
Three process resources), which is extension to process resource existing in current television system and abundant, so that
Television system is capable of handling richer data.
When there is external input data input, television system can be from first resource set and Secondary resource set
Search the process resource for being capable of handling the data input data.
Above-mentioned described " matching ", it can be understood as processing capacity all it is identical afterwards or part is identical, that is, judging the
When whether the processing capacity of one process resource is with first resource sets match, the Source of the first process resource is actually judged
It is whether identical with the Source of some the first subclass in first resource set, and judge the first process resource Sink and
Whether the Sink of some the first subclass in first resource set is identical, if all the same, it is determined that the first process resource
Processing capacity and first resource sets match;The processing capacity for judging the first process resource whether with Secondary resource sets match
When, actually judge the Source that some second subset in the Source and Secondary resource set of the first process resource is closed
It is whether identical, if they are the same, it is determined that the processing capacity and Secondary resource sets match of the first process resource.
The extended method of process resource provided in an embodiment of the present invention, by judging that the processing capacity of the first process resource is
No and preset first resource set or preset Secondary resource sets match determine that first processing provides according to matching result
Storage location of the source in configuration file so that television system according to the type information of input carry out resource selection when,
It can targetedly be chosen, the resource for substantially increasing television system chooses efficiency.
Fig. 7 is the flow diagram of the extended method embodiment three of process resource provided by the invention.The present embodiment is related to
Be detailed process that television system carries out resource selection according to the type information of input from currently stored process resource.
On the basis of the above embodiments, the process which chooses can specifically include following steps:
Step A: it determines that the first resource set whether there is according to the type information and is matched with the type information
Second processing resource.If so, B is thened follow the steps, if it is not, thening follow the steps C.
Step B: if it exists with the matched second processing resource of the type information, then will be matched with the type information,
And idle second processing resource is as currently processed resource.
Specifically, knowing the type of input data after television system obtains the type information of input data and thinking
The type (type of target data i.e. to be obtained) of obtained target data, i.e., television system has known current Source
With Sink to be obtained, then the matching way according to above-described embodiment two, determines that first resource set whether there is
With the second processing resource of the type information matches, that is, determine first resource set in the presence or absence of in type information
It whether there is at idle second in the first subclass and first subclass Source and Sink to be obtained all the same
Manage resource.If it is present using the second processing resource of the free time as currently processed resource, to handle current input number
According to.
Step C: it if it does not exist with the matched second processing resource of the type information, is then determined according to the type information
It is closed in the Secondary resource set with the presence or absence of with the second subset of the type matching of the input data.
Step D: if it exists with the second subset of the type matching of the input data close, then from the input data
An optional third process resource handles the input data in the second subset conjunction of type matching, obtains output data, and will
The output data determines new type information as new input data, and according to the new input data.
Step E: according to the new type information continue to judge the first resource set whether there is with it is described new
The matched second processing resource of type information is worked as until being got according to the new type information from the first resource set
Until pre-treatment resource;Alternatively, until with the second subset of the type matching of the input data close in there is no idle the
Until three process resources.
Specifically, being not present and the matched second processing of the type information when television system determines in first resource set
Resource, then television system continues to be determined according to the Source in the above-mentioned type information in Secondary resource set with the presence or absence of processing class
Type third process resource identical with the Source, that is, determine Secondary resource set in the presence or absence of in type information
The identical second subset conjunction of Source and the second subset whether there is idle third process resource in closing.If TV
System determines for the first time is not present third process resource identical with the Source in type information in Secondary resource set, then TV
System determination can not currently handle the input data, and resource selection at this time terminates.
If television system determines that Secondary resource set has second subset identical with the Source in type information
There is also idle third process resources in conjunction (setting S0 in second subset conjunction) and second subset conjunction, then using in S0
The third process resource (being set as P1) of the free time handles current input data, and using obtained output data as new
Then input data obtains a new class according to the type of the type of the new input data and target data to be obtained before
Type information.Later, television system redefines in first resource set according to the new type information with the presence or absence of new with this
The matched second processing resource (being set as P2) of type information, if it is present by the second processing resource P2 and selected before
S0 in idle third process resource P1 terminate together as currently processed resource, resource selection.
But it is still not present and this when the television system type information new according to this redefines in first resource set
The matched second processing resource of new type information, then television system continues according to input data new in the new type information
Type determine the second subset in Secondary resource set with the presence or absence of the type matching of the input data new with this close (set this
Two subsets are combined into S1);If it is present idle third process resource (the being set as P3) processing of selection one is above-mentioned new from the S1
Input data obtains an output data again, and using the output data as another new input data;Then according to described another
The type of the type of one new input data and above-mentioned target data to be obtained determines another new type information, and returns and hold
Row step A, however, it is determined that exist in first resource set and (be set as with another matched second processing resource of new type information
P4), then by the second processing resource P4 and before the third process resource P1 and P3 of selected free time together as current place
Resource is managed, resource selection terminates, i.e., original input data will be handled by P1, P3 and P4 cascade, just available corresponding defeated
The target data of type out.
If it is determined that being still not present and another matched second processing of new type information in first resource set
Whether resource then continue to check in S1 there is also the third process resource of other and the type matching of above-mentioned new input data,
If be not present in S1, television system then selects the third process resource of another free time again from S0 again, repeats
The above process, until getting currently processed resource from the first resource set according to the new type information;Or
Person, until being with idle third process resource is not present in the second subset conjunction (S0) of the type matching of the input data
Only.
It is following to illustrate for a specific example for the cyclic process of the more specific description embodiment of the present invention: false
If the type of the input data in the above-mentioned type information is Source0, the type of target data to be obtained is Sink0, and
Assuming that television system does not get matched second processing according to Source0 and Sink0 from first resource set for the first time
Resource, then television system executes following processes:
When television system is according to the Source0 in the above-mentioned type information, determined from Secondary resource set with should
After the identical second subset of Source0 closes (set the second subset and be combined into S1), television system is closed in S1 optionally from the second subset
One idle third process resource P1 (set includes P1 and P2 two idle third process resources in S1), wherein P1 institute energy
The type of the source data of processing is Source0, and the type of the target data of output is Sink1, the source data that P2 can be handled
Type is Source0, and the type of the target data of output is Sink2.
When television system is closed from the second subset selects third process resource P1 in S1, television system is using at the P1
Should before input data (setting present input data as X), an output data (being assumed to be Y) is obtained, according to the processing of above-mentioned P1
Ability, the type of the output data are Sink1, then television system keeps in P1 at this time, and using obtained output data Y as
New input data, and being determined new type information (being set as type1) according to the new input data (i.e. Y), the i.e. new class
It include the type (Sink1) and target data to be obtained original before of the new input data in type information type1
Type (Sink0).
Then television system searches whether to deposit from first resource set again according to the type1 (i.e. Sink1, Sink0)
The type of source data is Sink1, the type of target data is the second processing resource of Sink0, if not finding still, TV
System continues to look into from Secondary resource set according to the type Sink1 of the new input data in the new type information type1
It looks for, to determine in Secondary resource set whether to close with the matched second subset of above-mentioned new input data type Sink1, it is assumed that the
Two resource collections close there are such second subset and (are set as S2), it is assumed that include P3 and P4 two idle third processing in the S2
Resource, wherein the type for the source data that P3 can be handled is Sink1, and the type of the target data of output is Sink3, P4 institute energy
The type of the source data of processing is Sink1, and the type of the target data of output is Sink4.
Then television system handles above-mentioned new input data (Y) first with the P3, obtains an output data (being set as Z),
According to the processing capacity of P3 it is found that the type of the Z is Sink3, then it regard output data Z as another new input number again
According to, and another new type information (being set as type2), the source for including in the type2 are determined according to another new input data
Data type is Sink3, and the type of target data to be obtained is still Sink0.
Then, television system continues the type according to source data type and target data to be obtained in the type2, after
The continuous lookup from first resource set and the matched second processing resource of the type2, if not finding still, television system is again
Using S2 gather in P4 handle above-mentioned new input data (Y), another output data (being set as Q) is obtained, according to the processing of P4
Ability is it is found that the type of the Q is Sink4, then using output data Q as another new input data, and it is another according to this
New input data determines another new type information (being set as type3), and the source data type for including in the type3 is Sink4,
The type of target data to be obtained is still Sink0.
Then, television system continues the class according to source data type Sink4 and target data to be obtained in the type3
Type Sink0 continues to search from first resource set and the matched second processing resource of the type3, if not finding still, electricity
Viewing system determines that the matched third of type Sink1 with above-mentioned new input data (Y) has been not present in above-mentioned S2 set at this time
Process resource.
Then at this point, television system determines that the P1 from S1 executes cyclic process, do not find and Source0 and Sink0
Matched process resource, then the third process resource P2 that television system selects another idle from above-mentioned S1 set again, so
Above-mentioned cyclic process is repeated using the P2 afterwards, it may be assumed that
Television system utilizes the P2 to handle current input data X again again, obtains an output data (being assumed to be M),
According to the processing capacity of above-mentioned P2, the type of the output data is Sink2, then television system keeps in P2 at this time, and by gained
The output data M arrived determines that new type information (is set as new input data, and according to the new input data (i.e. M)
Type3), i.e., in the new type information type3 including the new input data type (Sink2) and it is original before to
The type (Sink0) of the target data of acquisition.
Then television system searches whether to deposit from first resource set again according to the type3 (i.e. Sink2, Sink0)
The type of source data is Sink2, the type of target data is the second processing resource of Sink0, if not finding still, TV
System continues to look into from Secondary resource set according to the type Sink2 of the new input data in the new type information type3
It looks for, is closed with determining in Secondary resource set with the presence or absence of source data type for the second subset of Sink2, it is assumed that Secondary resource set
There are the second subset that source data type is Sink2 to close (being set as S3), which is and above-mentioned new input data type Sink2
Matched second subset is closed, it is assumed that includes P5 mono- idle third process resource in the S3, wherein the source that the P5 can be handled
The type of data is Sink2, and the type of the target data of output is Sink5.
Then television system handles above-mentioned new input data (M) first with the P5, obtains another output data and (is set as
N), according to the processing capacity of P5 it is found that the type of the N is Sink5, then using output data N as another new input number
According to, and another new type information (being set as type4), the source for including in the type4 are determined according to another new input data
Data type is Sink5, and the type of target data to be obtained is still Sink0.
Then, television system continues the class according to source data type Sink5 and target data to be obtained in the type4
Type Sink0 continues lookup and the matched second processing resource (being set as P6) of the type4 from first resource set, if finding,
Television system determines that being currently able to the input data X for being Source0 by source data type is processed into the number of targets that type is Sink0
According to currently processed resource are as follows: P2-P5-P6.That is, to obtain the number of targets of Sink0 type according to present input data X
According to, need to first pass through input data X third process resource P2 processing, using third process resource P5 handle, then pass through again
Second processing resource P6 processing is crossed, it is just available.
By the cyclic process in above-mentioned example it is found that the extended method of process resource provided in an embodiment of the present invention, passes through
According to the Source and Sink to be obtained in type information, currently processed resource is determined from first resource set in advance,
In the case where having not been obtained, continue to determine currently processed resource from Secondary resource set, so that television system is according to input
Type information specific aim carry out resource selection, without blindness traversal configuration file in process resource, substantially increase TV
The efficiency that the resource of system is chosen.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Fig. 8 is the structural schematic diagram of the expanding unit embodiment one of process resource provided by the invention.The device can lead to
The mode for crossing software, hardware or soft or hard combination is realized.As shown in figure 8, the apparatus may include: obtain module 11 and storage mould
Block 12.
Specifically, module 11 is obtained, for obtaining described first after detecting the first process resource access television system
The processing capacity of process resource;Wherein, the processing capacity of first process resource includes that first process resource can be located
The type of the type of the source data of reason and the target data exported;
Memory module 12, for being deposited first process resource according to the processing capacity of first process resource
Storage, so that the television system carries out resource choosing according to the type information of input data from currently stored process resource
It takes;Wherein, the type information includes the type of input data and the type of target data to be obtained.
The expanding unit of process resource provided in an embodiment of the present invention can execute above method embodiment, realize former
Reason is similar with technical effect, and details are not described herein.
Fig. 9 is the structural schematic diagram of the expanding unit embodiment two of process resource provided by the invention.The device can lead to
The mode for crossing software, hardware or soft or hard combination is realized.On the basis of above-mentioned embodiment illustrated in fig. 8, as shown in figure 9, the dress
Setting further includes judgment module 13;
Specifically, the judgment module 13, for judge first process resource processing capacity whether with it is preset
First resource set or preset Secondary resource sets match, obtain matching result;
The memory module 12, for being stored first process resource to first money according to the matching result
In source set or the Secondary resource set.
The first resource set includes multiple first subclass, includes at least one processing energy in each first subclass
The identical second processing resource of power;
The Secondary resource set includes that multiple second subset are closed, and includes at least one third in each second subset conjunction
Resource is managed, the type for the source data that each third process resource can be handled is all the same.
The memory module 12, specifically for the source number that can be handled in the matching result for first process resource
According to type and the type of the target data exported matched with any first subclass in the first resource set when,
The mark of first process resource is added in first subclass;Alternatively, for being described in the matching result
When the type for the source data that first process resource can be handled is matched with any second subset conjunction in the Secondary resource set,
The mark of first process resource is added in the second subset conjunction;Alternatively, for being described in the matching result
The type for the source data that first process resource can be handled and the type of the target data exported and the first resource collection
The type for the source data that the first subclass of each of conjunction mismatches, first process resource can be handled and described second
When each second subset in resource collection closes mismatch, by the mark of first process resource as new subclass point
It is not stored in the first resource set and the Secondary resource set.
Optionally, with continued reference to shown in above-mentioned Fig. 9, which can also include: that resource chooses module 14;
The resource chooses module 14, for according to the type information determine the first resource set whether there is with
The matched second processing resource of type information then will be with if it exists with the matched second processing resource of the type information
The type information matches and the second processing resource of free time is as currently processed resource;If it does not exist with the type information
Matched second processing resource, then being determined in the Secondary resource set according to the type information whether there is and the input
The second subset of the type matching of data is closed;If it exists with the second subset of the type matching of the input data close, then from
An optional third process resource handles the input data in the second subset conjunction of the type matching of the input data, obtains
Output data, and using the output data as new input data, and new class is determined according to the new input data
Type information;And continued to judge that the first resource set whether there is and the new type letter according to the new type information
Matched second processing resource is ceased, it is currently processed up to being got according to the new type information from the first resource set
Until resource;Alternatively, until with there is no idle thirds to handle in the second subset conjunction of the type matching of the input data
Until resource.
The expanding unit of process resource provided in an embodiment of the present invention can execute above method embodiment, realize former
Reason is similar with technical effect, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.