JPH0453328B2 - - Google Patents
Info
- Publication number
- JPH0453328B2 JPH0453328B2 JP28060585A JP28060585A JPH0453328B2 JP H0453328 B2 JPH0453328 B2 JP H0453328B2 JP 28060585 A JP28060585 A JP 28060585A JP 28060585 A JP28060585 A JP 28060585A JP H0453328 B2 JPH0453328 B2 JP H0453328B2
- Authority
- JP
- Japan
- Prior art keywords
- register
- digit
- output
- digits
- contents
- 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.)
- Expired
Links
- 238000013144 data compression Methods 0.000 claims description 26
- 238000000034 method Methods 0.000 description 32
- 238000010586 diagram Methods 0.000 description 7
- 238000012937 correction Methods 0.000 description 5
- 238000004904 shortening Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明はデイジタルデータの伝送あるいは蓄積
の際に伝送時間や蓄積容量を節約する目的で冗長
度を除いて圧縮されたデータから、もとのデータ
を復元するデータ圧縮復号化装置に関するもので
ある。[Detailed Description of the Invention] <Industrial Application Field> The present invention is designed to extract data from compressed data by removing redundancy in order to save transmission time and storage capacity when transmitting or storing digital data. The present invention relates to a data compression/decoding device for restoring data.
〈従来の技術〉
冗長データを圧縮する方法及び圧縮されたデー
タからもとの冗長データを復元する方法として従
来一般によく知られ利用されているものに、算術
符号を用いる方法がある。算術符号のデータ圧縮
符号化装置(データを圧縮する装置、以下では単
に符号化装置とも言う)及びデータ圧縮復号化装
置(データを復元する装置。以下では単に復号化
装置とも言う)の詳細については例えば米国のイ
ンターナツシヨナルビジネスマシンズコーポレー
シヨン(International Business Machines
Corporation)から1976年に発行された論文誌ア
イビーエムジヤーナルオブリサーチアンドベロツ
プメント(IBM Journal of Research and
Development)の第20巻3号の198〜203ページ
や1984年に発行された同誌第28巻2号135〜149ペ
ージや米国のスタンフオード大学(Stanford
University)で1976年に発行されたリチヤードク
ラークパスコ(Richard Clark Pasco)による
博士論文「ソースコーデイングアルゴリスムフオ
ーフアーストデータコンプレツシヨン(Source
coding algorithms fast data compression)」
に詳しく述べられている。これらの方法のうちデ
ータ圧縮する方法について簡潔に述べれば、情報
デイジツト列X1,X2…,XNは、その冗長度に応
じて長さの異なる符号デイジツト列W1,W2…,
WLに例えば次のようにして変更され、情報デイ
ジツト列の冗長度が取除かれる。<Prior Art> As a method of compressing redundant data and a method of restoring the original redundant data from the compressed data, a method using arithmetic codes is well known and used in the past. For details on the arithmetic code data compression encoding device (device that compresses data, hereinafter also simply referred to as encoding device) and data compression decoding device (device that restores data, hereinafter also simply referred to as decoding device) For example, International Business Machines Corporation in the United States
The journal IBM Journal of Research and Development was published in 1976 by IBM Corporation.
Volume 20, No. 3, pages 198-203 of Vol.
A doctoral dissertation by Richard Clark Pasco published in 1976 at Source Coding Algorithms for First Data Compression (Source
coding algorithms (fast data compression)”
is described in detail. To briefly describe the data compression method among these methods, information digit strings X 1 , X 2 . . . , X N are converted into code digit strings W 1 , W 2 .
W L is changed, for example, as follows to remove the redundancy of the information digit string.
まずFをあらかじめ決められた数直線上の区間
(0以上1未満とする)の小さい方の端の値(す
なわち0)とし、Tをその区間の幅(すなわち
1)とする。次に以下の手順A1)〜A5)を実行
する。なお以下ではXYはXにYの値を代入す
ることを表わすものとする。また演算はすべてb
進法で行なうものとする。 First, let F be the value at the smaller end (ie, 0) of a predetermined interval on a number line (between 0 and less than 1), and T be the width of that interval (ie, 1). Next, the following steps A1 ) to A5 ) are executed. Note that in the following, XY represents substituting the value of Y for X. Also, all operations are b
It shall be done in hexadecimal format.
A1 iの値を1とする。Let the value of A 1 i be 1.
A2 第i番目の情報デイジツトXiを入力する。 A2 Input the i-th information digit Xi.
A3 第i番目の情報デイジツトXiの出現確率qi
(xi)と累積出現確率
Ci(Xi)=
Σy
<xiqi(y)
を求める。A 3 Probability of appearance q i of the i-th information digit Xi
(x i ) and cumulative appearance probability C i (X i )=Σ y < xi q i (y).
A4 FF+Ci(Xi)・T
Tqi(Xi)・T
とし、Tを予め決められた有効数字K桁で打ち
切る。 A 4 FF+C i (X i )・T Tq i (X i )・T, and T is truncated at a predetermined significant number of K digits.
A5 i<Nならiの値を1増やしてA2へ移る。If A 5 i<N, increase the value of i by 1 and move to A 2 .
i=Nなら終了。 If i=N, end.
最後にFとTの最終値で決定される区間に含まれ
る実数のうちから数値表現したときのデイジツト
数が少ない実数を選び、選ばれた実数の表現デイ
ジツトO・W1W2……WLを符号デイジツト列
W1,W2,……,WLとして定める。なお、以下
では説明の都合上次のような記法を用いるものと
する。Finally, from among the real numbers included in the interval determined by the final values of F and T, choose a real number that has the smallest number of digits when expressed numerically, and express the selected real number as digits O・W 1 W 2 ……W L The sign digit string
Define as W 1 , W 2 , ..., W L. Note that the following notation will be used below for convenience of explanation.
T=A・b-〓
A=C.t1t2……tl(A)
F=(F1+F2)・b-〓
{F1=f1,1f1,2……f1、l(F1)
F2=O・f2、1……f2、(二)……f2、l(F2)
ここでl(A)、l(F1)、l(F2)はそれぞれA、
F1、F2の表現デイジツト数を表わす。また初期
状態(すなわちFとOとし、Tを1として符号化
装置の初期化を行なつたとき)においてはt1≠0
と設定しておくものとする。すると前述の手順
A4)は次のように表わされる。T=A・b - 〓 A=Ct 1 t 2 ......t l(A) F=(F1+F2)・b - 〓 {F1=f 1 , 1 f 1 , 2 ... f 1 , l(F1) F2 =O・f 2 , 1 ...f 2 , (2)...f 2 , l(F2) where l(A), l(F 1 ), and l(F 2 ) are respectively A,
Expression of F1 and F2 Represents the number of digits. Furthermore, in the initial state (that is, when the encoding device is initialized with F and O and T as 1), t 1 ≠ 0
shall be set. Then the steps mentioned above
A4) is expressed as follows.
A4.1 F2+Ci(Xi)A・1ならば F1F1+1を実行する。A4.1 If F2+C i (X i )A・1, execute F1F1+1.
A4.2 F2frac(F2+Ci(Xi)・A)とする。ここ
でfrac(X)はXの小数点以下の値を与える
関数である。A4.2 Let F2frac(F2+C i (X i )・A). Here, frac(X) is a function that gives a value below the decimal point of X.
A4.3 Aqi(Xi)・Aとする。A4.3 Let Aq i (X i )・A.
A4.4 もしt1=0ならば F1b・F1+f2、1 F2frac(b・F2) Ab・A ττ+1 とする。A4.4 If t 1 = 0, F1b・F1+f 2 , 1 F2frac(b・F2) Ab・A ττ+1.
A4.5 もしt1=0ならばA4.4)へ移る、さもな
くば次へ移る。A4.5 If t 1 = 0, move on to A4.4), otherwise move on to the next one.
A4.6 Aの小数点第K+1位以下tk+1、tk+2 …を打ち切る。A4.6 Truncate t k+1 , t k+2 , etc. below the K+1 decimal point of A.
上記手順A1)〜A5)に従えば符号語の長さLは
情報デイジツト列の長さNより一般に小さくなつ
てデータ圧縮できることが前記文献に示されてい
る。一方、データを復元する方法について簡潔に
述べれば、符号デイジツト列W1,W2,……,
WLは例えば次のようにして変換され、もとの情
報デイジツト列X1,X2,……,XNが復元され
る。It is shown in the above-mentioned literature that if the above procedures A1) to A5) are followed, the length L of the code word is generally smaller than the length N of the information digit string, and data can be compressed. On the other hand, to briefly describe the method for restoring data, the coded digit sequence W 1 , W 2 , ...,
For example, W L is converted as follows, and the original information digit strings X 1 , X 2 , . . . , X N are restored.
まず、WにO.W1W2……WLを代入しSに1を
代入する。次に以下の手順B1)〜B5)を実行す
る。なお以下ではXYはXにYの値を代入する
ことを表わすものとする。また演算はすべてb進
法で行なうものとする。 First, OW 1 W 2 . . . W L is substituted for W, and 1 is substituted for S. Next, execute steps B1) to B5) below. Note that in the following, XY represents substituting the value of Y for X. It is also assumed that all operations are performed in the b-adic system.
B1 iの値を1とする。Let the value of B1 i be 1.
B2 ci(Y)W/Sを満たすYのうちで最大の
デイジツトをXiとする。B2 c i (Y) Let X i be the largest digit among Y that satisfies W/S.
B3 Xiを復元された情報デイジツトとして出力
する
B4 WW−Ci(Xi)・S
Sqi(Xi)・S
とし、Sを予め決められた有効数字K桁で打ち
切る。B3 Xi is output as a restored information digit, B4 WW-C i (X i )·S Sq i (X i )·S, and S is truncated at a predetermined significant number K digits.
B5 i<Nならiの値を1増やしてB2)へ移
る。B5 If i<N, increase the value of i by 1 and move to B2).
i=Nなら終了。If i=N, end.
なお以下では説明の都合上次のような記法を用い
るものとする。Note that the following notation will be used below for convenience of explanation.
S=B・b-〓
B=O.S1S2……Sl(B)
W=(W1+W2)・b-〓
{W1=W1、1W1、2……W1l(W1)
W2=O.W2、1W2、2……W2、(W2)
ここでl(B)、l(W1)、l(W2)はそれぞれB、
W1、W2の表現デイジツト数を表わす。また初期
状態(すなわちWをO.W1W2……WLとし、Sを
1として復号化装置の初期化を行なつたとき)に
おいてはS1≠Oと設定しておくものとする。する
と前述の手順B2)は次のようになる。S=B・b - 〓 B=OS 1 S 2 ...S l(B) W=(W1+W2)・b - 〓 {W1=W 1 , 1W 1 , 2 ...W 1 l (W 1 ) W2= OW 2 , 1 W 2 , 2 ...W 2 , (W2) where l(B), l(W1), l(W2) are B, respectively.
Expression of W1 and W2 Represents the number of digits. Further, in the initial state (that is, when the decoding device is initialized with W as OW 1 W 2 . . . W L and S as 1), it is assumed that S 1 ≠O. Then, the above step B2) becomes as follows.
B2 Ci(Y)(W1+W2)/Bを満たすYのう
ちで最大のデイジツトをXiとする。Let X i be the largest digit among Y that satisfies B2 Ci(Y)(W1+W2)/B.
また手順B4)は次のように表わされる。Further, step B4) is expressed as follows.
B4.1 W2−Ci(Xi)・B<Oならば W1W1−1 W2(1.0+W2)−Ci(Xi)・B を実行する。さもなくば W2W2−Ci(Xi)・B を実行する。B4.1 If W2−C i (X i )・B<O, execute W1W1−1 W2 (1.0+W2)−C i (X i )・B. Otherwise, execute W2W2−C i (X i )·B.
B4.2 Bqi(Xi)・Bとする。B4.2 Let Bq i (X i )・B.
B4.3 もしS1=Oならば W1b・W1+W2、1 W2frac(b・W2) Bb・B δδ+1 とする。B4.3 If S 1 = O, then W1b・W1+W2, 1 W2frac(b・W2) Bb・B δδ+1.
B4.4 もしS1=OならばB4.3)へ移る。B4.4 If S 1 = O, move to B4.3).
さもなくば次へ移る。Otherwise, move on.
B4.5 Bの小数点第K+1位以下Sk+1、Sk+2、
……を打ち切る。B4.5 K+1 decimal place of B S k+1 , S k+2 ,
...is discontinued.
上記手順B1)〜B5)に従えば符号デイジツト列
W1,W2,……,WLからもとの情報デイジツト
列X1,X2,……,XNが誤りなく復元できること
が前記文献に示されている。If you follow the steps B1) to B5) above, the code digit string will be
The above-mentioned document shows that the original information digit sequence X 1 , X 2 , . . . , X N can be restored without error from W 1 , W 2 , .
また、上記手順A1)〜A5)及びB1)〜B5)
には、例えば次に述べられるような装置化に都合
のよい性質のあることが前記文献に示されてい
る。まず第一点は使用目的に応じた柔軟な設がで
きる点である。すなわち上記手順では情報デイジ
ツト列の長さNを予め決められた一定値とし、一
方符号デイジツト列の長さLを情報デイジツト列
の冗長度に依存して決まる値としたが、逆にLを
予め決められた一定値とし、Nを情報デイジツト
列の冗長度に依存して決まる値とすることもでき
る。そのためには前記手順A5)及びB5)をそれ
ぞれ次のように変更すればよい。 In addition, the above steps A1) to A5) and B1) to B5)
The above-mentioned literature shows that the above-mentioned method has properties that are convenient for deviceization, such as those described below. The first point is that it can be set up flexibly depending on the purpose of use. That is, in the above procedure, the length N of the information digit string is set to a predetermined constant value, and the length L of the code digit string is set to a value determined depending on the redundancy of the information digit string, but conversely, L is set to a predetermined constant value. It is also possible to take a predetermined constant value and take a value for N that depends on the redundancy of the information digit string. To do this, steps A5) and B5) may be modified as follows.
A5′ τ<L−Jならiの値を1増やしてA2)へ
移る。τ=L−Jなら終了。If A5'τ<L-J, increase the value of i by 1 and move to A2). If τ=L−J, end.
B5′ δ<L−Jならiの値を1増やしてB2)へ
移る。δ=L−Jなら終了。B5' If δ<L-J, increase the value of i by 1 and move to B2). If δ=L−J, end.
ここでJはqi(・)、Ci(・)の有効桁数である。
しかし、どちらも符号化・復号化を終了する基準
が異なるだけで装置の構成は同様であるから、以
下の説明では便宜上情報デイジツト列の長さNを
一定値とし、一方符号デイジツトの長さLを情報
デイジツト列の冗長度に依存して決まる値として
おく。第二点は、情報デイジツト列の長さNを十
分大きくすると圧縮の効率が良くなり、ほとんど
理論的限界に達する点である。最後に第三点は上
記手順A1)〜A5)において符号デイジツトを遂
次的に出力し得る点である。すなわち前記文献に
よれば、手順A4.1)の演算F1F1+1において
桁上りが一旦生じると、桁上りが伝播した範囲よ
り高位のデイジツトに仕上りが再度伝播すること
はない(例えばb=2でF1=10101111のときは
桁上りはF1の上位3ビツト101へは決して伝
播しない)から、すべての情報デイジツトに対す
る符号化が完了しないうちに桁上りの伝播しない
高位の符号デイジツトを遂次的に出力してゆけ
る。例えばb=2でF1=10101111のときにはF1
の上位3ビツト101へは桁上りは決して伝播し
ないので上位3ビツト101は符号デイジツトと
して出力できる。Here, J is the number of significant digits of q i (·) and C i (·).
However, in both cases, the only difference is the criteria for terminating encoding/decoding, and the configuration of the devices is the same. Therefore, in the following explanation, for convenience, the length N of the information digit string is assumed to be a constant value, while the length L of the code digit string is assumed to be a constant value. Let be a value determined depending on the redundancy of the information digit string. The second point is that if the length N of the information digit string is made sufficiently large, the compression efficiency will improve and almost reach the theoretical limit. Finally, the third point is that the code digits can be sequentially output in the above steps A1) to A5). That is, according to the above-mentioned document, once a carry occurs in the operation F1F1+1 in step A4.1), the finish will not be propagated again to digits higher than the range in which the carry propagated (for example, if b=2 and F1= 10101111, the carry never propagates to the upper 3 bits of F1 (101), so the high-order code digits in which the carry does not propagate are sequentially output before the encoding of all information digits is completed. I can go. For example, when b=2 and F1=10101111, F1
Since the carry never propagates to the upper 3 bits 101 of , the upper 3 bits 101 can be output as a code digit.
さて上記のようなデータ圧縮及びデータの復元
を実行するためのデータ圧縮符号化装置及びデー
タ圧縮復号化装置は、例えば米国のインターナシ
ヨナルビジネスマシンズコーポレーシヨンの米国
特許第4122440号などに記されているような加
算・乗算などの算桁演算回路を含む回路で実現で
きる。 Now, a data compression encoding device and a data compression decoding device for performing data compression and data restoration as described above are described in, for example, U.S. Patent No. 4122440 of International Business Machines Corporation of the United States. This can be realized with a circuit that includes a digit operation circuit such as addition and multiplication.
もつとも、符号デイジツトを遂次的に出力でき
ると言つても、例えばF1=0111111のときに手順
A1)においてF1F1+1が実行されると最上位
デイジツトまで桁上りが伝播するので符号デイジ
ツトを遂次的に出力できない。すなわち桁上りの
伝播の長さが一定でないので、符号デイジツトに
1が連続して出現した場合には符号化遅延が大き
くなつてしまう。 Of course, even if code digits can be output sequentially, for example, when F1 = 0111111, the procedure
When F1F1+1 is executed in A1), the carry propagates to the most significant digit, so the code digits cannot be sequentially output. In other words, since the length of carry propagation is not constant, the encoding delay becomes large when 1s appear continuously in the code digit.
このため、符号化遅延が小さいことを要求され
る用途で算術符号を応用するには桁上りの伝播の
制御が必要で、従来は符号ビツトにb−1が一定
数以上連続して表われた時には区間の幅をbで割
ることによつて、上記手順B4.1)の演算F1F1
+1が実行されることを防ぎ、桁上りの伝播の長
さを一定長以下に制御する方法が用いられてい
た。具体的には符号化法として、前述の手順A4)
とA5)の間に以下のような手順を加えたものが
用いられていた。 For this reason, in order to apply arithmetic codes to applications that require small coding delays, it is necessary to control carry propagation. Sometimes by dividing the width of the interval by b, the operation F1F1 of step B4.1) above
A method has been used to prevent +1 from being executed and to control the length of carry propagation to a certain length or less. Specifically, as an encoding method, the above-mentioned step A4)
and A5) with the following steps added.
A イ F1の下位Mデイジツトがすべてb−1
ならば次にさもなくばA、ニ)へ移る。A B All lower M digits of F1 are b-1
If so, then move on to A, D).
A ロ F1b・F1+f2、1 F2frac(b・F2) ττ+1 A ハ A、イ)へ移る。A B F1b・F1+f 2 , 1 F2frac (b・F2) ττ+1 A C Move to A, B).
A ニ 次へ移る。A D Move on to the next one.
ここでMは予め決められた値で、もし桁上りの
伝播の長さを10デイジツト以下にしたければM=
10としておく。この操作はF1,F2の表現デイジ
ツトが格納されているるレジスタの内容をM個の
b−1が連続しなくなるまで高位の方へシフトさ
せることと等価である。 Here, M is a predetermined value, and if you want the carry propagation length to be less than 10 digits, M =
Set it to 10. This operation is equivalent to shifting the contents of the register in which the representation digits of F1 and F2 are stored upwards until M b-1 numbers are no longer consecutive.
一方、この符号化法に対する復号化法として
は、前述の手順B・3)とB・4)の間に以下の
ような手順を加えたものが用いられていた。 On the other hand, as a decoding method for this encoding method, a method was used in which the following procedure was added between the above-mentioned procedures B.3) and B.4).
B イ FF+Ci(Xi)・Sを実行する。B i Execute FF+C i (X i )・S.
すなわちF2+Ci(Xi)・B1ならば
F1F1+1、F2frac(F2+Ci(Xi)・B)
をさもなければF2frac(F2+Ci(Xi)・B
を実行する。In other words, if F2+C i (X i )・B1, then F1F1+1, F2frac(F2+C i (X i )・B)
Otherwise, F2frac(F2+C i (X i )・B
Execute.
B ロ F1の下位Mデイジツトがすべてb−1
ならば次に、さもなくばB・ホ)へ移る。B B The lower M digits of F1 are all b-1
If so, move on to the next step, otherwise move on to B/H).
B ハ F1b・F1+f2、1 F2frac(b・F2) W1b・W1+W2、1 W2frac(b・W2) ττ+1、δδ+1 を実行する。Execute B C F1b・F1+f 2 , 1 F2frac(b・F2) W1b・W1+W 2 , 1 W2frac(b・W 2 ) ττ+1, δδ+1.
B・ニ B・ロ)へ移る。Move to B. ni B. ro).
B・ホ 次へ移る。B. Ho Move on to the next one.
ここでF1、F2は対応する符号器が用いている
ものに等しいもので、初期値も符号器と同一とし
ておく。以上のような桁上りの伝播制御を取り入
れることによつて、符号化遅延の小さなことが要
求される用途でも算術符号がデータ圧縮のために
応用されていた。 Here, F1 and F2 are equal to those used by the corresponding encoder, and the initial values are also the same as those of the encoder. By incorporating carry propagation control as described above, arithmetic codes have been applied to data compression even in applications that require small coding delays.
〈発明が解決しようとする問題点〉
しかしながら、従来の桁上りの伝播制御方式で
はb−1が一定数以上連続して表われた場合に区
間の幅をちようどb分の1にしていた(すなわち
Fの表現デイジツトを高位デイジツトの方へ1デ
イジツトシフトさせていた)ので、桁上りの伝播
制御操作1回につき、平均約b/(b−1)デイ
ジツトの冗長デイジツトが符号デイジツトに付加
された。なぜなら、レジスタF2の上位デイジツ
トにbがj個連続する確率は(b−1)/bj+1で
あり、F2の上位にbがj個連続していれば、1
回の桁上りの伝播制御についてj+1回のシフト
が実行されるので、桁上りの伝播制御1回に伴な
うシフト回数の平均は約∞
Σj=0
(j+1)・(b−
1)/bj+1=b/(b−1)回となるからであ
る。特にb=2の場合には従来の桁上りの伝播制
御方式では1回の操作につき平均b/(b−1)
=2ビツトも符号ビツト列の長さが増加してしま
うという欠点があつた。<Problem to be solved by the invention> However, in the conventional carry propagation control method, when b-1 appears a certain number or more consecutively, the width of the interval is reduced to 1/b. (i.e., the representation digit of F was shifted one digit toward the higher order digit). Therefore, for each carry propagation control operation, an average of about b/(b-1) digits of redundant digits is added to the code digit. It was done. This is because the probability that j consecutive b's occur in the upper digits of register F2 is (b-1)/b j+1 , and if there are j consecutive b's in the upper digits of F2, then 1
Since j+1 shifts are executed for carry propagation control, the average number of shifts associated with one carry propagation control is approximately ∞ Σ j=0 (j+1)・(b−
1)/b j+1 = b/(b-1) times. In particular, when b = 2, the conventional carry propagation control method yields an average of b/(b-1) per operation.
=2 bits also had the disadvantage that the length of the code bit string increased.
本発明の目的は従来のデータ圧縮符号化装置と
データ圧縮復号化装置の上記欠点を取り除き、桁
上りの伝播制御に伴なう符号デイジツト列の長さ
の増加が小さな新規な桁上り伝播制御法を取り入
れたデータ圧縮符号化装置に対応するデータ圧縮
復号化装置を提供することにある。 An object of the present invention is to eliminate the above-mentioned drawbacks of conventional data compression encoding devices and data compression decoding devices, and to provide a new carry propagation control method in which the length of the coded digit string increases little due to carry propagation control. An object of the present invention is to provide a data compression/decoding device that is compatible with a data compression/encoding device incorporating the above.
〈発明の構成〉
本発明のデータ圧縮復号化装置は、b進数値
(b≧2)を格納する第1のレジスタと第2のレ
ジスタと、予め登録された確率パラメータを入力
デイジツトに応じて出力する確率パラメータ発生
器と、前記第2のレジスタの内容と確率パラメー
タ発生器の出力とを乗算する乗算器と、前記乗算
器の出力と前記第1のレジスタの内容を加算する
加算器と、前記第1のレジスタの上位一定長のデ
イジツトがすべてb−1になつたときに桁上り警
報信号を発生する警報回路を具備し、情報が入力
されるごとに、前記加算器の出力及び前記乗算器
の出力をそれぞれ前記第1レジスタ及び第2のレ
ジスタに保持し、前記第2のレジスタの最上位デ
イジツトが0になつたならば0でなくなるまで前
記第1のレジスタと第2のレジスタを上位デイジ
ツト方向にシフトし、一方、桁上り警報信号が発
生したならば、前記第2のレジスタの内容をすべ
てb−1にし、警報信号が発生しなくなるまで第
1のレジスタを上位デイジツトの方へシフトさ
せ、前記第1のレジスタからシフトされて溢れ出
たデイジツト列を、入力された情報デイジツト列
に対応する符号デイジツト列として出力するデー
タ圧縮符号化装置に対応するデータ圧縮復号化装
置において、入力された符号デイジツトを保持す
る第3のレジスタと、前記データ圧縮符号化装置
の複製と、0からb−1までのデイジツトを発生
して前記確率パラメータ発生器に供給する発生回
路と、第3のレジスタの内容を第2のレジスタの
内容で除算する除算器と、前記除算器の出力と前
記確率パラメータ発生器の出力を比較する比較器
と、前記第3のレジスタから乗算器の出力を減じ
る減算回路を具備し、前記発生回路の出力を変化
させ、前記比較器の出力が一致したときに、前記
加算器の出力、前記乗算器の出力及び前記減算回
路の出力をそれぞれ前記第1のレジスタ、第2の
レジスタ及び第3のレジスタに保持し、前記第2
のレジスタの最上位デイジツトが0になつたなら
ば0でなくなるまで前記第1のレジスタ、第2の
レジスタ及び第3のレジスタを上位デイジツト方
向にシフトするとともに符号デイジツトを前記第
3のレジスタの最下位デイジツトに保持し、一
方、前記桁上り警報信号が発生したならば、前記
第2のレジスタの内容をすべてb−1にし、前記
桁上り警報信号が発生しなくなるまで前記第1の
レジスタ及び第3のレジスタを上位デイジツトの
方へシフトさせるとともに符号デイジツトを前記
第3のレジスタの最下位デイジツトに保持し、前
記発生回路の出力を、入力された符号デイジツト
に対応する情報デイジツトとして出力することを
特徴とする。<Configuration of the Invention> The data compression/decoding device of the present invention includes a first register and a second register that store a b-ary value (b≧2), and outputs a probability parameter registered in advance according to an input digit. a probability parameter generator for multiplying the contents of the second register by the output of the probability parameter generator; and an adder for adding the output of the multiplier and the contents of the first register; An alarm circuit is provided which generates a carry alarm signal when all of the upper fixed length digits of the first register become b-1, and each time information is input, the output of the adder and the multiplier are The outputs of are held in the first register and the second register, respectively, and when the most significant digit of the second register becomes 0, the first register and the second register are held as the upper digits until the most significant digit of the second register becomes 0. On the other hand, if a carry alarm signal is generated, the contents of the second register are all set to b-1, and the first register is shifted toward the upper digit until the alarm signal is no longer generated. , in a data compression/decoding device corresponding to a data compression/encoding device that outputs the digit string shifted and overflowing from the first register as a code digit string corresponding to the input information digit string. a third register for holding code digits; a copy of the data compression encoding device; a generating circuit for generating digits from 0 to b-1 and supplying them to the probability parameter generator; a divider for dividing the contents by the contents of the second register; a comparator for comparing the output of the divider with the output of the probability parameter generator; and a subtraction circuit for subtracting the output of the multiplier from the third register. The output of the generator circuit is varied, and when the outputs of the comparator match, the output of the adder, the multiplier, and the subtraction circuit are transferred to the first register and the second register, respectively. and a third register, and the second
When the most significant digit of the register becomes 0, the first, second, and third registers are shifted toward the upper digit until it is no longer 0, and the sign digit is shifted to the most significant digit of the third register. On the other hand, if the carry alarm signal is generated, the contents of the second register are all set to b-1, and the first and second registers are held until the carry alarm signal is no longer generated. The third register is shifted toward the upper digit, and the code digit is held at the lowest digit of the third register, and the output of the generator circuit is outputted as an information digit corresponding to the input code digit. Features.
〈作用〉
前記文献によれば符号デイジツト列の長さは最
終的に得られた区間の幅が小さければ長く、逆に
大きければ短い。従つて、桁上りの伝播制御によ
る区間の縮少率が小さいほど桁上りの伝播制御に
伴なう冗長デイジツトの増加が小さく抑えられ
る。ここで縮少率とは変更前の区間の幅を変更後
の区間の幅で割つた値である。ただし前記文献に
よれば符号デイジツト列からもとの情報デイジツ
ト列が誤りなく復元できるためには、変更後の区
間が変更前の区間に含まれていることが必要であ
る。<Function> According to the above-mentioned literature, the length of the code digit string is longer if the width of the finally obtained section is smaller, and vice versa. Therefore, the smaller the section reduction rate due to carry propagation control, the smaller the increase in redundant digits due to carry propagation control. Here, the reduction rate is a value obtained by dividing the width of the section before the change by the width of the section after the change. However, according to the above-mentioned document, in order to be able to restore the original information digit string from the code digit string without error, it is necessary that the section after the change is included in the section before the change.
本発明では前記手順A・ロ)とA・ハ)の間に
次の手順を付け加える。 In the present invention, the following procedure is added between steps A.B) and A.C).
A・a)t1,t2,……,tkをb−1とする。 A.a) Let t 1 , t 2 , ..., t k be b-1.
また、前記手順B・ハ)とB・ニ)の間に次の手
順を付け加える。Additionally, the following procedure is added between steps B. c) and B. d).
B・a)S1,S2,……,Skをb−1とする。B.a) Let S 1 , S 2 , ..., S k be b-1.
すなわち本発明では手順A・ロ)及びB・ハ)実
行後に区間の幅を拡大するわけである。もつとも
手順A・ロ)とA・z)及び手順B・ハ)とB・
z)で行われる操作は互いに独立な操作であるか
ら手順A・a)、B・a)を実行するのはA・
ロ)、B・ハ)の前あるいは同時であつてもかま
わない。このようにすれば従来のように区間の幅
を単にbで割つていたのに比べて縮少率が小さく
なるので、符号デイジツト付加されるる冗長デイ
ジツトの数が小さく抑えられる。また、手順A・
a)、B・a)を実行しても実行後の区間は明ら
かに桁上り伝播制御前の区間に含まれているの
で、符号デイジツト列からもとの情報デイジツト
を誤りなく復元することができる。なお、手順
A・a)、B・a)において、手順実行後のT、
Sの値が実行前のT、Sの値よりも大きくなるの
であればt1、t2、……、tkS1、S2……、Skの値は
b−1以外の値にしてもかまわないが、装置化の
容易さの点ですべてのデイジツトを等しく<b−
1にするのが好ましい。That is, in the present invention, the width of the section is expanded after performing steps A and B) and B and C). However, procedures A.B) and A.z) and procedure B.C) and B.
Since the operations performed in step z) are mutually independent operations, steps A.a) and B.a) are executed by A.
B), B and C) may occur before or at the same time. In this way, the reduction rate is smaller than in the conventional case where the width of the section is simply divided by b, so the number of redundant digits to which code digits are added can be kept small. Also, step A.
Even if a) and B/a) are executed, the interval after execution is clearly included in the interval before carry propagation control, so the original information digit can be restored from the code digit string without error. . In addition, in steps A.a) and B.a), T after the procedure is executed,
If the value of S becomes larger than the values of T and S before execution, t 1 , t 2 , ..., t k S 1 , S 2 ..., S k should be set to a value other than b-1. However, from the point of view of ease of instrumentation, all digits should be equally <b−
It is preferable to set it to 1.
第2図は手順A・a)を実行する符号化装置の
基本構成図である。図において入力端子101よ
り入力された情報デイジツトXiは確率パラメータ
発生器102に順に入力され、確率パラメータ発
生器102はXiの値に応じて確率パラメータCi
(Xi)、qi(Xi)をそれぞれライン104、ライン
103に出力する。加算器、乗算器は前述の符号
化手順A・4)に従つてF1,F2,Aの値を更新
し、それをレジスタ108,106,105に格
納する。なおライン107へはF2+Ci(Xi)・A
1のときには1それ以外ときには0が出力され
ている。F1の値うち下位Mデイジツトより上位
のデイジツトは順に出力端子109から出力され
てゆく。一方F1の下位Mデイジツトは警報回路
110にも供給され、Mデイジツトより長い桁上
り伝播が発生しそうになるとすなわちMデイジツ
トがすべてb−1になると桁上り警報信号を区間
短縮回路111へ送る。区間短縮回路は桁上り警
報信号を受け取るとAレジスタ105の内容をす
べてb−1にする一方、桁上り警報信号が発生し
なくなるまでレジスタ108,106の内容を高
位デイジツトの方へシフトさせて、ライン107
に1が出力されるのを防止する。すなわち手順
A・イ)〜A・ニ)とA・a)を実行。 FIG. 2 is a basic configuration diagram of an encoding device that executes procedure A.a). In the figure, information digits X i inputted from an input terminal 101 are sequentially inputted to a probability parameter generator 102, and the probability parameter generator 102 generates probability parameters C i according to the value of X i .
(X i ) and q i (X i ) are output to lines 104 and 103, respectively. The adder and multiplier update the values of F1, F2, and A according to the aforementioned encoding procedure A.4), and store them in registers 108, 106, and 105. In addition, to line 107, F2 + C i (X i )・A
When it is 1, 1 is output; otherwise, 0 is output. Among the values of F1, digits higher than the lower M digits are sequentially outputted from the output terminal 109. On the other hand, the lower M digits of F1 are also supplied to the alarm circuit 110, and when a carry propagation longer than the M digits is about to occur, that is, when all the M digits become b-1, a carry alarm signal is sent to the section shortening circuit 111. When the section shortening circuit receives the carry alarm signal, it sets all the contents of the A register 105 to b-1, and shifts the contents of the registers 108 and 106 toward higher digits until the carry alarm signal is no longer generated. line 107
This prevents 1 from being output. That is, execute steps A.a) to A.d) and A.a).
第1図は本発明の基本構成図である。図におい
てF1レジスタ207、F2レジスタ208、警報
回路209確率パラメータ発生器204は対応す
る符号化装置が具備しているものと同一のもので
ある。入力端子201よ入力された符号デイジツ
トWiはW1,W2の表現デイジツトが格納されて
いるレジスタ202に順に入力され、Xi発生器2
03は確率パラメータ発生器204に供給されて
いる出力を変化させることによつてCi(y)
(W1+W2)/Bを満たすyのうちで最大のデイ
ジツトXiを見つけ出し、それを最終的な出力とす
る。なおライン211にはXi発生器203の出力
がyのときにはCi(y)と(W1+W2)/Bとの
比較結果が供給されている。Xi発生器203の出
力が確定すると、加算器、乗算器は前述の復号化
手順B・4)に従つてW、Bの値を変更し、それ
ぞれレジスタ202,206に格納する。また
F1レジスタ207、F2レジスタ208の内容を
前述の復号化手順B・イ)に従つて変更する。Xi
発生器203の出力は出力端子205にも供給さ
れており、Xiの値が確定すると順に出力端子20
5から出力されてゆく。一方F1レジスタ207
の内容は警報回路209にも供給されており、警
報回路はMデイジツトより長い桁上り伝播が発生
しそうになると桁上り警報信号を区間補正回路2
10に送る。区間補正回路210は桁上り警報信
号を受け取るとBレジスタ206内容をすべてb
−1にする一方、桁上り警報信号が発生しなくな
るまでレジスタ202、206、207、208
の内容を高位デイジツトの方へシフトさせるすな
わち手順B・イ)〜B・ホ)〜とB・a)を実行
する。 FIG. 1 is a basic configuration diagram of the present invention. In the figure, an F1 register 207, an F2 register 208, an alarm circuit 209, and a probability parameter generator 204 are the same as those included in the corresponding encoding device. The sign digit W i inputted from the input terminal 201 is inputted in order to the register 202 in which the representation digits of W1 and W2 are stored, and the sign digit W i is inputted to the X i generator 2.
03 is C i (y) by varying the output supplied to the stochastic parameter generator 204.
Find the maximum digit X i among y that satisfies (W1+W2)/B, and use it as the final output. Note that when the output of the X i generator 203 is y, the comparison result between C i (y) and (W1+W2)/B is supplied to the line 211. When the output of the X i generator 203 is determined, the adder and multiplier change the values of W and B according to the above-described decoding procedure B.4) and store them in the registers 202 and 206, respectively. Also
The contents of the F1 register 207 and F2 register 208 are changed according to the above-mentioned decoding procedure B/a). X i
The output of the generator 203 is also supplied to the output terminal 205, and when the value of X i is determined, the output terminal 20
It is output from 5. On the other hand, F1 register 207
The contents of are also supplied to the alarm circuit 209, and when a carry propagation longer than M digits is about to occur, the alarm circuit sends a carry alarm signal to the section correction circuit 2.
Send to 10. When the section correction circuit 210 receives the carry alarm signal, it changes all the contents of the B register 206 to b.
-1, and registers 202, 206, 207, 208 until the carry alarm signal is no longer generated.
In other words, steps B.a) to B.e) and B.a) are executed.
〈実施例〉
一実施例として、本発明に従つて構成したデー
タ圧縮復号化装置を第3図に、また対応するデー
タ圧縮符号化装置を第4図に示す。<Embodiment> As an embodiment, a data compression/decoding device configured according to the present invention is shown in FIG. 3, and a corresponding data compression/encoding device is shown in FIG. 4.
第3図、第4図のうちそれぞれ第1図、第2図と
同一の機能を有するブロツクなしいラインには同
一の番号を付して示してある。この実施例におい
てはb=2である。すなわち符号化装置、復号化
装置での演算は2進法で行ない、また数値は2進
法で表示するものとする。In FIGS. 3 and 4, lines without blocks having the same functions as those in FIGS. 1 and 2, respectively, are labeled with the same numbers. In this example b=2. That is, calculations in the encoding device and the decoding device are performed in binary notation, and numerical values are displayed in binary notation.
第4図の符号化装置において、入力端子より入
力された情報ビツトXiは確率パラメータ発生器1
02(これは例えばリードオンメモリや適応予測
器によつて構成できる)に順に入力され、確率パ
ラメータ発生器102はXiの値に応じて確率パラ
メータCi(Xi)、qi(Xi)をそれぞれライン103
に出力する。加加算器、乗算器は前述の符号化手
順A・4)に従つてF1,F2,Aの値を更新し、
それをレジスタ108,106,105に格納す
る。なおライン107へはF2+Ci(Xi)・A1
のとき1それ以外のときは0が出されている。
F1の値のうち予め決められた下位Mビツトより
上位のビツトは順に出力端子109からら出力さ
れてゆく。一方F1の下位ビツトは警報回路11
0にも供給され、Mビツトより長い桁上り伝播が
発生しそうになると、すなわちMビツトがすべて
1になると桁上り警報信号を区間短縮回路111
へ送る。警報回路はF1の下位Mビツトがすべて
1になつたときに桁上り警報信号を発生するわけ
であるから、警報回路はこれらMビツトのアンド
(論理積)をとることによつて構成できる。区間
短縮回路111は桁上り警報信号を受け取るとA
レジスタ105は内容をすべて1にする一方、桁
上り警報信号が発生しなくなるまでレジスタ10
8,106の内容を高位ビツトの方へシフトさせ
て、ライン107に1が出力されるのを防止す
る。すなわち手順A・イ)〜A・ニ)、A・a)
を実行する。 In the encoding device shown in FIG. 4, the information bits X i inputted from the input terminal
02 (which can be configured, for example, by a read-on memory or an adaptive predictor), and the probability parameter generator 102 generates probability parameters C i (X i ) , q i (X i ) respectively on line 103
Output to. The adder and multiplier update the values of F1, F2, and A according to the above-mentioned encoding procedure A.4),
It is stored in registers 108, 106, and 105. In addition, to line 107, F2 + C i (X i )・A1
1 when , and 0 otherwise.
The bits higher than the predetermined lower M bits of the value of F1 are sequentially outputted from the output terminal 109. On the other hand, the lower bit of F1 is the alarm circuit 11
0 is also supplied, and when a carry propagation longer than M bits is about to occur, that is, when all M bits become 1, a carry alarm signal is sent to section shortening circuit 111.
send to Since the alarm circuit generates a carry alarm signal when all the lower M bits of F1 become 1, the alarm circuit can be constructed by ANDing these M bits. When the section shortening circuit 111 receives the carry alarm signal,
While register 105 sets all contents to 1, register 10 remains unchanged until the carry alarm signal is no longer generated.
The contents of 8,106 are shifted toward the high order bits to prevent a 1 from being output on line 107. That is, steps A.a) to A.d), A.a)
Execute.
第3図の復号化装置において、F1レジスタ2
07、F2レジスタ208、警報回路209、確
率パラメータ発生器204は対応する符号化装置
が具備しているものと同一のものである。入力端
子201より入力された符号ビツトWiはW1,
W2の表現ビツトが格納されているレジスタ20
2に順に入力され、Xi発生器203は確率パラメ
ータ発生器204に供給されている出力をまず1
とする、そしてライン211に供給されているCi
(1)と(W1+W2)/Bとの比較結果を調べて、も
しCi(1)(W1+W2)/BならばXi=1さもなく
ばXi=0とし、Xiを最終的な出力とする。なおラ
イン211にはXi発生器203の出力がyのとき
ににはCi(y)と(W1+W2)/Bとの比較結果
が供給されている。Xi発生器203の出力が確定
すると加算器、乗算器は前述の復号化手順B・
4)に従つて、W、Bの値を変更し、それぞれレ
ジスタ202,206に格納する。またF1レジ
スタ207,F2レジスタ208の内容を前述の
復号化手順B・イ)に従つて変更する。Xiの発生
器203の出力は出力端子205にも供給されて
おりり、Xiの値が確定すると順に出力端子205
から出力されてゆく。一方F1レジスタ207の
内容は警報回路209にも供給されており、警報
回路はMビツトより長い桁上り伝播が発生しそう
になると、すなわちMビツトがすべて1になると
桁上り警報信号を区間補正回路210へ送る。区
間補正回路210は桁上り警報信号を受け取ると
Bレジスタ206の内容をすべて1にする一方、
桁上り警報信号が発生しなくなるまでレジスタ2
02,206,207,208の内容を高位ビツ
トの方へシフトさせる。すなわち手順B・イ)〜
B・ホ)とB・a)実行する。 In the decoding device shown in Fig. 3, F1 register 2
07, F2 register 208, alarm circuit 209, and probability parameter generator 204 are the same as those included in the corresponding encoding device. The sign bit W i input from the input terminal 201 is W1,
Register 20 where the representation bits of W2 are stored
2, and the X i generator 203 first converts the output supplied to the probability parameter generator 204 into 1
and C i supplied to line 211
Examine the comparison results between (1) and (W1+W2)/B, and if C i (1) (W1+W2)/B, then X i =1, otherwise X i =0, and X i is the final output. shall be. Note that when the output of the X i generator 203 is y, the comparison result between C i (y) and (W1+W2)/B is supplied to the line 211. When the output of the X i generator 203 is determined, the adder and multiplier perform the decoding procedure B.
4), the values of W and B are changed and stored in registers 202 and 206, respectively. Also, the contents of the F1 register 207 and F2 register 208 are changed according to the above-mentioned decoding procedure B/a). The output of the generator 203 of X i is also supplied to the output terminal 205, and when the value of X i is determined, it is sequentially supplied to the output terminal 205.
It is output from. On the other hand, the contents of the F1 register 207 are also supplied to the alarm circuit 209, and when a carry propagation longer than M bits is about to occur, that is, when all M bits become 1, the alarm circuit sends a carry alarm signal to the interval correction circuit 210. send to When the section correction circuit 210 receives the carry alarm signal, it sets all the contents of the B register 206 to 1, while
Register 2 until the carry alarm signal is no longer generated.
The contents of 02, 206, 207, and 208 are shifted toward the higher bits. In other words, step B/i)~
Execute B. ho) and B. a).
〈発明の効果〉
以上述べてきたように、本発明に従えば従来の
データ圧縮符号化・復号化装置に比べて圧縮効率
が高いデータ圧縮符号化、復号化装置が容易に構
成できる。<Effects of the Invention> As described above, according to the present invention, it is possible to easily configure a data compression encoding/decoding device with higher compression efficiency than conventional data compression encoding/decoding devices.
しかも実施例で示したようなデータ圧縮符号
化・復号化装置の場合には簡単な回路で構成でき
るから、高速なデータ伝達システムにも対応でき
る。 Moreover, since the data compression encoding/decoding apparatus shown in the embodiment can be constructed with a simple circuit, it can also be used in high-speed data transmission systems.
これらが今後の高速デイジタル通信回路網の展
開や大容量記憶装置の普及において、効率向上や
性能向上という点で効果を発揮できることは明ら
かである。 It is clear that these technologies will be effective in improving efficiency and performance in the future development of high-speed digital communication networks and the spread of mass storage devices.
第1図は本発明の基本構成図、第2図は本発明
とともに用いられる符号化装置の基本構成図を示
す図、第3図は本発明の一実施例を示す図、第4
図は第3図の符号化装置とともに用いられる復号
化装置の構成例を示す図である。
図において、102,204……確率パラメー
タ発生器、106,108,105,202,2
06,207,208……レジスタ、110,2
09……警報回路、111……区間短縮回路、2
03……Xi発生器、、210……区間補正回路、
112,213……セレクタ。
FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is a diagram showing a basic configuration diagram of an encoding device used with the present invention, FIG. 3 is a diagram showing an embodiment of the present invention, and FIG.
The figure is a diagram showing an example of the configuration of a decoding device used together with the encoding device of FIG. 3. In the figure, 102, 204... stochastic parameter generator, 106, 108, 105, 202, 2
06,207,208...Register, 110,2
09...Alarm circuit, 111...Section shortening circuit, 2
03...X i generator, 210... section correction circuit,
112, 213...Selector.
Claims (1)
タと第2のレジスタと、予め登録された確率パラ
メータを入力デイジツトに応じて出力する確率パ
ラメータ発生器と、前記第2のレジスタの内容と
確率パラメータ発生器の出力とを乗算する乗算器
と、前記乗算器の出力と前記第1のレジスタの内
容を加算する加算器と、前記第1のレジスタの上
位一定長のデイジツトがすべてb−1になつたと
きに桁上り警報信号を発生する警報回路を具備
し、情報が入力されるごとに、前記加算器の出力
及び前記乗算器の出力をそれぞれ前記第1レジス
タ及び第2のレジスタに保持し、前記第2のレジ
スタの最上位デイジツトが0になつたならば0で
なくなるまで前記第1のレジスタと第2のレジス
タを上位デイジツト方向にシフトし、一方、桁上
り警報信号が発生したならば、前記第2のレジス
タの内容をすべてb−1にし、警報信号が発生し
なくなるまで第1のレジスタを上位デイジツトの
方へシフトさせ、前記第1のレジスタからシフト
されて溢れ出たデイジツト列を、入力された情報
デイジツト列に対応する符号デイジツト列として
出力するデータ圧縮符号化装置に対応するデータ
圧縮復号化装置において、入力された符号デイジ
ツト保持する第3のレジスタと、前記データ圧縮
符号化装置の複製と、0からb−1までのデイジ
ツトを発生して前記確率パラメータ発生器に供給
する発生回路と、第3のレジスタの内容を第2の
レジスタの内容で除算する除算器と、前記除算器
の出力と前記確率パラメータ発生器の出力を比較
する比較器と、前記第3のレジスタから乗算器の
出力を減じる減算回路を具備し、前記発生回路の
出力を変化させ、前記比較器の出力が一致したと
きに、前記加算器の出力、前記乗算器の出力及び
前記減算回路の出力をそれぞれ前記第1のレジス
タ、第2のレジスタ及び第3のレジスタに保持
し、前記第2のレジスタの最上位デイジツトが0
になつたならば0でなくなるまで前記第1のレジ
スタ、第2のレジスタ及び第3のレジスタを上位
デイジツト方向にシフトするとともに符号デイジ
ツトを前記第3のレジスタの最下位デイジツトに
保持し、一方、前記桁上り警報信号が発生したな
らば、前記第2のレジスタの内容はすべてb−1
にし、前記桁上り警報信号が発生しなくなるまで
前記第1のレジスタ及び第3のレジスタを上位デ
イジツトの方へシフトさせるとともに符号デイジ
ツトを前記第3のレジスタの最下位デイジツトに
保持し、前記発生回路の出力を、入力された符号
デイジツトに対応する情報デイジツトとして出力
することを特徴とするデータ圧縮復号化装置。1. A first register and a second register that store a b-ary value (b≧2), a probability parameter generator that outputs a pre-registered probability parameter according to an input digit, and the contents of the second register. a multiplier for multiplying by the output of the probability parameter generator; an adder for adding the output of the multiplier and the contents of the first register; an alarm circuit that generates a carry alarm signal when the value becomes 1, and sends the output of the adder and the output of the multiplier to the first register and the second register, respectively, each time information is input. and when the most significant digit of the second register becomes 0, the first and second registers are shifted toward the upper digit until it is no longer 0, while a carry alarm signal is generated. If so, all the contents of the second register are set to b-1, the first register is shifted toward the upper digits until the alarm signal is no longer generated, and the digits that have been shifted and overflowed from the first register are In a data compression decoding device corresponding to a data compression encoding device that outputs a string as a coded digit string corresponding to an inputted information digit string, a third register that holds the inputted coded digit, and a third register that holds the inputted coded digit string; a generator for generating digits from 0 to b-1 and supplying them to the probability parameter generator; and a divider for dividing the contents of a third register by the contents of a second register; A comparator that compares the output of the divider and the output of the probability parameter generator, and a subtraction circuit that subtracts the output of the multiplier from the third register, and changes the output of the generator circuit and compares the output of the probability parameter generator. When the outputs of The most significant digit of the register is 0
If the digit becomes zero, shift the first, second, and third registers in the direction of higher digits until it is no longer 0, and hold the sign digit at the lowest digit of the third register; If the carry alarm signal occurs, the contents of the second register are all b-1.
and shifts the first and third registers toward the upper digits and holds the sign digit at the lowest digit of the third register until the carry alarm signal is no longer generated; A data compression/decoding device characterized in that the output of the code digit is output as an information digit corresponding to an input code digit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP28060585A JPS62139416A (en) | 1985-12-12 | 1985-12-12 | Data compressing and decoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP28060585A JPS62139416A (en) | 1985-12-12 | 1985-12-12 | Data compressing and decoding device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62139416A JPS62139416A (en) | 1987-06-23 |
| JPH0453328B2 true JPH0453328B2 (en) | 1992-08-26 |
Family
ID=17627359
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP28060585A Granted JPS62139416A (en) | 1985-12-12 | 1985-12-12 | Data compressing and decoding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS62139416A (en) |
-
1985
- 1985-12-12 JP JP28060585A patent/JPS62139416A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62139416A (en) | 1987-06-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2544895B2 (en) | Distributed data processing system | |
| Ziv et al. | Compression of individual sequences via variable-rate coding | |
| US4633490A (en) | Symmetrical optimized adaptive data compression/transfer/decompression system | |
| US7705753B2 (en) | Methods, systems and computer-readable media for compressing data | |
| JP3017379B2 (en) | Encoding method, encoding device, decoding method, decoder, data compression device, and transition machine generation method | |
| US4989000A (en) | Data string compression using arithmetic encoding with simplified probability subinterval estimation | |
| EP0021283A1 (en) | Digital data apparatus | |
| EP0260462A2 (en) | Arithmetic coding for data compression/de-compression by selectively employed, diverse arithmetic coding encoders and decoders | |
| WO2007002468A2 (en) | Modeling for enumerative encoding | |
| JPH04227337A (en) | Adaptive coding device using carry control and method therefor | |
| JPH06222904A (en) | Adaptive computation of symbol probability in n-arrangement string | |
| JPS6228895B2 (en) | ||
| US10565182B2 (en) | Hardware LZMA compressor | |
| Kim et al. | SELCOM: Selective compression scheme for lightweight nodes in blockchain system | |
| Gray et al. | Nonblock source coding with a fidelity criterion | |
| JPH0453328B2 (en) | ||
| Jiang et al. | Parallel design of arithmetic coding | |
| JPH0548971B2 (en) | ||
| JPH07118661B2 (en) | Data compression / decoding device | |
| JP3242795B2 (en) | Data processing device and data processing method | |
| JPS6243221A (en) | Data compressing and coding device | |
| JPH07118660B2 (en) | Data compression coding device | |
| US7209885B1 (en) | Compressed code generating method and compressed code decompressing method | |
| JP7540511B2 (en) | Decoding device, decoding method, and program | |
| JP3051501B2 (en) | Data compression method |