JP3336537B2 - Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device - Google Patents

Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device

Info

Publication number
JP3336537B2
JP3336537B2 JP10105197A JP10105197A JP3336537B2 JP 3336537 B2 JP3336537 B2 JP 3336537B2 JP 10105197 A JP10105197 A JP 10105197A JP 10105197 A JP10105197 A JP 10105197A JP 3336537 B2 JP3336537 B2 JP 3336537B2
Authority
JP
Japan
Prior art keywords
encoding
context
symbol
decoding
register
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 - Fee Related
Application number
JP10105197A
Other languages
Japanese (ja)
Other versions
JPH10285049A (en
Inventor
勉 遠藤
伸夫 林
Original Assignee
アイチップス・テクノロジー株式会社
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=14290333&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP3336537(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by アイチップス・テクノロジー株式会社 filed Critical アイチップス・テクノロジー株式会社
Priority to JP10105197A priority Critical patent/JP3336537B2/en
Priority to US08/915,976 priority patent/US6055338A/en
Publication of JPH10285049A publication Critical patent/JPH10285049A/en
Application granted granted Critical
Publication of JP3336537B2 publication Critical patent/JP3336537B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像に関するデー
タに対して所定の変換処理を施す画像データ変換処理技
術に関し、特に、静的な情報テーブルを用いて符号化、
復号化等の所定の変換処理を行う画像データ変換処理方
法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image data conversion technology for performing a predetermined conversion process on data relating to an image, and more particularly, to encoding and decoding using a static information table.
The present invention relates to an image data conversion processing method and apparatus for performing predetermined conversion processing such as decoding.

【0002】[0002]

【発明の背景】人間の視覚によって認識される画像情報
を、コンピュータ等の機械によって認識可能な状態にす
るために種々の画像変換処理が行われる。例えば、画像
情報を電話回線や無線電波等の伝送媒体を介して伝送す
る場合、伝送する画像の情報量を少なくするために、送
信側で伝送すべき画像データの圧縮を行い、受信側では
当該圧縮データを伸長するという技術が一般的に利用さ
れている。図15は、画像データの伝送の様子を概念的
に示す。画像情報源から供給された画像データは、送信
側の符号化装置10において符号化され、伝送媒体12
によって伝送される。受信側に伝送された符号データ
は、復号化装置14によって元の画像データに復号化さ
れる。
BACKGROUND OF THE INVENTION Various image conversion processes are performed to make image information recognized by human vision recognizable by a machine such as a computer. For example, when transmitting image information via a transmission medium such as a telephone line or a radio wave, the transmitting side compresses image data to be transmitted in order to reduce the amount of information of the image to be transmitted, and the receiving side performs the compression. A technique of expanding compressed data is generally used. FIG. 15 conceptually shows how image data is transmitted. The image data supplied from the image information source is encoded by the encoding device 10 on the transmission side, and
Transmitted by The encoded data transmitted to the receiving side is decoded by the decoding device 14 into original image data.

【0003】符号化や復号化のような画像データの変換
処理においては、予め複数の変換パラメータを静的な情
報テーブルに記憶しておく場合がある。すなわち、入力
画像データの変換処理を行う場合に、当該画像データに
対応した変換パラメータを情報テーブルから読み出し、
読み出された変換パラメータを用いて当該画像データの
変換処理を行う。このような変換処理においては、同一
画像データに対する変換パラメータを、画像の統計的な
性質に基づき、その時の局所的性質にマッチするように
変更していく適応型の変換処理方式がある。
In image data conversion processing such as encoding and decoding, a plurality of conversion parameters may be stored in a static information table in advance. That is, when performing conversion processing of input image data, a conversion parameter corresponding to the image data is read from the information table,
The conversion processing of the image data is performed using the read conversion parameters. In such conversion processing, there is an adaptive conversion processing method in which conversion parameters for the same image data are changed based on the statistical properties of the image so as to match the local properties at that time.

【0004】[0004]

【従来技術】図16は、画像データ変換処理装置の一例
として、適応型算術符号化方式を採用した従来の画像符
号化装置を示す。ここで、算術符号化とは、符号化の対
象となるシンボル系列の出現確率に応じて確率数直線を
区間分割し、分割された区間内の位置を示す二進小数値
をその系列に対する符号とするものであり、符号語を算
術演算により逐次的に構成していく。このような算術符
号化方式は、特にファクシミリによる2値画像の送受信
等に適用される。
2. Description of the Related Art FIG. 16 shows a conventional image coding apparatus employing an adaptive arithmetic coding system as an example of an image data conversion processing apparatus. Here, arithmetic coding means that a probability number line is divided into sections according to the appearance probability of a symbol sequence to be coded, and a binary decimal value indicating a position in the divided section is a code for the sequence. In this case, codewords are sequentially formed by arithmetic operations. Such an arithmetic coding method is particularly applied to the transmission and reception of binary images by facsimile.

【0005】図16に示す画像符号化装置は、入力画像
データを2値シンボル列として入力するシンボル系列読
み取り部100と、シンボル系列読み取り部100にて
読み取られた2値シンボル列を記憶するシンボル系列記
憶部102と、シンボル系列記憶部102に記憶されて
いる2値シンボル列の圧縮を行うために、必要な情報と
して、圧縮しようとする符号化対象シンボルに最も相関
の深いシンボルパターン(以下、「テンプレート」と称
する)を2値シンボル列から選択する画像参照シンボル
選択部104とを備えている。また、図17に示す内容
のデータを記憶する状態番号/優勢シンボル記憶部10
6と、画像参照シンボル選択部104にて取り出された
参照シンボルの内容が示す値(以下、「コンテクスト」
あるいは「CX」と記述する)に基づき、符号化対象シ
ンボルが状態番号/優勢シンボル記憶部106に記憶さ
れている推測値(高い確率で出現するシンボル値,優勢
シンボル「MPS」)と等しいか否かの情報を出力する
予測変換処理部108とを更に備えている。
The image encoding apparatus shown in FIG. 16 includes a symbol sequence reading section 100 for inputting input image data as a binary symbol sequence, and a symbol sequence for storing the binary symbol sequence read by the symbol sequence reading section 100. In order to compress the binary symbol sequence stored in the symbol sequence storage unit 102, the storage unit 102 and the symbol pattern most closely correlated with the encoding target symbol to be compressed (hereinafter, referred to as “ Image reference symbol selection unit 104 for selecting a “template” from a binary symbol sequence. A state number / dominant symbol storage unit 10 for storing data having the contents shown in FIG.
6 and a value indicated by the content of the reference symbol extracted by the image reference symbol selection unit 104 (hereinafter referred to as “context”).
Alternatively, whether the symbol to be encoded is equal to the estimated value (symbol value that appears with a high probability, dominant symbol “MPS”) stored in the state number / dominant symbol storage unit 106 based on “CX”). And a prediction conversion processing unit 108 that outputs such information.

【0006】図16において、符号110は、各状態番
号に対して予め定められた劣勢シンボルLPSの確率領
域の大きさ(LSZ)及び状態番号STの遷移情報を記
憶した確率推定テーブルである。112は、予測変換処
理部108の出力と、状態番号/優勢シンボル記憶部1
06から読み出された状態番号STとMPS値と、確率
推定テーブル110から読み出された劣勢シンボルLP
Sの出現確率領域幅の値(LSZ)及び状態遷移情報を
元に、符号化対象シンボルに対して算術符号化処理を行
う算術符号化部である。
In FIG. 16, reference numeral 110 denotes a probability estimation table that stores a predetermined probability area size (LSZ) of the inferior symbol LPS and transition information of the state number ST for each state number. Reference numeral 112 denotes the output of the prediction conversion processing unit 108 and the state number / dominant symbol storage unit 1
06, the state number ST and the MPS value read from the probability estimation table 110, and the inferior symbol LP read from the probability estimation table 110.
An arithmetic encoding unit that performs an arithmetic encoding process on the encoding target symbol based on the value (LSZ) of the appearance probability area width of S and the state transition information.

【0007】上記のような装置によって2値算術符号化
処理を行う場合には、まず、2値算術符号化装置全体の
初期化を行う。すなわち、状態番号/優勢シンボル記憶
部106に記憶されている状態番号(ST)および優勢
シンボルMPSの値を全てのコンテクストCXに対して
ゼロにセットする。
When the binary arithmetic coding process is performed by the above-described device, first, the entire binary arithmetic coding device is initialized. That is, the state number (ST) and the value of the dominant symbol MPS stored in the state number / dominant symbol storage unit 106 are set to zero for all contexts CX.

【0008】次に、区間レジスタ(図示せず)によって
示される確率領域のMPS領域の幅を10000Hex
にセットし、符号レジスタ(図示せず)によって示され
る確率領域のMPS領域の幅Aの下界値を0にセット
し、符号出力のためのシフト数をカウントするカウンタ
(以下、「CT」と示す)を11にセットする。次に、
画像参照シンボル選択部104は、上述したテンプレー
トを用い、符号化対象シンボル及び符号化するためのコ
ンテクストをシンボル系列記憶部102に記憶された2
値シンボル列よりロードする。
Next, the width of the MPS area of the probability area indicated by the section register (not shown) is set to 10000 Hex.
, The lower limit of the width A of the MPS area in the probability area indicated by the sign register (not shown) is set to 0, and a counter for counting the number of shifts for sign output (hereinafter referred to as “CT”) ) Is set to 11. next,
The image reference symbol selection unit 104 uses the above-described template to store the encoding target symbol and the context for encoding in the symbol sequence storage unit 102.
Load from the value symbol sequence.

【0009】次に、2値算術符号化処理を開始する。最
初に、予測変換処理部108において、符号化対象シン
ボルの値とコンテクストCXに対応した状態番号/優勢
シンボル記憶部106に記憶された優勢シンボルMPS
の値(以後「MPS(CX)」と示す)とを比較する。
符号化対象シンボルの値とMPS(CX)が等しければ
符号化対象シンボルは優勢シンボルMPSということに
なる。
Next, a binary arithmetic coding process is started. First, in the predictive conversion processing unit 108, the value of the symbol to be encoded and the state symbol corresponding to the context CX / the superior symbol MPS stored in the superior symbol storage unit 106
(Hereinafter referred to as “MPS (CX)”).
If the value of the encoding target symbol is equal to MPS (CX), the encoding target symbol is a dominant symbol MPS.

【0010】符号化対象シンボルが優勢シンボルMPS
であった場合、2値算術符号化部112においては、コ
ンテクストCXの現在の状態をST(CX)、その状態
ST(CX)において劣勢シンボルLPSに対して割り
当てられる領域幅をLSZ(ST(CX))と表現する
と、優勢シンボルMPSに対して割り当てられる領域幅
は、A−LSZ(ST(CX))のように算出される
(図18参照)。そして、現在までに符号化したシンボ
ル列の出現確率に対応した確率領域幅Aを、次の符号化
対象シンボルに対して期待される劣勢シンボルLPSと
優勢シンボルMPSの出現推定確率で分割し、優勢シン
ボルMPSの出現推定確率が劣勢シンボルLPSの出現
確率以上であれば、図18における確率領域の優勢シン
ボルMPSの領域が符号化対象シンボルに割り当てられ
る。
The symbol to be coded is the dominant symbol MPS
In the binary arithmetic coding unit 112, the current state of the context CX is set to ST (CX), and the area width allocated to the inferior symbol LPS in the state ST (CX) is set to LSZ (ST (CX )), The area width allocated to the dominant symbol MPS is calculated as A-LSZ (ST (CX)) (see FIG. 18). Then, the probability area width A corresponding to the appearance probabilities of the symbol strings encoded up to now is divided by the expected inferiority symbol LPS and the estimated occurrence probability of the superiority symbol MPS expected for the next symbol to be encoded. If the estimated occurrence probability of the symbol MPS is equal to or greater than the occurrence probability of the inferior symbol LPS, the region of the superior symbol MPS in the probability region in FIG. 18 is assigned to the encoding target symbol.

【0011】図18においては、符号化対象シンボルの
出現する確率領域の大きさを示す値はA’の値であるた
め、A−LSZを求めることによって符号化対象シンボ
ルとして優勢シンボルMPSが出現する場合に割り当て
られる確率領域幅を求めることができる。次に、優勢シ
ンボルMPSが出現する場合に割り当てられる確率領域
幅の値を図19におけるHalfで示される8000H
exと比較し、8000Hex以上であれば処理を終了
し、8000Hex未満であれば正規化処理を行う。
In FIG. 18, the value indicating the size of the probability region in which the symbol to be coded appears is the value of A ′, so that the dominant symbol MPS appears as the symbol to be coded by calculating A-LSZ. The probability region width to be assigned in the case can be obtained. Next, the value of the probability region width assigned when the dominant symbol MPS appears is 8000H indicated by Half in FIG.
ex, the process is terminated if it is 8000 Hex or more, and normalization is performed if it is less than 8000 Hex.

【0012】正規化処理を行う前処理として、符号化対
象シンボルとして優勢シンボルMPSが出現した場合に
割り当てる確率領域の幅を示すA−LSZの値と符号化
対象シンボルとして劣勢シンボルLPSが出現した場合
に割り当てる確率領域の幅LSZとを比較し、A−LS
Zの値がLSZの値より小さければ符号化効率の向上を
目的として、優勢シンボルMPSと劣勢シンボルLPS
に割り当てられる確率領域の意味を入れ換える処理(条
件付き交換処理)を行う(図19参照)。
As a pre-process for performing the normalization processing, when the value of A-LSZ indicating the width of the probability region to be allocated when the dominant symbol MPS appears as the encoding target symbol and the inferior symbol LPS appears as the encoding target symbol Is compared with the width LSZ of the probability region assigned to A-LS
If the value of Z is smaller than the value of LSZ, the superior symbol MPS and the inferior symbol LPS
A process (conditional exchange process) for exchanging the meaning of the probability region assigned to is performed (see FIG. 19).

【0013】次に、ST(CX)で示される値、すなわ
ちコンテクストCXに対応した状態番号STの次の遷移
状態(以下、「NMPS(ST(CX))」と表記す
る)を確率推定テーブル110より求め、現在のST
(CX)の値を更新する処理を行う。この時、符号化対
象シンボルが優勢シンボルMPSの場合に、次の状態に
おける「劣勢シンボルLPSに対して割り当てる確率領
域幅」LSZは、現在の状態のLSZよりも必ず小さく
なるように確率推定テーブル110が設定されている。
例えば、符号化対象シンボルMPSのみが発生した場
合、図20に示すように、LPS領域幅が大きい場合に
は(1),(2),(3)と3回符号化処理を行った時
点で1回の正規化が発生し、1ビットの符号が出力され
ている。一方、図21に示すように、LPS領域幅が小
さい場合には、符号化対象シンボルを6ビット符号化し
た時点で1回正規化が起こり、1ビットの符号が出力さ
れる。すなわち、前者(図20)の場合には圧縮率3分
の1であり、後者(図21)の場合には圧縮率が6分の
1となり、連続して優勢シンボルMPSが発生する場合
にはLPS領域幅が小さい方が圧縮率が良くなる。つま
り、優勢シンボルMPSが生じた場合は、LSZの値が
小さいほど同じ入力データ量に対して正規化処理を行う
回数が少なく、また、1回の正規化処理によって出力さ
れる符号も少なくなる。
Next, the value indicated by ST (CX), that is, the next transition state of the state number ST corresponding to the context CX (hereinafter referred to as “NMPS (ST (CX))”) is stored in the probability estimation table 110. From the current ST
A process of updating the value of (CX) is performed. At this time, when the encoding target symbol is the superior symbol MPS, the “probability region width assigned to the inferior symbol LPS” LSZ in the next state is always smaller than the LSZ in the current state. Is set.
For example, when only the encoding target symbol MPS is generated, as shown in FIG. 20, when the LPS area width is large, (1), (2), and (3) are used when the encoding process is performed three times. One normalization has occurred, and a 1-bit code has been output. On the other hand, as shown in FIG. 21, when the LPS area width is small, normalization occurs once when the encoding target symbol is encoded in 6 bits, and a 1-bit code is output. That is, in the former case (FIG. 20), the compression ratio is 1/3, in the latter case (FIG. 21), the compression ratio is 1/6, and when the dominant symbol MPS is continuously generated, The smaller the LPS area width, the better the compression ratio. That is, when the dominant symbol MPS occurs, the smaller the value of LSZ, the smaller the number of times the normalization processing is performed for the same input data amount, and the smaller the number of codes output by one normalization processing.

【0014】次に、図19に戻って、正規化処理手順に
ついて説明する。正規化処理では、8000Hexより
小さくなった優勢シンボルMPSの確率領域を8000
Hexより大きくする処理を行う。すなわち、現在まで
に符号化されたシンボル列に対して割り当てられた確率
領域の幅を示す区間レジスタと、現在までに符号化され
たシンボル列に対して割り当てられた確率領域を代表す
る座標を示す符号レジスタの値を各々のレジスタ中にて
最上位ビット方向(MSB方向)へシフトすることによ
り、各領域と座標を2倍ずつ拡大する処理を行う。
Next, returning to FIG. 19, the normalization processing procedure will be described. In the normalization processing, the probability region of the dominant symbol MPS smaller than 8000 Hex is set to 8000
A process for making the value larger than Hex is performed. That is, an interval register indicating the width of the probability region assigned to the symbol sequence encoded to date and the coordinates representing the probability region assigned to the symbol sequence encoded to date are indicated. By shifting the value of the sign register in the most significant bit direction (MSB direction) in each register, a process of enlarging each area and coordinates by two times is performed.

【0015】8000Hexは、区間レジスタの採り得
る数直線上での最大領域幅の1/2の値であり、区間レ
ジスタの値が1/2より小さくなった場合に、少なくと
も現在までに符号化されたシンボル列に対して割り当て
られた確率領域を代表する座標を示す符号レジスタ中の
最上位の1ビットの値が数直線上で確定したことを示し
ている。正規化処理におけるシフト中に、符号レジスタ
の最上位ビットから順に符号が出力される。符号の出力
タイミングは、カウンタCTによりカウントされてお
り、出力符号が8ビット蓄積されると、CTがゼロにな
って、当該符号がバイト単位で出力される。
8000 Hex is a value of 1 / of the maximum area width on a number line that can be taken by the section register. This indicates that the value of the most significant 1-bit in the code register indicating the coordinates representing the probability area assigned to the symbol sequence is determined on a number line. During the shift in the normalization processing, codes are output sequentially from the most significant bit of the code register. The output timing of the code is counted by the counter CT, and when 8 bits of the output code are accumulated, CT becomes zero and the code is output in byte units.

【0016】次に、符号化対象シンボルが劣勢シンボル
LPSであった場合の2値算術符号化処理手順について
説明する。符号化対象シンボルがMPSであった場合の
処理と異なる点は、確率推定テーブル110に予め定め
られたスイッチビットと呼ばれるビットを検査する処理
があることと、劣勢シンボルLPSが生じた場合は必ず
正規化処理を行う必要があるということ及び、正規化処
理に伴うST(CX)の値の更新が、優勢シンボルMP
Sが生じた場合にはLSZ(ST(CX))が小さくな
る方向へ更新されていくのに対し、劣勢シンボルLPS
が生じた場合にはLSZ(ST(CX))が大きくなる
方向へ更新されることである。
Next, a description will be given of a binary arithmetic encoding procedure when the encoding target symbol is the inferior symbol LPS. The difference from the processing in the case where the encoding target symbol is MPS is that the probability estimation table 110 has a processing of checking a bit called a predetermined switch bit, and that when the inferior symbol LPS occurs, That the normalization process needs to be performed and the update of the value of ST (CX) accompanying the normalization process are performed by the superior symbol MP
When S occurs, LSZ (ST (CX)) is updated in a direction to decrease, whereas the inferior symbol LPS is updated.
Is to be updated in the direction in which LSZ (ST (CX)) increases.

【0017】スイッチビットは、劣勢シンボルLPSが
出現した場合に、状態番号/優勢シンボル記憶部106
に記憶された優勢シンボルMPSと劣勢シンボルLPS
の値を入れ換える処理を行う必要性を判定するものであ
る。優勢シンボルMPSと劣勢シンボルLPSを入れ換
える処理は、符号化効率を高めるために用いられる。す
なわち、符号化装置の初期化処理で状態番号/優勢シン
ボル記憶部106に記憶された優勢シンボルMPSの値
は初期値としてゼロにクリアされており、あるコンテク
ストに対する優勢シンボルMPSの値として1が適当で
あった場合、また、2値シンボル列において、ある部位
では優勢シンボルMPSの値として1が適当であり、ま
たある部位では0の値が適当であるというように、優勢
シンボルMPS値が変化する場合、優勢シンボルMPS
の値と劣勢シンボルLPSの値とを2値シンボル列の特
性の変化に適応して入れ替えることによって、符号化効
率が向上する。劣勢シンボルLPSが生じた場合に必ず
正規化処理を行うのは、劣勢シンボルLPSの値すなわ
ちLSZ(ST(CX))の値は常に8000Hexよ
り小さい値に設定されており、劣勢シンボルLPSが出
現した場合には区間レジスタの値が必ず8000Hex
よりも小さくなるためである。
The switch bit indicates the state number / dominant symbol storage section 106 when the inferior symbol LPS appears.
Symbol MPS and LPS LPS stored in
It is necessary to perform the process of replacing the value of. The process of exchanging the superior symbol MPS and the inferior symbol LPS is used to increase the coding efficiency. That is, the value of the dominant symbol MPS stored in the state number / dominant symbol storage unit 106 in the initialization processing of the encoding device is cleared to zero as an initial value, and 1 is appropriately set as the value of the dominant symbol MPS for a certain context. In the binary symbol sequence, the value of the dominant symbol MPS changes such that 1 is appropriate as the value of the dominant symbol MPS in a certain portion and 0 is appropriate in a certain portion. Case, dominant symbol MPS
And the value of the less-probable-symbol LPS are changed according to the change in the characteristics of the binary symbol sequence, thereby improving the coding efficiency. The reason why the normalization process is always performed when the inferior symbol LPS occurs is that the value of the inferior symbol LPS, that is, the value of LSZ (ST (CX)) is always set to a value smaller than 8000Hex, and the inferior symbol LPS appears. In this case, the value of the section register must be 8000 Hex
It is because it becomes smaller than the above.

【0018】優勢シンボルMPSにより正規化が行われ
た場合には、LSZ(ST(CX))が小さくなる方向
へ状態が更新されていくのに対し、劣勢シンボルLPS
により正規化が行われた場合にはLSZ(ST(C
X))が大きくなる方向へ状態が更新される理由は以下
の通りである。すなわち、図22及び図23に示すよう
に、劣勢シンボルLPSに割り当てられる領域幅が小さ
い場合には、正規化処理におけるレジスタのシフト処
理、すなわち1回の正規化処理において出力される符号
量(シフト動作の回数)が多い。他方、劣勢シンボルL
PSの領域幅に割り当てられる領域幅が大きい場合に
は、劣勢シンボルLPSの出現による正規化処理におけ
るレジスタのシフト動作の回数が少なくなる。あるコン
テクストにおいては、劣勢シンボルLPSと判定されて
いたシンボルが出現した場合には、今までの推定確率の
ままでLPS領域幅を割り当てていると、次に劣勢シン
ボルLPSが出現した場合に符号化効率が低下する。そ
こで、さらに劣勢シンボルLPSが出現しても、多くの
符号を出力しないように、LSZ(ST(CX))が大
きくなる方向へ状態遷移を行う。符号化対象のシンボル
列の特性に途中で変化が生じたような場合、例えば文字
を記述したファクシミリ画像の中に写真画像が含まれて
いたような場合には、劣勢シンボルLPSが頻繁に発生
し、特性の変化に追従するよう状態遷移を追う必要があ
る。こうして、劣勢シンボルLPSに割り当てる確率領
域を、状態遷移により適宜選択することにより、圧縮率
を向上させている。
When normalization is performed using the superior symbol MPS, the state is updated in the direction in which LSZ (ST (CX)) decreases, whereas the inferior symbol LPS is updated.
LSZ (ST (C
The reason why the state is updated in the direction of increasing X)) is as follows. That is, as shown in FIGS. 22 and 23, when the area width allocated to the inferior symbol LPS is small, the code amount (shift) output in one normalization process in the register shift process in the normalization process Number of operations). On the other hand, the inferior symbol L
When the area width allocated to the PS area width is large, the number of register shift operations in the normalization processing due to the appearance of the inferior symbol LPS decreases. In a certain context, when a symbol determined to be the inferior symbol LPS appears, if the LPS region width is assigned with the same estimated probability as before, the encoding is performed when the next inferior symbol LPS appears. Efficiency decreases. Therefore, even if a more inferior symbol LPS appears, state transition is performed in a direction in which LSZ (ST (CX)) increases so as not to output many codes. In the case where a change occurs in the characteristics of the symbol sequence to be encoded on the way, for example, when a photographic image is included in a facsimile image in which characters are described, the inferior symbol LPS frequently occurs. It is necessary to follow the state transition so as to follow the change in the characteristic. Thus, the compression ratio is improved by appropriately selecting the probability region to be assigned to the inferior symbol LPS according to the state transition.

