JP2783221B2 - Decryption method - Google Patents

Decryption method

Info

Publication number
JP2783221B2
JP2783221B2 JP28321195A JP28321195A JP2783221B2 JP 2783221 B2 JP2783221 B2 JP 2783221B2 JP 28321195 A JP28321195 A JP 28321195A JP 28321195 A JP28321195 A JP 28321195A JP 2783221 B2 JP2783221 B2 JP 2783221B2
Authority
JP
Japan
Prior art keywords
symbol
range
number line
inferior
value
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 - Lifetime
Application number
JP28321195A
Other languages
Japanese (ja)
Other versions
JPH08242175A (en
Inventor
文孝 小野
茂徳 木野
雅之 吉田
智広 木村
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP28321195A priority Critical patent/JP2783221B2/en
Publication of JPH08242175A publication Critical patent/JPH08242175A/en
Application granted granted Critical
Publication of JP2783221B2 publication Critical patent/JP2783221B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は画像情報などの復
号化方法に関するものである。
The present invention relates to a method for decoding image information and the like.

【0002】[0002]

【従来の技術】マルコフ情報源の符号化についてはシン
ボル系列を数直線上で0.0から1.0迄の間に写像し
その座標を例えば2進表示したものを符号語として符号
化する数直線表示符号化方式が知られている。第2図は
その概念図であり、簡単のために2値情報源としシンボ
ル“1”の出現確率をr、“0”の出現確率を1−rと
した無記憶情報源を示している。出力系列長を3とする
と、右端のC(000)〜C(111)のそれぞれの座
標を2進表示し、区別のつく桁迄で打切ってそれぞれの
符号語とすれば受信側では送信側と同様の過程を終わる
ことにより復号が可能である。
2. Description of the Related Art For encoding a Markov information source, a symbol sequence is mapped on a number line from 0.0 to 1.0, and its coordinates are encoded, for example, in binary notation as a code word. A linear display encoding method is known. FIG. 2 is a conceptual diagram showing a non-memory information source in which the appearance probability of the symbol "1" is r and the appearance probability of "0" is 1-r as a binary information source for simplicity. Assuming that the output sequence length is 3, the coordinates of each of C (000) to C (111) at the right end are binary-displayed, and if each codeword is truncated to a digit that can be distinguished, the receiving side will transmit. Decoding can be performed by ending the process similar to.

【0003】このような系列では第i時点でのシンボル
系列のマッピング範囲Ai 、その小さい方の座標はCi
は、出力シンボルai が0の時(優勢シンボル:以下M
PSという)
[0003] In such a sequence, the mapping range A i of the symbol sequence at the i-th point, and its smaller coordinate is C i
Means that the output symbol a i is 0 (dominant symbol: M
PS)

【0004】[0004]

【数1】 (Equation 1)

【0005】[0005]

【数2】 (Equation 2)

【0006】出力シンボルai が1の時(劣勢シンボ
ル:以下LPSという)
When the output symbol a i is 1 (inferior symbol: hereinafter referred to as LPS)

【0007】[0007]

【数3】 (Equation 3)

【0008】[0008]

【数4】 (Equation 4)

【0009】となる。## EQU1 ##

【0010】また、An overview of t
he basic principles of th
e Q−Coder adaptivebinary
arithmetic coder(IBM joun
al of Reserchand Developm
ent VOL.32 No.6 NOV.1988)
に記載されているように、掛算等の演算回路を減らすた
めに、rAi-1 を必ずしも演算せずに、複数個の固定値
を用意しその中からある値を選択することが考えられて
いる。
[0010] Also, An overview of
he basic princes of the th
e Q-Coder adaptivebinary
Arithmetic coder (IBM joint
al of Reserchand Development
ent VOL. 32 No. 6 NOV. 1988)
As described in, in order to reduce the number of arithmetic circuits for multiplication and the like, it is conceivable to prepare a plurality of fixed values and select a certain value from among them without necessarily calculating rA i-1. I have.

【0011】すなわち、前述の式のrAi-1 をSとおく
と、ai =0の時
That is, assuming that rA i-1 in the above equation is S, when a i = 0

【0012】[0012]

【数5】 (Equation 5)

【0013】[0013]

【数6】 (Equation 6)

【0014】ai =1の時When a i = 1

【0015】[0015]

【数7】 (Equation 7)

【0016】[0016]

【数8】 (Equation 8)

【0017】となる。## EQU1 ##

【0018】ただし、この場合Ai-1 はシンボルの逐次
出力にしたがって逐次小さくなってゆくのでSも逐次小
さくする必要があり、演算精度を保つためにAi-1 を2
のべき乗倍する(以下正規化するという)ことが必要と
なり、実際の符号語では、上記固定値は常に同じである
ものとし、演算時に2のべき乗分の1(即ち2進数のシ
フト)することで処理している。
[0018] However, in this case A i-1 is day become sequentially smaller as the successive output of the symbol must be S also sequentially reduced, the A i-1 in order to maintain the calculation accuracy 2
In the actual code word, the fixed value is always assumed to be the same, and the value is raised to a power of 2 (ie, a binary number shift) during the operation. Processing.

【0019】[0019]

【発明が解決しようとする課題】さて、上記したように
Sとして一定値を用いると特にSが大きく、正規化され
たAi-1 が相対的に小さいときには問題があった。
When a constant value is used as S as described above, there is a problem particularly when S is large and normalized A i-1 is relatively small.

【0020】以下にその例を示す。Ai-1 が0.5を若
干越えていたとするとai がMPSの時のAi は極めて
小さくなりai がLPSの時の範囲Sより小さくなるこ
とがある。即ち本来MPSの方の出現確率の方が高いに
もかゝわらずMPSに割り当てられる領域がLPSに割
り当てられる領域より小さくなるわけでありこれは復号
化効率の低下につながる。仮に必ずMPSに割り当てら
れる領域がLPSに割り当てられる領域より大であるよ
うにするとAi-1 >0.5よりSは0.25以下とする
必要が生じる。従ってS=0.25とすると、前シンボ
ルの範囲Ai-1が1.0の時はr=0.25となり、A
i-1 が0.5に近い時はほぼr=0.5となるため、結
局、復号化の上ではLPSの出現比率が1/4から1/
2の間で変動すると考えていることになりこの変動幅を
少なくできれば出現比率に応じた領域割当ができ復号化
効率の向上が期待できる。本発明は上記のような問題点
を解消するためになされたもので特にLPS(劣勢シン
ボル)の出現比率が1/2に近い場合に効率向上が著し
い。
An example is shown below. Assuming that A i-1 is slightly larger than 0.5, A i is extremely small when a i is MPS and may be smaller than the range S when a i is LPS. That is, although the appearance probability of the MPS is higher, the area assigned to the MPS is smaller than the area assigned to the LPS, which leads to a decrease in decoding efficiency. If the area allocated to the MPS is always larger than the area allocated to the LPS, S needs to be 0.25 or less from A i-1 > 0.5. Therefore, assuming that S = 0.25, when the range A i-1 of the previous symbol is 1.0, r = 0.25, and A
When i-1 is close to 0.5, almost r = 0.5, so that the appearance ratio of LPS after decoding becomes 1/4 to 1 /
Therefore, if the fluctuation width can be reduced, an area can be allocated according to the appearance ratio, and improvement in decoding efficiency can be expected. The present invention has been made to solve the above-described problems, and particularly when the appearance ratio of LPS (inferior symbol) is close to 1/2, the efficiency is remarkably improved.

【0021】[0021]

【課題を解決するための手段】この発明の請求項1に係
わる復号化方法は、優勢シンボルと劣勢シンボルとの数
線上の範囲を比較する比較手段と、この比較手段の比較
結果にもとづき、劣勢シンボルの範囲が優勢シンボルの
範囲を越えないように数線上の劣勢シンボルの範囲と優
勢シンボルの範囲とを制御する制御手段を備えたもので
ある。
According to a first aspect of the present invention, there is provided a decoding method comprising: comparing means for comparing the range on the number line between a superior symbol and an inferior symbol; Control means is provided for controlling the range of the inferior symbol and the range of the superior symbol on the number line so that the symbol range does not exceed the range of the superior symbol.

【0022】また、この発明の請求項2に係わる復号化
方法は、優勢シンボルに割り当てる数線上の範囲と所定
値とを比較する第1のステップと、優勢シンボルに与え
られる範囲が数線上で所定値を下回る場合、優勢シンボ
ルの範囲の所定値を下回る値の半分の値を劣勢シンボル
の範囲から優勢シンボルの範囲に移すように優勢シンボ
ルと劣勢シンボルとの数線上の範囲を制御する第2のス
テップとを備える。
In the decoding method according to a second aspect of the present invention, a first step of comparing a range on a number line assigned to a superior symbol with a predetermined value, and a range given to the superior symbol on a number line If the value is less than the predetermined value, the range on the number line between the superior symbol and the inferior symbol is controlled so that half of the value below the predetermined value of the superior symbol range is shifted from the inferior symbol range to the superior symbol range. And steps.

【0023】[0023]

【発明の実施の形態】図1はこの発明の一実施例を示す
ものである。1は加算器であり直前のオフセット演算部
3の出力に、入力されるSの値を加えてLPSの上位ア
ドレスを算出する。この値を0.5と比較するのが2の
比較器である。もし0.5以下であり発生シンボル優勢
シンボル(MPS)であれば3のオフセット演算部の処
理は上記Sの加算でとどまる。同様に2の比較器で0.
5以下と判断され、発生シンボルが劣勢シンボル(LP
S)であればベース演算装置4でベース演算を行いベー
ス座標を符号として出力する。またSの値から正規化す
る(有効範囲を0.5〜1.0にする)ために必要な倍
数(2n 倍)を求めそれをシフト桁数として出力するの
が5のシフト桁数演算部である。
FIG. 1 shows an embodiment of the present invention. Reference numeral 1 denotes an adder which adds the input S value to the immediately preceding output of the offset operation unit 3 to calculate the upper address of the LPS. The comparator of 2 compares this value with 0.5. If the value is 0.5 or less and the generated symbol is the dominant symbol (MPS), the processing of the offset calculation unit of 3 stops at the addition of S. Similarly, in the comparator of 2,.
5 or less, and the generated symbol is the inferior symbol (LP
If S), the base operation is performed by the base operation device 4 and the base coordinates are output as a code. Further, a multiple (2 n times) necessary to normalize (effective range is set to 0.5 to 1.0) from the value of S is obtained and output as a shift digit is a shift digit calculation of 5 Department.

【0024】次に2の比較器で0.5(10進)をこえ
ると判断された時は6のLPS上位アドレス補正器でL
PSの上位アドレスが補正されMPS或いはLPSであ
るかに基いて4でベース演算、5でシフト桁数演算を行
い、ベース座標とシフト桁数を出力する。上述のよう
に、入力されるSの値を加えられて算出されたLPSの
上位アドレスが0.5をこえるということは、数直線上
の劣勢シンボルの範囲が、数直線上の優勢シンボルの範
囲を越えている場合がある。尚、出力された符号語は加
算レジスタにおいて加算されて符号語となる。またシフ
ト桁数は次に出力される符号語を加える位置を何桁シフ
トするかを示している。上記の処理をより正確に表現す
るために第3図及び第4図に符号化と復号化のフローチ
ャートを掲げる。いずれもSを1/2のべき乗に選んだ
場合を示している。
Next, when it is judged by the comparator 2 that it exceeds 0.5 (decimal), the LPS upper address corrector 6 makes L
Based on whether the high-order address of the PS is corrected and is MPS or LPS, a base operation is performed at 4 and a shift digit operation is performed at 5 and a base coordinate and a shift digit number are output. As described above, the fact that the upper address of the LPS calculated by adding the value of the input S exceeds 0.5 means that the range of the inferior symbol on the number line is equal to the range of the superior symbol on the number line. May be exceeded. The output codeword is added in the addition register to become a codeword. The number of shift digits indicates how many digits to shift the position to add the next output codeword. FIGS. 3 and 4 show flowcharts of encoding and decoding in order to more accurately express the above processing. In each case, S is selected to be a power of 1/2.

【0025】次に具体的な符号化例を示す。第5図で座
標は2進表示されているとする。Sは1/8もしくは1
/4とする。マルコフ情報源でマルコフ状態から最初S
=1/8が知られているとする。この時.000から.
001に1(LPS)がわりあてられ、.001から
1.000に0(MPS)がわりあてられる。さて0シ
ンボルが発生したとすると.001から1.000に範
囲が限定される。この時オフセットは.001となる。
次のシンボルについては1の出現確率からS=1/4を
用いることが送受信共に知られているので.001か
ら.011に1が割りあてられる。ここで0が出現する
と数直線の範囲は.011から1.000に変化する。
次にS=1/4とするとLPSの割当範囲の上限が.0
11+.01=.101で0.1(10進で0.5)を
こえるので0.1をこえた分を半分にする補正を行う
と.1001となる。
Next, a specific coding example will be described. In FIG. 5, it is assumed that the coordinates are displayed in binary. S is 1/8 or 1
/ 4. First S from Markov state at Markov source
= 1/8 is known. This time. From 000.
001 is assigned 1 (LPS). 0 (MPS) is assigned from 001 to 1.000. Now suppose that 0 symbols are generated. The range is limited from 001 to 1.000. At this time, the offset is. 001.
Since it is known for both transmission and reception to use S = 1/4 from the appearance probability of 1 for the next symbol. From 001. One is assigned to 011. When 0 appears here, the range of the number line is. It changes from 011 to 1.000.
Next, if S = 1/4, the upper limit of the LPS allocation range is. 0
11+. 01 =. Since the value exceeds 0.1 (0.5 in decimal) at 101, when the correction exceeding 0.1 is halved. 1001.

【0026】ここでLPSが出現しておりLPSの領域
の大きさは.1001−.011=.0011であるの
で次に22 倍すれば0.1(10進で0.5)をこえ
る。従ってシフト桁数は2となる。ベースは.1001
−.01=.0101でありこの値を符号語として出
す。新しいオフセットは.011−.0101=.00
01を2桁シフトするので0.01となる。次にS=1
/8として.01+.001=.011が0と1の境め
となる。
Here, LPS has appeared, and the size of the LPS region is. 1001-. 011 =. If then 2 2 multiplied by because it is 0011 more than 0.1 (0.5 in decimal). Therefore, the number of shift digits is two. The base is. 1001
−. 01 =. 0101 and outputs this value as a code word. The new offset is. 011-. 0101 =. 00
Since 01 is shifted by two digits, it becomes 0.01. Then S = 1
/ 8. 01+. 001 =. 011 is the boundary between 0 and 1.

【0027】ここで0が発生するとオフセットは.01
1に上がる。ここでS=1/4とすると.011+.0
1=0.101>0.1で0.1をこえるので0.1を
こえた分を半分にすると.1001となる。シンボルが
0であると0の領域は0.1を割るのでベース値.10
00に対応する1000を符号語出力として出して2倍
に正規化する必要がある。.1000がベースなので新
しいオフセットは(0.1001−0.1)の21 倍で
0.001となる。次の状態はS=1/8でありMPS
が出現したとするオフセットは0.001+0.001
=0.010となる。更に次の状態はS=1/4とする
と1(LPS)が出現すればオフセット値.0100が
符号語として出力される。
Here, when 0 occurs, the offset becomes. 01
Go up to 1. Here, assuming that S = 1/4. 011+. 0
Since 1 = 0.101> 0.1 and exceeds 0.1, halving the amount exceeding 0.1 is used. 1001. If the symbol is 0, the area of 0 is less than 0.1, so the base value. 10
It is necessary to output 1000 corresponding to 00 as a codeword output and to normalize it by a factor of two. . 1000 because base new offset becomes 0.001 in 2 1 times the (0.1001-0.1). The next state is S = 1/8 and MPS
Is assumed to be 0.001 + 0.001
= 0.010. Further, assuming that S = 1/4, if 1 (LPS) appears, the offset value. 0100 is output as a codeword.

【0028】最終的な符号語としては以上出された符号
語とシフト桁をもとに演算されたものとなる。(図5下
に示す)
The final code word is the one calculated based on the code word issued above and the shift digits. (Shown in Figure 5 below)

【0029】なおSの値としては1/2,1/4,1/
8など1/2のべき乗となる値のセットから選択するよ
うにするとMPSの割当領域が正規化数直線上で0.5
を下回る場合の修正によりSの値が変動しても正規化の
ための2のべき乗倍数は不変であるので都合が良い。
The value of S is 1/2, 1/4, 1 /
If a value set to a power of 1/2 such as 8 is selected, the assigned area of the MPS becomes 0.5 on the normalized number line.
Is convenient because the power-of-two multiple for normalization does not change even if the value of S fluctuates due to correction when the value is less than.

【0030】さて、上記した方式に従い0(MPS)と
1(LPS)に領域を与えるとSの値とSが決まった時
のLPSの想定出現比率rの関係は
Now, when areas are given to 0 (MPS) and 1 (LPS) according to the above-described method, the relationship between the value of S and the assumed appearance ratio r of LPS when S is determined is as follows.

【0031】[0031]

【数9】 (Equation 9)

【0032】となる。## EQU1 ##

【0033】従ってS=1/2ならr≡1/2となり安
定している。
Therefore, if S = 1/2, r≡1 / 2, which is stable.

【0034】また S=1/4ならIf S = 1/4,

【0035】[0035]

【数10】 (Equation 10)

【0036】である。Is as follows.

【0037】一方従来通りSを固定とするとLPSの想
定出現比率rは
On the other hand, if S is fixed as before, the assumed appearance ratio r of LPS is

【0038】[0038]

【数11】 [Equation 11]

【0039】S=1/2ならIf S = 1/2

【0040】[0040]

【数12】 (Equation 12)

【0041】S=1/4ならIf S = 1/4

【0042】[0042]

【数13】 (Equation 13)

【0043】となる。即ちrの変動範囲は従来方式の方
が大きいため本提案方式の方が効率が良いこととなる。
Is as follows. That is, since the variation range of r is larger in the conventional method, the proposed method is more efficient.

【0044】発明の実施の形態1.次に具体的な復号化
例を第4図及び第5図にもとづいて説明する。第5図で
座標は2進表示されているとする。Sは1/8もしくは
1/4とする。マルコフ情報源でマルコフ状態から最初
S=1/8が知られているとする。この時.000か
ら.001に1(LPS)がわりあてられ、.001か
ら1.000に0(MPS)がわりあてられる。
Embodiment 1 of the Invention Next, a specific decoding example will be described with reference to FIGS. 4 and 5. FIG. In FIG. 5, it is assumed that the coordinates are displayed in binary. S is 1/8 or 1/4. It is assumed that S = 1/8 is first known from the Markov state in the Markov information source. This time. From 000. 001 is assigned 1 (LPS). 0 (MPS) is assigned from 001 to 1.000.

【0045】さて、符号語.011・・・・と境界.0
01を比較すると符号語≧境界であり符号語は0シンボ
ルの領域であるので0シンボル(MPS)が復号化さ
れ、.001から1.000に範囲が限定される。すな
わちオフセットは.001となる。次のシンボルについ
ては1の出現確率からS=1/4を用いることが送受信
共に知られているので.001から.011に1が割り
あてられる。ここで符号語.011・・・・と境界.0
11を比較すると符号語≧境界であり符号語は0の領域
であり、0シンボルが復号化される。
Now, the code word. .. and boundary. 0
Compared with 01, since codeword ≧ boundary and the codeword is a region of 0 symbols, 0 symbol (MPS) is decoded and. The range is limited from 001 to 1.000. That is, the offset is. 001. Since it is known for both transmission and reception to use S = 1/4 from the appearance probability of 1 for the next symbol. From 001. One is assigned to 011. Where codeword. .. and boundary. 0
When 11 is compared, codeword ≧ boundary, the codeword is a region of 0, and 0 symbols are decoded.

【0046】次に、数直線の範囲は.011から1.0
00に変化する。次にS=1/4とするとLPSの割当
範囲の上限が.011+.01=.101で0.1(1
0進で0.5)をこえるので0.1をこえた分を半分に
する補正を行うと.1001となる。
Next, the range of the number line is. 011 to 1.0
Change to 00. Next, if S = 1/4, the upper limit of the LPS allocation range is. 011+. 01 =. 0.1 (1
Since it exceeds 0.5 in 0-base, if you make a correction to halve the amount exceeding 0.1, 1001.

【0047】ここで、符号語.011・・・・と境界.
1001を比較すると、符号語<境界であり、符号語は
1の領域で1(LPS)が復号される。すなわち、LP
Sが出現しておりLPSの領域の大きさは.1001
−.011=.0011であるので次に22 倍すれば
0.1(10進で0.5)をこえる。従ってシフト桁数
は2となる。ベースは.1001−.01=.0101
でありこの値を符号語から引く。引いた結果は、.00
10100・・(=.0111100・・−.010
1)である。
Here, the code word. .. and boundary.
When 1001 is compared, codeword <boundary, and 1 (LPS) is decoded in the area of codeword 1. That is, LP
S has appeared and the size of the LPS region is. 1001
−. 011 =. If then 2 2 multiplied by because it is 0011 more than 0.1 (0.5 in decimal). Therefore, the number of shift digits is two. The base is. 1001-. 01 =. 0101
And subtract this value from the codeword. The result of subtraction is. 00
10100 ... (= 0.111100 ...- 0.010)
1).

【0048】新しいオフセットは.011−.0101
=.0001を2桁シフトするので0.01となる。
The new offset is. 011-. 0101
=. Since 0001 is shifted by two digits, it becomes 0.01.

【0049】また、符号語も.0010100・・を2
桁シフトするので、.10100・・である。次にS=
1/8として.01+.001=.011が0と1の境
めとなる。ここでまず、符号語.10100・・・・と
境界.011とを比較すると符号語>境界であり、符号
語は0の領域と判定される。ここで0が復号されたので
オフセットは.011に上がる。次にS=1/4とす
る.011+.01=0.101>0.1で0.1をこ
えるので0.1をこえた分を半分にすると境界は.10
01となる。
The code word is also. 0010100 ... 2
Digit shift, so. 10100 ... Then S =
As 1/8. 01+. 001 =. 011 is the boundary between 0 and 1. Here, first, the codeword. 10100 ... and boundary. 011, codeword> boundary, and the codeword is determined to be a 0 region. Here, since 0 is decoded, the offset is. Go up to 011. Next, let S = 1/4. 011+. Since 01 = 0.101> 0.1 and exceeds 0.1, if the amount exceeding 0.1 is halved, the boundary becomes. 10
01.

【0050】ここで、符号語.10100・・と境界.
1001とを比較すると符号語>境界であり符号語は0
の領域である。したがって、ここで0を復号化する。次
にこの0の領域は0.1を割っているのでベース値.1
000に対応する1000を符号語から減算すると共に
2倍に正規化する(1桁シフトする)必要がある。
Here, the code word. 10100 ... and boundary.
1001 and codeword> boundary and codeword is 0
Area. Therefore, 0 is decoded here. Next, since this 0 area is less than 0.1, it is the base value. 1
It is necessary to subtract 1000 corresponding to 000 from the codeword and normalize (shift by one digit) twice.

【0051】.1000がベースなので新しいオフセッ
トは(0.1001−0.1)の21 倍で0.001と
なる。符号語からもこの値を引くとその結果は.001
0・・(=.10100・・−.1000)である。1
桁シフトすれば.010・・である。
[0051] 1000 because base new offset becomes 0.001 in 2 1 times the (0.1001-0.1). Subtracting this value from the codeword will also result in. 001
0 (= .10100... -1000). 1
If you shift by digits. 010 ...

【0052】次の状態はS=1/8であり、境界は0.
001+0.001=0.010である。符号語.01
0・・と境界.010とを比較すると符号語≧境界であ
り符号語は0の領域である。更に次の状態ではS=1/
4とすると境界は0.010+0.01=0.1であ
る。
The next state is S = 1/8 and the boundary is 0.
001 + 0.001 = 0.010. Codeword. 01
0 ... and boundary. Compared with 010, codeword ≧ boundary, and the codeword is an area of 0. In the next state, S = 1 /
If it is 4, the boundary is 0.010 + 0.01 = 0.1.

【0053】ここで、符号語.010・・と境界.10
0とを比較すると、符号語<境界であり、符号語は1の
領域であり、1が復号される。以下同様に復号が行われ
る。
Here, the code word. 010 ... and boundary. 10
When compared with 0, the codeword <boundary, the codeword is an area of 1 and 1 is decoded. Thereafter, decoding is performed in the same manner.

【0054】[0054]

【発明の効果】以上のようにこの発明によれば数線符号
化に於いてLPSに割当てられる領域をよりLPS出現
確率に応じて制御できるためより効率の良い復号化を実
現できる効果がある。
As described above, according to the present invention, the area allocated to the LPS in the number line coding can be controlled in accordance with the LPS appearance probability, so that more efficient decoding can be realized.

【0055】なお、多値情報源はツリー展開により容易
に2値情報源に変換できるので、本発明が多値情報源に
適用できることはいう迄もない。
It is needless to say that the present invention can be applied to a multi-valued information source because a multi-valued information source can be easily converted to a binary information source by tree expansion.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 この発明の一実施例による符号化装置を示す
図。
FIG. 1 is a diagram showing an encoding device according to an embodiment of the present invention.

【図2】 数直線符号化の概念を示す従来図。FIG. 2 is a conventional diagram showing the concept of number line coding.

【図3】 本発明の一実施例における符号化フローチャ
ート図。
FIG. 3 is an encoding flowchart in one embodiment of the present invention.

【図4】 本発明の一実施例における復号化フローチャ
ート。
FIG. 4 is a decoding flowchart according to an embodiment of the present invention.

【図5】 本発明の一実施例における動作例である。FIG. 5 is an operation example in one embodiment of the present invention.

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

1 加算器、2 比較器、3 オフセット演算装置、4
ベース演算装置、5シフト桁数演算装置、6 上位ア
ドレス補正装置。
1 adder, 2 comparator, 3 offset calculator, 4
Base arithmetic unit, 5 shift digit number arithmetic unit, 6 Upper address correction device.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 木村 智広 鎌倉市大船五丁目1番1号 三菱電機株 式会社 通信システム研究所内 (56)参考文献 電子情報通信学会春季全国大会講演論 文集(1989)、小野、木村、木野、吉 田、P.1−152 (58)調査した分野(Int.Cl.6,DB名) H03M 7/40──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Tomohiro Kimura 5-1-1, Ofuna, Kamakura City Mitsubishi Electric Corporation Communication Systems Laboratory (56) References Proc. Of the IEICE Spring National Convention (1989) , Ono, Kimura, Kino, Yoshida, P.S. 1-152 (58) Field surveyed (Int. Cl. 6 , DB name) H03M 7/40

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 符号化信号の復号化にあたり、出現確率
の高いシンボルである優勢シンボルと出現確率の低いシ
ンボルである劣勢シンボルとを、前シンボルまでの数線
上の範囲(Ai-1 )及び劣勢シンボルの数線上の所定範
囲情報(S)にもとづいて、数線上の所定の範囲に対応
させ、その数線上の範囲対応結果と入力される符号化信
号から復号信号を出力する復号化方法において、 優勢シンボルと劣勢シンボルとの数線上の範囲を比較す
る第1のステップと、 この第1のステップの比較結果にもとづき、数線上の劣
勢シンボルの範囲が数線上の優勢シンボルの範囲を越え
ないように数線上の劣勢シンボルの範囲と優勢シンボル
の範囲を制御する第2のステップとを備え、制御された
範囲に基づき復号を行うことを特徴とする復号化方法。
When decoding a coded signal, a dominant symbol which is a symbol having a high appearance probability and a inferior symbol which is a symbol having a low appearance probability are divided into a range (A i-1 ) on the number line up to the previous symbol and A decoding method for outputting a decoded signal from a range correspondence result on the number line and a coded signal input based on the predetermined range information on the number line based on the predetermined range information (S) on the number line of the inferior symbol. A first step of comparing the range on the number line between the superior symbol and the inferior symbol; and, based on the comparison result of the first step, the range of the inferior symbol on the number line does not exceed the range of the superior symbol on the number line. And a second step of controlling the range of the inferior symbol and the range of the superior symbol on the number line, and performing decoding based on the controlled range.
【請求項2】 符号化信号の復号化にあたり、出現確率
の高いシンボルである優勢シンボルと出現確率の低いシ
ンボルである劣勢シンボルとを、前シンボルまでの数線
上の範囲(Ai-1 )及び劣勢シンボルの数線上の所定範
囲(S)にもとづいて、数線上の所定の範囲に対応さ
せ、その数線上の範囲対応結果と入力される符号化信号
から復号信号を出力する復号化方法において、 優勢シンボルに割り当てる数線上の範囲と所定値とを比
較する第1のステップと、 優勢シンボルに与えられる範囲が数線上で所定値を下回
る場合、優勢シンボルの範囲の所定値を下回る値の半分
の値を劣勢シンボルの範囲から優勢シンボルの範囲に移
すように優勢シンボルと劣勢シンボルとの数線上の範囲
を制御する第2のステップとを備え、制御された範囲に
基づき復号を行うことを特徴とする復号化方法。
2. In decoding a coded signal, a dominant symbol having a high appearance probability and a inferior symbol having a low appearance probability are represented by a number line range (A i-1 ) up to the previous symbol and A decoding method for outputting a decoded signal based on a predetermined range on the number line based on a predetermined range (S) on the number line of the inferior symbol and a result of the range correspondence on the number line and an input coded signal, A first step of comparing the range on the number line assigned to the dominant symbol with a predetermined value; and, when the range given to the dominant symbol is below the predetermined value on the number line, half of the value below the predetermined value in the range of the dominant symbol. A second step of controlling the range on the number line between the superior symbol and the inferior symbol so as to shift the value from the inferior symbol range to the inferior symbol range. Decoding method and performing come decoding.
JP28321195A 1995-10-31 1995-10-31 Decryption method Expired - Lifetime JP2783221B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28321195A JP2783221B2 (en) 1995-10-31 1995-10-31 Decryption method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28321195A JP2783221B2 (en) 1995-10-31 1995-10-31 Decryption method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP1021672A Division JPH0834432B2 (en) 1989-01-31 1989-01-31 Encoding device and encoding method

Publications (2)

Publication Number Publication Date
JPH08242175A JPH08242175A (en) 1996-09-17
JP2783221B2 true JP2783221B2 (en) 1998-08-06

Family

ID=17662559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28321195A Expired - Lifetime JP2783221B2 (en) 1995-10-31 1995-10-31 Decryption method

Country Status (1)

Country Link
JP (1) JP2783221B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3801501B2 (en) 2001-12-18 2006-07-26 三菱電機株式会社 Encoding apparatus, decoding apparatus, encoding / decoding apparatus, encoding method, decoding method, encoding / decoding method, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
電子情報通信学会春季全国大会講演論文集(1989)、小野、木村、木野、吉田、P.1−152

Also Published As

Publication number Publication date
JPH08242175A (en) 1996-09-17

Similar Documents

Publication Publication Date Title
JPH0834432B2 (en) Encoding device and encoding method
JP3391251B2 (en) Adaptive probability estimation method, adaptive encoding method, and adaptive decoding method
US4122440A (en) Method and means for arithmetic string coding
EP1995974B1 (en) Method for realizing arithmetic coding
JPH0834434B2 (en) Encoding device and encoding method
JP2798172B2 (en) Image encoding / decoding device
US6252992B1 (en) Variable length coding
JP2968112B2 (en) Code conversion method
JP2783221B2 (en) Decryption method
USRE35781E (en) Coding method of image information
Feygin et al. Minimizing error and VLSI complexity in the multiplication free approximation of arithmetic coding
US5937088A (en) Apparatus and method for improving memory usage of look-up table mapping
JP3025827B2 (en) Variable length coding device
KR20080053137A (en) Method for finding minimal signed digit with variable multi-bit coding based on booth&#39;s algorithm
EP0047382A2 (en) Adaptive compression encoding of a binary-source symbol string
JP2723660B2 (en) Orthogonal transformer
JP3937463B2 (en) Huffman coding apparatus and method
JP3084187B2 (en) Binary image encoding device and binary image decoding device
JPS60251763A (en) Magnifying and reducing circuit of facsimile information
US7053803B1 (en) Data compression
JP2508473B2 (en) Buffering device in transform coding.
TW203670B (en)
JPH0834433B2 (en) Encoding device and encoding method
JPH09121286A (en) Method and device for compressing picture data
JP2615215B2 (en) Image data compression method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080522

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090522

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090522

Year of fee payment: 11