[go: up one dir, main page]

JPH04239225A - Variable-length encoding device - Google Patents

Variable-length encoding device

Info

Publication number
JPH04239225A
JPH04239225A JP1401091A JP1401091A JPH04239225A JP H04239225 A JPH04239225 A JP H04239225A JP 1401091 A JP1401091 A JP 1401091A JP 1401091 A JP1401091 A JP 1401091A JP H04239225 A JPH04239225 A JP H04239225A
Authority
JP
Japan
Prior art keywords
length encoding
variable length
information
variable
rom
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP1401091A
Other languages
Japanese (ja)
Inventor
Yasunari Ikeda
康成 池田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP1401091A priority Critical patent/JPH04239225A/en
Publication of JPH04239225A publication Critical patent/JPH04239225A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To constantly perform the optimum variable-length encoding by selecting a variable-length encoding table which has the minimum code length in an information amount evaluation circuit and encoding inputted information. CONSTITUTION:The values successively taken out from ROM 71 to 7N per piece of inputted information are provided to accumulators 81 to 8N, and the values obtained in the accumulators 81 to 8N are provided to a comparator 10 through registers 91 to 9N respectively. The comparator 10 discriminates a ROM from among the ROM 71 to 7N with the minimum value. The signals discriminated by the comparator 10 are provided to a selector 6 and the selection of ROM 51 to 5N is performed. The variable-length encoding table provided on the ROM 51 to 5N selected by the selector 6 is supplied to a variable-length encoding circuit 4 and the encoded signals are taken out to an output terminal 11.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、例えば画像信号をディ
ジタル処理する際の高能率符号化等に用いられる可変長
符号化装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a variable length encoding device used for high efficiency encoding when digitally processing image signals, for example.

【0002】0002

【従来の技術】例えば画像信号をディジタル処理する際
の高能率符号化装置においては、符号化処理後の発生情
報を、その発生情報量に対応したビット長で伝送すべく
可変長符号化が行われている。すなわちこの可変長符号
化は、発生頻度の大きい情報には符号長の短い符号を割
当て、発生頻度の小さい情報には符号長の長い符号を割
当てることによって、全体のビット長を短くすることを
目的としている。
[Prior Art] For example, in a high-efficiency encoding device for digitally processing an image signal, variable length encoding is performed to transmit generated information after encoding processing with a bit length corresponding to the amount of generated information. It is being said. In other words, the purpose of variable length encoding is to shorten the overall bit length by assigning codes with short code lengths to information that occurs frequently and codes with long code lengths to information that occurs less frequently. It is said that

【0003】このような可変長符号化において、符号化
に用いられるテーブルは処理される情報の特性等に応じ
て入力情報の発生確率を予測し、それに従って符号長の
構成を決定した一種類のテーブルのみが設けられている
。このため入力情報の発生確率が予測と一致している場
合には最適(全体のビット長が最短)となる。ところが
入力情報の発生確率と符号長が対応していないと、全体
のビット長は最適の場合より長くなる。最悪の条件では
固定長の場合よりも長くなる恐れもある。
[0003] In such variable length encoding, the table used for encoding is a type of table that predicts the probability of occurrence of input information according to the characteristics of the information to be processed, and determines the code length configuration accordingly. Only tables are provided. Therefore, when the probability of occurrence of input information matches the prediction, it is optimal (the overall bit length is the shortest). However, if the probability of occurrence of input information and the code length do not correspond, the overall bit length will be longer than in the optimal case. Under the worst conditions, it may become longer than the fixed length case.

【0004】ところで入力情報を予め決められた数の単
位毎の集合に分割して考える場合に、ある集合内におけ
る各情報の発生頻度と、別の集合内におけるこれに対応
した各情報の発生頻度とは必ずしも等しいとは限らない
。このことは、ある集合に対しては最適の可変長符号化
テーブルであっても、他の集合に対してはそのテーブル
が必ずしも最適のテーブルであるとは限らないというこ
とである。
By the way, when input information is divided into sets of a predetermined number of units, the frequency of occurrence of each piece of information in one set and the frequency of occurrence of each piece of information corresponding to this in another set are calculated. are not necessarily equal. This means that even if the variable length encoding table is optimal for a certain set, that table is not necessarily the optimal table for other sets.

