WO2019242180A1 - 解码方法、设备及可读存储介质 - Google Patents

解码方法、设备及可读存储介质 Download PDF

Info

Publication number
WO2019242180A1
WO2019242180A1 PCT/CN2018/111415 CN2018111415W WO2019242180A1 WO 2019242180 A1 WO2019242180 A1 WO 2019242180A1 CN 2018111415 W CN2018111415 W CN 2018111415W WO 2019242180 A1 WO2019242180 A1 WO 2019242180A1
Authority
WO
WIPO (PCT)
Prior art keywords
bit stream
bit
original
bits
undergone
Prior art date
Application number
PCT/CN2018/111415
Other languages
English (en)
French (fr)
Inventor
赵斌
张裕桦
周明忠
曹丹
王拂依
Original Assignee
深圳市华星光电技术有限公司
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 深圳市华星光电技术有限公司 filed Critical 深圳市华星光电技术有限公司
Publication of WO2019242180A1 publication Critical patent/WO2019242180A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver

Definitions

  • the present application relates to the field of data transmission, and in particular, to a decoding method, a device, and a readable storage medium.
  • the transmitted data can be encoded into a code stream containing a clock frequency component, so that the receiver can extract clock synchronization information from the code stream.
  • the clock synchronization information can ensure that the receiver receives The original data is reproduced from the signal, that is, it is successfully decoded.
  • 4B5B is a commonly used encoding. It converts the input 4-bit data to 5-bit and outputs it. Generally, look up the designed code table to complete the encoding and decoding work, so the sender and receiver both need additional memory to store the code table. 4B5B encoding may also reduce the encoding quality, that is, the number of consecutive bits with the same logical value is too large, such as when transmitting 8-bit data using 4B5B encoding. Low-quality coding is not good for the receiver to extract clock synchronization information, and it brings a large DC component, which improves the bit error rate.
  • the technical problem mainly solved by this application is to provide a decoding method, a device and a readable storage medium, which can solve the problem that the encoding in the prior art may reduce the encoding quality.
  • this application provides a readable storage medium that stores instructions.
  • the following method is implemented: performing an exclusive-OR logical operation on a specific bit and an identification bit in the first bit stream to determine the original bit. Whether the stream has undergone quality adjustment; if the operation result indicates that the original bit stream has undergone quality adjustment, the first bit stream is converted into a third bit stream; if the operation result indicates that the original bit stream has not undergone quality adjustment, the first bit is directly output Stream; assigning bits other than the identification bit in the output first bit stream or the third bit stream to the second bit stream; wherein converting the first bit stream into the third bit stream includes: judging whether the first bit stream Meet the data conversion standards; if the data conversion standards are met, the first bit stream is converted as the third bit stream after the first conversion, and if the data conversion standards are not met, the first bit stream is subjected to the second conversion as the third bit stream Bit stream output, the first conversion is different from the second conversion; the number of bits in the
  • AND is an AND operation
  • OR is an OR operation
  • is an inversion operation
  • bn [i] is an i-th bit of the first bit stream.
  • this application provides a decoding method, which includes: performing an exclusive-OR operation on a specific bit and an identification bit in the first bit stream to determine whether the original bit stream has undergone quality adjustment; if the operation result is Indicates that the original bitstream has undergone quality adjustment, then the first bitstream is converted into a third bitstream, and if the operation result indicates that the original bitstream has not undergone quality adjustment, the first bitstream is directly output; the first bit output is output The bit stream or the third bit stream other than the identification bit is assigned to the second bit stream; converting the first bit stream into the third bit stream includes: determining whether the first bit stream meets the data conversion standard; if the data is met The conversion standard outputs the first bit stream as the third bit stream after the first conversion. If the data conversion criteria are not met, the second bit stream is output as the third bit stream after the second conversion. The second conversion is different.
  • the present application provides a decoding device, which includes a processor, and the processor is configured to execute instructions to implement the foregoing method.
  • the beneficial effect of this application is: performing an exclusive-OR logical operation on a specific bit and an identification bit in the first bit stream to determine whether the original bit stream has undergone quality adjustment; if the operation result indicates that the original bit stream has undergone quality adjustment, then Convert the first bit stream into a third bit stream. If the operation result indicates that the original bit stream has not been adjusted for quality, the first bit stream is directly output; the output first bit stream or the third bit stream is excluding the identification bit. Assigning other bits to the second bit stream; converting the first bit stream into the third bit stream includes: determining whether the first bit stream meets the data conversion standard; if the data conversion standard is met, performing the first bit stream first It is output as the third bit stream after conversion.
  • the second bit stream is output as the third bit stream after the second conversion.
  • the first conversion is different from the second conversion.
  • the first bitstream is the received encoded bitstream.
  • the quality of the first bit stream thereby reducing the bit error rate; at the same time, a code table is not required to complete decoding, and the memory storing the code table is omitted.
  • FIG. 1 is a schematic flowchart of an embodiment of a decoding method according to the present application
  • FIG. 2 is a schematic flowchart of a specific embodiment of a decoding method according to the present application.
  • FIG. 3 is a schematic structural diagram of an embodiment of a decoding device according to the present application.
  • FIG. 4 is a schematic structural diagram of an embodiment of a readable storage medium of the present application.
  • an embodiment of the decoding method of the present application includes:
  • S1 Perform an exclusive OR operation on a specific bit and an identification bit in the first bit stream to determine whether the original bit stream has undergone quality adjustment.
  • the first bit stream can be undecoded data, and the number of bits can be determined according to actual transmission requirements, such as 9 bits, 17 bits, and so on.
  • the number of bits in the first bitstream is greater than the number of bits in the original bitstream.
  • This quality criterion may be related to consecutive bits of the same logical value in the original bitstream. In general, consecutive bits with the same logical value in the original bit stream that meet the quality standards do not exceed a threshold.
  • the size of the threshold can be related to the number of bits in the original bit stream, such as half the number of bits in the original bit stream plus A positive integer.
  • the first bit stream includes an identification bit and a specific bit, and is used to distinguish whether the original bit stream has undergone quality adjustment.
  • the first bit stream is a 9-bit bit stream
  • the specific bit may be the first bit
  • the identification bit may be the 0th bit.
  • An exclusive OR operation can be performed on a specific bit and an identification bit in the first bit stream to obtain an operation result, and then, it is determined whether the original bit stream has undergone quality adjustment according to the operation result.
  • other methods may also be used to determine whether the logical values of the identification bit and the specific bit are equal.
  • the operation result is not equal to 1 (that is, equal to 0), which means that the specific bit and the identification bit are the same, it is determined that the original bit stream has undergone quality adjustment. It is determined that the original bitstream has not undergone quality adjustment.
  • the correspondence between which operation result is selected and the result of the quality adjustment judgment can be determined by the assignment method of the identification bit selected by the transmitting end in the encoding process.
  • S3 Perform the first conversion on the first bit stream and output it as the third bit stream.
  • S2-S4 describes the process of converting the first bit stream into the third bit stream.
  • the conversion process corresponds to the quality adjustment process in the encoding process at the transmitting end, so that some bits in the quality-adjusted first bit stream are restored to the original bit stream.
  • the first conversion is different from the second conversion.
  • the first conversion may include inverting the first bit set in the first bit stream
  • the second conversion may include inverting the second bit set in the first bit stream.
  • the first bit set and the second bit set Set different.
  • the difference between the first bit set and the second bit set means that at least one of the bits included in them is different.
  • the first bit stream is a 9-bit bit stream, and it is determined whether the first bit stream meets a data conversion standard.
  • the inversion result of the 7th bit of the first bitstream, and the logical values of the 5th and 6th bits are different, it is determined that the first bitstream meets the data conversion standard.
  • the above judgment method can be converted into a judgment on the calculation result of the following logical expression:
  • AND is an AND operation
  • OR is an OR operation
  • is an inversion operation
  • bn [i] is an i-th bit of the first bit stream.
  • the inversion result of the 7th bit of the first bitstream the logical values of the 5th and 6th bits are different, that is, the logical values of bn [5], bn [6], and ⁇ bn [7] are different, meaning At least one of 5], bn [6], and ⁇ bn [7] is 0, the other is 1, OR (bn [5], bn [6], ⁇ bn [7]) is 1; because ⁇ bn [ 5] is the negation result of bn [5], ⁇ bn [6] is the negation result of bn [6], bn [7] is the negation result of ⁇ bn [7], and can be deduced ⁇ bn [5] , At least one of ⁇ bn [6] and bn [7] is 0, the other is 1, OR ( ⁇ bn [5], ⁇ bn [6], bn [7]) is 1, the logical expression (1 ) Is calculated as 1.
  • the first bit set in the first bit stream is inverted and output as the third bit stream.
  • the first bit set includes the first, fourth, sixth, and seventh bits. If the first bit stream does not satisfy the data conversion standard, the second bit set in the first bit stream is inverted and output as the third bit stream.
  • the second bit set includes the fifth, sixth, and eighth bits.
  • the third bit stream is still a 9-bit bit stream, and the identification bit is still the 0th bit.
  • S6 Assign bits other than the identification bit in the output first bit stream or the third bit stream to the second bit stream.
  • the first bitstream directly output is a combination of the original bitstream and the identification bit; if the original bitstream is adjusted for quality, the third bitstream is output after the first bitstream is converted Is a combination of the original bitstream and the identification bit. Assign other bits in the output first bit stream or third bit stream other than the identification bit to the second bit stream, and the second bit stream is the original bit stream, thereby completing decoding.
  • an exclusive-OR logical operation is performed on a specific bit and an identification bit in the first bitstream to determine whether the original bitstream has undergone quality adjustment; if the operation result indicates that the original bitstream has undergone quality adjustment, the first A bit stream is converted into a third bit stream. If the operation result indicates that the original bit stream has not been adjusted for quality, the first bit stream is directly output; the output first bit stream or the third bit stream is other than the identification bit.
  • Bits are assigned to the second bitstream; converting the first bitstream to the third bitstream includes: determining whether the first bitstream meets the data conversion standard; if the data conversion standard is met, performing the first conversion on the first bitstream As a third bit stream output, if the data conversion criteria are not met, the second bit stream is output as a third bit stream after the second conversion.
  • the first conversion is different from the second conversion.
  • the first bitstream is the received encoded bitstream.
  • the quality of the first bit stream thereby reducing the bit error rate; at the same time, a code table is not required to complete decoding, and the memory storing the code table is omitted.
  • the decoding method includes:
  • S12 Determine whether the logical values of the 0th bit (identification bit) and the 1st bit (specific bit) in the first bit stream are equal.
  • the remaining bits are unchanged. After being inverted, it is output as the third bit stream and jumps to S16.
  • the remaining bits are unchanged. After being inverted, it is output as the third bit stream and jumps to S16.
  • the obtained second bit stream bm [0-7] is the original bit stream, and decoding is completed.
  • an embodiment of the decoding device of the present application includes: a processor 110.
  • the decoding device may further include a memory (not shown).
  • the processor 110 controls the operation of the decoding device.
  • the processor 110 may also be referred to as a CPU (Central Processing Unit).
  • the processor 110 may be an integrated circuit chip and has a processing capability of a signal sequence.
  • the processor 110 may also be a general-purpose processor, a digital signal sequence processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware. Components.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the processor 110 is configured to execute instructions to implement the method provided by any embodiment and possible combination of the decoding methods of the present application.
  • an embodiment of the readable storage medium of the present application includes a memory 210 that stores instructions that, when executed, implement the method provided by any embodiment and possible combination of the decoding method of the present application.
  • the memory 210 may include a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a flash memory (Flash), a hard disk, an optical disk, and the like.
  • ROM read-only memory
  • RAM random access memory
  • flash flash memory
  • the disclosed methods and devices may be implemented in other ways.
  • the device implementation described above is only schematic.
  • the division of the modules or units is only a logical function division.
  • multiple units or components may The combination can either be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may be separately physically included, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium , Including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or part of the steps of the method described in each embodiment of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本申请公开了一种解码方法,该方法包括:对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;若运算结果表示所述原始比特流经过了质量调整,则判断第一比特流是否满足数据转换标准;根据判断结果,对第一比特流进行第一/第二转换后作为第三比特流输出,若运算结果表示原始比特流未经过质量调整,则直接输出第一比特流;将输出的第一比特流或第三比特流中除标识位之外的其他位赋值给第二比特流;其中第一转换与第二转换不同。本申请还公开了一种解码装置和可读存储介质。

