CN110086575A - Coding method, coding/decoding method, relevant apparatus and storage medium - Google Patents

Coding method, coding/decoding method, relevant apparatus and storage medium Download PDF

Info

Publication number
CN110086575A
CN110086575A CN201910370353.3A CN201910370353A CN110086575A CN 110086575 A CN110086575 A CN 110086575A CN 201910370353 A CN201910370353 A CN 201910370353A CN 110086575 A CN110086575 A CN 110086575A
Authority
CN
China
Prior art keywords
bit stream
value
bit
coding
obtains
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910370353.3A
Other languages
Chinese (zh)
Other versions
CN110086575B (en
Inventor
王拂依
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN201910370353.3A priority Critical patent/CN110086575B/en
Publication of CN110086575A publication Critical patent/CN110086575A/en
Application granted granted Critical
Publication of CN110086575B publication Critical patent/CN110086575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0072Error control for data other than payload data, e.g. control data

Abstract

The embodiment of the invention discloses a kind of coding method, coding/decoding method, relevant apparatus and storage medium, coding method includes: the first bit stream for obtaining piginal encoded data;Preset logical operation is carried out according to the first bit stream, obtains the second bit stream, the digit of second bit stream is more than the digit of first bit stream;Judge whether last two logical values are identical in the second bit stream, if they are the same, the logical value of at least one of last two positions is carried out to negate processing, obtains third bit stream;It is inserted into the third bit stream first place as flag bit after target position in third bit stream is negated, obtains purpose coded data.The embodiment of the present invention solves the problems, such as that information occurs during transmission without code, to improve signal transmission quality.

Description

Coding method, coding/decoding method, relevant apparatus and storage medium
Technical field
The present invention relates to coding techniques fields, and in particular to a kind of coding method, coding/decoding method, relevant apparatus and storage are situated between Matter.
Background technique
Digital signal encoding technology is intended to make Binary Zero/1 digital data converting at certain polarity, amplitude, bit speed Rate jumps the square-wave waveform of rule.For signal during serial transmission, it includes clock that the data of transmission, which can be encoded into, The code stream of frequency component, allows receiving end to extract clock synchronization information from code stream, and clock synchronization information can guarantee to connect Receiving end regenerates initial data according to correct timing from the signal received, however signal is continuous 0 in transmission process Perhaps receiving end when data are restored always is easy to that phase-shifts or frequency departure can occur when continuous 1 number is excessive, This mistake is referred to as error code.
Signal is easy to happen error code problem in transmission process in available data transmission technology, and so far, there has been no have The solution of effect.
Summary of the invention
The embodiment of the present invention provides a kind of coding method, coding/decoding method, relevant apparatus and storage medium, solves information and exists The error code probability occurred during transmission, to improve signal transmission quality.
To solve the above problems, stating coding method includes: in a first aspect, the application provides a kind of coding method
Obtain the first bit stream of piginal encoded data;
Preset logical operation is carried out according to first bit stream, obtains the second bit stream, second bit stream Digit is more than the digit of first bit stream;
Judge whether last two logical values are identical in second bit stream, it if they are the same, will be in described last two The logical value of at least one carry out negating processing, obtain third bit stream;
It is inserted into the third bit stream first place as flag bit after target position in the third bit stream is negated, is obtained Purpose coded data.
Further, the coding method further include:
When two logical values last in second bit stream are not identical, it is inserted into the target position as normal bit It is the first to second bit stream, obtain purpose coded data.
Further, first bit stream is 8 data, and second bit stream is 10 data, described according to institute It states the first bit stream and carries out preset logical operation, obtain the second bit stream, comprising:
First of second bit stream is assigned a value of by the 4th of first bit stream;
First of first bit stream is assigned a value of the second of second bit stream;
The second of first bit stream is assigned a value of to the third position of second bit stream;
The third position of first bit stream is assigned a value of the 4th of second bit stream;
The 5th of second bit stream is assigned a value of by the 4th of first bit stream;
After negating to the 4th of first bit stream, it is assigned a value of the 6th of second bit stream;
The 7th of second bit stream is assigned a value of by the 5th of first bit stream;
The 8th of second bit stream is assigned a value of by the 6th of first bit stream;
The 9th of second bit stream is assigned a value of by the 7th of first bit stream;
The tenth of second bit stream is assigned a value of by the 8th of first bit stream.
It is further, described to judge whether last two logical values are identical in second bit stream, comprising:
Logic NAND operation is carried out to last two logical values, obtains the first operation result;
Logic or operation are carried out to last two logical values, obtain the second operation result;
Logic and operation is carried out to first operation result and the second operation result, obtains third operation result;
When the third operation result is 1, the logical value of continuous two default positions is not identical, when the third When operation result is 0, the logical value of continuous two default positions is identical.
Second aspect, the application provide a kind of coding/decoding method, which includes:
Obtain corresponding first bit stream of original data to be decoded;
Obtain the zone bit information in first bit stream;
When the value of flag bit value negated for target position in first bit stream, described first is obtained The default position information of processing is negated when encoding in bit stream;
It carries out negating processing to position is preset in first bit stream, obtains the second bit stream;
Further, the coding/decoding method further include:
Preset logical operation is carried out according to second bit stream and removes the flag bit, obtains decoding data, institute The digit for stating decoding data is less than the digit of second bit stream.
Further, the coding/decoding method further include:
When the value of the flag bit is the value of target position in first bit stream, according to first bit stream It carries out preset logical operation and removes the flag bit, obtain decoding data.
The third aspect, the application provide a kind of code device, and the code device includes:
Acquiring unit, for obtaining the first bit stream of piginal encoded data;
Logical unit, for obtaining the second bit stream according to the preset logical operation of first bit stream progress, The digit of second bit stream is more than the digit of first bit stream;
Coding unit, for judging whether last two logical values are identical in second bit stream, if they are the same, by institute The logical value for stating at least one of last two positions carries out negating processing, obtains third bit stream;By the third bit stream Middle target position is used as flag bit to be inserted into the third bit stream first place after negating, obtain purpose coded data.
Fourth aspect, the application provide a kind of decoding apparatus, and the decoding apparatus includes:
First acquisition unit, for obtaining corresponding first bit stream of original data to be decoded;
Second acquisition unit, for obtaining the zone bit information in first bit stream;
Third acquiring unit, for being taken when the value of the flag bit is that target position is negated in first bit stream When value, the default position information that processing is negated when encoding in first bit stream is obtained;
Decoding unit obtains the second bit stream for carrying out negating processing to position default in first bit stream;According to Second bit stream carries out preset logical operation and removes the flag bit, obtains decoding data, the decoding data Digit is more than the digit of second bit stream.
5th aspect, the application provide a kind of storage medium, and the storage medium is stored with a plurality of instruction, and described instruction is suitable It is loaded in processor, to execute the step in coding method described in above-mentioned first aspect, or to execute above-mentioned Step in coding/decoding method described in two aspects
By obtaining the first bit stream of piginal encoded data in the embodiment of the present invention, the first bit stream is carried out preset Logical operation obtains the second bit stream, then by signal judges, negate, be inserted into etc. that processing modes obtain purpose coded data, solves There is the problem of without code during transmission in information of having determined, to improve signal transmission quality.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is one embodiment flow diagram of coding method provided in an embodiment of the present invention;
Fig. 2 is one embodiment structural schematic diagram of coding/decoding method provided in an embodiment of the present invention;
Fig. 3 is one embodiment structural schematic diagram of code device provided in an embodiment of the present invention;
Fig. 4 is one embodiment structural schematic diagram of decoding apparatus provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", " length ", " width ", The instruction such as " thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside" Orientation or positional relationship be based on the orientation or positional relationship shown in the drawings, be merely for convenience of description the present invention and simplification retouch It states, rather than the device or element of indication or suggestion meaning must have a particular orientation, be constructed and operated in a specific orientation, Therefore it is not considered as limiting the invention.In addition, term " first ", " second " are used for description purposes only, and cannot understand For indication or suggestion relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include one or more feature.In the description of the present invention, " more It is a " it is meant that two or more, unless otherwise specifically defined.
In this application, " exemplary " word is used to indicate " being used as example, illustration or explanation ".Described herein as Any embodiment of " exemplary " is not necessarily to be construed as or more advantage more more preferable than other embodiments.In order to appoint this field What technical staff can be realized and use the present invention, gives and is described below.In the following description, it arranges for purposes of explanation Details is gone out.It should be appreciated that those skilled in the art will realize that the case where not using these specific details Under the present invention also may be implemented.In other examples, well known structure and process will not be described in detail, to avoid need not The details wanted makes description of the invention become obscure.Therefore, the present invention be not intended to be limited to shown in embodiment, but with meet The widest scope of principle and feature disclosed in the present application is consistent.
It is, in general, that digital signal encoding technology is intended to make Binary Zero/1 digital data converting at certain polarity, width Degree, bit rate jump the square-wave waveform of rule.During serial transmission, the data of transmission can be encoded into signal Include the code stream of clock frequency component, receiving end is allowed to extract clock synchronization information, clock synchronization information from code stream It can guarantee that receiving end regenerates initial data according to correct timing from the signal received, however signal is in transmission process In continuous 0 perhaps continuous 1 number it is excessive when receiving end be easy to occur when data are restored always phase-shifts or Frequency departure, this mistake are referred to as error code.Signal is easy to happen error code in transmission process and asks in available data transmission technology Topic, so far, there has been no effective solution schemes.
Based on this, the embodiment of the present invention provides a kind of coding method, coding/decoding method, relevant apparatus and storage medium.Once It is described in detail respectively.
Firstly, providing a kind of coding method in the embodiment of the present invention, which includes: to obtain piginal encoded data First bit stream;Preset logical operation is carried out according to first bit stream, obtains the second bit stream, second bit stream Digit be more than first bit stream digit;Judge whether last two logical values are identical in second bit stream, If they are the same, the logical value of at least one of described last two positions is carried out negating processing, obtains third bit stream;It will be described It is inserted into the third bit stream first place as flag bit after target position negates in third bit stream, obtains purpose coded data.
As shown in Figure 1, for one embodiment flow diagram of coding method in the embodiment of the present invention, this method comprises:
101, the first bit stream of piginal encoded data is obtained.
Specifically, the initial data can be the data that transmitting terminal is transferred to receiving end.The initial data is bit manifold Formula, such as when the first bit stream is 8 data, such as 10101010.
102, preset logical operation is carried out according to first bit stream, obtains the second bit stream, second bit The digit of stream is more than the digit of first bit stream.
Wherein, the digit of extra first bit stream of the digit of the second bit stream, such as the second bit stream are 10 data, the One bit stream is 8 data, and the digit to the first bit stream and the actual number of bits of the second bit stream are not specifically limited here.
103, judge whether last two logical values are identical in second bit stream, if they are the same, execute step 104, If not identical, 106 are thened follow the steps.
104, the logical value of at least one of described last two positions is carried out negating processing, obtains third bit stream.
Wherein, when last two logical values are identical in the second bit stream, by least one of described last two positions Logical value carry out negating processing, obtain third bit stream.Such as second bit stream be 10 data 1010101011 when, by it Negate that obtain third bit stream after processing be 1010101010.Or second bit stream be 10 data 0101010111 When, negate that obtain third bit stream after processing be 0101010101.
105, it is inserted into the third bit stream first place as flag bit after negating target position in the third bit stream, Obtain purpose coded data.
106, it is inserted into the second bit stream first place using the target position as normal bit, obtains purpose coded data.
By obtaining the first bit stream of piginal encoded data in the embodiment of the present invention, the first bit stream is carried out preset Logical operation obtains the second bit stream, then by signal judges, negate, be inserted into etc. that processing modes obtain purpose coded data, solves There is the problem of without code during transmission in information of having determined, to improve signal transmission quality.
In some embodiments of the invention, first bit stream is 8 data, and second bit stream is 10 digits According to, it is described that preset logical operation is carried out according to first bit stream, obtain the second bit stream, comprising: compare described first The 4th of spy's stream is assigned a value of first of second bit stream;Described is assigned a value of by first of first bit stream The second of two bit streams;The second of first bit stream is assigned a value of to the third position of second bit stream;It will be described The third position of first bit stream is assigned a value of the 4th of second bit stream;The 4th of first bit stream is assigned a value of The 5th of second bit stream;After negating to the 4th of first bit stream, it is assigned a value of second bit stream 6th;The 7th of second bit stream is assigned a value of by the 5th of first bit stream;By first bit stream The 6th be assigned a value of the 8th of second bit stream;Second ratio is assigned a value of by the 7th of first bit stream The 9th of spy's stream;The tenth of second bit stream is assigned a value of by the 8th of first bit stream.
Below can be for 8 data with the first bit stream, the second data of bit stream position 10, in conjunction with a specific embodiment pair Preset logical operation is carried out according to the first bit stream, the second bit stream is obtained and is described in detail.
First to the first bit stream by following logical operation indirect assignment, by 8bit data encoding at 10bit data, tool Body encoding mechanism is as follows:
Bn [0]=bm [3];(being assigned a value of first of the second bit stream for the 4th of the first bit stream)
Bn [1]=bm [0];(being assigned a value of the second of the second bit stream for first of the first bit stream)
Bn [2]=bm [1];(second of the first bit stream is assigned a value of to the third position of the second bit stream)
Bn [3]=bm [2];(the third position of the first bit stream is assigned a value of the 4th of the second bit stream)
Bn [4]=bm [3];(being assigned a value of the 5th of the second bit stream for the 4th of the first bit stream)
Bn [5]=~bm [3];(after negating to the 4th of the first bit stream, being assigned a value of the 6th of the second bit stream)
Bn [6]=bm [4];(being assigned a value of the 7th of the second bit stream for the 5th of the first bit stream)
Bn [7]=bm [5];(being assigned a value of the 8th of the second bit stream for the 6th of the first bit stream)
Bn [8]=bm [6];(being assigned a value of the 9th of the second bit stream for the 7th of the first bit stream)
Bn [9]=bm [7];(being assigned a value of the tenth of the second bit stream for the 8th of the first bit stream)
Wherein, bm [0~7] is original 8bit coded data, i.e. the first bit stream, bn [0~9] is the 10bit after conversion Coded data, i.e., the second bit stream being converted to by the first bit stream, a certain position are gone after negating to indicate the negated value of this, Such as first negate as~bm [0], indicates first negated value.
In the present invention when it is implemented, judging in second bit stream that last two are patrolled described in above-mentioned steps 103 It whether identical collects value, may further include: logic NAND operation being carried out to last two values, obtains the first operation As a result;Logic or operation are carried out to last two values, obtain the second operation result;To first operation result and Second operation result carries out logic and operation, obtains third operation result;It is described last when the third operation result is 1 Two logical values are not identical, and when the third operation result is 0, the logical value of continuous two default positions is identical.
Specifically, being below that 10 data instances are described in detail with the second bit stream.Assuming that the second bit stream is bn [0~9], the 9th in last two logical values the second bit stream of whether identical specific judgement in the second bit stream described above Whether position and the tenth logical value are identical, can use following logical expression:
AND (NAND (bn [8~9]), OR (bn [8~9])) (1);
When the 9th and the tenth logical value in the second bit stream described above is 1 or 0, then logical expression The result of formula (1) is 0, then means that the 9th of the second bit stream is identical with the tenth logical value, then negate to the tenth, then It is inserted into flag bit;When the 9th and the tenth logical value in the second bit stream described above is respectively 1 and 0, then logic The result of expression formula (1) is 1, meets encoding quality level, is inserted directly into flag bit.
It is corresponding on coding method basis in order to more preferably implement coding method in the embodiment of the present invention, such as Fig. 2 institute Show, a kind of coding/decoding method is also provided in the embodiment of the present invention, which includes:
201, corresponding first bit stream of original data to be decoded is obtained;
Specifically, the initial data can be the data that transmitting terminal is transferred to receiving end.The original data to be decoded be than Special manifold formula, such as when the first bit stream is 8 data, such as 10101010.
202, the zone bit information in first bit stream is obtained;
Wherein, zone bit information can be as described in coding method " 0 " or " 1 " value.
203, when the value of flag bit value negated for target position in first bit stream, described in acquisition The default position information of processing is negated when encoding in the first bit stream;
Specifically, last two bn [8~9] of such as coding method kind are respectively 11, the first ratio of corresponding decoding data Spy's stream is 10 (last position negates processing), and in the first bit stream, then the default position is last 0.
204, position default in first bit stream is carried out negating processing, obtains the second bit stream;
It carries out negating processing specifically, presetting position in the first bit stream in coding/decoding method, the second bit stream can be obtained, It then in the first bit stream of corresponding decoding data is that 10 (last position takes in coding method in step 203 Inverse processing), in the first bit stream, then the default position is last 0, which is negated processing, and reverting to " 1 " can be obtained the Two bit streams.
205, preset logical operation is carried out according to second bit stream and removes the flag bit, obtain solution yardage According to the digit of the decoding data is less than the digit of second bit stream.
In the embodiment of the present invention, above-mentioned coding staff can be used by carrying out preset logical operation according to second bit stream The logical operation side that " to carry out preset logical operation according to the first bit stream, obtain the second bit stream " in method embodiment opposite Formula is specifically not described in detail herein.
In addition, can be and removing according to the preset logical operation of second bit stream progress in the embodiment of the present invention It is carried out before the flag bit, is also possible to first remove the flag bit, carry out preset patrol further according to second bit stream Operation is collected, is not construed as limiting herein, however, how to carry out logical operation, flag bit is not involved in logical operation.
By the way that the first bit stream of raw decoded data is converted into decoding data in the embodiment of the present invention, the is obtained first Zone bit information in one bit stream;Judged again by flag bit, when the value of flag bit is that target position takes in the first bit stream When value after anti-, the default position information that processing is negated when encoding in the first bit stream is obtained;To position default in the first bit stream It carries out negating processing, obtains the second bit stream;Preset logical operation is carried out according to the second bit stream and removes the flag bit, Obtain decoding data.It is corresponding with coding method, it solves the problems, such as that signal is easy to happen error code in transmission process, improves solution The reliability of data after code, is transmitted convenient for signal.
Further, the coding/decoding method can also include:
When the value of the flag bit is the value of target position in first bit stream, according to first bit stream It carries out preset logical operation and removes the flag bit, obtain decoding data.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to other embodiments, such as the part for not having to be described in detail in coding/decoding method, may refer to Text is directed to the detailed description of coding method embodiment, and details are not described herein again.
It is corresponding on coding method basis in order to more preferably implement coding method in the embodiment of the present invention, such as Fig. 3 institute Show, a kind of code device is also provided in the embodiment of the present invention, which includes:
Acquiring unit 301, for obtaining the first bit stream of piginal encoded data;
Logical unit 302 obtains the second bit for carrying out preset logical operation according to first bit stream Stream, the digit of second bit stream are more than the digit of first bit stream;
Coding unit 303, for judging whether last two logical values are identical in second bit stream, if they are the same, The logical value of at least one of described last two positions is carried out to negate processing, obtains third bit stream;By the third ratio It is inserted into the third bit stream first place as flag bit after target position negates in spy's stream, obtains purpose coded data.
Further, the coding unit 303 is also used to: when two logical values last in second bit stream are different When, it is inserted into the second bit stream first place using the target position as flag bit, obtains coded data.
Further, first bit stream is 8 data, and second bit stream is 10 data, the logic fortune Unit 302 is calculated to be specifically used for:
First of second bit stream is assigned a value of by the 4th of first bit stream;
First of first bit stream is assigned a value of the second of second bit stream;
The second of first bit stream is assigned a value of to the third position of second bit stream;
The third position of first bit stream is assigned a value of the 4th of second bit stream;
The 5th of second bit stream is assigned a value of by the 4th of first bit stream;
After negating to the 4th of first bit stream, it is assigned a value of the 6th of second bit stream;
The 7th of second bit stream is assigned a value of by the 5th of first bit stream;
The 8th of second bit stream is assigned a value of by the 6th of first bit stream;
The 9th of second bit stream is assigned a value of by the 7th of first bit stream;
The tenth of second bit stream is assigned a value of by the 8th of first bit stream.
Further, the coding unit 303 is specifically used for:
Logic NAND operation is carried out to the value in continuous multiple default positions, obtains the first operation result;
Logic or operation are carried out to last two logical values, obtain the second operation result;
Logic and operation is carried out to first operation result and the second operation result, obtains third operation result;
When the third operation result is 1, the logical value of continuous two default positions is not identical, when the third When operation result is 0, the logical value of continuous two default positions is identical.
What code device provided in the embodiment of the present invention solves the problems, such as that signal is easy to happen error code in transmission process, mentions The reliability of high coded data is transmitted convenient for signal.
It is corresponding on coding/decoding method basis in order to more preferably implement coding/decoding method in the embodiment of the present invention, such as Fig. 4 institute Show, a kind of decoding apparatus is also provided in the embodiment of the present invention, which includes:
First acquisition unit 401, for obtaining corresponding first bit stream of original data to be decoded;
Second acquisition unit 402, for obtaining the zone bit information in first bit stream;
Third acquiring unit 403, after being negated for the value when the flag bit for target position in first bit stream Value when, obtain the default position information that processing is negated when encoding in first bit stream;
Decoding unit 404 obtains the second bit stream for carrying out negating processing to position default in first bit stream; Preset logical operation is carried out according to second bit stream and removes the flag bit, obtains decoding data, the solution yardage According to digit be more than second bit stream digit.
Further, the decoding unit 404 is also used to: when the value of the flag bit is mesh in first bit stream When the value of mark, preset logical operation is carried out according to first bit stream and removes the flag bit, obtains solution yardage According to.
What decoding apparatus provided in the embodiment of the present invention solves the problems, such as that signal is easy to happen error code in transmission process, The reliability of decoded data is improved, is transmitted convenient for signal.
The application also provides a kind of storage medium, and the storage medium is stored with a plurality of instruction, and described instruction is suitable for processing Device is loaded, to execute the step in any of the above-described coding method embodiment, or to execute any coding/decoding method embodiment In step.
When it is implemented, above each unit or structure can be used as independent entity to realize, can also carry out any Combination, is realized as same or several entities, the method that the specific implementation of above each unit or structure can be found in front Embodiment, details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to other embodiments, details are not described herein again.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Be provided for the embodiments of the invention above a kind of coding method, coding/decoding method, relevant apparatus and storage medium into It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to According to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification It should not be construed as limiting the invention.

Claims (10)

1. a kind of coding method, which is characterized in that the coding method includes:
Obtain the first bit stream of piginal encoded data;
Preset logical operation is carried out according to first bit stream, obtains the second bit stream, the digit of second bit stream More than the digit of first bit stream;
Judge whether last two logical values identical in second bit stream, if they are the same, by described last two extremely The logical value of a few position carries out negating processing, obtains third bit stream;
It is inserted into the third bit stream first place as flag bit after target position in the third bit stream is negated, obtains purpose Coded data.
2. coding method according to claim 1, which is characterized in that the coding method further include:
When two logical values last in second bit stream are not identical, institute is inserted into using the target position as normal bit The second bit stream first place is stated, purpose coded data is obtained.
3. coding method according to claim 1, which is characterized in that first bit stream be 8 data, described second Bit stream is 10 data, described to carry out preset logical operation according to first bit stream, obtains the second bit stream, is wrapped It includes:
First of second bit stream is assigned a value of by the 4th of first bit stream;
First of first bit stream is assigned a value of the second of second bit stream;
The second of first bit stream is assigned a value of to the third position of second bit stream;
The third position of first bit stream is assigned a value of the 4th of second bit stream;
The 5th of second bit stream is assigned a value of by the 4th of first bit stream;
After negating to the 4th of first bit stream, it is assigned a value of the 6th of second bit stream;
The 7th of second bit stream is assigned a value of by the 5th of first bit stream;
The 8th of second bit stream is assigned a value of by the 6th of first bit stream;
The 9th of second bit stream is assigned a value of by the 7th of first bit stream;
The tenth of second bit stream is assigned a value of by the 8th of first bit stream.
4. coding method according to claim 1, which is characterized in that last two in judgement second bit stream Logical value it is whether identical, comprising:
Logic NAND operation is carried out to last two logical values, obtains the first operation result;
Logic or operation are carried out to last two logical values, obtain the second operation result;
Logic and operation is carried out to first operation result and the second operation result, obtains third operation result;
When the third operation result is 1, the logical value of continuous two default positions is not identical, when the third operation When being as a result 0, the logical value of continuous two default positions is identical.
5. a kind of coding/decoding method, which is characterized in that the coding/decoding method includes:
Obtain corresponding first bit stream of original data to be decoded;
Obtain the zone bit information in first bit stream;
When the value of flag bit value negated for target position in first bit stream, first bit is obtained The default position information of processing is negated when encoding in stream;
It carries out negating processing to position is preset in first bit stream, obtains the second bit stream.
6. coding/decoding method according to claim 5, which is characterized in that the coding/decoding method further include:
Preset logical operation is carried out according to second bit stream and removes the flag bit, obtains decoding data, the solution The digit of code data is less than the digit of second bit stream.
7. coding/decoding method according to claim 6, which is characterized in that the coding/decoding method further include:
When the value of the flag bit is the value of target position in first bit stream, carried out according to first bit stream Preset logical operation simultaneously removes the flag bit, obtains decoding data.
8. a kind of code device, which is characterized in that the code device includes:
Acquiring unit, for obtaining the first bit stream of piginal encoded data;
Logical unit, it is described for obtaining the second bit stream according to the preset logical operation of first bit stream progress The digit of second bit stream is more than the digit of first bit stream;
Coding unit, for judging whether last two logical values are identical in second bit stream, if they are the same, by described in most The logical value of at least one of two positions carries out negating processing afterwards, obtains third bit stream;By mesh in the third bit stream Mark is used as flag bit to be inserted into the third bit stream first place after negating, obtain purpose coded data.
9. a kind of decoding apparatus, which is characterized in that the decoding apparatus includes:
First acquisition unit, for obtaining corresponding first bit stream of original data to be decoded;
Second acquisition unit, for obtaining the zone bit information in first bit stream;
Third acquiring unit, for being the negated value in target position in first bit stream when the value of the flag bit When, obtain the default position information that processing is negated when encoding in first bit stream;
Decoding unit obtains the second bit stream for carrying out negating processing to position default in first bit stream;According to described Second bit stream carries out preset logical operation and removes the flag bit, obtains decoding data, the digit of the decoding data More than the digit of second bit stream.
10. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, with the step in coding method described in any one of perform claim requirement 1 to 4, or with perform claim requirement 5 Step into coding/decoding method described in any one of 7.
CN201910370353.3A 2019-05-06 2019-05-06 Encoding method, decoding method, related device and storage medium Active CN110086575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910370353.3A CN110086575B (en) 2019-05-06 2019-05-06 Encoding method, decoding method, related device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910370353.3A CN110086575B (en) 2019-05-06 2019-05-06 Encoding method, decoding method, related device and storage medium

Publications (2)

Publication Number Publication Date
CN110086575A true CN110086575A (en) 2019-08-02
CN110086575B CN110086575B (en) 2021-10-08

Family

ID=67418555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910370353.3A Active CN110086575B (en) 2019-05-06 2019-05-06 Encoding method, decoding method, related device and storage medium

Country Status (1)

Country Link
CN (1) CN110086575B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929673A (en) * 2021-01-19 2021-06-08 Tcl华星光电技术有限公司 Decoding method, decoding apparatus, and readable storage medium
CN112953680A (en) * 2021-02-10 2021-06-11 Tcl华星光电技术有限公司 Encoding method, decoding method, encoding device, and decoding device
CN112947875A (en) * 2021-01-28 2021-06-11 Tcl华星光电技术有限公司 Data encoding method, data encoding device, storage medium and computer equipment
CN113014357A (en) * 2021-02-20 2021-06-22 Tcl华星光电技术有限公司 Data encoding method, data encoding device, and storage medium
CN113193873A (en) * 2021-04-07 2021-07-30 深圳市华星光电半导体显示技术有限公司 Encoding method, decoding method, encoding device, and decoding device
CN113347428A (en) * 2021-05-26 2021-09-03 Tcl华星光电技术有限公司 Decoding method and decoding device
CN113411163A (en) * 2021-06-11 2021-09-17 Tcl华星光电技术有限公司 Decoding method, apparatus and readable storage medium
CN113407358A (en) * 2021-03-19 2021-09-17 Tcl华星光电技术有限公司 Data coding method, device and storage medium
CN113438050A (en) * 2021-06-03 2021-09-24 Tcl华星光电技术有限公司 Encoding method, decoding method, encoding device and decoding device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030161353A1 (en) * 2002-02-28 2003-08-28 Jerchen Kuo Multiplexing an additional bit stream with a primary bit stream
CN101431335A (en) * 2007-11-07 2009-05-13 国际商业机器公司 Modulation coding and decoding method, device and system
CN104052577A (en) * 2014-06-23 2014-09-17 硅谷数模半导体(北京)有限公司 Signal transmission processing method and device and video data transmission method and system
US9106460B1 (en) * 2011-07-12 2015-08-11 Emc Corporation Running disparity computation predictor
CN108694918A (en) * 2017-06-09 2018-10-23 京东方科技集团股份有限公司 Coding method and device, coding/decoding method and device and display device
CN108768587A (en) * 2018-05-11 2018-11-06 深圳市华星光电技术有限公司 Coding method, equipment and readable storage medium storing program for executing
CN108777606A (en) * 2018-05-30 2018-11-09 深圳市华星光电技术有限公司 Coding/decoding method, equipment and readable storage medium storing program for executing
CN108847916A (en) * 2018-05-30 2018-11-20 深圳市华星光电技术有限公司 Coding method, equipment and readable storage medium storing program for executing
CN109525372A (en) * 2018-12-24 2019-03-26 深圳市华星光电技术有限公司 Terminal data transmission method, apparatus and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030161353A1 (en) * 2002-02-28 2003-08-28 Jerchen Kuo Multiplexing an additional bit stream with a primary bit stream
CN101431335A (en) * 2007-11-07 2009-05-13 国际商业机器公司 Modulation coding and decoding method, device and system
US9106460B1 (en) * 2011-07-12 2015-08-11 Emc Corporation Running disparity computation predictor
CN104052577A (en) * 2014-06-23 2014-09-17 硅谷数模半导体(北京)有限公司 Signal transmission processing method and device and video data transmission method and system
CN108694918A (en) * 2017-06-09 2018-10-23 京东方科技集团股份有限公司 Coding method and device, coding/decoding method and device and display device
CN108768587A (en) * 2018-05-11 2018-11-06 深圳市华星光电技术有限公司 Coding method, equipment and readable storage medium storing program for executing
CN108777606A (en) * 2018-05-30 2018-11-09 深圳市华星光电技术有限公司 Coding/decoding method, equipment and readable storage medium storing program for executing
CN108847916A (en) * 2018-05-30 2018-11-20 深圳市华星光电技术有限公司 Coding method, equipment and readable storage medium storing program for executing
CN109525372A (en) * 2018-12-24 2019-03-26 深圳市华星光电技术有限公司 Terminal data transmission method, apparatus and storage medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929673A (en) * 2021-01-19 2021-06-08 Tcl华星光电技术有限公司 Decoding method, decoding apparatus, and readable storage medium
CN112929673B (en) * 2021-01-19 2022-04-01 Tcl华星光电技术有限公司 Decoding method, decoding apparatus, and readable storage medium
WO2022156113A1 (en) * 2021-01-19 2022-07-28 Tcl华星光电技术有限公司 Decoding method, decoding device and readable storage medium
CN112947875A (en) * 2021-01-28 2021-06-11 Tcl华星光电技术有限公司 Data encoding method, data encoding device, storage medium and computer equipment
CN112947875B (en) * 2021-01-28 2023-02-07 Tcl华星光电技术有限公司 Data encoding method, data encoding device, storage medium and computer equipment
CN112953680B (en) * 2021-02-10 2022-12-23 Tcl华星光电技术有限公司 Encoding method, decoding method, encoding device, and decoding device
CN112953680A (en) * 2021-02-10 2021-06-11 Tcl华星光电技术有限公司 Encoding method, decoding method, encoding device, and decoding device
US11848771B2 (en) 2021-02-10 2023-12-19 Tcl China Star Optoelectronics Technology Co., Ltd. Encoding method, decoding method, encoding device and decoding device
CN113014357A (en) * 2021-02-20 2021-06-22 Tcl华星光电技术有限公司 Data encoding method, data encoding device, and storage medium
CN113407358B (en) * 2021-03-19 2023-10-31 Tcl华星光电技术有限公司 Data encoding method, device and storage medium
CN113407358A (en) * 2021-03-19 2021-09-17 Tcl华星光电技术有限公司 Data coding method, device and storage medium
CN113193873A (en) * 2021-04-07 2021-07-30 深圳市华星光电半导体显示技术有限公司 Encoding method, decoding method, encoding device, and decoding device
CN113193873B (en) * 2021-04-07 2023-07-04 深圳市华星光电半导体显示技术有限公司 Encoding method, decoding method, encoding device, and decoding device
CN113347428A (en) * 2021-05-26 2021-09-03 Tcl华星光电技术有限公司 Decoding method and decoding device
CN113438050A (en) * 2021-06-03 2021-09-24 Tcl华星光电技术有限公司 Encoding method, decoding method, encoding device and decoding device
CN113411163A (en) * 2021-06-11 2021-09-17 Tcl华星光电技术有限公司 Decoding method, apparatus and readable storage medium

Also Published As

Publication number Publication date
CN110086575B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN110086575A (en) Coding method, coding/decoding method, relevant apparatus and storage medium
CN110098837B (en) Data encoding method, decoding method, related device and storage medium
US7769048B2 (en) Link and lane level packetization scheme of encoding in serial links
CN105187070B (en) A kind of manchester encoded signals coding/decoding method and device
CN104052577B (en) The treating method and apparatus of signal transmission and the transmission method and system of video data
CN107094021A (en) Data compression
JP2018501706A5 (en)
CN100512020C (en) Decoding method and decoding device
WO2022095173A1 (en) Decoding method, decoding device, and readable storage medium
CN108847916A (en) Coding method, equipment and readable storage medium storing program for executing
CN110474711A (en) Coding method, equipment and readable storage medium storing program for executing
CN106877873A (en) The codec and decoding method of the Manchester code based on FPGA
CN101442380B (en) Method and apparatus for testing error rate based on high speed serial interface encoded mode
CN103746704B (en) Test data of chip transmission methods based on double distance of swimming alternate coded
CN106921463A (en) A kind of anti-interference coding/decoding method and system
CN108833321A (en) Code CPM signal code block synchronization method based on differential phase waveform matching
CN205545212U (en) Manchester code's codec based on FPGA
CN110474710A (en) Coding method, equipment and readable storage medium storing program for executing
CN104639176A (en) Asynchronous decoder and asynchronous decoding method for BMC (Biphase Mark Coding) signal
CN113438052B (en) Signal decoding method, device, electronic equipment and storage medium
JP2007306212A (en) Transmitter, receiver, communication system, and communication method
CN107682020A (en) A kind of coding based on Turbo code, coding/decoding method and device
CN107210755A (en) A kind of device and method of FEC decodings
JP2017050734A (en) Serial communication device, communication system, and communication method
CN113630211B (en) Encoding method and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 9-2 Tangming Avenue, Guangming New District, Shenzhen City, Guangdong Province

Applicant after: TCL Huaxing Photoelectric Technology Co.,Ltd.

Address before: 9-2 Tangming Avenue, Guangming New District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen China Star Optoelectronics Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant