JP3247052B2 - Image data conversion processing method and apparatus - Google Patents

Image data conversion processing method and apparatus

Info

Publication number
JP3247052B2
JP3247052B2 JP25098996A JP25098996A JP3247052B2 JP 3247052 B2 JP3247052 B2 JP 3247052B2 JP 25098996 A JP25098996 A JP 25098996A JP 25098996 A JP25098996 A JP 25098996A JP 3247052 B2 JP3247052 B2 JP 3247052B2
Authority
JP
Japan
Prior art keywords
context
symbol
output
data
state number
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
JP25098996A
Other languages
Japanese (ja)
Other versions
JPH1079861A (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
Application filed by アイチップス・テクノロジー株式会社 filed Critical アイチップス・テクノロジー株式会社
Priority to JP25098996A priority Critical patent/JP3247052B2/en
Priority to US08/915,976 priority patent/US6055338A/en
Publication of JPH1079861A publication Critical patent/JPH1079861A/en
Application granted granted Critical
Publication of JP3247052B2 publication Critical patent/JP3247052B2/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]

【発明の背景】人間の視覚によって認識される画像情報
を、コンピュータ等の機械によって認識可能な状態にす
るために種々の画像変換処理が行われる。例えば、画像
情報を電話回線や無線電波等の伝送媒体を介して伝送す
る場合、伝送する画像の情報量を少なくするために、送
信側で伝送すべき画像データの圧縮を行い、受信側では
当該圧縮データを伸長するという技術が一般的に利用さ
れている。図13は、画像データの伝送の様子を概念的
に示す。画像情報源から供給された画像データは、送信
側の符号化装置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. 13 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]

【従来技術】図14は、画像データ変換処理装置の一例
として、適応型算術符号化方式を採用した従来の画像符
号化装置を示す。ここで、算術符号化とは、符号化の対
象となるシンボル系列の出現確率に応じて確率数直線を
区間分割し、分割された区間内の位置を示す二進小数値
をその系列に対する符号とするものであり、符号語を算
術演算により逐次的に構成していく。このような算術符
号化方式は、特にファクシミリによる2値画像の送受信
等に適用される。
2. Description of the Related Art FIG. 14 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】図14に示す画像符号化装置は、入力画像
データを2値シンボル列として入力するシンボル系列読
み取り部100と、シンボル系列読み取り部100にて
読み取られた2値シンボル列を記憶するシンボル系列記
憶部102と、シンボル系列記憶部102に記憶されて
いる2値シンボル列の圧縮を行うために、必要な情報と
して、圧縮しようとする符号化対象シンボルに最も相関
の深いシンボルパターン(以下、「テンプレート」と称
する)を2値シンボル列から選択する画像参照シンボル
選択部104とを備えている。また、図15に示す内容
のデータを記憶する状態番号/優勢シンボル記憶部10
6と、画像参照シンボル選択部104にて取り出された
参照シンボルの内容が示す値(以下、「コンテクスト」
あるいは「CX」と記述する)に基づき、符号化対象シ
ンボルが状態番号/優勢シンボル記憶部106に記憶さ
れている推測値(高い確率で出現するシンボル値,優勢
シンボル「MPS」)と等しいか否かの情報を出力する
予測変換処理部108とを更に備えている。
[0005] The image coding apparatus shown in FIG. 14 includes a symbol sequence reading unit 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 unit 100. In order to compress the binary symbol sequence stored in the symbol sequence storage unit 102, the storage unit 102 and necessary symbol information include a symbol pattern having the highest correlation with the encoding target symbol to be compressed. 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】図14において、符号110は、各状態番
号に対して予め定められた劣勢シンボルLPSの確率領
域の大きさ(LSZ)及び状態番号STの遷移情報を記
憶した確率推定テーブルである。112は、予測変換処
理部108の出力と、状態番号/優勢シンボル記憶部1
06から読み出された状態番号STとMPS値と、確率
推定テーブル110から読み出された劣勢シンボルLP
Sの出現確率領域幅の値(LSZ)及び状態遷移情報を
元に、符号化対象シンボルに対して算術符号化処理を行
う算術符号化部である。
In FIG. 14, 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))のように算出される
(図16参照)。そして、現在までに符号化したシンボ
ル列の出現確率に対応した確率領域幅Aを、次の符号化
対象シンボルに対して期待される劣勢シンボルLPSと
優勢シンボルMPSの出現推定確率で分割し、優勢シン
ボルMPSの出現推定確率が劣勢シンボルLPSの出現
確率以上であれば、図16における確率領域の優勢シン
ボル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 assigned to the dominant symbol MPS is calculated as A-LSZ (ST (CX)) (see FIG. 16). 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. 16 is assigned to the encoding target symbol.

【0011】図16においては、符号化対象シンボルの
出現する確率領域の大きさを示す値はA’の値であるた
め、A−LSZを求めることによって符号化対象シンボ
ルとして優勢シンボルMPSが出現する場合に割り当て
られる確率領域幅を求めることができる。次に、優勢シ
ンボルMPSが出現する場合に割り当てられる確率領域
幅の値を図17におけるHalfで示される8000H
exと比較し、8000Hex以上であれば処理を終了
し、8000Hex未満であれば正規化処理を行う。
In FIG. 16, since the value indicating the size of the probability region in which the symbol to be encoded appears is the value of A ', the dominant symbol MPS appears as the symbol to be encoded 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
に割り当てられる確率領域の意味を入れ換える処理(条
件付き交換処理)を行う(図17参照)。
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. 17).

【0013】次に、ST(CX)で示される値、すなわ
ちコンテクストCXに対応した状態番号STの次の遷移
状態(以下、「NMPS(ST(CX))」と表記す
る)を確率推定テーブル110より求め、現在のST
(CX)の値を更新する処理を行う。この時、符号化対
象シンボルが優勢シンボルMPSの場合に、次の状態に
おける「劣勢シンボルLPSに対して割り当てる確率領
域幅」LSZは、現在の状態のLSZよりも必ず小さく
なるように確率推定テーブル110が設定されている。
例えば、符号化対象シンボルMPSのみが発生した場
合、図18に示すように、LPS領域幅が大きい場合に
は(1),(2),(3)と3回符号化処理を行った時
点で1回の正規化が発生し、1ビットの符号が出力され
ている。一方、図19に示すように、LPS領域幅が小
さい場合には、符号化対象シンボルを6ビット符号化し
た時点で1回正規化が起こり、1ビットの符号が出力さ
れる。すなわち、前者(図18)の場合には圧縮率3分
の1であり、後者(図19)の場合には圧縮率が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. 18, when the LPS area width is large, (1), (2), and (3) are used at the time 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. 19, 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. 18), the compression ratio is 1/3, in the latter case (FIG. 19), 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】次に、図17に戻って、正規化処理手順に
ついて説明する。正規化処理では、8000Hexより
小さくなった優勢シンボルMPSの確率領域を8000
Hexより大きくする処理を行う。すなわち、現在まで
に符号化されたシンボル列に対して割り当てられた確率
領域の幅を示す区間レジスタと、現在までに符号化され
たシンボル列に対して割り当てられた確率領域を代表す
る座標を示す符号レジスタの値を各々のレジスタ中にて
最上位ビット方向(MSB方向)へシフトすることによ
り、各領域と座標を2倍ずつ拡大する処理を行う。
Next, returning to FIG. 17, 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. 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))が大きくなる方向へ状態が更新される理由は以下
の通りである。すなわち、図20及び図21に示すよう
に、劣勢シンボル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. 20 and 21, when the region width allocated to the inferior symbol LPS is small, the code amount (shift) of the register output in the normalization process, that is, the shift amount of the register in one 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】図22は、上記先行技術における2値算術
符号化装置によって符号化された2値シンボル列を復号
する2値算術復号化装置の構成を示す。図22におい
て、確率推定テーブル130は、コンテクストの各状態
において劣勢シンボルLPSに対してどの程度の確率領
域を割り当てるのが最適か、正規化が発生した場合の状
態遷移先としてはどの状態番号STが適当かを統計的に
求めて作成されたテーブルであり、図14に示す符号化
装置の確率推定テーブル120と同一である。状態番号
/優勢シンボル記憶部132は、符号化装置における状
態番号/優勢シンボル記憶部106と同様なフォーマッ
トおよびデータを持つ記憶装置である。シンボル系列記
憶部133は、逆予測変換処理部136から出力される
復号された2値シンボル列を記憶するようになってい
る。
FIG. 22 shows a configuration of a binary arithmetic decoding device for decoding a binary symbol sequence encoded by the binary arithmetic coding device according to the prior art. In FIG. 22, the probability estimation table 130 indicates which optimal probability region 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値算術復号化装置における正規化処理手
順は、図17に示した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】しかしながら、上記のような従来の符号
化,復号化装置においては、図23に示すように、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. 23, the state number / dominant symbol storage section (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 circumstances, and a first object of the present invention is to provide an image data conversion processing method capable of further improving the conversion processing speed of image data. I do.

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

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

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

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

【0036】[0036]

【課題を解決するための手段及び作用】上記課題を解決
する本発明の第1の態様は、所定の情報テーブル(20
1)に記憶された変換パラメータを用いて、順次入力さ
れる画像に関するデータに対して所定の変換処理を行う
画像データ変換処理方法において、n−1番目に入力さ
れたデータの変換処理の間に、n番目のデータに対応す
る変換パラメータを予め情報テーブル(201)から読
み出し、n−1番目のデータの変換処理が終了した時点
で、予め読み出された変換パラメータを用いてn番目の
データの変換処理を行う。
According to a first aspect of the present invention for solving the above-mentioned problems, a predetermined information table (20) is provided.
In the image data conversion processing method of performing a predetermined conversion process on data relating to an image that is sequentially input using the conversion parameters stored in 1), during the conversion process of the (n-1) th input data, , The conversion parameter corresponding to the n-th data is read from the information table (201) in advance, and when the conversion processing of the (n-1) -th data is completed, the conversion parameter of the n-th data is read using the conversion parameter read in advance. Perform conversion processing.