【0005】[0005]

【発明が解決しようとする課題】解決しようとする問題
点は、従来の可変長符号化では一般に符号長の構成が固
定された一種類のテーブルのみが設けられている。この
ため必ずしも常に最適の可変長符号化が行われていると
は言えなかったというものである。
The problem to be solved is that in conventional variable length coding, only one type of table with a fixed code length configuration is generally provided. For this reason, it cannot be said that optimal variable length encoding is always performed.

【0006】[0006]

【課題を解決するための手段】本発明は、複数の可変長
符号化テーブルと、これらの可変長符号化テーブルに対
応した符号長テーブル、アキュムレータ、レジスタ及び
コンパレータからなる情報量評価回路と、上記可変長符
号化テーブルに従って入力情報に可変長符号を割当てる
可変長符号化回路とから構成され、上記情報量評価回路
にて最小符号長となる上記可変長符号化テーブルを選択
して上記入力情報を符号化するようにした可変長符号化
装置である。
[Means for Solving the Problems] The present invention provides an information amount evaluation circuit comprising a plurality of variable length encoding tables, a code length table corresponding to these variable length encoding tables, an accumulator, a register, and a comparator; and a variable length encoding circuit that allocates variable length codes to input information according to a variable length encoding table, and the information amount evaluation circuit selects the variable length encoding table with the minimum code length and converts the input information into This is a variable length encoding device that performs encoding.

【0007】[0007]

【作用】これによれば、情報量評価回路にて最小符号長
となる可変長符号化テーブルが選択されて入力情報の符
号化が行われるので、常に最適の可変長符号化を行うこ
とができ、極めて高能率の符号化を行うことができる。
[Operation] According to this, the variable length encoding table with the minimum code length is selected in the information amount evaluation circuit and the input information is encoded, so that optimal variable length encoding can always be performed. , it is possible to perform extremely highly efficient encoding.

【0008】[0008]

【実施例】図1は本発明による可変長符号化装置の一例
の構成図である。この図において、1は入力情報の供給
される端子である。この入力端子1からの入力情報が後
述する情報量評価回路2での遅延を補償する遅延補償回
路3を通じて可変長符号化回路4に供給される。また5
1、52・・・5Nは、それぞれが可変長符号化テーブ
ルを構成するリード・オンリー・メモリ(ROM)であ
る。これらのROM51、52・・・5Nに設けられた
可変長符号化テーブルがセレクタ6を通じて可変長符号
化回路4に供給される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram of an example of a variable length encoding apparatus according to the present invention. In this figure, 1 is a terminal to which input information is supplied. Input information from this input terminal 1 is supplied to a variable length encoding circuit 4 through a delay compensation circuit 3 that compensates for delays in an information amount evaluation circuit 2, which will be described later. Also 5
1, 52, . . . , 5N are read-only memories (ROM) each forming a variable length encoding table. The variable length encoding tables provided in these ROMs 51, 52, . . . , 5N are supplied to the variable length encoding circuit 4 through the selector 6.

