WO2022193372A1 - 数据编码方法、装置及储介质 - Google Patents

数据编码方法、装置及储介质 Download PDF

Info

Publication number
WO2022193372A1
WO2022193372A1 PCT/CN2021/084646 CN2021084646W WO2022193372A1 WO 2022193372 A1 WO2022193372 A1 WO 2022193372A1 CN 2021084646 W CN2021084646 W CN 2021084646W WO 2022193372 A1 WO2022193372 A1 WO 2022193372A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
data stream
value
bit
stream
Prior art date
Application number
PCT/CN2021/084646
Other languages
English (en)
French (fr)
Inventor
刘金风
Original Assignee
Tcl华星光电技术有限公司
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 Tcl华星光电技术有限公司 filed Critical Tcl华星光电技术有限公司
Priority to US17/294,695 priority Critical patent/US20240088911A1/en
Publication of WO2022193372A1 publication Critical patent/WO2022193372A1/zh

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/14Conversion to or from non-weighted codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M5/00Conversion of the form of the representation of individual digits
    • H03M5/02Conversion to or from representation by pulses
    • H03M5/04Conversion to or from representation by pulses the pulses having two levels
    • H03M5/14Code representation, e.g. transition, for a given bit cell depending on the information in one or more adjacent bit cells, e.g. delay modulation code, double density code
    • H03M5/145Conversion to or from block codes or representations thereof
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction

Definitions

  • the present application relates to computer technology, and in particular, to a data encoding method, device and storage medium.
  • TFT-LCD thin film transistor liquid crystal display
  • TCON control
  • Driver Driver
  • the digital signal is encoded before baseband transmission. Since there is no independent clock signal during data transmission, the clock signal is embedded in the data. When there are multiple consecutive 0s or consecutive 1s in the transmitted data, the receiver is prone to misidentify the embedded clock signal.
  • the purpose of encoding is to make the transmission signal a square wave waveform with certain jumps, so as to avoid too many consecutive 0s or consecutive 1s, which may cause errors in the clock synchronization information received by the receiver, and eventually lead to bit errors.
  • the most widely used encoding scheme in the field of data transmission is to encode all data packets (packages) (that is, original data), so it takes a lot of time for data encoding and decoding during data transmission, resulting in slow data transmission. Affect the response time and image quality and other issues.
  • the embodiments of the present application provide a data encoding method, device, and storage medium, which effectively solve the problem of encoding all data packets at present, so that it takes a lot of time for data encoding and decoding in the data transmission process, thus causing Data transmission is slow, which affects response time and image quality.
  • the present application provides a data encoding method, the method includes the steps of: acquiring original data, where the original data includes a plurality of first data streams; acquiring a first data stream that does not meet a preset standard And recorded as a data stream to be assigned, wherein the first data stream includes a first preset number of data bits, each of the data bits is filled with a corresponding value, and the preset standard is the same in the consecutive data bits.
  • the numerical value does not exceed a second preset number; and an arithmetic operation is performed on the first data stream in the to-be-assigned data stream to generate a second data stream that satisfies the preset standard.
  • the first data bit in the second data stream is the second value. value; when the third data bit in the first data stream is the first value, the second data bit in the first data stream is the second value, and the first data bit in the first data stream is the second value, the The first data bit in the second data stream is the second value; when the second data bit in the first data stream is the first value and the zeroth data bit in the first data stream is the first value, the The first data bit in the second data stream is the second value; when the second data bit in the first data stream is the second value and the first data bit in the first data stream is the first value, the The second data bit in the two data streams is the second value; when the third data bit in the first data stream is the first value, the second data bit in the first data stream is the second value and the When the first data bit in the first data stream is the second value, the second data bit in the second data stream is the second value; when the third data bit in the first data stream is the first value, the second data bit in the first data stream is the second value and the When
  • the second data bit in the first data stream is the first numerical value and the first data bit in the first data stream is the first numerical value
  • the second data bit in the fifth data stream is the second value; when the second data bit in the first data stream is the second value and the zeroth data bit in the first data stream is the first value, the The second data bit in the fifth data stream is the second value; when the first data bit in the first data stream is the second value and the zeroth data bit in the first data stream is the first value, the The second data bit in the fifth data stream is the second value; when the fourth data bit in the first data stream is the first value, the second data bit in the first data stream is the first value and the first data stream When the first data bit in the first data stream is the first value, the second data bit in the sixth data stream is the second value; when the second data bit in the first data stream is the second value and the first data stream When the zeroth data bit is the second value, the second data bit in the sixth data stream is the second value
  • the method further includes the steps of: acquiring a first data stream that satisfies a preset standard and recording it as a data stream to be filled; and adding a third preset number of data bits to the data stream to be filled to obtain the second data stream. data flow.
  • the value of the first preset number is greater than the value of the second preset number.
  • the number of data bits in the second data stream is greater than the number of data bits in the first data stream.
  • the value of the second preset number does not exceed 5.
  • the present application provides a data encoding apparatus, the apparatus includes: a data acquisition unit for acquiring an original data stream, the original data stream includes multiple data streams; an assignment data acquisition unit a unit for acquiring a first data stream that does not meet a preset standard and recording it as a data stream to be assigned, wherein the data stream includes a first preset number of data bits, and each of the data bits is filled with a corresponding value,
  • the preset standard is that the same numerical value in consecutive data bits does not exceed the second preset number; Set a standard second data stream.
  • the value of the first preset number is greater than the value of the second preset number.
  • the number of data bits in the second data stream is greater than the number of data bits in the first data stream.
  • the value of the second preset number does not exceed 5.
  • the present application provides 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, the encoding method comprising: obtaining original data , the original data includes a plurality of first data streams; the first data streams that do not meet the preset standards are obtained and recorded as the data streams to be assigned, wherein the first data streams include a first preset number of data bits, Each of the data bits is filled with a corresponding numerical value, and the preset standard is that the same numerical value in consecutive data bits does not exceed a second preset number; and the first data stream in the to-be-assigned data stream is operated Operates to generate a second data stream that satisfies the preset criteria.
  • the arithmetic operation comprises: assigning the value of the third data bit in the first data stream to the zeroth data bit in the second data stream; assigning the value of the fifth data bit in the first data stream to the third data bit in the second data stream; assign the value of the sixth data bit in the first data stream to the fourth data bit in the second data stream; assign the value of the fourth data bit in the first data stream assigning to the seventh data bit in the second data stream; and assigning the value of the seventh data bit in the first data stream to the eighth data bit in the second data stream.
  • the arithmetic operation further includes: when the second data bit in the first data stream is a first value and the first data bit in the first data stream is a second value, the The first data bit is the second value; when the third data bit in the first data stream is the first value, the second data bit in the first data stream is the second value and the first data bit in the first data stream is the second value, the first data bit in the second data stream is the second value; when the second data bit in the first data stream is the first value and the zeroth data bit in the first data stream is When the first value is the first value, the first data bit in the second data stream is the second value; when the second data bit in the first data stream is the second value and the first data bit in the first data stream is the first value.
  • the second data bit in the second data stream is the second value
  • the third data bit in the first data stream is the first value
  • the second data bit in the first data stream is the second value value and the first data bit in the first data stream is the second value
  • the second data bit in the second data stream is the second value
  • the first data bit in the first data stream is the first value
  • the zeroth data bit in the first data stream is the second value
  • the second data bit in the second data stream is the second value.
  • the arithmetic operation further includes: when the fourth data bit in the first data stream is the first value, the second data bit in the first data stream is the first value and the first data bit in the first data stream is the first value When the bit is the first value, the second data bit in the fifth data stream is the second value; when the second data bit in the first data stream is the second value and the zeroth data bit in the first data stream is the first value, the second data bit in the fifth data stream is the second value; when the first data bit in the first data stream is the second value and the zeroth data bit in the first data stream is When the value is the first, the second data bit in the fifth data stream is the second value; when the fourth data bit in the first data stream is the first value, the second data bit in the first data stream is the first value.
  • the second data bit in the sixth data stream is the second value; when the second data bit in the first data stream is the second value value and the zeroth data bit in the first data stream is the second value, the second data bit in the sixth data stream is the second value; when the first data bit in the first data stream is the second value And when the zeroth data bit in the first data stream is the second value, the second data bit in the sixth data stream is the second value.
  • the encoding method further includes the steps of: acquiring a first data stream that satisfies a preset standard and recording it as a data stream to be filled; and adding a third preset number of data bits to the data stream to be filled to obtain the first data stream to be filled. Two data streams.
  • the value of the first preset number is greater than the value of the second preset number.
  • the number of data bits in the second data stream is greater than the number of data bits in the first data stream.
  • the value of the second preset number does not exceed 5.
  • the advantage of the present application is that, by acquiring the first data stream that does not meet the preset standard and recording it as the data stream to be assigned, an arithmetic operation is performed on the first data stream in the to-be-assigned data stream to generate the first data stream that meets the preset standard.
  • the second data stream is obtained by adding a third preset number of data bits to the data stream that meets the preset standard.
  • FIG. 1 is a flowchart of steps of a data encoding method provided in Embodiment 1 of the present application.
  • FIG. 2 is a flowchart of steps of a data encoding method according to Embodiment 2 of the present application.
  • FIG. 3 is a flowchart of an embodiment of the sub-steps of step S240 shown in FIG. 2 .
  • FIG. 4 is a schematic structural diagram of a data encoding apparatus according to Embodiment 3 of the present application.
  • FIG. 5 is an internal structural diagram of a computer device provided in Embodiment 4 of the present application.
  • FIG. 1 it is a flowchart of the steps of the data encoding method provided in Embodiment 1 of the present application.
  • the method includes the steps:
  • Step S110 Obtain original data.
  • the original data includes multiple data streams.
  • the data streams are arranged in sequence, and in the encoding process, the data streams are encoded in sequence.
  • the data streams are sequentially transmitted according to the encoding sequence of the data streams.
  • Step S120 Acquire the first data stream that does not meet the preset standard and record it as the data stream to be assigned.
  • the data stream includes a first preset number of data bits, each of the data bits is filled with a corresponding value, and the preset standard is that the same value in consecutive data bits does not exceed a second preset number.
  • the value of the first preset number is greater than the value of the second preset number, and the first preset number is 8, so the first data stream is 8Bit data.
  • Each of the data bits is filled with a corresponding value. For example, what is recorded in the first data stream is a square wave signal, and the data bits of the first data stream are filled with a corresponding value that is either 0 or 1.
  • M7-M2 means M7, M6, M5, M4, M3 and M2, other reference (M7-M2)
  • NAND means XOR operation
  • NAND (M7-M2), NAND (M6-M1), NAND (M5-M0) indicate whether there is 0 in every 6 consecutive values in M7-M0
  • OR (M7-M2), OR ( M6-M1), OR (M5-M0) indicates whether there is 1 in every 6 consecutive values in M7-M0. That is, there are consecutive identical values in the first data stream.
  • an 8-bit first data stream is (1011 1111).
  • the first data stream is the first data stream that does not meet the preset standard.
  • the first data stream may be A data signal that will experience bit errors during channel transmission.
  • Step S130 Perform a logical operation on each of the data bits in the to-be-assigned data stream and assign the value to each of the data bits in the second data stream.
  • the number of data bits in the second data stream is greater than the number of data bits in the first data stream.
  • the number of data bits of the second data stream is 9.
  • the advantage of the present application is that, by acquiring the first data stream that does not meet the preset standard and recording it as the data stream to be assigned, an arithmetic operation is performed on the first data stream in the to-be-assigned data stream to generate the first data stream that meets the preset standard.
  • the second data stream is obtained by adding a third preset number of data bits to the data stream that meets the preset standard.
  • FIG. 2 it is a flowchart of the steps of the data encoding method provided in Embodiment 2 of the present application.
  • the method includes the steps:
  • Step S210 Obtain original data.
  • the original data includes multiple data streams.
  • the data streams are arranged in sequence, and in the encoding process, the data streams are encoded in sequence.
  • the data streams are sequentially transmitted according to the encoding sequence of the data streams.
  • Step S220 Determine whether each of the first data streams satisfies a preset standard.
  • the data stream includes a first preset number of data bits, each of the first data bits is filled with a corresponding value, and the preset standard is that the same value in consecutive data bits does not exceed a second preset number.
  • the value of the first preset number is greater than the value of the second preset number, and the first preset number is 8, so the first data stream is 8Bit data.
  • Each of the data bits is filled with a corresponding value. For example, what is recorded in the first data stream is a square wave signal, and the data bits of the first data stream are filled with a corresponding value that is either 0 or 1.
  • M7-M2 means M7, M6, M5, M4, M3 and M2, other reference (M7-M2)
  • NAND means XOR operation
  • NAND (M7-M2), NAND (M6-M1), NAND (M5-M0) indicate whether there is 0 in every 6 consecutive values in M7-M0
  • OR (M7-M2), OR ( M6-M1), OR (M5-M0) indicates whether there is 1 in every 6 consecutive values in M7-M0.
  • Step S230 Acquire the first data stream that does not meet the preset standard and record it as the data stream to be assigned.
  • the first data stream is a data stream that does not meet the preset standard, and the first data stream may be a data signal with bit errors during channel transmission.
  • Step S240 Perform a logical operation on each of the data bits in the to-be-assigned data stream and assign the value to each of the data bits in the second data stream.
  • the number of data bits in the second data stream is greater than the number of data bits in the first data stream.
  • the number of data bits of the second data stream is 9.
  • FIG. 3 is a flowchart of sub-steps of step S240 in FIG. 2 .
  • Step S240 specifically includes the following steps:
  • Step S241 Assign the value of the third data bit in the first data stream to the zeroth data bit in the second data stream.
  • Step S242 Assign the value of the fifth data bit in the first data stream to the third data bit in the second data stream.
  • Step S243 Assign the value of the sixth data bit in the first data stream to the fourth data bit in the second data stream.
  • Step S244 Assign the value of the fourth data bit in the first data stream to the seventh data bit in the second data stream.
  • Step S245 Assign the value of the seventh data bit in the first data stream to the eighth data bit in the second data stream.
  • the first data bit in the second data stream is the second value
  • the first case is when the second data bit in the first data stream is the first value.
  • the first data bit in the second data stream is the second value
  • the second case is when the third data bit in the first data stream is the second value.
  • the second data bit in the first data stream is the second value
  • the first data bit in the first data stream is the second value
  • the first data bit in the second data stream is is the second value
  • the third case is that when the second data bit in the first data stream is the first value and the zeroth data bit in the first data stream is the first value, the The first data bit is the second value.
  • the second data bit in the second data stream is the second value
  • the first case is when the second data bit in the first data stream is the first value.
  • the second data bit in the second data stream is the second value; the second case is when the third data bit in the first data stream is the second value.
  • the second data bit in the first data stream is the second value
  • the first data bit in the first data stream is the second value
  • the second data bit in the second data stream is is the second value
  • the third case is when the first data bit in the first data stream is the first value and the zeroth data bit in the first data stream is the second value, the The second data bit is the second value.
  • the second data bit in the fifth data stream is the second value
  • the first case is when the fourth data bit in the first data stream is the first value.
  • a value when the second data bit in the first data stream is the first value and the first data bit in the first data stream is the first value, the second data bit in the fifth data stream is the second value
  • the second situation is that when the second data bit in the first data stream is the second numerical value and the zeroth data bit in the first data stream is the first numerical value, the second data bit in the fifth data stream is the second value; the third case is when the first data bit in the first data stream is the second value and the zeroth data bit in the first data stream is the first value, the The second data bit is the second value.
  • the second data bit in the sixth data stream is the second value
  • the first case is when the fourth data bit in the first data stream is the first value.
  • a value when the second data bit in the first data stream is the first value and the first data bit in the first data stream is the first value, the second data bit in the sixth data stream is the second value
  • the second situation is that when the second data bit in the first data stream is the second numerical value and the zeroth data bit in the first data stream is the second numerical value, the second data bit in the sixth data stream is the second value
  • the third case is that when the first data bit in the first data stream is the second value and the zeroth data bit in the first data stream is the second value, the The second data bit is the second value.
  • the first value is 0, and the second value is 1.
  • the above operation operation is obtained by performing multiple experiments and tests, and can effectively adjust the discreteness of the first data stream.
  • the arithmetic operation can also be performed by the following logical operations, for example
  • the selected data bits can also be arbitrary. Generally, in order to make the discreteness of the data stream better (ie, the waveform hopping frequency of the data is high), adjacent data bits are selected.
  • a logical operation is performed on each of the data bits in the to-be-assigned data stream according to the flag value and assigned to each of the data bits in the second data stream.
  • the discreteness of the data flow can be increased through the above logic operations.
  • Step S231 Acquire the first data stream that meets the preset standard and record it as the data stream to be filled.
  • step S120 for the detailed calculation method of step S120, please refer to the calculation method of step S120, which will not be repeated here.
  • Step S232 Add a third preset number of data bits to the data stream to be filled to obtain the second data stream.
  • the third preset number is 1, but it is not limited thereto.
  • the encoding of the signal may be more bits, for example, 8 bits may be converted into 10 bits, and so on.
  • this step only a third preset number of data bits are added to the data stream to be filled, and a logical operation is performed on each of the data bits in the data stream to be assigned and assigned to each of the data bits in the second data stream.
  • the calculation amount of the bit is small, so the operation time of encoding and decoding can be simplified, and the transmission efficiency of data can be improved.
  • the third preset number is 1, that is, converting 8 bits to 9 bits saves a transmission channel compared to converting 8 bits to 10 bits.
  • the advantage of the present application is that, by acquiring the first data stream that does not meet the preset standard and recording it as the data stream to be assigned, an arithmetic operation is performed on the first data stream in the to-be-assigned data stream to generate the first data stream that meets the preset standard.
  • the second data stream is obtained by adding a third preset number of data bits to the data stream that meets the preset standard.
  • FIG. 4 it is a schematic structural diagram of a data encoding apparatus according to Embodiment 3 of the present application.
  • the device includes: a data acquisition unit 10 , an assignment data acquisition unit 20 , that is, a data assignment unit 30 .
  • the data acquisition unit 10 is used to acquire the original data stream.
  • the original data includes multiple data streams.
  • the data streams are arranged in sequence, and in the encoding process, the data streams are encoded in sequence.
  • the data streams are sequentially transmitted according to the encoding sequence of the data streams.
  • the assignment data acquisition unit 20 is configured to determine whether the discreteness of each of the first data streams satisfies a preset standard.
  • the first data stream includes a first preset number of data bits, each of the data bits is filled with a corresponding value, and the preset standard is that the same value in consecutive data bits does not exceed a second preset number.
  • the value of the first preset number is greater than the value of the second preset number, and the first preset number is 8, so the first data stream is 8Bit data.
  • Each of the data bits is filled with a corresponding value. For example, what is recorded in the first data stream is a square wave signal, and the data bits of the first data stream are filled with a corresponding value that is either 0 or 1.
  • M7-M2 M7, M6, M5, M4, M3 and M2, other reference (M7-M2)
  • NAND means XOR operation
  • NAND (M7-M2), NAND (M6-M1), NAND (M5-M0) indicate whether there is 0 in every 6 consecutive values in M7-M0
  • OR (M7-M2), OR ( M6-M1), OR (M5-M0) indicates whether there is 1 in every 6 consecutive values in M7-M0.
  • the first data stream is a data stream that does not meet the preset standard, and the first data stream may be a data signal with bit errors during channel transmission.
  • the data assignment unit 30 is configured to perform a logical operation on each of the data bits in the to-be-assigned data stream and assign the value to each of the data bits in the second data stream.
  • the number of data bits in the second data stream is greater than the number of data bits in the data stream.
  • the number of data bits of the second data stream is 9.
  • the advantage of the present application is that, by acquiring the first data stream that does not meet the preset standard and recording it as the data stream to be assigned, an arithmetic operation is performed on the first data stream in the to-be-assigned data stream to generate the first data stream that meets the preset standard.
  • the second data stream is obtained by adding a third preset number of data bits to the data stream that meets the preset standard.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本申请公开了一种数据编码方法、装置及存储介质。本申请通过获取不满足预设标准的第一数据流并记录为待赋值数据流,对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流,所述满足预设标准的数据流增加第三预设数量的数据位得到所述第二数据流。从而可以筛选出满足预设标准的数据流,仅对不满足预设标准的数据流进行编码,降低了数据计算的复杂性,提高了数据的传输效率。

Description

数据编码方法、装置及储介质
本申请要求于2021年03月19日提交中国专利局、申请号为202110294235.6发明名称为“数据编码方法、装置及储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术,尤其涉及一种数据编码方法、装置及存储介质。
背景技术
在现有薄膜晶体管液晶显示器(Thin film transistor liquid crystal display,简称TFT-LCD)产品中,数字信号在数字信道中传输时即从控制(TCON)端传输至驱动(Driver)端,需要对传输的数字信号先编码再进行基带传输。由于数据传输过程中无独立的时钟信号,时钟信号被嵌入至数据中。当传输数据出现多个连续0或者连续1时,接收端容易误识别嵌入的时钟信号。编码的目的是为了使传输信号是具有一定跳变的方波波形,以免连续0或者连续1的个数过多致使接收端接收到的时钟同步信息容易发生错误,最终导致误码。
目前数据传输领域使用最广泛的编码方案是对所有数据封包(package)(即原始数据)进行编码,因此导致数据在传输过程中需要耗费大量时间用于数据编码和解码,从而引发数据传输慢,影响响应时间和画质等问题。
技术问题
本申请实施例提供一种数据编码方法、装置及存储介质,有效解决了目前对所有数据封包(package)进行编码,因此导致数据在传输过程中需要耗费大量时间用于数据编码和解码,从而引发数据传输慢,影响响应时间和画质的问题。
技术解决方案
根据本申请的一方面,本申请提供一种数据编码方法,所述方法包括步骤:获取原始数据,所述原始数据中包括多条第一数据流;获取不满足预设标准的第一数据流并记录为待赋值数据流,其中所述第一数据流包括第一预设数量的数据位,每一所述数据位填充有相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量;以及对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流。
进一步地,将第一数据流中的第三数据位的数值赋至第二数据流中的第零数据位;将第一数据流中的第五数据位的数值赋至第二数据流中的第三数据位;将第一数据流中的第六数据位的数值赋至第二数据流中的第四数据位;将第一数据流中的第四数据位的数值赋至第二数据流中的第七数据位;以及将第一数据流中的第七数据位的数值赋至第二数据流中的第八数据位。
进一步地,当第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;当第一数据流中的第二数据位为第一数值且第一数据流中的第零数据位为第一数值时,所述第二数据流中的第一数据位为第二数值;当第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第一数值时,所述第二数据流中的第二数据位为第二数值;当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第二数据位为第二数值;当第一数据流中的第一数据位为第一数值且第一数据流中的第零数据位为第二数值时,所述第二数据流中的第二数据位为第二数值。
进一步地,当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第六数据流中的第二数据位为第二数值;当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值;当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值。
进一步地,所述方法还包括步骤:获取满足预设标准的第一数据流并记录为待填充数据流;以及对所述待填充数据流增加第三预设数量的数据位得到所述第二数据流。
进一步地,所述第一预设数量的数值大于所述第二预设数量的数值。
进一步地,所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。
进一步地,所述第二预设数量的数值不超过5。
根据本申请的另一方面,本申请提供一种数据编码装置,所述装置包括:一数据获取单元,用于获取原始数据流,所述原始数据流中包括多条数据流;一赋值数据获取单元,用于获取不满足预设标准的第一数据流并记录为待赋值数据流,其中所述数据流包括第一预设数量的数据位,每一所述数据位填充有相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量;以及一数据赋值单元,用于对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流。
进一步地,所述第一预设数量的数值大于所述第二预设数量的数值。
进一步地,所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。
进一步地,所述第二预设数量的数值不超过5。
根据本申请的又一方面,本申请提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行编码方法,所述编码方法包括:获取原始数据,所述原始数据中包括多条第一数据流;获取不满足预设标准的第一数据流并记录为待赋值数据流,其中所述第一数据流包括第一预设数量的数据位,每一所述数据位填充有相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量;以及对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流。
进一步地,所述运算操作包括:将第一数据流中的第三数据位的数值赋至第二数据流中的第零数据位;将第一数据流中的第五数据位的数值赋至第二数据流中的第三数据位;将第一数据流中的第六数据位的数值赋至第二数据流中的第四数据位;将第一数据流中的第四数据位的数值赋至第二数据流中的第七数据位;以及将第一数据流中的第七数据位的数值赋至第二数据流中的第八数据位。
进一步地,所述运算操作还包括:当第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;当第一数据流中的第二数据位为第一数值且第一数据流中的第零数据位为第一数值时,所述第二数据流中的第一数据位为第二数值;当第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第一数值时,所述第二数据流中的第二数据位为第二数值;当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第二数据位为第二数值;当第一数据流中的第一数据位为第一数值且第一数据流中的第零数据位为第二数值时,所述第二数据流中的第二数据位为第二数值。
进一步地,所述运算操作还包括:当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第六数据流中的第二数据位为第二数值;当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值;当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值。
进一步地,所述编码方法还包括步骤:获取满足预设标准的第一数据流并记录为待填充数据流;以及对所述待填充数据流增加第三预设数量的数据位得到所述第二数据流。
进一步地,所述第一预设数量的数值大于所述第二预设数量的数值。
进一步地,所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。
进一步地,所述第二预设数量的数值不超过5。
有益效果
本申请的优点在于,通过获取不满足预设标准的第一数据流并记录为待赋值数据流,对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流,所述满足预设标准的数据流增加第三预设数量的数据位得到所述第二数据流。从而可以筛选出满足预设标准的数据流,仅对不满足预设标准的数据流进行编码,降低了数据计算的复杂性,提高了数据的传输效率。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例一提供的一种数据编码方法的步骤流程图。
图2为本申请实施例二提供的一种数据编码方法的步骤流程图。
图3为图2所示步骤S240的子步骤的一实施例的流程图。
图4为本申请实施例三提供的一种数据编码装置的结构示意图。
图5为本申请实施例四提供的计算机设备的内部结构图。
本申请的实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图1所示,为本申请实施例一提供的数据编码方法的步骤流程图。该方法包括步骤:
步骤S110:获取原始数据。
具体地,所述原始数据中包括多条数据流。其中数据流依次排列,在编码的过程中,按照顺序进行对数据流进行编码。当数据传输时,按照数据流编码的顺序依次对数据流进行传输。
步骤S120:获取不满足预设标准的第一数据流并记录为待赋值数据流。
其中所述数据流包括第一预设数量的数据位,每一所述数据位填充相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量。在本实施例中,所述第一预设数量的数值大于所述第二预设数量的数值,所述第一预设数量为8,因此该第一数据流为8Bit数据。每一所述数据位填充相应的数值,例如第一数据流所记录的是一种方波信号,该第一数据流的数据位填充相应的数值不是0就是1。
下文将详细讲述,预设标准的运算方法。假设第一数据流为8Bit数据(即M0至M7个数据位),第二预设数量为5,预设标准的详细逻辑运算如下:NAND(NAND(M7-M2), NAND(M6-M1), NAND(M5-M0),OR(M7-M2),OR(M6-M1),OR(M5-M0))==1。其中(M7-M2)表示M7,M6,M5,M4,M3和M2,其他参照(M7-M2),NAND表示异或运算,OR表示或运算,==表示是否等于。由此可知,NAND(M7-M2), NAND(M6-M1), NAND(M5-M0)表示M7-M0之中每6个连续的数值中是否存在0,OR(M7-M2),OR(M6-M1),OR(M5-M0)表示M7-M0之中每6个连续的数值中是否存在1。即第一数据流中存在连续相同的数值,例如在一个8Bit的第一数据流为(1011 1111),该第一数据流为不满足预设标准的第一数据流,该第一数据流可能会在信道传输过程中发生误码的数据信号。
步骤S130:对所述待赋值数据流中每一所述数据位进行逻辑运算并赋值给第二数据流中的每一所述数据位。
在本实施例中,所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。所述第二数据流的数据位数量为9。
本申请的优点在于,通过获取不满足预设标准的第一数据流并记录为待赋值数据流,对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流,所述满足预设标准的数据流增加第三预设数量的数据位得到所述第二数据流。从而可以筛选出满足预设标准的数据流,仅对不满足预设标准的数据流进行编码,降低了数据计算的复杂性,提高了数据的传输效率。
如图2所示,为本申请实施例二提供的数据编码方法的步骤流程图。该方法包括步骤:
步骤S210:获取原始数据。
具体地,所述原始数据中包括多条数据流。其中数据流依次排列,在编码的过程中,按照顺序进行对数据流进行编码。当数据传输时,按照数据流编码的顺序依次对数据流进行传输。
步骤S220:判断每一所述第一数据流是否满足预设标准。
其中所述数据流包括第一预设数量的数据位,每一所述第一数据位填充相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量。在本实施例中,所述第一预设数量的数值大于所述第二预设数量的数值,所述第一预设数量为8,因此该第一数据流为8Bit数据。每一所述数据位填充相应的数值,例如第一数据流所记录的是一种方波信号,该第一数据流的数据位填充相应的数值不是0就是1。
下文将详细讲述,预设标准的运算方法。假设第一数据流为8Bit数据(即M0至M7个数据位),第二预设数量为5,预设标准的详细逻辑运算如下:NAND(NAND(M7-M2), NAND(M6-M1), NAND(M5-M0),OR(M7-M2),OR(M6-M1),OR(M5-M0))==1。其中(M7-M2)表示M7,M6,M5,M4,M3和M2,其他参照(M7-M2),NAND表示异或运算,OR表示或运算,==表示是否等于。由此可知,NAND(M7-M2), NAND(M6-M1), NAND(M5-M0)表示M7-M0之中每6个连续的数值中是否存在0,OR(M7-M2),OR(M6-M1),OR(M5-M0)表示M7-M0之中每6个连续的数值中是否存在1。
步骤S230:获取不满足预设标准的第一数据流并记录为待赋值数据流。
即数据流中存在连续相同的数值,例如在一个8Bit的第一数据流为(1011 1111),该第一数据流为不满足预设标准的数据流,该第一数据流可能会在信道传输过程中发生误码的数据信号。
步骤S240:对所述待赋值数据流中每一所述数据位进行逻辑运算并赋值给第二数据流中的每一所述数据位。
在本实施例中,所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。所述第二数据流的数据位数量为9。对于待赋值数据流进行逻辑赋值时,首先要获取待赋值数据流的标记值,所述标记值用于提高数据流的离散性,具体如下:
参阅图3,图3为图2步骤S240的子步骤流程图。
步骤S240具体包括如下步骤:
步骤S241:将第一数据流中的第三数据位的数值赋至第二数据流中的第零数据位。
步骤S242:将第一数据流中的第五数据位的数值赋至第二数据流中的第三数据位。
步骤S243:将第一数据流中的第六数据位的数值赋至第二数据流中的第四数据位。
步骤S244:将第一数据流中的第四数据位的数值赋至第二数据流中的第七数据位。
步骤S245:将第一数据流中的第七数据位的数值赋至第二数据流中的第八数据位。
所述第二数据流中满足以下任意一种情况时,所述第二数据流中的第一数据位为第二数值,第一种情况为当第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;第二种情况为当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;第三种情况为当第一数据流中的第二数据位为第一数值且第一数据流中的第零数据位为第一数值时,所述第二数据流中的第一数据位为第二数值。
所述第二数据流中满足以下任意一种情况时,所述第二数据流中的第二数据位为第二数值,第一种情况为当第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第一数值时,所述第二数据流中的第二数据位为第二数值;第二种情况为当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第二数据位为第二数值;第三种情况为当第一数据流中的第一数据位为第一数值且第一数据流中的第零数据位为第二数值时,所述第二数据流中的第二数据位为第二数值。
所述第二数据流中满足以下任意一种情况时,所述第五数据流中的第二数据位为第二数值,第一种情况为当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;第二种情况为当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;第三种情况为当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值。
所述第二数据流中满足以下任意一种情况时,所述第六数据流中的第二数据位为第二数值,第一种情况为当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第六数据流中的第二数据位为第二数值;第二种情况为当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值;第三种情况为当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值。
其中所述第一数值为0,所述第二数值为1。
上述运算操作是进行多次试验测试所得,可以有效的调整第一数据流的离散性。在一些其他实施例中,所述运算操作还可以通过以下逻辑运算进行,例如
获取待赋值数据流中多个数据位的数值。
在本实施例中,例如在一个8Bit的数据流为(1011 1111),选取M0和M1,即M0=1,M1=0。对于选取数据位的个数不做限定,为了便于计算,一般选取两个数据位。而选取的数据位也可以是任意的,一般为了使数据流的离散性更好(即数据的波形跳跃频率高),选取相邻的数据位。
对待赋值数据流中多个数据位的数值进行异或运算得到所述待赋值数据流的标记值。
例如,选取M0=1,M1=0。假设标记值为X,X=NAND(M0,M1)。
根据所述标记值对所述待赋值数据流中每一所述数据位进行逻辑运算并赋值给第二数据流中的每一所述数据位。
根据步骤S241和步骤S242的计算,X=0,本实施例的逻辑运算如下,由于第二数据流为9Bit(即有9个数据位)N0-N8,其中N0=~M1,N1=~M1,N2=M1,N3=M2,N4=NAND(~X,M3),N5= NAND(X,M4),N6=~M5, N7= NAND(~X,M6),N8= NAND(X,M7)。通过上述逻辑运算即可增加数据流的离散性。
步骤S231:获取满足预设标准的第一数据流并记录为待填充数据流。
在此步骤中,所述预设标准的详细计算方法请参阅步骤S120的计算方法,此处不再赘述。
步骤S232:对所述待填充数据流增加第三预设数量的数据位得到所述第二数据流。
在本实施例中,所述第三预设数量为1,但不限于此,根据产品的需求,对信号的编码可以是更多位的,例如可以将8bit转换成10Bit等等。而此步骤,仅对待填充数据流增加第三预设数量的数据位,相较于待赋值数据流中每一所述数据位进行逻辑运算并赋值给第二数据流中的每一所述数据位的计算量小,因此可以简化编码和解码的运算时间,提高数据的传输效率。
另外,本实施例中,所述第三预设数量为1,即将8bit转换成9Bit相较于8bit转换成10Bit节约了传输信道。
本申请的优点在于,通过获取不满足预设标准的第一数据流并记录为待赋值数据流,对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流,所述满足预设标准的数据流增加第三预设数量的数据位得到所述第二数据流。从而可以筛选出满足预设标准的数据流,仅对不满足预设标准的数据流进行编码,降低了数据计算的复杂性,提高了数据的传输效率。
如图4所示,为本申请实施例三提供的数据编码装置的结构示意图。该装置包括:数据获取单元10、赋值数据获取单元20即数据赋值单元30。
数据获取单元10用于获取原始数据流。具体地,所述原始数据中包括多条数据流。其中数据流依次排列,在编码的过程中,按照顺序进行对数据流进行编码。当数据传输时,按照数据流编码的顺序依次对数据流进行传输。
赋值数据获取单元20用于判断每一所述第一数据流的离散性是否满足预设标准。其中所述第一数据流包括第一预设数量的数据位,每一所述数据位填充相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量。在本实施例中,所述第一预设数量的数值大于所述第二预设数量的数值,所述第一预设数量为8,因此该第一数据流为8Bit数据。每一所述数据位填充相应的数值,例如第一数据流所记录的是一种方波信号,该第一数据流的数据位填充相应的数值不是0就是1。
下文将详细讲述,预设标准的运算方法。假设数据流为8Bit数据(即M0至M7个数据位),第二预设数量为5,预设标准的详细逻辑运算如下:NAND(NAND(M7-M2), NAND(M6-M1), NAND(M5-M0),OR(M7-M2),OR(M6-M1),OR(M5-M0))==1。其中(M7-M2)表示M7,M6,M5,M4,M3和M2,其他参照(M7-M2),NAND表示异或运算,OR表示或运算,==表示是否等于。由此可知,NAND(M7-M2), NAND(M6-M1), NAND(M5-M0)表示M7-M0之中每6个连续的数值中是否存在0,OR(M7-M2),OR(M6-M1),OR(M5-M0)表示M7-M0之中每6个连续的数值中是否存在1。
第一数据流中存在连续相同的数值,例如在一个8Bit的第一数据流为(1011 1111),该第一数据流为不满足预设标准的数据流,该第一数据流可能会在信道传输过程中发生误码的数据信号。
数据赋值单元30用于对所述待赋值数据流中每一所述数据位进行逻辑运算并赋值给第二数据流中的每一所述数据位。在本实施例中,所述第二数据流中的数据位的数量大于数据流中数据位的数量。所述第二数据流的数据位数量为9。
本申请的优点在于,通过获取不满足预设标准的第一数据流并记录为待赋值数据流,对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流,所述满足预设标准的数据流增加第三预设数量的数据位得到所述第二数据流。从而可以筛选出满足预设标准的数据流,仅对不满足预设标准的数据流进行编码,降低了数据计算的复杂性,提高了数据的传输效率。
如图5所示,为本申请实施例四提供的一种存储介质结构示意图。所述存储介质1000包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM (PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM (RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种编码方法,其包括:
    获取原始数据,所述原始数据中包括多条第一数据流;
    获取不满足预设标准的第一数据流并记录为待赋值数据流,其中所述第一数据流包括第一预设数量的数据位,每一所述数据位填充有相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量;以及
    对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流。
  2. 根据权利要求1所述的数据编码方法,其中所述运算操作包括:
    将第一数据流中的第三数据位的数值赋至第二数据流中的第零数据位;
    将第一数据流中的第五数据位的数值赋至第二数据流中的第三数据位;
    将第一数据流中的第六数据位的数值赋至第二数据流中的第四数据位;
    将第一数据流中的第四数据位的数值赋至第二数据流中的第七数据位;以及
    将第一数据流中的第七数据位的数值赋至第二数据流中的第八数据位。
  3. 根据权利要求2所述的数据编码方法,其中所述运算操作还包括:
    当第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;
    当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;
    当第一数据流中的第二数据位为第一数值且第一数据流中的第零数据位为第一数值时,所述第二数据流中的第一数据位为第二数值;
    当第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第一数值时,所述第二数据流中的第二数据位为第二数值;
    当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第二数据位为第二数值;
    当第一数据流中的第一数据位为第一数值且第一数据流中的第零数据位为第二数值时,所述第二数据流中的第二数据位为第二数值。
  4. 根据权利要求3所述的数据编码方法,其中所述运算操作还包括:
    当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;
    当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;
    当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;
    当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第六数据流中的第二数据位为第二数值;
    当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值;
    当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值。
  5. 根据权利要求1所述的数据编码方法,其包括步骤:
    获取满足预设标准的第一数据流并记录为待填充数据流;以及
    对所述待填充数据流增加第三预设数量的数据位得到所述第二数据流。
  6. 根据权利要求1所述的数据编码方法,其中所述第一预设数量的数值大于所述第二预设数量的数值。
  7. 根据权利要求1所述的数据编码方法,其中所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。
  8. 根据权利要求1所述的数据编码方法,其中所述第二预设数量的数值不超过5。
  9. 一种数据编码装置,其包括:
    一数据获取单元,用于获取原始数据流,所述原始数据流中包括多条数据流;
    一赋值数据获取单元,用于获取不满足预设标准的第一数据流并记录为待赋值数据流,其中所述数据流包括第一预设数量的数据位,每一所述数据位填充有相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量;以及
    一数据赋值单元,用于对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流。
  10. 根据权利要求9所述的数据编码装置,其中所述第一预设数量的数值大于所述第二预设数量的数值。
  11. 根据权利要求9所述的数据编码装置,其中所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。
  12. 根据权利要求9所述的数据编码装置,其中所述第二预设数量的数值不超过5。
  13. 一种存储介质,其中所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行编码方法,所述编码方法包括:
    获取原始数据,所述原始数据中包括多条第一数据流;
    获取不满足预设标准的第一数据流并记录为待赋值数据流,其中所述第一数据流包括第一预设数量的数据位,每一所述数据位填充有相应的数值,所述预设标准为连续的数据位中相同的数值不超过第二预设数量;以及
    对所述待赋值数据流中的第一数据流进行运算操作以生成满足预设标准的第二数据流。
  14. 根据权利要求13所述的存储介质,其中所述运算操作包括:
    将第一数据流中的第三数据位的数值赋至第二数据流中的第零数据位;
    将第一数据流中的第五数据位的数值赋至第二数据流中的第三数据位;
    将第一数据流中的第六数据位的数值赋至第二数据流中的第四数据位;
    将第一数据流中的第四数据位的数值赋至第二数据流中的第七数据位;以及
    将第一数据流中的第七数据位的数值赋至第二数据流中的第八数据位。
  15. 根据权利要求14所述的存储介质,其中所述运算操作还包括:
    当第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;
    当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第一数据位为第二数值;
    当第一数据流中的第二数据位为第一数值且第一数据流中的第零数据位为第一数值时,所述第二数据流中的第一数据位为第二数值;
    当第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第一数值时,所述第二数据流中的第二数据位为第二数值;
    当第一数据流中的第三数据位为第一数值,第一数据流中的第二数据位为第二数值且第一数据流中的第一数据位为第二数值时,所述第二数据流中的第二数据位为第二数值;
    当第一数据流中的第一数据位为第一数值且第一数据流中的第零数据位为第二数值时,所述第二数据流中的第二数据位为第二数值。
  16. 根据权利要求15所述的存储介质,其中所述运算操作还包括:
    当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;
    当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;
    当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第一数值时,所述第五数据流中的第二数据位为第二数值;
    当第一数据流中的第四数据位为第一数值,第一数据流中的第二数据位为第一数值且第一数据流中的第一数据位为第一数值时,所述第六数据流中的第二数据位为第二数值;
    当第一数据流中的第二数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值;
    当第一数据流中的第一数据位为第二数值且第一数据流中的第零数据位为第二数值时,所述第六数据流中的第二数据位为第二数值。
  17. 根据权利要求16所述的存储介质,其中所述编码方法还包括步骤:
    获取满足预设标准的第一数据流并记录为待填充数据流;以及
    对所述待填充数据流增加第三预设数量的数据位得到所述第二数据流。
  18. 根据权利要求13所述的存储介质,其中所述第一预设数量的数值大于所述第二预设数量的数值。
  19. 根据权利要求13所述的存储介质,其中所述第二数据流中的数据位的数量大于第一数据流中数据位的数量。
  20. 根据权利要求13所述的存储介质,其中所述第二预设数量的数值不超过5。
PCT/CN2021/084646 2021-03-19 2021-03-31 数据编码方法、装置及储介质 WO2022193372A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/294,695 US20240088911A1 (en) 2021-03-19 2021-03-31 Data encoding method, device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110294235.6A CN113407358B (zh) 2021-03-19 2021-03-19 数据编码方法、装置及存储介质
CN202110294235.6 2021-03-19

Publications (1)

Publication Number Publication Date
WO2022193372A1 true WO2022193372A1 (zh) 2022-09-22

Family

ID=77677761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084646 WO2022193372A1 (zh) 2021-03-19 2021-03-31 数据编码方法、装置及储介质

Country Status (3)

Country Link
US (1) US20240088911A1 (zh)
CN (1) CN113407358B (zh)
WO (1) WO2022193372A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768587A (zh) * 2018-05-11 2018-11-06 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN108847916A (zh) * 2018-05-30 2018-11-20 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN110474710A (zh) * 2018-05-11 2019-11-19 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN110474709A (zh) * 2018-05-11 2019-11-19 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
US10652625B1 (en) * 2016-06-27 2020-05-12 Amazon Technologies, Inc. Synchronization of multiple encoders for streaming content
CN111384959A (zh) * 2018-12-28 2020-07-07 上海寒武纪信息科技有限公司 编码方法、处理器、编码模块及存储介质

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086575B (zh) * 2019-05-06 2021-10-08 Tcl华星光电技术有限公司 编码方法、解码方法、相关装置及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10652625B1 (en) * 2016-06-27 2020-05-12 Amazon Technologies, Inc. Synchronization of multiple encoders for streaming content
CN108768587A (zh) * 2018-05-11 2018-11-06 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN110474710A (zh) * 2018-05-11 2019-11-19 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN110474709A (zh) * 2018-05-11 2019-11-19 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN108847916A (zh) * 2018-05-30 2018-11-20 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN111384959A (zh) * 2018-12-28 2020-07-07 上海寒武纪信息科技有限公司 编码方法、处理器、编码模块及存储介质

Also Published As

Publication number Publication date
US20240088911A1 (en) 2024-03-14
CN113407358A (zh) 2021-09-17
CN113407358B (zh) 2023-10-31

Similar Documents

Publication Publication Date Title
US7495587B2 (en) Low power balance code using data bus inversion
US7616133B2 (en) Data bus inversion apparatus, systems, and methods
US10268542B2 (en) Method and apparatus for treatment of state confidence data retrieved from a non-volatile memory array
TWI527048B (zh) 應用於快閃記憶體裝置的錯誤更正碼單元、自我測試方法及相關的控制器
US8898374B2 (en) Flash memory device and method for managing flash memory device
US20080192649A1 (en) Apparatus and method for producing identifiers regardless of mixed device type in a serial interconnection
US20120166904A1 (en) Data bus inversion using spare error correction bits
TWI676102B (zh) 能防止刷新錯誤的半導體裝置及使用該半導體裝置的記憶體系統
WO2018192488A1 (zh) 一种nand闪存设备的数据处理方法及装置
US9502104B2 (en) Multi-level cell (MLC) non-volatile memory data reading method and apparatus
US9594627B2 (en) Controller and control method
US20220321256A1 (en) Decoding method, decoding device, and readable storage medium
JPH11250695A (ja) 多値式半導体メモリ装置およびその不良救済方法
WO2022193372A1 (zh) 数据编码方法、装置及储介质
US20060200606A1 (en) Bus connection method and apparatus
US20100020619A1 (en) Memory controller, memory system, recording and reproducing method for memory system, and recording apparatus
WO2021077784A1 (zh) 写操作电路、半导体存储器和写操作方法
CN112947875B (zh) 数据编码方法、装置、存储介质及计算机设备
CN112929032A (zh) 数据编码方法、装置、存储介质及计算机设备
JP2007323786A (ja) 半導体装置
WO2023103148A1 (zh) 地址刷新电路、方法、存储器和电子设备
CN110087080B (zh) 解码方法、设备及可读存储介质
US10573215B2 (en) Method and device for simplifying TCON signal processing
CN113708890B (zh) 数据编码方法、数据解码方法、存储介质及计算机设备
CN109309548B (zh) 编码方法、设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21930960

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21930960

Country of ref document: EP

Kind code of ref document: A1