Data encoding method, decoding method, related device, and storage medium
AssigneeTcl China Star Optoelectronics Technology Co., Ltd.
InventorFuyi WANG
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a data encoding method, a decoding method, a related device, and a storage medium. The data encoding method first passes a first bit stream of an original encoded data through a logical operation to obtain a second bit stream. Then, through signal determination, negating processing, and insertion of corresponding flag bit, encoded data having a certain jump amplitude is obtained. A problem that signal is prone to error in transmission process is solved, reliability of coding is improved, and signal transmission is facilitated.
Claims20
A data encoding method, comprising steps of:
- obtaining a first bit stream of original encoded data;
- performing a preset logical operation according to the first bit stream to obtain a second bit stream, wherein a number of bits of the second bit stream is greater than that of the first bit stream;
- determining whether logical values of a plurality of consecutive preset bits in the second bit stream are same, wherein if the logical values are the same, a logical negation is performed on the logical value of at least one bit in a middle position of the consecutive preset bits to obtain a third bit stream;
- and
- negating a target bit in the third bit stream as a flag bit, and inserting the flag bit into a first bit of the third bit stream to obtain encoded data.
A data decoding method, comprising steps of:
- obtaining a first bit stream corresponding to original data to be decoded;
- obtaining flag bit information in the first bit stream;
- obtaining preset bit information of encoding and negating processing in the first bit stream when a value of a flag bit is a value of a target bit in the first bit stream negated;
- performing a negating processing on a preset bit in the first bit stream to obtain a second bit stream;
- and
- performing a preset logical operation according to the second bit stream and removing the flag bit to obtain decoded data, wherein a number of bits of the decoded data is greater than that of the second bit stream.
A data encoding device, comprising:
- an obtaining unit configured to obtain a first bit stream of original encoded data;
- a logical operation unit configured to perform a preset logical operation according to the first bit stream to obtain a second bit stream, wherein a number of bits of the second bit stream is greater than that of the first bit stream;
- and
- an encoding unit configured to determine whether logical values of a plurality of consecutive preset bits in the second bit stream are same, wherein if the logical values are the same, a logical negation is performed on the logical value of at least one bit in a middle position of the consecutive preset bits to obtain a third bit stream, and negate a target bit in the third bit stream as a flag bit, and inserting the flag bit into a first bit of the third bit stream to obtain encoded data.
Dependencies are inferred from the claim text.