Adaptive quantization coding method and device, equipment and storage medium

By performing interval equalization and uniform quantization according to the signal data range in the quantization encoding, the problem of obvious noise caused by non-uniform quantization on large signals is solved, effective noise reduction of small signals and large signals is achieved, and the quantization accuracy and signal-to-noise ratio are improved. .

CN118573189APending Publication Date: 2024-08-30PENG CHENG LAB
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410717616.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The non-uniform quantization method in the existing technology has obvious quantization noise for large signals, and it is difficult to effectively reduce noise at both ends of small signals and large signals.

Method used

By receiving the target signal, determine its target data range, divide the intervals equally according to the data range to form the first interval and the second interval, continue to divide equally according to the interval with the largest number of signals, until a preset number of quantization interval sets are formed, and perform uniform quantization to achieve Reduce noise.

Benefits of technology

Whether it is a small signal or a large signal, it can effectively reduce quantization noise and improve quantization accuracy and signal-to-noise ratio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573189A
    Figure CN118573189A
Patent Text Reader

Abstract

The invention belongs to the technical field of quantization coding, and discloses a self-adaptive quantization coding method and device, equipment and a storage medium. The method comprises the following steps: receiving a target signal, and determining a target data range of the target signal; according to the target data range, equal interval division is carried out, a first interval and a second interval are obtained, and the signal number of the first interval is smaller than the signal number of the second interval; adding the first interval into a quantization interval set, and when the number of elements in the quantization interval set is smaller than or equal to a preset number, repeatedly determining a new target data range of a new second interval by taking a target range of the second interval as a new target data range, and after the element number of the quantization interval set is greater than the preset number, adding the second interval into the quantization interval set, and uniformly quantizing the target signal according to the quantization interval set to obtain a target coding result. According to the invention, the quantization noise of non-uniform quantization for large signals can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantization coding technology, and in particular to an adaptive quantization coding method, device, equipment and storage medium. Background Art

[0002] The traditional uniform quantization method is used to convert analog signals into digital signals with a fixed quantization step size, which requires a large number of quantization bits. On this basis, non-uniform quantization has emerged, which can be used to quantize small signals. This can effectively reduce the number of quantization bits required. However, this non-uniform quantization method has obvious quantization noise when used for large signals. Summary of the invention

[0003] The main purpose of the present invention is to provide an adaptive quantization coding method, device, equipment and storage medium, aiming to solve the technical problem of obvious quantization noise when using non-uniform quantization method for large signals in the prior art.

[0004] To achieve the above object, the present invention provides an adaptive quantization encoding method, which comprises the following steps:

[0005] S10, receiving a target signal, and determining a target data range of the target signal;

[0006] S20, dividing the target data range into equal parts to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval;

[0007] S30. Add the first interval to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, use the target range of the second interval as a new target data range and repeat steps S20-S30 until the number of elements in the quantization interval set is greater than the preset number, add the second interval to the quantization interval set, and uniformly quantize the target signal according to the quantization interval set to obtain a target encoding result.

[0008] Optionally, the receiving a target signal and determining a target data range of the target signal includes:

[0009] Receive target signal;

[0010] An absolute value calculation is performed on the target signal to obtain a target data range of the target signal.

[0011] Optionally, the uniformly quantizing the target signal according to the quantization interval set to obtain a target coding result includes:

[0012] Determining a zigzag code and a data code of the target signal according to the quantization interval set;

[0013] The target coding result of the target signal is determined according to the sign coding, the zigzag coding and the data coding, wherein the sign coding is used to indicate the positive and negative of the data, the zigzag coding is used to indicate the zigzag segment corresponding to the data, and the data coding is used to indicate the linear quantization value within the zigzag segment.

[0014] Optionally, the determining the zigzag coding and data coding of the target signal according to the quantization interval set further includes:

[0015] Determining a zigzag code of the target signal according to the quantization interval set;

[0016] Uniformly quantizing each quantization interval in the quantization interval set in sequence according to the number of quantization bits to obtain a quantization result;

[0017] The data encoding of the target signal is determined according to the quantization result.

[0018] Optionally, determining the zigzag coding of the target signal according to the quantization interval set includes:

[0019] Determine a quantization interval of the target signal in the quantization interval set;

[0020] The broken line position corresponding to the quantization interval is determined as the broken line code of the target signal.

