Summary of the invention
For this reason, need data dispatching method and device that a kind of video pre-filtering is provided, in order to solve video channel in scheduling process, easily occur that passage is died of hunger, cannot dispatch according to priority, logical operation is complicated, to problems such as hardware requirement are large.
For achieving the above object, inventor provide a kind of data scheduling device of video pre-filtering, described device comprises scheduling configuration module, memory module, Parasites Fauna module, testing circuit, codec data channel module; Described scheduling configuration module is connected with memory module, described memory module and Parasites Fauna model calling, and described Parasites Fauna module is connected with testing circuit, described codec data channel module and Parasites Fauna model calling;
Described scheduling configuration module for the corresponding relation of the weighted value and coding and decoding video order that configure video channel, and by described corresponding relation write Parasites Fauna module;
Described Parasites Fauna module is used for according to the weighted value of configured video channel and the corresponding relation of coding and decoding video order, the weighted value of store video passage;
Testing circuit is for detecting the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding instruction;
Codec data channel module is used for received code instruction, and the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or codec data channel module is used for receipt decoding instruction, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.
Further, the weighted value of described video channel and the corresponding relation of coding and decoding video order are stored in two-dimensional array table, the weighted value of the line display video channel of described two-dimensional array table, and the priority of coding and decoding video order is shown in the list of described two-dimensional array; Described two-dimensional array table is stored in Parasites Fauna module.
Further, the weighted value of the line display video channel of described two-dimensional array table arranges according to order of successively decreasing.
Further, described Parasites Fauna module also comprises mark module, and described mark module is used for the memory cell the highest to the priority of coding and decoding video order in two-dimensional array and marks.
Inventor additionally provides a kind of data dispatching method of video pre-filtering, and described method is applied to the data scheduling device of video pre-filtering, and described device comprises scheduling configuration module, memory module, Parasites Fauna module, testing circuit, codec data channel module; Described scheduling configuration module is connected with memory module, described memory module and Parasites Fauna model calling, and described Parasites Fauna module is connected with testing circuit, described codec data channel module and Parasites Fauna model calling; Then said method comprising the steps of:
The scheduling configuration module configuration weighted value of video channel and the corresponding relation of coding and decoding video order, and by described corresponding relation write Parasites Fauna module;
Parasites Fauna module according to the corresponding relation of the weighted value of configured video channel and coding and decoding video order, the weighted value of store video passage;
Testing circuit detects the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding code instruction;
The instruction of codec data channel module received code, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or the instruction of codec data channel module receipt decoding, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.
Further, the weighted value of described video channel and the corresponding relation of coding and decoding video order are stored in two-dimensional array table, the weighted value of the line display video channel of described two-dimensional array table, and the priority of coding and decoding video order is shown in the list of described two-dimensional array; Described two-dimensional array table is stored in Parasites Fauna module.
Further, the weighted value of the line display video channel of described two-dimensional array table arranges according to order of successively decreasing.
Further, described Parasites Fauna module also comprises mark module, then described method comprises:
The memory cell that mark module is the highest to the priority of coding and decoding video order in two-dimensional array marks.
Be different from prior art, the data dispatching method of the video pre-filtering described in technique scheme and device, described method is applied to the data scheduling device of video pre-filtering, described device comprises scheduling configuration module, memory module, Parasites Fauna module, testing circuit, codec data channel module; Described scheduling configuration module is connected with memory module, described memory module and Parasites Fauna model calling, and described Parasites Fauna module is connected with testing circuit, described codec data channel module and Parasites Fauna model calling; Then said method comprising the steps of: the scheduling configuration module configuration weighted value of video channel and the corresponding relation of coding and decoding video order, and by described corresponding relation write Parasites Fauna module; Parasites Fauna module according to the corresponding relation of the weighted value of configured video channel and coding and decoding video order, the weighted value of store video passage; Testing circuit detects the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding code instruction; The instruction of codec data channel module received code, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or the instruction of codec data channel module receipt decoding, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.Described method can allow video channel dispatch based on weighted value, ensures that the video channel that priority is high can be dispatched in time, and carries out coding-decoding operation to the video in video channel, meet practical application needs well.Simultaneously, stored by the corresponding relation of mode to the weighted value of configured video channel and coding and decoding video order of Parasites Fauna, the logical operation calculated when comparing each video channel weighted value can be greatly reduced, also record is carried out without the need to weighted value concrete to each video channel again, save register space, not only increase the dispatching efficiency of video channel, and reduce hardware cost, thus in integrated circuit (IC) design field, there are wide market prospects.
Embodiment
By describe in detail technical scheme technology contents, structural feature, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Referring to Fig. 1, is the schematic diagram of the data scheduling device of the video pre-filtering described in one embodiment of the invention.Described device comprises scheduling configuration module 101, memory module 102, Parasites Fauna module 103, testing circuit 104, codec data channel module 105; Described scheduling configuration module 101 is connected with memory module 102, and described memory module 102 is connected with Parasites Fauna module 103, and described Parasites Fauna module 103 is connected with testing circuit 104, and described codec data channel module 105 is connected with Parasites Fauna module 103;
Described scheduling configuration module 101 for the corresponding relation of the weighted value and coding and decoding video order that configure video channel, and by described corresponding relation write Parasites Fauna module;
Described Parasites Fauna module 103 for according to the weighted value of configured video channel and the corresponding relation of coding and decoding video order, the weighted value of store video passage;
Testing circuit 104 is for detecting the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding instruction;
Codec data channel module 105 is for received code instruction, and the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or codec data channel module is used for receipt decoding instruction, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.
Video, in transmitting procedure, is needed to be converted to data mode, and is transmitted by video channel.The quantity of video channel is often multiple, and usually needs the preprocessed data transmitting multiple video in each passage, and the preprocessed data of described video is the data that video is to be encoded or decode.Coding is, by prespecified method, word, numeral or other object are weaved into number, or by the electric impulse signal of information, data transaction one-tenth regulation.Decoding is the inverse process of coding, is electric impulse signal to be reduced to the word of its correspondence, numeral or other object.
The data scheduling device of video pre-filtering, when dispatching video channel, first dispatches the configuration module configuration weighted value of video channel and the corresponding relation of coding and decoding video order, and by described corresponding relation write Parasites Fauna module.Described weighted value is characterize coding and decoding video order numerical value successively, and in the present embodiment, weighted value is positive integer, and the initial value of weighted value can self-defined decision according to actual needs.The weighted value of video channel and the corresponding relation of coding and decoding video order can comprise: the weighted value of video channel is larger, then this video channel order of carrying out encoding and decoding to video pre-filtering data is more forward, when the weighted value of video channel is identical, then decide coding and decoding video order according to the priority of video channel.The priority of video channel can self-definedly determine, the video channel that priority is higher, and it is more forward to the encoding and decoding of the preprocessed data of video when weighted value is identical.Such as there is a, b, c tri-video channels, video channel a is identical with the weighted value of video channel b, the weighted value of video channel c is less than the weighted value of video channel a, and the priority of video channel a is higher than video channel b, then video channel a carries out the order of encoding and decoding higher than video channel b to video pre-filtering data, and video channel b carries out the order of encoding and decoding higher than video channel c to video pre-filtering data.In further embodiments, the weighted value of video channel and the corresponding relation of coding and decoding video order can comprise: the weighted value of video channel is less, then this video channel order of carrying out encoding and decoding to video pre-filtering data is more forward, when the weighted value of video channel is identical, then decide coding and decoding video order according to the priority of video channel.
Then Parasites Fauna module is according to the corresponding relation of the weighted value of configured video channel and coding and decoding video order, the weighted value of store video passage.Described Parasites Fauna module comprises multiple register, and described register comprises multiple memory cell, and described memory cell may be used for storing weighted value, and a register may be used for storing multiple weighted value, also only can store a weighted value.The weighted value of such as video channel and the corresponding relation of coding and decoding video order are: the weighted value of video channel is larger, then this video channel order of carrying out encoding and decoding to video pre-filtering data is more forward, when the weighted value of video channel is identical, then decide coding and decoding video order according to the priority of video channel.Below as example, the weighted value of Parasites Fauna store video passage is described: multiple registers of Parasites Fauna module form an array list, each position of array list is (as the first row first row, the third line the 4th arranges) a corresponding register, the priority of the lastrow of array list is higher than next line, with in a line, the priority that the priority that the left side one arranges arranges higher than the right one.Priority is higher, then illustrate that the order of video editing code is more forward.When storing the weighted value of different video channels, the weighted value of video channel forward for coded sequence is stored in the position, upper left side (video channel weighted value is large and priority is high) in array list, the weighted value of coded sequence video channel is rearward stored in the lower right position (video channel weighted value is little and priority is low) of array list.Particularly, then in strict accordance with weighted value order from big to small, and according to " priority of the lastrow of array list higher than next line, with in a line, the priority that the priority that the left side one arranges arranges higher than the right one " by the correspondence position of different weighted value stored in Parasites Fauna.Like this, when judging the size of weighted values different in comparand register group, just can pass easily through memory location and find out current maximum weighted value, and then determine the video channel that this weighted value is corresponding and dispatch, greatly save the complexity of logical operation.
Then testing circuit detects the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding instruction.Testing circuit can use hardware implementing, also can use software simulating.Testing circuit can according to from top to bottom, order from left to right, by the storing value in the register of diverse location in criterion register group, and then judges the video channel that coding and decoding video order medium priority is the highest.In the present embodiment, the video channel that described coding and decoding video order medium priority is the highest is that weighted value is maximum, and the video channel that the priority of video channel is the highest.
Then codec data channel module received code instruction, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or the instruction of codec data channel module receipt decoding, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.After completing once scheduling, weighted value corresponding to video channel can change, and also namely the weighted value of this video channel memory location in the register bank can change.Testing circuit can carry out re-starting detection and judge, finds out the video channel that the order of the edit code after change medium priority is the highest, and then in this video channel, carries out coding or the decode operation of preprocessed data.Repeat this step, until all video pre-filtering data are all encoded or decoded.Like this, just achieve and the reasonable distribution of video channel is dispatched, avoid respective channel and occur situation hungry to death, also ensure that the video channel of each scheduling is all the video channel that current video codec order medium priority is the highest simultaneously, substantially increase data-handling efficiency.
The data scheduling device of the video pre-filtering described in technique scheme, described device comprises scheduling configuration module, memory module, Parasites Fauna module, testing circuit, codec data channel module; Described scheduling configuration module is connected with memory module, described memory module and Parasites Fauna model calling, and described Parasites Fauna module is connected with testing circuit, described codec data channel module and Parasites Fauna model calling; Then said method comprising the steps of: the scheduling configuration module configuration weighted value of video channel and the corresponding relation of coding and decoding video order, and by described corresponding relation write Parasites Fauna module; Parasites Fauna module according to the corresponding relation of the weighted value of configured video channel and coding and decoding video order, the weighted value of store video passage; Testing circuit detects the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding code instruction; The instruction of codec data channel module received code, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or the instruction of codec data channel module receipt decoding, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.Described method can allow video channel dispatch based on weighted value, ensures that the video channel that priority is high can be dispatched in time, and carries out coding-decoding operation to the video in video channel, meet practical application needs well.Simultaneously, stored by the corresponding relation of mode to the weighted value of configured video channel and coding and decoding video order of Parasites Fauna, the logical operation calculated when comparing each video channel weighted value can be greatly reduced, also record is carried out without the need to weighted value concrete to each video channel again, save register space, not only increase the dispatching efficiency of video channel, and reduce hardware cost, thus in integrated circuit (IC) design field, there are wide market prospects.
As shown in Figure 3, in the present embodiment, the weighted value of described video channel and the corresponding relation of coding and decoding video order are stored in two-dimensional array table, the weighted value of the line display video channel of described two-dimensional array table, and the priority of coding and decoding video order is shown in the list of described two-dimensional array; Described two-dimensional array table is stored in Parasites Fauna module.Described two-dimensional array table is Parasites Fauna, described Parasites Fauna comprises multiple register, compare for the ease of carrying out logical calculated, in present embodiment, the corresponding register in each position of two-dimensional array, the weighted value of the line display video channel of described two-dimensional array table arranges according to order of successively decreasing.In figure 3, two-dimensional array table show A-F, represent A to F totally 6 video channels respectively, its priority orders is followed successively by from high to low: video channel A is the highest, is secondly video channel B, and that minimum is video channel F.The row of two-dimensional array table has 1-5, the weighted value size of the video channel represented respectively.Weighted value is larger, then illustrate that video channel encoding and decoding order medium priority is more forward.Such as, in Fig. 3 the weighted value of video channel A to be the weighted value of 4, video channel B be 5, video channel E weighted value be 1.In order to reduce logical calculated amount further, can be 1 by the register assignment of the weighted value storing current video passage, and be 0 by the register assignment of all the other corresponding for this video channel positions, the weighted value of such as its correspondence of video channel A is 4, can be then 1 by the value assignment of the register of the position of the first row secondary series, and be 0 by the register assignment of other positions of the first row.Be easy to get from Fig. 3, the video channel that weighted value is the highest is video channel B (weighted value is 5), thus needs first schedule video channel B to carry out encoding and decoding to video pre-filtering.Again because the weighted value of the line display video channel of two-dimensional array table arranges according to order of successively decreasing, thus testing circuit is when detecting, only down need read successively from first row, first read value for " 1 " register, be the register that stored weighted value is the highest.When first row does not read the register that value is " 1 ", then down read successively from secondary series, when the value of the secondary series read at first is the register of " 1 ", this register is the highest register of current stored weighted value, by that analogy.Determine the register-bit postpone that weighted value is the highest, just can be easy to the video channel corresponding to weighted value showing that this registers stores up, as determined in Fig. 3, the register of the second row first row is the register that current storage weighted value is the highest, and video channel corresponding to the second row is video channel B, then the current video channel of scheduling that needs is video channel B.
After video channel B has dispatched, weighted value in two-dimensional array table can change, and is in particular in: as in present embodiment, and each video channel is after being scheduled, the weighted value that then this video channel is corresponding can subtract 1, until the weighted value of this video channel is 0.Video channel B is after completing first time scheduling, and weighted value becomes 4.As shown in Figure 4, the assignment of the second row secondary series of two-dimensional array table is 1, and the assignment of other row of the second row is 0, illustrates that the weighted value that video channel B is corresponding is 4.As can be seen from Figure 4, the video channel that present weight value is the highest is video channel A, video channel B and video channel F (being 4), but the priority due to video channel A is higher than video channel B and video channel F, thus video channel A is the video channel that current video codec order medium priority is the highest, namely needs schedule video passage A to carry out encoding and decoding to video pre-filtering.Testing circuit can re-start to detect and judge, the method for detection, with reference to the method for first time detection, first down reads successively from first row, first reads value for " 1 " register, is the register that stored weighted value is the highest.When first row does not read the register that value is " 1 ", then down read successively from secondary series, when the value of the secondary series read at first is the register of " 1 ", this register is the highest register of current stored weighted value.When secondary series does not read the register that value is " 1 ", then read the 3rd row, by that analogy.Determine the register-bit postpone that weighted value is the highest, just can be easy to the video channel corresponding to weighted value showing that this registers stores up, as determined in Fig. 4, the register of the first row secondary series is the register that current storage weighted value is the highest, and video channel corresponding to the first row is video channel A, then the current video channel of scheduling that needs is video channel A.
As shown in Figure 5, after video channel A has dispatched, the weighted value in two-dimensional array table can change, and is in particular in: the weighted value of video channel A subtracts 1, and weighted value becomes 3.Then testing circuit can re-start to detect and judge, find out the register position that present weight value is the highest, be easy to get as the second row secondary series in figure, the video channel of its correspondence is video channel B, and thus codec data channel module can call the preprocessed data of video channel B to video and encodes or decode.In like manner, as shown in Figure 6, after video channel B completes scheduling, its weighted value subtracts 1, and weighted value becomes 3.Then testing circuit can re-start to detect and judge, find out the register position that present weight value is the highest, be easy to get as the 6th row secondary series in Fig. 6, corresponding video channel is video channel F, and thus codec data channel module can call the preprocessed data of video channel F to video and encodes or decode.
In further embodiments, the weighted value of the line display video channel of two-dimensional array table can also arrange according to incremental order, and now weighted value is less, then illustrate that the invoked priority of video channel is higher.By the corresponding relation of the weighted value and coding and decoding video order of stating video channel is stored in two-dimensional array table, compared to original mode needing to compare one by one the weighted value of each video channel, not only greatly reduce logical operation quantity, decrease the possibility of makeing mistakes, simultaneously, after video channel has been dispatched, do not need to store the occurrence of the weighted value of video channel more yet, testing circuit just efficiently can complete rapidly according to the position of register and compare the weighted value of each video channel, improves the dispatching efficiency of video channel.
In the present embodiment, described Parasites Fauna module also comprises mark module, and described mark module is used for the memory cell the highest to the priority of coding and decoding video order in two-dimensional array and marks.Such as in the present embodiment, the memory cell in two-dimensional array is a certain register, then the register that the weighted value stored that can detect testing circuit is the highest marks.Like this, codec data channel module just can the markd video channel of quick calling tool, and then encodes or decode operation to the preprocessed data of video in this video channel, improves the dispatching efficiency of video channel.
And inventor additionally provides a kind of data dispatching method of video pre-filtering, refers to Fig. 2, it is the flow chart of the data dispatching method of the video pre-filtering described in one embodiment of the invention.Described method is applied to the data scheduling device of video pre-filtering, and described device comprises scheduling configuration module, memory module, Parasites Fauna module, testing circuit, codec data channel module; Described scheduling configuration module is connected with memory module, described memory module and Parasites Fauna model calling, and described Parasites Fauna module is connected with testing circuit, described codec data channel module and Parasites Fauna model calling; Then said method comprising the steps of:
First enter step S201 and dispatch the configuration module configuration weighted value of video channel and the corresponding relation of coding and decoding video order, and by described corresponding relation write Parasites Fauna module.Described weighted value is characterize coding and decoding video order numerical value successively, and in the present embodiment, weighted value is positive integer, and the initial value of weighted value can self-defined decision according to actual needs.The weighted value of video channel and the corresponding relation of coding and decoding video order can comprise: the weighted value of video channel is larger, then this video channel order of carrying out encoding and decoding to video pre-filtering data is more forward, when the weighted value of video channel is identical, then decide coding and decoding video order according to the priority of video channel.The priority of video channel can self-definedly determine, the video channel that priority is higher, and it is more forward to the encoding and decoding of the preprocessed data of video when weighted value is identical.Such as there is a, b, c tri-video channels, video channel a is identical with the weighted value of video channel b, the weighted value of video channel c is less than the weighted value of video channel a, and the priority of video channel a is higher than video channel b, then video channel a carries out the order of encoding and decoding higher than video channel b to video pre-filtering data, and video channel b carries out the order of encoding and decoding higher than video channel c to video pre-filtering data.In further embodiments, the weighted value of video channel and the corresponding relation of coding and decoding video order can comprise: the weighted value of video channel is less, then this video channel order of carrying out encoding and decoding to video pre-filtering data is more forward, when the weighted value of video channel is identical, then decide coding and decoding video order according to the priority of video channel.
Then enter the corresponding relation of step S202 Parasites Fauna module according to the weighted value of configured video channel and coding and decoding video order, the weighted value of store video passage.Described Parasites Fauna module comprises multiple register, and described register comprises multiple memory cell, and described memory cell may be used for storing weighted value, and a register may be used for storing multiple weighted value, also only can store a weighted value.The weighted value of such as video channel and the corresponding relation of coding and decoding video order are: the weighted value of video channel is larger, then this video channel order of carrying out encoding and decoding to video pre-filtering data is more forward, when the weighted value of video channel is identical, then decide coding and decoding video order according to the priority of video channel.Below as example, the weighted value of Parasites Fauna store video passage is described: multiple registers of Parasites Fauna module form an array list, each position of array list is (as the first row first row, the third line the 4th arranges) a corresponding register, the priority of the lastrow of array list is higher than next line, with in a line, the priority that the priority that the left side one arranges arranges higher than the right one.Priority is higher, then illustrate that the order of video editing code is more forward.When storing the weighted value of different video channels, larger weighted value being stored in the position, upper left side in array list, less weighted value being stored in the lower right position of array list.Particularly, then in strict accordance with weighted value order from big to small, and according to " priority of the lastrow of array list higher than next line, with in a line, the priority that the priority that the left side one arranges arranges higher than the right one " by the correspondence position of different weighted value stored in Parasites Fauna.Like this, when judging the size of weighted values different in comparand register group, just can find out current maximum weighted value easily, and then determine the video channel that this weighted value is corresponding and dispatch, greatly save the complexity of logical operation.
Then enter step S203 testing circuit and detect the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding instruction.Testing circuit can use hardware implementing, also can use software simulating.Testing circuit can according to from top to bottom, order from left to right, by the storing value in the register of diverse location in criterion register group, and then judges the video channel that coding and decoding video order medium priority is the highest.In the present embodiment, the video channel that described coding and decoding video order medium priority is the highest is that weighted value is maximum, and the video channel that the priority of video channel is the highest.
Then enter the instruction of step S204 codec data channel module received code, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or the instruction of codec data channel module receipt decoding, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.After completing once scheduling, weighted value corresponding to video channel can change, and also namely the weighted value of this video channel memory location in the register bank can change.Testing circuit can carry out re-starting detection and judge, finds out the video channel that the order of the edit code after change medium priority is the highest, and then in this video channel, carries out coding or the decode operation of preprocessed data.Repeat this step, until all video pre-filtering data are all encoded or decoded.Like this, just achieve and the reasonable distribution of video channel is dispatched, avoid respective channel and occur situation hungry to death, also ensure that the video channel of each scheduling is all the video channel that current video codec order medium priority is the highest simultaneously, substantially increase data-handling efficiency.
As shown in Figure 3, in the present embodiment, the weighted value of described video channel and the corresponding relation of coding and decoding video order are stored in two-dimensional array table, the weighted value of the line display video channel of described two-dimensional array table, and the priority of coding and decoding video order is shown in the list of described two-dimensional array; Described two-dimensional array table is stored in Parasites Fauna module.Described two-dimensional array table is Parasites Fauna, described Parasites Fauna comprises multiple register, compare for the ease of carrying out logical calculated, in present embodiment, the corresponding register in each position of two-dimensional array, the weighted value of the line display video channel of described two-dimensional array table arranges according to order of successively decreasing.In figure 3, two-dimensional array table show A-F, represent A to F totally 6 video channels respectively, its priority orders is followed successively by from high to low: video channel A is the highest, is secondly video channel B, and that minimum is video channel F.The row of two-dimensional array table has 1-5, the weighted value size of the video channel represented respectively.Weighted value is larger, then illustrate that video channel encoding and decoding order medium priority is more forward.Such as, in Fig. 3 the weighted value of video channel A to be the weighted value of 4, video channel B be 5, video channel E weighted value be 1.In order to reduce logical calculated amount further, can be 1 by the register assignment of the weighted value of store video passage, and be 0 by the register assignment of all the other positions storing the weighted value of this video channel, the weighted value of such as its correspondence of video channel A is 4, can be then 1 by the value assignment of the register of the position of the first row secondary series, and be 0 by the register assignment of other positions of the first row.Be easy to get from Fig. 3, the video channel that weighted value is the highest is video channel B (weighted value is 5), thus needs first schedule video channel B to carry out encoding and decoding to video pre-filtering.Again because the weighted value of the line display video channel of two-dimensional array table arranges according to order of successively decreasing, thus testing circuit is when detecting, only down need read successively from first row, first read value for " 1 " register, be the register that stored weighted value is the highest.When first row does not read the register that value is " 1 ", then down read successively from secondary series, when the value of the secondary series read at first is the register of " 1 ", this register is the highest register of current stored weighted value, by that analogy.Determine the register-bit postpone that weighted value is the highest, just can be easy to the video channel corresponding to weighted value showing that this registers stores up, as determined in Fig. 3, the register of the second row first row is the register that current storage weighted value is the highest, and video channel corresponding to the second row is video channel B, then the current video channel of scheduling that needs is video channel B.
After video channel B has dispatched, weighted value in two-dimensional array table can change, and is in particular in: as in present embodiment, and each video channel is after being scheduled, the weighted value that then this video channel is corresponding can subtract 1, until the weighted value of this video channel is 0.Video channel B is after completing first time scheduling, and weighted value becomes 4.As shown in Figure 4, the assignment of the second row secondary series of two-dimensional array table is 1, and the assignment of other row of the second row is 0, illustrates that the weighted value that video channel B is corresponding is 4.As can be seen from Figure 4, the video channel that present weight value is the highest is video channel A, video channel B and video channel F (being 4), but the priority due to video channel A is higher than video channel B and video channel F, thus video channel A is the video channel that current video codec order medium priority is the highest, namely needs schedule video passage A to carry out encoding and decoding to video pre-filtering.Testing circuit can re-start to detect and judge, the method for detection, with reference to the method for first time detection, first down reads successively from first row, first reads value for " 1 " register, is the register that stored weighted value is the highest.When first row does not read the register that value is " 1 ", then down read successively from secondary series, when the value of the secondary series read at first is the register of " 1 ", this register is the highest register of current stored weighted value.When secondary series does not read the register that value is " 1 ", then read the 3rd row, by that analogy.Determine the register-bit postpone that weighted value is the highest, just can be easy to the video channel corresponding to weighted value showing that this registers stores up, as determined in Fig. 4, the register of the first row secondary series is the register that current storage weighted value is the highest, and video channel corresponding to the first row is video channel A, then the current video channel of scheduling that needs is video channel A.
As shown in Figure 5, after video channel A has dispatched, the weighted value in two-dimensional array table can change, and is in particular in: the weighted value of video channel A subtracts 1, and weighted value becomes 3.Then testing circuit can re-start to detect and judge, find out the register position that present weight value is the highest, be easy to get as the second row secondary series in figure, the video channel of its correspondence is video channel B, and thus codec data channel module can call the preprocessed data of video channel B to video and encodes or decode.In like manner, as shown in Figure 6, after video channel B completes scheduling, its weighted value subtracts 1, and weighted value becomes 3.Then testing circuit can re-start to detect and judge, find out the register position that present weight value is the highest, be easy to get as the 6th row secondary series in Fig. 6, corresponding video channel is video channel F, and thus codec data channel module can call the preprocessed data of video channel F to video and encodes or decode.
In further embodiments, the weighted value of the line display video channel of two-dimensional array table can also arrange according to incremental order, and now weighted value is less, then illustrate that the invoked priority of video channel is higher.By the corresponding relation of the weighted value and coding and decoding video order of stating video channel is stored in two-dimensional array table, compared to original mode needing to compare one by one the weighted value of each video channel, not only greatly reduce logical operation quantity, decrease the possibility of makeing mistakes, simultaneously, after video channel has been dispatched, do not need to store the occurrence of the weighted value of video channel more yet, testing circuit just efficiently can complete rapidly according to the position of register and compare the weighted value of each video channel, improves the dispatching efficiency of video channel.
In the present embodiment, described Parasites Fauna module also comprises mark module, and described mark module is used for the memory cell the highest to the priority of coding and decoding video order in two-dimensional array and marks.Such as in the present embodiment, the memory cell in two-dimensional array is a certain register, and the register that the weighted value stored that can detect testing circuit is the highest marks.Like this, codec data channel module just can the markd video channel of quick calling tool, and then encodes or decode operation to the preprocessed data of video in this video channel, improves the dispatching efficiency of video channel.
The data dispatching method of the video pre-filtering described in technique scheme and device, described method is applied to the data scheduling device of video pre-filtering, and described device comprises scheduling configuration module, memory module, Parasites Fauna module, testing circuit, codec data channel module; Described scheduling configuration module is connected with memory module, described memory module and Parasites Fauna model calling, and described Parasites Fauna module is connected with testing circuit, described codec data channel module and Parasites Fauna model calling; Then said method comprising the steps of: the scheduling configuration module configuration weighted value of video channel and the corresponding relation of coding and decoding video order, and by described corresponding relation write Parasites Fauna module; Parasites Fauna module according to the corresponding relation of the weighted value of configured video channel and coding and decoding video order, the weighted value of store video passage; Testing circuit detects the video channel judging that in Parasites Fauna module, coding and decoding video order medium priority is the highest, and output encoder instruction or decoding code instruction; The instruction of codec data channel module received code, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is encoded to video; Or the instruction of codec data channel module receipt decoding, the coding and decoding video video channel that sequentially medium priority is the highest called detected by testing circuit is decoded to video.Described method can allow video channel dispatch based on weighted value, ensures that the video channel that priority is high can be dispatched in time, and carries out coding-decoding operation to the video in video channel, meet practical application needs well.Simultaneously, stored by the corresponding relation of mode to the weighted value of configured video channel and coding and decoding video order of Parasites Fauna, the logical operation calculated when comparing each video channel weighted value can be greatly reduced, also record is carried out without the need to weighted value concrete to each video channel again, save register space, not only increase the dispatching efficiency of video channel, and reduce hardware cost, thus in integrated circuit (IC) design field, there are wide market prospects.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, all-purpose computer, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the flow chart of method, equipment (system) and computer program according to embodiment and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.