【0037】また、本発明の第2の態様は、順次入力さ
れる画像に関するデータに対して所定の変換処理を行う
画像データ変換処理装置において、各データに対応した
変換パラメータを記憶した情報テーブル(201)と、
情報テーブル(201)に記憶された対応する変換パラ
メータを用いて各データの変換処理を行う変換処理手段
(200)と、n−1番目に入力されたデータの変換処
理の間に、n番目のデータに対応する変換パラメータを
予め情報テーブル(201)から読み出して保持する変
換パラメータ保持手段(201a)とを備えている。そ
して、n−1番目のデータの変換処理が終了した時点
で、変換パラメータ保持手段に保持されている変換パラ
メータを用いてn番目のデータの変換処理を行う。
According to a second aspect of the present invention, there is provided an image data conversion processing apparatus for performing a predetermined conversion process on data relating to an image sequentially input, the information table storing conversion parameters corresponding to each data. 201),
Between the conversion processing means (200) that performs conversion processing of each data using the corresponding conversion parameters stored in the information table (201) and the conversion processing of the (n-1) th input data, A conversion parameter storage unit (201a) is provided for reading conversion parameters corresponding to data from the information table (201) in advance and storing the conversion parameters. Then, when the conversion processing of the (n-1) -th data is completed, the conversion processing of the n-th data is performed using the conversion parameters held in the conversion parameter holding means.

【0038】上記のような本発明の第1及び第2の態様
によれば、直前(n−1番目)の入力データの変換処理
と、当該n番目の入力データの変換パラメータを情報テ
ーブル(201)から読み出す動作を並行して行ってい
るため、画像データ変換処理全体のシステムクロックの
周期を短くすることができ、変換処理の高速化が図れ
る。
According to the first and second aspects of the present invention described above, the conversion processing of the immediately preceding (n-1) th input data and the conversion parameters of the nth input data are stored in the information table (201). ), The period of the system clock of the entire image data conversion process can be shortened, and the speed of the conversion process can be increased.

【0039】上記課題を解決する本発明の第3の態様
は、順次入力される画像データを符号化する符号化装置
において、各入力画像データに対応した符号化パラメー
タを記憶した符号化情報テーブル(224a,224
b,224c)と、符号化情報テーブル(224a,2
24b,224c)に記憶された対応する符号化パラメ
ータを用いて入力画像データの符号化処理を行う符号化
処理手段(220,246)と、n−1番目に入力され
た画像データの符号化処理の間に、n番目に入力された
画像データに対応する符号化パラメータを予め符号化情
報テーブル(224a,224b,224c)から読み
出して保持する符号化パラメータ保持手段(236)と
を備えている。そして、n−1番目の画像データの符号
化処理が終了した時点で、符号化パラメータ保持手段
(236)に保持されている符号化パラメータを用いて
n番目の画像データの符号化処理を行う。
According to a third aspect of the present invention, there is provided an encoding apparatus for encoding sequentially inputted image data, comprising: an encoding information table storing encoding parameters corresponding to each input image data; 224a, 224
b, 224c) and the encoding information table (224a, 2
Encoding processing means (220, 246) for encoding the input image data using the corresponding encoding parameters stored in the corresponding encoding parameters, and encoding processing for the (n-1) th input image data And an encoding parameter holding means (236) for reading in advance and holding the encoding parameters corresponding to the n-th input image data from the encoding information tables (224a, 224b, 224c). Then, when the encoding processing of the (n-1) -th image data is completed, the encoding processing of the n-th image data is performed using the encoding parameters held in the encoding parameter holding means (236).

【0040】上記のような本発明の第3の態様において
も、上記第1及び第2の態様と同様な作用効果を奏す
る。すなわち、画像データ符号化処理全体のシステムク
ロックの周期を短くすることができ、符号化処理の高速
化が図れる。
The above-described third embodiment of the present invention has the same operation and effects as those of the first and second embodiments. That is, the cycle of the system clock of the entire image data encoding process can be shortened, and the encoding process can be speeded up.

【0041】上記第3の態様において、同一の画像デー
タに対応する符号化パラメータが必要に応じて変更され
る適応型の符号化処理を行う構成の場合には、符号化情
報テーブル(224a,224b,224c)は、互い
に等しい情報を記憶した第1の情報テーブル(224
a)及び第2の情報テーブル(224b,224c)か
ら構成することが望ましい。まず、符号化パラメータ保
持手段(236)は、第1及び第2の情報テーブル(2
24a,224b,224c)からそれぞれ読み出され
るn番目の画像データに対して推定される少なくとも2
つの符号化パラメータを保持する。そして、符号化処理
手段(220,246)は、符号化パラメータ保持手段
(236)に保持されている複数の符号化パラメータを
選択的に用いて符号化処理を行う。これにより、直前
(n−1番目)のデータと当該n番目のデータとが同一
の場合にも、n番目のデータの変換パラメータとして非
変更のパラメータ(n−1番目と同一のパラメータ)と
変更後の更新パラメータの両方を推定パラメータとして
保持しておくことができる。
In the third embodiment, in the case of a configuration for performing an adaptive encoding process in which encoding parameters corresponding to the same image data are changed as necessary, the encoding information tables (224a, 224b) , 224c) is a first information table (224) storing information equal to each other.
a) and the second information table (224b, 224c). First, the encoding parameter holding means (236) stores the first and second information tables (2
24a, 224b, 224c), at least 2
Holds two encoding parameters. Then, the encoding processing means (220, 246) performs the encoding process by selectively using the plurality of encoding parameters held in the encoding parameter holding means (236). As a result, even when the immediately preceding (n−1) th data is the same as the nth data, the non-changed parameter (the same parameter as the (n−1) th) is changed as the conversion parameter of the nth data. Both later updated parameters can be held as estimated parameters.

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

【0043】上記課題を解決する本発明の第4の態様
は、上記第3の態様に係る符号化装置によって符号化さ
れた符号データを元の画像データに復号化する復号化装
置において、復号化処理に利用される所定の復号化パラ
メータを記憶した復号化情報テーブル(324a,32
4b,324c)と、復号化情報テーブル(324a,
324b,324c)に記憶された対応する復号化パラ
メータを用いて符号データの復号化処理を行う復号化処
理手段(320,346)と、n−1番目に入力された
符号データの復号化処理の間に、n番目に入力された符
号データに対応する復号化パラメータを予め復号化情報
テーブル(324a,324b,324c)から読み出
して保持する復号化パラメータ保持手段(336)とを
備えている。そして、n−1番目の符号データの復号化
処理が終了した時点で、復号化パラメータ保持手段(3
36)に保持されている復号化パラメータを用いてn番
目の符号データの復号化処理を行う。
A fourth aspect of the present invention for solving the above-mentioned problems is a decoding apparatus for decoding code data coded by the coding apparatus according to the third aspect into original image data. A decoding information table (324a, 32) storing predetermined decoding parameters used for processing.
4b, 324c) and a decryption information table (324a, 324c).
324b, 324c) and decoding processing means (320, 346) for decoding the code data using the corresponding decoding parameters stored in the corresponding decoding parameters. A decoding parameter holding means (336) for reading and holding decoding parameters corresponding to the n-th input code data from the decoding information tables (324a, 324b, 324c) in advance. Then, when the decoding process of the (n-1) th code data is completed, the decoding parameter holding unit (3
The decoding process of the n-th code data is performed using the decoding parameter stored in 36).

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

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

【0046】本発明の更に具体的な第6の態様は、情報
源のシンボル系列の予め定められた位置の複数の参照シ
ンボルを用い、符号化対象シンボルに対するコンテクス
ト(CX)を生成する手段(210)と、コンテクスト
(CX)の状態を示す状態番号(ST)と、符号化対象
シンボルの予測値(MPS)とを記憶する記憶手段(2
04,216)と、順次入力される複数の符号化対象シ
ンボルに対応する複数のコンテクスト(CX)を一時的
に保持するコンテクスト保持手段(203,212)
と、コンテクスト保持手段(203,212)に保持さ
れている複数のコンテクスト(CX)を比較する第1の
比較手段(214)と、記憶手段(204,216)か
ら読み出された符号化対象シンボルの予測値(MPS)
と実際の符号化対象シンボルの値とを比較する第2の比
較手段(222)と、記憶手段(204,216)に記
憶されている状態番号(ST)に対応した確率領域幅
(LSZ)と、当該状態番号(ST)の更新後の値を示
す状態遷移先情報(NMPS,NLPS)とを記憶する
第1の情報テーブル(224a)と、少なくとも第1の
情報テーブルと同一の情報を記憶した第2の情報テーブ
ル(224b,224c)と、第1又は第2の情報テー
ブル(224a,224b,224c)から読み出され
た確率領域幅(LSZ)及び第2の比較手段(222)
による比較の結果に基づいて符号化対象シンボルの符号
化を行うと共に、第1又は第2の情報テーブル(224
a,224b,224c)から読み出された状態遷移先
情報(NMPS,NLPS)に基づいて符号化対象シン
ボルに対するコンテクスト(CX)の状態番号(ST)
及び予測値(MPS)の更新とを行う算術符号化手段
(220)と、記憶手段(204,216)から読み出
された状態番号(ST)及び予測値(MPS)を保持す
る第1のレジスタ(228)と、記憶部(204,21
6)に書き込まれる状態番号(ST)及び予測値(MP
S)を保持する第2のレジスタ(230)と、第2のレ
ジスタ(230)の出力を保持する第3のレジスタ(2
32)と、第1の比較手段(214)の比較結果に基づ
いて、第1,第2又は第3のレジスタ(228,23
0,232)の出力を選択する第1の選択器(238)
と、n−1番目に入力された画像データに対応するコン
テクストの確率領域幅(LSZ)と状態遷移先情報(N
MPS,NLPS)を保持する第4のレジスタ(23
6)とを備えている。
In a further specific sixth aspect of the present invention, a 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 the state of the context (CX), and a predicted value (MPS) of the symbol to be encoded (MPS).
04, 216) and context holding means (203, 212) for temporarily holding a plurality of contexts (CX) corresponding to a plurality of symbols to be encoded which are sequentially input.
And first comparing means (214) for comparing a plurality of contexts (CX) held in the context holding means (203, 212); and encoding target symbols read from the storage means (204, 216). Predicted value (MPS)
Second comparing means (222) for comparing the value of the symbol to be encoded with the actual value of the symbol to be encoded; A first information table (224a) storing state transition destination information (NMPS, NLPS) indicating the updated value of the state number (ST), and at least the same information as the first information table. A second information table (224b, 224c), a probability region width (LSZ) read from the first or second information table (224a, 224b, 224c) and a second comparing means (222)
, The encoding target symbol is encoded based on the result of the comparison, and the first or second information table (224) is encoded.
a, 224b, 224c), the state number (ST) of the context (CX) for the encoding target symbol based on the state transition destination information (NMPS, NLPS) read out
Arithmetic coding means (220) for updating the predicted value (MPS) and a state number (ST) and a predicted value (MPS) read from the storage means (204, 216) (228) and the storage unit (204, 21)
6) written in state number (ST) and predicted value (MP)
S), and a third register (2) holding the output of the second register (230).
32) and the first, second or third register (228, 23) based on the comparison result of the first comparing means (214).
0, 232) output selector (238).
And the probability region width (LSZ) of the context corresponding to the (n-1) th input image data and the state transition destination information (N
MPS, NLPS) in the fourth register (23
6).

【0047】[0047]

【発明の実施の形態】本発明の実施の形態について説明
するに先立ち、本発明の基本概念を図1を参照して説明
する。図1に示す画像データ変換処理装置は、画像に関
する入力データの変換処理に用いられる変換パラメータ
を記憶した変換情報テーブル201と、変換情報テーブ
ル201より読み出された変換パラメータを一時的に保
持するパラメータ保持部201aと、このパラメータ保
持部201aを介して変換情報テーブル201より供給
される変換パラメータを用いて入力データに対して所定
の変換処理を施す変換処理ユニット200と、変換処理
ユニット200及びパラメータ保持部201aを制御す
る制御部202とを備えている。変換情報テーブル20
1は、変換パラメータを静的に記憶したものであり、R
OM(リード・オンリー・メモリ)によって構成するこ
とができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Before describing an embodiment of the present invention, a basic concept of the present invention will be described with reference to FIG. The image data conversion processing device illustrated in FIG. 1 includes a conversion information table 201 storing conversion parameters used for conversion processing of input data relating to an image, and a parameter temporarily storing the conversion parameters read from the conversion information table 201. A storage unit 201a, a conversion processing unit 200 that performs a predetermined conversion process on input data using a conversion parameter supplied from the conversion information table 201 via the parameter storage unit 201a, a conversion processing unit 200, and a parameter storage unit And a control unit 202 for controlling the unit 201a. Conversion information table 20
1 statically stores the conversion parameters, and R
It can be constituted by an OM (read only memory).

【0048】変換情報テーブル201に記憶されている
変換パラメータと対応する入力データとの対応関係が、
必要に応じて変更されるようなケースでは、変換情報テ
ーブル201を同一内容の情報を記憶した複数のテーブ
ルで構成することが望ましい。この場合、パラメータ保
持部201aを複数の変換パラメータを保持可能に構成
するとともに、当該パラメータ保持部201aに保持さ
れた複数の変換パラメータを制御部202によって選択
して変換処理ユニット200に供給するように構成す
る。
The correspondence between the conversion parameters stored in the conversion information table 201 and the corresponding input data is as follows:
In a case where the conversion information table 201 is changed as needed, it is desirable that the conversion information table 201 be constituted by a plurality of tables storing information of the same contents. In this case, the parameter holding unit 201a is configured to hold a plurality of conversion parameters, and the control unit 202 selects the plurality of conversion parameters held in the parameter holding unit 201a and supplies the selected conversion parameters to the conversion processing unit 200. Constitute.

【0049】上記のような構成の変換処理装置におい
て、入力データが読み込まれると、当該入力データに対
応した変換パラメータが変換情報テーブル201から読
み出され、一旦保持部201aに保持された後に変換処
理ユニット200に供給される。そして、変換処理ユニ
ット200は、制御部202の制御により、変換情報テ
ーブル201から読み出された変換パラメータを用いて
入力データに所定の変換処理を施すことにより出力デー
タを得る。このような変換処理の間、次の(直後の)入
力データに対する変換パラメータが、予め変換情報テー
ブル201から読み出され、保持部201aに保持され
る。
In the conversion processing device having the above-described configuration, when the input data is read, the conversion parameters corresponding to the input data are read from the conversion information table 201, and once stored in the holding unit 201a, the conversion processing is performed. It is supplied to the unit 200. Then, under the control of the control unit 202, the conversion processing unit 200 performs predetermined conversion processing on the input data using the conversion parameters read from the conversion information table 201 to obtain output data. During such a conversion process, a conversion parameter for the next (immediate) input data is read from the conversion information table 201 in advance and held in the holding unit 201a.

【0050】そして、直前の入力データに対する変換処
理が終了したら、直ちに保持部201aに保持されてい
る変換パラメータを用いて当該入力データの変換処理を
行う。このように、変換しようとするデータに対応する
変換パラメータは、直前の入力データの変換処理の間に
既に変換情報テーブル201から読み出されている。こ
のため、1つの画像データに対する情報テーブル201
の検索と、他の(直前の)画像データに対する変換処理
とを並行して行うことが可能となる。
When the conversion process for the immediately preceding input data is completed, the input data is immediately converted using the conversion parameters held in the holding unit 201a. As described above, the conversion parameter corresponding to the data to be converted has already been read from the conversion information table 201 during the conversion processing of the immediately preceding input data. Therefore, the information table 201 for one image data
Search and conversion processing for other (immediate) image data can be performed in parallel.