[0021] Optionally, after determining the target coding result of the target signal according to the symbol coding, the zigzag coding and the data coding, the method further includes:

[0022] The signal coding format is placed in the packet header of the data frame, and the target coding results are sequentially stored in the data frame to obtain frame data, and the frame data is transmitted to the receiving end.

[0023] Optionally, the adaptive quantization encoding method further includes:

[0024] After receiving the frame data of the target signal, extracting a header part and a data part from the frame data;

[0025] A signal coding format is determined according to the packet header part, and the data part is decoded according to the signal coding format to obtain the target signal.

[0026] In addition, to achieve the above object, the present invention also proposes an adaptive quantization coding device, the adaptive quantization coding device comprising:

[0027] A receiving module, used for receiving a target signal and determining a target data range of the target signal;

[0028] A bisection module, configured to bisection the interval according to the target data range to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval;

[0029] A determination module is used to determine a first range of the first interval, add the first range to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, use the target range of the second interval as a new target data range to repeatedly determine a new target data range of a new second interval, until the number of elements in the quantization interval set is greater than the preset number, and then uniformly quantize the target signal according to the quantization interval set to obtain a target encoding result.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also proposes an adaptive quantization coding device, which includes: a memory, a processor, and an adaptive quantization coding program stored in the memory and executable on the processor, wherein the adaptive quantization coding program is configured to implement the steps of the adaptive quantization coding method described above.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which an adaptive quantization coding program is stored, and when the adaptive quantization coding program is executed by a processor, the steps of the adaptive quantization coding method described above are implemented.

[0032] The adaptive quantization coding method, device, equipment and storage medium proposed in the present invention receive a target signal and determine the target data range of the target signal; divide the interval equally according to the target data range to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval; add the first interval to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, use the target range of the second interval as a new target data range to repeatedly determine a new target data range for a new second interval, until the number of elements in the quantization interval set is greater than the preset number, add the second interval to the quantization interval set, and uniformly quantize the target signal according to the quantization interval set to obtain a target coding result. In the above manner, two intervals are preliminarily divided according to the target data range by using the interval bisection method, and then the interval with a larger number of signals is used as the next interval for continuing to divide the interval equally, ensuring that the quantization of the place with a larger number of signals is more detailed, so that the quantization noise can be effectively reduced regardless of whether it is a small signal or a large signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1It is a structural diagram of an adaptive quantization encoding device in a hardware operating environment involved in an embodiment of the present invention;

[0034] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the adaptive quantization encoding method of the present invention;

[0035] Figure 3 A schematic diagram of quantization of an adaptive quantizer in the first embodiment of the adaptive quantization encoding method of the present invention;

[0036] Figure 4 A schematic diagram of a flow chart of a second embodiment of an adaptive quantization encoding method according to the present invention;

[0037] Figure 5 A schematic diagram of each quantization interval in a quantization interval set in the second embodiment of the adaptive quantization encoding method of the present invention;

[0038] Figure 6 A schematic diagram of a signal encoding format in a second embodiment of an adaptive quantization encoding method of the present invention;

[0039] Figure 7 It is a structural block diagram of the first embodiment of the adaptive quantization encoding device of the present invention.

[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0042] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of an adaptive quantization encoding device in a hardware operating environment involved in an embodiment of the present invention.

[0043] like Figure 1As shown, the adaptive quantization encoding device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0044] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the adaptive quantization encoding device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0045] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an adaptive quantization encoding program.

[0046] exist Figure 1 In the adaptive quantization coding device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the adaptive quantization coding device of the present invention can be set in the adaptive quantization coding device, and the adaptive quantization coding device calls the adaptive quantization coding program stored in the memory 1005 through the processor 1001, and executes the adaptive quantization coding method provided by an embodiment of the present invention.

[0047] Based on the above hardware structure, an embodiment of the adaptive quantization encoding method of the present invention is proposed.

[0048] Reference Figure 2 , Figure 2 The figure is a flowchart of a first embodiment of an adaptive quantization encoding method according to the present invention.

[0049] In this embodiment, the adaptive quantization encoding method includes the following steps:

[0050] Step S10: Receive a target signal and determine a target data range of the target signal.

[0051] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a mobile phone, a tablet computer, a personal computer, etc., or an electronic device or an adaptive quantization encoding device capable of realizing the above functions. The following takes the adaptive quantization encoding device as an example to illustrate this embodiment and the following embodiments.

[0052] It should be noted that the target signal refers to a complete frame of signal, and the target data range refers to the data range of the target signal.

[0053] In one embodiment, receiving a target signal and determining a target data range of the target signal includes:

[0054] Receive target signal;

[0055] An absolute value calculation is performed on the target signal to obtain a target data range of the target signal.

[0056] In a specific implementation, the data range of the target signal is -m to m, so it can be determined that the target data range obtained after absolute value calculation of the target signal is 0 to m.

[0057] In this embodiment, since the positive and negative intervals of the target signal are distributed in the same manner, the target signal can be encoded based on the positive interval after the absolute value is calculated, which can effectively reduce the amount of calculation in the encoding process.

[0058] Step S20: Divide the target data range into two equal parts to obtain a first interval and a second interval, wherein the number of signals in the first interval is smaller than the number of signals in the second interval.

[0059] It can be understood that the first interval is the interval with the least number of signals among the two intervals obtained after the target data range is divided into two equal parts, and the second interval is the interval with the largest number of signals among the two intervals obtained after the target data range is divided into two equal parts.

[0060] In the specific implementation, taking the target data range of 0~m as an example, the interval is divided equally according to the target data range, and two intervals of 0~2 / m and 2 / m~m can be obtained. When the number of signals in the interval of 0~2 / m is less than the number of signals in the interval of 2 / m~m, it can be determined that the data range of the first interval is 0~2 / m, and the data range of the second interval is 2 / m~m.

[0061] Step S30: Add the first interval to the quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, use the target range of the second interval as the new target data range to repeat steps S20-S30, until the number of elements in the quantization interval set is greater than the preset number, add the second interval to the quantization interval set, and uniformly quantize the target signal according to the quantization interval set to obtain a target encoding result.

[0062] It should be noted that the first range refers to the data range of the first interval; the target range refers to the data range of the second interval; the preset number can be set in advance, for example, it can be set to 8. When the number of elements in the quantization interval set is greater than the preset number, there is no need to continue to determine a new quantization interval, and the second interval at this time is added to the quantization interval set. Finally, the target signal can be encoded according to the quantization range in the quantization interval set to obtain the target encoding result.

[0063] It should be noted that when quantization is performed using the u-law 15-fold line (the 15-fold line method is used to determine the quantization fold line, which means using 8-segment fold lines in the positive and negative regions respectively. Since the slopes of the two fold lines of 1 / 255 and -1 / 255 are the same, there are 8+8-1=15 fold lines in the entire interval), the quantization accuracy starts from zero, from high to low, and the quantization step size is fixed, which has nothing to do with the actual data distribution. When the data is mainly distributed in an interval with lower accuracy, it will cause a very large quantization error. For this reason, we propose to quantize according to the main distribution range of the data, such as dividing the interval equally according to the target data range, and after obtaining two intervals, continue to divide the interval with a larger number of signals equally, and then encode the target signal according to the final set of quantization intervals.

[0064] It can be understood that the preset number needs to be set in advance, and the preset number is the number of quantization intervals within the data range of the target signal. Different quantization intervals correspond to different quantization ranges, and different quantization intervals can be represented by different broken lines.

[0065] In the specific implementation, Figure 3 As shown, taking the target data range of 0 to m as an example, the quantization interval set includes the quantization range of broken line 1 (△=1m / 255), the quantization range of broken line 2 (△=2m / 255), the quantization range of broken line 3 (△=4m / 255), the quantization range of broken line 4 (△=8m / 255), the quantization range of broken line 5 (△=16m / 255), the quantization range of broken line 6 (△=32m / 255), the quantization range of broken line 7 (△=64m / 255), and the quantization range of broken line 8 (△=128m / 255).

[0066] In the specific implementation, quantization can also be performed according to the main distribution range of the data. Specifically, the quantization line is kept at 8 segments. First, the line 1 is selected, the quantization noise is calculated, and the adaptive quantizer is used to find the interval with the minimum quantization noise. Among them, x(k) is the input signal, and the quantized signal z(k) = Q(x(k)). Therefore, the iterative estimate of the signal variance is as follows:

[0067]

[0068] The signal adjustable step size is as follows:

[0069]

[0070] The interval with the smallest quantization variance is selected as the quantization range of the broken line 1. Based on this, the quantization ranges of the 8 broken lines are determined in turn, thereby realizing the quantization of the signal.