【0019】図24は、上記先行技術における2値算術
符号化装置によって符号化された2値シンボル列を復号
する2値算術復号化装置の構成を示す。図24におい
て、確率推定テーブル130は、コンテクストの各状態
において劣勢シンボルLPSに対してどの程度の確率領
域を割り当てるのが最適か、正規化が発生した場合の状
態遷移先としてはどの状態番号STが適当かを統計的に
求めて作成されたテーブルであり、図16に示す符号化
装置の確率推定テーブル120と同一である。状態番号
/優勢シンボル記憶部132は、符号化装置における状
態番号/優勢シンボル記憶部106と同様なフォーマッ
トおよびデータを持つ記憶装置である。シンボル系列記
憶部133は、逆予測変換処理部136から出力される
復号された2値シンボル列を記憶するようになってい
る。
FIG. 24 shows a configuration of a binary arithmetic decoding device for decoding a binary symbol sequence encoded by the binary arithmetic coding device in the prior art. In FIG. 24, the probability estimation table 130 indicates which optimal probability area is to be allocated to the inferior symbol LPS in each state of the context, and which state number ST is a state transition destination when normalization occurs. This is a table created by statistically determining whether it is appropriate or not, and is the same as the probability estimation table 120 of the encoding device shown in FIG. The state number / dominant symbol storage unit 132 is a storage device having the same format and data as the state number / dominant symbol storage unit 106 in the encoding device. The symbol sequence storage unit 133 stores the decoded binary symbol sequence output from the inverse prediction conversion processing unit 136.

【0020】画像参照シンボル選択部134は、シンボ
ル系列記憶部133に記憶されている復号された2値シ
ンボル列から、符号化装置と同様のテンプレートに従っ
て参照シンボルを選択する。逆予測変換処理部136
は、状態番号/優勢シンボル記憶部132から読み出さ
れた優勢シンボルMPS値と算術復号化部138より得
られた復号対象シンボルが、優勢シンボルMPSか劣勢
シンボルLPSかという情報から符号化前の2値シンボ
ル列を出力する。算術復号化部138は、符号データ
と、状態番号/優勢シンボル記憶部132から読み出し
た状態番号とMPS値と、確率推定テーブル130から
読み出した劣勢シンボルLPSの出現確率領域幅の値お
よび状態遷移情報を元に、復号対象シンボルがそのコン
テクストにおいて優勢シンボルMPSであったか劣勢シ
ンボルLPSであったのかを出力すると共に、状態遷移
を実行して状態番号/優勢シンボル記憶部132の更新
を行う。
The image reference symbol selection unit 134 selects a reference symbol from the decoded binary symbol sequence stored in the symbol sequence storage unit 133 according to the same template as that of the encoding device. Inverse prediction conversion processing unit 136
Is determined from the information indicating whether the dominant symbol MPS value read from the state number / dominant symbol storage unit 132 and the decoding target symbol obtained by the arithmetic decoding unit 138 are the dominant symbol MPS or the inferior symbol LPS, Output a value symbol sequence. Arithmetic decoding section 138 includes code data, state number and MPS value read from state number / dominant symbol storage section 132, value of occurrence probability area width of inferior symbol LPS read from probability estimation table 130, and state transition information. , Outputs whether the decoding target symbol is the superior symbol MPS or the inferior symbol LPS in the context, and executes the state transition to update the state number / dominant symbol storage unit 132.

【0021】次に、上記2値算術復号化装置における2
値算術復号化の処理手順について説明する。まず、2値
算術復号化装置全体の初期化を行うために、状態番号/
優勢シンボル記憶部132に記憶されている各コンテク
ストに対する遷移状態及び優勢シンボルMPSの値をす
べてのコンテクストに対してゼロにセットする。次に、
確率領域のMPS領域の下界値(確率領域の代表座標)
を示す符号レジスタ(図示せず)の値をゼロにセット
し、符号をバイト単位で符号レジスタにセットする。そ
の後、符号レジスタを最上位ビット方向(MSB方向)
へ8ビットシフトする動作を3度繰り返しすことによっ
て、符号レジスタの初期化を終了する。続いて、優勢シ
ンボルMPSの確率領域を示す区間レジスタ(図示せ
ず)に10000Hex(最大確率領域幅)をセット
し、復号化装置の初期化処理を完了する。
Next, in the binary arithmetic decoding device, 2
The processing procedure of the value arithmetic decoding will be described. First, in order to initialize the entire binary arithmetic decoding device, the state number /
The transition state for each context stored in the superior symbol storage unit 132 and the value of the superior symbol MPS are set to zero for all contexts. next,
Lower bound value of the MPS area of the probability area (representative coordinates of the probability area)
Is set to zero and the sign is set in the sign register on a byte-by-byte basis. After that, the sign register is set in the most significant bit direction (MSB direction).
By repeating the operation of shifting by 8 bits three times, the initialization of the code register is completed. Subsequently, 10000 Hex (maximum probability area width) is set in a section register (not shown) indicating the probability area of the dominant symbol MPS, and the initialization processing of the decoding device is completed.

【0022】次に、画像参照シンボル選択部134にお
いて、符号化装置と同様のテンプレートを用いて参照シ
ンボルを選択して、復号化するためのコンテクストを生
成する。次に、算術復号化部138において2値算術復
号化処理を行う際には、画像参照シンボル選択部134
より出力された各コンテクストに基づき、そのコンテク
ストに対応した状態番号STを状態番号/優勢シンボル
記憶部132から読み出す。次に、読み出した状態番号
STに対応する確率領域の幅LSZを確率推定テーブル
130から読み出し、その確率領域の幅LSZを算術復
号化部138へ供給する。算術復号化部138では、確
率推定テーブル130より供給されたLSZの値を区間
レジスタより減算する。
Next, the image reference symbol selection unit 134 selects a reference symbol using the same template as that of the encoding device, and generates a context for decoding. Next, when performing the binary arithmetic decoding process in the arithmetic decoding unit 138, the image reference symbol selecting unit 134
Based on each of the output contexts, the state number ST corresponding to the context is read from the state number / dominant symbol storage unit 132. Next, the width LSZ of the probability region corresponding to the read state number ST is read from the probability estimation table 130, and the width LSZ of the probability region is supplied to the arithmetic decoding unit 138. The arithmetic decoding unit 138 subtracts the value of LSZ supplied from the probability estimation table 130 from the section register.

【0023】次に、上記減算処理後の区間レジスタの値
と符号レジスタのMSB側16ビット(CHIGH)の
内容とを比較する。区間レジスタには、現在までに復号
されたシンボルによって分割されてきた領域幅が、既に
復号されたシンボル分拡大されている。すなわち、区間
レジスタにはシフトされた回数分拡大された値が入って
いる。符号レジスタのMSB側16ビット(CHIG
H)には、符号化するシンボル列に対して割り当てられ
た確率領域を代表する座標情報(下界の座標)のうち、
まだ入力されない符号分を除いた座標の近似値(下界座
標はすべての符号が復号器に入力された段階で完結す
る)から、既に復号されたシンボルに割り当てられた領
域の下界座標を減算した値が区間レジスタと同じ拡大を
与えられて保持されている。その区間レジスタを、次に
復号するシンボルに対する推定領域幅で分割し、CHI
GHレジスタがその分割された領域の境界よりも優勢シ
ンボルMPS側に属しているか、劣勢シンボルLPS側
に属しているかによって、復号を行う。すなわち、A−
LSZ(ST(CX))とCHIGHの大小比較によっ
て復号化処理を行う。
Next, the value of the section register after the subtraction processing is compared with the contents of the 16 bits (CHIGH) on the MSB side of the sign register. In the section register, the area width divided by the decoded symbols up to the present is expanded by the already decoded symbols. That is, the section register contains a value expanded by the number of shifts. 16 bits on the MSB side of the sign register (CHIG
H) includes, among coordinate information (lower-bound coordinates) representative of a probability region assigned to a symbol sequence to be encoded,
The value obtained by subtracting the lower bound coordinate of the area assigned to the already decoded symbol from the approximate value of the coordinate excluding the code not yet input (the lower bound coordinate is completed when all codes are input to the decoder) Are given the same enlargement as the interval register and are held. The section register is divided by the estimated area width for the next symbol to be decoded, and the CHI
Decoding is performed depending on whether the GH register belongs to the dominant symbol MPS or the inferior symbol LPS from the boundary of the divided area. That is, A-
The decoding process is performed by comparing the magnitude of LSZ (ST (CX)) and CHIGH.

【0024】復号化対象シンボルが優勢シンボルMPS
であった場合、区間レジスタの幅が8000Hex以上
であれば逆予測変換処理部136へ処理を継続し、80
00Hexより小さい場合には優勢シンボルMPSの条
件付き交換処理を行った後、正規化処理を行い、逆予測
変換処理部136へ処理を継続する。一方、復号化対象
シンボルが劣勢シンボルLPSであった場合、符号化処
理の場合と同様に必ず正規化処理を行い、逆予測変換処
理部136へ処理を継続する。
The symbol to be decoded is the dominant symbol MPS
If the width of the section register is 8000 Hex or more, the process is continued to the inverse prediction conversion processing unit 136, and
If the value is smaller than 00 Hex, a conditional exchange process of the dominant symbol MPS is performed, a normalization process is performed, and the process continues to the inverse prediction conversion processing unit 136. On the other hand, when the decoding target symbol is the inferior symbol LPS, the normalization process is always performed as in the case of the encoding process, and the process is continued to the inverse prediction conversion processing unit 136.

【0025】2値算術復号化装置における正規化処理手
順は、図19に示した2値算術符号化処理時における正
規化処理手順とまったく同一である。符号化/復号化処
理時に関わらず、正規化処理では、区間レジスタおよび
符号レジスタの値をレジスタ中にて最上位ビット方向
(MSB方向)へシフトし、8000Hexより小さく
なった区間レジスタ内容を8000Hexより大きく
し、符号レジスタ中の符号が不足したら次の符号を符号
レジスタに読み込んで復号を継続する。
The normalization processing procedure in the binary arithmetic decoding device is exactly the same as the normalization processing procedure in the binary arithmetic coding processing shown in FIG. Regardless of the encoding / decoding processing, in the normalization processing, the values of the section register and the code register are shifted in the most significant bit direction (MSB direction) in the register, and the contents of the section register smaller than 8000 Hex are read from 8000 Hex. If the code in the code register is insufficient, the next code is read into the code register and decoding is continued.

【0026】次に、逆予測変換処理部136の動作につ
いて説明する。画像参照シンボル選択部134の出力で
あるコンテクストを用いて、算術復号化部138はコン
テクストに対応したMPS値を状態番号/優勢シンボル
記憶部132から取り出して、逆予測変換処理部136
に供給する。逆予測変換処理部136では、2値算術復
号化部138より出力された「復号シンボルが優勢シン
ボルMPSか劣勢シンボルLPSか」を示すMPS/L
PS情報と、状態番号/優勢シンボル記憶部132から
供給されたMPS値とを比較することにより、符号化す
る前のシンボルを求めて出力する。以上のように、情報
源の性質に追随して状態番号/優勢シンボル記憶部10
6,132を書き換えていくことにより、高い符号化効
率による算術符号化・復号化装置の実現が可能となる。
Next, the operation of the inverse prediction conversion processing section 136 will be described. Using the context output from the image reference symbol selection unit 134, the arithmetic decoding unit 138 extracts the MPS value corresponding to the context from the state number / dominant symbol storage unit 132, and performs an inverse prediction conversion processing unit 136.
To supply. In the inverse prediction conversion processing section 136, MPS / L output from the binary arithmetic decoding section 138 and indicating whether “the decoded symbol is the superior symbol MPS or the inferior symbol LPS”
By comparing the PS information with the MPS value supplied from the state number / dominant symbol storage unit 132, a symbol before encoding is obtained and output. As described above, the state number / dominant symbol storage unit 10 follows the nature of the information source.
By rewriting 6,132, it is possible to realize an arithmetic coding / decoding device with high coding efficiency.

【0027】しかしながら、上記のような従来の符号
化,復号化装置においては、図25に示すように、1シ
ンボル毎に、状態番号/優勢シンボル記憶部(106,
132)の検索と、確率推定テーブル(110,13
0)の検索、(逆)予測変換処理、領域計算、区間レジ
スタ更新、座標計算、符号レジスタ更新と、状態番号/
優勢シンボル記憶部(106,132)の更新とを行っ
ている。すなわち、1つの符号化(復号化)対象シンボ
ルに対して、サイクル1における状態番号/優勢シンボ
ル記憶部(106,132)の読み出し、サイクル2に
おける確率推定テーブル(110,130)の検索と状
態番号/予測値の更新演算、サイクル3における状態番
号/優勢シンボル記憶部(106,132)への書き込
みを終了した後で、次の符号化(復号化)対象シンボル
の処理(サイクル4,5,6)に移っている。このた
め、処理速度の向上に限界があった。
However, in the conventional encoding / decoding device as described above, as shown in FIG. 25, the state number / dominant symbol storage unit (106,
132) and a probability estimation table (110, 13)
0) search, (reverse) predictive conversion processing, area calculation, section register update, coordinate calculation, code register update, state number /
The dominant symbol storage units (106, 132) are updated. That is, for one symbol to be encoded (decoded), reading of the state number / dominant symbol storage unit (106, 132) in cycle 1, retrieval of the probability estimation table (110, 130) in cycle 2 and state number After finishing the / update operation of the predicted value and writing to the state number / dominant symbol storage unit (106, 132) in cycle 3, processing of the next symbol to be encoded (decoded) (cycles 4, 5, 6) ). For this reason, there is a limit in improving the processing speed.

【0028】そこで、算術符号化・復号化を高速に行う
装置に関する技術が特開平5−67978号公報におい
て提案されている。この公報には、各コンテクストに対
応した状態番号と優勢シンボルを記憶する書き換え可能
なメモリと、このメモリから読み出された符号化対象シ
ンボルに対する状態番号及び優勢シンボル、ないしは、
直前のシンボルに対する書き換え処理後の状態番号及び
優勢シンボルを保持するレジスタと、符号化対象シンボ
ルが予測値と一致しているか否かを判定し、その結果に
応じて該コンテクストにおける上記メモリの状態番号及
び優勢シンボルを書き換える制御回路と、符号化対象シ
ンボルに対するコンテクストと直前のシンボルに対する
コンテクストが一致するか否かを検出し、検出結果に従
って上記レジスタの内容を更新する検出器と、上記レジ
スタより出力された状態番号・優勢シンボルを基に予測
誤差信号を符号化する算術符号器とを備えている。
Therefore, a technique relating to an apparatus for performing arithmetic encoding / decoding at high speed is proposed in Japanese Patent Laid-Open No. 5-67978. This publication discloses a rewritable memory that stores a state number and a dominant symbol corresponding to each context, a state number and a dominant symbol for the encoding target symbol read from this memory, or
A register for holding a state number and a dominant symbol after a rewrite process for the immediately preceding symbol, and determining whether or not the symbol to be encoded matches the predicted value, and according to the result, the state number of the memory in the context A control circuit for rewriting the dominant symbol, a detector for detecting whether or not the context for the symbol to be encoded matches the context for the immediately preceding symbol, and updating the contents of the register according to the detection result; and a detector output from the register. And an arithmetic encoder for encoding the prediction error signal based on the state number and the superior symbol.

【0029】そして、符号化処理に用いる状態番号及び
優勢シンボルとして、符号化対象シンボルに対するコン
テクストと直前のシンボルに対するコンテクストが一致
しているか否かにより、直前の符号化対象シンボルに対
する書き換え処理後の状態番号及び優勢シンボル、ない
しは、メモリからの出力をそれぞれ選択して用いる。こ
れにより、次のシンボルに対する状態番号及び優勢シン
ボルの検索(メモリでの検索)と、当該シンボルに対す
る数直線の領域計算処理とを並行して行うことができ
る。その結果、符号化及び復号化速度の向上が図れる。
The state number and the dominant symbol used in the encoding process depend on whether the context for the encoding target symbol and the context for the immediately preceding symbol match, and determine the state after the rewriting process for the immediately preceding encoding target symbol. The number and the dominant symbol or the output from the memory are selected and used. As a result, the search of the state number and the dominant symbol for the next symbol (search in the memory) and the area calculation processing of the number line for the symbol can be performed in parallel. As a result, the encoding and decoding speed can be improved.

【0030】[0030]

【発明が解決しようとする課題】しかしながら、上述し
た種々のタイプの従来の技術では、符号化や復号化等の
変換処理の速度向上には限界があった。すなわち、例え
ば、適応型の算術符号化処理においては、符号化対象シ
ンボルに対する数直線の領域計算は、領域幅テーブル検
索(確率推定テーブルへのアクセス)、(逆)予測変換
処理、領域計算、区間レジスタ更新、座標計算、符号レ
ジスタ更新等の処理を含んでいるため、一般に、次の符
号化対象シンボルに対する状態番号及び優勢シンボルの
検索に要する時間よりかなり長くなる。このため、シス
テムクロックの周期がこのような符号化対象シンボルに
対する数直線の領域計算によって律則されてしまう。そ
の結果、符号化処理全体の速度の向上を図ることが困難
となる。
However, in the various types of conventional techniques described above, there is a limit in improving the speed of conversion processing such as encoding and decoding. That is, for example, in the adaptive arithmetic coding process, the area calculation of the number line for the symbol to be coded is performed by searching the area width table (accessing the probability estimation table), (reverse) predictive conversion processing, area calculation, and section calculation. Since the processing includes register update, coordinate calculation, code register update, and the like, the time required for searching for the state number and the dominant symbol for the next symbol to be encoded is generally much longer. For this reason, the cycle of the system clock is governed by the area calculation of the number line for the symbol to be encoded. As a result, it is difficult to improve the speed of the entire encoding process.

【0031】本発明は、以上のような状況に鑑みてなさ
れたものであり、画像データの符号化処理速度の更なる
向上を可能とした符号化装置を提供することを第1の目
的とする。
The present invention has been made in view of the above situation, and a first object of the present invention is to provide an encoding apparatus capable of further improving the encoding processing speed of image data. .

【0032】また、画像データの復号化処理速度の更な
る向上を可能とした復号化装置を提供することを第2の
目的とする。
It is a second object of the present invention to provide a decoding apparatus capable of further improving the decoding processing speed of image data.

【0033】更に、画像データの符号化及び復号化処理
速度の更なる向上を可能とした符号化・復号化装置を提
供することを第3の目的とする。
It is a third object of the present invention to provide an encoding / decoding device capable of further improving the encoding and decoding processing speed of image data.

【0034】[0034]

【課題を解決するための手段及び作用】上記課題を解決
する本発明の第1の態様は、順次入力される画像データ
を符号化する装置であり、同一の画像データに対する符
号化パラメータを必要に応じて変更する適応型の符号化
装置において、各入力画像データに対し、変更されない
場合の符号化パラメータと、変更される場合の符号化パ
ラメータとを記憶した符号化情報テーブル(224)を
備える。また、n−1番目に入力された画像データの符
号化処理の間に、n番目の画像データに対して推定され
る少なくとも2つの符号化パラメータを符号化情報テー
ブルから読み出し、読み出された符号化パラメータのう
ちから適切なものを選択する選択手段(244,23
6)を備える。更に、n−1番目の画像データの符号化
処理が終了した時点で、選択手段によって選択された符
号化パラメータを用いてn番目の画像データの符号化処
理を行う符号化処理手段(220,246)を備えてい
る。
A first aspect of the present invention for solving the above-mentioned problems is an apparatus for encoding sequentially inputted image data, which requires encoding parameters for the same image data. An adaptive coding apparatus that changes in accordance with the coding information table includes a coding information table (224) storing, for each input image data, a coding parameter when not changed and a coding parameter when changed. Also, during the encoding process of the (n-1) th input image data, at least two encoding parameters estimated for the nth image data are read from the encoding information table, and the read code is read. Selecting means (244, 23) for selecting an appropriate parameter from the optimization parameters
6). Further, when the encoding processing of the (n-1) th image data is completed, the encoding processing means (220, 246) which performs the encoding processing of the nth image data using the encoding parameter selected by the selection means. ).

【0035】上記のような本発明の第1の態様において
は、n番目の画像データに対して推定される少なくとも
2つの符号化パラメータ(非変更時の符号化パラメータ
と変更後の符号化パラメータ)を符号化情報テーブル
(224)から読み出す。そして、複数の符号化パラメ
ータのうち適切な符号化パラメータを選択し、選択され
た符号化パラメータを用いて符号化処理を行う。これに
より、直前(n−1番目)のデータと当該n番目のデー
タとが同一で、(n−1番目)の画像データに対する符
号化処理によって符号化パラメータの変更があったとし
ても、n番目の画像データに対して推定される少なくと
も2つの符号化パラメータを符号化情報テーブル(22
4)から読み出し、(n−1番目)の画像データに対す
る符号化処理結果に基づいて適切なものを選択すること
ができる。その結果、直前(n−1番目)の入力データ
の符号化処理と、当該n番目の入力データの符号化パラ
メータを符号化情報テーブル(224)から読み出す動
作を並行して行うことができ、画像データ符号化処理全
体のシステムクロックの周期を短くすることができ、符
号化処理の高速化が図れる。
In the first aspect of the present invention as described above, at least two coding parameters estimated for the n-th image data (the coding parameter at the time of no change and the coding parameter after the change) From the encoding information table (224). Then, an appropriate encoding parameter is selected from the plurality of encoding parameters, and an encoding process is performed using the selected encoding parameter. As a result, even if the immediately preceding (n−1) th data is the same as the nth data and the encoding parameter is changed by the encoding process for the (n−1) th image data, the nth data is changed. At least two encoding parameters estimated for the image data of the encoding information table (22).
4), and an appropriate one can be selected based on the encoding processing result for the (n-1) th image data. As a result, the encoding process of the immediately preceding (n-1) th input data and the operation of reading the encoding parameter of the nth input data from the encoding information table (224) can be performed in parallel. The cycle of the system clock of the entire data encoding process can be shortened, and the encoding process can be speeded up.

【0036】上記のような発明において、更に、選択手
段(244)によって選択された符号化パラメータを保
持する符号化パラメータ保持手段(236)をさらに備
えることができる。その場合には、符号化処理手段(2
20,246)は、n−1番目の画像データの符号化処
理が終了した時点で、符号化パラメータ保持手段(23
6)に保持されている符号化パラメータを用いてn番目
の画像データの符号化処理を行う。この場合、n−1番
目の画像データの符号化処理が終了した時点で、符号化
パラメータ保持手段(236)にn番目の画像データの
符号化パラメータを保持しておくことができる。
In the invention as described above, it is possible to further include a coding parameter holding means (236) for holding the coding parameter selected by the selection means (244). In that case, the encoding processing means (2
20, 246), when the encoding process of the (n-1) th image data is completed, the encoding parameter holding unit (23).
The encoding process of the n-th image data is performed using the encoding parameter stored in 6). In this case, when the encoding process of the (n-1) th image data is completed, the encoding parameter of the nth image data can be held in the encoding parameter holding means (236).

【0037】また、符号化情報テーブル(224)に記
憶された符号化パラメータに対応し、画像データの状態
を示す状態データ(ST)を記憶する記憶手段(20
4,216)を更に備えることができる。この場合、符
号化情報テーブル(224)は、符号化パラメータ(L
SZ)に加えて、対応する状態データ(ST)の更新後
の値を示す状態遷移先情報(NMPS,NLPS)を記
憶する。更に、該状態遷移先(NMPS,NLPS)の
更新後の値を示す状態遷移先情報(L_NMPS,L_
NLPS,M_NMPS,M_NLPS)を記憶する。
また、符号化パラメータ保持手段(236)は、n番目
の画像データに対して推定される符号化パラメータとし
て、少なくとも符号化情報テーブル(224)に記憶さ
れた状態遷移先情報を保持する。このような構成によ
り、直前(n−1番目)の入力データの変換処理の間
に、当該n番目の入力データに対して推定される全ての
変換パラメータを予め情報テーブル(224)から読み
出し、保持することが可能となる。
A storage means (20) for storing state data (ST) indicating the state of the image data corresponding to the coding parameters stored in the coding information table (224).
4,216) can be further provided. In this case, the encoding information table (224) stores the encoding parameter (L
In addition to SZ), state transition destination information (NMPS, NLPS) indicating the updated value of the corresponding state data (ST) is stored. Further, state transition destination information (L_NMPS, L_NMS) indicating the updated value of the state transition destination (NMPS, NLPS)
NLPS, M_NMPS, M_NLPS).
The encoding parameter holding unit (236) holds at least state transition destination information stored in the encoding information table (224) as an encoding parameter estimated for the n-th image data. With such a configuration, during the conversion processing of the immediately preceding (n−1) th input data, all the conversion parameters estimated for the nth input data are read from the information table (224) in advance and held. It is possible to do.

【0038】上記課題を解決する本発明の第2の態様
は、上記第1の態様に係る符号化装置によって符号化さ
れた符号データを元の画像データに復号化する復号化装
置において、各符号データに対し、変更されない場合の
復号化パラメータと、変更される場合の復号化パラメー
タとを記憶した復号化情報テーブル(324)を備えて
いる。また、n−1番目に入力された符号データの復号
化処理の間に、n番目に入力された符号データに対して
推定される少なくとも2つの復号化パラメータを復号化
情報テーブル(324)から読み出し、読み出された復
号化パラメータのうちから適切なものを選択する選択手
段(344,336)を備えている。更に、n−1番目
の符号データの復号化処理が終了した時点で、選択手段
(344,336)によって選択された復号化パラメー
タを用いてn番目の符号データの復号化処理を行う復号
化処理手段(320,346)を備えている。
A second aspect of the present invention for solving the above-mentioned problems is a decoding apparatus for decoding code data encoded by the encoding apparatus according to the first aspect into original image data. The data includes a decoding information table (324) that stores a decoding parameter when the data is not changed and a decoding parameter when the data is changed. In addition, during decoding of the (n-1) th input code data, at least two decoding parameters estimated for the nth input code data are read from the decoding information table (324). Selecting means (344, 336) for selecting an appropriate one from the read decoding parameters. Further, when the decoding process of the (n-1) th code data is completed, the decoding process of decoding the nth code data by using the decoding parameter selected by the selection means (344, 336). Means (320, 346).

【0039】上記のような本発明の第2の態様において
も、上記第1の態様と同様に、直前(n−1番目)の入
力データの復号化処理と、当該n番目の入力データの復
号化パラメータを情報テーブル(324)から読み出す
動作を並行して行っているため、復号化処理全体のシス
テムクロックの周期を短くすることができ、復号化処理
の高速化が図れる。
In the second aspect of the present invention as described above, similarly to the first aspect, the decoding processing of the immediately preceding (n-1) th input data and the decoding of the nth input data are performed. Since the operation of reading the decryption parameter from the information table (324) is performed in parallel, the period of the system clock of the entire decoding process can be shortened, and the decoding process can be sped up.

【0040】本発明の第3の態様は、上記第1の態様に
係る符号化装置と第2の態様に係る復号化装置を合わせ
た符号化・復号化装置である。
A third aspect of the present invention is an encoding / decoding apparatus in which the encoding apparatus according to the first aspect and the decoding apparatus according to the second aspect are combined.

【0041】本発明の更に具体的な第4の態様は、情報
源のシンボル系列の予め定められた位置の複数の参照シ
ンボルを用い、符号化対象シンボルに対するコンテクス
ト(CX)を生成する手段(210)と、コンテクスト
(CX)の状態を示す状態番号(ST)と、符号化対象
シンボルの予測値(MPS)とを記憶する記憶手段(2
04,216)と、順次入力される複数の符号化対象シ
ンボルに対応する複数のコンテクスト(CX)を一時的
に保持するコンテクスト保持手段(203,212)と
を備えている。また、コンテクスト保持手段(203,
212)に保持されている複数のコンテクスト(CX)
を比較する第1の比較手段(214)と、記憶手段(2
04,216)から読み出された符号化対象シンボルの
予測値(MPS)と実際の符号化対象シンボルの値とを
比較する第2の比較手段(222)とを備えている。ま
た、記憶手段(204,216)に記憶されている状態
番号(ST)に対応した確率領域幅(LSZ)と、当該
状態番号(ST)の更新後の値を示す状態遷移先情報
(NMPS,NLPS)と、該状態遷移先(NMPS,
NLPS)の値に対応する確率領域幅(L_LSZ,M
_LSZ)と、該状態遷移先(NMPS,NLPS)の
更新後の値を示す状態遷移先情報(L_NMPS,L_
NLPS,M_NMPS,M_NLPS)とを記憶する
情報テーブル(224)から読み出された確率領域幅及
び第2の比較手段(222)による比較の結果に基づい
て符号化対象シンボルの符号化を行うと共に、情報テー
ブル(224)から読み出された状態遷移先情報に基づ
いて符号化対象シンボルに対するコンテクスト(CX)
の状態番号(ST)及び予測値(MPS)の更新とを行
う算術符号化手段(220)を備える。更に、記憶手段
(204,216)から読み出された状態番号(ST)
及び予測値(MPS)を保持する第1のレジスタ(22
8)と、記憶部(204,216)に書き込まれる状態
番号(ST)及び予測値(MPS)を保持する第2のレ
ジスタ(230)と、第2のレジスタ(230)の出力
を保持する第3のレジスタ(232)と、n−1番目に
入力された画像データに対するコンテクストの状態番号
(ST1)を保持する第4のレジスタ(234)とを備
える。また、第1の比較手段(214)の比較結果に基
づいて、第1,第2、第3又は第4のレジスタ(22
8,230,232,234)の出力を選択する第1の
選択器(238)と、n−1番目に入力された画像デー
タに対応するコンテクストの確率領域幅(LSZ1)と
状態遷移先情報(NMPS1,NLPS1)を保持する
第5のレジスタ(236)とを備えている。
In a fourth more specific aspect of the present invention, means (210) for generating a context (CX) for a symbol to be encoded using a plurality of reference symbols at predetermined positions of a symbol sequence of an information source. ), A state number (ST) indicating a state of the context (CX), and a predicted value (MPS) of the encoding target symbol (2).
04, 216), and context holding means (203, 212) for temporarily holding a plurality of contexts (CX) corresponding to a plurality of symbols to be sequentially encoded. Also, the context holding means (203, 203)
212) Multiple contexts (CX) held in
First comparing means (214) for comparing
04, 216) and a second comparing means (222) for comparing the predicted value (MPS) of the encoding target symbol read from the encoding target symbol with the actual encoding target symbol value. Further, the probability region width (LSZ) corresponding to the state number (ST) stored in the storage means (204, 216), and the state transition destination information (NMPS, NLPS) and the state transition destination (NMPS,
NLPS) value (L_LSZ, M)
_LSZ) and state transition destination information (L_NMPS, L_) indicating the updated value of the state transition destination (NMPS, NLPS).
NLPS, M_NMPS, and M_NLPS) and encodes the encoding target symbol based on the probability region width read from the information table (224) and the result of the comparison by the second comparing means (222). Context (CX) for encoding target symbol based on state transition destination information read from information table (224)
Arithmetic coding means (220) for updating the state number (ST) and the predicted value (MPS) of the data. Further, the state number (ST) read from the storage means (204, 216)
And a first register (22) holding the predicted value (MPS).
8), a second register (230) for holding a state number (ST) and a predicted value (MPS) written to the storage units (204, 216), and a second register (230) for holding an output of the second register (230). 3 (232) and a fourth register (234) for holding the context state number (ST1) for the (n-1) th input image data. Also, based on the comparison result of the first comparing means (214), the first, second, third or fourth register (22
8, 230, 232, 234), a probability region width (LSZ1) of the context corresponding to the (n-1) th input image data, and state transition destination information ( NMPS1, NLPS1) and a fifth register (236).

【0042】[0042]

【発明の実施の形態】以下、本発明の実施の形態を実施
例を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below with reference to embodiments.

【0043】[0043]

【実施例】本発明の第1実施例は、2値画像を適応型算
術符号化方式によって符号化する符号化装置に本発明の
技術的思想を適用したものであり、その構成を図1に示
す。本実施例の符号化装置は、入力シンボルデータを2
値シンボル列として入力するシンボル系列読み取り部2
06と、シンボル系列読み取り部206の出力に接続さ
れたシンボル系列記憶部208と、シンボル系列記憶部
208の出力に接続された画像参照シンボル選択部21
0と、画像参照シンボル選択部210の出力に接続され
たコンテクストバッファ203と、コンテクストバッフ
ァ203の出力に接続された検出器214と、アドレス
端子ADがコンテクストバッファ203の出力に接続さ
れたシングルポートメモリ204(状態番号/優勢シン
ボル記憶部)と、検出器214の出力とシングルポート
メモリ204とに接続されたリード/ライト制御部20
5と、検出器214の出力に接続されると共に、シング
ルポートメモリ204の読み出しデータ端子RDT及び
書き込みデータ端子WDTに接続された算術符号化部2
20と、シンボル系列記憶部208の出力と算術符号化
部220に接続された予測変換処理部222と、算術符
号化部220に接続された確率推定テーブル224とを
備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention is one in which the technical idea of the present invention is applied to a coding apparatus for coding a binary image by an adaptive arithmetic coding system. Show. The encoding apparatus according to the present embodiment converts the input symbol data to 2
Symbol sequence reading unit 2 for inputting as a value symbol sequence
06, a symbol sequence storage unit 208 connected to the output of the symbol sequence reading unit 206, and the image reference symbol selection unit 21 connected to the output of the symbol sequence storage unit 208.
0, a context buffer 203 connected to the output of the image reference symbol selection unit 210, a detector 214 connected to the output of the context buffer 203, and a single-port memory in which the address terminal AD is connected to the output of the context buffer 203. 204 (state number / dominant symbol storage unit), read / write control unit 20 connected to output of detector 214 and single port memory 204
5 and the arithmetic coding unit 2 connected to the output of the detector 214 and connected to the read data terminal RDT and the write data terminal WDT of the single port memory 204.
20, a predictive conversion processing unit 222 connected to the output of the symbol sequence storage unit 208 and the arithmetic coding unit 220, and a probability estimation table 224 connected to the arithmetic coding unit 220.

【0044】上記のような構成の符号化装置において、
シンボル系列記憶部208は、2値シンボル列読み取り
部206にて読み取った2値シンボル列を記憶する。画
像参照シンボル選択部210は、シンボル系列記憶部2
08に記憶されている2値シンボル列より符号化対象シ
ンボルに対して予め定めてある位置の複数の参照シンボ
ルを選択してコンテクスト(CX)を生成する。
In the coding apparatus having the above configuration,
The symbol sequence storage unit 208 stores the binary symbol sequence read by the binary symbol sequence reading unit 206. The image reference symbol selection unit 210 includes a symbol series storage unit 2
A plurality of reference symbols at predetermined positions with respect to the encoding target symbol are selected from the binary symbol string stored in 08 to generate a context (CX).

【0045】コンテクストバッファ203は、画像参照
シンボル選択部210から順次出力されるコンテクスト
データを保持し、連続する4つのコンテクストデータを
バッファリングする。図2に示すように、コンテクスト
バッファ203は、4段のレジスタ203a,203
b,203c,203dによって構成されている。1段
目のレジスタ203aには、最新のコンテクストCXが
保持され、出力CX1を2段目のレジスタ203bにシ
フトする。レジスタ203b,203c,203dは、
それぞれ最新のコンテクストCXの1つ前、2つ前、3
つ前のコンテクストCX2,CX3,CX4を保持す
る。レジスタ203aと203dの出力であるコンテク
ストCX1とCX4は、セレクタ226に供給され、リ
ード/ライト制御部205からの信号WEBによって、
何れか一方がアドレス信号ADとして選択されるように
なっている。
The context buffer 203 holds the context data sequentially output from the image reference symbol selection section 210 and buffers four consecutive context data. As shown in FIG. 2, the context buffer 203 includes four registers 203a and 203
b, 203c and 203d. The latest context CX is held in the first-stage register 203a, and the output CX1 is shifted to the second-stage register 203b. The registers 203b, 203c, 203d are
One before the latest context CX, two before, 3
The previous contexts CX2, CX3, CX4 are held. The contexts CX1 and CX4, which are the outputs of the registers 203a and 203d, are supplied to the selector 226,
Either one is selected as the address signal AD.

【0046】検出器214は、画像参照シンボル選択部
210から順次出力されるコンテクストデータ(C
X)、及びコンテクストバッファ203に保持されてい
るコンテクストデータ(CX1、CX2、CX3、CX
4)がそれぞれ同一値であるか否かを判定する。ここ
で、検出器214によるコンテクストCX1とCX2の
判定結果を出力EQ12とし、コンテクストCX1とC
X3の判定結果を出力EQ13とし、コンテクストCX
1とCX4の判定結果を出力EQ14とし、コンテクス
トCX2とCX3の判定結果を出力EQ23とし、コン
テクストCX2とCX4の判定結果を出力EQ24と
し、EQ14を記憶するレジスタ(図示せず)の出力を
出力d1_EQ14とする。各判定結果EQ12,EQ
13,EQ14,EQ23,EQ24は、同一値であれ
ば1を、同一値でなければ0を示す。
The detector 214 outputs the context data (C
X) and the context data (CX1, CX2, CX3, CX) held in the context buffer 203.
It is determined whether or not 4) has the same value. Here, the determination result of the contexts CX1 and CX2 by the detector 214 is used as an output EQ12, and the contexts CX1 and CX2 are output.
The judgment result of X3 is set as output EQ13, and the context CX
1 and CX4 are determined as output EQ14, the determination results of contexts CX2 and CX3 are defined as output EQ23, the determination results of contexts CX2 and CX4 are defined as output EQ24, and the output of a register (not shown) storing EQ14 is defined as output d1_EQ14. And Each judgment result EQ12, EQ
13, EQ14, EQ23, and EQ24 indicate 1 if they are the same value, and 0 if they are not the same value.

【0047】シングルポートメモリ204(状態番号/
優勢シンボル記憶部)は、全ての組み合わせのコンテク
ストの状態番号(ST)とMPS(優勢シンボル)値を
記憶する。そして、コンテクストバッファ203で保持
されているコンテクストデータの中の最新のコンテクス
トCX1(図2参照)と、最も過去に入力されたコンテ
クストCX4(図2参照)の何れか一方をシングルポー
トメモリ204のアドレスとする。
The single port memory 204 (state number /
The dominant symbol storage unit stores the state number (ST) and the MPS (dominant symbol) value of the context of all combinations. Then, one of the latest context CX1 (see FIG. 2) in the context data held in the context buffer 203 and the context CX4 (see FIG. 2) input most recently is stored in the address of the single port memory 204. And

【0048】リード/ライト制御部205は、検出器2
14の判定結果(EQ12等)に基づき、シングルポー
トメモリ204の読み出し及び書き込みの制御を行う。
シングルポートメモリ204からのデータの読み出しに
際し、読み出しアドレスCX1が、コンテクストバッフ
ァ203に保持されている他のコンテクストデータCX
2,CX3,CX4の何れとも等しくない時、すなわ
ち、EQ12=EQ13=EQ14=0の場合には、コ
ンテクストデータCX1を選択するシングルポートメモ
リ204の読み出しアドレスとして選択する。一方、読
み出しアドレスCX1が、他のコンテクストデータCX
2,CX3,CX4の何れか1つとでも等しい場合に
は、シングルポートメモリ204の読み出しを行わな
い。また、シングルポートメモリ204へのデータの書
き込みに際し、書き込みアドレスCX4が、コンテクス
トバッファ203に保持されている他のコンテクストデ
ータCX1,CX2,CX3の何れとも等しくない時、
すなわち、EQ14=EQ24=EQ34=0の場合に
は、コンテクストデータCX4をシングルポートメモリ
204のアドレスとして選択する。一方、書き込みアド
レスCX4が、他のコンテクストデータCX1,CX
2,CX3の何れか1つとでも等しい場合には、シング
ルポートメモリ204の書き込みを行わない。
The read / write control unit 205 includes the detector 2
Based on the determination result (EQ12 and the like) at 14, reading and writing of the single port memory 204 are controlled.
When reading data from the single port memory 204, the read address CX1 is stored in another context data CX held in the context buffer 203.
When it is not equal to any of CX2, CX3, and CX4, that is, when EQ12 = EQ13 = EQ14 = 0, the context data CX1 is selected as the read address of the single port memory 204 for selecting. On the other hand, the read address CX1 is different from the other context data CX.
If the value is equal to any one of CX2, CX3, and CX4, the single port memory 204 is not read. Also, when writing data to the single-port memory 204, when the write address CX4 is not equal to any of the other context data CX1, CX2, CX3 held in the context buffer 203,
That is, when EQ14 = EQ24 = EQ34 = 0, the context data CX4 is selected as the address of the single port memory 204. On the other hand, the write address CX4 is different from the other context data CX1, CX1.
2 and CX3, the writing to the single port memory 204 is not performed.

【0049】予測変換処理部222は、符号化対象シン
ボルがそのコンテクスト内の出現確率が高いと予想され
るシンボル(優勢シンボル:MPS)と一致するか否か
を示すデータ(予測誤差:一致すれば0、不一致ならば
1)を出力する。
The predictive conversion processing unit 222 outputs data indicating whether or not the encoding target symbol matches a symbol (dominant symbol: MPS) whose appearance probability is expected to be high in the context (prediction error: if it matches, 0, and 1) is output if they do not match.

【0050】確率推定テーブル224は、コンテクスト
CXの状態を示す状態番号(ST)に対応して予め定め
られたLPS(劣勢シンボル)の確率領域の大きさ(L
SZ)と、状態遷移情報(NMPS,NLPS,Switc
h)とを記憶している。ここで、LPSはコンテクスト
内の出現確率が低いと予想される劣勢シンボルを示し、
NMPSは符号化対象シンボルが優勢シンボルMPSで
あった場合に次に適用される状態番号を示し、NLPS
は符号化対象シンボルが劣勢シンボルLPSであった場
合に次に適用される状態番号を示し、Switch は優勢シ
ンボルMPSと劣勢シンボルLPSの交換指令を示すも
のとする。さらに、確率推定テーブル224は、NLP
Sの値に対応したLPSの確率領域の大きさ(L_LS
Z)と状態遷移情報(L_NMPS,L_NLPS,L
_Switch)、及びNMPSの値に対応したLPSの確率
領域の大きさ(M_LSZ)と状態遷移情報(M_NM
PS,M_NLPS,M_Switch)を記憶している。例
えば、ST=1の時、NLPS=14なので、L_LS
Z,L_NMPS,L_NLPS,L_Switch は、そ
れぞれ、ST=14に対応したLSZ値0x5A7F、
NLPS値15、NMPS値15、Switch値1となる。
また、 ST=1の時、NMPS=2なので、M_LS
Z,M_NMPS,M_NLPS,M_Switch は、そ
れぞれ、ST=2に対応したLSZ値0x1114、N
LPS値16、NMPS値3、Switch値0となる。確率
推定テーブル224の詳細内容を図3〜図5に示す。算
術符号株220は、符号化対象シンボルの符号出力と、
各コンテクストに対する状態番号STとMPS値の更新
演算とを行うものである。
The probability estimation table 224 stores the size (L) of a predetermined LPS (inferior symbol) probability region corresponding to the state number (ST) indicating the state of the context CX.
SZ) and state transition information (NMPS, NLPS, Switc)
h) is remembered. Here, LPS indicates an inferior symbol expected to have a low probability of occurrence in the context,
NMPS indicates a state number to be applied next when the encoding target symbol is the dominant symbol MPS, and NLPS
Indicates a state number to be applied next when the encoding target symbol is the inferior symbol LPS, and Switch indicates an exchange command of the superior symbol MPS and the inferior symbol LPS. Further, the probability estimation table 224 includes NLP
The size of the LPS probability region corresponding to the value of S (L_LS
Z) and state transition information (L_NMPS, L_NLPS, L
_Switch), the size (M_LSZ) of the probability region of the LPS corresponding to the value of NMPS, and the state transition information (M_NM)
PS, M_NLPS, and M_Switch). For example, when ST = 1, NLPS = 14, so L_LS
Z, L_NMPS, L_NLPS, L_Switch are respectively LSZ values 0x5A7F corresponding to ST = 14,
The NLPS value is 15, the NMPS value is 15, and the switch value is 1.
Also, when ST = 1, NMPS = 2, so M_LS
Z, M_NMPS, M_NLPS, and M_Switch are LSZ values 0x1114 and N respectively corresponding to ST = 2.
The LPS value is 16, the NMPS value is 3, and the switch value is 0. Details of the probability estimation table 224 are shown in FIGS. The arithmetic code stock 220 outputs a code output of a symbol to be coded,
The update of the state number ST and the MPS value for each context is performed.

【0051】図6は、上記のように構成された本発明の
第1実施例において、連続するコンテクスト#1と#2
が等しい場合の動作例を示す。図において、コンテクス
ト#1は、サイクル1でシングルポートメモリ(状態番
号/予測値記憶部)204の読み出しアドレスとなる。
サイクル2では、シングルポートメモリ204から読み
出された状態番号ST1が確率推定テーブル224の読
み出しアドレスとなり、状態番号ST1に対応したデー
タを読み出す。サイクル3では、確率推定テーブル22
4から読み出されたデータのうちLSZ(ST1),N
LPS(ST1),NMPS(ST1),Switch(ST
1),を選択し、LSZ(ST1)を用いて符号化対象
シンボルの符号化処理を行うと共に、状態番号ST1の
遷移先NST1を求める。サイクル4では、コンテクス
ト#1に対する状態遷移先NST1をレジスタに保持す
る。
FIG. 6 is a block diagram showing the first embodiment of the present invention constructed as described above.
An operation example in the case where are equal is shown. In the figure, context # 1 is the read address of the single port memory (state number / predicted value storage unit) 204 in cycle 1.
In cycle 2, the state number ST1 read from the single port memory 204 becomes a read address of the probability estimation table 224, and data corresponding to the state number ST1 is read. In cycle 3, the probability estimation table 22
LSZ (ST1), N of the data read from
LPS (ST1), NMPS (ST1), Switch (ST
1), the encoding process of the encoding target symbol is performed using the LSZ (ST1), and the transition destination NST1 of the state number ST1 is obtained. In cycle 4, the state transition destination NST1 for context # 1 is held in the register.

【0052】一方、コンテクスト#1の次に入力された
コンテクスト#2は、サイクル2でシングルポートメモ
リ(状態番号/予測値記憶部)204の読み出しアドレ
スとなる。(読み出しアドレスとなるだけで、読み出し
動作は行わない。)サイクル3では、コンテクスト#2
の状態番号(直前のコンテクスト#1の状態遷移先)は
算出中なため、コンテクスト#1の状態遷移先がNLP
S(ST1),NMPS(ST1),ST1のいずれに
決まっても対応できるように、コンテクスト#1の状態
番号ST1を確率推定テーブル224の読み出しアドレ
スとして与えデータを読み出す。サイクル4では、コン
テクスト#1に対する状態遷移先NST1が確定してい
るので、サイクル3で確率推定テーブル224から読み
出したデータのうちNST1に対応したデータを選択し
て符号化対象シンボルの符号化処理を行うと共に、コン
テクスト#2の状態遷移先NST2を求める。サイクル
5で、コンテクスト#2に対する状態遷移先NST2を
レジスタに保持する。
On the other hand, the context # 2 input next to the context # 1 becomes the read address of the single port memory (state number / predicted value storage unit) 204 in cycle 2. (Only the read address is set, no read operation is performed.) In cycle 3, context # 2
Is being calculated, and the state transition destination of context # 1 is NLP.
The state number ST1 of the context # 1 is provided as a read address of the probability estimation table 224 to read out data so that any one of S (ST1), NMPS (ST1), and ST1 can be handled. In cycle 4, since the state transition destination NST1 for context # 1 is determined, the data corresponding to NST1 is selected from the data read from the probability estimation table 224 in cycle 3, and the encoding process of the encoding target symbol is performed. At the same time, the state transition destination NST2 of the context # 2 is obtained. In cycle 5, the state transition destination NST2 for context # 2 is held in the register.

【0053】図7は、上記第1実施例のリード/ライト
動作について、より詳細な動作例を示す。この例におい
ては、連続して生成されるコンテクスト#1,#2,#
3,#4,#5,#6,#7,#8,#9,#10につ
いての処理(符号化)動作を示し、#3≠#4,#3≠
#5,#3≠#6,#4≠#6,#5≠#6,#5≠#
7,#5≠#8,#6=#8とする。まず、コンテクス
ト#1について見てみると、コンテクスト#1はサイク
ル1でシングルポートメモリ(状態番号/予測値記憶
部)204の読み出しアドレスとなる。サイクル2で
は、シングルポートメモリ204から読み出された状態
番号ST1に対応したデータを確率推定テーブル224
から読み出す。サイクル3では、確率推定テーブル22
4から読み出されたデータに基づいて、コンテクスト#
1に対応する符号化対象シンボルの符号化を行うと共
に、コンテクスト#1の状態番号ST1の更新値を求め
る。サイクル4では、サイクル3で求められた状態番号
ST1の更新値をシングルポートメモリ204の書き込
みアドレスとする。コンテクスト#2についても、コン
テクスト#1と同様に処理される。
FIG. 7 shows a more detailed example of the read / write operation of the first embodiment. In this example, contexts # 1, # 2, #
3, # 4, # 5, # 6, # 7, # 8, # 9, # 10 show processing (encoding) operations, and # 3 {# 4, # 3}
# 5, # 3, # 6, # 4, # 6, # 5, # 6, # 5, #
7, # 5 ≠ # 8, # 6 = # 8. First, looking at the context # 1, the context # 1 becomes the read address of the single port memory (state number / predicted value storage unit) 204 in cycle 1. In cycle 2, data corresponding to state number ST1 read from single port memory 204 is stored in probability estimation table 224.
Read from In cycle 3, the probability estimation table 22
4 based on the data read from the context #
In addition to the encoding of the encoding target symbol corresponding to No. 1, the updated value of the state number ST1 of the context # 1 is obtained. In cycle 4, the updated value of state number ST1 obtained in cycle 3 is used as the write address of single port memory 204. Context # 2 is also processed in the same manner as context # 1.

【0054】コンテクスト#3は、サイクル3でシング
ルポートメモリ(状態番号/予測値記憶部)204の読
み出しアドレスになった後、対応する状態番号ST3の
更新値がサイクル6においてシングルポートメモリ20
4の書き込みデータとなる。ここで、コンテクスト#3
の後に生成されたコンテクスト#4,#5,#6が何れ
もコンテクスト#3とは等しくないため、コンテクスト
#3がシングルポートメモリ204のアドレス(書き込
みアドレス)として選択され、当該コンテクスト#3に
対応する状態番号ST3の更新値がシングルポートメモ
リ204に書き込まれる。
After the context # 3 becomes the read address of the single port memory (state number / predicted value storage) 204 in cycle 3, the updated value of the corresponding state number ST3 is changed to the single port memory 20 in cycle 6.
4 write data. Where context # 3
Are not equal to the context # 3, the context # 3 is selected as the address (write address) of the single-port memory 204 and corresponds to the context # 3. The updated value of the state number ST3 is written in the single port memory 204.

【0055】コンテクスト#5は、後に生成されたコン
テクスト#6,#7,#8の何れとも等しくないため、
サイクル9でコンテクスト#5がシングルポートメモリ
204のアドレス(書き込みアドレス)として選択さ
れ、当該コンテクスト#5に対応する状態番号ST5の
更新値がシングルポートメモリ204に書き込まれる。
ここで、コンテクスト#6と#8が等しいため、サイク
ル9ではコンテクスト#8の読み出しを行う必要がな
い。
Since the context # 5 is not equal to any of the contexts # 6, # 7 and # 8 generated later,
In cycle 9, context # 5 is selected as the address (write address) of single port memory 204, and the updated value of state number ST5 corresponding to context # 5 is written to single port memory 204.
Here, since contexts # 6 and # 8 are equal, it is not necessary to read context # 8 in cycle 9.

【0056】コンテクスト#6は、本来サイクル6でシ
ングルポートメモリ(状態番号/予測値記憶部)204
の読み出しアドレスとなるが、サイクル6ではコンテク
スト#3に対応する状態番号ST3の更新値が書き込み
アドレスとなっているため、1サイクル分スライドして
サイクル7でシングルポートメモリ204の読み出しア
ドレスとなる。
Context # 6 is originally a single port memory (state number / predicted value storage) 204 in cycle 6.
Since the updated value of the state number ST3 corresponding to the context # 3 is the write address in cycle 6, the read address is read from the single port memory 204 in cycle 7 after sliding by one cycle.

【0057】図8は、本発明の第2の実施例にかかる適
応型算術方式の符号化装置を示し、上記第1の実施例と
共通又は対応する構成部分については同一の符号を付
す。本実施例の符号化装置は、図1に示す第1の実施例
の符号化装置におけるシングルポートメモリ204に代
えてデュアルポートメモリ216を採用したものであ
り、多くの構成要素を共通とする。そこで、本実施例に
おいては、上記第1実施例との相違部分についてのみ詳
細に説明し、他の共通部分についての詳細な説明は省略
する。
FIG. 8 shows an adaptive arithmetic coding apparatus according to a second embodiment of the present invention, in which components identical or corresponding to those of the first embodiment are denoted by the same reference numerals. The encoding device according to the present embodiment employs a dual-port memory 216 instead of the single-port memory 204 in the encoding device according to the first embodiment shown in FIG. 1, and shares many components. Therefore, in this embodiment, only the differences from the first embodiment will be described in detail, and the detailed description of the other common parts will be omitted.

【0058】本実施例の符号化装置は、入力シンボルデ
ータを2値シンボル列として入力するシンボル系列読み
取り部206と、シンボル系列読み取り部206の出力
に接続されたシンボル系列記憶部208と、シンボル系
列記憶部208の出力に接続された画像参照シンボル選
択部210と、画像参照シンボル選択部210の出力に
接続されたコンテクストバッファ212と、コンテクス
トバッファ212の出力に接続された検出器214と、
読み出し用のアドレス端子RAD及び書き込み用のアド
レス端子WADがコンテクストバッファ212の出力に
接続されたデュアルポートメモリ216(状態番号/優
勢シンボル記憶部)と、検出器214の出力とデュアル
ポートメモリの制御端子R,Wとに接続されたリード/
ライト制御部218と、検出器214の出力に接続され
ると共に、デュアルポートメモリ216の読み出しデー
タ端子RDT及び書き込みデータ端子WDTに接続され
た算術符号化部220と、シンボル系列記憶部208の
出力と算術符号化部220に接続された予測変換処理部
222と、算術符号化部220に接続された確率推定テ
ーブル224とを備えている。確率推定テーブル224
の内容は、第1の実施例中で示した図3〜図5と同じで
ある。
The encoding apparatus according to the present embodiment includes a symbol sequence reading unit 206 for inputting input symbol data as a binary symbol sequence, a symbol sequence storage unit 208 connected to the output of the symbol sequence reading unit 206, An image reference symbol selection unit 210 connected to the output of the storage unit 208, a context buffer 212 connected to the output of the image reference symbol selection unit 210, a detector 214 connected to the output of the context buffer 212,
A dual port memory 216 (state number / dominant symbol storage unit) in which a read address terminal RAD and a write address terminal WAD are connected to the output of the context buffer 212, the output of the detector 214, and the control terminal of the dual port memory Leads connected to R and W /
The arithmetic control unit 220 connected to the output of the detector 214 and connected to the read data terminal RDT and the write data terminal WDT of the dual port memory 216, and the output of the symbol sequence storage unit 208 It includes a predictive conversion processing unit 222 connected to the arithmetic coding unit 220, and a probability estimation table 224 connected to the arithmetic coding unit 220. Probability estimation table 224
Are the same as those in FIGS. 3 to 5 shown in the first embodiment.

【0059】コンテクストバッファ212は、図9に示
すように、4段のレジスタ212a,212b,212
c,212dによって構成されている。1段目のレジス
タ212aには、最新のコンテクストCXが保持され、
出力CX1を2段目のレジスタ212bにシフトする。
レジスタ212b,212c,212dは、それぞれ最
新のコンテクストCXの1つ前、2つ前、3つ前のコン
テクストCX2,CX3,CX4を保持する。
As shown in FIG. 9, the context buffer 212 has four registers 212a, 212b, 212
c, 212d. The latest context CX is held in the first-stage register 212a,
The output CX1 is shifted to the second-stage register 212b.
The registers 212b, 212c, and 212d respectively hold the contexts CX2, CX3, and CX4 one before, two before, and three before the latest context CX.

【0060】デュアルポートメモリ216(状態番号/
優勢シンボル記憶部)は、全ての組み合わせのコンテク
ストの状態番号(ST)とMPS(優勢シンボル)値を
記憶する。そして、コンテクストバッファ212で保持
されているコンテクストデータの中の最新のコンテクス
トCX1(図9参照)を読み出しアドレスとし、最も過
去に入力されたコンテクストCX4(図9参照)を書き
込みアドレスとする。なお、読み出しアドレスRADに
対するデータの読み出しと、書き込みアドレスWADに
対するデータ書き込みが同時実行可能な構成となってい
る。デュアルポートメモリ216の記憶データは、図1
7に示す通りであり、STは後に詳述する確率推定テー
ブル224の読み出しアドレスとなる状態番号を示す。
The dual port memory 216 (state number /
The dominant symbol storage unit stores the state number (ST) and the MPS (dominant symbol) value of the context of all combinations. Then, the latest context CX1 (see FIG. 9) in the context data held in the context buffer 212 is set as a read address, and the context CX4 (see FIG. 9) input most recently is set as a write address. It is to be noted that the configuration is such that reading of data to the read address RAD and writing of data to the write address WAD can be executed simultaneously. The data stored in the dual port memory 216 is shown in FIG.
As shown in FIG. 7, ST indicates a state number serving as a read address of the probability estimation table 224 described in detail later.

【0061】リード/ライト制御部218は、検出器2
14の判定結果(EQ12等)に基づき、デュアルポー
トメモリ216の読み出し及び書き込みの制御を行う。
デュアルポートメモリ216からのデータの読み出しに
際し、読み出しアドレスRAD(=CX1)が、コンテ
クストバッファ212に保持されている他のコンテクス
トデータCX2,CX3,CX4の何れとも等しくない
時、すなわち、EQ12=EQ13=EQ14=0の場
合には、読み出し動作を行うためにデュアルポートメモ
リ216の読み出し信号Rをアクティブにする。一方、
読み出しアドレスRAD(=CX1)が、他のコンテク
ストデータCX2,CX3,CX4の何れか1つとでも
等しい場合には、デュアルポートメモリ216の読み出
し信号Rを非アクティブにする。また、デュアルポート
メモリ216へのデータの書き込みに際し、書き込みア
ドレスWAD(=CX4)が、コンテクストバッファ2
12に保持されている他のコンテクストデータCX1,
CX2,CX3の何れとも等しくない時、すなわち、E
Q14=EQ24=EQ34=0の場合には、書き込み
動作を行うためにデュアルポートメモリ216の書き込
み信号Wをアクティブにする。一方、書き込みアドレス
WAD(=CX4)が、他のコンテクストデータCX
1,CX2,CX3の何れか1つとでも等しい場合に
は、デュアルポートメモリ216の書き込み信号Wを非
アクティブにする。
The read / write control unit 218 detects the detector 2
Based on the determination result (EQ12 and the like) at 14, the reading and writing of the dual port memory 216 are controlled.
When reading data from the dual port memory 216, when the read address RAD (= CX1) is not equal to any of the other context data CX2, CX3, and CX4 held in the context buffer 212, that is, EQ12 = EQ13 = When EQ14 = 0, the read signal R of the dual port memory 216 is activated to perform the read operation. on the other hand,
When the read address RAD (= CX1) is equal to any one of the other context data CX2, CX3, CX4, the read signal R of the dual port memory 216 is made inactive. When writing data to the dual port memory 216, the write address WAD (= CX4) is stored in the context buffer 2
12 are stored in the other context data CX1,
When not equal to CX2 or CX3, that is, E
When Q14 = EQ24 = EQ34 = 0, the write signal W of the dual port memory 216 is activated to perform the write operation. On the other hand, the write address WAD (= CX4) is
If it is equal to any one of CX1, CX2 and CX3, the write signal W of the dual port memory 216 is deactivated.

【0062】算術符号化部220は、符号化対象シンボ
ルの符号出力と、各コンテクストに対する状態番号ST
とMPS値の更新演算とを行うものであり、図10にそ
の詳細を示す。本実施例の算術符号化部220は、5つ
のレジスタ228,230,232,234,236
と、4つの選択器(マルチプレクサ)238,240,
242,244と、符号出力及び状態番号更新演算部2
46と、書き込みデータ選択回路248と、排他的論理
和回路250とを備えている。
The arithmetic coding unit 220 outputs the code output of the symbol to be coded and the state number ST for each context.
And an update calculation of the MPS value. FIG. 10 shows the details. The arithmetic coding unit 220 according to the present embodiment includes five registers 228, 230, 232, 234, and 236.
And four selectors (multiplexers) 238, 240,
242, 244, code output and state number update operation unit 2
46, a write data selection circuit 248, and an exclusive OR circuit 250.

【0063】このような算術符号化部220において、
レジスタ228の入力端子にはデュアルポートメモリ2
16の読み出しデータ端子RDTが接続され、当該レジ
スタ228の出力端子には選択器238の入力端子が接
続されている。選択器238の他の入力端子には、レジ
スタ232の出力端子と、レジスタ230の出力端子
と、レジスタ234の出力端子とがそれぞれ接続されて
いる。また、選択器238の出力端子には、確率推定テ
ーブル224のアドレス端子と、選択器242の入力端
子とが接続されている。選択器242のもう一方の入力
端子には、選択器240の出力端子が接続され、当該選
択器242の出力端子にはレジスタ234の入力端子が
それぞれ接続されている。レジスタ234の出力端子に
は、選択器238の入力端子の他に、選択器240の入
力端子と、予測変換処理部222と、排他的論理和回路
250の一方の入力端子とが接続されている。
In such an arithmetic coding unit 220,
The input terminal of the register 228 has a dual port memory 2
Sixteen read data terminals RDT are connected, and the output terminal of the register 228 is connected to the input terminal of the selector 238. The other input terminals of the selector 238 are connected to the output terminal of the register 232, the output terminal of the register 230, and the output terminal of the register 234, respectively. An output terminal of the selector 238 is connected to an address terminal of the probability estimation table 224 and an input terminal of the selector 242. The other input terminal of the selector 242 is connected to the output terminal of the selector 240, and the output terminal of the selector 242 is connected to the input terminal of the register 234. To the output terminal of the register 234, in addition to the input terminal of the selector 238, the input terminal of the selector 240, the predictive conversion processing unit 222, and one input terminal of the exclusive OR circuit 250 are connected. .

【0064】ここで、選択器240の1つの入力端子に
は、レジスタ234の出力信号(MPS1,ST1)の
両方がそのまま入力されるが、他の1つの入力端子に
は、レジスタ234の出力(MPS1,ST1)の内の
優勢シンボルMPS1と、レジスタ236の出力信号
(NMPS1,NLPS1,LSZ1,Switch1)の内
のNMPS1との合成信号(MPS1,NMPS1)が
供給される。また、選択器240の残りの1つの入力端
子には、排他的論理和回路250の出力信号(MPS
1’)と、レジスタ236の出力信号(NMPS1,N
LPS1,LSZ1,Switch1)の内のNLPS1との
合成信号(MPS1’,NLPS1)が供給される。ま
た、選択器240の制御端子には、書き込みデータ選択
回路248の出力が接続されている。
Here, the output signal (MPS1, ST1) of the register 234 is directly input to one input terminal of the selector 240, while the output signal (MPS1, ST1) of the register 234 is input to the other input terminal. A composite signal (MPS1, NMPS1) of the dominant symbol MPS1 of the MPS1, ST1) and the NMPS1 of the output signals (NMPS1, NLPS1, LSZ1, Switch1) of the register 236 is supplied. Further, the output signal (MPS) of the exclusive OR circuit 250 is provided to the remaining one input terminal of the selector 240.
1 ′) and the output signal of the register 236 (NMPS1, N
A composite signal (MPS1 ′, NLPS1) with NLPS1 in LPS1, LSZ1, Switch1) is supplied. The output of the write data selection circuit 248 is connected to the control terminal of the selector 240.

【0065】選択器244の3つの入力端子には、確率
推定テーブル224の出力が接続され、当該選択器24
4の出力端子にはレジスタ236の入力が接続されてい
る。
The output of the probability estimation table 224 is connected to three input terminals of the selector 244.
The input terminal of the register 236 is connected to the output terminal 4.

【0066】レジスタ236の出力端子には、上述した
選択器240と、符号出力及び状態番号更新演算部24
6と、排他的論理和回路250とが接続されている。排
他的論理和回路250にはSwitch1 が、符号出力及び
状態番号更新演算部246にはLSZ1が供給される。
The output terminal of the register 236 is connected to the above-mentioned selector 240 and the code output and state number update operation unit 24.
6 and the exclusive OR circuit 250 are connected. Switch1 is supplied to the exclusive OR circuit 250, and LSZ1 is supplied to the code output and state number update operation unit 246.

【0067】次に、本実施例の算術符号化部220の各
構成要素の作用(機能)について更に詳細に説明する。
レジスタ228はデュアルポートメモリ216から読み
出されたデータを保持し、レジスタ230はデュアルポ
ートメモリ216に書き込まれるデータ、すなわち、コ
ンテクストバッファ212に保持されたコンテクストC
X4に対応した更新後の状態番号ST(CX4)とMP
S(CX4)値を保持する。また、コンテクストバッフ
ァ212に保持されているコンテクストCX3の状態番
号ST(CX3)とMPS(CX3)値は、レジスタ2
34に保持される。レジスタ236は、レジスタ234
が保持する状態番号ST1に対応した劣勢シンボルの確
率領域の大きさLSZ1及び状態遷移情報NMPS1,
NLPS1,Switch1)を保持する。レジスタ232
は、レジスタ230の出力を保持するレジスタなので、
コンテクストCX4より1クロック前に入力した(つま
り、CX2より3クロック前に入力した)コンテクスト
の更新後の状態番号とMPS値を保持する。なお、図9
及び図10中に示したレジスタは全て同一のシステムク
ロックで動作する。
Next, the operation (function) of each component of the arithmetic coding unit 220 of this embodiment will be described in more detail.
The register 228 holds the data read from the dual port memory 216, and the register 230 holds the data written to the dual port memory 216, that is, the context C held in the context buffer 212.
Updated state number ST (CX4) and MP corresponding to X4
Holds S (CX4) value. The state number ST (CX3) and MPS (CX3) value of the context CX3 held in the context buffer 212 are stored in the register 2
34. Register 236 includes register 234
Holds the size LSZ1 of the probability region of the inferior symbol corresponding to the state number ST1 and the state transition information NMPS1,
NLPS1, Switch1) are held. Register 232
Is a register that holds the output of the register 230,
The updated state number and MPS value of the context input one clock before the context CX4 (that is, input three clocks before the CX2) are held. Note that FIG.
All the registers shown in FIG. 10 operate with the same system clock.