【0009】一方、情報量評価回路2において、入力端
子1からの入力情報は、上述のROM51、52・・・
5Nの可変長符号化テーブルに対応した符号長テーブル
を構成するリード・オンリー・メモリ(ROM)71、
72・・・7Nに共通に供給される。これらのROM7
1、72・・・7Nから入力情報毎に順次取り出される
値がアキュムレータ(ACC)81、82・・・8Nに
供給される。このACC81、82・・・8Nで得られ
た値がそれぞれレジスタ91、92・・・9Nを通じて
コンパレータ10に供給される。そしてこのコンパレー
タ10にて値が最小となるROM71、72・・・7N
(ROM51、52・・・5Nの可変長符号化テーブル
に対応する)が判別される。なお情報量評価回路2にお
いては入力端子1からの入力情報が所定のブロックごと
に処理され、このブロックごとにコンパレータ10にて
判別が行われると共に、ACC81、82・・・8Nが
クリアされる。
On the other hand, in the information amount evaluation circuit 2, the input information from the input terminal 1 is transferred to the ROMs 51, 52, . . .
a read-only memory (ROM) 71 that configures a code length table corresponding to a 5N variable length encoding table;
Commonly supplied to 72...7N. These ROM7
Values sequentially taken out for each input information from 1, 72...7N are supplied to accumulators (ACC) 81, 82...8N. The values obtained by the ACCs 81, 82...8N are supplied to the comparator 10 through registers 91, 92...9N, respectively. And ROM71, 72...7N where the value is the minimum in this comparator 10
(corresponding to the variable length encoding table of ROMs 51, 52, . . . 5N) is determined. In the information amount evaluation circuit 2, the input information from the input terminal 1 is processed for each predetermined block, and the comparator 10 makes a determination for each block, and the ACCs 81, 82, . . . , 8N are cleared.

【0010】このコンパレータ10で判別された信号が
セレクタ6に供給されて、ROM51、52・・・5N
の選択が行われる。そしてこのセレクタ6で選択された
ROM51、52・・・5Nに設けられた可変長符号化
テーブルが可変長符号化回路4に供給され、符号化され
た信号が出力端子11に取り出される。なお遅延補償回
路3においては上述の情報量評価回路2で処理されるブ
ロック分の遅延が補償される。またコンパレータ10で
判別されたテーブル選択情報信号が出力端子12に取り
出される。
The signal determined by the comparator 10 is supplied to the selector 6, and the ROM 51, 52...5N
A selection is made. Then, the variable length encoding table provided in the ROM 51, 52, . Note that the delay compensation circuit 3 compensates for the delay corresponding to the block processed by the above-mentioned information amount evaluation circuit 2. Further, the table selection information signal determined by the comparator 10 is taken out to the output terminal 12.

【0011】従ってこの装置によれば、情報量評価回路
(2)にて最小符号長となる可変長符号化テーブル(R
OM51、52・・・5N)が選択(セレクタ6)され
て入力情報(入力端子1)の符号化(可変長符号化回路
4)が行われるので、常に最適の可変長符号化を行うこ
とができ、極めて高能率の符号化を行うことができるも
のである。
Therefore, according to this device, the information amount evaluation circuit (2) determines the variable length encoding table (R
OM51, 52...5N) is selected (selector 6) and the input information (input terminal 1) is encoded (variable length encoding circuit 4), so it is possible to always perform optimal variable length encoding. This makes it possible to perform extremely highly efficient encoding.

【0012】さらに図2は復号化装置の一例の構成図で
ある。この図において上述の出力端子11、12に取り
出された信号に相当する信号が、入力端子21、22に
供給される。この入力端子21からの信号が可変長復号
化回路23に供給される。また31、32・・・3Nは
、それぞれがROM51、52・・・5Nに設けられた
可変長符号化テーブルに対応する可変長復号化テーブル
を構成するリード・オンリー・メモリ(ROM)である
。これらのROM31、32・・・3Nに設けられた可
変長復号化テーブルがセレクタ24に供給される。さら
に入力端子22からの信号がレジスタ25を通じてセレ
クタ24に供給される。そしてこのセレクタ24で選択
されたROM31、32・・・3Nに設けられた可変長
復号化テーブルが可変長復号化回路23に供給され、復
号化された出力情報が出力端子26に取り出される。
Furthermore, FIG. 2 is a block diagram of an example of a decoding device. In this figure, signals corresponding to the signals taken out to the above-mentioned output terminals 11 and 12 are supplied to input terminals 21 and 22. A signal from this input terminal 21 is supplied to a variable length decoding circuit 23. Further, 31, 32, . . . , 3N are read-only memories (ROM) that constitute variable length decoding tables corresponding to the variable length encoding tables provided in the ROMs 51, 52, . . . , 5N, respectively. The variable length decoding tables provided in these ROMs 31, 32, . . . , 3N are supplied to the selector 24. Further, a signal from the input terminal 22 is supplied to the selector 24 through the register 25. Then, the variable length decoding table provided in the ROM 31, 32, .

