CN104052577B - The treating method and apparatus of signal transmission and the transmission method and system of video data - Google Patents
The treating method and apparatus of signal transmission and the transmission method and system of video data Download PDFInfo
- Publication number
- CN104052577B CN104052577B CN201410283840.3A CN201410283840A CN104052577B CN 104052577 B CN104052577 B CN 104052577B CN 201410283840 A CN201410283840 A CN 201410283840A CN 104052577 B CN104052577 B CN 104052577B
- Authority
- CN
- China
- Prior art keywords
- data
- byte
- coded
- digit
- 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.)
- Active
Links
Abstract
The invention discloses a kind for the treatment of method and apparatus of signal transmission and the transmission method and system of video data.Wherein, the processing method of signal transmission includes:Obtain the piginal encoded data for each byte for representing signal;Piginal encoded data is converted into target code data, wherein, the digit of target code data is more than the digit of piginal encoded data, and continuous 0 and continuous 1 digit is respectively less than preset value in target code data;And according to target code data transfer signal.By the present invention, solve the problems, such as that channel error code easily occurs for data transmission method in the prior art, and then raising signal transmission quality, avoid channel error code from occurring transmitting and amplify by continuous method of calibration.
Description
Technical field
The present invention relates to data processing field, treating method and apparatus in particular to a kind of transmission of signal and regard
The transmission method and system of frequency evidence.
Background technology
The technology that clock information is embedded in transmission data is more applied in existing mechanics of communication, such as ether
Net transmission, USB technologies, PCIe technologies etc..The clock information of data is completely embedded into by this technology while data are transmitted
In data flow so that receiving terminal can complete recovered clock, utilize the clock recovered to be carried out again to the data flow of reception afterwards
Sampling, the sample error that can thus avoid frequency and phase deviation due to sampling clock from bringing.In the number of clock-embedded
According in transmission method, most important is exactly that mode is exactly to increase by 0 and 1 upset number of transmission data, 0,1 data by encoding
Upset embodies the clock information of data transfer as far as possible, in contrast, if continuous 0 or 1 number is excessive, is connecing
Receiving end be easy to so that recovered clock due to without reference to and occurrence frequency deviation or phase-shifts, the final result for causing sampling
Make a mistake.This mistake is referred to as channel error code in data communication.
The most popular data transfer solution of current clock-embedded is that the 8B/10B that IBM is proposed is encoded.This coding
It is widely used to the fields such as data communication.Its feature is:
Continuous 1 or 0 most long number is 5, i.e. clock information has been substantially embedded into data encoding so that receiving terminal
Carry out CDR (clock data recovery, clock and data recovery) that can be relatively easy;
There is continuous method of calibration in coding, can examine the data of recovery in physical transfer either with or without production in receiving terminal
Raw error code;
Channel error code can be transmitted by continuous method of calibration, in other words, even if channel error code only has a bit-errors,
After receiving terminal completes verification and decoding, the initial data recovered can be passed out a series of mistake, will mistake progress
Amplification;
But the resource that 8B/10B codings consume in coding and in decoding is larger, especially needed in hardware realization
Many logics and hardware computational unit, the resource consumed in decoding circuit are especially very big.On the other hand, such a coded system
It is larger to implement difficulty, it is not easy to be appreciated and understood by more developers, cause to occur much setting in encoding-decoding process
The defects of meter, so that system can not be communicated correctly due to the mistake of coding-decoding circuit.This has been resulted in part to cost
It is required that similar 8B/10B coded system can not be used in higher field.
The problem of channel error code easily occurs for data transmission method in the prior art, effective solution is not yet proposed at present
Certainly scheme.
The content of the invention
It is a primary object of the present invention to provide a kind for the treatment of method and apparatus of signal transmission and the transmission of video data
Method and system, to solve the problems, such as that channel error code easily occurs for data transmission method in the prior art.
According to an aspect of the invention, there is provided a kind of process of signal transmission method, including:Obtain and represent the every of signal
The piginal encoded data of individual byte;The piginal encoded data is converted into target code data, wherein, the target code number
According to digit be more than the piginal encoded data digit, and in the target code data continuous 0 and continuous 1 digit it is equal
Less than preset value;And according to signal described in the target code data transfer.
Further, the piginal encoded data is converted into the target code data by multiple conversions.
Further, the piginal encoded data is 8 data, is changed the piginal encoded data by multiple conversions
Include for the target code data:The piginal encoded data of each byte is converted into 9 according to the first logic of propositions
Position coded data;9 coded datas of the 1st byte are converted into 10 coded datas according to the second logic of propositions, wherein, it is described
1st byte is to represent the start byte of the signal;And according to 10 coded datas of X byte and 9 volumes of the byte of X+1
Code data, determine 10 coded datas of the byte of X+1, X is positive integer.
Further, first logic of propositions meets following computing:
Enc [0]=d [3];
Enc [1]=(~d [2] &d [1]) | (and 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] is (n+1)th in 8 coded datas of the X byte, and enc [n] is
(n+1)th in 9 coded datas of the X byte ,~logical inversion is represented, & represents logical AND, | represent logic or, institute
The priority for stating logical inversion is higher than the priority of the logical AND, and second logic of propositions is at 9 of the 1st byte
1 or 0 is added in coded data, wherein, the 1 of addition or 0 is the highest order of 10 coded datas of the 1st byte.
Further, according to 10 coded datas of X byte and 9 coded datas of the byte of X+1, determine the X+
10 coded datas of 1 byte include:S11:Obtain the Gao Siwei in 10 coded datas of the X byte and the word of X+1
Low two in 9 coded datas of section;S12:By six coded data combal_ of the Gao Siwei got and low two compositions
Six { t }, wherein, combal_six { t }={ q_outt-1[6], q_outt-1[7], q_outt-1[8], q_outt-1[9], enc
[0], enc [1] }, q_outt-1[6]、q_outt-1[7]、q_outt-1[8] and q_outt-1[9] it is to get last time coding result
It is high four, enc [0] and enc [1] are get 9 codings currently obtained by first logic of propositions low two;
S13:The difference of first byte 1 digit and 0 digit into 10 coded datas of the X byte is calculated, obtains the
One difference;S14:Judge whether the first difference is zero, wherein, if the determination result is YES, then step S15 is performed, if judged result
It is no, then performs step S16;S15:Judge six in six coded data combal_six { t } it is whether equal, its
In, if the determination result is YES, then step S18 is performed, if judged result is no, perform step S19;S16:Calculate the X+
In 9 coded datas of 1 byte 1 digit with 0 digit difference, obtain the second difference, and judge first difference and
Whether second difference is all higher than zero, or whether is respectively less than zero, wherein, if judging first difference and described second
Difference is all higher than zero or respectively less than zero, then performs S17, if judging, first difference and second difference are not all higher than
Zero, and be not respectively less than zero, then perform step S15;S17:Judge six coded data combal_six { t } whether with volume
Code data { 0,0,0,0,1,1 } or { 1,1,1,1,0,0 } are identical, wherein, if judging six coded data combal_
Six { t } is identical with the coded data { 0,0,0,0,1,1 } or { 1,1,1,1,0,0 }, then step S19 is performed, if judging institute
Six coded data combal_six { t } and the coded data { 0,0,0,0,1,1 } is stated to differ, and with the coded number
Also differed according to { 1,1,1,1,0,0 }, then perform step S18;S18:Determine in 10 coded datas of the byte of X+1
10 are 1, the 9th logical inversion of the 9th to the 1st being followed successively by the 1st in 9 coded datas of the byte of X+1;
And S19:Determine the in 10 coded datas of the byte of X+1 the 10th for 0, the 9th to the 1st be followed successively by the X+
The 9th to the 1st in 9 coded datas of 1 byte.
Further, judge six in six coded data combal_six { t } it is whether equal including:To institute
Six progress logic or computings by turn in six coded datas are stated, and judge whether the result after logic by turn or computing is 0,
Wherein, in the case where the result after judging logic by turn or computing is 0, six coded data combal_six are determined
Six in { t } are equal;Or six in six coded datas are carried out with logic and operation by turn, and judge to patrol by turn
Whether collect with the result after computing is 1, wherein, in the case where the result after judging logic and operation by turn is 1, determine institute
Six stated in six coded data combal_six { t } are equal.
Further, the species of the signal is n, and n is more than 2 natural number, wherein, obtain each word for representing signal
The piginal encoded data of section includes:The piginal encoded data for each byte for representing signal Si is obtained successively, wherein, i takes 1 successively
To n, the piginal encoded data is converted into target code data includes:By the described original of each byte of the signal Si
Coded data is converted into the target code data of each byte of the signal Si, is passed according to the target code data
The defeated signal includes:The target code data of each byte of the signal Si are formed into code stream according to byte order
Li;Predetermined interval code is added before the original position of the code stream Li, wherein, the code stream of variety classes signal is added pre-
If space code differs;And the code stream Li after the predetermined interval code is added in transmission.
Further, predetermined interval code is added before the original position of the code stream Li includes:Compare the code stream Li
In 1 digit with 0 digit size;And if compare in the code stream Li 1 digit be more than 0 digit, described
The first predetermined interval code is added before code stream Li original position, if comparing in the code stream Li 1 position of the digit less than 0
Number, then add the second predetermined interval code, if comparing in the code stream Li 1 digit before the original position of the code stream Li
Digit equal to 0, then the first predetermined interval code or described second default is added before the original position of the code stream Li
Space code, wherein, 0 digit is more than 1 digit in the first predetermined interval code, 0 position in the second predetermined interval code
Digit of the number less than 1.
According to another aspect of the invention, there is provided a kind of transmission method of video data, including:At preset data
Reason method carries out data processing to each frame signal in the video data, wherein, the preset data processing method is this
Any process of signal transmission method that invention the above is provided;And send successively described every after carrying out data processing
One frame signal.
According to another aspect of the invention, there is provided a kind of process of signal transmission device, including:Acquiring unit, for obtaining
Take the piginal encoded data for each byte for representing the signal;Converting unit, for the piginal encoded data to be converted to
Target code data, wherein, the digit of the target code data is more than the digit of the piginal encoded data, and the mesh
Continuous 0 and continuous 1 digit is respectively less than preset value in mark coded data;And transmission unit, for according to the target code
Signal described in data transfer.
According to another aspect of the invention, there is provided a kind of Transmission system of video data, including:Data processing equipment,
For carrying out data processing to each frame signal in the video data, wherein, the data processing equipment is in the present invention
State any process of signal transmission device that content is provided;And dispensing device, after sending progress data processing successively
Each frame signal.
The present invention represents the piginal encoded data of each byte of signal by acquisition;Piginal encoded data is converted into mesh
Coded data is marked, wherein, the digit of target code data is more than the digit of piginal encoded data, and connects in target code data
Continuous 0 and continuous 1 digit is respectively less than preset value;And according to target code data transfer signal.Wherein, by by each byte
Piginal encoded data be converted to the target code data of seniority top digit, and in target code data continuous 0 and continuous 1 digit
Control within preset value, realize avoid occurring in signals transmission occupy-place it is longer continuous 0 or continuous 1, and then keep away
Exempt from the channel error code of receiving terminal occurrence frequency deviation or phase-shifts, ensure that receiving terminal can be accurately obtained the clock in code stream
Information, and then the signal that transmitting terminal is transmitted can be accurately identified, solve data transmission method in the prior art and easily send out
The problem of raw channel error code, and then raising signal transmission quality, avoid channel error code can be by continuous method of calibration
And occur transmitting and amplify.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of process of signal transmission method according to embodiments of the present invention;
Fig. 2 is that 9 coded datas are converted into 10 coded datas in the process of signal transmission method of the embodiment of the present invention
Flow chart;
Fig. 3 is the flow chart of the transmission method of video data according to embodiments of the present invention;
Fig. 4 is the schematic diagram of process of signal transmission device according to embodiments of the present invention;And
Fig. 5 is the schematic diagram of the Transmission system of video data according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The embodiments of the invention provide a kind of process of signal transmission method, the signal provided below the embodiment of the present invention
The processing method of transmission is specifically introduced:
Fig. 1 is the flow chart of process of signal transmission method according to embodiments of the present invention, as shown in figure 1, this method includes
Steps S101 to step S103:
S101:Obtain the piginal encoded data for each byte for representing signal
When carrying out signal transmission, to representing that 8 binary system piginal encoded datas of each byte of signal obtain.
S102:Piginal encoded data is converted into target code data
Wherein, the digit of target code data is more than the digit of piginal encoded data, and continuous 0 in target code data
Digit with continuous 1 is respectively less than preset value, and the conversion to piginal encoded data can be divided into multistep progress, to reach target code
Continuous 0 and continuous 1 digit is respectively less than preset value in data, is entered below exemplified by being changed in two steps to piginal encoded data
Row illustrates:
The first step, 8 binary system piginal encoded datas of each byte are converted into 9 volumes according to the first logic of propositions
Code data, the first logic of propositions meet following computing:
Enc [0]=d [3];
Enc [1]=(~d [2] &d [1]) | (and 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] is (n+1)th in 8 coded datas of X byte, and enc [n] is X word
(n+1)th in 9 coded datas of section ,~logical inversion is represented, & represents logical AND, | represent logic or, logical inversion
Priority is higher than the priority of logical AND.
Second step, 9 coded datas are converted into 10 coded datas, first, first according to the second logic of propositions by the 1st byte
9 coded datas be converted to 10 coded datas, wherein, the 1st byte for represent signal start byte, the second logic of propositions
For in 9 coded datas of the 1st byte add 1 or 0, wherein, the 1 of addition or 0 for the 1st byte 10 coded datas most
It is high-order;Then, according to 10 coded datas of X byte and 9 coded datas of the byte of X+1, determine that the 10 of the byte of X+1 are compiled
Code data, X is positive integer, i.e. according to 10 coded datas of the 1st byte and 9 coded datas of the 2nd byte, determines the 2nd byte
10 coded datas, according to 10 coded datas of the 2nd byte and 9 coded datas of the 3rd byte, determine that the 10 of the 3rd byte are compiled
Code data, the like.That is, according to above the 0 of all coded datas and 1 statistical result and current 9 coded datas
0 and 1 number determine in the addition of highest order (the 10th) 1 or 0, while will current 9 through the first logic of propositions coding knot
Fruit carries out all negating or keep constant.Such as current 9 are all negated through the first logic of propositions coding result, then at the 10th
Addition 1, if do not negated, then adds 0.
S103:According to target code data transfer signal.
The process of signal transmission method that the embodiment of the present invention is provided, by the way that the piginal encoded data of each byte is changed
For the target code data of seniority top digit, and in target code data continuous 0 and continuous 1 digit control preset value with
It is interior, realize avoid occurring in signals transmission occupy-place it is longer continuous 0 or continuous 1, and then avoid receiving terminal occurrence frequency
The channel error code of deviation or phase-shifts, ensure that receiving terminal can be accurately obtained the clock information in code stream, and then being capable of essence
The signal that transmitting terminal is transmitted really is identified, data transmission method in the prior art is solved and asking for channel error code easily occurs
Topic, and then raising signal transmission quality, avoid the channel error code from occurring transmitting and put by continuous method of calibration
Greatly.In addition, the process of signal transmission method of the embodiment of the present invention, also with consuming, resource is relatively low, it is smaller to implement difficulty, appearance
The advantages of being easily appreciated and understood by more developers.
Further, Fig. 2 is that 9 coded datas are converted into 10 in the process of signal transmission method of the embodiment of the present invention
The flow chart of coded data, to have exemplified by the 9 of the byte of X+1 coded data to be converted to 10 coded datas of the byte of X+1
Body illustrates, as shown in Fig. 2 according to 10 coded datas of X byte and 9 coded datas of the byte of X+1, determines the word of X+1
10 coded datas of section concretely comprise the following steps:
S11:Obtain low two in 9 coded datas of the Gao Siwei and the byte of X+1 in 10 coded datas of X byte
Position;
S12:By six coded data combal_six { t } of the Gao Siwei got and low two compositions, wherein,
Combal_six { t }={ q_outt-1[6], q_outt-1[7], q_outt-1[8], q_outt-1[9], enc [0], enc [1] }, q_
outt-1[6]、q_outt-1[7]、q_outt-1[8] and q_outt-1[9] it is high four to get, i.e. the height of last time coding result
It four, that is to say high four in 10 coded datas of X byte, enc [0] and enc [1] are low two got, i.e. when
Low two of preceding 9 codings obtained by the first logic of propositions, that is to say low two in 9 coded datas of the byte of X+1
Position;
S13:The difference of the first byte 1 digit and 0 digit into 10 coded datas of X byte is calculated, obtains the
One difference Cnt_acc;
S14:Judge whether the first difference Cnt_acc is zero, wherein, if the determination result is YES, then step S15 is performed, if
Judged result is no, then performs step S16;
S15:Judge six in six coded data combal_six { t } it is whether equal, specifically, if six coding
Six in data combal_six { t } are equal, then combal_six { t }={ 0,0,0,0,0,0 } or combal_six { t }
={ 1,1,1,1,1,1 }, therefore six coded datas in combal_six { t } can be carried out with logical AND by turn or patrolled by turn
Volume or computing come judge six in six coded data combal_six { t } it is whether equal, if in six coded datas
Six progress logic or computings by turn, then judge whether the result after logic by turn or computing is 0, that is, judge | combal_
Whether six==0 sets up, and in the case where the result after judging logic by turn or computing is 0, determines six coded datas
Six in combal_six { t } are equal;If carrying out logic and operation by turn to six in six coded datas, judge
Whether the result after logic and operation is 1 by turn, that is, judges whether &combal_six==1 sets up, and is judging logic by turn
With the result after computing be 1 in the case of, determine six in six coded data combal_six { t } it is equal.If judge
Six gone out in six coded data combal_six { t } are equal, then step S18 are performed, if judging six coded datas
Six inequalities in combal_six { t } are equal, then perform step S19;
S16:The difference of 1 digit and 0 digit in 9 coded datas of the byte of X+1 is calculated, obtains the second difference,
And judge whether the first difference and the second difference are all higher than zero, or whether it is respectively less than zero, it is assumed that 9 codings of the byte of X+1
1 digit is N1 { enc [8 in data:0] }, 0 digit is N0 { enc [8 in 9 coded datas of the byte of X+1:0], then sentence
It is to judge (N1 { enc [8 that whether disconnected first difference and the second difference, which are all higher than zero,:0]}>N0{enc[8:0]})&&(cnt_acc
>0) it is to judge (N1 { enc [8, to judge whether the first difference and the second difference are respectively less than zero:0]}<N0{enc[8:
0]})&&(cnt_acc<0), wherein, if judging, the first difference and the second difference are all higher than zero or respectively less than zero, perform
S17, if judging, the first difference and the second difference are not all higher than zero, and are not respectively less than zero, then 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 } it is identical, that is, judge (combal_six==0b000011) | | (combal_six==0b111100), wherein, if sentencing
Break and six coded data combal_six { t } and coded data { 0,0,0,0,1,1 } or { 1,1,1,1,0,0 } is identical, then hold
Row step S19, if judging, six coded data combal_six { t } differ with coded data { 0,0,0,0,1,1 }, and
Also differed with coded data { 1,1,1,1,0,0 }, then perform step S18;
S18:Determine that the in 10 coded datas of the byte of X+1 the 10th is followed successively by the word of X+1 for 1, the 9th to the 1st
The logical inversion of the 9th to the 1st in 9 coded datas of section, i.e. q_out [9]=1'b1, q_out [8:0]=~enc [8:
0], wherein, q_out [9] is the 10th in 10 coded datas of the byte of X+1, q_out [8:0] 10 for the byte of X+1 are compiled
The 9th to the 1st in code data;
S19:Determine that the in 10 coded datas of the byte of X+1 the 10th is followed successively by the word of X+1 for 0, the 9th to the 1st
The 9th to the 1st in 9 coded datas of section, i.e. q_out [9]=1'b0, q_out [8:0]=enc [8:0].
Wherein, the calculating in step S13 to the first difference Cnt_acc can use cumulative mode to carry out, i.e. determine
After 10 coded datas of the first byte, 1 digit and the difference of 0 digit in first byte are first calculated, is then often determined
Go out 10 coded datas of a byte, be then added to the difference of 1 digit in this byte determined and 0 digit
In the difference once calculated, specifically, it is assumed that Cnt_acc (t-1) is the last difference calculated, then performs step S18
Afterwards, formula Cnt_acc (t)=Cnt_acc (t-1)-N0 { q_out [8 are passed through:0]}+N1{q_out[8:0] }+1'b1 is determined
Second difference, or after step S19 is performed, pass through 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 is provided is realized in code stream continuous 0
And continuous 1 digit is controlled within 5, it is ensured that minimum marginal density, improves the quality of signal transmission.
Further, in the process of signal transmission method that the embodiment of the present invention is provided, the species of signal is a variety of, it is assumed that
Its quantity is n (n is more than 2 natural number), when obtaining target data coding, it is necessary to perform above-mentioned processing to each signal
Method, it is specific as follows:
Above-mentioned acquisition represents that the step of piginal encoded data of each byte of signal includes:Obtain successively and represent signal Si
Each byte piginal encoded data, wherein, i takes 1 to n successively, i.e. to the original coding of each byte of each signal
Data are all obtained.
Above-mentioned the step of piginal encoded data is converted into target code data, includes:By the original of signal Si each byte
Beginning coded data is converted into the target code data of signal Si each byte, i.e. by each byte of each signal
Corresponding conversion is the target designation data of each byte of this signal, and specific conversion method is converted to target code with above-mentioned
The method of data is identical, and here is omitted.
The step of above-mentioned data transfer signal according to target code, includes:First, by the target of signal Si each byte
Coded data forms code stream Li according to byte order, i.e. by the target code data of each byte of the first signal according to word
Section order forms the code stream of the first signal, by the target code data of each byte of second of signal according to byte order group
Into the code stream of second of signal, by that analogy;Secondly, predetermined interval code is added before code stream Li original position, wherein, no
Differed with the predetermined interval code that the code stream of species signal is added;Then, the code stream Li after transmission addition predetermined interval code.
By adding different predetermined interval codes in the code stream of variety classes signal, so that receiving side can be according to interval
Whole code streams that code is sent to sending side are segmented, to identify signal represented in code stream exactly.
Wherein, the embodiments of the invention provide a kind of side that predetermined interval code is added before code stream Li original position
Method, it is specially:
Compare the size of 1 digit and 0 digit in code stream Li;And
If comparing in code stream Li 1 digit of the digit more than 0, it is pre- that first is added before code stream Li original position
If space code, if comparing in code stream Li 1 digit of the digit less than 0, second is added before code stream Li original position
Predetermined interval code, if compare in code stream Li 1 digit be equal to 0 digit, the is added before code stream Li original position
One predetermined interval code or the second predetermined interval code, wherein, 0 digit is more than 1 digit in the first predetermined interval code, and second is default
0 digit is less than 1 digit in space code.
In the case of the digit for comparing in code stream 1 is more than 0 digit, the first predetermined interval code of addition more 0 is tieed up
Hold 1 digit it is as equal as possible with 0 digit.In the case of the digit for comparing in code stream 1 is less than 0 digit, addition more 1
The second predetermined interval code maintain 1 digit as equal as possible with 0 digit.In the case of the two is equal, addition more 0
First predetermined interval or the second predetermined interval code of addition more 1 can be with.
The process of signal transmission method of the embodiment of the present invention provides following four groups of predetermined interval codes, can be used for four kinds
Signal below type is transmitted, and as shown in table 1, K1 represents first group of predetermined interval code, and K2 represents second group of predetermined interval
Code, K3 represent the 3rd group of predetermined interval code, and K4 represents the 4th group of predetermined interval code, and secondary series represents a corresponding group space code in table 1
In the first predetermined interval code, the 3rd row represent the second predetermined interval code in corresponding group space code in table 1:
Table 1
First predetermined interval code | Second predetermined interval code | |
K1 | 0b1000000101 | 0b0111111010 |
K2 | 0b1000000100 | 0b0111111011 |
K3 | 0b1000000110 | 0b0111111001 |
K4 | 0b1000000111 | 0b0111111000 |
The embodiment of the present invention additionally provides a kind of transmission method of video data, and Fig. 3 is according to embodiments of the present invention regards
The transmission method of frequency evidence, as shown in figure 3, the transmission method of the video data of the embodiment includes step S301 and step
S302。
S301:Data processing is carried out to each frame signal in video data using preset data processing method, wherein, in advance
If any data processing method that data processing method the above of the embodiment of the present invention is provided.
S302:Each frame signal after carrying out data processing is sent successively.
The transmission method of the video data of the embodiment of the present invention, at by each frame signal according to above-mentioned signal transmission
Reason method is handled, realize avoid occurring in signals transmission occupy-place it is longer continuous 0 or continuous 1, and then avoid connecing
The channel error code of receiving end occurrence frequency deviation or phase-shifts, ensure the clock letter that receiving terminal can be accurately obtained in code stream
Breath, and then the signal that transmitting terminal is transmitted can be accurately identified, solve data transmission method in the prior art and easily occur
The problem of channel error code, and then raising signal transmission quality, avoid channel error code can by continuous method of calibration and
Appearance is transmitted and amplified.
The embodiment of the present invention additionally provides a kind of signal transmitting apparatus, and Fig. 4 is signal transmission according to embodiments of the present invention
The schematic diagram of device, as shown in figure 4, the signal transmitting apparatus of the embodiment includes acquiring unit 41, converting unit 42 and transmission
Unit 43, specifically:
Acquiring unit 41 is used for the piginal encoded data for obtaining each byte for representing signal, that is, is used to carry out signal biography
When defeated, to representing that 8 binary system piginal encoded datas of each byte of signal obtain.
Converting unit 42 is used to piginal encoded data being converted to target code data, wherein, the position of target code data
Number is more than the digit of piginal encoded data, and continuous 0 and continuous 1 digit is respectively less than preset value in target code data, turns
Change unit 42 piginal encoded data is converted to target code data method it is identical with method in above-mentioned steps S102, herein not
Repeat again.
Transmission unit 43 is used for according to target code data transfer signal, specifically, by 10 coded numbers of each byte
Code stream is formed according to according to the sequencing of byte, and suitable space code is added after code stream, obtains the code stream for transmitting, its
In, specific processing method is identical with above-mentioned steps S103, and here is omitted.
The process of signal transmission device that the embodiment of the present invention is provided, by the way that the piginal encoded data of each byte is changed
For the target code data of seniority top digit, and in target code data continuous 0 and continuous 1 digit control preset value with
It is interior, realize avoid occurring in signals transmission occupy-place it is longer continuous 0 or continuous 1, and then avoid receiving terminal occurrence frequency
The channel error code of deviation or phase-shifts, ensure that receiving terminal can be accurately obtained the clock information in code stream, and then being capable of essence
The signal that transmitting terminal is transmitted really is identified, data transmission method in the prior art is solved and asking for channel error code easily occurs
Topic, and then raising signal transmission quality, avoid the channel error code from occurring transmitting and put by continuous method of calibration
Greatly.
The embodiment of the present invention additionally provides a kind of Transmission system of video data, and Fig. 5 is according to embodiments of the present invention regards
The schematic diagram of the Transmission system of frequency evidence, as shown in figure 5, the Transmission system of the video data of the embodiment fills including data processing
51 and dispensing device 52 are put, specifically:
Data processing equipment 51 is used to carry out data processing to each frame signal in video data, wherein, data processing
The process of signal transmission device that device is provided by the above of the embodiment of the present invention.
Dispensing device 52 is used to send each frame signal after carrying out data processing successively.
The Transmission system of the video data of the embodiment of the present invention, at by each frame signal according to above-mentioned signal transmission
Reason method is handled, realize avoid occurring in signals transmission occupy-place it is longer continuous 0 or continuous 1, and then avoid connecing
The channel error code of receiving end occurrence frequency deviation or phase-shifts, ensure the clock letter that receiving terminal can be accurately obtained in code stream
Breath, and then the signal that transmitting terminal is transmitted can be accurately identified, solve data transmission method in the prior art and easily occur
The problem of channel error code, and then raising signal transmission quality, avoid channel error code can by continuous method of calibration and
Appearance is transmitted and amplified.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (9)
- A kind of 1. process of signal transmission method, it is characterised in that including:Obtain the piginal encoded data for each byte for representing signal;The piginal encoded data is converted into target code data, wherein, by multiple conversions by the piginal encoded data The target code data are converted to, the digit of the target code data is more than the digit of the piginal encoded data, and Continuous 0 and continuous 1 digit is respectively less than preset value in the target code data;AndAccording to signal described in the target code data transfer;Wherein, the piginal encoded data is 8 data, and the piginal encoded data is converted into the mesh by multiple conversions Mark coded data includes:The piginal encoded data of each byte is converted into 9 coded numbers according to the first logic of propositions According to;9 coded datas of the 1st byte are converted into 10 coded datas according to the second logic of propositions, wherein, the 1st byte To represent the start byte of the signal;And according to 10 coded datas of X byte and 9 coded datas of the byte of X+1, 10 coded datas of the byte of X+1 are determined, X is positive integer.
- 2. process of signal transmission method according to claim 1, it is characterised in thatFirst 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] is (n+1)th in 8 coded datas of the X byte, and enc [n] is described (n+1)th in 9 coded datas of X byte,~Logical inversion is represented, & represents logical AND, | represent logic or, described patrol The priority that the priority negated is higher than the logical AND is collected,Second logic of propositions is that 1 or 0 is added in 9 coded datas of the 1st byte, wherein, the 1 of addition or 0 is The highest order of 10 coded datas of the 1st byte.
- 3. process of signal transmission method according to claim 1 or 2, it is characterised in that according to 10 coded numbers of X byte According to 9 coded datas with the byte of X+1, determining 10 coded datas of the byte of X+1 includes:S11:In 9 coded datas for obtaining the Gao Siwei and the byte of X+1 in 10 coded datas of the X byte Low two;S12:By six coded data combal_six { t } of the Gao Siwei got and low two compositions, wherein, combal_six { t }={ q_outt-1[6], q_outt-1[7], q_outt-1[8], q_outt-1[9], enc [0], enc [1] }, q_outt-1[6]、 q_outt-1[7]、q_outt-1[8] and q_outt-1[9] it is to get the high four of last time coding result, enc [0] and enc [1] To get low two of 9 codings currently obtained by first logic of propositions;S13:The difference of the 1st byte 1 digit and 0 digit into 10 coded datas of the X byte is calculated, is obtained First difference;S14:Judge whether the first difference is zero, wherein, if the determination result is YES, then step S15 is performed, if judged result is It is no, then perform step S16;S15:Judge six in six coded data combal_six { t } it is whether equal, wherein, if judged result is It is then to perform step S18, if judged result is no, performs step S19;S16:The difference of 1 digit and 0 digit in 9 coded datas of the byte of X+1 is calculated, obtains the second difference, And judge whether first difference and second difference are all higher than zero, or whether zero is respectively less than, wherein, if judging institute State the first difference and second difference be all higher than zero or respectively less than zero, then perform S17, if judge first difference and Second difference is not all higher than zero, and is not respectively less than zero, then performs 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 } it is identical, wherein, if judge six coded data combal_six { t } and the coded data 0,0,0,0, 1,1 } or { 1,1,1,1,0,0 } is identical, then perform step S19, if judge six coded data combal_six { t } with The coded data { 0,0,0,0,1,1 } differs, and is also differed with the coded data { 1,1,1,1,0,0 }, then holds Row step S18;S18:Determine the in 10 coded datas of the byte of X+1 the 10th for 1, the 9th to the 1st be followed successively by the X+ The logical inversion of the 9th to the 1st in 9 coded datas of 1 byte;AndS19:Determine the in 10 coded datas of the byte of X+1 the 10th for 0, the 9th to the 1st be followed successively by the X+ The 9th to the 1st in 9 coded datas of 1 byte.
- 4. process of signal transmission method according to claim 3, it is characterised in that judge six coded datas Six in combal_six { t } it is whether equal including:To six progress logic or computings by turn in six coded datas, and judge the result after logic by turn or computing Whether it is 0, wherein, in the case where the result after judging logic by turn or computing is 0, determine six coded datas Six in combal_six { t } are equal;OrSix in six coded datas are carried out with logic and operation by turn, and judges the result after logic and operation by turn Whether it is 1, wherein, in the case where the result after judging logic and operation by turn is 1, determine six coded datas Six in combal_six { t } are equal.
- 5. process of signal transmission method according to claim 1, it is characterised in that the species of the signal is n, n be 2 with On natural number, wherein,Obtaining the piginal encoded data for each byte for representing signal includes:The original for each byte for representing signal Si is obtained successively Beginning coded data, wherein, i takes 1 to n successively,The piginal encoded data is converted into target code data includes:By the described original of each byte of the signal Si Coded data is converted into the target code data of each byte of the signal Si,Include according to signal described in the target code data transfer:The target code data of each byte of the signal Si are formed into code stream Li according to byte order;Predetermined interval code is added before the original position of the code stream Li, wherein, what the code stream of variety classes signal was added Predetermined interval code differs;AndThe code stream Li after the predetermined interval code is added in transmission.
- 6. process of signal transmission method according to claim 5, it is characterised in that the code stream Li original position it Preceding addition predetermined interval code includes:Compare the size of 1 digit and 0 digit in the code stream Li;AndIf compare in the code stream Li 1 digit be more than 0 digit, the is added before the original position of the code stream Li One predetermined interval code, if in the code stream Li 1 digit of the digit less than 0 is compared, in the original position of the code stream Li The second predetermined interval code is added before, if in the code stream Li 1 digit of the digit equal to 0 is compared, in the code stream Li Original position before add the first predetermined interval code or the second predetermined interval code, wherein, between described first is default Every in code 0 digit of the digit more than 1, the second predetermined interval code 0 digit of the digit less than 1.
- A kind of 7. transmission method of video data, it is characterised in that including:Data processing is carried out to each frame signal in the video data using preset data processing method, wherein, it is described pre- If data processing method is the process of signal transmission method any one of claim 1 to 6;AndEach frame signal after carrying out data processing is sent successively.
- A kind of 8. process of signal transmission device, it is characterised in that including:Acquiring unit, for obtaining the piginal encoded data for each byte for representing the signal;Converting unit, for the piginal encoded data to be converted into target code data, wherein, by multiple conversions by described in Piginal encoded data is converted to the target code data, and the digit of the target code data is more than the piginal encoded data Digit, and continuous 0 and continuous 1 digit is respectively less than preset value in the target code data, wherein, the original coding Data are 8 data, and the piginal encoded data is converted into the target code data by multiple conversions includes:According to The piginal encoded data of each byte is converted into 9 coded datas by one logic of propositions;Will 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 to represent the banner word of the signal Section;And according to 10 coded datas of X byte and 9 coded datas of the byte of X+1, determine the 10 of the byte of X+1 Coded data, X are positive integer;AndTransmission unit, for according to signal described in the target code data transfer.
- A kind of 9. Transmission system of video data, it is characterised in that including:Data processing equipment, for carrying out data processing to each frame signal in the video data, wherein, at the data It is the process of signal transmission device described in claim 8 to manage device;AndDispensing device, for sending each frame signal after carrying out 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 CN104052577A (en) | 2014-09-17 |
CN104052577B true 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) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106626828B (en) * | 2016-12-30 | 2019-05-24 | 北京美科艺数码科技发展有限公司 | A kind of ink-jet printer method for transmitting signals |
CN108694918B (en) * | 2017-06-09 | 2021-09-28 | 京东方科技集团股份有限公司 | Encoding method and device, decoding method and device and display device |
CN108694917B (en) | 2017-06-09 | 2021-10-22 | 京东方科技集团股份有限公司 | Data transmission method, assembly and display device |
CN110474709B (en) * | 2018-05-11 | 2021-11-05 | Tcl华星光电技术有限公司 | Encoding method, apparatus and readable storage medium |
CN110474711B (en) * | 2018-05-11 | 2021-11-09 | Tcl华星光电技术有限公司 | Encoding method, apparatus and readable storage medium |
CN109165001B (en) * | 2018-08-24 | 2020-07-10 | 京东方科技集团股份有限公司 | Encoding method, device and display device |
CN109525372A (en) * | 2018-12-24 | 2019-03-26 | 深圳市华星光电技术有限公司 | Terminal data transmission method, apparatus and storage medium |
CN110086575B (en) * | 2019-05-06 | 2021-10-08 | Tcl华星光电技术有限公司 | Encoding method, decoding method, related device and storage medium |
CN111368508B (en) * | 2020-03-03 | 2024-04-09 | 深信服科技股份有限公司 | Data processing method, device, equipment and medium |
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104052577A (en) | 2014-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104052577B (en) | The treating method and apparatus of signal transmission and the transmission method and system of video data | |
CN101359981B (en) | Method, apparatus and system for data packet redundant encoding and decoding | |
CN116506073B (en) | Industrial computer platform data rapid transmission method and system | |
CN104199927A (en) | Data processing method and device | |
US11178212B2 (en) | Compressing and transmitting structured information | |
CN110874625B (en) | Data processing method and device | |
CN110086575A (en) | Coding method, coding/decoding method, relevant apparatus and storage medium | |
CN108777606B (en) | Decoding method, apparatus and readable storage medium | |
CN108847916B (en) | Encoding method, apparatus and readable storage medium | |
CN108768587B (en) | Encoding method, apparatus and readable storage medium | |
CN110474711B (en) | Encoding method, apparatus and readable storage medium | |
CN110474709B (en) | Encoding method, apparatus and readable storage medium | |
CN111209740A (en) | Text model training method, text error correction method, electronic device and storage medium | |
CN101702639A (en) | Check value calculation method and device of cyclic redundancy check | |
CN103036641A (en) | Method and system of data exchange and deserialization method | |
CN101783953A (en) | JPEG-LS run length coding hardware implementation method | |
CN104065460A (en) | Encoding method and device based on binary tree | |
CN110113660B (en) | Method, device, terminal and storage medium for transcoding time length estimation | |
CN101442380A (en) | Method and apparatus for testing error rate based on high speed serial interface encoded mode | |
CN106992786B (en) | Baseband data compression method, device and system | |
CN106656201A (en) | Compression algorithm based on amplitude-frequency characteristics of sampled data | |
CN114339252B (en) | Data compression method and device | |
US9872035B2 (en) | System and method for transcoding data | |
CN116863949A (en) | Communication receiving method and device thereof | |
CN104442054A (en) | Two-dimension code printing method and device based on mainframe platform |
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 |