CN104052577A - Signal transmission processing method and device and video data transmission method and system - Google Patents
Signal transmission processing method and device and video data transmission method and system Download PDFInfo
- Publication number
- CN104052577A CN104052577A CN201410283840.3A CN201410283840A CN104052577A CN 104052577 A CN104052577 A CN 104052577A CN 201410283840 A CN201410283840 A CN 201410283840A CN 104052577 A CN104052577 A CN 104052577A
- Authority
- CN
- China
- Prior art keywords
- data
- byte
- place
- coded
- signal
- 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
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a signal transmission processing method and device and a video data transmission method and system. The signal transmission processing method includes the steps of obtaining original coding data of each bite representing a signal, converting the original coding data into target coding data, and transmitting signals according to the target coding data, wherein the digit of the target coding data is larger than that of the original coding data, and the digit of continuous 0 and the digit of continuous 1 in the target coding data are smaller than preset values. By means of the signal transmission processing method and device and the video data transmission method and system, the problem that in the prior art, channel error codes are prone to occurrence in a data transmission method is solved, signal transmission quality is improved, and the situation that channel error codes can be transmitted and amplified in a continuous checking method is avoided.
Description
Technical field
The present invention relates to data processing field, in particular to a kind of processing method of signal transmission and transmission method and the system of device and video data.
Background technology
The technology that clock information is embedded in transmission data has more been applied in existing mechanics of communication, as Ethernet transmission, USB technology, PCIe technology etc.This technology is in transmission data, by complete being embedded in data flow of the clock information of data, make the recovered clock that receiving terminal can be complete, utilize afterwards the clock recovering again the data flow receiving to be sampled, so just can avoid the sample error of bringing due to frequency and the phase deviation of sampling clock.In the data transmission method of clock-embedded, most important be exactly mode be exactly by coding, to increase by 0 and 1 upset number of times of transmission data, 0,1 data are overturn as much as possible and have been embodied the clock information of transfer of data, in contrast, if continuous 0 or 1 number is too much, occurrence frequency deviation or phase-shifts finally do not make the result of sampling make a mistake owing to having with reference at receiving terminal, to be easy to make recovered clock.This mistake is called as channel error code in data communication.
The most popular 8B/10B that is IBM proposes of transfer of data solution of current clock-embedded encodes.This coding has been widely used in the fields such as data communication.Its feature is:
The longest continuous 1 or 0 number is 5, and clock information is fully embedded in data encoding, and what make that receiving terminal can be relatively easy carries out CDR (clock data recovery, clock and data recovery);
In coding, there is continuous method of calibration, at receiving terminal, can check the data of recovery in physical transfer, whether to produce error code;
Channel error code can transmit by continuous method of calibration, in other words, even if channel error code only has a bit mistake, at receiving terminal, completes after verification and decoding, and the initial data recovering can be passed out a series of mistake, is about to mistake and amplifies;
Yet it is larger that 8B/10B is coded in the resource consuming in Code And Decode process, especially in realizing, hardware needs a lot of logics and hardware computing unit, and the resource consuming in decoding circuit is especially very large.On the other hand, it is larger that this kind of coded system implements difficulty, is not easy to be familiar with and to understand by more developers, cause and in encoding-decoding process, occur the defect in a lot of designs, to such an extent as to system is due to the correctly communication of mistake of coding-decoding circuit.This has just caused the coded system of similar 8B/10B in the part field higher to cost requirement to be used.
For data transmission method in prior art, easily there is the problem of channel error code, not yet propose at present effective solution.
Summary of the invention
Main purpose of the present invention is to provide a kind of processing method of signal transmission and transmission method and the system of device and video data, and the problem of channel error code easily occurs to solve data transmission method in prior art.
According to an aspect of the present invention, provide a kind of process of signal transmission method, having comprised: the original coding data of obtaining each byte that represents signal; Described original coding data are converted to target code data, and wherein, the figure place of described target code data is greater than the figure place of described original coding data, and in described target code data, continuous 0 and continuous 1 figure place is all less than preset value; And according to signal described in described target code transfer of data.
Further, by multiple conversions, described original coding data are converted to described target code data.
Further, described original coding data are 8 bit data, by multiple conversions, described original coding data are converted to described target code data and comprise: according to the first logic of propositions, the original coding data of described each byte are all converted to 9 coded datas; According to the second logic of propositions, 9 coded datas of the 1st byte are converted to 10 coded datas, wherein, described the 1st byte is for representing the start byte of described signal; And according to 9 coded datas of 10 coded datas of X byte and X+1 byte, determining 10 coded datas of described X+1 byte, X is positive integer.
Further, described the first logic of propositions meets following computing:
enc[0]=d[3];
enc[1]=(~d[2]&d[1])|(d[2]&d[1]&~d[3])|(~d[2]&~d[0]);
enc[2]=(d[2]&~d[1])|(d[2]&d[1]&~d[3])|(~d[2]&d[0]);
enc[3]=d[5];
enc[4]=d[6];
enc[5]=(~d[2]&~d[1]&~d[4])|(d[2]&d[0])|(d[1]&d[0]);
enc[6]=(~d[2]&~d[1]&~d[4])|(d[2]&~d[0])|(d[1]&~d[0]);
enc[7]=d[4];
Enc[8]=d[7], wherein, d[n] be the n+1 position in 8 coded datas of described X byte, enc[n] be the n+1 position in 9 coded datas of described X byte, the negate of~presentation logic, & presentation logic with, | presentation logic or, the priority of described logic negate is higher than the priority of described logical AND, described the second logic of propositions for to add 1 or 0 in 9 coded datas of described the 1st byte, wherein, 1 of interpolation or 0 is the highest order of 10 coded datas of described the 1st byte.
Further, according to 9 coded datas of 10 coded datas of X byte and X+1 byte, determine that 10 coded datas of described X+1 byte comprise: S11: obtain low two in 9 coded datas of Gao Siwei in 10 coded datas of described X byte and described X+1 byte, S12: by the Gao Siwei getting and six coded data combal_six{t} of low two compositions, wherein, combal_six{t}={q_out
t-1[6], q_out
t-1[7], q_out
t-1[8], q_out
t-1[9], enc[0], enc[1], q_out
t-1[6], q_out
t-1[7], q_out
t-1[8] and q_out
t-1[9] for getting the high four of coding result last time, enc[0] and enc[1] for getting the low two of 9 codings that described the first logic of propositions of current process obtains, S13: calculate described the first byte to the difference of the figure place of 1 figure place in 10 coded datas of described X byte and 0, obtain the first difference, S14: judge whether the first difference is zero, wherein, if the determination result is YES, performs step S15, if the determination result is NO, performs step S16, S15: judge whether six in described six coded data combal_six{t} all equate, wherein, if the determination result is YES, performs step S18, if the determination result is NO, performs step S19, S16: the difference of calculating in 9 coded datas of described X+1 byte the figure place of 1 figure place and 0, obtain the second difference, and judge whether described the first difference and described the second difference are all greater than zero, or whether be all less than zero, wherein, if judge described the first difference and described the second difference, be all greater than zero or be all less than zero, carry out S17, if judge described the first difference and described the second difference inequality, be greater than zero, and inequality is less than zero, performs step S15, S17: judge described six coded data combal_six{t} whether with coded data { 0, 0, 0, 0, 1, 1} or { 1, 1, 1, 1, 0, 0} is identical, wherein, if judge described six coded data combal_six{t} and described coded data { 0, 0, 0, 0, 1, 1} or { 1, 1, 1, 1, 0, 0} is identical, perform step S19, if judge described six coded data combal_six{t} and described coded data { 0, 0, 0, 0, 1, 1} is not identical, and with described coded data { 1, 1, 1, 1, 0, 0} is not identical yet, perform step S18, S18: determine that in 10 coded datas of described X+1 byte the 10th is 1, the 9th to the 1st the logic negate of the 9th to the 1st in 9 coded datas that are followed successively by described X+1 byte, and S19: determine that in 10 coded datas of described X+1 byte the 10th is the 9th to the 1st in 0, the 9th to the 1st 9 coded datas that are followed successively by described X+1 byte.
Further, judge whether six in described six coded data combal_six{t} all equate to comprise: to six in described six coded datas, carry out logic OR computing by turn, and judge whether the result after logic OR computing is by turn 0, wherein, in the situation that the result of judging after logic OR computing is by turn 0, determine that six in described six coded data combal_six{t} all equate; Or carry out logic and operation by turn to six in described six coded datas, and judge whether the result after logic and operation is by turn 1, wherein, in the situation that the result of judging after logic and operation is by turn 1, determine that six in described six coded data combal_six{t} all equate.
Further, the kind of described signal is n, n is more than 2 natural number, wherein, the original coding data of obtaining each byte that represents signal comprise: the original coding data of obtaining successively each byte that represents signal Si, wherein, i gets 1 successively to n, described original coding data are converted to target code data to be comprised: the described target code data that the described original coding data of each byte of described signal Si are all converted to each byte of described signal Si, according to signal described in described target code transfer of data, comprise: the described target code data of each byte of described signal Si are formed to code stream Li according to byte order, before the original position of described code stream Li, add predetermined interval code, wherein, the predetermined interval code that the code stream of variety classes signal adds is not identical, and the described code stream Li after described predetermined interval code is added in transmission.
Further, before the original position of described code stream Li, adding predetermined interval code comprises: the size of 1 figure place and 0 figure place in more described code stream Li, if and compare in described code stream Li the figure place that 1 figure place is greater than 0, before the original position of described code stream Li, add the first predetermined interval code, if compare in described code stream Li the figure place that 1 figure place is less than 0, before the original position of described code stream Li, add the second predetermined interval code, if compare in described code stream Li the figure place that 1 figure place equals 0, before the original position of described code stream Li, add described the first predetermined interval code or described the second predetermined interval code, wherein, the figure place that in described the first predetermined interval code, 0 figure place is greater than 1, the figure place that in described the second predetermined interval code, 0 figure place is less than 1.
According to another aspect of the invention, a kind of transmission method of video data is provided, comprise: adopt preset data processing method to carry out data processing to each frame signal in described video data, wherein, any process of signal transmission method that described preset data processing method provides for foregoing of the present invention; And send and carry out described each frame signal after data processing successively.
According to another aspect of the invention, provide a kind of process of signal transmission device, having comprised: acquiring unit, for obtaining the original coding data of each byte that represents described signal; Converting unit, for described original coding data are converted to target code data, wherein, the figure place of described target code data is greater than the figure place of described original coding data, and in described target code data, continuous 0 and continuous 1 figure place is all less than preset value; And transmission unit, for according to signal described in described target code transfer of data.
According to another aspect of the invention, a kind of transmission system of video data is provided, comprise: data processing equipment, for each frame signal of described video data is carried out to data processing, wherein, any process of signal transmission device that described data processing equipment provides for foregoing of the present invention; And dispensing device, for sending and carry out described each frame signal after data processing successively.
The present invention is by obtaining the original coding data of each byte that represents signal; Original coding data are converted to target code data, and wherein, the figure place of target code data is greater than the figure place of original coding data, and in target code data, continuous 0 and continuous 1 figure place is all less than preset value; And according to target code data transfer signal.Wherein, by the original coding data of each byte being converted to the target code data of seniority top digit, and in target code data, continuous 0 and continuous 1 figure place is all controlled in preset value, realized avoid occurring in signals transmission occupy-place long continuous 0 or continuous 1, and then avoid the channel error code of receiving terminal occurrence frequency deviation or phase-shifts, guarantee receiving terminal can Obtaining Accurate to the clock information in code stream, and then can accurately identify the signal that transmitting terminal transmits, solved the problem that channel error code easily occurs for data transmission method in prior art, and then reached raising signal transmission quality, avoid channel error code can occur by continuous method of calibration transmitting and amplifying.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the process of signal transmission method of the embodiment of the present invention;
Fig. 2 in the process of signal transmission method of the embodiment of the present invention is converted to 9 coded datas the flow chart of 10 coded datas;
Fig. 3 is according to the flow chart of the transmission method of the video data of the embodiment of the present invention;
Fig. 4 is according to the schematic diagram of the process of signal transmission device of the embodiment of the present invention; And
Fig. 5 is according to the schematic diagram of the transmission system of the video data of the embodiment of the present invention.
Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
The embodiment of the present invention provides a kind of process of signal transmission method, below the processing method of signal transmission that the embodiment of the present invention is provided be specifically introduced:
Fig. 1 is according to the flow chart of the process of signal transmission method of the embodiment of the present invention, and as shown in Figure 1, the method comprises that following step S101 is to step S103:
S101: the original coding data of obtaining each byte that represents signal
When carrying out signal transmission, 8 binary system original coding data of each byte of expression signal are obtained.
S102: original coding data are converted to target code data
Wherein, the figure place of target code data is greater than the figure place of original coding data, and in target code data, continuous 0 and continuous 1 figure place is all less than preset value, to the conversion of original coding data, can be divided into multistep carries out, to reach in target code data continuous 0 and continuous 1 figure place, be all less than preset value, below in two steps original coding data are converted to example, be specifically described:
The first step, is all converted to 9 coded datas according to the first logic of propositions by 8 binary system original coding data of each byte, and the first logic of propositions meets following computing:
enc[0]=d[3];
enc[1]=(~d[2]&d[1])|(d[2]&d[1]&~d[3])|(~d[2]&~d[0]);
enc[2]=(d[2]&~d[1])|(d[2]&d[1]&~d[3])|(~d[2]&d[0]);
enc[3]=d[5];
enc[4]=d[6];
enc[5]=(~d[2]&~d[1]&~d[4])|(d[2]&d[0])|(d[1]&d[0]);
enc[6]=(~d[2]&~d[1]&~d[4])|(d[2]&~d[0])|(d[1]&~d[0]);
enc[7]=d[4];
Enc[8]=d[7], wherein, d[n] be the n+1 position in 8 coded datas of X byte, enc[n] be the n+1 position in 9 coded datas of X byte, the negate of~presentation logic, & presentation logic with, | presentation logic or, the priority of logic negate is higher than the priority of logical AND.
Second step, 9 coded datas are converted to 10 coded datas, first, first according to the second logic of propositions, 9 coded datas of the 1st byte are converted to 10 coded datas, wherein, the 1st byte is for representing the start byte of signal, and the second logic of propositions for to add 1 or 0 in 9 coded datas of the 1st byte, wherein, 1 of interpolation or 0 is the highest order of 10 coded datas of the 1st byte; Then, according to 9 coded datas of 10 coded datas of X byte and X+1 byte, determine 10 coded datas of X+1 byte, X is positive integer, that is, and and according to 9 coded datas of 10 coded datas of the 1st byte and the 2nd byte, determine 10 coded datas of the 2nd byte, according to 9 coded datas of 10 coded datas of the 2nd byte and the 3rd byte, determine 10 coded datas of the 3rd byte, the like.; 0 and 1 number of the statistics according to 0 and 1 of all coded datas above and current 9 coded datas is determined in highest order (the 10th) and is added 1 or 0, current 9 is carried out to whole negates or remains unchanged through the first logic of propositions coding result simultaneously.As added 1 at the 10th through the whole negates of the first logic of propositions coding result to current 9, as not negate, add 0.
S103: according to target code data transfer signal.
The process of signal transmission method that the embodiment of the present invention provides, by the original coding data of each byte being converted to the target code data of seniority top digit, and in target code data, continuous 0 and continuous 1 figure place is all controlled in preset value, realized avoid occurring in signals transmission occupy-place long continuous 0 or continuous 1, and then avoid the channel error code of receiving terminal occurrence frequency deviation or phase-shifts, guarantee receiving terminal can Obtaining Accurate to the clock information in code stream, and then can accurately identify the signal that transmitting terminal transmits, solved the problem that channel error code easily occurs for data transmission method in prior art, and then reached raising signal transmission quality, avoid channel error code can occur by continuous method of calibration transmitting and amplifying.In addition, the process of signal transmission method of the embodiment of the present invention, also has that consumption of natural resource is lower, to implement difficulty less, easily by advantage that more developers were familiar with and understood.
Further, Fig. 2 in the process of signal transmission method of the embodiment of the present invention is converted to 9 coded datas the flow chart of 10 coded datas, 10 coded datas that 9 coded datas of X+1 byte are converted to X+1 byte of take illustrate as example, as shown in Figure 2, according to 9 coded datas of 10 coded datas of X byte and X+1 byte, determine that the concrete steps of 10 coded datas of X+1 byte are:
S11: obtain low two in 9 coded datas of Gao Siwei in 10 coded datas of X byte and X+1 byte;
S12: by the Gao Siwei getting and six coded data combal_six{t} of low two compositions, wherein, combal_six{t}={q_out
t-1[6], q_out
t-1[7], q_out
t-1[8], q_out
t-1[9], enc[0], enc[1], q_out
t-1[6], q_out
t-1[7], q_out
t-1[8] and q_out
t-1[9] high four for what get, be last time coding result high four, that is to say high four in 10 coded datas of X byte, enc[0] and enc[1] low two for what get,, current 9 codings that obtain through the first logic of propositions low two, that is to say low two in 9 coded datas of X+1 byte;
S13: calculate in 10 coded datas of the first byte to the X byte the difference of the figure place of 1 figure place and 0, obtain the first difference Cnt_acc;
S14: judge whether the first difference Cnt_acc is zero, wherein, if the determination result is YES, performs step S15, if the determination result is NO, performs step S16;
S15: judge whether six in six coded data combal_six{t} all equate, particularly, if six in six coded data combal_six{t} all equate, combal_six{t}={0, 0, 0, 0, 0, 0} or combal_six{t}={1, 1, 1, 1, 1, 1}, therefore can to six coded datas in combal_six{t} carry out by turn logical AND or by turn logic OR computing judge whether six in six coded data combal_six{t} all equate, if carry out logic OR computing by turn to six in six coded datas, judge whether the result after logic OR computing is by turn 0, i.e. judgement | whether combal_six==0 sets up, in the situation that the result of judging after logic OR computing is by turn 0, determine that six in six coded data combal_six{t} all equate, if carry out logic and operation by turn to six in six coded datas, judge whether the result after logic and operation is by turn 1, judge whether & combal_six==1 sets up, in the situation that the result of judging after logic and operation is by turn 1, determine that six in six coded data combal_six{t} all equate.If six that judge in six coded data combal_six{t} all equate, perform step S18, if six inequalities judging in six coded data combal_six{t} are equal, perform step S19;
S16: the difference of calculating in 9 coded datas of X+1 byte the figure place of 1 figure place and 0, obtain the second difference, and judge whether the first difference and the second difference are all greater than zero, or whether be all less than zero, suppose in 9 coded datas of X+1 byte that 1 figure place is N1{enc[8:0] }, in 9 coded datas of X+1 byte, 0 figure place is N0{enc[8:0], judge the first difference and the second difference whether be all greater than zero be judgement (N1{enc[8:0] } >N0{enc[8:0]) & & (cnt_acc>0), judge the first difference and the second difference whether be all less than zero be judgement (N1{enc[8:0] } <N0{enc[8:0]) & & (cnt_acc<0), wherein, if judging the first difference and the second difference is all greater than zero or is all less than zero, carry out S17, if judge the first difference and the second difference inequality, be greater than zero, and inequality is less than zero, perform step S15,
S17: judge six coded data combal_six{t} whether with coded data { 0, 0, 0, 0, 1, 1} or { 1, 1, 1, 1, 0, 0} is identical, i.e. judgement (combal_six==0b000011) || (combal_six==0b111100), wherein, if judge six coded data combal_six{t} and coded data { 0, 0, 0, 0, 1, 1} or { 1, 1, 1, 1, 0, 0} is identical, perform step S19, if judge six coded data combal_six{t} and coded data { 0, 0, 0, 0, 1, 1} is not identical, and with coded data { 1, 1, 1, 1, 0, 0} is not identical yet, perform step S18,
S18: determine that in 10 coded datas of X+1 byte the 10th is 1, the 9th to the 1st the logic negate of the 9th to the 1st in 9 coded datas that are followed successively by X+1 byte, be q_out[9]=1'b1, q_out[8:0]=~enc[8:0], wherein, q_out[9] be the 10th in 10 coded datas of X+1 byte, q_out[8:0] be the 9th to the 1st in 10 coded datas of X+1 byte;
S19: determine that in 10 coded datas of X+1 byte the 10th is the 9th to the 1st in 0, the 9th to the 1st 9 coded datas that are followed successively by X+1 byte, i.e. q_out[9]=1'b0, q_out[8:0]=enc[8:0].
Wherein, in step S13, to the calculating of the first difference Cnt_acc, can adopt accumulate mode to carry out, , after determining 10 coded datas of the first byte, first calculate in first byte figure place poor of 1 figure place and 0, then often determine 10 coded datas of a byte, the difference of the figure place of 1 figure place in this byte of determining and 0 is added in the difference that the last time calculates, particularly, suppose that Cnt_acc (t-1) is for the last difference calculating, perform step after S18, by formula Cnt_acc (t)=Cnt_acc (t-1) – N0{q_out[8:0] }+N1{q_out[8:0]+1'b1 determines the second difference, or after execution step S19, by formula Cnt_acc (t)=Cnt_acc (t-1) – N0{q_out[8:0] }+N1{q_out[8:0]-1'b1 determines the second difference.
By above step, the process of signal transmission method that the embodiment of the present invention provides has realized continuous 0 and continuous 1 figure place in code stream has all been controlled in 5, guarantees minimum marginal density, has improved the quality of signal transmission.
Further, in the process of signal transmission method that the embodiment of the present invention provides, the kind of signal is multiple, suppose that its quantity is n (n is more than 2 natural number), when obtaining target data coding, need to carry out above-mentioned processing method to each signal, specific as follows:
The above-mentioned step of obtaining the original coding data of each byte that represents signal comprises: the original coding data of obtaining successively each byte that represents signal Si, wherein, i gets 1 successively to n, that is, the original coding data of each byte of each signal are obtained.
The above-mentioned step that original coding data are converted to target code data comprises: the target code data that the original coding data of each byte of signal Si are all converted to each byte of signal Si,, the target designation data of each byte that is sort signal by each byte corresponding conversion of each signal, concrete conversion method is identical with the above-mentioned method that is converted to target code data, repeats no more herein.
The above-mentioned step according to target code data transfer signal comprises: first, the target code data of each byte of signal Si are formed to code stream Li according to byte order,, the target code data of each byte of the first signal are formed to the code stream of the first signal according to byte order, the target code data of each byte of the second signal are formed to the code stream of the second signal according to byte order, by that analogy; Secondly, add predetermined interval code before the original position of code stream Li, wherein, the predetermined interval code that the code stream of variety classes signal adds is not identical; Then, the code stream Li after predetermined interval code is added in transmission.
By adding different predetermined interval codes in the code stream at variety classes signal, so that whole code streams that receiver side can send transmitter side according to space code carry out segmentation, to identify exactly signal represented in code stream.
Wherein, the embodiment of the present invention provides a kind of method of adding predetermined interval code before the original position of code stream Li, is specially:
The size of 1 figure place and 0 figure place in code stream Li relatively; And
If compare in code stream Li the figure place that 1 figure place is greater than 0, before the original position of code stream Li, add the first predetermined interval code, if compare in code stream Li the figure place that 1 figure place is less than 0, before the original position of code stream Li, add the second predetermined interval code, if compare in code stream Li the figure place that 1 figure place equals 0, before the original position of code stream Li, add the first predetermined interval code or the second predetermined interval code, wherein, the figure place that in the first predetermined interval code, 0 figure place is greater than 1, the figure place that in the second predetermined interval code, 0 figure place is less than 1.
For the figure place that compares in code stream 1, be greater than the situation of 0 figure place, add the first predetermined interval code of many 0 and maintain 1 figure place and equate as far as possible with 0 figure place.For the figure place that compares in code stream 1, be less than the situation of 0 figure place, add the second predetermined interval code of many 1 and maintain 1 figure place and equate as far as possible with 0 figure place.For the two equal situation, the second predetermined interval code of the first predetermined interval of interpolation many 0 or interpolation many 1 all can.
The process of signal transmission method of the embodiment of the present invention provides following four groups of predetermined interval codes, can transmit for the signal to below Four types, as shown in table 1, K1 represents first group of predetermined interval code, K2 represents second group of predetermined interval code, and K3 represents the 3rd group of predetermined interval code, and K4 represents the 4th group of predetermined interval code, in table 1, secondary series represents the first predetermined interval code in corresponding group space code, and in table 1, the second predetermined interval code in corresponding group space code is shown in the 3rd list:
Table 1
? | The first predetermined interval code | The second predetermined interval code |
K1 | 0b1000000101 | 0b0111111010 |
K2 | 0b1000000100 | 0b0111111011 |
K3 | 0b1000000110 | 0b0111111001 |
K4 | 0b1000000111 | 0b0111111000 |
The embodiment of the present invention also provides a kind of transmission method of video data, and Fig. 3 is according to the transmission method of the video data of the embodiment of the present invention, and as shown in Figure 3, the transmission method of the video data of this embodiment comprises step S301 and step S302.
S301: adopt preset data processing method to carry out data processing to each frame signal in video data, wherein, any data processing method that preset data processing method embodiment of the present invention foregoing provides.
S302: send and carry out each frame signal after data processing successively.
The transmission method of the video data of the embodiment of the present invention, by each frame signal is all processed according to above-mentioned process of signal transmission method, realized avoid occurring in signals transmission occupy-place long continuous 0 or continuous 1, and then avoid the channel error code of receiving terminal occurrence frequency deviation or phase-shifts, guarantee receiving terminal can Obtaining Accurate to the clock information in code stream, and then can accurately identify the signal that transmitting terminal transmits, solved the problem that channel error code easily occurs for data transmission method in prior art, and then reached raising signal transmission quality, avoid channel error code can occur by continuous method of calibration transmitting and amplifying.
The embodiment of the present invention also provides a kind of signal transmitting apparatus, Fig. 4 is according to the schematic diagram of the signal transmitting apparatus of the embodiment of the present invention, as shown in Figure 4, the signal transmitting apparatus of this embodiment comprises acquiring unit 41, converting unit 42 and transmission unit 43, particularly:
Acquiring unit 41, for obtaining the original coding data of each byte that represents signal,, for when carrying out signal transmission, obtains 8 binary system original coding data of each byte of expression signal.
Converting unit 42 is for being converted to target code data by original coding data, wherein, the figure place of target code data is greater than the figure place of original coding data, and in target code data, continuous 0 and continuous 1 figure place is all less than preset value, the method that converting unit 42 is converted to original coding data target code data is identical with method in above-mentioned steps S102, repeats no more herein.
Transmission unit 43 is for according to target code data transfer signal, particularly, 10 coded datas of each byte are formed to code stream according to the sequencing of byte, and after code stream, add suitable space code, obtain the code stream for transmission, wherein, concrete processing method is identical with above-mentioned steps S103, repeats no more herein.
The process of signal transmission device that the embodiment of the present invention provides, by the original coding data of each byte being converted to the target code data of seniority top digit, and in target code data, continuous 0 and continuous 1 figure place is all controlled in preset value, realized avoid occurring in signals transmission occupy-place long continuous 0 or continuous 1, and then avoid the channel error code of receiving terminal occurrence frequency deviation or phase-shifts, guarantee receiving terminal can Obtaining Accurate to the clock information in code stream, and then can accurately identify the signal that transmitting terminal transmits, solved the problem that channel error code easily occurs for data transmission method in prior art, and then reached raising signal transmission quality, avoid channel error code can occur by continuous method of calibration transmitting and amplifying.
The embodiment of the present invention also provides a kind of transmission system of video data, Fig. 5 is according to the schematic diagram of the transmission system of the video data of the embodiment of the present invention, as shown in Figure 5, the transmission system of the video data of this embodiment comprises data processing equipment 51 and dispensing device 52, particularly:
Data processing equipment 51 carries out data processing for each frame signal to video data, wherein, and the process of signal transmission device that data processing equipment provides for embodiment of the present invention foregoing.
Dispensing device 52 is for sending and carry out each frame signal after data processing successively.
The transmission system of the video data of the embodiment of the present invention, by each frame signal is all processed according to above-mentioned process of signal transmission method, realized avoid occurring in signals transmission occupy-place long continuous 0 or continuous 1, and then avoid the channel error code of receiving terminal occurrence frequency deviation or phase-shifts, guarantee receiving terminal can Obtaining Accurate to the clock information in code stream, and then can accurately identify the signal that transmitting terminal transmits, solved the problem that channel error code easily occurs for data transmission method in prior art, and then reached raising signal transmission quality, avoid channel error code can occur by continuous method of calibration transmitting and amplifying.
It should be noted that, in the step shown in the flow chart of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (11)
1. a process of signal transmission method, is characterized in that, comprising:
Obtain the original coding data of each byte that represents signal;
Described original coding data are converted to target code data, and wherein, the figure place of described target code data is greater than the figure place of described original coding data, and in described target code data, continuous 0 and continuous 1 figure place is all less than preset value; And
According to signal described in described target code transfer of data.
2. process of signal transmission method according to claim 1, is characterized in that, by multiple conversions, described original coding data is converted to described target code data.
3. process of signal transmission method according to claim 2, is characterized in that, described original coding data are 8 bit data, by multiple conversions, described original coding data is converted to described target code data and comprises:
According to the first logic of propositions, the original coding data of described each byte are all converted to 9 coded datas;
According to the second logic of propositions, 9 coded datas of the 1st byte are converted to 10 coded datas, wherein, described the 1st byte is for representing the start byte of described signal; And
According to 9 coded datas of 10 coded datas of X byte and X+1 byte, determine 10 coded datas of described X+1 byte, X is positive integer.
4. process of signal transmission method according to claim 3, is characterized in that,
Described the first logic of propositions meets following computing:
enc[0]=d[3];
enc[1]=(~d[2]&d[1])|(d[2]&d[1]&~d[3])|(~d[2]&~d[0]);
enc[2]=(d[2]&~d[1])|(d[2]&d[1]&~d[3])|(~d[2]&d[0]);
enc[3]=d[5];
enc[4]=d[6];
enc[5]=(~d[2]&~d[1]&~d[4])|(d[2]&d[0])|(d[1]&d[0]);
enc[6]=(~d[2]&~d[1]&~d[4])|(d[2]&~d[0])|(d[1]&~d[0]);
enc[7]=d[4];
Enc[8]=d[7], wherein, d[n] be the n+1 position in 8 coded datas of described X byte, enc[n] be the n+1 position in 9 coded datas of described X byte, the negate of~presentation logic, & presentation logic with, | presentation logic or, the priority of described logic negate is higher than the priority of described logical AND
Described the second logic of propositions for to add 1 or 0 in 9 coded datas of described the 1st byte, and wherein, 1 or 0 of interpolation is the highest order of 10 coded datas of described the 1st byte.
5. according to the process of signal transmission method described in claim 3 or 4, it is characterized in that, according to 9 coded datas of 10 coded datas of X byte and X+1 byte, determine that 10 coded datas of described X+1 byte comprise:
S11: obtain low two in 9 coded datas of Gao Siwei in 10 coded datas of described X byte and described X+1 byte;
S12: by the Gao Siwei getting and six coded data combal_six{t} of low two compositions, wherein, combal_six{t}={q_out
t-1[6], q_out
t-1[7], q_out
t-1[8], q_out
t-1[9], enc[0], enc[1], q_out
t-1[6], q_out
t-1[7], q_out
t-1[8] and q_out
t-1[9] for getting the high four of coding result last time, enc[0] and enc[1] for getting the low two of 9 codings that described the first logic of propositions of current process obtains;
S13: calculate described the first byte to the difference of the figure place of 1 figure place in 10 coded datas of described X byte and 0, obtain the first difference;
S14: judge whether the first difference is zero, wherein, if the determination result is YES, performs step S15, if the determination result is NO, performs step S16;
S15: judge whether six in described six coded data combal_six{t} all equate, wherein, if the determination result is YES, performs step S18, if the determination result is NO, performs step S19;
S16: the difference of calculating in 9 coded datas of described X+1 byte the figure place of 1 figure place and 0, obtain the second difference, and judge whether described the first difference and described the second difference are all greater than zero, or whether be all less than zero, wherein, if judge described the first difference and described the second difference, be all greater than zero or be all less than zero, carry out S17, if judge described the first difference and described the second difference inequality, be greater than zero, and inequality is less than zero, performs step S15;
S17: judge described six coded data combal_six{t} whether with coded data { 0, 0, 0, 0, 1, 1} or { 1, 1, 1, 1, 0, 0} is identical, wherein, if judge described six coded data combal_six{t} and described coded data { 0, 0, 0, 0, 1, 1} or { 1, 1, 1, 1, 0, 0} is identical, perform step S19, if judge described six coded data combal_six{t} and described coded data { 0, 0, 0, 0, 1, 1} is not identical, and with described coded data { 1, 1, 1, 1, 0, 0} is not identical yet, perform step S18,
S18: determine that in 10 coded datas of described X+1 byte the 10th is 1, the 9th to the 1st the logic negate of the 9th to the 1st in 9 coded datas that are followed successively by described X+1 byte; And
S19: determine that in 10 coded datas of described X+1 byte the 10th is the 9th to the 1st in 0, the 9th to the 1st 9 coded datas that are followed successively by described X+1 byte.
6. process of signal transmission method according to claim 5, is characterized in that, judges whether six in described six coded data combal_six{t} all equate to comprise:
To six in described six coded datas, carry out logic OR computing by turn, and judge whether the result after logic OR computing is by turn 0, wherein, in the situation that the result of judging after logic OR computing is by turn 0, determine that six in described six coded data combal_six{t} all equate; Or
To six in described six coded datas, carry out logic and operation by turn, and judge whether the result after logic and operation is by turn 1, wherein, in the situation that the result of judging after logic and operation is by turn 1, determine that six in described six coded data combal_six{t} all equate.
7. process of signal transmission method according to claim 1, is characterized in that, the kind of described signal is n, and n is more than 2 natural number, wherein,
The original coding data of obtaining each byte that represents signal comprise: obtain successively the original coding data of each byte that represents signal Si, wherein, i gets 1 successively to n,
Described original coding data are converted to target code data to be comprised: the described original coding data of each byte of described signal Si are all converted to the described target code data of each byte of described signal Si,
According to signal described in described target code transfer of data, comprise:
The described target code data of each byte of described signal Si are formed to code stream Li according to byte order;
Before the original position of described code stream Li, add predetermined interval code, wherein, the predetermined interval code that the code stream of variety classes signal adds is not identical; And
The described code stream Li after described predetermined interval code is added in transmission.
8. process of signal transmission method according to claim 7, is characterized in that, added predetermined interval code and comprised before the original position of described code stream Li:
The size of 1 figure place and 0 figure place in more described code stream Li; And
If compare in described code stream Li the figure place that 1 figure place is greater than 0, before the original position of described code stream Li, add the first predetermined interval code, if compare in described code stream Li the figure place that 1 figure place is less than 0, before the original position of described code stream Li, add the second predetermined interval code, if compare in described code stream Li the figure place that 1 figure place equals 0, before the original position of described code stream Li, add described the first predetermined interval code or described the second predetermined interval code, wherein, the figure place that in described the first predetermined interval code, 0 figure place is greater than 1, the figure place that in described the second predetermined interval code, 0 figure place is less than 1.
9. a transmission method for video data, is characterized in that, comprising:
Adopt preset data processing method to carry out data processing to each frame signal in described video data, wherein, described preset data processing method is the process of signal transmission method described in any one in claim 1 to 8; And
Send and carry out described each frame signal after data processing successively.
10. a process of signal transmission device, is characterized in that, comprising:
Acquiring unit, for obtaining the original coding data of each byte that represents described signal;
Converting unit, for described original coding data are converted to target code data, wherein, the figure place of described target code data is greater than the figure place of described original coding data, and in described target code data, continuous 0 and continuous 1 figure place is all less than preset value; And
Transmission unit, for according to signal described in described target code transfer of data.
The transmission system of 11. 1 kinds of video datas, is characterized in that, comprising:
Data processing equipment, carries out data processing for each frame signal to described video data, and wherein, described data processing equipment is the process of signal transmission device described in claim 10; And
Dispensing device, for sending and carry out described each frame signal after data processing successively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410283840.3A CN104052577B (en) | 2014-06-23 | 2014-06-23 | The treating method and apparatus of signal transmission and the transmission method and system of video data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410283840.3A CN104052577B (en) | 2014-06-23 | 2014-06-23 | The treating method and apparatus of signal transmission and the transmission method and system of video data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104052577A true CN104052577A (en) | 2014-09-17 |
CN104052577B CN104052577B (en) | 2017-11-24 |
Family
ID=51504969
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410283840.3A Active CN104052577B (en) | 2014-06-23 | 2014-06-23 | The treating method and apparatus of signal transmission and the transmission method and system of video data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104052577B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106626828A (en) * | 2016-12-30 | 2017-05-10 | 北京美科艺数码科技发展有限公司 | Inkjet printer signal transmission method |
CN108694918A (en) * | 2017-06-09 | 2018-10-23 | 京东方科技集团股份有限公司 | Coding method and device, coding/decoding method and device and display device |
WO2018223915A1 (en) * | 2017-06-09 | 2018-12-13 | 京东方科技集团股份有限公司 | Data transmission method, data transmission circuit, display apparatus and storage medium |
CN109525372A (en) * | 2018-12-24 | 2019-03-26 | 深圳市华星光电技术有限公司 | Terminal data transmission method, apparatus and storage medium |
CN110086575A (en) * | 2019-05-06 | 2019-08-02 | 深圳市华星光电技术有限公司 | Coding method, coding/decoding method, relevant apparatus and storage medium |
CN110474711A (en) * | 2018-05-11 | 2019-11-19 | 深圳市华星光电技术有限公司 | Coding method, equipment and readable storage medium storing program for executing |
CN110474709A (en) * | 2018-05-11 | 2019-11-19 | 深圳市华星光电技术有限公司 | Coding method, equipment and readable storage medium storing program for executing |
WO2020038459A1 (en) * | 2018-08-24 | 2020-02-27 | 京东方科技集团股份有限公司 | Encoding method and device, display device, medium, and signal transmission system |
CN111368508A (en) * | 2020-03-03 | 2020-07-03 | 深信服科技股份有限公司 | Data processing method, device, equipment and medium |
CN111477158A (en) * | 2020-05-25 | 2020-07-31 | 京东方科技集团股份有限公司 | Data transmission method, assembly and display device thereof |
CN111599300A (en) * | 2020-06-19 | 2020-08-28 | 京东方科技集团股份有限公司 | Signal processing method, signal transmitting and receiving device, and display device |
CN113473130A (en) * | 2021-06-21 | 2021-10-01 | Tcl华星光电技术有限公司 | Encoding method, decoding method, encoding device, and decoding device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582866A (en) * | 2008-05-15 | 2009-11-18 | 台湾积体电路制造股份有限公司 | Method of coding data packets and coding system |
CN102142927A (en) * | 2010-10-22 | 2011-08-03 | 华为技术有限公司 | Line coding and decoding method, device and system |
CN103229444A (en) * | 2012-12-28 | 2013-07-31 | 华为技术有限公司 | Coding/decoding method, device and system |
-
2014
- 2014-06-23 CN CN201410283840.3A patent/CN104052577B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582866A (en) * | 2008-05-15 | 2009-11-18 | 台湾积体电路制造股份有限公司 | Method of coding data packets and coding system |
CN102142927A (en) * | 2010-10-22 | 2011-08-03 | 华为技术有限公司 | Line coding and decoding method, device and system |
CN103229444A (en) * | 2012-12-28 | 2013-07-31 | 华为技术有限公司 | Coding/decoding method, device and system |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106626828A (en) * | 2016-12-30 | 2017-05-10 | 北京美科艺数码科技发展有限公司 | Inkjet printer signal transmission method |
CN106626828B (en) * | 2016-12-30 | 2019-05-24 | 北京美科艺数码科技发展有限公司 | A kind of ink-jet printer method for transmitting signals |
CN108694918A (en) * | 2017-06-09 | 2018-10-23 | 京东方科技集团股份有限公司 | Coding method and device, coding/decoding method and device and display device |
WO2018223915A1 (en) * | 2017-06-09 | 2018-12-13 | 京东方科技集团股份有限公司 | Data transmission method, data transmission circuit, display apparatus and storage medium |
WO2018223899A1 (en) * | 2017-06-09 | 2018-12-13 | 京东方科技集团股份有限公司 | Encoding method and device, decoding method and device, and display device |
CN108694918B (en) * | 2017-06-09 | 2021-09-28 | 京东方科技集团股份有限公司 | Encoding method and device, decoding method and device and display device |
US11107433B2 (en) | 2017-06-09 | 2021-08-31 | Beijing Boe Display Technology Co., Ltd. | Data transmission method, data transmission circuit, display device and storage medium |
US11056070B2 (en) | 2017-06-09 | 2021-07-06 | Beijing Boe Display Technology Co., Ltd. | Encoding method and device, decoding method and device, and display device |
EP3637652A4 (en) * | 2017-06-09 | 2021-03-03 | BOE Technology Group Co., Ltd. | Encoding method and device, decoding method and device, and display device |
CN110474711B (en) * | 2018-05-11 | 2021-11-09 | Tcl华星光电技术有限公司 | Encoding method, apparatus and readable storage medium |
CN110474711A (en) * | 2018-05-11 | 2019-11-19 | 深圳市华星光电技术有限公司 | Coding method, equipment and readable storage medium storing program for executing |
CN110474709A (en) * | 2018-05-11 | 2019-11-19 | 深圳市华星光电技术有限公司 | Coding method, equipment and readable storage medium storing program for executing |
US11081044B2 (en) | 2018-08-24 | 2021-08-03 | Beijing Boe Display Technology Co., Ltd. | Encoding method and apparatus, display apparatus, medium and signal transmission system |
WO2020038459A1 (en) * | 2018-08-24 | 2020-02-27 | 京东方科技集团股份有限公司 | Encoding method and device, display device, medium, and signal transmission system |
CN109525372A (en) * | 2018-12-24 | 2019-03-26 | 深圳市华星光电技术有限公司 | Terminal data transmission method, apparatus and storage medium |
CN110086575A (en) * | 2019-05-06 | 2019-08-02 | 深圳市华星光电技术有限公司 | Coding method, coding/decoding method, relevant apparatus and storage medium |
CN110086575B (en) * | 2019-05-06 | 2021-10-08 | Tcl华星光电技术有限公司 | Encoding method, decoding method, related device and storage medium |
CN111368508A (en) * | 2020-03-03 | 2020-07-03 | 深信服科技股份有限公司 | Data processing method, device, equipment and medium |
CN111368508B (en) * | 2020-03-03 | 2024-04-09 | 深信服科技股份有限公司 | Data processing method, device, equipment and medium |
CN111477158A (en) * | 2020-05-25 | 2020-07-31 | 京东方科技集团股份有限公司 | Data transmission method, assembly and display device thereof |
CN111477158B (en) * | 2020-05-25 | 2024-01-09 | 京东方科技集团股份有限公司 | Data transmission method, data transmission component and display device |
CN111599300A (en) * | 2020-06-19 | 2020-08-28 | 京东方科技集团股份有限公司 | Signal processing method, signal transmitting and receiving device, and display device |
CN113473130B (en) * | 2021-06-21 | 2023-10-03 | Tcl华星光电技术有限公司 | Encoding method, decoding method, encoding device, and decoding device |
CN113473130A (en) * | 2021-06-21 | 2021-10-01 | Tcl华星光电技术有限公司 | Encoding method, decoding method, encoding device, and decoding device |
Also Published As
Publication number | Publication date |
---|---|
CN104052577B (en) | 2017-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104052577A (en) | Signal transmission processing method and device and video data transmission method and system | |
CN106817197B (en) | Communication coding and decoding method based on duty ratio modulation | |
CN101201970A (en) | Self-adaptive decoding method for wireless remote control receiving chip | |
CN108847916B (en) | Encoding method, apparatus and readable storage medium | |
CN110445860B (en) | Message sending method, device, terminal equipment and storage medium | |
CN109450596A (en) | Coding method, coding/decoding method, encoding device, decoding device, storage medium and terminal | |
CN110474711B (en) | Encoding method, apparatus and readable storage medium | |
CN108768587B (en) | Encoding method, apparatus and readable storage medium | |
CN106068505A (en) | Share the bit in bus to distribute to facilitate error detection optimization | |
CN110474709B (en) | Encoding method, apparatus and readable storage medium | |
CN105187070A (en) | Manchester encoding signal decoding method and device | |
CN103036641A (en) | Method and system of data exchange and deserialization method | |
CN104753538A (en) | Method and device for decoding manchester encoding signal | |
CN107566794B (en) | Video data processing method and system and terminal equipment | |
CN102546084A (en) | Anti-interference error-correcting and sampling system and method in process of receiving asynchronous serial communication data | |
CN106850373B (en) | Non-destructive dynamic optimization scheduling method facing CAN bus | |
CN110474710B (en) | Encoding method, apparatus and readable storage medium | |
CN101442380B (en) | Method and apparatus for testing error rate based on high speed serial interface encoded mode | |
CN104270155A (en) | Manchester code stream reception and anti-interference analysis method | |
CN209358555U (en) | Data transmission device and system | |
CN106656201A (en) | Compression algorithm based on amplitude-frequency characteristics of sampled data | |
US20190081828A1 (en) | Baud rate tracking and compensation apparatus and method | |
US20160295531A1 (en) | Multipath time division service transmission method and device | |
CN110087080B (en) | Decoding method, apparatus and readable storage medium | |
US7903004B2 (en) | Decoding apparatus and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |