Data encoding method, device, and storage medium
AssigneeTcl China Star Optoelectronics Technology Co., Ltd.
InventorJinfeng Liu
Life of this patent
Estimating the term…
Abstract
The present disclosure discloses a data encoding method, a device, and a storage medium. In the present application, by acquiring a first data stream that does not meet a preset standard and recording the first data stream as a data stream to be assigned, performing an arithmetic operation on the first data stream in the data stream to be assigned to generate a second data stream that meets the preset standard, and adding a third preset number of data bits to the data stream that meets the preset standard to obtain the second data stream, the data stream that meets the preset standard can be screened out, and only the data stream that does not meet the preset standard is encoded, which reduces complexity of data calculation and improves efficiency of data transmission.
Claims20
A data encoding method, comprising:
- obtaining raw data, wherein the raw data comprises a plurality of first data streams;
- obtaining a first data stream that does not meet a preset standard and recording the first data stream as a data stream to be assigned a value, wherein the first data stream comprises a first preset number of data bits, each of the data bits is filled with a corresponding value, and the preset standard is that a number of consecutive data bits with a same value does not exceed a second preset number;
- and
- performing an arithmetic operation on the first data stream in the data stream to be assigned the value to generate a second data stream that meets the preset standard,
- wherein the first data stream comprises a zeroth data bit in the first data steam, a first data bit in the first data stream, a second data bit in the first data stream, a third data bit in the first data stream, a fourth data bit in the first data stream, a fifth data bit in the first data stream, a sixth data bit in the first data stream, and a seventh data bit in the first data stream, and
- wherein the second data stream comprises a zeroth data bit in the second data stream, a first data bit in the second data stream, a second data bit in the second data stream, a third data bit in the second data stream, a fourth data bit in the second data stream, a fifth data bit in the second data stream, a sixth data bit in the second data stream, a seventh data bit in the second data stream, and an eighth data bit in the second data stream.
A data encoding device, comprising:
- a data acquisition unit configured to obtain raw data, wherein the raw data comprises a plurality of first data streams;
- an assignment data acquisition unit configured to obtain a first data stream that does not meet a preset standard and recording the first data stream as a data stream to be assigned, wherein the first data stream comprises a first preset number of data bits, each of the data bits is filled with a corresponding value, and the preset standard is that a number of consecutive data bits with a same value does not exceed a second preset number;
- and
- a data assignment unit configured to perform an arithmetic operation on the first data stream in the data stream to be assigned to generate a second data stream that meets the preset standard.
A storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are adapted to be loaded by a processor to execute an encoding method, and the encoding method comprises:
- obtaining raw data, wherein the raw data comprises a plurality of first data streams;
- obtaining a first data stream that does not meet a preset standard and recording the first data stream as a data stream to be assigned, wherein the first data stream comprises a first preset number of data bits, each of the data bits is filled with a corresponding value, and the preset standard is that a number of consecutive data bits with a same value does not exceed a second preset number;
- and
- performing an arithmetic operation on the first data stream in the data stream to be assigned to generate a second data stream that meets the preset standard,
- wherein the first data stream comprises a zeroth data bit in the first data steam, a first data bit in the first data stream, a second data bit in the first data stream, a third data bit in the first data stream, a fourth data bit in the first data stream, a fifth data bit in the first data stream, a sixth data bit in the first data stream, and a seventh data bit in the first data stream, and
- wherein the second data stream comprises a zeroth data bit in the second data stream, a first data bit in the second data stream, a second data bit in the second data stream, a third data bit in the second data stream, a fourth data bit in the second data stream, a fifth data bit in the second data stream, a sixth data bit in the second data stream, a seventh data bit in the second data stream, and an eighth data bit in the second data stream.
Dependencies are inferred from the claim text.