CN104853219A - Video preprocessed data scheduling method and device - Google Patents

Video preprocessed data scheduling method and device Download PDF

Info

Publication number
CN104853219A
CN104853219A CN201510287189.1A CN201510287189A CN104853219A CN 104853219 A CN104853219 A CN 104853219A CN 201510287189 A CN201510287189 A CN 201510287189A CN 104853219 A CN104853219 A CN 104853219A
Authority
CN
China
Prior art keywords
video
module
channel
weighted value
decoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510287189.1A
Other languages
Chinese (zh)
Other versions
CN104853219B (en
Inventor
李仙辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201510287189.1A priority Critical patent/CN104853219B/en
Publication of CN104853219A publication Critical patent/CN104853219A/en
Application granted granted Critical
Publication of CN104853219B publication Critical patent/CN104853219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a video preprocessed data scheduling method and device. The device comprises a scheduling configuration module, a storage module, a resister block module, a detection circuit, and a coding and decoding data channel module. The method comprises the following steps that the scheduling configuration module configures correspondence of a weight value of a video channel and a video coding and decoding sequence, and writes the correspondence in the register block module; the register block module stores the weight value of the video channel; the detection circuit detects and judges the video channel with the highest priority in the video coding and decoding sequence in the register block module, and outputs a coding order or a decoding order; the coding and decoding data channel module receives the coding order or the decoding order, and invokes the video channel with the highest priority in the video coding and decoding sequence detected by the detection circuit to code or decode the video. Through adoption of the method and device, the problem that channel starvation, complicated logical operation, high requirement on hardware and so on are easy to occur in scheduling of the video channel can be solved.

Description

A kind of data dispatching method of video pre-filtering and device
Technical field
The present invention relates to integrated circuit (IC) design field, particularly relate to a kind of data dispatching method and device of video pre-filtering.
Background technology
Along with the development of science and technology and the progress of society, integrated circuit (IC) design is widely applied, increasing electronic equipment enters daily life, not only to have taken facility to daily life, also further promotes innovation and the research and development of science and technology simultaneously.In integrated circuit (IC) design field, coding and decoding video is wherein important one.Usually, the encoding and decoding of video carry out in multiple video channel, and this just relates to the output scheduling problem of each video channel, is also preferential problem of the video in which video channel being carried out to encoding and decoding.
At present, the method solving the output scheduling problem of each video channel comprises following several: the first is the method for strict priority scheduling, this method is by having pre-defined the priority of each video playback passage, then according to priority orders, from high to low, successively encoding and decoding are carried out to the video transmitted in video channel.The problems that this method exists, easily cause the low video channel of priority cannot be scheduled for a long time, the video transmitted by this video channel also just cannot correctly be exported in encoding and decoding, not only easily occur that passage dies of hunger phenomenon, data are made to can not get timely response, need to propose requirements at the higher level to data buffer storage simultaneously, easily cause loss of data.The second is the method adopting polling dispatching, and this method sets certain hour interval, carries out poll access at set intervals to each video channel, if wherein there is video, then carries out scheduling operation to it.Although the method for polling dispatching to some extent solves the problem that video channel occurs dying of hunger owing to can not get schedule access for a long time, but a certain video channel at a time often needs by priority scheduling in actual applications, the method for polling dispatching then cannot realize this point.The third is the dispatching method adopting WRR, this method characterizes the priority of each video channel called in video encoding-decoding process by weighted value, after video editing code completes, the weighted value of the video channel of its correspondence also changes thereupon, and then again calls video channel according to the sequencing of weighted value (from big to small or from small to large).The dispatching method of WRR ensure that each video channel all can be accessed on the one hand well, there will not be phenomenon hungry to death, calls video channel on the other hand, also ensure that the video channel that priority is high is preferably dispatched according to weighted value.But the dispatching method of WRR is but along with a large amount of combinational logic computings, such as video channel is often through once dispatching, multilevel iudge will be re-started to the weighted value of each video channel, and need the weighted value again opening up each passage of register pair to store, very big to hardware requirement.
In sum, how 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, be the problem that integrated circuit fields one needs solution badly.
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.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the data scheduling device of the video pre-filtering described in one embodiment of the invention;
Fig. 2 is the flow chart of the data dispatching method of the video pre-filtering described in one embodiment of the invention;
Fig. 3 is the schematic diagram of the two-dimensional array table described in one embodiment of the invention;
Fig. 4 is the schematic diagram of the two-dimensional array table described in another embodiment of the present invention;
Fig. 5 is the schematic diagram of the two-dimensional array table described in another embodiment of the present invention;
Fig. 6 is the schematic diagram of the two-dimensional array table described in another embodiment of the present invention.
Description of reference numerals:
101, configuration module is dispatched;
102, memory module;
103, Parasites Fauna module;
104, testing circuit;
105, codec data channel module.
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.

Claims (8)

1. a data scheduling device for video pre-filtering, is characterized in that, 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.
2. the data scheduling device of video pre-filtering as claimed in claim 1, it is characterized in that, 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, 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.
3. the data scheduling device of video pre-filtering as claimed in claim 2, is characterized in that, the weighted value of the line display video channel of described two-dimensional array table arranges according to order of successively decreasing.
4. the data scheduling device of video pre-filtering as claimed in claim 2, it is characterized in that, 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.
5. a data dispatching method for video pre-filtering, is characterized in that, 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.
6. the data dispatching method of video pre-filtering as claimed in claim 5, it is characterized in that, 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, 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.
7. the data dispatching method of video pre-filtering as claimed in claim 6, is characterized in that, the weighted value of the line display video channel of described two-dimensional array table arranges according to order of successively decreasing.
8. the data dispatching method of video pre-filtering as claimed in claim 6, it is characterized in that, 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.
CN201510287189.1A 2015-05-29 2015-05-29 The data dispatching method and device of a kind of video pre-filtering Active CN104853219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510287189.1A CN104853219B (en) 2015-05-29 2015-05-29 The data dispatching method and device of a kind of video pre-filtering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510287189.1A CN104853219B (en) 2015-05-29 2015-05-29 The data dispatching method and device of a kind of video pre-filtering

Publications (2)

Publication Number Publication Date
CN104853219A true CN104853219A (en) 2015-08-19
CN104853219B CN104853219B (en) 2017-10-03

Family

ID=53852517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510287189.1A Active CN104853219B (en) 2015-05-29 2015-05-29 The data dispatching method and device of a kind of video pre-filtering

Country Status (1)

Country Link
CN (1) CN104853219B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272542A (en) * 2008-05-07 2008-09-24 中兴通讯股份有限公司 HSDPA scheduling method in communication system
CN101453621A (en) * 2007-12-03 2009-06-10 北大方正集团有限公司 Method, system and device for video server resource sharing
CN101459611A (en) * 2008-12-23 2009-06-17 杭州华三通信技术有限公司 Data transmission scheduling method, system and device for IP SAN storage
US20140280116A1 (en) * 2013-03-12 2014-09-18 Verizon Patent And Licensing, Inc. Social network-based automated program channel recommender
CN104333767A (en) * 2014-10-10 2015-02-04 厦门雅迅网络股份有限公司 Multi-channel priority control method and system for vehicle video monitoring system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453621A (en) * 2007-12-03 2009-06-10 北大方正集团有限公司 Method, system and device for video server resource sharing
CN101272542A (en) * 2008-05-07 2008-09-24 中兴通讯股份有限公司 HSDPA scheduling method in communication system
CN101459611A (en) * 2008-12-23 2009-06-17 杭州华三通信技术有限公司 Data transmission scheduling method, system and device for IP SAN storage
US20140280116A1 (en) * 2013-03-12 2014-09-18 Verizon Patent And Licensing, Inc. Social network-based automated program channel recommender
CN104333767A (en) * 2014-10-10 2015-02-04 厦门雅迅网络股份有限公司 Multi-channel priority control method and system for vehicle video monitoring system

Also Published As

Publication number Publication date
CN104853219B (en) 2017-10-03

Similar Documents

Publication Publication Date Title
TWI728266B (en) Two-dimensional bar code generation, business processing method, device and equipment, and two-dimensional bar code
CN108628898B (en) Method, device and equipment for data storage
CN111563075B (en) Service verification system, method and equipment and storage medium
CN108924029A (en) A kind of method and device that customer service data are sent
CN104159113A (en) Method and device for selecting video coding mode for Android system
CN104267801A (en) Power consumption and bandwidth reducing method and system
CN106649210B (en) Data conversion method and device
CN105260293A (en) Output method, output device and terminal equipment of log information
CN116644213A (en) XML file reading method, device, equipment and storage medium
CN111291022A (en) Data storage system based on block chain
CN116521350A (en) ETL scheduling method and device based on deep learning algorithm
CN112860412A (en) Service data processing method and device, electronic equipment and storage medium
CN108053034A (en) Model parameter processing method, device, electronic equipment and storage medium
CN104853219A (en) Video preprocessed data scheduling method and device
CN115495082B (en) TLV format data automatic conversion method and related equipment
CN116775575A (en) File merging method and device, electronic equipment and storage medium
CN115935909A (en) File generation method and device and electronic equipment
CN107943923A (en) Construction method, telegraph code recognition methods and the device of telegraph code database
CN104731900A (en) Hive scheduling method and device
CN114185887A (en) Data reading and writing method, computing device and storage medium
CN108960384A (en) A kind of coding/decoding method and client of graphic code
CN107623524A (en) A kind of hardware based Huffman coding methods and system
CN105405443A (en) Audio signal compression processing system based on APE format and method thereof
CN103577860A (en) Bar code encoding system and method
CN112463785A (en) Data quality monitoring method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.

CP01 Change in the name or title of a patent holder