Supercharge Your Innovation With Domain-Expert AI Agents!

Encoding method, decoding method and application based on huffman coding

A technology of Huffman coding and coding method, applied in the direction of code conversion, electrical components, etc., can solve the problems of unpredictable boundaries, uncertain data sequence length, difficult to keep up with the speed of the processor or main device, etc., to save transmission Bandwidth, fast table lookup, and small storage space

Pending Publication Date: 2018-12-28
WU QI TECH INC
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] However, high-speed transmission and processing systems are implemented in pipelines, and no matter how fast the Huffman boundary code is, it is difficult to keep up with the speed of the processor or master.
In addition, when the decoding layer timing of a Huffman decoder does not meet the system bandwidth requirements, a pipeline design is usually introduced, and the delay introduced thereby will cause address jumps When the pipeline is cleared and the address is "rolled back", if there is no predictable boundary, it is almost impossible to roll back or recalculate the address. Even if the codec is used in the prior art, because the Huffman code is of variable length , so the length of each independent data sequence is also uncertain. Even if the boundary code is used, the boundary is determined by searching, and the boundary is still unpredictable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Encoding method, decoding method and application based on huffman coding
  • Encoding method, decoding method and application based on huffman coding
  • Encoding method, decoding method and application based on huffman coding

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following is further described in detail through specific implementation methods:

[0047]This embodiment is based on the binary Huffman coding described in the background art. Unless otherwise specified, the so-called Huffman coding refers to the binary Huffman coding.

[0048] The coding method based on Huffman coding in the present embodiment includes the following contents:

[0049] Coding step: performing Huffman coding on the input sequence with the first specified length as the coding unit;

[0050] Complementary step: divide the Huffman coding sequence composed of the coding values ​​obtained in the coding step with the second specified length as the boundary, if the last coding value input cannot be put into an independent sequence of the second specified length within the second specified length, put the coded value into the next independent sequence of the second specified length, and fill the remaining length in the current independent sequence with pla...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an encoding method based on Huffman encoding. The encoding method comprises the following steps: Huffman encoding the input sequence with a first designated length as an encoding unit; and a lengthening step, for obtaining a Huffman encoding sequence composed of encoded values from a Huffman encoding module, as the boundary is a second designate length, if the last encodedvalue input cannot be placed within a W-length independent sequence, the encoded value is put into the next independent sequence of the second specified length, and the remaining length in the currentindependent sequence is filled in with a bit-occupying code that does not affect the decoding result, and finally the encoded sequence composed of a plurality of independent sequences of the second specified length is sequentially connected is outputted. The invention also discloses a corresponding coding device based on Huffman coding, and a compression decompression method and a requirement ina convolutional neural network. The invention has the effect that boundary searching is not necessary, and the decoding efficiency is greatly improved.

Description

Background technique [0001] Huffman coding is a lossless entropy coding, which is widely used in information compression such as digital audio and video. [0002] Huffman coding is to classify the input sequence according to the probability. The higher probability is encoded with fewer bits, and the lower probability is encoded with more bits. When decoding, a coding mapping table is needed, and each coding value is searched in the table to restore the original data sequence. Such an encoding method can obtain a better compression ratio when there is more redundancy in the data sequence. [0003] Taking binary Huffman coding as an example, assuming that there are many identical values ​​in the storage sequence, we can use the Huffman coding principle to divide the data into two categories: one is the constant value MFV (most frequently value), generally The storage matrix is ​​searched to find the most frequently occurring value. This type of value will be mapped to the code...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H03M7/40
CPCH03M7/40
Inventor 江正忠
Owner WU QI TECH INC
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More