RU2423785C2 - Method of coding information - Google Patents
Method of coding information Download PDFInfo
- Publication number
- RU2423785C2 RU2423785C2 RU2008138810/09A RU2008138810A RU2423785C2 RU 2423785 C2 RU2423785 C2 RU 2423785C2 RU 2008138810/09 A RU2008138810/09 A RU 2008138810/09A RU 2008138810 A RU2008138810 A RU 2008138810A RU 2423785 C2 RU2423785 C2 RU 2423785C2
- Authority
- RU
- Russia
- Prior art keywords
- read
- section
- function
- array
- length
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 125000004122 cyclic group Chemical group 0.000 claims description 6
- 238000007620 mathematical function Methods 0.000 claims description 5
- 230000006835 compression Effects 0.000 abstract description 7
- 238000007906 compression Methods 0.000 abstract description 7
- 239000000126 substance Substances 0.000 abstract 1
- 230000003247 decreasing effect Effects 0.000 description 2
Images
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
Изобретение относится к представлению кода последовательностью цифр и может быть использовано для сжатия информации без потерь.The invention relates to the presentation of code by a sequence of numbers and can be used to compress information without loss.
Задачей заявляемого изобретения является создание способа кодирования информации, повышающего степень сжатия и обеспечивающего регулирование времени сжатия.The objective of the invention is the creation of a method of encoding information that increases the degree of compression and provides adjustment of the compression time.
Указанный технический результат достигается тем, что способ кодирования информации заключается в считывании из массива начальных данных участка битов, представлении считанного участка битов в виде числа, кодировании числа в виде аргументов математической функции, при этом значения аргументов функции задают таблично или вычисляют. Записывают в массив конечных данных вид функции, длину считанного участка, аргументы функции. Затем считывают последующий участок битов и аналогичным образом его кодируют, пока не будет достигнут конец массива начальных данных. Процесс кодирования проводят повторно над массивом конечных данных.The indicated technical result is achieved in that the method of encoding information consists in reading a section of bits from an array of initial data, representing the read section of bits as a number, encoding the number as arguments of a mathematical function, while the values of the arguments of the function are set in a table or calculated. The type of the function, the length of the read section, the arguments of the function are written to the array of final data. Then the next bit section is read and similarly encoded until the end of the initial data array is reached. The coding process is repeated over the array of final data.
При невозможности кодирования числа производят циклический сдвиг считанного участка битов, при этом в массив конечных данных дополнительно записывают номер старшего разряда в считанном участке. Также при невозможности кодирования числа уменьшают длину считанного участка битов или изменяют вид функции.If it is impossible to encode the number, a cyclic shift of the read bit section is performed, while the number of the most significant bit in the read section is additionally written into the array of final data. Also, if it is impossible to encode numbers, reduce the length of the read bit section or change the form of the function.
При невозможности кодирования в массив конечных данных записывают определенное значение вида функции, длину считанного участка и участок считанных битов.If it is impossible to encode, a certain value of the form of the function, the length of the read section, and the section of read bits are written to the array of final data.
На Фиг.1 представлена схема кодирования с использованием математической функции ху, включающая массив начальных данных 1, считанный участок битов 2, представленный в виде числа, кодированный участок 3, содержащий вид функции f, длину считанного участка s, аргументы функции х и у, номер n старшего разряда в считанном участке 2, массив конечных данных 4.Figure 1 shows the coding scheme using the mathematical function x y , including an array of
На Фиг.2 представлен алгоритм кодирования, где НД - массив начальных данных, D(НД) - длина массива начальных данных, D0 - начальная длина, НЧ - начальное число, КД - массив конечных данных, D(КД) - длина массива конечных данных. После завершения одного этапа сжатия Р конечные данные (КД) превращаются в начальные данные (НД) следующего этапа. Если счетчик сжимаемости i=0, данные не сжимаются.Figure 2 shows the encoding algorithm, where ND is the array of initial data, D (ND) is the length of the array of initial data, D0 is the initial length, LF is the initial number, CD is the array of final data, D (CD) is the length of the array of final data . After the completion of one compression stage P, the final data (CD) are converted into the initial data (ND) of the next stage. If the compressibility counter is i = 0, the data is not compressed.
Способ кодирования информации осуществляется следующим образом.The method of encoding information is as follows.
Определяют виды функций f и их количество. Задают максимальное max(s) и минимальное min(s) значение длины s считываемого участка битов 2, а также длину соответствующих виду функции аргументов. Вычисляют или задают таблицы значений аргументов для соответствующих функций f.The types of functions f and their number are determined. Set the maximum max (s) and minimum min (s) value of the length s of the read bit section 2, as well as the length of the arguments corresponding to the form of the function. Compute or set tables of argument values for the corresponding functions f.
Считывают из массива начальных данных 1 участок 2 длиной max(s) бит и представляют его в виде числа.Read from the array of
Кодируют число в виде аргументов х и у математической функции f, например степенной f=xy.Encode the number in the form of arguments x and y of the mathematical function f, for example, power-law f = x y .
При невозможности кодирования числа в виде аргументов первого вида функции f1 производят циклический сдвиг, например, влево считанного участка битов 2 и производят повторное кодирование, при этом в кодированный участок 3 записывают номер n старшего разряда в считанном участке 2.If it is impossible to encode the number in the form of arguments of the first type of the function f1, a cyclic shift is performed, for example, to the left of the read bit section 2 and re-coding, while the number n of the highest bit in the read section 2 is written in the encoded section 3.
При отсутствии возможности кодирования числа в виде заданной функции с применением циклического сдвига уменьшают длину считанного участка битов 2 и определяют возможность кодирования, при этом длина считанного участка 2 битов при его уменьшении не может быть менее длины кодированного участка 3.If it is not possible to encode a number in the form of a given function using a cyclic shift, the length of the read section of bits 2 is reduced and the possibility of encoding is determined, while the length of the read section of 2 bits when decreasing cannot be less than the length of the encoded section 3.
При невозможности кодирования числа при уменьшении длины считанного участка изменяют вид математической функции и пробуют повторно закодировать число с применением циклического сдвига и уменьшении его длины.If it is not possible to encode a number while decreasing the length of the read section, change the form of the mathematical function and try to re-encode the number using a cyclic shift and reducing its length.
В случае успешного кодирования в массив конечных данных 4 записывают кодированный участок 3, содержащий вид функции f, длину считанного участка s, аргументы функции х и у, номер n старшего разряда, при этом длина каждого параметра, например, 8 бит.In the case of successful coding, the encoded section 3 is written into the final data array 4, containing the form of the function f, the length of the read section s, the arguments of the function x and y, the number n of the highest order, and the length of each parameter, for example, is 8 bits.
В случае невозможности кодирования числа в массив конечных данных 4 записывают вид функции f, равный 0, длину s участка и весь участок 2 первоначально считанных битов.If it is impossible to encode the number, the form of the function f equal to 0, the length s of the section, and the entire section 2 of the initially read bits are written into the array of final data 4.
Далее считывают следующий участок битов и аналогичным образом его кодируют, пока не будет достигнут конец массива начальных данных 1.Next, the next section of bits is read and similarly encoded until the end of the
Затем массив конечных данных 4 представляют в виде нового массива начальных данных и процесс кодирования проводят повторно по заданному количеству этапов сжатия Р, что позволяет регулировать время кодирования информации и определять объем конечных данных.Then, the array of final data 4 is presented in the form of a new array of initial data and the encoding process is repeated according to a given number of compression steps P, which allows you to adjust the encoding time of the information and determine the volume of the final data.
При декодировании массива конечных данных 4 считывают первый параметр - вид функции f из кодированного участка 3. В случае, если он не равен 0, считывают значение длины s ранее считанного участка 2, аргументы функции х и у, номер n старшего разряда. Определяют значение закодированного числа и записывают его в массив длиной s.When decoding the array of final data 4, the first parameter is read - the form of the function f from the encoded section 3. If it is not equal to 0, the value of the length s of the previously read section 2, the arguments of the function x and y, number n of the highest order are read. The value of the encoded number is determined and written to an array of length s.
В случае, если вид функции f равен 0, переписывают весь участок длиной s.If the form of the function f is 0, rewrite the entire section of length s.
Далее считывают следующий кодированный участок битов и аналогичным образом его декодируют, пока не будет достигнут конец массива конечных данных 4.Next, the next encoded bit section is read and similarly decoded until the end of the final data array 4 is reached.
Таким образом, применение в способе кодирования циклического сдвига участка данных, уменьшение его длины, использование различных функций, а также повторное кодирование конечного массива позволило повысить вероятность представления числа в виде аргументов функций, тем самым увеличить степень сжатия.Thus, the use of a method for encoding a cyclic shift of a data region, reducing its length, using various functions, and also re-encoding the final array made it possible to increase the probability of representing the number as arguments of functions, thereby increasing the compression ratio.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| RU2008138810/09A RU2423785C2 (en) | 2008-09-29 | 2008-09-29 | Method of coding information |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| RU2008138810/09A RU2423785C2 (en) | 2008-09-29 | 2008-09-29 | Method of coding information |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| RU2008138810A RU2008138810A (en) | 2010-04-10 |
| RU2423785C2 true RU2423785C2 (en) | 2011-07-10 |
Family
ID=42670842
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| RU2008138810/09A RU2423785C2 (en) | 2008-09-29 | 2008-09-29 | Method of coding information |
Country Status (1)
| Country | Link |
|---|---|
| RU (1) | RU2423785C2 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1999033183A1 (en) * | 1997-12-22 | 1999-07-01 | Koninklijke Philips Electronics N.V. | DEVICE FOR ENCODING/DECODING n-BIT SOURCE WORDS INTO CORRESPONDING m-BIT CHANNEL WORDS, AND VICE VERSA |
| KR100261253B1 (en) * | 1997-04-02 | 2000-07-01 | 윤종용 | Scalable audio encoder/decoder and audio encoding/decoding method |
| RU2153200C2 (en) * | 1995-09-01 | 2000-07-20 | Конинклийке Филипс Электроникс Н.В. | Method for converting sequences of m-bit information words into modulated signal, method for manufacturing of record carrier, encoder, writing device, signal and record carrier |
| RU2153707C2 (en) * | 1994-02-15 | 2000-07-27 | Конинклийке Филипс Электроникс Н.В. | Method for converting m-bit data word sequence into modulated signal, record medium manufacturing process, encoder, decoder, recorder, reader, record signal and medium |
| RU2001127081A (en) * | 2000-01-07 | 2003-10-27 | Конинклейке Филипс Электроникс Н.В. (Nl) | METHOD FOR CONVERTING bitstream binary information signal in the bitstream of the binary channel data signal transmission having LIMITATION, CODING DEVICE, SIGNAL, containing a bitstream of the binary channel data signal transmission having LIMITATION MEDIA RECORDING AND DECODING DEVICE |
| EP1545010A1 (en) * | 2003-12-18 | 2005-06-22 | Deutsche Thomson-Brandt GmbH | Method and device for transcoding N-bit words into M-bit words with M smaller N |
-
2008
- 2008-09-29 RU RU2008138810/09A patent/RU2423785C2/en not_active IP Right Cessation
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| RU2153707C2 (en) * | 1994-02-15 | 2000-07-27 | Конинклийке Филипс Электроникс Н.В. | Method for converting m-bit data word sequence into modulated signal, record medium manufacturing process, encoder, decoder, recorder, reader, record signal and medium |
| RU2153200C2 (en) * | 1995-09-01 | 2000-07-20 | Конинклийке Филипс Электроникс Н.В. | Method for converting sequences of m-bit information words into modulated signal, method for manufacturing of record carrier, encoder, writing device, signal and record carrier |
| KR100261253B1 (en) * | 1997-04-02 | 2000-07-01 | 윤종용 | Scalable audio encoder/decoder and audio encoding/decoding method |
| WO1999033183A1 (en) * | 1997-12-22 | 1999-07-01 | Koninklijke Philips Electronics N.V. | DEVICE FOR ENCODING/DECODING n-BIT SOURCE WORDS INTO CORRESPONDING m-BIT CHANNEL WORDS, AND VICE VERSA |
| RU2001127081A (en) * | 2000-01-07 | 2003-10-27 | Конинклейке Филипс Электроникс Н.В. (Nl) | METHOD FOR CONVERTING bitstream binary information signal in the bitstream of the binary channel data signal transmission having LIMITATION, CODING DEVICE, SIGNAL, containing a bitstream of the binary channel data signal transmission having LIMITATION MEDIA RECORDING AND DECODING DEVICE |
| EP1545010A1 (en) * | 2003-12-18 | 2005-06-22 | Deutsche Thomson-Brandt GmbH | Method and device for transcoding N-bit words into M-bit words with M smaller N |
Non-Patent Citations (1)
| Title |
|---|
| ШУЛЬГИН В.И. Основы теории передачи информации. Ч.I. Экономное кодирование. Учебное пособие. - Харьков, 2003, c.31-32, 38-39. * |
Also Published As
| Publication number | Publication date |
|---|---|
| RU2008138810A (en) | 2010-04-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103067022B (en) | A kind of integer data lossless compression method, decompression method and device | |
| CN101055720B (en) | Method and device for encoding and decoding audio signals | |
| CN100456639C (en) | Lossless decoder and method thereof | |
| US7408487B2 (en) | Method and apparatus for CABAC-based encoding having high compression ratio using improved context model selection and method and apparatus for CABAC-based decoding | |
| RU2007141934A (en) | ADAPTIVE GROUPING OF PARAMETERS FOR IMPROVED ENCODING EFFICIENCY | |
| JP2013508867A5 (en) | ||
| KR20100095585A (en) | A method and an apparatus for processing a signal | |
| RU2008105028A (en) | ADAPTIVE CODING AND DECODING OF WIDE RANGE COEFFICIENTS | |
| CN101958150B (en) | Memory device and method of operating the same | |
| JP2005260969A5 (en) | ||
| CN104125475B (en) | Multi-dimensional quantum data compressing and uncompressing method and apparatus | |
| WO2019080670A1 (en) | Gene sequencing data compression method and decompression method, system, and computer readable medium | |
| CN103716634B (en) | Data compression method and device using error plane coding | |
| CN116016606A (en) | Sewage treatment operation and maintenance data efficient management system based on intelligent cloud | |
| CN106228981B (en) | An MP3 Adaptive Steganography Method Based on Compression Domain | |
| CN101615911B (en) | A codec method and device | |
| RU2423785C2 (en) | Method of coding information | |
| CN1925331B (en) | Devices and methods for data compression and decompression | |
| US7683809B2 (en) | Advanced lossless bit coding | |
| US20130154857A1 (en) | Decoding device and coding method | |
| CN101802906B (en) | Method and device for transmission error concealment, and digital signal decoder | |
| JP4037875B2 (en) | Computer graphics data encoding device, decoding device, encoding method, and decoding method | |
| CN101692343B (en) | Method for hiding personal data flow in MP3 file | |
| CN115801021A (en) | ANS (answer System) grouping coding and decoding method, computer equipment and storage medium | |
| KR20120009837A (en) | Context-based lossless coding apparatus and method, and decoding apparatus and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| MM4A | The patent is invalid due to non-payment of fees |
Effective date: 20140930 |