【0051】また、変換情報テーブル201を同一内容
の情報を記憶した複数のテーブルで構成し、パラメータ
保持部201aに保持された複数の変換パラメータを選
択して使用するように構成すれば、入力データと変換パ
ラメータとの対応関係が必要に応じて変更されるよう
な、適応型の変換処理を行う場合にも適用することがで
きる。例えば、画像データに対する変換パラメータが変
換の結果によって順次変更されるような場合、n−1番
目に入力されたデータとn番目に入力されたデータとが
同一の場合には、n−1番目の画像データに対する情報
テーブルの検索が終了した時点では、次のn番目の画像
データの変換パラメータが確定していない。そこで、変
換処理ユニット200でn−1番目の画像データの変換
処理を行っている間、当該n番目の画像データに対して
予想される複数の変換パラメータを変換情報テーブルか
ら予め読み出しておく。そして、n−1番目の画像デー
タに対する変換処理が終了し、n番目の画像データの変
換パラメータが予め変換情報テーブルから読み出してお
いた複数の変換パラメータの何れか確定した時点で、変
換処理ユニット200において当該変換パラメータを用
いてn番目の画像データの変換処理を開始する。このた
め、1つの画像データに対する変換情報テーブル201
の検索と、他の画像データに対する変換処理とを並行し
て行うことができ、システムクロックのサイクルが短く
なり、画像変換処理の速度が向上する。
If the conversion information table 201 is composed of a plurality of tables storing information of the same contents and is configured to select and use a plurality of conversion parameters held in the parameter holding unit 201a, the input data The present invention can also be applied to a case where an adaptive conversion process is performed such that the correspondence between the parameter and the conversion parameter is changed as necessary. For example, when the conversion parameters for the image data are sequentially changed according to the result of the conversion, and when the data input in the (n-1) th is the same as the data input in the nth, the (n-1) th When the search of the information table for the image data is completed, the conversion parameter of the next n-th image data has not been determined. Therefore, while the conversion processing unit 200 is performing the conversion processing on the (n-1) th image data, a plurality of conversion parameters expected for the nth image data are read from the conversion information table in advance. Then, when the conversion process for the (n-1) th image data is completed and one of the plurality of conversion parameters read out from the conversion information table in advance is determined as the conversion parameter of the nth image data, the conversion processing unit 200 , The conversion process of the n-th image data is started using the conversion parameter. Therefore, the conversion information table 201 for one image data
Can be performed in parallel with the conversion processing for other image data, the cycle of the system clock is shortened, and the speed of the image conversion processing is improved.

【0052】[0052]

【実施例】次に、本発明について実施例を用いて更に詳
細に説明する。本発明の第1実施例は、2値画像を適応
型算術符号化方式によって符号化する符号化装置に本発
明の技術的思想を適用したものであり、その構成を図2
に示す。本実施例の符号化装置は、入力シンボルデータ
を2値シンボル列として入力するシンボル系列読み取り
部206と、シンボル系列読み取り部206の出力に接
続されたシンボル系列記憶部208と、シンボル系列記
憶部208の出力に接続された画像参照シンボル選択部
210と、画像参照シンボル選択部210の出力に接続
されたコンテクストバッファ203と、コンテクストバ
ッファ203の出力に接続された検出器214と、アド
レス端子ADがコンテクストバッファ203の出力に接
続されたシングルポートメモリ204(状態番号/優勢
シンボル記憶部)と、検出器214の出力とシングルポ
ートメモリ204とに接続されたリード/ライト制御部
205と、検出器214の出力に接続されると共に、シ
ングルポートメモリ204の読み出しデータ端子RDT
及び書き込みデータ端子WDTに接続された算術符号化
部220と、シンボル系列記憶部208の出力と算術符
号化部220に接続された予測変換処理部222と、算
術符号化部220にそれぞれ接続された3つの確率推定
テーブル224a,224b,224cとを備えてい
る。
Next, the present invention will be described in more detail with reference to examples. In the first embodiment of the present invention, the technical idea of the present invention is applied to a coding apparatus for coding a binary image by an adaptive arithmetic coding method.
Shown in The encoding apparatus according to the present embodiment includes a symbol sequence reading unit 206 that inputs input symbol data as a binary symbol sequence, a symbol sequence storage unit 208 connected to an output of the symbol sequence reading unit 206, and a symbol sequence storage unit 208. Are connected to the output of the image reference symbol selection unit 210, the context buffer 203 connected to the output of the image reference symbol selection unit 210, the detector 214 connected to the output of the context buffer 203, and the address terminal AD. A single port memory 204 (state number / dominant symbol storage unit) connected to the output of the buffer 203; a read / write control unit 205 connected to the output of the detector 214 and the single port memory 204; Connected to the output and the single port memory 204 Read data terminals RDT
And an arithmetic coding unit 220 connected to the write data terminal WDT, an output of the symbol sequence storage unit 208 and a predictive conversion processing unit 222 connected to the arithmetic coding unit 220, and an arithmetic coding unit 220. It has three probability estimation tables 224a, 224b, 224c.

【0053】上記のような構成の符号化装置において、
シンボル系列記憶部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).

【0054】コンテクストバッファ203は、画像参照
シンボル選択部210から順次出力されるコンテクスト
データを保持し、連続する4つのコンテクストデータを
バッファリングする。図3に示すように、コンテクスト
バッファ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 unit 210 and buffers four consecutive context data. As shown in FIG. 3, 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.

【0055】検出器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を示す。
Detector 214 outputs context data (C) sequentially output from image reference symbol selection section 210.
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.

【0056】シングルポートメモリ204(状態番号/
優勢シンボル記憶部)は、全ての組み合わせのコンテク
ストの状態番号(ST)とMPS(優勢シンボル)値を
記憶する。そして、コンテクストバッファ203で保持
されているコンテクストデータの中の最新のコンテクス
トCX1(図3参照)と、最も過去に入力されたコンテ
クストCX4(図3参照)の何れか一方をシングルポー
トメモリ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. 3) in the context data held in the context buffer 203 and the context CX4 (see FIG. 3) input most recently is stored in the address of the single port memory 204. And

【0057】リード/ライト制御部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 is connected to 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.

【0058】予測変換処理部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) expected to have a high probability of occurrence in the context (prediction error: 0, and 1) is output if they do not match.

【0059】確率推定テーブル224aは、コンテクス
トCXの状態を示す状態番号(ST)に対応して予め定
められたLPS(劣勢シンボル)の確率領域の大きさ
(LSZ)と、状態遷移情報(NMPS,NLPS,Sw
itch)とを記憶している。ここで、LPSはコンテクス
ト内の出現確率が低いと予想される劣勢シンボルを示
し、NMPSは符号化対象シンボルが優勢シンボルMP
Sであった場合に次に適用される状態番号を示し、NL
PSは符号化対象シンボルが劣勢シンボルLPSであっ
た場合に次に適用される状態番号を示し、Switch は優
勢シンボルMPSと劣勢シンボルLPSの交換指令を示
すものとする。確率推定テーブル224b,224c
は、算術符号化部220からの出力である状態遷移情報
(NMPS,NLPS)をアドレスとするものであり、
確率推定テーブル224aと同じ内容を記憶している。
算術符号化部220は、符号化対象シンボルの符号出力
と、各コンテクストに対する状態番号STとMPS値の
更新演算とを行うものである。
The probability estimation table 224a includes a predetermined size (LSZ) of a probability region of an LPS (inferior symbol) corresponding to a state number (ST) indicating a state of the context CX and state transition information (NMPS, NLPS, Sw
itch). Here, LPS indicates the inferior symbol expected to have a low occurrence probability in the context, and NMPS indicates that the encoding target symbol is the superior symbol MP
Indicates the next state number to be applied if S, NL
PS 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. Probability estimation tables 224b, 224c
Is an address using state transition information (NMPS, NLPS) output from the arithmetic coding unit 220 as an address.
The same contents as those in the probability estimation table 224a are stored.
The arithmetic coding unit 220 performs code output of the symbol to be coded, and updates the state number ST and MPS value for each context.

【0060】図4は、上記のように構成された本発明の
第1実施例において、連続するコンテクスト#1と#2
が等しい場合の動作例を示す。図において、コンテクス
ト#1は、サイクル1でシングルポートメモリ(状態番
号/予測値記憶部)204の読み出しアドレスとなる。
サイクル2では、シングルポートメモリ204から読み
出された状態番号ST1が確率推定テーブル224aの
読み出しアドレスとなり、状態番号ST1に対応したデ
ータLSZ1,NMPS1,NLPS1を読み出す。サ
イクル3では、確率推定テーブル224aから読み出さ
れたデータLSZを用いて符号化対象シンボルの符号化
処理を行うと共に、状態番号ST1の遷移先NST1を
求める。サイクル4では、コンテクスト#1に対する状
態遷移先NST1をレジスタに保持する。
FIG. 4 is a block diagram showing a configuration of 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 224a, and data LSZ1, NMPS1, and NLPS1 corresponding to the state number ST1 are read. In cycle 3, the encoding target symbol is encoded using the data LSZ read from the probability estimation table 224a, 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.

【0061】一方、コンテクスト#1の次に入力された
コンテクスト#2は、サイクル2でシングルポートメモ
リ(状態番号/予測値記憶部)204の読み出しアドレ
スとなる。(読み出しアドレスとなるだけで、読み出し
動作は行わない。)サイクル3では、直前のコンテクス
ト#1の状態遷移先が未確定なため、遷移先の候補とし
てST1,NMPS1,NLPS1をアドレスとして確
率推定テーブル224a,224b,224cからそれ
ぞれ対応するデータを読み出す。サイクル4でコンテク
スト#1に対する状態遷移先NST1が決まった時点
で、先に読み出しておいた確率推定テーブル224a,
224b,224cの内容の内、当該NST1に対応す
るものを選択する。そして、選択したデータに基づいて
コンテクスト#2の符号化処理と状態番号ST2(NS
T1)の更新を行い、コンテクスト#2に対する状態遷
移先NST2を求める。サイクル5で、状態遷移先NS
T2をレジスタに保持する。
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 and the read operation is not performed.) In cycle 3, since the state transition destination of the immediately preceding context # 1 is undetermined, ST1, NMPS1, and NLPS1 are used as transition destination candidates as addresses in the probability estimation table. The corresponding data is read from 224a, 224b, and 224c. When the state transition destination NST1 for context # 1 is determined in cycle 4, the probability estimation table 224a,
Among the contents of 224b and 224c, the one corresponding to the NST1 is selected. Then, based on the selected data, the encoding process of context # 2 and the state number ST2 (NS
T1) is updated, and a state transition destination NST2 for context # 2 is obtained. In cycle 5, state transition destination NS
T2 is held in the register.