[0071] In the specific implementation, when the signal mean of the target signal is 30000 and the standard deviation is 4000, the quantization error of this scheme is 10db lower than the quantization error of the traditional non-uniform quantization method (such as the u-law 15-fold line method); when the signal mean is 30000 and the standard deviation is 1000, the quantization error of this scheme is 20db lower than the quantization error of the traditional non-uniform quantization method; when the signal mean is 20000 and the standard deviation is 1000, the quantization error of this scheme is 15db lower than the quantization error of the traditional non-uniform quantization method; when the signal mean is 15000 and the standard deviation is 1000, the quantization error of this scheme is 11db lower than the quantization error of the traditional non-uniform quantization method.

[0072] This embodiment receives a target signal and determines the target data range of the target signal; divides the interval equally according to the target data range to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval; adds the first interval to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, uses the target range of the second interval as a new target data range to repeatedly determine a new target data range for a new second interval, until the number of elements in the quantization interval set is greater than the preset number, adds the second interval to the quantization interval set, and uniformly quantizes the target signal according to the quantization interval set to obtain a target encoding result. In the above manner, two intervals are preliminarily divided into two intervals by using the interval bisection method according to the target data range, and then the interval with a larger number of signals is used as the next interval for bisection, ensuring that the quantization is more detailed in places with a larger number of signals, so that the quantization noise can be effectively reduced regardless of whether it is a small signal or a large signal.

[0073] refer to Figure 4 , Figure 4 FIG. 4 is a flow chart of a second embodiment of an adaptive quantization encoding method according to the present invention.

[0074] Based on the above first embodiment, the adaptive quantization encoding method of this embodiment uniformly quantizes the target signal according to the quantization interval set to obtain a target encoding result, including:

[0075] Step S301: determining a zigzag code and a data code according to the quantization interval set.

[0076] Step S302: Determine the target coding result of the target signal according to the symbol coding, the zigzag coding and the data coding, wherein the symbol coding is used to indicate the positive and negative of the data, the zigzag coding is used to indicate the zigzag segment corresponding to the data, and the data coding is used to indicate the linear quantization value within the zigzag segment.

[0077] It can be understood that, since the target data range is determined after performing absolute value calculation on the signal data of the target signal, in order to distinguish the specific quantization range of the signal, it is necessary to set a symbol code for distinction.

[0078] In one embodiment, the determining of the zigzag coding and the data coding of the target signal according to the quantization interval set further includes:

[0079] Determining a zigzag code of the target signal according to the quantization interval set;

[0080] Uniformly quantizing each quantization interval in the quantization interval set in sequence according to the number of quantization bits to obtain a quantization result;

[0081] The data encoding of the target signal is determined according to the quantization result.

[0082] In the specific implementation, the number of quantization bits for uniform quantization in each quantization interval can be determined according to the signal quantization coding bit width. For example, if the signal quantization coding bit width is 8 bits, including 1 sign bit and 3 line bits, then the data can be determined to be 4 bits, that is, the number of quantization bits is 4 bits.

[0083] In this embodiment, the number of quantization bits for uniform quantization can be determined by presetting the signal quantization coding bit width, so that uniform quantization of the quantization interval can be achieved while setting the signal coding bit width as little as possible, which can not only effectively compress the target signal but also further reduce the quantization noise.

[0084] In one embodiment, determining the zigzag coding of the target signal according to the quantization interval set includes:

[0085] Determine a quantization interval of the target signal in the quantization interval set;

[0086] The broken line position corresponding to the quantization interval is determined as the broken line code of the target signal.

[0087] It should be noted that, as shown in 5, the position of the broken line is determined according to the quantization interval. The smaller the value corresponding to the quantization interval, the closer the broken line position is to the origin, and the smaller the broken line code. For example, when the quantization interval a is 0~m and the quantization interval b is n~2m, the broken line code corresponding to the quantization interval a is 1, and the broken line code corresponding to the quantization interval is 2.

[0088] In one embodiment, after determining the target coding result of the target signal according to the symbol coding, the zigzag coding and the data coding, the method further includes:

[0089] The signal coding format is placed in the packet header of the data frame, the target coding results are sequentially stored in the data frame to obtain frame data, and the frame data is transmitted to the receiving end.

[0090] In one embodiment, the adaptive quantization encoding method further includes:

[0091] After receiving the frame data of the target signal, extracting a header part and a data part from the frame data;

[0092] A signal coding format is determined according to the packet header part, and the data part is decoded according to the signal coding format to obtain the target signal.

[0093] In the specific implementation, Figure 6 The data encoding format shown, that is, the signal quantization bit width includes 1-bit sign encoding, 3-bit zigzag encoding and 4-bit quantization encoding. After the receiving end receives the frame data of the target signal, it decodes the target signal. The specific process is as follows: After the receiving end receives a frame of data, it is divided into a packet header and data; the signal encoding format in the packet header is taken out, and then the target encoding result of the data part is decoded with the signal encoding format; according to the correspondence between the signal encoding format and the target encoding result, the target signal is decoded and obtained. Specifically, when the target encoding result is 8'b1011_0010, it can be determined that the sign code of the target encoding result is 0, the zigzag code is 001, and the data code is 1011, and the target signal can be calculated.

[0094] This embodiment determines the zigzag code and the data code according to the quantization interval set; uniformly quantizes the target signal according to the symbol code, the zigzag code and the data code to obtain the target coding result, wherein the symbol code is used to indicate the positive and negative of the data, the zigzag code is used to indicate the zigzag segment corresponding to the data, and the data code is used to indicate the linear quantization value within the zigzag segment. In the above manner, encoding the target signal according to the symbol code, the zigzag code and the data code can not only reduce the transmission flow and storage space, but also effectively reduce the quantization noise.

[0095] In addition, an embodiment of the present invention further proposes a storage medium, on which an adaptive quantization coding program is stored. When the adaptive quantization coding program is executed by a processor, the steps of the adaptive quantization coding method described above are implemented.

[0096] Reference Figure 7 , Figure 7 It is a structural block diagram of the first embodiment of the adaptive quantization encoding device of the present invention.

[0097] like Figure 7 As shown, the adaptive quantization encoding device proposed in the embodiment of the present invention includes:

[0098] The receiving module 10 is used to receive a target signal and determine a target data range of the target signal.

[0099] The bisection module 20 is used to bisection the interval according to the target data range to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval.

[0100] The determination module 30 is used to add the first interval to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, use the target range of the second interval as a new target data range to repeat steps S20-S30, until the number of elements in the quantization interval set is greater than the preset number, add the second interval to the quantization interval set, and uniformly quantize the target signal according to the quantization interval set to obtain a target encoding result.

[0101] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0102] This embodiment receives a target signal and determines the target data range of the target signal; divides the interval equally according to the target data range to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval; adds the first interval to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, uses the target range of the second interval as a new target data range to repeatedly determine a new target data range for a new second interval, until the number of elements in the quantization interval set is greater than the preset number, adds the second interval to the quantization interval set, and uniformly quantizes the target signal according to the quantization interval set to obtain a target encoding result. In the above manner, two intervals are preliminarily divided into two intervals by using the interval bisection method according to the target data range, and then the interval with a larger number of signals is used as the next interval for bisection, ensuring that the quantization is more detailed in places with a larger number of signals, so that the quantization noise can be effectively reduced regardless of whether it is a small signal or a large signal.

[0103] In one embodiment, the receiving module 10 is further used for:

[0104] Receive target signal;

[0105] An absolute value calculation is performed on the target signal to obtain a target data range of the target signal.

[0106] In one embodiment, the determining module 30 is further configured to:

[0107] Determining a zigzag code and a data code of the target signal according to the quantization interval set;

[0108] The target coding result of the target signal is determined according to the sign coding, the zigzag coding and the data coding, wherein the sign coding is used to indicate the positive and negative of the data, the zigzag coding is used to indicate the zigzag segment corresponding to the data, and the data coding is used to indicate the linear quantization value within the zigzag segment.

[0109] In one embodiment, the determining module 30 is further configured to:

[0110] Determining a zigzag code of the target signal according to the quantization interval set;

[0111] Uniformly quantizing each quantization interval in the quantization interval set in sequence according to the number of quantization bits to obtain a quantization result;

[0112] The data encoding of the target signal is determined according to the quantization result.

[0113] In one embodiment, the determining module 30 is further configured to:

[0114] Determine a quantization interval of the target signal in the quantization interval set;

[0115] The broken line position corresponding to the quantization interval is determined as the broken line code of the target signal.

[0116] In one embodiment, the determining module 30 is further configured to:

[0117] The signal coding format is placed in the packet header of the data frame, and the target coding results are sequentially stored in the data frame to obtain frame data, and the frame data is transmitted to the receiving end.

[0118] In one embodiment, the determining module 30 is further configured to:

[0119] After receiving the frame data of the target signal, extracting a header part and a data part from the frame data;

[0120] A signal coding format is determined according to the packet header part, and the data part is decoded according to the signal coding format to obtain the target signal.

[0121] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0122] In addition, for technical details not described in detail in this embodiment, reference may be made to the adaptive quantization encoding method provided in any embodiment of the present invention, and will not be repeated here.

[0123] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0126] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An adaptive quantization coding method, It is characterized in that The adaptive quantization encoding method comprises: S10, receiving a target signal, and determining a target data range of the target signal; S20, dividing the target data range into equal parts to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval; S30. Add the first interval to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, use the target range of the second interval as a new target data range and repeat steps S20-S30 until the number of elements in the quantization interval set is greater than the preset number, add the second interval to the quantization interval set, and uniformly quantize the target signal according to the quantization interval set to obtain a target encoding result.

2. The method according to claim 1, It is characterized in that The receiving a target signal and determining a target data range of the target signal includes: Receive target signal; An absolute value calculation is performed on the target signal to obtain a target data range of the target signal.

3. The method according to claim 1, It is characterized in that The uniformly quantizing the target signal according to the quantization interval set to obtain a target coding result includes: Determining a zigzag code and a data code of the target signal according to the quantization interval set; The target coding result of the target signal is determined according to the sign coding, the zigzag coding and the data coding, wherein the sign coding is used to indicate the positive and negative of the data, the zigzag coding is used to indicate the zigzag segment corresponding to the data, and the data coding is used to indicate the linear quantization value within the zigzag segment.

4. The method according to claim 3, It is characterized in that The step of determining the zigzag coding and data coding of the target signal according to the quantization interval set further comprises: Determining a zigzag code of the target signal according to the quantization interval set; Uniformly quantizing each quantization interval in the quantization interval set in sequence according to the number of quantization bits to obtain a quantization result; The data encoding of the target signal is determined according to the quantization result.

5. The method according to claim 4, It is characterized in that The step of determining the zigzag coding of the target signal according to the quantization interval set comprises: Determine a quantization interval of the target signal in the quantization interval set; The broken line position corresponding to the quantization interval is determined as the broken line code of the target signal.

6. The method according to claim 5, It is characterized in that After determining the target coding result of the target signal according to the symbol coding, the zigzag coding and the data coding, the method further includes: The signal coding format is placed in the packet header of the data frame, and the target coding results are sequentially stored in the data frame to obtain frame data, and the frame data is transmitted to the receiving end.

7. The method according to claim 6, It is characterized in that The adaptive quantization encoding method further includes: After receiving the frame data of the target signal, extracting a header part and a data part from the frame data; A signal coding format is determined according to the packet header part, and the data part is decoded according to the signal coding format to obtain the target signal.

8. An adaptive quantization encoding device, It is characterized in that The adaptive quantization encoding device comprises: A receiving module, used for receiving a target signal and determining a target data range of the target signal; A bisection module, configured to bisection the interval according to the target data range to obtain a first interval and a second interval, wherein the number of signals in the first interval is less than the number of signals in the second interval; A determination module is used to add the first interval to a quantization interval set, and when the number of elements in the quantization interval set is less than or equal to a preset number, use the target range of the second interval as a new target data range to repeatedly determine a new target data range of a new second interval, until the number of elements in the quantization interval set is greater than the preset number, add the second interval to the quantization interval set, and uniformly quantize the target signal according to the quantization interval set to obtain a target encoding result.

9. An adaptive quantization encoding device, It is characterized in that The device comprises: a memory, a processor, and an adaptive quantization encoding program stored in the memory and executable on the processor, wherein the adaptive quantization encoding program is configured to implement the steps of the adaptive quantization encoding method according to any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium stores an adaptive quantization coding program, and when the adaptive quantization coding program is executed by the processor, the steps of the adaptive quantization coding method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Signal data processing method and device, equipment, storage medium and computer program product

    CN119727935A

  • Signal data processing method, apparatus, device, storage medium and computer program product

    CN119727935B