Description

解码方法、设备及可读存储介质 【技术领域】
本申请涉及数据传输领域,特别是涉及一种解码方法、设备及可读存储介质。
【背景技术】
在串行数据传输中,传输的数据可以被编码成包含有时钟频率分量的码流,使得接收端可以从码流中提取时钟同步信息,时钟同步信息可以保证接收端按照正确的时序从接收到的信号中再生出原始数据,即成功解码。
4B5B是常用的编码,将输入的4位数据转换为5位后输出。一般使用查找设计好的码表来完成编码和解码工作,因此发送端和接收端都需要额外的存储器来存储码表。4B5B编码还可能降低编码质量,即逻辑值相同的连续位数量过多,例如在使用4B5B编码传输8位数据时。低质量的编码不利于接收端提取时钟同步信息,并且带来较大的直流分量,提高误码率。
【发明内容】
本申请主要解决的技术问题是提供一种解码方法、设备及可读存储介质,能够解决现有技术中的编码可能降低编码质量的问题。
为了解决上述技术问题,本申请提供了一种可读存储介质,存储有指令,指令被执行时实现以下方法:对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;若运算结果表示原始比特流经过了质量调整,则将第一比特流转换成第三比特流,若运算结果表示原始比特流未经过质量调整,则直接输出第一比特流;将输出的第一比特流或第三比特流中除标识位之外的其他位赋值给第二比特流;其中将第一比特流转换成第三比特流包括:判断第一比特流是否满足数据转换标准;若满足数据转换标准,则对第一比特流进行第一转换后作为第三比特流输出,若不满足数据转换标准,则对第一比特流进行第二转换后作为第三比特流输出,第一转换与第二转换不同;第一比特流的位数为9,判断第一比特流是否满足数据转换标准包括:若第 一比特流的第7位的取反结果、第5位和第6位的逻辑值不同,则判定第一比特流满足数据转换标准;判断第一比特流是否满足数据转换标准包括:若以下逻辑表达式的计算结果等于1,则判定第一比特流满足数据转换标准:
AND(OR(bn[5],bn[6],~bn[7]),OR(~bn[5],~bn[6],bn[7]))
其中,AND为与操作,OR为或操作,~为取反操作,bn[i]为第一比特流的第i位。
为了解决上述技术问题,本申请提供了一种解码方法,该方法包括:对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;若运算结果表示所述原始比特流经过了质量调整,则将第一比特流转换成第三比特流,若运算结果表示原始比特流未经过质量调整,则直接输出第一比特流;将输出的第一比特流或第三比特流中除标识位之外的其他位赋值给第二比特流;其中将第一比特流转换成第三比特流包括:判断第一比特流是否满足数据转换标准;若满足数据转换标准,则对第一比特流进行第一转换后作为第三比特流输出,若不满足数据转换标准,则对第一比特流进行第二转换后作为第三比特流输出,第一转换与第二转换不同。
为了解决上述技术问题,本申请提供了一种解码装置,该装置包括处理器,处理器用于执行指令以实现前述的方法。
本申请的有益效果是:对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;若运算结果表示所述原始比特流经过了质量调整,则将第一比特流转换成第三比特流,若运算结果表示原始比特流未经过质量调整,则直接输出第一比特流;将输出的第一比特流或第三比特流中除标识位之外的其他位赋值给第二比特流;其中将第一比特流转换成第三比特流包括:判断第一比特流是否满足数据转换标准;若满足数据转换标准,则对第一比特流进行第一转换后作为第三比特流输出,若不满足数据转换标准,则对第一比特流进行第二转换后作为第三比特流输出,第一转换与第二转换不同。第一比特流是接收到的编码之后的比特流,在解码过程中需要判断原始比特流是否经过了质量调整,说明在编码过程中对编码质量不符合要求的原始比特流进行了质量调整以保障第一比特流的质量,从而降低误码率;同时不需要码表来完成解码,省去了存储码表的存储器。
【附图说明】
图1是本申请解码方法一实施例的流程示意图;
图2是本申请解码方法一具体实施例的流程示意图;
图3是本申请解码设备一实施例的结构示意图;
图4是本申请可读存储介质一实施例的结构示意图。
【具体实施方式】
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,以下各实施例中不冲突的可以相互结合。显然,所描述的实施例仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图1所示,本申请解码方法一实施例包括:
S1:对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整。
第一比特流可以为未经解码的数据,其位数可以根据实际传输需求而定,例如9位、17位等。第一比特流的位数大于原始比特流的位数。在编码过程中,需要判断原始比特流的质量是否满足质量标准,如果不满足则需要对原始比特流进行质量调整。该质量标准可以与原始比特流中逻辑值相同的连续位有关。一般来说,满足质量标准的原始比特流中的逻辑值相同的连续位数不超过一阈值,该阈值的大小可以与原始比特流的位数相关,例如原始比特流的位数的一半加上一个正整数。
第一比特流包括标识位和特定位,用于区分原始比特流是否经过了质量调整。标识位和特定位的位数以及在第一比特流中的位置并无限制。例如,第一比特流为9位比特流,特定位可以为第1位,标识位可以为第0位。可以对第一比特流中的特定位和标识位进行异或逻辑运算得到运算结果,然后根据运算结果来判断原始比特流是否经过了质量调整。在其他实施例中,也可以采用其他方式来判断标识位和特定位的逻辑值是否相等。
具体的,若运算结果不等于1(即等于0),意味着特定位和标识位相同,则判定原始比特流经过了质量调整,若运算结果等于1,意味着特定位和标识位 不同,则判定原始比特流未经过质量调整。
当然也可以反过来,即若运算结果等于1,则判定原始比特流经过了质量调整,若运算结果不等于1,则判定原始比特流未经过质量调整。
实际应用中,选择哪种运算结果和是否经过质量调整的判断结果之间的对应关系可以由发送端在编码过程中选择的标识位的赋值方式决定。
若运算结果表示原始比特流经过了质量调整,则跳转到S2;若运算结果表示原始比特流未经过质量调整,则跳转到S5。
S2:判断第一比特流是否满足数据转换标准。
若第一比特流满足数据转换标准,则跳转到S3;若第一比特流不满足数据转换标准,则跳转到S4。
S3:对第一比特流进行第一转换后作为第三比特流输出。
然后跳转到S6。
S4:对第一比特流进行第二转换后作为第三比特流输出。
然后跳转到S6。
S2-S4描述了将第一比特流转换成第三比特流的过程。一般而言,转换过程与发送端编码过程中的质量调整过程相对应,从而将质量调整后的第一比特流中的部分位恢复为原始比特流。
第一转换与第二转换不同。例如,第一转换可以包括对第一比特流中的第一位集进行取反,第二转换可以包括对第一比特流中的第二位集进行取反,第一位集与第二位集不同。第一位集和第二位集不同是指二者包括的位中至少有一位不同。
举例说明具体的转换过程。第一比特流为9位比特流,判断第一比特流是否满足数据转换标准。
具体的,若第一比特流的第7位的取反结果、第5位和第6位的逻辑值不同,则判定第一比特流满足数据转换标准。
可选的,可以将上述判断方式转换为对以下逻辑表达式计算结果的判断:
AND(OR(bn[5],bn[6],~bn[7]),OR(~bn[5],~bn[6],bn[7]))   (1)
其中,AND为与操作,OR为或操作,~为取反操作,bn[i]为第一比特流的第i位。
第一比特流的第7位的取反结果、第5位和第6位的逻辑值不同,即bn[5]、bn[6]和~bn[7]的逻辑值不同,意味着bn[5]、bn[6]和~bn[7]中至少有一个为0, 另一个为1,OR(bn[5],bn[6],~bn[7])为1;由于~bn[5]是bn[5]的取反结果,~bn[6]是bn[6]的取反结果,bn[7]是~bn[7]的取反结果,可以推导出~bn[5]、~bn[6]和bn[7]中至少有一个为0,另一个为1,OR(~bn[5],~bn[6],bn[7])为1,逻辑表达式(1)的计算结果为1。
实际应用中,也可以采用其他等效的逻辑式来进行判断,在此不做限制。
若第一比特流满足数据转换标准,则对第一比特流中的第一位集进行取反之后作为第三比特流输出,第一位集包括第1、4、6和7位。若第一比特流不满足数据转换标准,则对第一比特流中的第二位集进行取反之后作为第三比特流输出,第二位集包括第5、6和8位。第三比特流仍为9位比特流,标识位仍为第0位。
S5:直接输出第一比特流。
跳转到S6。
S6:将输出的第一比特流或第三比特流中除标识位之外的其他位赋值给第二比特流。
若原始比特流未经质量调整,直接输出的第一比特流为原始比特流和标识位的组合;若原始比特流经过了质量调整,对第一比特流进行了转换之后输出的第三比特流为原始比特流和标识位的组合。将输出的第一比特流或第三比特流中除标识位之外的其他位赋值给第二比特流,第二比特流即为原始比特流,从而完成解码。
通过本实施例的实施,对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;若运算结果表示原始比特流经过了质量调整,则将第一比特流转换成第三比特流,若运算结果表示原始比特流未经过质量调整,则直接输出第一比特流;将输出的第一比特流或第三比特流中除标识位之外的其他位赋值给第二比特流;其中将第一比特流转换成第三比特流包括:判断第一比特流是否满足数据转换标准;若满足数据转换标准,则对第一比特流进行第一转换后作为第三比特流输出,若不满足数据转换标准,则对第一比特流进行第二转换后作为第三比特流输出,第一转换与第二转换不同。第一比特流是接收到的编码之后的比特流,在解码过程中需要判断原始比特流是否经过了质量调整,说明在编码过程中对编码质量不符合要求的原始比特流进行了质量调整以保障第一比特流的质量,从而降低误码率;同时不需要码表来完成解码,省去了存储码表的存储器。
下面结合附图举例说明完整的解码过程。
如图2所示,在本申请一具体实施例中,解码方法包括:
S11:获取第一比特流bn[0~8]。
S12:判断第一比特流中的第0位(标识位)和第1位(特定位)的逻辑值是否相等。
图中的==表示等于,=表示赋值。具体的,可以对标识位和特定位进行异或逻辑运算,若运算结果为0,表示标识位和特定位的逻辑值相等,若运算结果为1,表示标识位和特定位的逻辑值不等。
若标识位和特定位的逻辑值相等,则跳转到S13;若标识位和特定位的逻辑值不等,则跳转到S16。
S13:判断逻辑表达式(1)的计算结果是否为1。
若逻辑表达式(1)的计算结果为1,则跳转到S14;若逻辑表达式(1)的计算结果为0,则跳转到S15。
S14:对bn[1]、bn[4]、bn[6]和bn[7]取反。
其余位不变,取反之后作为第三比特流输出,跳转到S16。
S15:对bn[5]、bn[6]和bn[8]进行取反。
其余位不变,取反之后作为第三比特流输出,跳转到S16。
S16:将bn[1-8]赋值给第二比特流bm[0~7]。
bn[0](标识位)被忽略。得到的第二比特流bm[0~7]即为原始比特流,完成解码。
如图3所示,本申请解码设备一实施例包括:处理器110。除此之外,解码设备还可以包括存储器(图中未画出)。
处理器110控制解码设备的操作,处理器110还可以称为CPU(Central Processing Unit,中央处理单元)。处理器110可能是一种集成电路芯片,具有信号序列的处理能力。处理器110还可以是通用处理器、数字信号序列处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
处理器110用于执行指令以实现本申请解码方法任一实施例及可能的组合所提供的方法。
如图4所示,本申请可读存储介质一实施例包括存储器210,存储器210存 储有指令,该指令被执行时实现本申请解码方法任一实施例及可能的组合所提供的方法。
存储器210可以包括只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、闪存(Flash Memory)、硬盘、光盘等。
在本申请所提供的几个实施例中,应该理解到,所揭露的方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (17)

  1. 一种可读存储介质,存储有指令,其中,所述指令被执行时实现以下方法:
    对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;
    若运算结果表示所述原始比特流经过了所述质量调整,则将所述第一比特流转换成第三比特流,若所述运算结果表示所述原始比特流未经过所述质量调整,则直接输出所述第一比特流;
    将输出的所述第一比特流或所述第三比特流中除所述标识位之外的其他位赋值给第二比特流;
    其中所述将所述第一比特流转换成第三比特流包括:
    判断所述第一比特流是否满足数据转换标准;
    若满足所述数据转换标准,则对所述第一比特流进行第一转换后作为所述第三比特流输出,若不满足所述数据转换标准,则对所述第一比特流进行第二转换后作为所述第三比特流输出,所述第一转换与所述第二转换不同;
    所述第一比特流的位数为9,所述判断所述第一比特流是否满足数据转换标准包括:
    若所述第一比特流的第7位的取反结果、第5位和第6位的逻辑值不同,则判定所述第一比特流满足所述数据转换标准;
    所述判断所述第一比特流是否满足数据转换标准包括:
    若以下逻辑表达式的计算结果等于1,则判定所述第一比特流满足所述数据转换标准:
    AND(OR(bn[5],bn[6],~bn[7]),OR(~bn[5],~bn[6],bn[7]))
    其中,AND为与操作,OR为或操作,~为取反操作,bn[i]为所述第一比特流的第i位。
  2. 一种解码方法,其中,所述方法包括:
    对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;
    若运算结果表示所述原始比特流经过了所述质量调整,则将所述第一比特流转换成第三比特流,若所述运算结果表示所述原始比特流未经过所述质量调 整,则直接输出所述第一比特流;
    将输出的所述第一比特流或所述第三比特流中除所述标识位之外的其他位赋值给第二比特流;
    其中所述将所述第一比特流转换成第三比特流包括:
    判断所述第一比特流是否满足数据转换标准;
    若满足所述数据转换标准,则对所述第一比特流进行第一转换后作为所述第三比特流输出,若不满足所述数据转换标准,则对所述第一比特流进行第二转换后作为所述第三比特流输出,所述第一转换与所述第二转换不同。
  3. 根据权利要求2所述的方法,其中,所述对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整包括:
    对所述第一比特流中的所述特定位和所述标识位进行所述异或逻辑运算得到所述运算结果;
    若所述运算结果不等于1,则判定所述原始比特流经过了所述质量调整,若所述运算结果等于1,则
    判定所述原始比特流未经过所述质量调整。
  4. 根据权利要求2所述的方法,其中,所述对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整包括:
    对所述第一比特流中的所述特定位和所述标识位进行所述异或逻辑运算得到所述运算结果;
    若所述运算结果等于1,则判定所述原始比特流经过了所述质量调整,若所述运算结果不等于1,则判定所述原始比特流未经过所述质量调整。
  5. 根据权利要求2所述的方法,其中,
    所述第一转换包括对所述第一比特流中的第一位集进行取反,所述第二转换包括对所述第一比特流中的第二位集进行取反,所述第一位集与所述第二位集不同。
  6. 根据权利要求5所述的方法,其中,所述第一比特流的位数为9,所述第一位集包括第1、4、6和7位,所述第二位集包括第5、6和8位。
  7. 根据权利要求2所述的方法,其中,所述第一比特流的位数为9,所述判断所述第一比特流是否满足数据转换标准包括:
    若所述第一比特流的第7位的取反结果、第5位和第6位的逻辑值不同,则判定所述第一比特流满足所述数据转换标准。
  8. 根据权利要求2所述的方法,其中,所述第一比特流的位数为9,所述判断所述第一比特流是否满足数据转换标准包括:
    若以下逻辑表达式的计算结果等于1,则判定所述第一比特流满足所述数据转换标准:
    AND(OR(bn[5],bn[6],~bn[7]),OR(~bn[5],~bn[6],bn[7]))
    其中,AND为与操作,OR为或操作,~为取反操作,bn[i]为所述第一比特流的第i位。
  9. 根据权利要求2所述的方法,其中,所述第一比特流和所述第三比特流均为9位比特流,所述第一比特流中的所述特定位为第1位,所述第一比特流和所述第三比特流中的所述标识位为第0位。
  10. 一种解码设备,其中,包括处理器,所述处理器用于执行指令以对第一比特流中的特定位和标识位进行异或逻辑运算以判断原始比特流是否经过了质量调整;若运算结果表示所述原始比特流经过了所述质量调整,则将所述第一比特流转换成第三比特流,若所述运算结果表示所述原始比特流未经过所述质量调整,则直接输出所述第一比特流;将输出的所述第一比特流或所述第三比特流中除所述标识位之外的其他位赋值给第二比特流;其中所述将所述第一比特流转换成第三比特流包括:判断所述第一比特流是否满足数据转换标准;若满足所述数据转换标准,则对所述第一比特流进行第一转换后作为所述第三比特流输出,若不满足所述数据转换标准,则对所述第一比特流进行第二转换后作为所述第三比特流输出,所述第一转换与所述第二转换不同。
  11. 根据权利要求10所述的解码设备,其中,所述处理器具体用于执行指令以对所述第一比特流中的所述特定位和所述标识位进行所述异或逻辑运算得到所述运算结果;若所述运算结果不等于1,则判定所述原始比特流经过了所述质量调整,若所述运算结果等于1,则判定所述原始比特流未经过所述质量调整。
  12. 根据权利要求10所述的解码设备,其中,所述处理器具体用于执行指令以对所述第一比特流中的所述特定位和所述标识位进行所述异或逻辑运算得到所述运算结果;若所述运算结果等于1,则判定所述原始比特流经过了所述质量调整,若所述运算结果不等于1,则判定所述原始比特流未经过所述质量调整。
  13. 根据权利要求10所述的解码设备,其中,所述第一转换包括对所述第一比特流中的第一位集进行取反,所述第二转换包括对所述第一比特流中的第二位集进行取反,所述第一位集与所述第二位集不同。
  14. 根据权利要求13所述的解码设备,其中,所述第一比特流的位数为9,所述第一位集包括第1、4、6和7位,所述第二位集包括第5、6和8位。
  15. 根据权利要求10所述的解码设备,其中,所述第一比特流的位数为9,所述处理器具体用于执行指令以在所述第一比特流的第7位的取反结果、第5位和第6位的逻辑值不同的情况下判定所述第一比特流满足所述数据转换标准。
  16. 根据权利要求10所述的解码设备,其中,所述第一比特流的位数为9,所述处理器具体用于执行指令以在以下逻辑表达式的计算结果等于1的情况下判定所述第一比特流满足所述数据转换标准:
    AND(OR(bn[5],bn[6],~bn[7]),OR(~bn[5],~bn[6],bn[7]))
    其中,AND为与操作,OR为或操作,~为取反操作,bn[i]为所述第一比特流的第i位。
  17. 根据权利要求10所述的解码设备,其中,所述第一比特流和所述第三比特流均为9位比特流,所述第一比特流中的所述特定位为第1位,所述第一比特流和所述第三比特流中的所述标识位为第0位。
PCT/CN2018/111415 2018-06-20 2018-10-23 解码方法、设备及可读存储介质 WO2019242180A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810637341.8A CN110620635A (zh) 2018-06-20 2018-06-20 解码方法、设备及可读存储介质
CN201810637341.8 2018-06-20

Publications (1)

Publication Number Publication Date
WO2019242180A1 true WO2019242180A1 (zh) 2019-12-26

Family

ID=68920811

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/111415 WO2019242180A1 (zh) 2018-06-20 2018-10-23 解码方法、设备及可读存储介质

Country Status (2)

Country Link
CN (1) CN110620635A (zh)
WO (1) WO2019242180A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492386A (zh) * 2020-11-09 2021-03-12 Tcl华星光电技术有限公司 解码方法、解码装置及可读存储介质
CN112929673B (zh) * 2021-01-19 2022-04-01 Tcl华星光电技术有限公司 解码方法、解码设备及可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1776815A1 (fr) * 2004-08-13 2007-04-25 Thales Codeur et decodeur 9 bits-10 bits
CN101263717A (zh) * 2005-09-14 2008-09-10 微软公司 任意分辨率改变尺寸缩小解码器
CN102497249A (zh) * 2011-10-07 2012-06-13 友达光电股份有限公司 编码方法、编码装置、解码方法、解码装置、数据传送装置及数据接收装置
CN102595259A (zh) * 2012-03-05 2012-07-18 中兴通讯股份有限公司 一种实现对波长标签进行编码的方法和系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2265089C (en) * 1998-03-10 2007-07-10 Sony Corporation Transcoding system using encoding history information
US6925120B2 (en) * 2001-09-24 2005-08-02 Mitsubishi Electric Research Labs, Inc. Transcoder for scalable multi-layer constant quality video bitstreams
CN101083473B (zh) * 2006-05-30 2010-11-03 富士通株式会社 使用滤波模式对施加给信号的补偿进行调节的系统及方法
CN101051845A (zh) * 2007-05-09 2007-10-10 上海广电(集团)有限公司中央研究院 一种快速提取比特流哈夫曼解码方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1776815A1 (fr) * 2004-08-13 2007-04-25 Thales Codeur et decodeur 9 bits-10 bits
CN101263717A (zh) * 2005-09-14 2008-09-10 微软公司 任意分辨率改变尺寸缩小解码器
CN102497249A (zh) * 2011-10-07 2012-06-13 友达光电股份有限公司 编码方法、编码装置、解码方法、解码装置、数据传送装置及数据接收装置
CN102595259A (zh) * 2012-03-05 2012-07-18 中兴通讯股份有限公司 一种实现对波长标签进行编码的方法和系统

Also Published As

Publication number Publication date
CN110620635A (zh) 2019-12-27

Similar Documents

Publication Publication Date Title
WO2019227831A1 (zh) 编码方法、设备及可读存储介质
CN108777606B (zh) 解码方法、设备及可读存储介质
WO2019214139A1 (zh) 编码方法、设备及可读存储介质
WO2019214141A1 (zh) 编码方法、设备及可读存储介质
WO2018196765A1 (zh) Polar码传输方法及装置
US11817882B2 (en) Decoding method, decoding device, and readable storage medium
JPH0514420A (ja) シリアル信号伝送装置
WO2019242180A1 (zh) 解码方法、设备及可读存储介质
US7549000B2 (en) Apparatus and method for generating bitstream of S/PDIF data in HDMI
US20100324914A1 (en) Adaptive Encoding of a Digital Signal with One or More Missing Values
TW201316718A (zh) 編碼方法、編碼裝置、解碼方法、解碼裝置、資料傳送裝置及資料接收裝置
WO2011137790A1 (zh) 通用公共无线接口业务发送/接收方法及装置
CA3069594C (en) Media content-based adaptive method, device and system for fec coding and decoding of systematic code, and medium
WO2019214140A1 (zh) 编码方法、设备及可读存储介质
WO2019237624A1 (zh) 加扰方法、设备及可读存储介质
CN105188075B (zh) 语音质量优化方法及装置、终端
WO2019237625A1 (zh) 解扰方法、设备及可读存储介质
WO2019214138A1 (zh) 编码方法、设备及可读存储介质
KR20230050256A (ko) 데이터 부호화 방법 및 부호기와 데이터 복호화 방법
CN110087080B (zh) 解码方法、设备及可读存储介质
KR101370606B1 (ko) 스위칭 횟수 및 크로스톡 지연을 최소화한 버스 인코딩 장치
US8166219B2 (en) Method and apparatus for encoding/decoding bus signal
US11632127B2 (en) Near-optimal transition encoding codes
US6889235B2 (en) Method and apparatus for quantifying the number of identical consecutive digits within a string
CN109639608B (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: 18923651

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: 18923651

Country of ref document: EP

Kind code of ref document: A1