【0013】このようにして復号化が行われる。なお復
号化に当たっては、全ての復号化テーブルで復号した中
から最も矛盾の少ないものを選択することによって、テ
ーブル選択情報信号を不用にすることもできる。しかし
ながらこのテーブル選択情報信号は3ビット程度の小ビ
ット数の信号であり、これによって復号化装置の構成を
極めて簡単にできるものである。
[0013]Decoding is performed in this manner. Note that in decoding, the table selection information signal can be made unnecessary by selecting the one with the least contradiction from among the decoding tables decoded using all the decoding tables. However, this table selection information signal is a signal with a small number of bits, about 3 bits, so that the configuration of the decoding device can be extremely simplified.

【0014】また図3は可変長符号化テーブルの例を示
したものである。図では入力情報の量子化レベルが−1
016〜+1016の場合について、2通りの可変長符
号化テーブルの例を符号長の構成で示している。そして
この図において、テーブル1は入力情報の量子化レベル
が0の発生頻度が極めて高い場合に選択される。またテ
ーブル2は入力情報の量子化レベルが−2〜+2の範囲
の発生頻度が高い場合に選択されるものである。
FIG. 3 shows an example of a variable length encoding table. In the figure, the quantization level of the input information is -1
For cases of 016 to +1016, two examples of variable length encoding tables are shown in code length configurations. In this figure, Table 1 is selected when the frequency of occurrence of the quantization level of input information being 0 is extremely high. Further, Table 2 is selected when the quantization level of the input information is frequently in the range of -2 to +2.

【0015】さらに本発明の原理について情報理論的な
説明を加える。今、M種類の通報からなる情報源をSと
して表し、Sの要素を情報源記号を用いて(s1 、s
2 ・・・sM )と表す。この場合に情報源SからN
個の通報が発生した時の平均情報量Iは
Furthermore, an information-theoretic explanation will be added regarding the principle of the present invention. Now, an information source consisting of M types of reports is expressed as S, and the elements of S are expressed using information source symbols (s1, s
2...sM). In this case, information source S to N
The average amount of information I when reports occur is

【数1】 と表される。ここでp(si )はN個の通報のうち通
報がsi であった数をni として
It is expressed as [Equation 1]. Here, p(si) is the number of reports with si out of N reports as ni.

【数2】 である。[Math 2] It is.

【0016】次にN個の発生情報を2つの集合に分け、
N1 個の通報とN2 個の通報とに分離する。前者の
平均情報量をI1 、後者のそれをI2 とすると
Next, divide the N pieces of occurrence information into two sets,
Separate into N1 notifications and N2 notifications. If the average information amount of the former is I1 and that of the latter is I2, then

【数
3】 と表される。ここでN1 +N2 =Nであり、p1 
(si )及びp2 (si )はそれぞれN1 個及
びN2 個の通報中の通報si の発生頻度である。よ
って
It is expressed as [Equation 3]. Here, N1 +N2 = N, and p1
(si) and p2 (si) are the frequencies of occurrence of notification si among N1 and N2 notifications, respectively. Therefore

【数4】 なる関係がある。[Math 4] There is a relationship.

【0017】次にp1 (si )及びp2 (si 
)のうち大きな方をpmax (si )とすると次の
不等式が成り立つ。
Next, p1 (si) and p2 (si
), the following inequality holds true.

【数5】 よって平均情報量Iについても次の不等式が成り立つ。[Math 5] Therefore, the following inequality also holds true for the average information amount I.

【数6】[Math 6]