【0068】選択器238は、検出器214の出力に基
づき、レジスタ228,230,232,234の出力
を当該選択器238の出力として選択する。例えば、検
出器214の出力に基づいて生成されるデュアルポート
メモリ216の読み出し信号Rがアクティブになった次
のシステムクロックサイクルでは、レジスタ228の出
力、すなわちデュアルポートメモリ216から読み出さ
れたデータを選択する。なぜならば、コンテクストCX
2に対応する状態番号とMPS値はレジスタ230、2
32、234には保持されておらず、レジスタ228に
保持されているからである。他方、EQ23=1の時、
すなわち、コンテクストデータCX2とCX3が同じ場
合には、コンテクストCX3の状態番号ST(CX3)
とMPS(CX3)を保持しているレジスタ234の出
力を選択する。また、EQ23=0且つEQ24=1の
時、すなわち、コンテクストデータCX2とCX3が異
なり、CX2とCX4が等しい場合には、コンテクスト
CX2に対する状態番号とMPSの最新値は、CX4の
更新後の状態番号とMPS値になるため、レジスタ23
0の出力を選択する。また、EQ23=0且つEQ24
=0且つdl_EQ14=1の時、すなわち、コンテク
ストデータCX2とCX3が異なり、CX2とCX4も
異なり、EQ14を記憶するレジスタの出力が1の場合
には、CX3より3クロック前に入力したコンテクスト
に対する状態番号とMPS値が、CX2に対する最新の
状態番号とMPS値となるので、それらの値を保持して
いるレジスタ232の出力を選択する。そして、選択器
238の出力の状態番号部ST0は、確率推定テーブル
224のアドレス入力となる。
The selector 238 selects the output of the registers 228, 230, 232, 234 as the output of the selector 238 based on the output of the detector 214. For example, in the next system clock cycle in which the read signal R of the dual port memory 216 generated based on the output of the detector 214 becomes active, the output of the register 228, that is, the data read from the dual port memory 216 is read. select. Because the context CX
The state number and MPS value corresponding to 2 are stored in registers 230, 2
32, 234, but not in the register 228. On the other hand, when EQ23 = 1,
That is, when the context data CX2 and CX3 are the same, the state number ST (CX3) of the context CX3
And the output of the register 234 holding the MPS (CX3). When EQ23 = 0 and EQ24 = 1, that is, when the context data CX2 and CX3 are different and CX2 and CX4 are equal, the state number for the context CX2 and the latest value of MPS are the updated state number of the CX4. And the MPS value, the register 23
Select an output of 0. Also, EQ23 = 0 and EQ24
= 0 and dl_EQ14 = 1, that is, if the context data CX2 and CX3 are different, CX2 and CX4 are different, and the output of the register storing EQ14 is 1, the state with respect to the context input three clocks before CX3 Since the number and MPS value become the latest state number and MPS value for CX2, the output of the register 232 holding those values is selected. Then, the state number part ST0 of the output of the selector 238 becomes the address input of the probability estimation table 224.

【0069】符号出力及び状態番号更新演算部246で
は、レジスタ236からの劣勢シンボルLPSの確率領
域幅LSZと予測変換処理部222からの予測誤差値か
ら、算術符号化演算を行い符号出力を行うとともに、状
態番号の更新演算を行う。排他的論理和回路250は、
レジスタ236から出力される Switch 情報が1の時、
レジスタ234から出力されるMPS値を反転する。ま
た、選択器240では、レジスタ234から出力される
MPS値とST値の信号(MPS1,ST1)と、レジ
スタ234から出力される信号(MPS1,ST1)の
内のMPS値とレジスタ236から出力されるNMPS
値を合わせた信号(MPS1,NMPS1)と、排他的
論理和回路250から出力されるMPS値とレジスタ2
36から出力されるNLPS値を合わせた信号(MPS
1’,NLPS1)とから当該選択器240の出力信号
を選択する。そして、選択器240において選択された
データはレジスタ230に保持される。
The code output and state number update calculation unit 246 performs arithmetic coding calculation based on the probability region width LSZ of the inferior symbol LPS from the register 236 and the prediction error value from the prediction conversion processing unit 222, and outputs a code. , Update calculation of the state number. The exclusive OR circuit 250
When the Switch information output from the register 236 is 1,
The MPS value output from the register 234 is inverted. In the selector 240, the MPS value and ST value signals (MPS 1, ST 1) output from the register 234, the MPS value of the signals (MPS 1, ST 1) output from the register 234, and the output from the register 236. NMPS
The signal (MPS1, NMPS1) obtained by combining the values, the MPS value output from the exclusive OR circuit 250, and the register 2
36 (MPS)
1 ′, NLPS1) and the output signal of the selector 240. Then, the data selected by the selector 240 is held in the register 230.

【0070】書き込みデータ選択回路248では、予測
変換処理部222からの予測誤差値と符号出力および状
態番号更新演算部246の演算結果に基づき、選択器2
40の選択信号(sel_wdt)を生成する。例え
ば、予測誤差が0でA−LSZ<0x8000ならば
(MPS1,NMPS1)を、予測誤差が0でA−LS
Z>=0x8000ならば(MPS1,ST1)を、予
測誤差1ならば(MPS1’,NLPS1)をそれぞれ
選択する。なお、具体的な算術処理は、従来技術の項で
示した方式と同じ方式のものを適用でき、当該演算処理
の詳細な説明はここでは省略する。
The write data selection circuit 248 selects the selector 2 based on the prediction error value from the prediction conversion processing unit 222, the code output, and the operation result of the state number update operation unit 246.
Forty selection signals (sel_wdt) are generated. For example, if the prediction error is 0 and A-LSZ <0x8000, (MPS1, NMPS1) is used.
If Z> = 0x8000, (MPS1, ST1) is selected, and if the prediction error is 1, (MPS1 ′, NLPS1) is selected. It should be noted that the same arithmetic processing as the method described in the section of the related art can be applied to specific arithmetic processing, and a detailed description of the arithmetic processing is omitted here.

【0071】選択器242においては、選択器238の
出力(MPS0,ST0)と、選択器240の出力との
一方を選択し、該選択された出力はレジスタ234に保
持される。ここで、選択器242の選択動作を制御する
選択信号は、検出器214の出力信号EQ23に基づい
て生成される。例えば、EQ23=0の時、すなわち、
コンテクストバッファ212に保持されているコンテク
ストデータCX2とCX3が等しくない場合、コンテク
ストデータCX2に対応する更新済みの最新の状態番号
は確定しており、レジスタ228,230,232のい
ずれかに保持され、いずれのレジスタに保持されている
かの選択は選択器238で行われているため、選択器2
42は選択器238の出力を選択する。一方、EQ23
=1の時、すなわち、コンテクストデータCX2とCX
3が等しい場合、コンテクストデータCX2と同一値の
コンテクストデータCX3に対する状態番号ST1はレ
ジスタ234に保持されており、該状態番号ST1に対
応する状態遷移先番号とMPS値(コンテクストデータ
CX2に対する状態番号とMPS値)がST1,NLP
S1,NMPS1の何れになるか選択器240にて選択
中である。そこで、選択器240の出力を選択し、コン
テクストデータCX3に対する状態番号の更新と同時
に、その更新値をコンテクストデータCX2に対する状
態番号としてレジスタ234に保持する。
The selector 242 selects one of the output (MPS0, ST0) of the selector 238 and the output of the selector 240, and the selected output is held in the register 234. Here, a selection signal for controlling the selection operation of the selector 242 is generated based on the output signal EQ23 of the detector 214. For example, when EQ23 = 0, ie,
When the context data CX2 and CX3 held in the context buffer 212 are not equal, the updated latest state number corresponding to the context data CX2 is determined, and is held in any of the registers 228, 230, and 232. Since the selection of which register is held is performed by the selector 238, the selector 2
Reference numeral 42 selects the output of the selector 238. On the other hand, EQ23
= 1, that is, context data CX2 and CX
3 are equal, the state number ST1 for the context data CX3 having the same value as the context data CX2 is held in the register 234, and the state transition destination number corresponding to the state number ST1 and the MPS value (the state number for the context data CX2 and the MPS value). MPS value) ST1, NLP
Either S1 or NMPS1 is being selected by the selector 240. Therefore, the output of the selector 240 is selected, and at the same time as updating the state number for the context data CX3, the updated value is held in the register 234 as the state number for the context data CX2.

【0072】選択器244においては、確率推定テーブ
ル224の出力は、(LSZ,NLPS,NMPS,Sw
itch)、(L_LSZ,L_NLPS,L_NMPS,
L_Switch)、(M_LSZ,M_NLPS,M_NM
PS,M_Switch)の3つのグループに分類され、その
うちの1つが選択され、選択されたデータはレジスタ2
36に保持される。選択器244の選択動作を制御する
選択信号は、検出器214の出力EQ23と書き込みデ
ータ選択回路248の出力(sel_wdt)に基づい
て生成される。例えば、EQ23=0の時、すなわち、
コンテクストバッファ212に保持されているコンテク
ストデータCX2とCX3が等しくない場合には、コン
テクストデータCX2に対応する更新済みの最新の状態
番号は確定しており、レジスタ228,230,232
の何れかに保持されており、いずれのレジスタに保持さ
れているかの選択は選択器238で行われ、選択器23
8の出力は確率推定テーブル224のアドレス入力とな
っているため、選択器244は確率推定テーブル224
の出力のうち(LSZ,NLPS,NMPS,Switch)
を選択する。
In the selector 244, the output of the probability estimation table 224 is (LSZ, NLPS, NMPS, Sw
itch), (L_LSZ, L_NLPS, L_NMPS,
L_Switch), (M_LSZ, M_NLPS, M_NM
PS, M_Switch), one of them is selected, and the selected data is stored in register 2
36. A selection signal for controlling the selection operation of the selector 244 is generated based on the output EQ23 of the detector 214 and the output (sel_wdt) of the write data selection circuit 248. For example, when EQ23 = 0, ie,
If the context data CX2 and CX3 held in the context buffer 212 are not equal, the updated latest state number corresponding to the context data CX2 has been determined, and the registers 228, 230, and 232 have been determined.
The selection of which register is held is performed by the selector 238, and the selector 23
8 is the address input of the probability estimation table 224, the selector 244 selects the probability estimation table 224.
Output (LSZ, NLPS, NMPS, Switch)
Select

【0073】一方、EQ23=1の時、すなわち、コン
テクストバッファ212に保持されているコンテクスト
データCX2とCX3が等しい場合には、コンテクスト
データCX2と同一値のコンテクストデータCX3に対
する状態番号ST1は、レジスタ234に保持されてお
り、該状態番号ST1に対応する状態遷移先番号(コン
テクストCX2に対する状態番号)がST1,NLPS
1,NMPS1の何れになるか選択器240にて選択中
である。そこで、コンテクストデータCX3の状態遷移
先番号の選択処理に並行して、コンテクストデータCX
2の状態番号に対応したLPSの確率領域の大きさLS
Z1及び状態遷移情報を求める。
On the other hand, when EQ23 = 1, that is, when the context data CX2 and CX3 held in the context buffer 212 are equal, the state number ST1 for the context data CX3 having the same value as the context data CX2 is stored in the register 234. And the state transition destination number (the state number for the context CX2) corresponding to the state number ST1 is ST1, NLPS.
1, NMPS1 is being selected by the selector 240. Therefore, in parallel with the process of selecting the state transition destination number of the context data CX3, the context data CX3
Size LS of the probability region of the LPS corresponding to the state number 2
Z1 and state transition information are obtained.

【0074】すなわち、コンテクストデータCX2の状
態番号はST1、NLPS1、NMPS1の何れかにな
るので、レジスタ234から出力されるST1が確率推
定テーブル224のアドレス入力となるように選択器2
38にてレジスタ234の出力を選択する。そして、前
述のように3つのグループに分類される確率推定テーブ
ル224の読み出しデータをsel_wdt信号に基づ
いて選択器244にて選択する。最終的に、選択器24
0において(MPS1,ST1)が選択されると、選択
器244では(LSZ,NLPS,NMPS,Switch)
を選択し、選択器240において(MPS1’,NLP
S1)が選択されると、選択器244では(L_LS
Z,L_NLPS,L_NMPS,L_Switch)を選択
し、選択器240において(MPS1,NMPS1)が
選択されると、選択器244では(M_LSZ,M_N
LPS,M_NMPS,M_Switch)を選択する。
That is, since the state number of the context data CX2 is any one of ST1, NLPS1, and NMPS1, the selector 2 is set so that ST1 output from the register 234 becomes the address input of the probability estimation table 224.
At 38, the output of the register 234 is selected. Then, the selector 244 selects read data of the probability estimation table 224 classified into three groups as described above based on the sel_wdt signal. Finally, the selector 24
When (MPS1, ST1) is selected at 0, the selector 244 selects (LSZ, NLPS, NMPS, Switch).
Is selected, and (MPS1 ′, NLP)
When S1) is selected, the selector 244 selects (L_LS)
Z, L_NLPS, L_NMPS, L_Switch) are selected, and when (MPS1, NMPS1) is selected in the selector 240, (M_LSZ, M_N) is selected in the selector 244.
LPS, M_NMPS, M_Switch).

【0075】次に、上記実施例の動作例を、図11に示
すタイミングチャートに沿って説明する。図11におい
て、CX1〜CX4はコンテクストバッファ212に保
持されているコンテクストデータであり、CX1はデュ
アルポートメモリ216の読み出しアドレス、CX4は
デュアルポートメモリ216の書き込みアドレスとして
入力される。また、読み出し信号Rと書き込み信号W
は、共にHIGHの状態がアクティブを示す信号であ
る。
Next, an operation example of the above embodiment will be described with reference to a timing chart shown in FIG. 11, CX1 to CX4 are context data held in the context buffer 212, CX1 is input as a read address of the dual port memory 216, and CX4 is input as a write address of the dual port memory 216. Also, the read signal R and the write signal W
Are signals indicating that the HIGH state is active.

【0076】最初に、コンテクスト#4に対する処理を
考える。Cycle 1 では、コンテクスト#4はデュアルポ
ートメモリ216の読み出しアドレス(CX1)になっ
ており、コンテクストバッファ212に先に入力された
コンテクスト#3〜#1の何れとも異なる(#4≠#
3,#4≠#2,#4≠#1)。すなわち、検出器21
4の出力において、EQ12=EQ13=EQ14=0
となり、リード/ライト制御部218の読み出し信号R
がアクティブになる。その結果、デュアルポートメモリ
216から対応するデータ、すなわち、コンテクスト#
4の状態番号ST,MPS値が読み出され、Cycle 2 で
レジスタ228に保持される。Cycle 2 においては、E
Q23=EQ24=dl_EQ14=0(#4≠#3、
#4≠#2、#4≠#1)なので、選択器238はレジ
スタ228の出力を選択し、コンテクスト#4を確率推
定テーブル224のアドレス入力とする。選択器242
も、EQ23=0(#4≠#3)であるため、選択器2
38の出力、すなわち、レジスタ228の出力を選択す
る。選択器244もEQ23=0(#4≠#3)である
ため、確率推定テーブル224の出力のうち(LSZ,
NLPS,NMPS,Switch)を選択する。
First, consider the process for context # 4. In Cycle 1, context # 4 is the read address (CX1) of dual port memory 216, and is different from any of contexts # 3 to # 1 previously input to context buffer 212 (# 4 (#).
3, # 4 ≠ # 2, # 4 ≠ # 1). That is, the detector 21
In the output of 4, EQ12 = EQ13 = EQ14 = 0
And the read signal R of the read / write control unit 218
Becomes active. As a result, the corresponding data from the dual port memory 216, that is, the context #
The state number ST and MPS value of No. 4 are read out and held in the register 228 in Cycle 2. In Cycle 2, E
Q23 = EQ24 = dl_EQ14 = 0 (# 4 ≠ # 3,
(# 4 ≠ # 2, # 4 ≠ # 1), the selector 238 selects the output of the register 228, and uses the context # 4 as the address input of the probability estimation table 224. Selector 242
Since EQ23 = 0 (# 4 ≠ # 3), the selector 2
38, the output of register 228 is selected. Since the selector 244 also has EQ23 = 0 (# 4 ≠ # 3), the output of the probability estimation table 224 includes (LSZ,
NLPS, NMPS, Switch).

【0077】次に、Cycle 3 において、選択器242の
出力はコンテクスト#4の状態番号としてレジスタ23
4に保持される。選択器244の出力は、コンテクスト
#4の状態遷移情報および劣勢シンボルLPSの確率領
域幅LSZとしてレジスタ236に保持される。そし
て、符号出力及び状態番号更新演算部246は、これら
レジスタ234,236が保持するデータに基づき、所
定の演算処理を行うとともに、選択器240に対してコ
ンテクスト#4の状態番号STの更新選択を指示する。
Next, in Cycle 3, the output of the selector 242 is stored in the register 23 as the state number of the context # 4.
4 is held. The output of the selector 244 is held in the register 236 as the state transition information of the context # 4 and the probability area width LSZ of the inferior symbol LPS. Then, the code output and state number update calculating section 246 performs predetermined calculation processing based on the data held by these registers 234 and 236, and at the same time, causes the selector 240 to select the update of the state number ST of the context # 4. To instruct.

【0078】Cycle 4 では、選択器240の出力がコン
テクスト#4の新しい状態番号/MPS値としてレジス
タ230に保持される。この時、デュアルポートメモリ
216の書き込みアドレス(CX4)としてコンテクス
ト#4が入力されるが、EQ34=1、すなわち、コン
テクスト#4と同一値のコンテクスト#5が次の Cycle
5 で書き込みアドレスとして入力されるため、Cylce 4
ではデュアルポートメモリ216へのデータ書き込み
は行わない。
In Cycle 4, the output of the selector 240 is held in the register 230 as a new state number / MPS value of the context # 4. At this time, context # 4 is input as the write address (CX4) of the dual port memory 216, but EQ34 = 1, that is, context # 5 having the same value as context # 4 has the next cycle.
5 is input as a write address, so Cylce 4
Then, data writing to the dual port memory 216 is not performed.

【0079】次に、コンテクスト#5に対する処理を考
える。コンテクスト#5は、Cycle2 でデュアルポート
メモリ216の読み出しアドレス(CX1)になってい
るが、コンテクストバッファ212に先に入力されてい
るコンテクスト#4と同一値である(#5=#4)。す
なわち、検出器214の出力において、EQ12=1と
なるため、リード/ライト制御部218の読み出し信号
Rが非アクティブになり、データの読み出しは行われな
い。
Next, consider the process for context # 5. The context # 5 is the read address (CX1) of the dual port memory 216 in Cycle2, but has the same value as the context # 4 previously input to the context buffer 212 (# 5 = # 4). That is, since EQ12 = 1 in the output of the detector 214, the read signal R of the read / write control unit 218 becomes inactive, and data is not read.

【0080】Cycle 3 では、EQ23=1となっている
ため、選択器238はコンテクスト#4の状態番号を保
持しているレジスタ234の出力を選択し、選択器24
2はコンテクスト#5の状態番号となるコンテクスト#
4の状態遷移先を選択している選択器240の出力を選
択する。選択器244は、確率推定テーブル224の出
力のうち(LSZ,NLPS,NMPS,Switch)か、
(L_LSZ,L_NLPS,L_NMPS,L_Swit
ch)か、(M_LSZ,M_NLPS,M_NMPS,
M_Switch)かを選択する。何れの出力を選択するか
は、前述したようにコンテクスト#4の状態遷移先の決
定にリンクする。Cycle 3 では、コンテクスト#4の状
態遷移先が決定されるため、同時にコンテクスト#4と
同一値のコンテクスト#5に対する状態番号と状態遷移
情報、および劣勢シンボルLPSの確率領域幅LSZも
決定する。
In Cycle 3, since EQ23 = 1, the selector 238 selects the output of the register 234 holding the state number of the context # 4, and
2 is the context number that is the status number of context # 5
The output of the selector 240 selecting the state transition destination of No. 4 is selected. The selector 244 determines whether the output of the probability estimation table 224 is (LSZ, NLPS, NMPS, Switch),
(L_LSZ, L_NLPS, L_NMPS, L_Swit
ch) or (M_LSZ, M_NLPS, M_NMPS,
M_Switch). Which output is selected is linked to the determination of the state transition destination of the context # 4 as described above. In Cycle 3, since the state transition destination of context # 4 is determined, the state number and state transition information for context # 5 having the same value as context # 4, and the probability area width LSZ of inferior symbol LPS are also determined.

【0081】Cycle 4 では、Cycle 3 で決定されたコン
テクスト#5に対する状態番号(選択器242の出力)
はレジスタ234に、状態遷移情報、および劣勢シンボ
ルLPSの確率領域幅LSZ(選択器244の出力)は
レジスタ236に保持される。これらのレジスタ23
4,236が保持するデータに基づき、符号出力及び状
態番号更新演算部246は演算処理を行い、選択器24
0にコンテクスト#5の状態番号の更新選択を指示す
る。
In Cycle 4, the state number for context # 5 determined in Cycle 3 (output of selector 242)
Is stored in the register 234, and the state transition information and the probability region width LSZ (output of the selector 244) of the inferior symbol LPS are stored in the register 236. These registers 23
The code output and state number update operation unit 246 performs an operation process based on the data held by the
0 is instructed to select the update of the status number of context # 5.

【0082】Cycle 5 では、選択器240の出力がコン
テクスト#5の新しい状態番号/MPS値としてレジス
タ230に保持される。このとき、デュアルポートメモ
リ216の書き込みアドレス(CX4)としてコンテク
スト#5が入力されているが、EQ24=1、つまりコ
ンテクスト#5と同一値のコンテクスト#7が2サイク
ル後の Cycle 7 で書き込みアドレス(CX4)として
入力されるため、Cycle5 ではデュアルポートメモリ2
16へのデータ書き込みは行わない。
In Cycle 5, the output of the selector 240 is held in the register 230 as a new state number / MPS value of the context # 5. At this time, the context # 5 is input as the write address (CX4) of the dual port memory 216. However, EQ24 = 1, that is, the context # 7 having the same value as the context # 5 has a write address (Cycle 7) two cycles later. CX4) is input as Cycle5.
16 is not written.

【0083】次に、コンテクスト#6に対する処理を考
える。Cycle 3 では、コンテクスト#6はデュアルポー
トメモリ216の読み出しアドレス(CX1)になって
いるが、コンテクストバッファ212に先に入力されて
いるコンテクスト#3と同一値である(#6=#3、#
6≠#5、#6≠#4)。すなわち、検出器214の出
力において、EQ14=1となるため、リード/ライト
制御部218の読み出し信号Rが非アクティブになり、
デュアルポートメモリ216からのデータの読み出しは
行われない。
Next, consider the processing for context # 6. In Cycle 3, context # 6 is the read address (CX1) of dual port memory 216, but has the same value as context # 3 previously input to context buffer 212 (# 6 = # 3, # 6).
6 # 5, # 6 # 4). That is, since EQ14 = 1 in the output of the detector 214, the read signal R of the read / write control unit 218 becomes inactive,
Data is not read from the dual port memory 216.

【0084】Cycle 4 では、dl_EQ14=1、EQ
24=0となっているため、コンテクスト#6の状態番
号であるコンテクスト#3の更新の状態番号(なぜな
ら、#6=#3)を保持しているレジスタ232の出力
が選択器238によって選択され、確率推定テーブル2
24のアドレス入力となる。EQ23=0(#6≠#
5)であるため、選択器242は選択器238の出力、
すなわちレジスタ232の出力を選択する。また、EQ
23=0(#6≠#5)であるため、選択器244は確
率推定テーブル224の出力のうち(LSZ,NLP
S,NMPS,Switch)を選択する。
In Cycle 4, dl_EQ14 = 1, EQ
Since 24 = 0, the output of the register 232 holding the updated state number of the context # 3, which is the state number of the context # 6 (because # 6 = # 3), is selected by the selector 238. , Probability estimation table 2
24 address inputs. EQ23 = 0 (# 6 ≠ #
5), the selector 242 outputs the output of the selector 238,
That is, the output of the register 232 is selected. Also, EQ
Since 23 = 0 (# 6 ≠ # 5), the selector 244 outputs (LSZ, NLP) of the output of the probability estimation table 224.
S, NMPS, Switch).

【0085】Cycle 5 において、選択器242の出力は
コンテクスト#6の状態番号としてレジスタ234に保
持される。選択器244の出力は、コンテクスト#6の
状態遷移情報および劣勢シンボルLPSの確率領域幅L
SZとしてレジスタ236に保持される。これらのレジ
スタ234,236が保持するデータに基づき、符号出
力及び状態番号更新演算部246は演算処理を行い、選
択器240にコンテクスト#6の状態番号の更新選択を
指示する。
In Cycle 5, the output of the selector 242 is held in the register 234 as the state number of context # 6. The output of the selector 244 is the state transition information of the context # 6 and the probability region width L of the inferior symbol LPS.
It is held in the register 236 as SZ. Based on the data held by these registers 234 and 236, the code output and state number update operation unit 246 performs an operation process, and instructs the selector 240 to update and select the state number of the context # 6.

【0086】Cycle 6 では、選択器240の出力がコン
テクスト#6の新しい状態番号/MPS値としてレジス
タ230に保持される。このとき、デュアルポートメモ
リ216の書き込みアドレス(CX4)としてコンテク
スト#6が入力されるが、EQ24=1、すなわち、コ
ンテクスト#6と同一値のコンテクスト#8が2サイク
ル後の Cycle 8 で書き込みアドレス(CX4)として
入力されるため、Cycle6 ではデュアルポートメモリ2
16へのデータ書き込みは行われない。
In Cycle 6, the output of the selector 240 is held in the register 230 as a new state number / MPS value of the context # 6. At this time, the context # 6 is input as the write address (CX4) of the dual port memory 216, but EQ24 = 1, that is, the context # 8 having the same value as the context # 6 is written at the write address (Cycle 8) two cycles later. CX4), the dual port memory 2 in Cycle6
No data is written to 16.

【0087】次に、コンテクスト#7に対する処理を考
える。Cycle 4 では、コンテクスト#7はデュアルポー
トメモリ216の読み出しアドレス(CX1)になって
いるが、コンテクストバッファ212に先に入力されて
いるコンテクスト#5と同一値である(#7=#5,#
7≠#6,#7≠#4)。すなわち、検出器214の出
力において,EQ13=1となるため、リード/ライト
制御部218の読み出し信号Rが非アクティブになり、
デュアルポートメモリ216からのデータの読み出しは
行われない。
Next, processing for context # 7 will be considered. In Cycle 4, context # 7 is a read address (CX1) of dual port memory 216, but has the same value as context # 5 previously input to context buffer 212 (# 7 = # 5, # 7).
7 # 6, # 7 # 4). That is, since EQ13 = 1 in the output of the detector 214, the read signal R of the read / write control unit 218 becomes inactive,
Data is not read from the dual port memory 216.

【0088】Cycle 5 では、EQ24=1、EQ23=
0となっているため、コンテクスト#7の状態番号であ
るコンテクスト#5の更新後の状態番号(なぜなら、#
7=#5)を保持しているレジスタ230の出力が選択
器238によって選択され、確率推定テーブル224の
アドレス入力となる。EQ23=0(#7≠#6)であ
るため、選択器242は選択器238の出力、すなわち
レジスタ230の出力を選択する。EQ23=0(#7
≠#6)であるため、選択器244は確率推定テーブル
224の出力のうち(LSZ,NLPS,NMPS,Sw
itch)を選択する。
In Cycle 5, EQ24 = 1 and EQ23 =
0, the updated state number of context # 5, which is the state number of context # 7 (because of #
7 = # 5) is selected by the selector 238 and becomes the address input of the probability estimation table 224. Since EQ23 = 0 (# 7 ≠ # 6), the selector 242 selects the output of the selector 238, that is, the output of the register 230. EQ23 = 0 (# 7
≠ # 6), the selector 244 outputs (LSZ, NLPS, NMPS, Sw) in the output of the probability estimation table 224.
itch).

【0089】Cycle 6 においては、選択器242の出力
がコンテクスト#7の状態番号としてレジスタ234に
保持される。選択器244の出力は、コンテクスト#7
の状態遷移情報および劣勢シンボルLPSの確率領域幅
LSZとしてレジスタ236に保持される。これらのレ
ジスタ234,236が保持するデータに基づき、符号
出力及び状態番号更新演算部246は演算処理を行い、
選択器240にコンテクスト#7の状態番号の更新選択
を指示する。
In Cycle 6, the output of the selector 242 is held in the register 234 as the state number of the context # 7. The output of selector 244 is context # 7
Is stored in the register 236 as the state transition information and the probability region width LSZ of the inferior symbol LPS. Based on the data held by these registers 234 and 236, the code output and state number update calculation unit 246 performs calculation processing,
The selector 240 is instructed to select the update of the state number of the context # 7.

【0090】Cycle 7 では、選択器240の出力がコン
テクスト#7の新しい状態番号/MPS値としてレジス
タ230に保持される。このとき、デュアルポートメモ
リ216の書き込みアドレス(CX4)としてコンテク
スト#7が入力されるが、EQ24=1、すなわち、コ
ンテクスト#7と同一値のコンテクスト#9が2サイク
ル後の Cycle 8 で書き込みアドレス(CX4)として
入力されるため、Cycle6 ではデュアルポートメモリ2
16へのデータの書き込みは行われない。
In Cycle 7, the output of the selector 240 is held in the register 230 as a new state number / MPS value of the context # 7. At this time, the context # 7 is input as the write address (CX4) of the dual port memory 216. However, EQ24 = 1, that is, the context # 9 having the same value as the context # 7 is written at the write address (Cycle 8) two cycles later. CX4), the dual port memory 2 in Cycle6
No data is written to the 16.

【0091】デュアルポートメモリ216へのデータの
書き込みは Cycle 1 で見られるように、書き込みアド
レスとなっているコンテクストCX4が、コンテクスト
バッファ212に記憶されている他のコンテクストのい
ずれとも異なる時(EQ14=EQ24=EQ34=
0)に行われる。
As can be seen in Cycle 1 when data is written to the dual port memory 216, when the context CX4 serving as the write address is different from any of the other contexts stored in the context buffer 212 (EQ14 = EQ24 = EQ34 =
0).

【0092】以上に述べたような動作を繰り返しながら
符号化対象シンボルに対応するコンテクストの状態番号
STとMPS値を更新しながら符号出力を行う。図11
に示したタイミングチャートを簡略化すると図12のよ
うになる。図12より分かるように、本実施例において
は、別々の符号化対象シンボルのコンテクストに対し
て、デュアルポートメモリ216(状態番号/優勢シン
ボル記憶部)の読み出しと、確率推定テーブルの検索、
状態番号/MPS値の更新演算と、デュアルポートメモ
リ216(状態番号/優勢シンボル記憶部)への書き込
みの処理とを並行して同時に行うことができる。
The code output is performed while updating the state number ST and the MPS value of the context corresponding to the symbol to be coded while repeating the above-described operation. FIG.
FIG. 12 is a simplified timing chart shown in FIG. As can be seen from FIG. 12, in the present embodiment, reading of the dual-port memory 216 (state number / dominant symbol storage unit), search of the probability estimation table,
The update operation of the state number / MPS value and the processing of writing to the dual port memory 216 (state number / dominant symbol storage unit) can be performed simultaneously in parallel.

【0093】図13は、本発明の第3実施例にかかる復
号化装置の構成を示す。この復号化装置は、図8に示し
た符号化装置に対応するものであり、当該符号化装置に
よって符号化された符号データを元の画像データに復号
する装置である。本実施例の復号化装置は、シンボル系
列記憶部308と、画像参照シンボル選択部310と、
コンテクストバッファ312と、検出器314と、デュ
アルポートメモリ(状態番号/優勢シンボル記憶部)3
16と、リード/ライト制御部318と、算術復号化部
320と、逆予測変換処理部322と、確率推定テーブ
ル324とを備えている。この復号化装置は、図8の符
号化装置と殆ど同じ構成であり、重複した説明を避ける
ため、上記実施例の符号化装置と同一の構成要素につい
ての詳細な説明は省略する。
FIG. 13 shows a configuration of a decoding apparatus according to the third embodiment of the present invention. This decoding device corresponds to the encoding device shown in FIG. 8, and is a device that decodes encoded data encoded by the encoding device into original image data. The decoding device according to the present embodiment includes a symbol sequence storage unit 308, an image reference symbol selection unit 310,
Context buffer 312, detector 314, dual port memory (state number / dominant symbol storage unit) 3
16, a read / write control unit 318, an arithmetic decoding unit 320, an inverse prediction conversion processing unit 322, and a probability estimation table 324. This decoding device has almost the same configuration as that of the encoding device of FIG. 8, and a detailed description of the same components as those of the encoding device of the above embodiment is omitted to avoid redundant description.

【0094】確率推定テーブル324は、コンテクスト
の各状態において劣勢シンボルLPSに対してどの程度
の確率領域を割り当てるのが最適か、正規化が発生した
場合の状態遷移先としてはどの状態番号が適当かを統計
的に求めて作成されたテーブルであり、符号化装置の確
率推定テーブル224と同一である。また、デュアルポ
ートメモリ316は、符号化装置におけるデュアルポー
トメモリ216と同様なフォーマットおよびデータを持
つ記憶装置である。
[0094] The probability estimation table 324 indicates which optimal probability area is to be allocated to the inferior symbol LPS in each state of the context, and which state number is appropriate as a state transition destination when normalization occurs. Is statistically obtained and is the same as the probability estimation table 224 of the encoding device. The dual port memory 316 is a storage device having the same format and data as the dual port memory 216 in the encoding device.

【0095】算術復号化部320には、入力符号データ
と、デュアルポートメモリ316から読み出された状態
番号/MPS値と、確率推定テーブル324から読み出
された劣勢シンボルLPSの出現確率領域幅LSZ/状
態遷移情報が供給される。そして、これらの情報に基づ
き、復号化対象シンボルがそのコンテクストにおいて優
勢シンボルMPSであったか劣勢シンボルLPSであっ
たかの情報と、該コンテクストのMPS値を逆予測変換
処理部322に出力すると共に、該コンテクストの状態
番号/MPS値の更新を行う。
Arithmetic decoding section 320 has input code data, state number / MPS value read from dual port memory 316, and occurrence probability area width LSZ of inferior symbol LPS read from probability estimation table 324. / State transition information is supplied. Based on these pieces of information, information on whether the decoding target symbol is the superior symbol MPS or the inferior symbol LPS in the context and the MPS value of the context are output to the inverse prediction conversion processing unit 322, and the The state number / MPS value is updated.

【0096】逆予測変換処理部322は、算術復号化部
320からの出力信号に基づき、復号化シンボルを出力
する。逆予測変換処理部322から出力された復号化シ
ンボルは、シンボル系列記憶部308に記憶される。
[0096] Inverse prediction conversion processing section 322 outputs a decoded symbol based on the output signal from arithmetic decoding section 320. The decoded symbol output from the inverse prediction conversion processing unit 322 is stored in the symbol sequence storage unit 308.

【0097】図14は、算術復号化部320の構成を示
す。本実施例の算術復号化部320は、5つのレジスタ
328,330,332,334,336と、4つの選
択器(マルチプレクサ)338,340,342,34
4と、符号入力及び状態番号更新演算部346と、書き
込みデータ選択回路348と、排他的論理和回路350
とを備えている。この算術復号化部320は、図10の
算術符号化部220と殆ど同じ構成であり、重複した説
明を避けるため、上記実施例の算術符号化部220と同
一の構成要素についての説明は省略する。図10に示し
た算術符号化部220と異なるのは、符号入力及び状態
番号更新演算部346と書き込みデータ選択回路348
である。
FIG. 14 shows the configuration of the arithmetic decoding unit 320. The arithmetic decoding unit 320 of the present embodiment includes five registers 328, 330, 332, 334, 336 and four selectors (multiplexers) 338, 340, 342, 34.
4, a code input and state number update operation unit 346, a write data selection circuit 348, and an exclusive OR circuit 350
And The arithmetic decoding unit 320 has almost the same configuration as that of the arithmetic encoding unit 220 in FIG. 10, and the description of the same components as those of the arithmetic encoding unit 220 in the above embodiment will be omitted to avoid redundant description. . The difference from the arithmetic coding unit 220 shown in FIG. 10 is that the code input and state number update calculation unit 346 and the write data selection circuit 348
It is.

【0098】書き込みデータ選択回路348は、符号入
力及び状態番号更新演算部346による演算結果に基づ
いて、選択器340の選択動作の制御用の選択信号を生
成する。各復号化対象シンボルのコンテクストに対する
状態番号とMPS値の更新動作は、符号化装置の場合の
符号化対象シンボルに対する状態番号とMPS値の更新
動作と同様である。なお、以上のように示した復号化装
置の算術処理動作は、従来技術の項で示した方式と同じ
方式のものを適用でき、ここでは、算術復号化の演算処
理の詳細については省略する。
The write data selection circuit 348 generates a selection signal for controlling the selection operation of the selector 340 based on the operation result of the code input and state number update operation section 346. The operation of updating the state number and MPS value for the context of each decoding target symbol is the same as the operation of updating the state number and MPS value for the encoding target symbol in the case of the encoding device. The arithmetic processing operation of the decoding apparatus described above can employ the same method as the method shown in the section of the prior art, and the details of the arithmetic processing of the arithmetic decoding are omitted here.

【0099】以上、本発明の実施例について説明した
が、本発明はこれらの実施例に限定されるものではな
く、特許請求の範囲に示された本発明の技術的思想とし
ての要旨を逸脱しない範囲で種々の変更が可能である。
Although the embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and does not depart from the gist of the technical idea of the present invention shown in the claims. Various changes are possible within the scope.

【0100】[0100]

【発明の効果】以上説明したように、本発明によれば、
画像データの種類に関わらず、画像データの符号化、復
号化の処理速度の向上を図ることができるという効果が
ある。
As described above, according to the present invention,
Regardless of the type of image data, there is an effect that the processing speed of encoding and decoding of image data can be improved.

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

【図1】図1は、本発明の第1実施例にかかる適応算術
型符号化装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an adaptive arithmetic coding device according to a first embodiment of the present invention.

【図2】図2は、図1に示す第1実施例の要部(コンテ
クストバッファ)の構成を示す概略ブロック図である。
FIG. 2 is a schematic block diagram showing a configuration of a main part (context buffer) of the first embodiment shown in FIG. 1;

【図3】図3は、第1実施例にかかる確率推定テーブル
の内容の一部を示す表であり、図4及び図5の内容と連
結することによって、当該確率推定テーブルが完成する
ようになっている。
FIG. 3 is a table showing a part of the contents of a probability estimation table according to the first embodiment, and is connected to the contents of FIGS. Has become.

【図4】図4は、第1実施例にかかる確率推定テーブル
の内容の一部を示す表であり、図3及び図5の内容と連
結することによって、当該確率推定テーブルが完成する
ようになっている。
FIG. 4 is a table showing a part of the contents of the probability estimation table according to the first embodiment, and is connected to the contents of FIGS. 3 and 5 so that the probability estimation table is completed. Has become.

【図5】図5は、第1実施例にかかる確率推定テーブル
の内容の一部を示す表であり、図3及び図4の内容と連
結することによって、当該確率推定テーブルが完成する
ようになっている。
FIG. 5 is a table showing a part of the contents of a probability estimation table according to the first embodiment, and is linked to the contents of FIGS. Has become.

【図6】図6は、第1実施例における概略的な動作を示
すタイミングチャートである。
FIG. 6 is a timing chart showing a schematic operation in the first embodiment.

【図7】図7は、第1実施例における詳細な動作を示す
タイミングチャートである。
FIG. 7 is a timing chart showing a detailed operation in the first embodiment.

【図8】図8は、本発明の第2実施例にかかる適応型算
術符号化装置の構成を示すブロック図である。
FIG. 8 is a block diagram showing a configuration of an adaptive arithmetic coding device according to a second embodiment of the present invention.

【図9】図9は、図8に示す第2実施例の要部(コンテ
クストバッファ)の構成を示す概略ブロック図である。
FIG. 9 is a schematic block diagram showing a configuration of a main part (context buffer) of the second embodiment shown in FIG. 8;

【図10】図10は、第2実施例の要部(算術符号化
部)の詳細な構成を示すブロック図である。
FIG. 10 is a block diagram illustrating a detailed configuration of a main part (arithmetic encoding unit) of the second embodiment.

【図11】図11は、第2実施例における詳細な動作を
示すタイミングチャートである。
FIG. 11 is a timing chart showing a detailed operation in the second embodiment.

【図12】図12は、第2実施例の全体的な概略動作を
示すタイムチャートである。
FIG. 12 is a time chart showing an overall schematic operation of the second embodiment.

【図13】図13は、本発明の第3実施例にかかる適応
型算術復号化装置の構成を示すブロック図である。
FIG. 13 is a block diagram showing a configuration of an adaptive arithmetic decoding device according to a third embodiment of the present invention.

【図14】図14は、第3実施例の要部(算術復号化
部)の詳細な構成を示すブロック図である。
FIG. 14 is a block diagram illustrating a detailed configuration of a main part (arithmetic decoding unit) according to a third embodiment;

【図15】図15は、本発明の背景技術を示す概略ブロ
ック図である。
FIG. 15 is a schematic block diagram showing a background art of the present invention.

【図16】図16は、従来の適応型算術符号化装置の構
成を示すブロック図である。
FIG. 16 is a block diagram showing a configuration of a conventional adaptive arithmetic coding device.

【図17】図17は、図16に示す従来の適応型算術符
号化装置の状態番号/優勢シンボル記憶部の記憶データ
の内容を示す説明図である。
17 is an explanatory diagram showing the contents of data stored in a state number / dominant symbol storage section of the conventional adaptive arithmetic coding device shown in FIG. 16;

【図18】図18は、算術符号化装置(復号化装置)に
おける確率領域減算処理の概念を示す説明図である。
FIG. 18 is an explanatory diagram showing a concept of a probability region subtraction process in an arithmetic coding device (decoding device).

【図19】図19は、算術符号化装置(復号化装置)に
おける条件付き交換処理及び正規化処理の概念を示す説
明図である。
FIG. 19 is an explanatory diagram showing the concept of conditional exchange processing and normalization processing in an arithmetic coding device (decoding device).

【図20】図20は、算術符号化装置(復号化装置)に
おいて、MPS(優勢シンボル)が連続して発生した場
合におけるLPS(劣勢シンボル)の領域幅LSZが比
較的大きい場合の減算処理及び正規化処理の概念を示す
説明図である。
FIG. 20 is a diagram illustrating a subtraction process performed when an area width LSZ of an LPS (inferior symbol) is relatively large in a case where an MPS (dominant symbol) continuously occurs in an arithmetic encoding device (decoding device). It is explanatory drawing which shows the concept of a normalization process.

【図21】図21は、算術符号化装置(復号化装置)に
おいて、MPS(優勢シンボル)が連続して発生した場
合におけるLPS(劣勢シンボル)の領域幅LSZが比
較的小さい場合の減算処理及び正規化処理の概念を示す
説明図である。
FIG. 21 is a diagram illustrating a subtraction process performed when an area width LSZ of an LPS (inferior symbol) is relatively small in a case where an MPS (dominant symbol) continuously occurs in an arithmetic encoding device (decoding device); FIG. 4 is an explanatory diagram illustrating a concept of a normalization process.

【図22】図22は、算術符号化装置(復号化装置)に
おいて、LPS(劣勢シンボル)が連続して発生した場
合におけるLPS(劣勢シンボル)の領域幅LSZが比
較的大きい場合の減算処理及び正規化処理の概念を示す
説明図である。
FIG. 22 is a diagram illustrating a subtraction process performed when an area width LSZ of an LPS (inferior symbol) is relatively large in a case where an LPS (inferior symbol) continuously occurs in the arithmetic encoding device (decoding device). It is explanatory drawing which shows the concept of a normalization process.

【図23】図23は、算術符号化装置(復号化装置)に
おいて、LPS(劣勢シンボル)が連続して発生した場
合におけるLPS(劣勢シンボル)の領域幅LSZが比
較的小さい場合の減算処理及び正規化処理の概念を示す
説明図である。
FIG. 23 is a diagram illustrating a subtraction process in a case where the region width LSZ of an LPS (inferior symbol) is relatively small when an LPS (inferior symbol) is continuously generated in the arithmetic encoding device (decoding device); It is explanatory drawing which shows the concept of a normalization process.

【図24】図24は、従来の適応型算術復号化装置の構
成を示すブロック図である。
FIG. 24 is a block diagram showing a configuration of a conventional adaptive arithmetic decoding device.

【図25】図25は、図16及び図24に示す従来の適
応型算術符号化装置(復号化装置)の動作を示すタイミ
ングチャートである。
FIG. 25 is a timing chart showing the operation of the conventional adaptive arithmetic coding device (decoding device) shown in FIGS. 16 and 24.

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

200・・・変換処理ユニット 201・・・変換情報テーブル 201a・・・変換パラメータ保持部 202・・・制御部 204・・・シングルポートメモリ 210,310・・・画像参照シンボル選択部 212,312・・・コンテクストバッファ 214,314・・・検出器 216,316・・・デュアルポートメモリ 220・・・算術符号化部 222・・・予測変換処理部 224,324・・・確率推定テーブル 228,230,232,234,236,328,3
30,332,3343,336・・・レジスタ 238,240,242,244,338,340,3
42,344・・・選択器
200: Conversion processing unit 201: Conversion information table 201a: Conversion parameter holding unit 202: Control unit 204: Single port memory 210, 310 ... Image reference symbol selection unit 212, 312 ..Context buffers 214,314 ... Detectors 216,316 ... Dual port memory 220 ... Arithmetic coding unit 222 ... Predictive transformation processing unit 224,324 ... Probability estimation tables 228,230, 232,234,236,328,3
30, 332, 3343, 336... Registers 238, 240, 242, 244, 338, 340, 3
42, 344... Selector

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03M 7/40 H03M 7/30 H04N 1/41 ──────────────────────────────────────────────────の Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H03M 7/40 H03M 7/30 H04N 1/41

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】順次入力される2値画像データを符号化す
る装置であり、画像データに対する符号化パラメータを
必要に応じて変更する適応型算術符号化装置において、前記符号化パラメータ を記憶した符号化情報テーブル
と; n−1番目に入力された画像データの符号化処理の間
に、n番目の画像データに対して推定される少なくとも
2つの符号化パラメータを前記符号化情報テーブルから
読み出して保持する符号化パラメータ保持手段と前記n−1番目の画像データの符号化処理が終了した時
点で、前記保持手段に保持されている少なくとも2つの
符号化パラメータのうちから適切なものを選択する選択
手段と; 前記選択手段によって選択された符号化パラメータを用
いて前記n番目の画像データの符号化処理を行う符号化
処理手段とを備えたことを特徴とする符号化装置。
An adaptive arithmetic encoding device for encoding binary image data which is sequentially input, wherein the encoding parameter for the image data is changed as required. And at least two encoding parameters estimated for the n-th image data during the encoding processing of the (n-1) -th input image data from the encoding information table.
Encoding parameter holding means for reading and holding ; when the coding processing of the ( n-1) th image data is completed
In that at least two of the holding means
Selection to select an appropriate coding parameter
Means for coding the n-th image data by using the coding parameter selected by the selecting means.
【請求項2】 前記符号化情報テーブルに記憶された符号
化パラメータに対応し、前記画像データの状態を示す状
態データを記憶する記憶手段を更に備え、 前記符号化情報テーブルは、前記符号化パラメータに加
えて、対応する状態データの更新後の値を示す状態遷移
先情報を記憶し、 前記符号化パラメータ保持手段は、前記n番目の画像デ
ータに対して推定される前記符号化パラメータとして、
少なくとも前記符号化情報テーブルに記憶された前記状
態遷移先情報を保持することを特徴とする請求項に記
載の符号化装置。
2. The image processing apparatus according to claim 1 , further comprising storage means for storing state data indicating a state of said image data, said storage means corresponding to an encoding parameter stored in said encoding information table. In addition to the above, storing state transition destination information indicating the updated value of the corresponding state data, the encoding parameter holding means, as the encoding parameter estimated for the n-th image data,
2. The encoding apparatus according to claim 1 , wherein at least the state transition destination information stored in the encoding information table is held.
【請求項3】 請求項1に記載の符号化装置によって符号
化された符号データを元の画像データに復号化する適応
型算術復号化装置において、復号化パラメータ を記憶した符号化情報テーブルと; n−1番目に入力された画像データの復号化処理の間
に、n番目の画像データに対して推定される少なくとも
2つの復号化パラメータを前記復号化情報テーブルから
読み出して保持する復号化パラメータ保持手段と前記n−1番目の画像データの復号化処理が終了した時
点で、前記保持手段に保持されている少なくとも2つの
復号化パラメータのうちから適切なものを選択する選択
手段と; 前記選択手段によって選択された復号化パラメータを用
いて前記n番目の画像データの復号化処理を行う復号化
処理手段とを備えたことを特徴とする復号化装置。
3. An adaptation for decoding code data encoded by the encoding device according to claim 1 into original image data.
In type arithmetic decoding apparatus, an encoding information table storing decoding parameters; during decoding processing of image data input to the n-1 th, at least estimated for the n-th image data 2 Two decoding parameters from the decoding information table
Decoding parameter holding means for reading and holding ; when decoding processing of the ( n-1) th image data is completed
In that at least two of the holding means
Selection to select an appropriate one from decoding parameters
Means for decoding the n-th image data using the decoding parameter selected by the selecting means.
【請求項4】 請求項1に記載の符号化装置と請求項3に
記載の復号化装置を備えたことを特徴とする符号化・復
号化装置。
4. An encoding / decoding device comprising the encoding device according to claim 1 and the decoding device according to claim 3.
【請求項5】 順次入力される2値画像データを符号化対
象シンボルとして符号化する適応型算術符号化装置にお
いて、 情報源のシンボル系列の予め定められた位置の複数の参
照シンボルを用い、符号化対象シンボルに対するコンテ
クストを生成する手段と; 前記コンテクストの状態を示す状態番号と、前記符号化
対象シンボルの予測値とを記憶する記憶手段と; 順次入力される複数の符号化対象シンボルに対応する複
数のコンテクストを一時的に保持するコンテクスト保持
手段と; 前記コンテクスト保持手段に保持されている複数のコン
テクストを比較する第1の比較手段と; 前記記憶手段から読み出された前記符号化対象シンボル
の予測値と実際の符号化対象シンボルの値とを比較する
第2の比較手段と; 前記記憶手段に記憶されている前記状態番号に対応した
確率領域幅と、当該状態番号の更新後の値を示す状態遷
移先情報と、該状態遷移先に対応した第2の確率領域幅
と、該状態遷移先の更新後の値を示す第2の状態遷移先
情報とを記憶する情報テーブルと; 前記情報テーブルから読み出された確率領域幅及び前記
第2の比較手段による比較の結果に基づいて前記符号化
対象シンボルの符号化を行うと共に、前記情報テーブル
から読み出された前記状態遷移先情報に基づいて前記符
号化対象シンボルに対するコンテクストの状態番号及び
予測値の更新とを行う算術符号化手段と; 前記記憶手段から読み出された状態番号及び予測値を保
持する第1のレジスタと; 前記記憶手段に書き込まれる状態番号及び予測値を保持
する第2のレジスタと; 前記第2のレジスタの出力を保持する第3のレジスタ
と; n−1番目に入力された画像データに対応するコンテク
ストの状態番号を保持する第4のレジスタと; 前記第1の比較手段の比較結果に基づいて、前記第1,
第2,第3又は第4のレジスタの出力を選択する第1の
選択器と; 前記n−1番目に入力された画像データに対応するコン
テクストの確率領域幅と状態遷移先情報を保持する第5
のレジスタとを備え、 前記情報テーブルは、前記第1の選択器の出力をアドレ
スとし、 前記算術符号化手段は、前記第1の比較手段による比較
の結果、前記n番目に入力された画像データに対応する
コンテクストと前記n−1番目のコンテクストとが同一
の場合に、前記第2の確率領域幅と前記第2の状態遷移
先情報を用いて前記n番目のコンテクストの符号化処理
を行うことを特徴とする算術符号化装置。
5. An image processing system comprising:
Adaptive arithmetic coding device that encodes as elephant symbols
Means for using a plurality of reference symbols at predetermined positions in a symbol sequence of an information source to generate a context for a symbol to be coded; a state number indicating a state of the context; and a prediction of the symbol to be coded. Storage means for storing values; and context holding means for temporarily holding a plurality of contexts corresponding to a plurality of symbols to be sequentially encoded; and comparing a plurality of contexts held in the context holding means. First comparing means for comparing the predicted value of the encoding target symbol read from the storage means with the actual value of the encoding target symbol; and stored in the storage means. The probability region width corresponding to the state number, state transition destination information indicating an updated value of the state number, and An information table that stores a corresponding second probability region width and second state transition destination information indicating an updated value of the state transition destination; a probability region width read from the information table and the second The encoding of the encoding target symbol is performed based on the result of the comparison by the comparing means of No. 2, and the state number and the context number of the context for the encoding target symbol are determined based on the state transition destination information read from the information table. Arithmetic coding means for updating a predicted value; a first register for holding a state number and a predicted value read from the storage means; and a first register for holding a state number and a predicted value written to the storage means. A third register for holding an output of the second register; and a state number of a context corresponding to the (n-1) th input image data. A fourth register; based on the comparison result of said first comparison means, said first,
A first selector for selecting an output of the second, third, or fourth register; and a second selector for holding a probability region width and state transition destination information of a context corresponding to the (n-1) th input image data. 5
Wherein the information table uses an output of the first selector as an address, and the arithmetic encoding means outputs the n-th input image data as a result of the comparison by the first comparing means. When the context corresponding to (i) is the same as the (n-1) th context, the encoding process of the nth context is performed using the second probability region width and the second state transition destination information. Arithmetic coding device characterized by the above-mentioned.
【請求項6】 前記請求項5に記載の算術符号化装置を備
えた、符号化/復号化装置。
6. with arithmetic coding apparatus according to claim 5, encoding / decoding device.
JP10105197A 1996-08-22 1997-04-03 Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device Expired - Fee Related JP3336537B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP10105197A JP3336537B2 (en) 1997-04-03 1997-04-03 Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device
US08/915,976 US6055338A (en) 1996-08-22 1997-08-21 Bi-level adaptive coding using a dual port memory and a context comparator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10105197A JP3336537B2 (en) 1997-04-03 1997-04-03 Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device

Publications (2)

Publication Number Publication Date
JPH10285049A JPH10285049A (en) 1998-10-23
JP3336537B2 true JP3336537B2 (en) 2002-10-21

Family

ID=14290333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10105197A Expired - Fee Related JP3336537B2 (en) 1996-08-22 1997-04-03 Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device

Country Status (1)

Country Link
JP (1) JP3336537B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4994515B2 (en) * 2009-06-19 2012-08-08 三菱電機株式会社 Arithmetic coding device, arithmetic decoding device

Also Published As

Publication number Publication date
JPH10285049A (en) 1998-10-23

Similar Documents

Publication Publication Date Title
US5771010A (en) Apparatus for compressing data using a Lempel-Ziv-type algorithm
CA1223965A (en) High speed data compression and decompression apparatus and method
JP3136796B2 (en) Variable length code decoder
US5572209A (en) Method and apparatus for compressing and decompressing data
US5113516A (en) Data repacker having controlled feedback shifters and registers for changing data format
JPH0799812B2 (en) Signal coding apparatus, signal decoding apparatus, and signal coding / decoding apparatus
US4760461A (en) Binary data compression and expansion processing apparatus
JP3189876B2 (en) Variable length code decoding circuit
JP3684128B2 (en) Arithmetic encoding / decoding method and arithmetic encoding / decoding device
JPH0258813B2 (en)
US6127950A (en) Transmission circuit and reception circuit
JP3459759B2 (en) Arithmetic decoding device
US6055338A (en) Bi-level adaptive coding using a dual port memory and a context comparator
JP3336537B2 (en) Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device
JP3247052B2 (en) Image data conversion processing method and apparatus
JP3224127B2 (en) Image data conversion processor
JP3406550B2 (en) Arithmetic encoding device and arithmetic decoding device
JPH09247466A (en) Encoding device
EP0499225B1 (en) Variable-length code decoding device
JP3342380B2 (en) Encoding and decoding apparatus and image processing apparatus to which the same is applied
JP3223118B2 (en) Image encoding device, image decoding device, and image encoding / decoding device
JP3232533B2 (en) Image encoding device, image decoding device, and image encoding / decoding device
JP3225763B2 (en) Encoding device and decoding device
JPH08167855A (en) Huffman decoding circuit
JP3270665B2 (en) Encoding / decoding apparatus and method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20070809

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080809

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees