Coding method and device
A coding method and coding tree technology, which are applied in the field of coding methods and devices, can solve the problems of slow coding speed and slow establishment of Huffman tree, and achieve the effect of improving the speed of lossless compression
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] According to an embodiment of the present invention, an embodiment of a coding method is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although in The flowcharts show a logical order, but in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0041] figure 2 is a flowchart of an encoding method according to an embodiment of the present invention, such as figure 2 As shown, the method includes the following steps:
[0042] Step S202, obtaining the occurrence probability of each coding symbol in the data to be coded.
[0043] As an optional embodiment, obtaining the probability of occurrence of each coded symbol in the data to be coded includes: obtaining the frequency of occurrence of each coded symbol and the number of all coded symbols in the data to be coded...
Embodiment 2
[0115] According to an embodiment of the present invention, an embodiment of an encoding device is provided, Figure 6 is a schematic diagram of an encoding device according to an embodiment of the present invention, such as Figure 6 As shown, the device includes:
[0116] An obtaining module 60, configured to obtain the probability of occurrence of each coding symbol in the data to be coded.
[0117] The layering module 62 is configured to perform layering on each coded symbol according to the probability range corresponding to the occurrence probability of each coded symbol.
[0118] Building a coding tree module 64, which is used to raise the coding symbols in the layer corresponding to the probability range to the upper layer according to the preset rules in the order of the threshold value in the probability range from small to large, until the code symbols in the layer corresponding to the minimum probability range Encoding symbols rise to the top level, resulting in ...
Embodiment 3
[0138] According to an embodiment of the present invention, a storage medium is provided, and the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the encoding methods in Embodiment 1.
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com