【0018】この不等式はN個まとめて符号化するより
も、N1 個及びN2 個に分離して符号化した方が平
均情報量が小さくなり得ることを示している。すなわち
それぞれの発生情報確率に従った符号化を個々に行った
方が、まとめて行うよりも効率的であることを意味する
This inequality shows that the average amount of information can be smaller if N1 and N2 pieces are encoded separately than when N pieces are encoded all at once. That is, it means that it is more efficient to perform encoding according to each occurrence information probability individually than to perform encoding all at once.

【0019】このことは本発明で示した様に、ある程度
のきめられた数を単位としてそれぞれについての最適符
号化を行うことの有利さを示している。従って本発明で
はこの最適化のために複数の符号長構成の符号化テーブ
ルを持ち、情報量評価を行っているものである。
This shows the advantage of performing optimal encoding for each predetermined number as a unit, as shown in the present invention. Therefore, in the present invention, for this optimization, a coding table with a plurality of code length configurations is provided, and information amount evaluation is performed.

【0020】[0020]

【発明の効果】この発明によれば、情報量評価回路にて
最小符号長となる可変長符号化テーブルが選択されて入
力情報の符号化が行われるので、常に最適の可変長符号
化を行うことができ、極めて高能率の符号化を行うこと
ができるようになった。
[Effects of the Invention] According to the present invention, the variable length encoding table with the minimum code length is selected in the information amount evaluation circuit and the input information is encoded, so that optimal variable length encoding is always performed. This has made it possible to perform extremely highly efficient encoding.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明による可変長符号化装置の一例の構成図
である。
FIG. 1 is a configuration diagram of an example of a variable length encoding device according to the present invention.

【図2】その復号化装置の一例の構成図である。FIG. 2 is a configuration diagram of an example of the decoding device.

【図3】その説明のための図である。FIG. 3 is a diagram for explaining the same.

【符号の説明】[Explanation of symbols]

1  入力情報の供給される入力端子 2  情報量評価回路 3  遅延補償回路 4  可変長符号化回路 51、52・・・5N  可変長符号化テーブルのリー
ド・オンリー・メモリ 6  セレクタ 71、72・・・7N  符号長テーブルのリード・オ
ンリー・メモリ 81、82・・・8N  アキュムレータ91、92・
・・9N  レジスタ 10  コンパレータ 11  符号化出力端子 12  テーブル選択情報出力端子
1 Input terminal to which input information is supplied 2 Information amount evaluation circuit 3 Delay compensation circuit 4 Variable length encoding circuits 51, 52...5N Read-only memory 6 for variable length encoding table Selectors 71, 72... 7N Code length table read-only memory 81, 82...8N Accumulator 91, 92...
...9N Register 10 Comparator 11 Encoding output terminal 12 Table selection information output terminal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  複数の可変長符号化テーブルと、これ
らの可変長符号化テーブルに対応した符号長テーブル、
アキュムレータ、レジスタ及びコンパレータからなる情
報量評価回路と、上記可変長符号化テーブルに従って入
力情報に可変長符号を割当てる可変長符号化回路とから
構成され、上記情報量評価回路にて最小符号長となる上
記可変長符号化テーブルを選択して上記入力情報を符号
化するようにした可変長符号化装置。
[Claim 1] A plurality of variable length encoding tables and code length tables corresponding to these variable length encoding tables;
It consists of an information evaluation circuit consisting of an accumulator, a register, and a comparator, and a variable length encoding circuit that assigns a variable length code to input information according to the variable length encoding table, and the minimum code length is achieved in the information evaluation circuit. A variable length encoding device that selects the variable length encoding table to encode the input information.
JP1401091A 1991-01-11 1991-01-11 Variable-length encoding device Pending JPH04239225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1401091A JPH04239225A (en) 1991-01-11 1991-01-11 Variable-length encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1401091A JPH04239225A (en) 1991-01-11 1991-01-11 Variable-length encoding device

Publications (1)

Publication Number Publication Date
JPH04239225A true JPH04239225A (en) 1992-08-27

Family

ID=11849234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1401091A Pending JPH04239225A (en) 1991-01-11 1991-01-11 Variable-length encoding device

Country Status (1)

Country Link
JP (1) JPH04239225A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06232914A (en) * 1992-12-04 1994-08-19 Internatl Business Mach Corp <Ibm> Method for compressing quasistatic data and expanding the same
US5786780A (en) * 1994-11-30 1998-07-28 Samsung Electronics Co., Ltd. Variable-length encoder and decoder using symbol/code-word re-association of a coding table
US6919828B2 (en) 2000-05-17 2005-07-19 Samsung Electronics Co., Ltd. Variable length coding and decoding methods and apparatuses using plural mapping tables
JP2009520382A (en) * 2005-10-05 2009-05-21 エルジー エレクトロニクス インコーポレイティド Signal processing method and apparatus, encoding and decoding method, and apparatus therefor
US7865369B2 (en) 2006-01-13 2011-01-04 Lg Electronics Inc. Method and apparatus for signal processing and encoding and decoding method, and apparatus therefor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06232914A (en) * 1992-12-04 1994-08-19 Internatl Business Mach Corp <Ibm> Method for compressing quasistatic data and expanding the same
US5786780A (en) * 1994-11-30 1998-07-28 Samsung Electronics Co., Ltd. Variable-length encoder and decoder using symbol/code-word re-association of a coding table
USRE37912E1 (en) * 1994-11-30 2002-11-26 Samsung Electronics Co., Ltd. Variable-length encoder and decoder using symbol/code-word re-association of a coding table
US6919828B2 (en) 2000-05-17 2005-07-19 Samsung Electronics Co., Ltd. Variable length coding and decoding methods and apparatuses using plural mapping tables
JP2009520382A (en) * 2005-10-05 2009-05-21 エルジー エレクトロニクス インコーポレイティド Signal processing method and apparatus, encoding and decoding method, and apparatus therefor
US7865369B2 (en) 2006-01-13 2011-01-04 Lg Electronics Inc. Method and apparatus for signal processing and encoding and decoding method, and apparatus therefor

Similar Documents

Publication Publication Date Title
KR100489908B1 (en) Digital information signal encoding method and apparatus
KR100378319B1 (en) Method and means for handling information
EP1047198A2 (en) Encoder with optimally selected codebook
US5883589A (en) Variable length code construction apparatus
US5999111A (en) Variable length encoding/decoding apparatus using re-association of symbol-codeword for variable length code table
JPS61212920A (en) Data compression and reception of coded compression data
US5594435A (en) Permutation-based data compression
EP4362365A1 (en) Method for feeding back channel state information, method for receiving channel state information, and terminal, base station, and computer-readable storage medium
JPH04239225A (en) Variable-length encoding device
US7039069B2 (en) Interleaving method
KR19990037202A (en) Transmitter and Transmitter of Signal Data Rate
EP1345333B1 (en) Error protection method and error protection device
EP0496541B1 (en) Vector quantizer using an ordered continuity-constrained codebook
US5914680A (en) Data encoding method and apparatus and data decoding method and apparatus
EP1035480A2 (en) Apparatus for performing a fast hadamard transform
US5991340A (en) Method and system for encoding and decoding data using run prediction
KR101549740B1 (en) Binary data compression and decompression method and apparatus
RU2005106196A (en) METHOD OF DYNAMIC LOAD DISTRIBUTION FOR SIGNAL POINTS AND SUBSYSTEMS
US6738413B1 (en) Code generator, communication unit using the code generator, communication system, and code generation method
JP4603698B2 (en) Method and apparatus for encoding / decoding
JP3459571B2 (en) Encoding device
CN113890545A (en) On-demand decoding method and device
EP1359755B1 (en) A coded information signal
EP0047382A2 (en) Adaptive compression encoding of a binary-source symbol string
KR0148152B1 (en) Adaptive variable length coding/decoding method and apparatus of image data