【0062】図5は、上記第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
aから読み出す。サイクル3では、確率推定テーブル2
24aから読み出されたデータに基づいて、コンテクス
ト#1に対応する符号化対象シンボルの符号化を行うと
共に、コンテクスト#1の状態番号ST1の更新値を求
める。サイクル4では、サイクル3で求められた状態番
号ST1の更新値をシングルポートメモリ204の書き
込みアドレスとする。コンテクスト#2についても、コ
ンテクスト#1と同様に処理される。
FIG. 5 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 a. In cycle 3, the probability estimation table 2
Based on the data read from 24a, the encoding target symbol corresponding to context # 1 is encoded, and the updated value of state number ST1 of 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.

【0063】コンテクスト#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.

【0064】コンテクスト#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.

【0065】コンテクスト#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.

【0066】図6は、本発明の第2の実施例にかかる適
応型算術方式の符号化装置を示し、上記第1の実施例と
共通又は対応する構成部分については同一の符号を付
す。本実施例の符号化装置は、図2に示す第1の実施例
の符号化装置におけるシングルポートメモリ204に代
えてデュアルポートメモリ216を採用したものであ
り、多くの構成要素を共通とする。そこで、本実施例に
おいては、上記第1実施例との相違部分についてのみ詳
細に説明し、他の共通部分についての詳細な説明は省略
する。
FIG. 6 shows an adaptive arithmetic coding apparatus according to a second embodiment of the present invention, in which components identical or corresponding to those in 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. 2, 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.

【0067】本実施例の符号化装置は、入力シンボルデ
ータを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にそれぞれ接続された3
つの確率推定テーブル224a,224b,224cと
を備えている。
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 The predictive conversion processing unit 222 connected to the arithmetic coding unit 220, and the three prediction conversion units 222 connected to the arithmetic coding unit 220, respectively.
And two probability estimation tables 224a, 224b, 224c.

【0068】コンテクストバッファ212は、図7に示
すように、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. 7, 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.

【0069】デュアルポートメモリ216(状態番号/
優勢シンボル記憶部)は、全ての組み合わせのコンテク
ストの状態番号(ST)とMPS(優勢シンボル)値を
記憶する。そして、コンテクストバッファ212で保持
されているコンテクストデータの中の最新のコンテクス
トCX1(図7参照)を読み出しアドレスとし、最も過
去に入力されたコンテクストCX4(図7参照)を書き
込みアドレスとする。なお、読み出しアドレスRADに
対するデータの読み出しと、書き込みアドレスWADに
対するデータ書き込みが同時実行可能な構成となってい
る。デュアルポートメモリ216の記憶データは、図1
5に示す通りであり、STは後に詳述する確率推定テー
ブル224aの読み出しアドレスとなる状態番号を示
す。
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. 7) in the context data held in the context buffer 212 is set as a read address, and the context CX4 (see FIG. 7) 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. 5, ST indicates a state number serving as a read address of the probability estimation table 224a described in detail later.

【0070】リード/ライト制御部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 is connected to 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 and 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.

【0071】算術符号化部220は、符号化対象シンボ
ルの符号出力と、各コンテクストに対する状態番号ST
とMPS値の更新演算とを行うものであり、図8にその
詳細を示す。本実施例の算術符号化部220は、5つの
レジスタ228,230,232,234,236と、
4つの選択器(マルチプレクサ)238,240,24
2,244と、符号出力及び状態番号更新演算部246
と、書き込みデータ選択回路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. 8 shows the details. The arithmetic coding unit 220 of the present embodiment includes five registers 228, 230, 232, 234, 236,
Four selectors (multiplexers) 238, 240, 24
2, 244, code output and state number update operation unit 246
, A write data selection circuit 248, and an exclusive OR circuit 250.

【0072】このような算術符号化部220において、
レジスタ228の入力端子にはデュアルポートメモリ2
16の読み出しデータ端子RDTが接続され、当該レジ
スタ228の出力端子には選択器238の入力端子が接
続されている。選択器238の他の入力端子には、レジ
スタ232の出力端子と、レジスタ230の出力端子
と、レジスタ234の出力端子とがそれぞれ接続されて
いる。また、選択器238の出力端子には、確率推定テ
ーブル224aのアドレス端子と、選択器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. The output terminal of the selector 238 is connected to the address terminal of the probability estimation table 224a and the 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. .

【0073】ここで、選択器240の1つの入力端子に
は、レジスタ234の出力信号(MPS,ST)の両方
がそのまま入力されるが、他の1つの入力端子には、レ
ジスタ234の出力(MPS,ST)の内の優勢シンボ
ルMPSと、レジスタ236の出力信号(NMPS,N
LPS,LSZ,Switch)の内のNMPSとの合成信号
(MPS,NMPS)が供給される。また、選択器24
0の残りの1つの入力端子には、排他的論理和回路25
0の出力信号(MPS’)と、レジスタ236の出力信
号(NMPS,NLPS,LSZ,Switch)の内のNL
PSとの合成信号(MPS’,NLPS)が供給され
る。また、選択器240の制御端子には、書き込みデー
タ選択回路248の出力が接続されている。
Here, the output signal (MPS, ST) of the register 234 is directly input to one input terminal of the selector 240, while the output (MPS, ST) of the register 234 is input to the other input terminal. MPS, ST) and the output signal (NMPS, N
A combined signal (MPS, NMPS) with NMPS among LPS, LSZ, and Switch) is supplied. Also, the selector 24
0 is connected to the exclusive OR circuit 25.
0 of the output signal (MPS ′) and NL of the output signal (NMPS, NLPS, LSZ, Switch) of the register 236.
A composite signal (MPS ′, NLPS) with the PS is supplied. The output of the write data selection circuit 248 is connected to the control terminal of the selector 240.

【0074】選択器244の3つの入力端子には、確率
推定テーブル224a,224b,224cの出力がそ
れぞれ接続され、当該選択器244の出力端子にはレジ
スタ236の入力が接続されている。
The outputs of the probability estimation tables 224a, 224b and 224c are respectively connected to three input terminals of the selector 244, and the input of the register 236 is connected to the output terminal of the selector 244.

【0075】レジスタ236の出力端子には、確率推定
テーブル224b,224cと、上述した選択器240
と、符号出力及び状態番号更新演算部246と、排他的
論理和回路250とが接続されている。ここで、確率推
定テーブル224bには、レジスタ236の出力信号
(NMPS,NLPS,LSZ,Switch)の内のNLP
Sが、確率推定テーブル224cにはNMPSが、排他
的論理和回路250にはSwitch が、符号出力及び状態
番号更新演算部246にはLSZが供給される。
The output terminals of the register 236 have the probability estimation tables 224b and 224c and the selector 240
, A code output and state number update operation unit 246, and an exclusive OR circuit 250. Here, the NLP of the output signals (NMPS, NLPS, LSZ, Switch) of the register 236 is stored in the probability estimation table 224b.
S, NMPS is supplied to the probability estimation table 224c, Switch is supplied to the exclusive OR circuit 250, and LSZ is supplied to the code output and state number update operation unit 246.

【0076】次に、本実施例の算術符号化部220の各
構成要素の作用(機能)について更に詳細に説明する。
レジスタ228はデュアルポートメモリ216から読み
出されたデータを保持し、レジスタ230はデュアルポ
ートメモリ216に書き込まれるデータ、すなわち、コ
ンテクストバッファ212に保持されたコンテクストC
X4に対応した更新後の状態番号ST(CX4)とMP
S(CX4)値を保持する。また、コンテクストバッフ
ァ212に保持されているコンテクストCX3の状態番
号ST(CX3)とMPS(CX3)値は、レジスタ2
34に保持される。レジスタ236は、レジスタ234
が保持する状態番号STに対応した確率推定テーブル2
24a,224b又は224cの内容(劣勢シンボルの
確率領域の大きさLSZ及び状態遷移情報NMPS,N
LPS,Switch)を保持する。レジスタ236から出力
されるNLPS値は、確率推定テーブル224bのアド
レスとして入力され、NMPS値は確率推定テーブル2
24cのアドレスとして入力される。レジスタ232
は、レジスタ230の出力を保持するレジスタなので、
コンテクストCX4より1クロック前に入力した(つま
り、CX2より3クロック前に入力した)コンテクスト
の更新後の状態番号とMPS値を保持する。なお、図7
及び図8中に示したレジスタは全て同一のシステムクロ
ックで動作する。
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
Estimation table 2 corresponding to the state number ST held by
24a, 224b or 224c (the size LSZ of the probability region of the inferior symbol and the state transition information NMPS, N
LPS, Switch). The NLPS value output from the register 236 is input as an address of the probability estimation table 224b, and the NMPS value is
24c. 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. FIG.
All the registers shown in FIG. 8 operate with the same system clock.

【0077】選択器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は、確率推定テーブル
224aのアドレス入力となる。
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 an address input of the probability estimation table 224a.

【0078】符号出力及び状態番号更新演算部246で
は、レジスタ236からの劣勢シンボルLPSの確率領
域幅LSZと予測変換処理部222からの予測誤差値か
ら、算術符号化演算を行い符号出力を行うとともに、状
態番号の更新演算を行う。排他的論理和回路250は、
レジスタ236から出力される Switch 情報が1の時、
レジスタ234から出力されるMPS値を反転する。ま
た、選択器240では、レジスタ234から出力される
MPS値とST値の信号(MPS,ST)と、レジスタ
234から出力される信号(MPS,ST)の内のMP
S値とレジスタ236から出力されるNMPS値を合わ
せた信号(MPS,NMPS)と、排他的論理和回路2
50から出力されるMPS’値とレジスタ236から出
力されるNLPS値を合わせた信号(MPS’,NLP
S)とから当該選択器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, ST) output from the register 234 and the MPS signal (MPS, ST) output from the register 234 are output.
A signal (MPS, NMPS) obtained by combining the S value and the NMPS value output from the register 236, and the exclusive OR circuit 2
A signal (MPS ′, NLPS) obtained by combining the MPS ′ value output from the register 50 and the NLPS value output from the register 236
S), the output signal of the selector 240 is selected. Then, the data selected by the selector 240 is held in the register 230.

【0079】書き込みデータ選択回路248では、予測
変換処理部222からの予測誤差値と符号出力および状
態番号更新演算部246の演算結果に基づき、選択器2
40の選択信号(sel_wdt)を生成する。例え
ば、予測誤差が0でA−LSZ<0x8000ならば
(MPS,NMPS)を、予測誤差が0でA−LSZ>
=0x8000ならば(MPS,ST)を、予測誤差1
ならば(MPS’,NLPS)をそれぞれ選択する。な
お、具体的な算術処理は、従来技術の項で示した方式と
同じ方式のものを適用でき、当該演算処理の詳細な説明
はここでは省略する。
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, then (MPS, NMPS), and if the prediction error is 0 and A-LSZ>
= 0x8000, (MPS, ST) is calculated with prediction error 1
If so, select (MPS ', NLPS) respectively. 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.

【0080】選択器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に対する状態番号STはレジ
スタ234に保持されており、該状態番号STに対応す
る状態遷移先番号とMPS値(コンテクストデータCX
2に対する状態番号、MPS値)がST,NLPS,N
MPSの何れになるか選択器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 ST 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 and the MPS value (context data CX
ST, NLPS, N)
One of the MPSs 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.

【0081】選択器244においては、確率推定テーブ
ル224aの出力と、確率推定テーブル224bの出力
と、確率推定テーブル224cの出力との中から1つが
選択され、選択されたデータはレジスタ236に保持さ
れる。選択器244の選択動作を制御する選択信号は、
検出器214の出力EQ23と書き込みデータ選択回路
248の出力(sel_wdt)に基づいて生成され
る。例えば、EQ23=0の時、すなわち、コンテクス
トバッファ212に保持されているコンテクストデータ
CX2とCX3が等しくない場合には、コンテクストデ
ータCX2に対応する更新済みの最新の状態番号は確定
しており、レジスタ228,230,232の何れかに
保持されており、いずれのレジスタに保持されているか
の選択は選択器238で行われ、選択器238の出力は
確率推定テーブル224aのアドレス入力となっている
ため、選択器244は確率推定テーブル224aの出力
を選択する。
The selector 244 selects one of the output of the probability estimation table 224a, the output of the probability estimation table 224b, and the output of the probability estimation table 224c, and the selected data is held in the register 236. You. The selection signal that controls the selection operation of the selector 244 is:
It 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, that is, 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 the register 228, 230, and 232, and which register is held is selected by the selector 238, and the output of the selector 238 is an address input of the probability estimation table 224a. , Selector 244 selects the output of probability estimation table 224a.

【0082】一方、EQ23=1の時、すなわち、コン
テクストバッファ212に保持されているコンテクスト
データCX2とCX3が等しい場合には、コンテクスト
データCX2と同一値のコンテクストデータCX3に対
する状態番号STは、レジスタ234に保持されてお
り、該状態番号STに対応する状態遷移先番号(コンテ
クストCX2に対する状態番号)がST,NLPS,N
MPSの何れになるか選択器240にて選択中である。
そこで、コンテクストデータCX3の状態遷移先番号の
選択処理に並行して、コンテクストデータCX2の状態
番号に対応したLPSの確率領域の大きさLSZ及び状
態遷移情報を求める。
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 ST for the context data CX3 having the same value as the context data CX2 is set to the register 234. And the state transition destination number (the state number for the context CX2) corresponding to the state number ST is ST, NLPS, N
One of the MPSs 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 size LSZ of the probability region of the LPS corresponding to the state number of the context data CX2 and the state transition information are obtained.

【0083】すなわち、コンテクストデータCX2の状
態番号はST、NLPS、NMPSの何れかになるの
で、レジスタ234から出力されるSTが確率推定テー
ブル224aのアドレス入力となるように選択器238
にてレジスタ234の出力を選択する。そして、レジス
タ236から出力されるNLPSとNMPSをそれぞれ
確率推定テーブル224bと確率推定テーブル224c
のアドレス入力とし、確率推定テーブル224a、確率
推定テーブル224b、確率推定テーブル224cから
の読み出しデータをsel_wdt信号に基づいて選択
器244にて選択する。最終的に、選択器240におい
て(MPS,ST)が選択されると、選択器244では
確率推定テーブル224aの出力を選択し、選択器24
0において(MPS’,NLPS)が選択されると、選
択器244では確率推定テーブル224bの出力を選択
し、選択器240において(MPS,NMPS)が選択
されると、選択器244では確率推定テーブル224c
の出力を選択する。
That is, since the state number of the context data CX2 is any one of ST, NLPS and NMPS, the selector 238 is set so that the ST output from the register 234 becomes the address input of the probability estimation table 224a.
Selects the output of the register 234. Then, the NLPS and NMPS output from the register 236 are stored in the probability estimation tables 224b and 224c, respectively.
And the selector 244 selects data read from the probability estimation table 224a, the probability estimation table 224b, and the probability estimation table 224c based on the sel_wdt signal. Finally, when (MPS, ST) is selected in the selector 240, the selector 244 selects the output of the probability estimation table 224a, and
When (MPS ', NLPS) is selected at 0, the selector 244 selects the output of the probability estimation table 224b. When (MPS, NMPS) is selected at the selector 240, the selector 244 selects the output of the probability estimation table. 224c
Select the output of

【0084】次に、上記実施例の動作例を、図9に示す
タイミングチャートに沿って説明する。図9において、
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. In FIG.
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. The read signal R and the write signal W are both signals in which the HIGH state indicates active.

【0085】最初に、コンテクスト#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を確率推
定テーブル224aのアドレス入力とする。選択器24
2も、EQ23=0(#4≠#3)であるため、選択器
238の出力、すなわち、レジスタ228の出力を選択
する。選択器244もEQ23=0(#4≠#3)であ
るため、確率推定テーブル224aの出力を選択する。
First, consider processing 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 224a. Selector 24
2 also selects the output of the selector 238, that is, the output of the register 228, because EQ23 = 0 (# 4 ≠ # 3). Since the selector 244 also has EQ23 = 0 (# 4 ≠ # 3), the selector 244 selects the output of the probability estimation table 224a.

【0086】次に、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.

【0087】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.

【0088】次に、コンテクスト#5に対する処理を考
える。コンテクスト#5は、Cycle2 でデュアルポート
メモリ216の読み出しアドレス(CX1)になってい
るが、コンテクストバッファ212に先に入力されてい
るコンテクスト#4と同一値である(#5=#4)。す
なわち、検出器214の出力において、EQ12=1と
なるため、リード/ライト制御部218の読み出し信号
Rが非アクティブになり、データの読み出しは行われな
い。
Next, consider the processing 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.

【0089】Cycle 3 では、EQ23=1となっている
ため、選択器238はコンテクスト#4の状態番号を保
持しているレジスタ234の出力を選択し、選択器24
2はコンテクスト#5の状態番号となるコンテクスト#
4の状態遷移先を選択している選択器240の出力を選
択する。選択器244は、確率推定テーブル224aの
出力か、確率推定テーブル224bの出力か、確率推定
テーブル224cの出力を選択する。何れの出力を選択
するかは、前述したようにコンテクスト#4の状態遷移
先の決定にリンクする。Cycle 3 では、コンテクスト#
4の状態遷移先が決定されるため、同時にコンテクスト
#4と同一値のコンテクスト#5に対する状態番号と状
態遷移情報、および劣勢シンボルLPSの確率領域幅L
SZも決定する。
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 selects the output of the probability estimation table 224a, the output of the probability estimation table 224b, or the output of the probability estimation table 224c. Which output is selected is linked to the determination of the state transition destination of the context # 4 as described above. In Cycle 3, context #
4, the state number and the state transition information for the context # 5 having the same value as the context # 4 and the probability region width L of the inferior symbol LPS are determined at the same time.
SZ is also determined.

【0090】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.

【0091】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.

【0092】次に、コンテクスト#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.

【0093】Cycle 4 では、dl_EQ14=1、EQ
24=0となっているため、コンテクスト#6の状態番
号であるコンテクスト#3の更新の状態番号(なぜな
ら、#6=#3)を保持しているレジスタ232の出力
が選択器238によって選択され、確率推定テーブル2
24aのアドレス入力となる。EQ23=0(#6≠#
5)であるため、選択器242は選択器238の出力、
すなわちレジスタ232の出力を選択する。また、EQ
23=0(#6≠#5)であるため、選択器244は確
率推定テーブル224aの出力を選択する。
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
24a is an address input. 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 selects the output of the probability estimation table 224a.

【0094】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 the 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.

【0095】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.

【0096】次に、コンテクスト#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.

【0097】Cycle 5 では、EQ24=1、EQ23=
0となっているため、コンテクスト#7の状態番号であ
るコンテクスト#5の更新後の状態番号(なぜなら、#
7=#5)を保持しているレジスタ230の出力が選択
器238によって選択され、確率推定テーブル224a
のアドレス入力となる。EQ23=0(#7≠#6)で
あるため、選択器242は選択器238の出力、すなわ
ちレジスタ230の出力を選択する。EQ23=0(#
7≠#6)であるため、選択器244は確率推定テーブ
ル224aの出力を選択する。
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 the probability estimation table 224a is selected.
Address input. 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 (#
Since 7 ≠ # 6), the selector 244 selects the output of the probability estimation table 224a.

【0098】Cycle6においては、選択器242の
出力がコンテクスト#7の状態番号としてレジスタ23
4に保持される。選択器244の出力は、コンテクスト
#7の状態遷移情報および劣勢シンボルLPSの確率領
域幅LSZとしてレジスタ236に保持される。これら
のレジスタ234,236が保持するデータに基づき、
符号出力及び状態番号更新演算部246は演算処理を行
い、選択器240にコンテクスト#7の状態番号の更新
選択を指示する。
In the cycle 6, the output of the selector 242 is set as the state number of the context # 7 in the register 23.
4 is held. The output of the selector 244 is held in the register 236 as the state transition information of the context # 7 and the probability area 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 operation unit 246 performs an operation process, and instructs the selector 240 to select the update of the state number of the context # 7.

【0099】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.

【0100】デュアルポートメモリ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).

【0101】以上に述べたような動作を繰り返しながら
符号化対象シンボルに対応するコンテクストの状態番号
STとMPS値を更新しながら符号出力を行う。図9に
示したタイミングチャートを簡略化すると図10のよう
になる。図10より分かるように、本実施例において
は、別々の符号化対象シンボルのコンテクストに対し
て、デュアルポートメモリ216(状態番号/優勢シン
ボル記憶部)の読み出しと、確率推定テーブルの検索、
状態番号/MPS値の更新演算と、デュアルポートメモ
リ216(状態番号/優勢シンボル記憶部)への書き込
みの処理とを並行して同時に行うことができる。
Code output is performed while updating the state number ST and MPS value of the context corresponding to the encoding target symbol while repeating the above-described operation. The timing chart shown in FIG. 9 is simplified as shown in FIG. As can be seen from FIG. 10, 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.

【0102】図11は、本発明の第3実施例にかかる復
号化装置の構成を示す。この復号化装置は、図6に示し
た符号化装置に対応するものであり、当該符号化装置に
よって符号化された符号データを元の画像データに復号
する装置である。本実施例の復号化装置は、シンボル系
列記憶部308と、画像参照シンボル選択部310と、
コンテクストバッファ312と、検出器314と、デュ
アルポートメモリ(状態番号/優勢シンボル記憶部)3
16と、リード/ライト制御部318と、算術復号化部
320と、逆予測変換処理部322と、3つの確率推定
テーブル324a,324b,324cとを備えてい
る。この復号化装置は、図6の符号化装置と殆ど同じ構
成であり、重複した説明を避けるため、上記実施例の符
号化装置と同一の構成要素についての詳細な説明は省略
する。
FIG. 11 shows the 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. 6, 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 three probability estimation tables 324a, 324b, 324c. This decoding device has almost the same configuration as that of the encoding device of FIG. 6, and in order to avoid redundant description, detailed description of the same components as those of the encoding device of the above embodiment is omitted.

【0103】確率推定テーブル324a,324b,3
24cは、コンテクストの各状態において劣勢シンボル
LPSに対してどの程度の確率領域を割り当てるのが最
適か、正規化が発生した場合の状態遷移先としてはどの
状態番号が適当かを統計的に求めて作成されたテーブル
であり、符号化装置の確率推定テーブル224a,22
4b,224cと同一である。また、デュアルポートメ
モリ316は、符号化装置におけるデュアルポートメモ
リ216と同様なフォーマットおよびデータを持つ記憶
装置である。
The probability estimation tables 324a, 324b, 3
24c statistically obtains what degree of probability area is optimally assigned 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. This is a created table, which is a probability estimation table 224a, 22 of the encoding device.
4b and 224c. 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.

【0104】算術復号化部320には、入力符号データ
と、デュアルポートメモリ316から読み出された状態
番号/MPS値と、確率推定テーブル(324a,32
4b又は324c)から読み出された劣勢シンボルLP
Sの出現確率領域幅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 probability estimation table (324a, 32
4b or 324c)
S appearance probability area width LSZ / 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.

【0105】逆予測変換処理部322は、算術復号化部
320からの出力信号に基づき、復号化シンボルを出力
する。逆予測変換処理部322から出力された復号化シ
ンボルは、シンボル系列記憶部308に記憶される。
[0105] 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.

【0106】図12は、算術復号化部320の構成を示
す。本実施例の算術復号化部320は、5つのレジスタ
328,330,332,334,336と、4つの選
択器(マルチプレクサ)338,340,342,34
4と、符号入力及び状態番号更新演算部346と、書き
込みデータ選択回路348と、排他的論理和回路350
とを備えている。この算術復号化部320は、図8の算
術符号化部220と殆ど同じ構成であり、重複した説明
を避けるため、上記実施例の算術符号化部220と同一
の構成要素についての説明は省略する。図8に示した算
術符号化部220と異なるのは、符号入力及び状態番号
更新演算部346と書き込みデータ選択回路348であ
る。
FIG. 12 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. . The difference from the arithmetic coding unit 220 shown in FIG. 8 is a code input / state number update calculation unit 346 and a write data selection circuit 348.

【0107】書き込みデータ選択回路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.

【0108】以上、本発明の実施例について説明した
が、本発明はこれらの実施例に限定されるものではな
く、特許請求の範囲に示された本発明の技術的思想とし
ての要旨を逸脱しない範囲で種々の変更が可能である。
すなわち、本発明は算術方式の符号化や復号化装置に限
定されるものではなく、画像データに対して所定の変換
処理を行う種々の装置に適用可能である。
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 described in the appended claims. Various changes are possible within the scope.
That is, the present invention is not limited to arithmetic coding and decoding devices, but can be applied to various devices that perform a predetermined conversion process on image data.

【0109】[0109]

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

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

【図1】図1は、本発明の画像変換処理装置の基本概念
を示すブロック図である。
FIG. 1 is a block diagram showing a basic concept of an image conversion processing device according to the present invention.

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

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

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

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

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

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

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

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

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

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

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

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

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

【図15】図15は、図14に示す従来の適応型算術符
号化装置の状態番号/優勢シンボル記憶部の記憶データ
の内容を示す説明図である。
FIG. 15 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】図16は、算術符号化装置(復号化装置)に
おける確率領域減算処理の概念を示す説明図である。
FIG. 16 is an explanatory diagram showing a concept of a probability region subtraction process in an arithmetic coding device (decoding device).

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

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

【図19】図19は、算術符号化装置(復号化装置)に
おいて、MPS(優勢シンボル)が連続して発生した場
合におけるLPS(劣勢シンボル)の領域幅LSZが比
較的小さい場合の減算処理及び正規化処理の概念を示す
説明図である。
FIG. 19 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 apparatus (decoding apparatus). It is explanatory drawing which shows the concept of a normalization process.

【図20】図20は、算術符号化装置(復号化装置)に
おいて、LPS(劣勢シンボル)が連続して発生した場
合におけるLPS(劣勢シンボル)の領域幅LSZが比
較的大きい場合の減算処理及び正規化処理の概念を示す
説明図である。
FIG. 20 is a diagram illustrating a subtraction process performed when an LPS (inferior symbol) region width LSZ is relatively large 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.

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

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

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

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

200・・・変換処理ユニット 201・・・変換情報テーブル 201a・・・変換パラメータ保持部 202・・・制御部 204・・・シングルポートメモリ 210,310・・・画像参照シンボル選択部 212,312・・・コンテクストバッファ 214,314・・・検出器 216,316・・・デュアルポートメモリ 220・・・算術符号化部 222・・・予測変換処理部 224a,224b,224c,324a,324b,
324c・・・確率推定テーブル 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 conversion processing unit 224a, 224b, 224c, 324a, 324b
324c: Probability estimation table 228, 230, 232, 234, 236, 328, 3
30, 332, 3343, 336... Registers 238, 240, 242, 244, 338, 340, 3
42, 344... Selector

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平10−65925(JP,A) 特開 平8−256268(JP,A) 特開 平9−233346(JP,A) 特開 平9−148941(JP,A) 特開 平9−130617(JP,A) 特開 平10−13693(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 H03M 7/40 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-10-92525 (JP, A) JP-A-8-256268 (JP, A) JP-A-9-233346 (JP, A) JP-A-9-925 148941 (JP, A) JP-A-9-130617 (JP, A) JP-A-10-13693 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H04N 1/41-1 / 419 H03M 7/40

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像データを適応型算術符号化方式に従っ
て符号化する符号化装置において, 符号化対象シンボルに対して予め定められた位置の複数
の参照シンボルを選択してコンテクストを生成する参照
シンボル選択部(210)と; 前記参照シンボル選択部(210)から順次出力される
コンテクストのうち、少なくとも直前に入力された先の
コンテクストを保持するコンテクストバッファー(20
3,212)と; 前記参照シンボル選択部(210)から出力された最新
のコンテクストと前記コンテクストバッファー(20
3,212)に保持されている先のコンテクストの少な
くとも1つとが一致するか否かを検出する比較手段(2
14)と; すべての組み合わせのコンテクストの状態番号(ST)
及び優勢シンボル(MPS)を記憶するメモリ(20
4,216)と; 前記コンテクストの状態番号(ST)に対応して予め定
められた劣勢シンボル(LPS)の確率領域の大きさ
(LSZ)を記憶する第1の確率推定テーブル(224
a)と; 前記第1の確率推定テーブル(224a)と同一の内容
を記憶する第2の確率推定テーブル(224b,224
c)と; 前記比較手段(214)の出力データに基づき,前記第
1及び第2の確率推定テーブル(224a,224b,
224c)の出力データの何れか1つを選択する選択器
(244)と; 前記選択器(244)によって選択されたデータに基づ
いて、前記符号化対象シンボルの符号化処理及び、前記
メモリに対して前記コンテクストの状態番号(ST)及
び優勢シンボル(MPS)の更新演算を行う算術符号化
部とを備えたことを特徴とする符号化装置。
An encoding apparatus for encoding image data according to an adaptive arithmetic encoding method, wherein a reference symbol for selecting a plurality of reference symbols at a predetermined position with respect to a symbol to be encoded and generating a context. A selection unit (210); a context buffer (20) for holding at least the immediately preceding context among contexts sequentially output from the reference symbol selection unit (210);
3,212); the latest context output from the reference symbol selection unit (210) and the context buffer (20).
3,212) for detecting whether or not at least one of the previous contexts held in the first and second contexts matches with each other.
14) and; status number (ST) of the context of all combinations
And a memory (20) for storing a dominant symbol (MPS).
4, 216); a first probability estimation table (224) storing a predetermined probability area size (LSZ) of a less probable symbol (LPS) corresponding to the state number (ST) of the context.
a) and a second probability estimation table (224b, 224) storing the same contents as the first probability estimation table (224a).
c) and; based on the output data of the comparing means (214), the first and second probability estimation tables (224a, 224b,
A selector (244) for selecting any one of the output data of 224c); an encoding process of the encoding target symbol based on the data selected by the selector (244); An arithmetic coding unit for performing an update calculation of the state number (ST) and the dominant symbol (MPS) of the context.
【請求項2】請求項1に記載の符号化装置によって符号
化された符号データを元の画像データに復号化する復号
化装置において、 前記符号化データに対して予め定められた位置の複数の
参照シンボルを選択してコンテクストを生成する参照シ
ンボル選択部(310)と; 前記参照シンボル選択部(310)から順次出力される
連続する複数のコンテクストを保持するコンテクストバ
ッファー(312)と; 前記参照シンボル選択部(310)から出力された最新
のコンテクストと前記コンテクストバッファーに予め保
持されているコンテクストとが一致するか否かを検出す
る検出器(344)と; 全ての組み合わせのコンテクストの状態番号(ST)及
び優勢シンボル(MPS)を記憶するメモリと; 前記コンテクストの状態番号(ST)に対応して予め定
められた劣性シンボル(LPS)の確率領域の大きさ
(LSZ)を記憶する第1の確率推定テーブルと; 前記第1の確率推定テーブルと同じ内容を記憶する第2
の確率推定テーブルと; 前記検出器(314)の出力に基づいて、前記第1及び
第2の確率推定テーブルの出力データの1つを選択する
選択器(344)と; 前記選択器(344)の出力データに基づいて、復号化
対象シンボルの復号化処理を行うとともに、前記コンテ
クストの状態番号(ST)及び優勢シンボル(MPS)
の更新演算を行って、遷移情報を生成する算術復号化部
とを備えたことを特徴とする復号化装置。
2. A decoding device for decoding code data coded by the coding device according to claim 1 into original image data, wherein a plurality of positions at predetermined positions with respect to the coded data are provided. A reference symbol selection unit (310) for selecting a reference symbol to generate a context; a context buffer (312) for holding a plurality of continuous contexts sequentially output from the reference symbol selection unit (310); A detector (344) for detecting whether or not the latest context output from the selection unit (310) matches the context previously held in the context buffer; and a state number (ST) of the context of all combinations ) And a memory for storing a dominant symbol (MPS); and a state number (ST) of the context. A first probability estimating table storing the size of the probability area (LSZ) of predetermined recessive symbol corresponds (LPS) in the: second storing the same content as the first probability estimating table
A selector (344) for selecting one of the output data of the first and second probability estimation tables based on the output of the detector (314); and the selector (344). , The decoding process of the symbol to be decoded is performed, and the state number (ST) and the superior symbol (MPS) of the context
And an arithmetic decoding unit for performing an update operation of (1) to generate transition information.
【請求項3】請求項1に記載の符号化装置と請求項2に
記載の復号化装置を備えたことを特徴とする符号化・復
号化装置。
3. An encoding / decoding device comprising the encoding device according to claim 1 and the decoding device according to claim 2.
JP25098996A 1996-08-22 1996-09-02 Image data conversion processing method and apparatus Expired - Fee Related JP3247052B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP25098996A JP3247052B2 (en) 1996-09-02 1996-09-02 Image data conversion processing method and apparatus
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
JP25098996A JP3247052B2 (en) 1996-09-02 1996-09-02 Image data conversion processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH1079861A JPH1079861A (en) 1998-03-24
JP3247052B2 true JP3247052B2 (en) 2002-01-15

Family

ID=17216018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25098996A Expired - Fee Related JP3247052B2 (en) 1996-08-22 1996-09-02 Image data conversion processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3247052B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100648258B1 (en) * 2004-08-02 2006-11-23 삼성전자주식회사 Context-based adaptive binary arithmetic decoder of pipeline structure for high speed decoding operation
KR100624432B1 (en) * 2004-08-05 2006-09-19 삼성전자주식회사 Context adaptive binary arithmetic decoder method and apparatus

Also Published As

Publication number Publication date
JPH1079861A (en) 1998-03-24

Similar Documents

Publication Publication Date Title
JP3227292B2 (en) Encoding device, encoding method, decoding device, decoding method, encoding / decoding device, and encoding / decoding method
KR900001821B1 (en) Processor for compressing and expanding binary data
JPH08274649A (en) Data compression equipment using lempel-ziv type algorithm
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
US20050152609A1 (en) Video decoder
US5617089A (en) Huffman code decoding circuit
JPH0258813B2 (en)
US6127950A (en) Transmission circuit and reception circuit
US6055338A (en) Bi-level adaptive coding using a dual port memory and a context comparator
JP3247052B2 (en) Image data conversion processing method and apparatus
JP3459759B2 (en) Arithmetic decoding device
JP3336537B2 (en) Encoding device, decoding device, encoding / decoding device, and arithmetic encoding device
JP3224127B2 (en) Image data conversion processor
US6058216A (en) Apparatus for encoding image data
JP3223118B2 (en) Image encoding device, image decoding device, and image encoding / decoding device
JP2002237754A (en) Variable length decoding device and its method
JP3232533B2 (en) Image encoding device, image decoding device, and image encoding / decoding device
EP0499225B1 (en) Variable-length code decoding device
JP3342380B2 (en) Encoding and decoding apparatus and image processing apparatus to which the same is applied
JPH08167855A (en) Huffman decoding circuit
JP2891818B2 (en) Encoding device
JP3221252B2 (en) Huffman decoder
JP3108243B2 (en) Encoding and decoding device

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

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: 20081102

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees