JPH0567978A - Coder/decoder - Google Patents

Coder/decoder

Info

Publication number
JPH0567978A
JPH0567978A JP3311910A JP31191091A JPH0567978A JP H0567978 A JPH0567978 A JP H0567978A JP 3311910 A JP3311910 A JP 3311910A JP 31191091 A JP31191091 A JP 31191091A JP H0567978 A JPH0567978 A JP H0567978A
Authority
JP
Japan
Prior art keywords
order
symbol
prediction
state
predicted value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3311910A
Other languages
Japanese (ja)
Other versions
JPH0795693B2 (en
Inventor
Takayoshi Semasa
孝義 瀬政
Makoto Matsumoto
誠 松本
Yukiyasu Kawabata
幸保 川畑
Tomohiro Kimura
智広 木村
Fumitaka Ono
文孝 小野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to US07/871,083 priority Critical patent/US5313204A/en
Priority to DE69224546T priority patent/DE69224546T2/en
Priority to EP92106926A priority patent/EP0510627B1/en
Publication of JPH0567978A publication Critical patent/JPH0567978A/en
Publication of JPH0795693B2 publication Critical patent/JPH0795693B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PURPOSE:To quicken the processing by selecting a degree prediction value register for reading and revising a degree prediction value when state of a reference symbol is a specific state and selecting a degree prediction memory in other cases. CONSTITUTION:When bits of a reference symbol pattern 102 are all not zero and a prediction value object symbol is inputted to a coder as an information source symbol 101, a reference symbol generator 1 outputs a processed signal and a detector 7 discriminates that all bits are not zero. A selector 9 receives the result and outputs an output signal read from a degree prediction value memory 2 to an area width table 4 and a prediction converter 3. When bits of the pattern 102 are all zero, the selector 9 selects an output of the degree prediction value register 8 in place of the memory 2 as the degree and prediction value signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、符号化・復号化装置、
特に画像情報などの符号化・復号化装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to an encoding / decoding device,
In particular, it relates to a coding / decoding device for image information and the like.

【0002】[0002]

【従来の技術】マルコフ情報源の符号化においては、情
報源の出力シンボル系列に対し、既に符号化済みのシン
ボルである参照シンボルにより符号化対象シンボルを予
測し、その予測誤差信号を参照シンボルパターンにより
予測的中率に応じて各予測誤差信号をいくつかの群に分
類し、それぞれに適した符号を用いて符号化が行われて
いる。ここで以下この予測誤差信号の作成のことを予測
変換、群に分類することを統合、群の識別子のことを次
数と呼ぶ。また、符号化されるべき予測誤差信号のこと
を予測誤差シンボルと呼ぶことにする。
2. Description of the Related Art In coding a Markov information source, a target symbol to be coded is predicted from a reference symbol which has already been coded with respect to an output symbol sequence of the information source, and the prediction error signal is used as a reference symbol pattern. Thus, each prediction error signal is classified into several groups according to the predictive predictive value, and coding is performed using a code suitable for each. Here, the generation of this prediction error signal is called prediction conversion, the classification into groups is called integration, and the group identifier is called order. Further, the prediction error signal to be encoded will be referred to as a prediction error symbol.

【0003】この予測変換および次数選択方法として
は、情報源の統計的性質の局所的変化に対応するため、
適応処理を行う技術が(特願平1−127134号)に
開示されている。予測誤差シンボルの符号化手法につい
ては、減算型算術符号化法が、IBM研究開発情報19
88年11月、第32巻第6号(IBM Journa
l of Reserch and Development,V
ol.32,No.6,Nov.1988)の「Q−コ
ーダ対応2元演算符号器の基礎的原理の概観」(An
overview of the basic pri
nciple of the Q−Coder adaptive−b
inary arith−metic coder)や
(特開平2−202267号公報)などに開示されてい
る。これらはシンボル系列を数直線上で0.0から1.
0までの間に写像し、その座標を符号語として符号化す
る数直線表示符号化方式の一種で、生起したシンボルに
応じて数直線を分割する際に、加減算のみで行うもので
ある。
This predictive conversion and order selection method is to cope with local changes in the statistical properties of the information source.
A technique for performing adaptive processing is disclosed in Japanese Patent Application No. 1-127134. Regarding the encoding method of the prediction error symbol, the subtraction type arithmetic encoding method is described in IBM Research and Development Information 19
Vol. 32, No. 6, November 1988 (IBM Journal
l of Research and Development, V
ol. 32, No. 6, Nov. 1988) "Overview of the Basic Principles of Binary Arithmetic Encoder for Q-coder" (An
overview of the basic pri
ncle of the Q-Coder adaptive-b
It is disclosed in, for example, Japanese Laid-Open Patent Publication No. 2-202267. These are symbol sequences on the number line from 0.0 to 1.
This is a kind of number line display encoding method that maps up to 0 and encodes the coordinates as a code word, and is performed only by addition and subtraction when dividing a number line according to a generated symbol.

【0004】以下、図25に従って従来の技術による予
測変換、統合および符号化の過程を説明する。簡単のた
め、情報源は2値画像信号とし、参照シンボルは図26
の12画素、統合数は16とする。
The process of predictive conversion, integration and coding according to the conventional technique will be described below with reference to FIG. For simplicity, the information source is a binary image signal and the reference symbol is shown in FIG.
12 pixels, and the integrated number is 16.

【0005】図25で、1は情報源シンボル101の系
列から参照シンボルを選択出力する参照シンボル作成
器、2はこの出力である参照シンボルパターン102よ
り対象シンボルの次数103と予測値104を出力する
次数・予測値メモリ、3は予測値104をもとに予測誤
差シンボル105を作成する予測変換器、4は次数10
3をもとに算術符号の領域幅106を出力する領域幅テ
ーブル、5は算術符号器、6は次数・予測値メモリ2の
読み出しと更新を制御する次数・予測値制御回路であ
る。ここで、参照シンボル数を12としたことより、次
数・予測値テーブル(メモリ2の内容)は図29に示す
様に212種必要となる。次数値については統合を16の
群としたことからこれを識別するものとなる。ここでは
予測的中率の高い程次数が高いものとする。
In FIG. 25, 1 is a reference symbol generator for selecting and outputting a reference symbol from a sequence of information source symbols 101, and 2 is a reference symbol pattern 102 which is the output thereof, and outputs the order 103 and predicted value 104 of the target symbol. Order / predicted value memory, 3 is a prediction converter that creates a prediction error symbol 105 based on the predicted value 104, and 4 is the order 10
An area width table for outputting the area width 106 of the arithmetic code based on 3, 5 is an arithmetic encoder, and 6 is an order / predicted value control circuit for controlling reading and updating of the order / predicted value memory 2. Here, since the number of reference symbols is set to 12, 2 12 kinds of order / predicted value tables (contents of the memory 2) are required as shown in FIG. As for the numerical value, since the integration is made into 16 groups, this can be identified. Here, the higher the predictive predictive value, the higher the order.

【0006】次に図25についてその動作を説明する。
情報源から発生したシンボル101(画像信号)は参照
シンボル作成器1でその系列が記憶されると共に、図2
6に示す12画素の信号が選択されて参照シンボルパタ
ーン102として出力される。次数・予測値メモリ2で
はこれを基に図11に示すテーブル内容から対象シンボ
ルの予測値104と次数103が出力され、次数103
情報は図28に示す領域テーブル4で領域幅106とし
て変換出力される。
Next, the operation will be described with reference to FIG.
The symbol 101 (image signal) generated from the information source is stored in the reference symbol generator 1 and its sequence is stored.
The signal of 12 pixels shown in 6 is selected and output as the reference symbol pattern 102. Based on this, the order / predicted value memory 2 outputs the predicted value 104 and the order 103 of the target symbol from the table contents shown in FIG.
The information is converted and output as the area width 106 in the area table 4 shown in FIG.

【0007】一方、発生シンボル101は予測変換器3
で予測値104と排他的論理和がとられ予測誤差シンボ
ル105が作成される。この予測誤差シンボルは符号化
対象が2値画像信号であるため、予測一致の場合に0
(MPS:MoreProbable Symbo
l)、不一致の場合に1(LPS:Less Prob
able Symbol)となる。
On the other hand, the generated symbol 101 is the prediction converter 3
Then, an exclusive OR is calculated with the prediction value 104 to create a prediction error symbol 105. Since this prediction error symbol is a binary image signal to be encoded, it is 0 when the prediction matches.
(MPS: MoreProblem Symbol
l), 1 (LPS: Less Prob if there is no match)
Able Symbol).

【0008】算術符号器5では領域幅106信号を基
に、予測誤差シンボル105を数直線上に写像してゆき
符号化が実行される。すなわち、予測誤差シンボル系列
において第i番目のシンボルをai 、第i時点でのLP
Sの写像範囲(割当領域)をSとすると、第i時点出の
シンボル系列の写像範囲(有効領域)Aiとその下界値
座標Ciは、シンボルai がMPSのとき、MPS領域
を有効領域の下側に取るとすれば、 Ai=Ai- 1 − S Ci=Ci- 1 シンボルai がLPSのとき Ai=S Ci=Ci- 1 + (Ai- 1 − S) とする。
In the arithmetic encoder 5, the prediction error symbol 105 is mapped on a number line based on the region width 106 signal, and coding is executed. That is, the i-th symbol in the prediction error symbol sequence is a i , and the LP at the i-th time point is
When the mapping range (allocation area) of S is S, the mapping range (effective area) Ai of the symbol sequence at the i-th time point and its lower bound coordinate Ci are the MPS area of the effective area when the symbol a i is MPS. In the lower side, Ai = Ai−1−S Ci = Ci−1 When the symbol a i is LPS, Ai = S Ci = Ci−1 + (Ai−1−S).

【0009】ここで有効領域Aiが1/2以下になった
場合には、演算精度を上げるため2のべき乗倍する。こ
のとき座標Ciのオーバーフロー(小数点以上の部分)
分が符号ビット系列として出力される。以下このべき乗
処理を正規化と呼ぶ。 Ai更新値=Ai*2m (1/2<Ai更新
値≦1) Ci更新値=Ci*2m
When the effective area Ai becomes 1/2 or less, it is multiplied by a power of 2 in order to improve the calculation accuracy. At this time, overflow of coordinates Ci (portion above decimal point)
Minutes are output as a code bit sequence. Hereinafter, this exponentiation process is called normalization. Ai update value = Ai * 2 m (1/2 <Ai update value ≦ 1) Ci update value = Ci * 2 m

【0010】算術符号においては、SをLPSの出現確
率(=予測誤り確率)とすることで、情報源エントロピ
に極めて近い高効率の符号化ができることが知られてい
る。よって、次数に対応した予測的中率に適したS値を
選択することで上記処理により算術符号化を行うことが
できる。図28は次数と領域幅Sとの対応表の一例であ
る。表中の値は、上記式中の数値を216倍したものを記
してある。
In the arithmetic code, it is known that high efficiency coding extremely close to the information source entropy can be performed by setting S to the appearance probability (= prediction error probability) of LPS. Therefore, arithmetic coding can be performed by the above processing by selecting an S value suitable for the predictive predictive value corresponding to the order. FIG. 28 is an example of a correspondence table between the degree and the area width S. The values in the table are the values in the above formula multiplied by 2 16 .

【0011】次に予測および統合の適応処理について説
明する。次数・予測値制御回路6は予測変換器3の出力
シンボル系列から連続するMPSとLPSの数を計数
し、例えばk個MPSを検出した時及び1個LPSを検
出した時点で次に示す手順で次数・予測値テーブルメモ
リ2の内容を書き換える。なお、kやlの値については
各次数に応じ、次数・予測値制御回路6に事前に設定さ
れているものである。
Next, the adaptive processing of prediction and integration will be described. The order / predicted value control circuit 6 counts the number of consecutive MPSs and LPSs from the output symbol sequence of the predictive converter 3, and, for example, at the time of detecting k MPSs and at the time of detecting 1 LPS, performs the following procedure. The contents of the order / predicted value table memory 2 are rewritten. The values of k and l are preset in the order / predicted value control circuit 6 according to each order.

【0012】1個のLPSを検出した場合 次数・予測値テーブルメモリ2において、その時の参照
シンボルパターンに対応する次数の値を1だけ減算す
る。これは、当該参照シンボル状態に於ける予測が外れ
たため、予測の的中度を示す次数を下げることによっ
て、現在の符号化対象となっている情報源に対し、次数
・予測値を適応させる動作である。次数が最低次数に達
しそれ以上次数を減じることが出来なくなると、予測値
を反転させる。この動作により的中率が極端に悪い予測
値は書き換えられる。
When one LPS is detected, the order / predicted value table memory 2 subtracts 1 from the order value corresponding to the reference symbol pattern at that time. This is an operation of adapting the order / predicted value to the information source currently being coded by lowering the order indicating the prediction accuracy because the prediction in the reference symbol state is wrong. Is. When the order reaches the lowest order and the order cannot be further reduced, the predicted value is inverted. By this operation, the predicted value with extremely bad hit rate is rewritten.

【0013】k個のMPSを検出した場合 次数・予測値テーブルメモリ2において、その時の参照
シンボルパターンに対応する次数の値を1だけ加算す
る。これは、当該参照シンボル状態に於ける予測が的中
したため、予測の的中度を示す次数を上げることによっ
て、現在の符号化対象となっている情報源に対し、次数
・予測値を適応させる動作である。次数がすでに最高次
数に達している場合には加算は実行されない。この動作
により予測が極めてよく的中する場合には、次数を上げ
ることによりS値が小さくなり、算術符号器5から出力
される符号量を抑えることができる。
When k MPSs are detected In the order / prediction value table memory 2, the order value corresponding to the reference symbol pattern at that time is incremented by one. This is because the prediction in the reference symbol state is correct, so by increasing the order indicating the accuracy of the prediction, the order / predicted value is adapted to the information source currently being encoded. It is an action. If the order has already reached the highest order, no addition is performed. When the prediction hits extremely well by this operation, the S value becomes smaller by increasing the order, and the code amount output from the arithmetic encoder 5 can be suppressed.

【0014】以上の動作により次数・予測値制御回路6
は、情報源の性質に追従して次数・予測値テーブルを書
き換えてゆき、高い符号化効率による算術符号化が実現
できる。
By the above operation, the order / predicted value control circuit 6
Can rewrite the order / predicted value table according to the property of the information source, and realize the arithmetic coding with high coding efficiency.

【0015】[0015]

【発明が解決しようとする課題】しかしながらこの従来
の装置に於いては、次数・予測値メモリ2は、容量(上
記実施例では212x5bit)の点から、汎用のRAM
を使用せざるを得ない。一方、上記説明で明らかなよう
にマルコフモデルに基づく算術符号化では、1シンボル
毎に参照シンボルパターンの作成と、次数・予測値メモ
リ2の検索、数直線の領域計算を行うため、これにより
標準的なA4判原稿を水平8画素/mm、垂直7.7l
ine/mmの解像度で符号化する場合1.3秒程度
と、MMR符号化等他の符号化方式に基づく符号化・復
号化装置に比べ、処理速度が大幅に大きなものとなって
いる。
However, in this conventional apparatus, the order / prediction value memory 2 is a general-purpose RAM because of its capacity (2 12 × 5 bits in the above embodiment).
I have no choice but to use. On the other hand, as is apparent from the above description, in the arithmetic coding based on the Markov model, the reference symbol pattern is created for each symbol, the order / predicted value memory 2 is searched, and the area of the number line is calculated. A4 size original document is 8 pixels / mm horizontally and 7.7 l vertically
In the case of encoding with a resolution of ine / mm, it is about 1.3 seconds, which is significantly higher in processing speed than an encoding / decoding device based on another encoding method such as MMR encoding.

【0016】この発明は上記のような問題点を解消する
ためになされたもので、特定の参照シンボルパターンに
対する次数・予測値メモリを高速アクセス可能とするこ
とにより大幅な処理高速化が可能な符号化・復号化装置
を得ることを目的にしている。
The present invention has been made in order to solve the above problems, and a code capable of significantly increasing the processing speed by making it possible to access the order / prediction value memory for a specific reference symbol pattern at high speed. The purpose is to obtain an encryption / decryption device.

【0017】また、他の発明は上記のような問題点を解
消するためになされたもので、次のシンボルに対する次
数・予測値テーブルの検索と当該シンボルに対する数直
線の領域計算を並行して行わせることにより大幅な処理
高速化が可能な符号化・復号化装置を得ることを目的に
している。
Another invention is made in order to solve the above-mentioned problems, and the search of the order / predicted value table for the next symbol and the area calculation of the number line for the symbol are performed in parallel. By doing so, it is an object to obtain an encoding / decoding device capable of significantly increasing the processing speed.

【0018】更に、他の発明は上記のような問題点を解
消するためになされたもので、特定の参照シンボルパタ
ーンが連続する場合には、数直線の領域計算を一括処理
とすることにより大幅な処理高速化が可能な符号化・復
号化装置を得ることを目的にしている。
Further, another invention has been made to solve the above-mentioned problems, and when a specific reference symbol pattern is continuous, the number line area calculation is performed as a batch process. It is an object of the present invention to obtain an encoding / decoding device capable of various high-speed processing.

【0019】[0019]

【課題を解決するための手段】この第1の発明に係る符
号化・復号化装置は、情報源の出力シンボル系列の予め
定めておいた位置の複数の参照シンボルの状態から符号
化予測対象となる符号化対象シンボルの予測を行ってそ
の予測誤差信号を符号化する際に、参照シンボルの状態
から上記符号化対象シンボルの予測値と予測一致率によ
って分類される群の識別子である次数とを記憶する書換
可能なメモリと、参照シンボルの状態が1ないし複数個
の特定の状態であることを検出する検出器と、前記特定
の状態に於ける予測値と次数を記憶する1ないし複数個
のレジスタと、前記検出器出力に基づき、前記メモリと
レジスタ出力を選択する選択器と、選択器より出力され
た予測値・次数情報をもとに予測誤差信号を符号化する
算術符号器と、上記符号化対象シンボルが予測一致して
いるか否かを検査しその結果に応じて該参照シンボル状
態に於ける予測値および次数を書き換える次数・予測値
制御回路を備えたものである。
The encoding / decoding apparatus according to the first aspect of the present invention determines that an object to be coded is predicted from the states of a plurality of reference symbols at predetermined positions of an output symbol sequence of an information source. When the prediction error signal is encoded and the prediction error signal is encoded, the predicted value of the encoding target symbol and the order that is the identifier of the group classified by the predictive matching rate are calculated from the state of the reference symbol. A rewritable memory for storing, a detector for detecting that the state of the reference symbol is one or more specific states, and one or more for storing predicted values and orders in the specific states. A register, a selector for selecting the memory and the register output based on the detector output, an arithmetic encoder for encoding a prediction error signal based on the prediction value / order information output from the selector, Coded symbols are those having a degree and predicted value controller for rewriting in the predicted value and degree to the reference symbol state in accordance with the inspection and the result whether they match the prediction.

【0020】この第2の発明に係る符号化・復号化装置
は、情報源の出力シンボル系列の予め定めておいた位置
の複数の参照シンボルの状態から復号化予測対象となる
復号化対象シンボルの予測を行ってその予測誤差信号を
符号化した符号ビット系列を復号化する際に、参照シン
ボルの状態から上記復号化対象シンボルの予測値と予測
一致率によって分類される群の識別子である次数とを記
憶する書換可能なメモリと、参照シンボルの状態が1な
いし複数個の特定の状態であることを検出する検出器
と、前記特定の状態に於ける予測値と次数を記憶する1
ないし複数個のレジスタと、前記検出器出力に基づき、
前記メモリとレジスタ出力を選択する選択器と、選択器
より出力された次数を基に符号ビット系列を復号化する
算術復号器と、上記復号対象シンボルが予測一致してい
たか否かを検査しその結果に応じて該参照シンボル状態
に於ける予測値および次数を書き換える次数・予測値制
御回路を備えたものである。
In the encoding / decoding device according to the second aspect of the present invention, the decoding target symbol to be decoded is predicted from the states of a plurality of reference symbols at predetermined positions of the output symbol sequence of the information source. When performing a prediction and decoding a coded bit sequence obtained by coding the prediction error signal, the degree that is the identifier of the group classified by the prediction value and the prediction matching rate of the decoding target symbol from the state of the reference symbol, and , A detector for detecting that the state of the reference symbol is one or more specific states, and a predictive value and order for the specific state 1
To a plurality of registers and based on the detector output,
A selector for selecting the memory and the register output, an arithmetic decoder for decoding a code bit sequence based on the order output from the selector, and checking whether or not the decoding target symbols are predictively matched, An order / predicted value control circuit for rewriting the predicted value and the order in the reference symbol state according to the result is provided.

【0021】この第3の発明に係る符号化・復号化装置
は、情報源の出力シンボル系列の予め定めておいた位置
の複数の参照シンボルの状態から符号化対象シンボルの
予測を行ってその予測誤差信号を符号化する際に、参照
シンボルの各状態における上記符号化対象シンボルの予
測値と予測一致率によって分類される群の識別子である
次数とを記憶する書換可能なメモリと、このメモリから
読み出された当該符号化対象シンボルの予測値及び次数
信号、ないしは、直前の符号化対象シンボルに対する、
書き換え処理後の予測値及び次数を記憶する次数・予測
値レジスタと、符号化対象シンボルが予測一致している
か否かを検査しその結果に応じて該参照シンボル状態に
おける上記メモリの予測値及び次数を書き換える次数・
予測値制御回路と、符号化対象シンボルに対する参照シ
ンボル状態と直前のシンボルに対する参照シンボル状態
とが一致しているか否かを検出し、検出結果に従って次
数・予測値レジスタの内容を更新する検出器と、上記次
数・予測値レジスタより出力された予測値・次数情報を
もとに予測誤差信号を符号化する算術符号器とを備えた
ものである。
The encoding / decoding device according to the third aspect of the invention predicts the symbol to be encoded by predicting the symbol to be encoded from the states of a plurality of reference symbols at predetermined positions in the output symbol sequence of the information source. When encoding the error signal, a rewritable memory that stores the predicted value of the encoding target symbol in each state of the reference symbol and the order that is the identifier of the group classified by the predictive coincidence rate, and from this memory The predicted value and order signal of the read target symbol to be encoded, or, for the immediately preceding target symbol to be encoded,
Prediction value and order of the memory in the reference symbol state are checked in accordance with the result of checking whether or not the order / prediction value register that stores the prediction value and order after the rewriting process matches the prediction target symbol. The order of rewriting
A predictive value control circuit, a detector that detects whether or not the reference symbol state for the symbol to be encoded and the reference symbol state for the immediately preceding symbol match, and updates the contents of the order / predicted value register according to the detection result. An arithmetic encoder for encoding a prediction error signal based on the predicted value / order information output from the order / predicted value register.

【0022】この第4の発明に係る符号化・復号化装置
は、情報源の出力シンボル系列の予め定めておいた位置
の複数の参照シンボルの状態から復号化予測対象となる
復号化対象シンボルの予測を行ってその予測誤差信号を
符号化した符号ビット系列を復号化する際に、参照シン
ボルの状態から復号化対象シンボルの予測値と予測一致
率によって分類される群の識別子である次数とを記憶す
る書換可能なメモリと、上記復号化対象シンボルが予測
一致しているか否かを検査しその結果に応じて該参照シ
ンボル状態における上記メモリの予測値及び次数を書き
換える次数・予測値制御回路と、このメモリからの予測
値及び次数、ないしは、直前の復号化対象シンボルに対
する更新後の予測値及び次数を記憶するレジスタと、復
号化対象シンボルに対する参照シンボル状態と直前のシ
ンボルに対する参照シンボル状態とが一致しているか否
かを検出し、検出結果に従ってする検出器と、複数個の
状態に対するメモリ出力のうちの1組の予測値及び次数
を選択出力する選択器と、選択された予測値・次数情報
をもとに符号ビット系列を復号化する算術復号器とを備
えたものである。
In the encoding / decoding device according to the fourth aspect of the present invention, the decoding target symbol to be decoded is predicted from the states of a plurality of reference symbols at predetermined positions of the output symbol sequence of the information source. When performing a prediction and decoding a code bit sequence obtained by coding the prediction error signal, the prediction value of the decoding target symbol from the state of the reference symbol and the order that is the identifier of the group classified by the prediction matching rate are A rewritable memory to be stored, and an order / prediction value control circuit for checking whether or not the decoding target symbols are predictively matched and rewriting the prediction value and the order of the memory in the reference symbol state according to the result , A register for storing the predicted value and order from this memory, or the updated predicted value and order for the immediately preceding decoding target symbol, and the decoding target symbol It detects whether or not the reference symbol state for the corresponding symbol and the reference symbol state for the immediately preceding symbol match and detects the detector according to the detection result, and a set of predicted values and orders of the memory outputs for a plurality of states. A selector for selectively outputting and an arithmetic decoder for decoding a code bit sequence based on the selected prediction value / order information are provided.

【0023】この第5の発明に係る符号化・復号化装置
は、情報源の出力シンボル系列の予め定めておいた位置
の複数の参照シンボルの状態から符号化対象シンボルの
予測を行ってその予測誤差信号を符号化する際に、参照
シンボルの状態から符号化対象シンボルの予測値と予測
一致率によって分類される群の識別子である次数とを記
憶する書換可能なメモリと、連続する複数個の符号化対
象シンボルに対する参照シンボルの状態が全て特定の状
態であり且つ全ての符号化対象シンボルが予測一致する
個とを検出する検出器と、上記メモリに記憶された予測
値をもとに当該符号化対象シンボルの予測誤差を計算す
る予測変換器と、符号化対象シンボルが予測一致してい
るか否かを検査しその結果に応じて該参照シンボル状態
における上記メモリの予測値及び次数を書き換える次数
・予測値制御回路を備え、上記メモリに記憶された次数
情報を基に、予測変換器にて計算された予測誤差信号を
符号化する算術符号器とを設けたものである。
The encoding / decoding device according to the fifth aspect of the present invention predicts the symbol to be encoded by predicting the symbol to be encoded from the states of a plurality of reference symbols at predetermined positions of the output symbol sequence of the information source. When encoding the error signal, a rewritable memory that stores the predicted value of the encoding target symbol from the state of the reference symbol and the order that is the identifier of the group classified by the predictive matching rate, and a plurality of consecutive rewritable memories. A detector that detects that all the reference symbol states for the encoding target symbol are in a specific state and that all the encoding target symbols predictively match, and the code based on the prediction value stored in the memory. The prediction converter for calculating the prediction error of the symbol to be coded and the prediction symbol of the symbol to be coded are checked, and the memo in the reference symbol state is checked according to the result. And a predictive value control circuit that rewrites the predictive value and the order, and an arithmetic encoder that encodes the prediction error signal calculated by the predictive converter based on the order information stored in the memory. It is a thing.

【0024】この第6の発明に係る符号化・復号化装置
は、情報源の出力シンボル系列の予め定めておいた位置
の複数の参照シンボルの状態から符号化対象シンボル系
列の予測を行ってその予測誤差信号を符号化した符号ビ
ット系列を復号化する際に、参照シンボルの状態から復
号化対象シンボルの予測値と予測一致率によって分類さ
れる群の識別子である次数とを記憶する書換可能なメモ
リと、連続する複数個の復号化対象シンボルが予測一致
すると仮定した場合には該複数個の復号化対象シンボル
に対する参照シンボルの状態が全て特定の状態であるこ
とを検出する検出器と、上記メモリに記憶された次数情
報を基に符号ビット系列を復号化して予測誤差信号を作
成する算術復号器と、算術復号器にて作成された予測誤
差信号と予測信号を基に当該復号化対象シンボルを復元
する予測逆変換器と、上記復元された復号化対象シンボ
ルが予測一致しているか否かを検査しその結果に応じて
該参照シンボル状態における予測値及び次数を書き換え
る次数・予測値制御回路を備えたものである。
The encoding / decoding apparatus according to the sixth aspect of the present invention predicts the encoding target symbol sequence from the states of a plurality of reference symbols at predetermined positions of the output symbol sequence of the information source, When a coded bit sequence obtained by coding a prediction error signal is decoded, the rewritable value is stored which stores the predicted value of the decoding target symbol and the order which is the identifier of the group classified by the predicted matching rate from the state of the reference symbol. A memory and a detector for detecting that all the states of the reference symbols for the plurality of decoding target symbols are in a specific state when it is assumed that a plurality of consecutive decoding target symbols are predictively matched; An arithmetic decoder that decodes a code bit sequence based on order information stored in a memory to create a prediction error signal, and a prediction error signal and a prediction signal created by the arithmetic decoder Based on the prediction inverse converter that restores the decoding target symbol based on the above, it is checked whether the restored decoding target symbol matches the prediction, and the prediction value and the order in the reference symbol state are determined according to the result. It is provided with a rewriting order / predicted value control circuit.

【0025】[0025]

【作用】この第1の発明によれば、参照シンボルの状態
が特定の状態にある場合には次数・予測値の読みだし及
び更新に前記レジスタを選択し、それ以外の状態では前
記メモリを選択してい用いることで符号化速度が向上す
る。
According to the first aspect of the invention, when the reference symbol is in a specific state, the register is selected for reading and updating the order / predicted value, and in other states, the memory is selected. The coding speed is improved by using it.

【0026】この第2の発明によれば、参照シンボルの
状態が特定の状態にある場合には次数・予測値の読みだ
し及び更新に前記レジスタを選択し、それ以外の状態で
は前記メモリを選択してい用いることで復号化速度が向
上する。
According to the second invention, when the state of the reference symbol is in a specific state, the register is selected for reading and updating the order / predicted value, and in other states, the memory is selected. The decoding speed is improved by using it.

【0027】この第3の発明によれば、符号化処理に用
いる予測値及び次数信号として、符号化対象シンボルに
対する参照シンボル状態と直前のシンボルに対する参照
シンボルとが一致しているか否かにより、直前の符号化
対象シンボルに対する、書き換え処理後の予測値及び次
数ないしは、次数・予測値メモリからの出力信号をそれ
ぞれ選択して用いることで符号化速度が向上する。
According to the third aspect of the present invention, the prediction value and the order signal used in the encoding process depend on whether or not the reference symbol state for the symbol to be encoded and the reference symbol for the immediately preceding symbol match. The encoding speed is improved by selecting and using the predicted value and the order or the output signal from the order / predicted value memory after the rewriting process for the symbol to be coded.

【0028】この第4の発明によれば、復号化処理に用
いる予測値及び次数信号として、復号化対象シンボルに
対する参照シンボル状態と直前のシンボルに対する参照
シンボルとが一致しているか否かにより、直前の復号化
対象シンボルに対する、書き換え処理後の予測値及び次
数ないしは、次数・予測値メモリからの出力信号をそれ
ぞれ選択して用いることで復号化速度が向上する。
According to the fourth aspect of the present invention, the prediction value and the order signal used in the decoding process depend on whether or not the reference symbol state for the symbol to be decoded and the reference symbol for the immediately preceding symbol match. The decoding speed is improved by selecting and using the predicted value and the order or the output signal from the order / predicted value memory after the rewriting process for the symbol to be decoded.

【0029】この第5の発明によれば、連続する複数個
の符号化対象シンボルに対する参照シンボルの状態が特
定の状態にある場合には、上記算術符号器において、複
数個のシンボルに対する算術演算を一括して行うことで
符号化速度が向上する。
According to the fifth aspect of the invention, when the state of the reference symbol for a plurality of consecutive symbols to be coded is in a specific state, the arithmetic encoder performs arithmetic operation on the plurality of symbols. The encoding speed is improved by performing the operations collectively.

【0030】この第6の発明によれば、連続する複数個
の復号化対象シンボルに対する参照シンボルの状態が特
定の状態にある場合には、上記算術符号器において、複
数個のシンボルに対する算術演算を一括して行うことで
復号化速度が向上する。
According to the sixth aspect of the invention, when the state of the reference symbol with respect to a plurality of consecutive symbols to be decoded is in a specific state, the arithmetic encoder performs arithmetic operation on the plurality of symbols. Decoding speed improves by carrying out collectively.

【0031】[0031]

【実施例】以下、第1の発明を図示実施例に基づいて説
明する。図1は本発明の一実施例の符号化装置を示すも
ので、図1において、図25の従来の符号化装置との相
違点は、参照シンボルパターン102から図26の12
画素全てが0(白画素)か否かを検出する検出器7と、
12画素全てが0の時の次数および予測値を記憶するレ
ジスタ8と、12画素全てが0か否かに応じてメモリ2
とレジスタ8の出力およびこれらへの書き込み用更新信
号を切り替える選択器9が付加されたことである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The first invention will be described below with reference to illustrated embodiments. FIG. 1 shows an encoding apparatus according to an embodiment of the present invention. In FIG. 1, the difference from the conventional encoding apparatus of FIG. 25 is that reference symbol patterns 102 to 12 of FIG.
A detector 7 for detecting whether all the pixels are 0 (white pixels),
A register 8 for storing an order and a predicted value when all 12 pixels are 0, and a memory 2 depending on whether all 12 pixels are 0 or not.
And that the selector 9 for switching the output of the register 8 and the update signal for writing to these is added.

【0032】図2は、算術符号器5の内部構成を示すブ
ロック構成図で、図において、5aは数直線上の有効領
域Aiを記憶するAレジスタ、5bはMPS領域幅11
7を計算する減算器、5cは下界値座標118を記憶す
るCレジスタ、5dはLPSの場合のCレジスタ値11
9を計算する加算器、5eはCレジスタのオーバーフロ
ー(シフトアウト)信号であるキャリ出力120を一時
記憶してCレジスタ5c更新時に桁上がりの処理を行う
とともに、記憶した符号ビットの内容が連続した8個の
“1”になった場合には最下位ビットの下から“0”を
挿入して以後の桁上がり処理の影響をこの挿入“0”以
下に抑える処理(以後ビットスタッフ処理と呼ぶ)を行
うための符号レジスタ、5fはこの算術符号器5の動き
を制御するタイミング制御回路である。
FIG. 2 is a block diagram showing the internal configuration of the arithmetic encoder 5. In the figure, 5a is an A register for storing the effective area Ai on the number line, and 5b is an MPS area width 11
7 is a subtracter for calculating 7; 5c is a C register for storing the lower bound coordinate 118; 5d is a C register value for LPS 11
The adder 5e for calculating 9 temporarily stores the carry output 120, which is an overflow (shift-out) signal of the C register, carries out a carry when updating the C register 5c, and the stored sign bit contents are continuous. When the number of eight "1" s is reached, a process of inserting "0" from the bottom of the least significant bit to suppress the influence of the carry process after that to the insertion "0" or less (hereinafter referred to as bit stuffing process). A code register 5f for performing the above is a timing control circuit for controlling the movement of the arithmetic encoder 5.

【0033】次に、本実施例の動作について説明する。
図3、図4は本実施例の動作例を示すタイミング図であ
る。説明を容易にするため、まず図3に示す参照シンボ
ルパターン102が全て“0”ではない場合と全て
“0”の場合を分けて個別に説明する。
Next, the operation of this embodiment will be described.
3 and 4 are timing charts showing an operation example of this embodiment. In order to facilitate the description, first, the case where the reference symbol patterns 102 shown in FIG. 3 are not all “0” and the case where all of them are “0” will be separately described.

【0034】まず、参照シンボルパターン102が全て
“0”ではない場合は、予測対象シンボルが情報源シン
ボル101として本符号化装置に入力されると、参照シ
ンボル作成器1に於いてすでに処理済みの図26に示す
12画素の参照画素の信号が出力102され、検出器7
において全て“0”ではないことが判定される。選択器
9ではこれを受け、次数・予測値メモリ2から読み出し
た当該参照シンボルパターンに於ける出力信号を領域幅
テーブル4及び予測変換器3に出力する。ここで、本実
施例では次数・予測値メモリ2の読み出し処理は10M
HZのシステムクロック2周期分200nsecとして
いる。
First, when all the reference symbol patterns 102 are not "0", when the symbol to be predicted is input as the information source symbol 101 to the present coding apparatus, it has already been processed in the reference symbol generator 1. The signal of the reference pixel of 12 pixels shown in FIG.
In, it is determined that they are not all "0". The selector 9 receives this and outputs the output signal in the reference symbol pattern read from the order / prediction value memory 2 to the region width table 4 and the prediction converter 3. Here, in this embodiment, the reading process of the order / predicted value memory 2 is 10M.
Two HZ system clock cycles are set to 200 nsec.

【0035】次数信号112は、領域幅テーブル4で図
28に示す領域幅信号106に変換され、予測値信号1
13は予測変換器3で当該情報源シンボル101と排他
的論理和演算が施され予測誤差シンボル105が作成さ
れる。この後、上記の有効領域Ai・下界値座標Ciの
演算と次数・予測値の更新が下記の様に行われる。 (1)正規化および次数・予測値の更新がない場合(図
3 #1) 上記領域と座標の演算をシステムクロック1周期で実行
される。 (2)正規化があり、次数・予測値の更新がないばあい
(図3 #2) 正規化を除く領域・座標計算処理がシステムクロック1
周期で、正規化がmクロックで実行される。 (3)正規化がなく、次数・予測値の更新がある場合
(図3 #3) 領域と座標の演算をシステムクロック1周期で行った
後、次数・予測値メモリ2の内容を更新する。メモリ更
新はシステムクロック2周期で行う。 (4)正規化と次数・予測値の更新がある場合(図3
#4) 正規化を除く領域・座標計算処理をシステムクロック1
周期で行った後、mクロックで正規化を行うとともに次
数・予測値メモリ2の更新を平行して行う。なおこのと
き次のシンボルの処理は正規化およびメモリ2の更新が
ともに終了してから行う。
The order signal 112 is converted by the area width table 4 into the area width signal 106 shown in FIG.
Reference numeral 13 is a prediction converter 3 which performs an exclusive OR operation on the information source symbol 101 to generate a prediction error symbol 105. After that, the calculation of the effective area Ai and the lower limit coordinate Ci and the update of the order / predicted value are performed as follows. (1) When normalization and order / prediction value updating is not performed (# 1 in FIG. 3) The calculation of the above area and coordinates is executed in one cycle of the system clock. (2) If there is normalization and there is no update of order / prediction value (# 2 in Fig. 3), the area / coordinate calculation processing other than normalization is performed by the system clock 1
In cycles, normalization is performed in m clocks. (3) When there is no normalization and there is an update of the order / predicted value (# 3 in FIG. 3) After the area and coordinates are calculated in one cycle of the system clock, the contents of the order / predicted value memory 2 are updated. The memory is updated in two system clock cycles. (4) When there is normalization and update of order / predicted value (Fig. 3
# 4) System clock 1 for area / coordinate calculation processing excluding normalization
After the cycle, the normalization is performed with m clocks, and the order / predicted value memory 2 is updated in parallel. At this time, the processing of the next symbol is performed after both the normalization and the update of the memory 2 are completed.

【0036】ここで、LPSとMPSの判定を含む領域
計算および座標計算の制御は、予測誤差シンボル105
およびAレジスタ出力116のMSB信号を元に算術符
号器5のタイミング制御回路5fで行われ、次数・予測
値メモリ2の更新制御は次数・予測値制御回路6で行わ
れる。
Here, the control of the area calculation and the coordinate calculation including the determination of LPS and MPS is performed by the prediction error symbol 105.
Further, based on the MSB signal of the A register output 116, the timing control circuit 5f of the arithmetic encoder 5 performs the update control of the order / predicted value memory 2 by the order / predicted value control circuit 6.

【0037】符号レジスタ5eに於いては桁上がり処理
は、上記(正規化を除く)領域・座標計算に平行して処
理が行われる。正規化時は内部のレジスタのシフトと共
に8ビット目からの桁上がりが符号107として出力さ
れる。この時、8ビットの内部レジスタの全ビットが
“1”の場合はタイミング制御回路5fに対しビットス
タッフ信号122が送られ、正規化クロック121が一
時停止されると共にシステムクロック1周期を使って内
部レジスタの1ビットシフト(LSBシフトイン信号は
“0”とされる)が行われる。
In the sign register 5e, the carry process is performed in parallel with the above-mentioned (excluding normalization) area / coordinate calculation. At the time of normalization, the carry from the 8th bit is output as code 107 along with the shift of the internal register. At this time, when all the bits of the 8-bit internal register are "1", the bit stuff signal 122 is sent to the timing control circuit 5f, the normalized clock 121 is temporarily stopped, and the system clock 1 cycle is used to perform the internal operation. 1-bit shift of the register (LSB shift-in signal is set to "0") is performed.

【0038】参照シンボルパターン102が全て“0”
の場合は、選択器9において次数および予測値信号とし
て次数・予測値メモリ2の出力の代わりに次数・予測値
レジスタ8の出力が選択される。この処理は選択器9に
於ける遅延(10nsec以下)のみ考慮すれば良いた
め、次数・予測値の読み出しのための特別のサイクルは
不要になる。また、次数・予測値の更新についても、シ
ステムクロック1サイクルで可能である。そこで参照シ
ンボルパターン102がすべて“0”の場合の処理は図
4の様になる。
All reference symbol patterns 102 are "0".
In the case of, the selector 9 selects the output of the order / predicted value register 8 as the order and predicted value signal instead of the output of the order / predicted value memory 2. Since only the delay (10 nsec or less) in the selector 9 needs to be taken into consideration in this process, a special cycle for reading the order / predicted value becomes unnecessary. Also, the update of the order / predicted value is possible in one system clock cycle. Therefore, the processing when the reference symbol patterns 102 are all "0" is as shown in FIG.

【0039】上記では、参照シンボルパターン102を
全て“0”あるいはそれ以外の場合を別々に説明した
が、実際の画像信号符号化では、これらは混在して起こ
る。このため、動作タイミングとしては、図3と図4の
各ケースを組み合わせた形となる。
In the above, the case where all the reference symbol patterns 102 are "0" or other cases have been separately described, but in actual image signal coding, these occur in a mixed manner. Therefore, the operation timing is a combination of the cases of FIGS. 3 and 4.

【0040】以上の説明より明らかなように本実施例に
於ける符号化処理時間Tは、参照シンボルパターンが全
て“0”以外のシンボル数をNa、全て“0”のシンボ
ル数をNb、符号ビット数をNcとすると、 T=200*Na+100*(Na+Nb)+100*Nc+100*α ( nsec) となる。ここでαは、次数・予測値の更新の際に、更新
処理が正規化処理終了時点で完了しない場合の追加(正
規化処理がない場合は更新に必要な)所要クロック数で
ある。
As is apparent from the above description, in the encoding processing time T in this embodiment, the number of symbols other than "0" for all reference symbol patterns is Na, the number of symbols for all "0" is Nb, and the code is When the number of bits is Nc, T = 200 * Na + 100 * (Na + Nb) + 100 * Nc + 100 * α (nsec). Here, α is the number of clocks required to be added (required for updating when there is no normalization process) when the updating process is not completed at the end of the normalization process when updating the order / predicted value.

【0041】そこで、標準的な解像度水平8画素/m
m、垂直7.7ライン/mmのA4判原稿として、参照
シンボルパターンが全て“0”の割合を2/3、圧縮率
を30と仮定すると Na=1728*2376*(1/3) Nb=1728*2736*(2/3) Nc=1728*2736*(1/30) となり、符号化処理時間Tは約0.7秒となる。ここ
で、次数・予測値の更新は、全シンボルの1/50から
1/200程度であるため、αの影響は無視した。
Therefore, the standard resolution is horizontal 8 pixels / m.
Assuming that the ratio of all reference symbol patterns to be “0” is 2/3 and the compression rate is 30 for an A4 size document of m, vertical 7.7 lines / mm, Na = 1728 * 2376 * (1/3) Nb = 1728 * 2736 * (2/3) Nc = 1728 * 2736 * (1/30), and the encoding processing time T becomes about 0.7 seconds. Here, since the update of the order / predicted value is about 1/50 to 1/200 of all symbols, the influence of α is ignored.

【0042】一方、従来の技術による符号化装置では上
記式で Na=1728*2376 Nb=0 Nc=1728*2736*(1/30) とすれば、符号化処理時間Tは約1.25秒となり、本
発明により符号化処理速度の大幅な向上が実現できるこ
とが分かる。
On the other hand, in the conventional encoding apparatus, if Na = 1728 * 2376 Nb = 0 Nc = 1728 * 2736 * (1/30) in the above equation, the encoding processing time T is about 1.25 seconds. Therefore, it can be seen that the present invention can realize a significant improvement in the encoding processing speed.

【0043】次に図5はこの第2の発明の一実施例であ
る復号化装置のブロック構成を示している。図で、10
は符号ビット系列107より領域幅信号106を基に予
測誤差シンボル105を再生する算術復号器、11はこ
の予測誤差シンボル105と予測値113との排他的論
理和演算を行って情報源シンボル101を再生する予測
逆変換器で、他の部分は図1の実施例と同一の回路であ
る。
Next, FIG. 5 shows a block configuration of a decoding device according to an embodiment of the second invention. In the figure, 10
Is an arithmetic decoder that reproduces the prediction error symbol 105 from the code bit sequence 107 based on the region width signal 106, and 11 performs the exclusive OR operation of the prediction error symbol 105 and the prediction value 113 to obtain the information source symbol 101. It is a predictive inverse converter for reproduction, and the other part is the same circuit as the embodiment of FIG.

【0044】図6はこの算術復号器10の内部構成を示
すブロック構成図で、10aは数直線上の有効領域Ai
を記憶するAレジスタ、10bはMPS領域幅117を
計算する減算器、10cは下界値座標を記憶するレジス
タ、10dはLPSの場合のCレジスタ値119を計算
する減算器、10eは符号ビット系列107を一時記憶
し正規化シフトクロック122に応じて内部の9ビット
レジスタの最上位信号をCレジスタに送ると共に、記憶
した符号ビットの下位8ビットの内容が連続した8個の
“1”になった場合には符号ビット系列107から1ビ
ット入力して内部9ビットレジスタの最下位の位置で加
算を行うことにより符号器において挿入されたビットス
タッフ信号を削除するスタッフビット除去処理を行うた
めの符号レジスタ、10fはこの算術復号器10の動き
を制御するタイミング制御回路である。
FIG. 6 is a block diagram showing the internal structure of the arithmetic decoder 10. 10a is an effective area Ai on the number line.
A is a register that stores the MPS area width 117, 10c is a register that stores the lower bound coordinates, 10d is a subtractor that calculates the C register value 119 in the case of LPS, and 10e is the sign bit sequence 107 Is stored temporarily, and the most significant signal of the internal 9-bit register is sent to the C register in accordance with the normalized shift clock 122, and the contents of the lower 8 bits of the stored sign bit become eight consecutive "1" s. In this case, a code register for performing stuff bit removal processing for deleting the bit stuff signal inserted in the encoder by inputting 1 bit from the code bit sequence 107 and performing addition at the lowest position of the internal 9-bit register. 10 f is a timing control circuit for controlling the movement of the arithmetic decoder 10.

【0045】次に本実施例の動作について説明する。算
術符号の復号化においては、Cレジスタの内容である相
対座標をCi、第i番目の予測誤差シンボルai 時点で
のLPSの領域幅をSとすると、 Ci−1 < (Ai- 1 − S)ならばai はMP
S Ai=Ai- 1 − S Ci=Ci- 1 Ci−1≧(Ai- 1 − S)ならばai はLPS Ai=S Ci=Ci- 1(Ai- 1 − S) とする。
Next, the operation of this embodiment will be described. In the decoding of the arithmetic code, if Ci is the relative coordinate that is the contents of the C register and S is the area width of the LPS at the time of the i-th prediction error symbol a i , Ci−1 <(Ai−1−S ) Then a i is MP
If S Ai = Ai−1−S Ci = Ci−1 Ci−1 ≧ (Ai−1−S), then a i is LPS Ai = S Ci = Ci−1 (Ai−1−S).

【0046】ここで有効領域Aiが1/2以下になった
場合には、演算精度を上げるために正規化処理として2
のべき乗倍する。このときCiの最下位ビットから符号
レジスタ10eからキャリ入力信号123を入力する。 Ai更新値=Ai*2m (1/2Ai更新値≦
1) Ci更新値=Ci*2m
If the effective area Ai becomes 1/2 or less, the normalization process is performed to increase the calculation accuracy to 2
To the power of. At this time, the carry input signal 123 is input from the code register 10e from the least significant bit of Ci. Ai update value = Ai * 2 m (1/2 Ai update value ≦
1) Ci update value = Ci * 2 m

【0047】図7、図8は本実施例の動作例を示すタイ
ミング図で、図7は参照シンボルパターン102が全て
“0”ではない場合を、図8は全て“0”の場合を示
す。参照シンボルパターン102の作成、次数・予測値
の作成および更新動作は図1の実施例と同一である。
7 and 8 are timing charts showing an operation example of this embodiment. FIG. 7 shows a case where the reference symbol patterns 102 are not all "0", and FIG. 8 shows a case where they are all "0". The operations of creating the reference symbol pattern 102, creating and updating the order / predicted value are the same as those in the embodiment of FIG.

【0048】予測誤差シンボルai の再生および有効領
域Ai、相対座標Ciの演算については、まずタイミン
グ制御回路10fにおいて上記の様にCi- 1と(Ai
- 1−S)の比較が行われてシンボルaiが(MPSあ
るいはLPS)決定され、これに基づきAiとCiが計
算されてAレジスタ10aおよびCレジスタ10cに設
定される。この一連の処理はシステムクロック1周期で
行われる。
Regarding the reproduction of the prediction error symbol a i and the calculation of the effective area Ai and the relative coordinate Ci, first, in the timing control circuit 10f, as described above, Ci-1 and (Ai
-1-S) is performed to determine the symbol a i (MPS or LPS), and based on this, Ai and Ci are calculated and set in the A register 10a and the C register 10c. This series of processing is performed in one cycle of the system clock.

【0049】この演算の結果、有効領域Aiが1/2未
満になる場合上記正規化の処理がmクロックで行われ
る。このとき、符号レジスタ10eにおいて記憶した符
号ビットの下位8ビットの内容が連続した8個の“1”
になった場合には正規化クロック121が一時停止され
るとともに符号ビット系列107から1ビット入力して
内部9ビットレジスタの最下位の位置で加算が行われ
る。
As a result of this calculation, when the effective area Ai becomes less than 1/2, the above normalization processing is performed in m clocks. At this time, the contents of the lower 8 bits of the sign bit stored in the sign register 10e are consecutive "1" s.
In this case, the normalized clock 121 is temporarily stopped, 1 bit is input from the code bit sequence 107, and addition is performed at the lowest position of the internal 9-bit register.

【0050】そこで、復号化処理時間Tは符号化時同様 T=200*Na+100*(Na+Nb)+100*Nc+100*α ( nsec) となり、本実施例においても、従来技術による復号化装
置に比べ大幅な向上が実現できる。
Therefore, the decoding processing time T becomes T = 200 * Na + 100 * (Na + Nb) + 100 * Nc + 100 * α (nsec) as in the case of encoding, and this embodiment also has a large time compared with the conventional decoding device. Improvement can be realized.

【0051】また、上記実施例では参照シンボルパター
ンとして全て“0”の状態のみ特別のレジスタを設けて
処理の高速化を図ったが、さらに例えば参照シンボルパ
ターンが全て“1”の状態などを含め、複数個のレジス
タを設けるようにしても良い。
Further, in the above-described embodiment, the special register is provided only for the state of all "0" as the reference symbol pattern to speed up the processing. However, for example, the state of all the reference symbol patterns including "1" is included. Alternatively, a plurality of registers may be provided.

【0052】以下、第3の本発明を図示実施例に基づい
て説明する。図9は本発明の一実施例の符号化装置を示
すもので、図9において、図25従来の符号化装置との
相違点は、参照シンボルパターン102から直前の符号
化対象シンボルに対する参照シンボルパターンと符号化
対象シンボルに対する参照シンボルパターンが一致して
いるか否かを検出する検出器7と、次数・予測値メモリ
2からの次数103及び予測値出力104ないしは、次
数・予測値制御回路6からの更新信号108一時記憶す
る次数・予測値レジスタ8bを設け、この出力を領域幅
テーブル4及び予測変換器3の入力としている点であ
る。
The third aspect of the present invention will be described below with reference to the illustrated embodiments. FIG. 9 shows an encoding apparatus according to an embodiment of the present invention. In FIG. 9, the difference from the conventional encoding apparatus shown in FIG. 25 is that the reference symbol pattern from the reference symbol pattern 102 to the immediately preceding encoding target symbol is changed. And the detector 7 for detecting whether or not the reference symbol pattern for the encoding target symbol matches, the order 103 and the predicted value output 104 from the order / predicted value memory 2, or the order / predicted value control circuit 6. The point is that the order / prediction value register 8b for temporarily storing the update signal 108 is provided, and this output is used as the input to the region width table 4 and the prediction converter 3.

【0053】図10は、算術符号器5の内部構成を示す
ブロック構成図である。図において、5aは数直線上の
有効領域Aiを記憶するAレジスタ、5bはMPS領域
幅117を計算する減算器、5cは下界値座標115を
記憶するCレジスタ、5dはLPSの場合のCレジスタ
値116を計算する加算器、5eはCレジスタのオーバ
ーフロー(シフトアウト)信号であるキャリ出力117
を一時記憶してCレジスタ5c更新時に桁上がりの処理
を行うとともに、記憶した符号ビットの内容が連続した
8個の“1”になった場合には最下位ビットの下から
“0”を挿入して以後の桁上がり処理の影響をこの挿入
“0”以下に抑える処理(以後ビットスタッフ処理と呼
ぶ)を行うための符号レジスタ、5fはこの算術符号器
5の動きを制御するタイミング制御回路である。
FIG. 10 is a block diagram showing the internal structure of the arithmetic encoder 5. In the figure, 5a is an A register for storing the effective area Ai on the number line, 5b is a subtracter for calculating the MPS area width 117, 5c is a C register for storing the lower bound coordinate 115, and 5d is a C register for the LPS. An adder for calculating the value 116, 5e is a carry output 117 which is an overflow (shift out) signal of the C register.
Is temporarily stored to carry a carry when updating the C register 5c, and if the stored code bit contents are eight consecutive "1" s, "0" is inserted from the bottom of the least significant bit. Then, a code register 5f for performing processing (hereinafter referred to as bit stuffing processing) for suppressing the influence of the carry processing thereafter to this insertion "0" or less is a timing control circuit for controlling the operation of the arithmetic encoder 5. is there.

【0054】次に、本実施例の動作について説明する。
図11は本実施例の動作例を示すタイミング図である。
まず、符号化対象シンボルが情報源シンボル101とし
て本符号化装置に入力されると、参照シンボル作成器1
においてすでに処理済の図26に示す12画素の参照画
素の信号が出力102され、当該参照シンボルパターン
における次数及び予測値が次数・予測値メモリ2から読
み出され次数・予測値レジスタ8に記憶される。ここ
で、本実施例では上記参照シンボルパターン作成からレ
ジスタ8に記憶する処理は10MHZのシステムクロッ
ク1周期分100nsecとしている。
Next, the operation of this embodiment will be described.
FIG. 11 is a timing chart showing an operation example of this embodiment.
First, when the encoding target symbol is input to the present encoding device as the information source symbol 101, the reference symbol generator 1
26, the signal of the reference pixel of 12 pixels shown in FIG. 26 that has already been processed is output 102, and the order and prediction value in the reference symbol pattern are read from the order / prediction value memory 2 and stored in the order / prediction value register 8. It Here, in the present embodiment, the process of creating the reference symbol pattern and storing it in the register 8 is 100 nsec for one cycle of the system clock of 10 MHZ.

【0055】次数信号111は、領域幅テーブル4で図
28に示す領域幅信号106に変換され、予測値信号1
12は予測変換器3で当該情報源シンボル101と排他
的論理和演算が施され予測誤差シンボル105が作成さ
れる。この後、上記の有効領域Ai・下界値座標Ciの
演算と次数・予測値の更新が下記の様に行われる。 (1)正規化および次数・予測値の更新がない場合(図
19 #1) 上記領域と座標の演算をシステムクロック1周期で実行
される。 (2)正規化があり、次数・予測値の更新がない場合
(図19 #2) 正規化を除く領域・座標計算処理がシステムクロック1
周期で、正規化がmクロックで実行される。
The order signal 111 is converted by the area width table 4 into the area width signal 106 shown in FIG.
Reference numeral 12 is a prediction converter 3 which performs an exclusive OR operation on the information source symbol 101 to generate a prediction error symbol 105. After that, the calculation of the effective area Ai and the lower limit coordinate Ci and the update of the order / predicted value are performed as follows. (1) When normalization and order / prediction values are not updated (# 1 in FIG. 19) The calculation of the above area and coordinates is executed in one cycle of the system clock. (2) When there is normalization and there is no update of the order / predicted value (# 2 in FIG. 19) The area / coordinate calculation processing other than normalization is performed by the system clock 1
In cycles, normalization is performed in m clocks.

【0056】(3)正規化がなく、次数・予測値の更新
がある場合(図19 #3) 領域と座標の演算をシステムクロック1周期で行った
後、次数・予測値メモリ2の内容を更新する。メモリ更
新はシステムクロック1周期で行う。 (4)正規化と次数・予測値の更新がある場合(図19
#4) 正規化を除く領域・座標計算処理をシステムクロック1
周期で行った後、mクロックで正規化を行うとともに次
数・予測値メモリ2の更新を平行して行う。なおこのと
き次のシンボルの座標計算処理は正規化およびメモリ2
の更新がともに終了してから行う。
(3) Order / prediction value update without normalization (# 3 in FIG. 19) After the area and coordinates are calculated in one cycle of the system clock, the contents of the order / prediction value memory 2 are changed. Update. The memory is updated in one cycle of the system clock. (4) When there is normalization and updating of order / predicted value (Fig. 19)
# 4) System clock 1 for area / coordinate calculation processing excluding normalization
After the cycle, the normalization is performed with m clocks, and the order / predicted value memory 2 is updated in parallel. At this time, the next symbol coordinate calculation process is performed by normalization and memory 2.
It will be done after updating both.

【0057】ここで、LPSとMPSの判定を含む領域
計算および座標計算の制御は、予測誤差シンボル105
およびAレジスタ出力113のMSB信号を元に算術符
号器5のタイミング制御回路5fで行われ、次数・予測
値メモリ2の更新制御は次数・予測値制御回路6で行わ
れる。
Here, the control of the area calculation and the coordinate calculation including the determination of LPS and MPS is performed by the prediction error symbol 105.
And the timing control circuit 5f of the arithmetic encoder 5 based on the MSB signal of the A register output 113, and the update control of the order / predicted value memory 2 is performed by the order / predicted value control circuit 6.

【0058】符号レジスタ5eに於いては桁上がり処理
は、上記(正規化を除く)領域・座標計算に平行して処
理が行われる。正規化時は内部のレジスタのシフトと共
に8ビット目からの桁上がりが符号107として出力さ
れる。この時、8ビットの内部レジスタの全ビットが
“1”の場合はタイミング制御回路5fに対しビットス
タッフ信号119が送られ、正規化クロック118が一
時停止されると共にシステムクロック1周期を使って内
部レジスタの1ビットシフト(LSBシフトイン信号は
“0”とされる)が行われる。
In the sign register 5e, the carry process is performed in parallel with the above-mentioned (excluding normalization) area / coordinate calculation. At the time of normalization, the carry from the 8th bit is output as code 107 along with the shift of the internal register. At this time, when all the bits of the 8-bit internal register are "1", the bit stuff signal 119 is sent to the timing control circuit 5f, the normalized clock 118 is temporarily stopped, and the system clock 1 cycle is used to perform the internal operation. 1-bit shift of the register (LSB shift-in signal is set to "0") is performed.

【0059】上記次数・予測値メモリ2からの読み出し
処理と有効領域Ai・下界値座標Ciの計算は次数・予
測値の更新が行われる可能性があることから、従来、直
列(シリアル)処理とされていた。本実施例では、これ
を以下の様に当該符号化対象シンボルに対する有効領域
Ai・下界値座標Ciの計算と、次の符号化対象シンボ
ルに対する次数・予測値メモリ2からの読み出し処理を
平行して処理する。
Since the order / prediction value may be updated in the reading process from the order / predicted value memory 2 and the calculation of the effective area Ai / lower bound coordinate Ci, conventionally, the serial / serial process is performed. It had been. In the present embodiment, this is performed in parallel with the calculation of the effective area Ai / lower bound coordinate Ci for the target symbol to be encoded and the reading process from the order / predicted value memory 2 for the next symbol to be encoded as follows. To process.

【0060】すなわち、次数・予測値レジスタ8から当
該符号化対象シンボルの次数信号及び予測値信号が出力
されると、次数・予測値メモリ2においては次の符号化
対象シンボルに対する次数及び予測値がシステムクロッ
ク1周期を用いて読み出される。その後、以下のように
処理が行われる。 (1)正規化および次数・予測値の更新がない場合(図
19 #1) 上記領域と座標の演算後、次符号化対象シンボルの領域
・座標演算に移る。 (2)正規化があり、次数・予測値の更新がない場合
(図19 #2) 正規化完了後、次符号化対象シンボルの領域・座標演算
に移る。 (3)正規化がなく、次数・予測値の更新がある場合
(図19 #3) 次数・予測値メモリ2の内容の更新は、検出器7から出
力される当該シンボルに対する参照パターン(参照シン
ボルパターン102を1シンボル分遅らせたもの)、次
数・予測制御回路6からの更新信号108をもとに行
う。この時、参照シンボルパターン102(次の符号化
対象シンボルに対する信号)と当該符号化対象シンボル
に対する参照パターンが一致する場合は、検出信号11
0をもとに次数・予測値レジスタの内容更新が行う。こ
れら内容更新はシステムクロック1周期で処理されその
後、次符号化対象シンボルの領域・座標演算に移る。 (4)正規化と次数・予測値の更新がある場合(図19
#4) 次数・予測値の内容更新は(3)同様に行う。内容更新
後正規化処理が完了していない場合にはそれを待って、
次符号化対象シンボルの領域・座標演算に移る。
That is, when the order / prediction value register 8 outputs the order signal and the predicted value signal of the target symbol to be encoded, the order / predicted value memory 2 outputs the order and the predicted value for the next target symbol to be encoded. It is read using one cycle of the system clock. After that, the processing is performed as follows. (1) When normalization and order / prediction values are not updated (# 1 in FIG. 19) After the above area and coordinates are calculated, the area / coordinate calculation of the next encoding target symbol is performed. (2) Normalization is performed and order / prediction value is not updated (# 2 in FIG. 19) After normalization is completed, the process proceeds to the area / coordinate calculation of the next encoding target symbol. (3) When there is no normalization and the order / predicted value is updated (# 3 in FIG. 19) The contents of the order / predicted value memory 2 are updated by referring to the reference pattern (reference symbol) for the symbol output from the detector 7. The pattern 102 delayed by one symbol) and the update signal 108 from the order / prediction control circuit 6 are used. At this time, if the reference symbol pattern 102 (signal for the next encoding target symbol) and the reference pattern for the encoding target symbol match, the detection signal 11
Based on 0, the contents of the order / predicted value register are updated. These content updates are processed in one cycle of the system clock, and then the area / coordinate calculation of the next encoding target symbol is performed. (4) When there is normalization and updating of order / predicted value (Fig. 19)
# 4) The contents of the order / predicted value are updated in the same manner as (3). If the normalization process is not completed after updating the content, wait for it and
The process moves to the area / coordinate calculation of the next encoding target symbol.

【0061】以上の説明より明らかなように本実施例に
於ける符号化処理時間Tは、全シンボル数をNa、符号
ビット数をNcとすると、 T=100+100*Na+100*Nc+100*α (nsec) となる。ここでαは、上記(3)のケースで次数及び予
測値更新に必要なクロック数である。そこで、標準的な
解像度水平8画素/mm、垂直7.7ライン/mmのA
4判原稿として、圧縮率を30と仮定すると Na=1728*2376 Nc=1728*2736*(1/30) となり、符号化処理時間Tは約0.4秒となる。ここ
で、次数・予測値の更新は、全シンボルの1/50から
1/200程度であり、上記(3)のケースはしかも予
測結果がMPS且つ正規化が発生しない場合に限られる
ため、αの影響は無視した。
As is apparent from the above description, the encoding processing time T in this embodiment is T = 100 + 100 * Na + 100 * Nc + 100 * α (nsec), where Na is the total number of symbols and Nc is the number of code bits. Becomes Here, α is the number of clocks required to update the order and the predicted value in the case of (3) above. Therefore, A with a standard resolution of 8 pixels / mm horizontally and 7.7 lines / mm vertically
Assuming a compression ratio of 30 for a 4-size original, Na = 1728 * 2376 Nc = 1728 * 2736 * (1/30), and the encoding processing time T is about 0.4 seconds. Here, the update of the order / prediction value is about 1/50 to 1/200 of all symbols, and the case of (3) above is limited to the case where the prediction result is MPS and normalization does not occur. Ignored the effect of.

【0062】一方、従来の技術による符号化装置では同
様に T=(100+100)*Na+100*Nc+100*α (nsec) となる。そこで上記同様の条件で計算すれば、符号化処
理時間Tは約0.8秒となり、本発明により符号化処理
速度の大幅な向上が実現できることが分かる。
On the other hand, similarly in the conventional encoding device, T = (100 + 100) * Na + 100 * Nc + 100 * α (nsec). Therefore, if the calculation is performed under the same conditions as described above, the encoding processing time T becomes about 0.8 seconds, and it is understood that the present invention can realize a significant improvement in the encoding processing speed.

【0063】次に、図12は本発明の他の実施例である
符号化装置のブロック構成を示している。図で9は更新
用次数・予測値レジスタ、10は次数・予測値メモリ2
からの読み出し信号を記憶する次数・予測値レジスタ8
の出力と更新用次数・予測値レジスタ9の出力を選択す
る選択器である。
Next, FIG. 12 shows a block configuration of an encoding apparatus which is another embodiment of the present invention. In the figure, 9 is an update order / prediction value register, and 10 is an order / prediction value memory 2
Order / predicted value register 8 for storing the read signal from
And an output of the update order / predicted value register 9 are selected.

【0064】本実施例では、次数・予測値レジスタ8に
は次数・予測値メモリ2からの読み出し信号のみを記憶
し、更新次数・予測値レジスタ9には次数及び予測値の
適応処理後(更新が行われる場合は更新値、行われない
場合は領域計算に用いられた選択器10出力値)の信号
を記憶し、検出信号110により、当該符号化対象シン
ボルの参照パターンが直前の符号化対象シンボルの参照
パターンと同一の場合には更新用次数・予測値レジスタ
9からの出力を、異なる場合には次数・予測値レジスタ
8からの出力を用いて領域幅計算及び予測変換を行うも
のであり、他の処理は図17の実施例と同様の処理を行
うものである。ただし、検出器7からの検出信号110
は図17の実施例の場合に比べ1シンボル分遅れたもの
となる。
In this embodiment, only the read signal from the order / predicted value memory 2 is stored in the order / predicted value register 8, and the updated order / predicted value register 9 is subjected to the adaptive processing of the order and the predicted value (updated). If an update is performed, a signal of the selector 10 used in the area calculation is stored), and the detection signal 110 causes the reference pattern of the target symbol to be encoded immediately before. When the same as the reference pattern of the symbol, the output from the update order / prediction value register 9 is used, and when it is different, the area width calculation and prediction conversion are performed using the output from the order / prediction value register 8. The other processing is the same as that of the embodiment of FIG. However, the detection signal 110 from the detector 7
Is delayed by one symbol as compared with the case of the embodiment of FIG.

【0065】次に図13は第4の本発明の一実施例であ
る復号化装置のブロック構成を示している。図で、11
は符号ビット系列107より領域幅信号106を基に予
測誤差シンボル105を再生する算術復号器、12はこ
の予測誤差シンボル105と予測値112との排他的論
理和演算を行って情報源シンボル101を再生する予測
逆変換器である。また、2は図26の参照画素のうちA
を除いた11画素の参照シンボルパターンを入力しAが
1及び0の2種類の状態に対する次数及び予測値信号
(それぞれ103a、104aと103b、104bの
2種類)を出力する次数・予測値メモリであり、8もこ
の出力を受け、同じく2種類の次数・予測値を記憶する
レジスタである。また13は予測逆変換器12で再生さ
れた直前の情報源シンボル101に応じて2種類の次数
及び予測値のいずれかを選択する選択器であり、また次
数・予測値制御回路6からの更新信号108を受け、再
生された情報源シンボルに応じて図26の参照画素Aが
1あるいは0のいずれかの次数・予測値メモリ2の内容
及び次数・予測値レジスタ8の内容を更新するための第
1選択更新信号108a及び第2選択更新信号108b
を作成する機能を有している。他の部分は図1の実施例
と同一の回路となっている。
Next, FIG. 13 shows a block configuration of a decoding apparatus which is an embodiment of the fourth invention. In the figure, 11
Is an arithmetic decoder that reproduces the prediction error symbol 105 from the code bit sequence 107 based on the region width signal 106, and 12 performs an exclusive OR operation of the prediction error symbol 105 and the prediction value 112 to obtain the information source symbol 101. It is a predictive inverse converter for reproduction. Further, 2 is A among the reference pixels in FIG.
In the order / prediction value memory which inputs the reference symbol pattern of 11 pixels except for A and outputs the order and prediction value signals (two kinds of 103a, 104a and 103b, 104b, respectively) for two kinds of states in which A is 1 and 0 Yes, 8 is a register which receives this output and also stores two kinds of orders and predicted values. Further, 13 is a selector for selecting one of two kinds of orders and prediction values according to the information source symbol 101 immediately before reproduced by the prediction inverse converter 12, and updating from the order / prediction value control circuit 6. For receiving the signal 108 and updating the contents of the order / prediction value memory 2 and the contents of the order / prediction value register 8 in which the reference pixel A in FIG. 26 is either 1 or 0 in response to the reproduced information source symbol. First selection update signal 108a and second selection update signal 108b
Has the function of creating. The other part has the same circuit as that of the embodiment of FIG.

【0066】図14はこの算術復号器11の内部構成を
示すブロック構成図で、11aは数直線上の有効領域A
iを記憶するAレジスタ、11bはMPS領域幅114
を計算する減算器、11cは下界値座標を記憶するレジ
スタ、11dはLPSの場合のCレジスタ値116を計
算する減算器、11eは符号ビット系列107を一時記
憶し正規化シフトクロック118に応じて内部の9ビッ
トレジスタの最上位信号をCレジスタに送ると共に、記
憶した符号ビットの下位8ビットの内容が連続した8個
の“1”になった場合には符号ビット系列107から1
ビット入力して内部9ビットレジスタの最下位の位置で
加算を行うことにより符号器において挿入されたビット
スタッフ信号を削除するスタッフビット除去処理を行う
ための符号レジスタ、11fはこの算術復号器11の動
きを制御するタイミング制御回路である。
FIG. 14 is a block diagram showing the internal structure of the arithmetic decoder 11. 11a is an effective area A on the number line.
A register for storing i, 11b is MPS area width 114
, 11c is a register for storing the lower bound coordinate, 11d is a subtractor for calculating the C register value 116 in the case of LPS, 11e is a temporary storage of the sign bit sequence 107, and corresponds to the normalized shift clock 118. The highest-order signal of the internal 9-bit register is sent to the C register, and when the contents of the lower 8 bits of the stored code bit become eight consecutive "1" s, the code bit sequence 107 to 1
A code register for performing stuff bit removal processing for deleting the bit stuff signal inserted in the encoder by inputting bits and performing addition at the lowest position of the internal 9-bit register, 11f is the arithmetic decoder 11 It is a timing control circuit that controls movement.

【0067】次に本実施例の動作について説明する。算
術符号の復号化においては、Cレジスタの内容である相
対座標をCi、第i番目の予測誤差シンボルai 時点で
のLPSの領域幅をSとすると、 Ci−1 <(Ai−1 − S)ならばai はMPS Ai= Ai−1 − S Ci= Ci−1 Ci−1 ≧(Ai−1 − S)ならばai はLPS Ai= S Ci= Ci−1(Ai−1 − S) とする。
Next, the operation of this embodiment will be described. In the decoding of the arithmetic code, if the relative coordinates that are the contents of the C register are Ci and the area width of the LPS at the time of the i-th prediction error symbol a i is S, then Ci-1 <(Ai-1 − S ), A i is MPS Ai = Ai-1-S Ci = Ci-1 Ci-1 ≧ (Ai-1-S) If ai is LPS Ai = S Ci = Ci-1 (Ai-1-S) ).

【0068】ここで有効領域Aiが1/2以下になった
場合には、演算精度を上げるために正規化処理として2
のべき乗倍する。このときCiの最下位ビットから符号
化レジスタ11eからキャリ入力信号117を入力す
る。 Ai更新値=Ai*2m (1/2Ai更新値≦
1) Ci更新値=Ci*2m
If the effective area Ai becomes 1/2 or less, the normalization process is performed to increase the calculation accuracy by 2
To the power of. At this time, the carry input signal 117 is input from the encoding register 11e from the least significant bit of Ci. Ai update value = Ai * 2 m (1/2 Ai update value ≦
1) Ci update value = Ci * 2 m

【0069】図15は本実施例の動作例を示すタイミン
グ図である。まず復号化対象シンボルに対し、図26の
参照画素のうちAを除いた11画素の参照シンボルパタ
ーンを基に、Aが1及び0の2種類の状態に対する次数
及び予測値をメモリ2から読み出しレジスタ8に記憶す
る。これらの処理はシステムクロック1周期の時間に行
う。その後、直前に再生された情報源シンボルであるA
の値によりこの2種類の次数及び予測値の一方を選択し
て当該情報シンボルの再生及び次数・予測値の更新を行
う。
FIG. 15 is a timing chart showing an operation example of this embodiment. First, for the decoding target symbol, based on the reference symbol pattern of 11 pixels excluding A among the reference pixels in FIG. Store in 8. These processes are performed during the time of one cycle of the system clock. After that, the information source symbol A which is reproduced immediately before is A.
One of these two types of order and prediction value is selected according to the value of, and the information symbol is reproduced and the order and prediction value are updated.

【0070】予測誤差シンボルai の再生および有効領
域Ai、相対座標Ciの演算については、まずタイミン
グ制御回路11fにおいて上記の様にCi−1と(Ai
−1−S)の比較を行ってシンボルai を(MPSある
いはLPS)決定、これに基づきAiとCiを計算され
てAレジスタ11aおよびCレジスタ11cに設定され
る。この一連の処理はシステムクロック1周期で行う。
この演算の結果、有効領域Aiが1/2未満になる場合
上記正規化の処理がmクロックで行う。ここで、符号レ
ジスタ11eにおいて記憶した符号ビットの下位8ビッ
トの内容が連続した8個の“1”になった場合には正規
化クロック118が一時停止するとともに符号ビット系
列107から1ビット入力して内部9ビットレジスタの
最下位の位置で加算が行われる。
Regarding the reproduction of the prediction error symbol a i and the calculation of the effective area Ai and the relative coordinates Ci, first, in the timing control circuit 11f, as described above, Ci-1 and (Ai
-1-S) is compared to determine the symbol a i (MPS or LPS), and based on this, Ai and Ci are calculated and set in the A register 11a and the C register 11c. This series of processing is performed in one cycle of the system clock.
As a result of this calculation, when the effective area Ai becomes less than 1/2, the above normalization processing is performed in m clocks. Here, when the contents of the lower 8 bits of the sign bit stored in the sign register 11e become eight consecutive "1" s, the normalized clock 118 is temporarily stopped and one bit is input from the sign bit sequence 107. And the addition is performed at the lowest position of the internal 9-bit register.

【0071】次数・予測値の更新が必要な場合は、次数
・予測値制御回路6より更新信号が出され、選択器13
で直前に再生された情報源シンボルの値に基づき参照画
素Aが1ないし0に対応する選択更新信号(108a,
108b)を生成し、次数・予測値メモリ2の内容を更
新する。また、このとき直前に読み出された次数・予測
値メモリ2の参照パターン102が更新用参照シンボル
パターンと一致する場合は、次数・予測値レジスタ8の
内容も同時に更新する。この更新処理は上記Aレジスタ
とCレジスタの設定の後行われ、1システムクロック期
間で実行する。
When it is necessary to update the order / predicted value, an update signal is issued from the order / predicted value control circuit 6, and the selector 13
At the selected update signal (108a, 108a,
108b) is generated and the contents of the order / predicted value memory 2 are updated. At this time, if the reference pattern 102 of the order / predicted value memory 2 read immediately before coincides with the update reference symbol pattern, the contents of the order / predicted value register 8 are updated at the same time. This updating process is performed after setting the A register and the C register, and is executed in one system clock period.

【0072】そこで、復号化処理時間Tは符号化次同様 T=100+100*Na+100*Nc+100*α (nsec) となり、本実施例においても、従来技術による復号化装
置に比べ大幅な向上が実現できる。
Therefore, the decoding processing time T becomes T = 100 + 100 * Na + 100 * Nc + 100 * α (nsec) as in the case of the next encoding, and in this embodiment as well, a great improvement can be realized as compared with the decoding device according to the prior art.

【0073】また、図16は他の実施例である復号化装
置のブロック構成を示している。本実施例は図13同様
にメモリ2の読み出し信号を記憶するレジスタ8aとは
別に、更新用のレジスタ9を別に設けたものであり、選
択器10が追加されている。ただし、図12の実施例同
様、本実施例では図13の実施例の場合に比べ検出器7
の検出信号出力110は1シンボル分遅れたものとな
る。
FIG. 16 shows a block configuration of a decoding apparatus which is another embodiment. In this embodiment, as in FIG. 13, a register 9 for updating is provided separately from the register 8a for storing the read signal of the memory 2, and a selector 10 is added. However, like the embodiment of FIG. 12, in this embodiment, the detector 7 is different from that of the embodiment of FIG.
The detection signal output 110 of 1 is delayed by one symbol.

【0074】上記実施例では次数及び予測値の更新をL
PSとMPSの数を計数して制御する方法を用いたが、
上記IBM研究開発情報の様に正規化が行われるタイミ
ングに限って更新制御する方式を用いるようにしても良
い。
In the above embodiment, the order and the predicted value are updated by L
The method of counting and controlling the number of PS and MPS was used.
A method of controlling updating may be used only at the timing when the normalization is performed like the IBM research and development information.

【0075】以下、この第5の発明を図示実施例に基づ
いて説明する。図17は本発明の一実施例の符号化装置
を示すもので、図17において、図25の従来の符号化
装置との相違点は、参照シンボルパターン102から直
前の8個の符号化対象シンボルに対する図26の12参
照画素全てが“0”(白画素)で且つ、符号化シンボル
も“0”であるか否かを検出する検出器7と、12参照
画素全てが“0”の時の次数及び予測値を記憶するレジ
スタ8と、検出器7出力とレジスタ8からの12参照画
素全てが“0”の時の次数が最高次数16であることを
示すa11“0”状態次数信号110と同じく予測値が
“0”であることを示すa11“0”状態予測信号11
1の論理積を演算する第1のAND回路9が付加された
ことである。
The fifth invention will be described below with reference to the illustrated embodiments. FIG. 17 shows an encoding apparatus according to an embodiment of the present invention. In FIG. 17, the difference from the conventional encoding apparatus of FIG. 25 is that the eight symbols to be encoded immediately before the reference symbol pattern 102 are included. 26, the detector 7 for detecting whether all 12 reference pixels are “0” (white pixels) and the coded symbols are also “0”, and when all 12 reference pixels are “0” A register 8 for storing the order and the predicted value, and an a11 “0” state order signal 110 indicating that the output is the highest order 16 when the detector 7 output and all 12 reference pixels from the register 8 are “0”. Similarly, a11 “0” state prediction signal 11 indicating that the prediction value is “0”
That is, the first AND circuit 9 for calculating the logical product of 1 is added.

【0076】図18は、算術符号器5の内部構成を示す
ブロック構成図である。図において、5aは数直線上の
有効領域Aiを記憶するAレジスタ、5bはMPS領域
幅114を計算する減算器、5cは下界値座標115を
記憶するCレジスタ、5dはLPSの場合のCレジスタ
値116を計算する加算器、5eはCレジスタのオーバ
ーフロー(シフトアウト)信号であるキャリ出力117
を一時記憶してCレジスタ5c更新時に桁上がりの処理
を行うとともに、記憶した符号ビットの内容が連続した
8個の“1”になった場合には最下位ビットの下から
“0”を挿入して以後の桁上がり処理の影響をこの挿入
“0”以下に抑える処理(以後ビットスタッフ処理と呼
ぶ)を行うための符号レジスタ、5fはこの算術符号器
5の動きを制御するタイミング制御回路である。
FIG. 18 is a block diagram showing the internal structure of the arithmetic encoder 5. In the figure, 5a is an A register for storing the effective area Ai on the number line, 5b is a subtractor for calculating the MPS area width 114, 5c is a C register for storing the lower bound coordinate 115, and 5d is a C register for the LPS. An adder for calculating the value 116, 5e is a carry output 117 which is an overflow (shift out) signal of the C register.
Is temporarily stored to carry a carry when updating the C register 5c, and if the stored code bit contents are eight consecutive "1" s, "0" is inserted from the bottom of the least significant bit. Then, a code register 5f for performing processing (hereinafter referred to as bit stuffing processing) for suppressing the influence of the carry processing thereafter to this insertion "0" or less is a timing control circuit for controlling the operation of the arithmetic encoder 5. is there.

【0077】更に、5gはAレジスタ出力が0X 100
0+0X 0008を越えていることを検出する領域検出
器、5hはこの出力と第1のAND回路9の出力である
切替え信号112との論理積を演算する第2のAND回
路、5iはこの第2のAND回路出力が1のときは領域
幅信号106を8倍する切替え器である。このうち、5
aから5fまでの回路は従来の算術符号器に用いられる
もので、本実施例と従来装置との相違点は5gから5i
が追加された時点である。
Further, 5 g has an A register output of 0 × 100.
The area detector 5h for detecting that it exceeds 0 + 0 X 0008 is a second AND circuit 5h for calculating the logical product of this output and the switching signal 112 which is the output of the first AND circuit 9. When the output of the AND circuit 2 is 1, it is a switcher that multiplies the area width signal 106 by 8. Of these, 5
The circuits from a to 5f are used in the conventional arithmetic encoder, and the difference between this embodiment and the conventional device is 5g to 5i.
Is the time when was added.

【0078】次に、本実施例の動作について説明する。
図19及び図20は本実施例の動作例を示すタイミング
図である。説明を容易にするため、連続する8符号化シ
ンボルに対する参照シンボルパターン102が全て
“0”ではない場合(以下単にa11“0”状態と呼
ぶ)と、連続する8符号化シンボルに対する参照シンボ
ルパターン102が全て“0”の場合とに分けて個別に
説明する。
Next, the operation of this embodiment will be described.
19 and 20 are timing charts showing an operation example of this embodiment. For ease of explanation, when all the reference symbol patterns 102 for continuous 8 coded symbols are not “0” (hereinafter, simply referred to as a11 “0” state), the reference symbol pattern 102 for continuous 8 coded symbols. Will be explained separately by dividing into cases where all are "0".

【0079】まず、a11“0”状態の場合は、予測対
象シンボルが情報源シンボル101として本符号化装置
に入力されると、参照シンボル作成器1においてすでに
処理済の図26に示す12画素の参照画素の信号が出力
102され、検出器7において連続する8符号化シンボ
ルに対する参照シンボルパターンが全て“0”でないこ
とが判定される。そこで検出信号109としては“0”
が出力される。これと同時に、次数・予測値メモリ2か
らは当該参照シンボルパターンにおける次数信号103
及び予測値信号104が出力信号が読み出される。ここ
で、本実施例ではメモリ2の読み出し処理は10MHZ
のシステムクロック1周期分100nsecとしてい
る。
First, in the case of the a11 "0" state, when the prediction target symbol is input to the present coding apparatus as the information source symbol 101, the reference pixel generator 1 has already processed 12 pixels of 12 pixels shown in FIG. The signal of the reference pixel is output 102, and it is determined in the detector 7 that the reference symbol patterns for the continuous 8 coded symbols are not all “0”. Therefore, the detection signal 109 is "0".
Is output. At the same time, the order / prediction value memory 2 outputs the order signal 103 in the reference symbol pattern.
Also, the output signal of the predicted value signal 104 is read. Here, in this embodiment, the reading process of the memory 2 is 10 MHz.
The system clock is set to 100 nsec.

【0080】次数信号103は、領域幅テーブル4で図
28に示す領域幅信号106に変換され、予測値信号1
04は予測変換器3で当該情報源シンボル101と排他
的論理和演算が施され予測誤差シンボル105が作成さ
れる。この後、上記の有効領域Ai・下界値座標Ciの
演算と次数・予測値の更新が下記の様に行われる。 (1)正規化および次数・予測値の更新がない場合(図
19 #1) 上記領域と座標の演算をシステムクロック1周期で実行
される。 (2)正規化があり、次数・予測値の更新がない場合
(図19 #2) 正規化を除く領域・座標計算処理がシステムクロック1
周期で、正規化がmクロックで実行される。 (3)正規化がなく、次数・予測値の更新がある場合
(図19 #3) 領域と座標の演算をシステムクロック1周期で行った
後、次数・予測値メモリ2の内容を更新する。メモリ更
新はシステムクロック2周期で行う。 (4)正規化と次数・予測値の更新がある場合(図19
#4) 正規化を除く領域・座標計算処理をシステムクロック1
周期で行った後、mクロックで正規化を行うとともに次
数・予測値メモリ2の更新を平行して行う。なおこのと
き次のシンボルの処理は正規化およびメモリ2の更新が
ともに終了してから行う。
The order signal 103 is converted by the area width table 4 into the area width signal 106 shown in FIG.
Reference numeral 04 is a prediction converter 3 which performs an exclusive OR operation on the information source symbol 101 to generate a prediction error symbol 105. After that, the calculation of the effective area Ai and the lower limit coordinate Ci and the update of the order / predicted value are performed as follows. (1) When normalization and order / prediction values are not updated (# 1 in FIG. 19) The calculation of the above area and coordinates is executed in one cycle of the system clock. (2) When there is normalization and there is no update of the order / predicted value (# 2 in FIG. 19) The area / coordinate calculation processing other than normalization is performed by the system clock 1
In cycles, normalization is performed in m clocks. (3) When there is no normalization and there is an update of the order / predicted value (# 3 in FIG. 19) After the area and coordinates are calculated in one cycle of the system clock, the contents of the order / predicted value memory 2 are updated. The memory is updated in two system clock cycles. (4) When there is normalization and updating of order / predicted value (Fig. 19)
# 4) System clock 1 for area / coordinate calculation processing excluding normalization
After the cycle, the normalization is performed with m clocks, and the order / predicted value memory 2 is updated in parallel. At this time, the processing of the next symbol is performed after both the normalization and the update of the memory 2 are completed.

【0081】ここで、a11“0”状態で次数・予測値
の更新が行われるときには、次数・予測値メモリ2と同
時にa11“0”状態用の次数・予測値レジスタ8の内
容も更新される。
When the order / predicted value is updated in the a11 "0" state, the contents of the order / predicted value register 8 for the a11 "0" state are updated at the same time as the order / predicted value memory 2. ..

【0082】LPSとMPSの判定を含む領域計算およ
び座標計算の制御は、予測誤差シンボル105およびA
レジスタ出力113のMSB信号を元に算術符号器5の
タイミング制御回路5fで行われ、次数・予測値メモリ
2の更新制御は次数・予測値制御回路6で行われる。
The control of the area calculation and the coordinate calculation including the determination of LPS and MPS is performed by the prediction error symbols 105 and A.
Based on the MSB signal of the register output 113, the timing control circuit 5f of the arithmetic encoder 5 performs the update control of the order / predicted value memory 2 in the order / predicted value control circuit 6.

【0083】符号レジスタ5eに於いては桁上がり処理
は、上記(正規化を除く)領域・座標計算に平行して処
理が行われる。正規化時は内部のレジスタのシフトと共
に8ビット目からの桁上がり符号107として出力され
る。この時、8ビットの内部レジスタの全ビットが
“1”の場合はタイミング制御回路5fに対しビットス
タッフ信号119が送られ、正規化クロック118が一
時停止されると共にシステムクロック1周期を使って内
部レジスタの1ビットシフト(LSBシフトイン信号は
“0”とされる)が行われる。
In the sign register 5e, the carry process is performed in parallel with the above-mentioned (excluding normalization) area / coordinate calculation. At the time of normalization, the carry code 107 from the 8th bit is output together with the shift of the internal register. At this time, when all the bits of the 8-bit internal register are "1", the bit stuff signal 119 is sent to the timing control circuit 5f, the normalized clock 118 is temporarily stopped, and the system clock 1 cycle is used to perform the internal operation. 1-bit shift of the register (LSB shift-in signal is set to "0") is performed.

【0084】8連続符号化シンボルに対する参照シンボ
ルパターン102が全て“0”の場合は、第1及び第2
のAND回路により算術演算を一括処理するか否かが判
断される。即ち、第2のAND回路5h出力121は、
対応する8符号化シンボルが全て“0”(検出信号10
9が“1”)、且つa11“0”状態の次数が16(a
11“0”状態次数信号110が“1”)、且つ同状態
の予測値が“0”(a11“0”状態予測値“1”)場
合に、“1”となる。これが“0”の場合は上記同様図
11に示すタイミングで処理される。
When all the reference symbol patterns 102 for 8 consecutive encoded symbols are "0", the first and second
The AND circuit determines whether or not to collectively process the arithmetic operations. That is, the output 121 of the second AND circuit 5h is
The corresponding 8 encoded symbols are all "0" (detection signal 10
9 is “1”), and a11 “0” state order is 16 (a
When the 11 "0" state order signal 110 is "1") and the predicted value of the same state is "0" (a11 "0" state predicted value "1"), it becomes "1". When this is "0", the processing is performed at the timing shown in FIG.

【0085】一括処理の場合は、切替え器5iで領域幅
信号106が8倍され、“0X 0008”が減算器5b
の減算入力123とされ算術演算が行われる。直前のA
レジスタ出力113は、0X 0008を越えており、検
算処理を行っても0X 1000以上となるため正規化処
理は発生しない。また次数及び予測値の更新も生じない
ため、引き続き次符号化シンボル、すなわち9画素目の
符号化が実行される。この領域演算処理はシステムクロ
ック1サイクルで可能である。この処理の動作を図4に
示す。
In the case of batch processing, the area width signal 106 is multiplied by 8 by the switch 5i, and "0 X 0008" is subtracted by the subtractor 5b.
Is used as the subtraction input 123 for arithmetic operation. A just before
Since the register output 113 exceeds 0 X 0008 and becomes 0 X 1000 or more even if the verification process is performed, the normalization process does not occur. Further, since the order and the predicted value are not updated, the next coded symbol, that is, the 9th pixel is continuously coded. This area arithmetic processing can be performed in one cycle of the system clock. The operation of this process is shown in FIG.

【0086】上記では、連続する8参照シンボルパター
ン102を全て“0”あるいはそれ以外の場合を別々に
説明したが、実際の画像信号符号化では、これらは混在
して起こる。このため、動作タイミングとしては、図1
1と図12の各ケースを組み合わせた形となる。
In the above description, the case where all of the continuous 8 reference symbol patterns 102 are "0" or other cases have been separately described, but in actual image signal encoding, these occur in a mixed manner. Therefore, the operation timing is as shown in FIG.
1 and each case of FIG. 12 are combined.

【0087】以上の説明より明らかなように、本実施例
に於ける符号化処理時間Tは、一括処理が可能な場合す
なわち、8連続符号化対象画素に対する参照シンボルパ
ターンが全て“0”、且つ対応する8符号化シンボルが
全て“0”、且つa11“0”状態の次数が16、且つ
同状態の予測値が“0”、且つ有効領域幅が0X 100
0+0X 0008を越えている場合の符号化対象シンボ
ル数をNa、それ以外の符号化対象シンボル数をNb符
号、符号ビット数をNcとすると、 T=100(Na/8+Nb)+100*(Na/8+Nb) +100*Nc+100*α (nsec) となる。ここでαは、上記(3)の次数・予測値の更新
の際に必要な所要クロック数である。
As is clear from the above description, the coding processing time T in the present embodiment is such that when the batch processing is possible, that is, all the reference symbol patterns for 8 consecutive coding target pixels are "0", and all the corresponding 8 coded symbols "0", and a11 "0" order is 16 states, and the predicted value of the state is "0", and the effective area width is 0 X 100
Assuming that the number of encoding target symbols in the case of exceeding 0 + 0 X 0008 is Na, the number of other encoding target symbols is Nb code, and the number of code bits is Nc, T = 100 (Na / 8 + Nb) + 100 * (Na / 8 + Nb) + 100 * Nc + 100 * α (nsec). Here, α is the required number of clocks when updating the order / predicted value in (3) above.

【0088】そこで、標準的な解像度水平8画素/m
m、垂直7.7ライン/mmのA4判原稿として、一括
処理可能な画素の割合を2/3、圧縮率を30と仮定す
ると Na=1728*2376(2/3) Nb=1728*2376*(1/3) Nc=1728*2736*(1/30) となり、符号化処理時間Tは約0.35秒となる。ここ
で、次数・予測値の更新は、全シンボルの1/50から
1/200程度であるため、αの影響は無視した。
Therefore, the standard resolution is horizontal 8 pixels / m.
Assuming that the ratio of the pixels that can be collectively processed is 2/3 and the compression rate is 30 for an A4 size document of m, vertical 7.7 lines / mm, Na = 1728 * 2376 (2/3) Nb = 1728 * 2376 * (1/3) Nc = 1728 * 2736 * (1/30), and the encoding processing time T is about 0.35 seconds. Here, since the update of the order / predicted value is about 1/50 to 1/200 of all symbols, the influence of α is ignored.

【0089】一方、従来の技術による符号化装置では上
記式で Na=0 Nb=1728*2376 Nc=1728*2736*(1/30) とすれば、符号化処理時間Tは約0.83秒となり、本
発明により符号化処理速度の大幅な向上が実現できるこ
とが分かる。
On the other hand, in the conventional encoding apparatus, if Na = 0 Nb = 1728 * 2376 Nc = 1728 * 2736 * (1/30) in the above equation, the encoding processing time T is about 0.83 seconds. Therefore, it can be seen that the present invention can realize a significant improvement in the encoding processing speed.

【0090】次に図21は第6の発明の一実施例である
復号化装置のブロック構成を示している。図で、10は
符号ビット系列107より領域幅信号106を基に予測
誤差シンボル105を再生する算術復号器、11はこの
予測誤差シンボル105と予測値104との排他的論理
和演算を行って情報源シンボル101を再生する予測逆
変換器である。12は算術復号器10からの一括処理識
別信号121を受け通常処理の場合は予測逆変換器11
出力を、一括処理の場合は8連続の“0”信号を情報源
シンボル101として出力する情報シンボル切替え器
(選択器)で、他の部分は図1の実施例と同一の回路で
ある。
Next, FIG. 21 shows a block configuration of a decoding apparatus according to an embodiment of the sixth invention. In the figure, 10 is an arithmetic decoder that reproduces a prediction error symbol 105 from a code bit sequence 107 based on a region width signal 106, and 11 is an information obtained by performing an exclusive OR operation of the prediction error symbol 105 and a prediction value 104. It is a predictive inverse transformer that reproduces the source symbol 101. Reference numeral 12 denotes a batch processing identification signal 121 from the arithmetic decoder 10 and, in the case of normal processing, a prediction inverse converter 11
In the case of batch processing, the output is an information symbol switch (selector) which outputs eight consecutive "0" signals as the information source symbol 101, and the other parts are the same circuits as in the embodiment of FIG.

【0091】図22はこの算術復号器11の内部構成を
示すブロック構成図で、10aは数直線上の有効領域A
iを記憶するAレジスタ、10bはMPS領域幅117
を計算する減算器、10cは下界値座標を記憶するレジ
スタ、10dはLPSの場合のCレジスタ値119を計
算する減算器、10eは符号ビット系列107を一時記
憶し正規化シフトクロック122に応じて内部の9ビッ
トレジスタの最上位信号をCレジスタに送ると共に、記
憶した符号ビットの下位8ビットの内容が連続した8個
の“1”になった場合には符号ビット系列107から1
ビット入力して内部9ビットレジスタの最下位の位置で
加算を行うことにより符号器において挿入されたビット
スタッフ信号を削除するスタッフビット除去処理を行う
ための符号レジスタ、10fはこの算術復号器10の動
きを制御するタイミング制御回路である。更に、10g
はAレジスタ出力が0X 1000+0X 0008を越え
ていることを検出する領域検出器、10hはこの出力と
第1のAND回路9の出力である切替え信号112との
論理積を演算する第2のAND回路、10iはこの第2
のAND回路出力が1のときは領域幅信号106を8倍
する切替え器である。
FIG. 22 is a block diagram showing the internal structure of the arithmetic decoder 11. 10a is an effective area A on the number line.
A register for storing i, 10b is MPS area width 117
Is a register for storing the lower bound coordinates, 10d is a subtracter for calculating the C register value 119 in the case of LPS, 10e is a temporary storage of the sign bit sequence 107, The highest bit signal of the internal 9-bit register is sent to the C register, and when the contents of the lower 8 bits of the stored code bit become eight consecutive "1" s, the code bit sequence 107 to 1
A code register for performing stuff bit removal processing for deleting the bit stuff signal inserted in the encoder by inputting bits and performing addition at the lowest position of the internal 9-bit register, 10f is the arithmetic decoder 10. It is a timing control circuit that controls movement. Furthermore, 10g
Is a region detector which detects that the output of the A register exceeds 0 X 1000 + 0 X 0008, and 10h is a second AND which calculates a logical product of this output and the switching signal 112 which is the output of the first AND circuit 9. AND circuit, 10i is the second
When the AND circuit output of 1 is 1, it is a switcher that multiplies the area width signal 106 by 8.

【0092】次に本実施例の動作について説明する。算
術符号の復号化においては、Cレジスタの内容である相
対座標をCi、第i番目の予測誤差シンボルai 時点で
のLPSの領域幅をSとすると、 Ci−1 <(Ai−1 − S)ならばai はMPS Ai= Ai−1 − S Ci= Ci−1 Ci−1 ≧(Ai−1 − S)ならばai はLPS Ai= S Ci= Ci−1(Ai−1 − S) とする。
Next, the operation of this embodiment will be described. In the decoding of the arithmetic code, if the relative coordinates that are the contents of the C register are Ci and the area width of the LPS at the time of the i-th prediction error symbol a i is S, then Ci-1 <(Ai-1 − S ), A i is MPS Ai = Ai-1-S Ci = Ci-1 Ci-1 ≧ (Ai-1-S) If ai is LPS Ai = S Ci = Ci-1 (Ai-1-S) ).

【0093】ここで有効領域Aiが1/2以下になった
場合には、演算精度を上げるために正規化処理として2
のべき乗倍する。このときCiの最下位ビットから符号
レジスタ10eからキャリ入力信号117を入力する。 Ai更新値=Ai*2m (1/2Ai更新値≦
1) Ci更新値=Ci*2m
Here, when the effective area Ai becomes 1/2 or less, the normalization process is performed to increase the calculation accuracy to 2
To the power of. At this time, the carry input signal 117 is input from the code register 10e from the least significant bit of Ci. Ai update value = Ai * 2 m (1/2 Ai update value ≦
1) Ci update value = Ci * 2 m

【0094】図23及び図24は本実施例の動作例を示
すタイミング図である。図23は図19同様通常の処理
を行う場合を、図24は一括処理を行う場合を示す。参
照シンボルパターン102の作成、次数・予測値の作成
及び更新動作は図1の実施例と同一である。
23 and 24 are timing charts showing an operation example of this embodiment. 23 shows a case where normal processing is performed as in FIG. 19, and FIG. 24 shows a case where batch processing is performed. The operations of creating the reference symbol pattern 102, creating and updating the order / predicted value are the same as those in the embodiment of FIG.

【0095】次に、通常の処理の場合、予測誤差シンボ
ルai の再生及び有効領域Ai 、相対座標Ciの演算に
ついては、まずタイミング制御回路10fにおいて上記
の様にCi−1と(Ai−1−S)の比較が行われてシ
ンボルai が(MPSあるいはLPS)決定、これに基
づきAiとCiを計算されてAレジスタ10aおよびC
レジスタ10cに設定される。この一連の処理はシステ
ムクロック1周期で行われる。この演算の結果、有効領
域Aiが1/2未満になる場合上記正規化の処理がmク
ロックで行われる。このとき、符号レジスタ10eにお
いて記憶した符号ビットの下位8ビットの内容が連続し
た8個の“1”になった場合には正規化クロック118
が一時停止するとともに符号ビット系列107から1ビ
ット入力して内部9ビットレジスタの最下位の位置で加
算が行われる。
Next, in the case of normal processing, regarding the reproduction of the prediction error symbol a i and the calculation of the effective area A i and the relative coordinate Ci, first, in the timing control circuit 10f, as described above, Ci-1 and (Ai- 1-S) is performed to determine the symbol a i (MPS or LPS), based on which Ai and Ci are calculated and the A registers 10a and C
It is set in the register 10c. This series of processing is performed in one cycle of the system clock. As a result of this calculation, when the effective area Ai becomes less than 1/2, the above normalization processing is performed in m clocks. At this time, when the contents of the lower 8 bits of the sign bit stored in the sign register 10e become eight consecutive "1" s, the normalized clock 118
Is temporarily stopped, 1 bit is input from the sign bit sequence 107, and addition is performed at the lowest position of the internal 9-bit register.

【0096】一括処理の場合、即ち、情報源シンボルの
復元が完了していない画素を除き、8連続符号化対象画
素に対する参照シンボルパターンが全て“0”、(検出
信号109が“1”)で、且つa11“0”の状態の次
数が16(a11“0”状態次数信号110が
“1”)、且つ同状態の予測値が“0”(a11“0”
状態予測値信号111が“1”)、且つ有効領域幅11
3が0X 1000+0X 0008を越えている(領域検
出器出力120が“1”)の場合には図19の場合同
様、切替え器10iによって領域幅減算用信号122と
して“0X 0008”が用いられ、8連続シンボルに対
する算術演算が行われる。この処理は図19同様システ
ムクロック1周期で行われる。この時復元される情報源
シンボル101としては予測逆変換器11出力に関わら
ず、8連続“0”が情報源シンボル切替え器12より出
力される。
In the case of collective processing, that is, except for the pixels for which the restoration of the information source symbols has not been completed, the reference symbol patterns for all 8 consecutive encoding target pixels are "0" (the detection signal 109 is "1"). , And the order of the a11 “0” state is 16 (a11 “0” state order signal 110 is “1”), and the predicted value of the same state is “0” (a11 “0”).
The state prediction value signal 111 is “1”), and the effective area width 11
When 3 exceeds 0 X 1000 + 0 X 0008 (the area detector output 120 is "1"), "0 X 0008" is used as the area width subtraction signal 122 by the switch 10i as in the case of FIG. Then, an arithmetic operation is performed on 8 consecutive symbols. This processing is performed in one cycle of the system clock as in FIG. As the information source symbol 101 restored at this time, 8 consecutive "0" s are output from the information source symbol switching unit 12 regardless of the output of the prediction inverse transformer 11.

【0097】そこで、復号化処理時間Tは符号化時同様 T=100(Na/8+Nb)+100*(Na/8+Nb) +100*Nc+100*α (nsec) となり、本実施例においても、従来技術による復号化装
置に比べ大幅な向上が実現できる。
Therefore, the decoding processing time T becomes T = 100 (Na / 8 + Nb) + 100 * (Na / 8 + Nb) + 100 * Nc + 100 * α (nsec) as in the case of encoding. It is possible to realize a significant improvement compared to the digitalization device.

【0098】また、上記実施例では参照シンボルパター
ンとして全て“0”の状態のみ特別のレジスタを設けて
処理の高速化を図ったが、さらに例えば参照シンボルパ
ターンが全て“1”の状態などを含め、複数個のレジス
タを設けるようにしても良い。更に、本実施例では一括
処理は次数が最上位16の場合のみとしたが、例えば1
5次の場合にも効領域幅13が0X 1000+0X 10
00を領域検出器5gの判定基準として用いることによ
り同様の一括処理としても良い。
Further, in the above embodiment, a special register is provided only in the state of all "0" as the reference symbol pattern to speed up the process. However, for example, the state of all the reference symbol patterns including "1" is included. Alternatively, a plurality of registers may be provided. Further, in the present embodiment, the batch processing is performed only when the order is the highest 16;
In the case of the fifth order, the effective area width 13 is 0 X 1000 + 0 X 10
The same batch processing may be performed by using 00 as the criterion of the area detector 5g.

【0099】更に、上記実施例では特定のシンボルパタ
ーン状態における次数及び予測値についても次数・予測
値メモリ2から読み出す処理としたが、第1の発明同様
に次数及び予測値の切替え回路を設け、参照シンボルパ
ターンが全て“0”の場合は次数・予測値メモリ2の読
み出し、更新を行わない形としても良い。
Further, in the above embodiment, the order and the predicted value in a specific symbol pattern state are read from the order / predicted value memory 2. However, as in the first invention, a circuit for switching the order and the predicted value is provided. When all the reference symbol patterns are “0”, the order / prediction value memory 2 may not be read or updated.

【0100】また、上記実施例では次数及び予測値の適
応化をMPSあるいはLPS発生数に基づいて行う方式
を示したが、上記IBM研究開発情報記載の様に、正規
化が発生した時点のシンボルがMPSかLPSに応じて
行う方式に適用しても上記同様の効果を奏する。
Further, in the above embodiment, the method of adapting the order and the prediction value based on the number of MPS or LPS occurrences is shown. However, as described in the above IBM R & D information, the symbol at the time of normalization occurs. The same effect as described above can be obtained even if the method is applied to the method according to MPS or LPS.

【0101】[0101]

【発明の効果】以上のように、この第1及び第2の発明
によれば、参照シンボルパターンに応じた対象シンボル
の予測値と次数を記憶するメモリと、参照シンボルパタ
ーンが特定の状態であることを検出する検出器と、この
特定の状態における予測値と次数を記憶するレジスタ
と、この検出器出力に基づき、前記メモリとレジスタを
選択する選択器を設け、特定の参照シンボルパターンに
対応する次数・予測値テーブルについては、メモリを使
用せず、アクセス速度の速いレジスタを使用するように
したので、符号化あるいは復号化速度を大幅に向上でき
る符号化・復号化装置を実現することができる。
As described above, according to the first and second aspects of the invention, the memory for storing the predicted value and the order of the target symbol according to the reference symbol pattern and the reference symbol pattern are in a specific state. A detector for detecting the above, a register for storing the predicted value and the order in this specific state, and a selector for selecting the memory and the register based on the output of this detector, and corresponding to a specific reference symbol pattern. Regarding the order / predicted value table, a register with a high access speed is used without using a memory, so that an encoding / decoding device capable of significantly improving the encoding or decoding speed can be realized. ..

【0102】以上のように、この第3及び第4の発明に
よれば、メモリから読み出された当該符号化対象シンボ
ルの予測値及び次数信号、ないしは、直前の符号化対象
シンボルに対する、書き換え処理後の予測値及び次数を
記憶する次数・予測値レジスタと、符号化対象シンボル
に対する参照シンボル状態と直前のシンボルに対する参
照シンボル状態とが一致しているか否かを検出する検出
器を設け、次のシンボルに対する次数・予測値テーブル
の検索と当該シンボルに対する数直線の領域計算を並行
して行わせるようにしたので、符号化あるいは復号化を
大幅に向上できる符号化・復号化装置を実現することが
できる。
As described above, according to the third and fourth aspects of the present invention, the rewriting process for the prediction value and order signal of the target symbol to be coded read from the memory, or the immediately preceding target symbol to be coded is performed. A degree / prediction value register that stores the subsequent predicted value and the degree, and a detector that detects whether or not the reference symbol state for the symbol to be coded and the reference symbol state for the immediately preceding symbol match are provided. Since the order / prediction table search for a symbol and the area calculation of the number line for the symbol are performed in parallel, it is possible to realize an encoding / decoding device that can significantly improve encoding or decoding. it can.

【0103】以上のように、この第5及び第6の発明に
よれば、参照シンボルパターンに応じた対象シンボルの
予測値と次数を記憶するメモリと、特定の参照シンボル
パターンが連続することを検出する検出器とを設け、特
定の参照シンボルパターンが連続する場合には複数個の
シンボルに対する算術演算を一括して行わせるようにし
たので、符号化あるいは復号化速度を大幅に向上できる
符号化・復号化装置を実現することができる。
As described above, according to the fifth and sixth aspects of the present invention, it is detected that the particular reference symbol pattern is continuous with the memory for storing the predicted value and order of the target symbol corresponding to the reference symbol pattern. Since a detector is provided to perform arithmetic operations on a plurality of symbols in a batch when a specific reference symbol pattern is continuous, encoding / decoding speed that can be greatly improved. A decoding device can be realized.

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

【図1】第1本発明の一実施例による符号化装置のブロ
ック構成図である。
FIG. 1 is a block configuration diagram of an encoding apparatus according to an embodiment of the first present invention.

【図2】本実施例における算術符号器の内部構成を示す
ブロック構成図である。
FIG. 2 is a block configuration diagram showing an internal configuration of an arithmetic encoder in this embodiment.

【図3】本実施例による動作例を示すタイミング図であ
る。
FIG. 3 is a timing diagram showing an operation example according to the present embodiment.

【図4】同じく本実施例による動作例を示すタイミング
図である。
FIG. 4 is a timing diagram showing an operation example according to the present embodiment.

【図5】第2発明の一実施例を示す復号化装置のブロッ
ク構成図である。
FIG. 5 is a block configuration diagram of a decoding device showing an embodiment of the second invention.

【図6】本実施例における算術復号器の内部構成を示す
ブロック構成図である。
FIG. 6 is a block configuration diagram showing an internal configuration of an arithmetic decoder in the present embodiment.

【図7】本実施例による動作例を示すタイミング図であ
る。
FIG. 7 is a timing diagram showing an operation example according to the present embodiment.

【図8】本実施例による動作例を示すタイミング図であ
る。
FIG. 8 is a timing diagram showing an operation example according to the present embodiment.

【図9】第3の発明の一実施例による符号化装置のブロ
ック構成図である。
FIG. 9 is a block configuration diagram of an encoding apparatus according to an embodiment of the third invention.

【図10】図9の実施例における算術符号器の内部構成
を示すブロック構成図である。
10 is a block diagram showing an internal configuration of an arithmetic encoder in the embodiment of FIG.

【図11】図9の実施例による動作例を示すタイミング
図である。
FIG. 11 is a timing diagram showing an operation example according to the embodiment of FIG.

【図12】本発明の他の実施例による符号化装置のブロ
ック図である。
FIG. 12 is a block diagram of an encoding device according to another embodiment of the present invention.

【図13】第4発明の一実施例を示す復号化装置のブロ
ック構成図である。
FIG. 13 is a block diagram of a decoding device showing an embodiment of the fourth invention.

【図14】図13の実施例における算術復号器の内部構
成を示すブロック構成図である。
14 is a block diagram showing an internal configuration of an arithmetic decoder in the embodiment of FIG.

【図15】図13の実施例による動作例を示すタイミン
グ図である。
15 is a timing diagram showing an operation example according to the embodiment of FIG.

【図16】本発明の他の実施例を示す復号化装置のブロ
ック図である。
FIG. 16 is a block diagram of a decoding device according to another embodiment of the present invention.

【図17】第5の発明の一実施例による符号化装置のブ
ロック構成図である。
FIG. 17 is a block configuration diagram of an encoding device according to an embodiment of the fifth invention.

【図18】図17の実施例における算術符号器の内部構
成を示すブロック構成図である。
18 is a block diagram showing an internal configuration of an arithmetic encoder in the embodiment of FIG.

【図19】図17の実施例による動作例を示すタイミン
グ図である。
19 is a timing diagram showing an operation example according to the embodiment of FIG.

【図20】図17の実施例による動作例を示すタイミン
グ図である。
20 is a timing diagram showing an operation example according to the embodiment of FIG.

【図21】第6の発明の一実施例を示す復号化装置のブ
ロック構成図である。
FIG. 21 is a block diagram of a decoding device showing an embodiment of the sixth invention.

【図22】図21の実施例における算術復号器の内部構
成を示すブロック構成図である。
22 is a block diagram showing the internal structure of the arithmetic decoder in the embodiment of FIG. 21. FIG.

【図23】図21の実施例による動作例を示すタイミン
グ図である。
23 is a timing diagram showing an operation example according to the embodiment of FIG. 21. FIG.

【図24】図21の実施例による他の動作例を示すタイ
ミング図である。
FIG. 24 is a timing diagram showing another operation example according to the embodiment of FIG. 21.

【図25】従来の技術による符号化装置のブロック構成
図である。
FIG. 25 is a block diagram of a conventional encoding device.

【図26】符号化に利用される参照シンボルの位置を示
す図である。
FIG. 26 is a diagram showing positions of reference symbols used for encoding.

【図27】次数・予測値テーブルの内容を示す図であ
る。
FIG. 27 is a diagram showing the contents of an order / predicted value table.

【図28】領域幅テーブルの内容を示す図である。FIG. 28 is a diagram showing the contents of an area width table.

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

2 次数・予測値メモリ 3 予測変換器 5 算術符号器 6 次数・予測値制御回路 7 検出器 8 次数・予測値レジスタ 9,12 選択器 10 算術復号器 11 予測逆変換器 2nd order / predicted value memory 3 Prediction converter 5 Arithmetic encoder 6 Order / predicted value control circuit 7 Detector 8 Order / predicted value register 9, 12 Selector 10 Arithmetic decoder 11 Predictive inverse converter

───────────────────────────────────────────────────── フロントページの続き (72)発明者 木村 智広 神奈川県鎌倉市大船五丁目1番1号 三菱 電機株式会社通信システム研究所内 (72)発明者 小野 文孝 神奈川県鎌倉市大船五丁目1番1号 三菱 電機株式会社通信システム研究所内 ─────────────────────────────────────────────────── ─── Continued Front Page (72) Inventor Tomohiro Kimura 5-1-1, Ofuna, Kamakura-shi, Kanagawa Mitsubishi Electric Corporation Communication Systems Laboratory (72) Fumitaka Ono 5-1-1, Ofuna, Kamakura, Kanagawa No. Mitsubishi Electric Corporation Communication Systems Laboratory

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 情報源の出力シンボル系列の予め定めて
おいた位置の複数の参照シンボルの状態から符号化予測
対象となる符号化対象シンボルの予測を行ってその予測
誤差信号を符号化する際に、参照シンボルの状態から上
記符号化対象シンボルの予測値と予測一致率によって分
類される群の識別子である次数とを記憶する書換可能な
メモリと、参照シンボルの状態が1ないし複数個の特定
の状態であることを検出する検出器と、前記特定の状態
に於ける予測値と次数を記憶する1ないし複数個のレジ
スタと、前記検出器出力に基づき、前記メモリとレジス
タ出力を選択する選択器と、選択器より出力された予測
値・次数情報をもとに予測誤差信号を符号化する算術符
号器と、上記符号化対象シンボルが予測一致しているか
否かを検査しその結果に応じて該参照シンボル状態に於
ける予測値および次数を書き換える次数・予測値制御回
路を備えることを特徴とする符号化・復号化装置。
1. When predicting a coding target symbol to be a coding prediction target from the states of a plurality of reference symbols at predetermined positions of an output symbol sequence of an information source and coding the prediction error signal In addition, a rewritable memory for storing the predicted value of the encoding target symbol from the state of the reference symbol and the order which is the identifier of the group classified by the predictive coincidence rate, and the identification of the state of the reference symbol of 1 or more A detector for detecting the state of the above, one or a plurality of registers for storing the predicted value and the order in the specific state, and a selection for selecting the memory and the register output based on the detector output. And the arithmetic encoder that encodes the prediction error signal based on the prediction value and order information output from the selector, and whether or not the above-mentioned symbols to be encoded are predictively matched and the result is checked. An encoding / decoding device comprising an order / prediction value control circuit for rewriting a prediction value and order in the reference symbol state according to the result.
【請求項2】 情報源の出力シンボル系列の予め定めて
おいた位置の複数の参照シンボルの状態から復号化予測
対象となる復号化対象シンボルの予測を行ってその予測
誤差信号を符号化した符号ビット系列を復号化する際
に、参照シンボルの状態から上記復号化対象シンボルの
予測値と予測一致率によって分類される群の識別子であ
る次数とを記憶する書換可能なメモリと、参照シンボル
の状態が1ないし複数個の特定の状態であることを検出
する検出器と、前記特定の状態に於ける予測値と次数を
記憶する1ないし複数個のレジスタと、前記検出器出力
に基づき、前記メモリとレジスタ出力を選択する選択器
と、選択器より出力された次数を基に符号ビット系列を
復号化する算術復号器と、上記復号対象シンボルが予測
一致していたか否かを検査しその結果に応じて該参照シ
ンボル状態に於ける予測値および次数を書き換える次数
・予測値制御回路を備えることを特徴とする符号化・復
号化装置。
2. A code obtained by predicting a decoding target symbol to be a decoding prediction target from the states of a plurality of reference symbols at predetermined positions of an output symbol sequence of an information source and coding the prediction error signal. When decoding a bit sequence, a rewritable memory that stores the predicted value of the decoding target symbol from the state of the reference symbol and the order that is the identifier of the group classified by the predictive matching rate, and the state of the reference symbol Based on the output of the detector, and a detector for detecting that one or a plurality of specific states are stored, one or a plurality of registers for storing predicted values and orders in the specific state. And a register that selects the register output, an arithmetic decoder that decodes the code bit sequence based on the order output from the selector, and whether or not the above decoding target symbols were predicted and matched. An encoding / decoding device comprising an order / prediction value control circuit for inspecting and rewriting a prediction value and order in the reference symbol state according to the result.
【請求項3】 情報源の出力シンボル系列の予め定めて
おいた位置の複数の参照シンボルの状態から符号化対象
シンボルの予測を行ってその予測誤差信号を符号化する
際に、参照シンボルの各状態における上記符号化対象シ
ンボルの予測値と予測一致率によって分類される群の識
別子である次数とを記憶する書換可能なメモリと、この
メモリから読み出された当該符号化対象シンボルの予測
値及び次数信号、ないしは、直前の符号化対象シンボル
に対する、書き換え処理後の予測値及び次数を記憶する
次数・予測値レジスタと、符号化対象シンボルが予測一
致しているか否かを検査しその結果に応じて該参照シン
ボル状態における上記メモリの予測値及び次数を書き換
える次数・予測値制御回路と、符号化対象シンボルに対
する参照シンボル状態と直前のシンボルに対する参照シ
ンボル状態とが一致しているか否かを検出し、検出結果
に従って次数・予測値レジスタの内容を更新する検出器
と、上記次数・予測値レジスタより出力された予測値・
次数情報をもとに予測誤差信号を符号化する算術符号器
とを備えたことを特徴とする符号化・復号化装置。
3. When a prediction target symbol is predicted from the states of a plurality of reference symbols at predetermined positions of an output symbol sequence of an information source and the prediction error signal is coded, each of the reference symbols is A rewritable memory that stores the predicted value of the encoding target symbol in the state and the order that is the identifier of the group classified by the predictive matching rate, the predicted value of the encoding target symbol read from the memory, and The order signal or the order / prediction value register that stores the predicted value and the order after the rewriting process with respect to the immediately preceding encoding target symbol and the encoding target symbol are inspected for prediction, and depending on the result. Order / prediction value control circuit for rewriting the prediction value and the order of the memory in the reference symbol state, and a reference symbol state for the symbol to be encoded. State and the reference symbol state for the immediately preceding symbol are detected, and the detector that updates the contents of the order / predicted value register according to the detection result and the predicted value output from the order / predicted value register・
An encoding / decoding device, comprising: an arithmetic encoder for encoding a prediction error signal based on order information.
【請求項4】 情報源の出力シンボル系列の予め定めて
おいた位置の複数の参照シンボルの状態から復号化予測
対象となる復号化対象シンボルの予測を行ってその予測
誤差信号を符号化した符号ビット系列を復号化する際
に、参照シンボルの状態から復号化対象シンボルの予測
値と予測一致率によって分類される群の識別子である次
数とを記憶する書換可能なメモリと、上記復号化対象シ
ンボルが予測一致しているか否かを検査しその結果に応
じて該参照シンボル状態における上記メモリの予測値及
び次数を書き換える次数・予測値制御回路と、このメモ
リからの予測値及び次数、ないしは、直前の復号化対象
シンボルに対する更新後の予測値及び次数を記憶するレ
ジスタと、復号化対象シンボルに対する参照シンボル状
態と直前のシンボルに対する参照シンボル状態とが一致
しているか否かを検出し、検出結果に従ってする検出器
と、複数個の状態に対するメモリ出力のうちの1組の予
測値及び次数を選択出力する選択器と、選択された予測
値・次数情報をもとに符号ビット系列を復号化する算術
復号器とを備えたことを特徴とする符号化・復号化装
置。
4. A code obtained by predicting a decoding target symbol to be a decoding prediction target from the states of a plurality of reference symbols at predetermined positions of an output symbol sequence of an information source and coding the prediction error signal. When decoding a bit sequence, a rewritable memory that stores a predicted value of a decoding target symbol from a state of a reference symbol and an order that is an identifier of a group classified by a prediction matching rate, and the decoding target symbol And a prediction value control circuit for rewriting the prediction value and order of the memory in the reference symbol state according to the result, and the prediction value and order from this memory, or immediately before Register that stores the updated predicted value and degree for the decoding target symbol of, and the reference symbol state and the immediately preceding symbol for the decoding target symbol. A detector that detects whether or not the corresponding reference symbol states match, and a detector that follows the detection result; a selector that selectively outputs one set of predicted values and orders of memory outputs for a plurality of states; An encoding / decoding device comprising: an arithmetic decoder that decodes a coded bit sequence based on the predicted value / order information thus obtained.
【請求項5】 情報源の出力シンボル系列の予め定めて
おいた位置の複数の参照シンボルの状態から符号化対象
シンボルの予測を行ってその予測誤差信号を符号化する
際に、参照シンボルの状態から符号化対象シンボルの予
測値と予測一致率によって分類される群の識別子である
次数とを記憶する書換可能なメモリと、連続する複数個
の符号化対象シンボルに対する参照シンボルの状態が全
て特定の状態であり且つ全ての符号化対象シンボルが予
測一致する個とを検出する検出器と、上記メモリに記憶
された予測値をもとに当該符号化対象シンボルの予測誤
差を計算する予測変換器と、符号化対象シンボルが予測
一致しているか否かを検査しその結果に応じて該参照シ
ンボル状態における上記メモリの予測値及び次数を書き
換える次数・予測値制御回路を備え、上記メモリに記憶
された次数情報を基に、予測変換器にて計算された予測
誤差信号を符号化する算術符号器とを特徴とする符号化
・復号化装置。
5. A state of a reference symbol when a target symbol to be coded is predicted from the states of a plurality of reference symbols at predetermined positions in an output symbol sequence of an information source and the prediction error signal is coded. From the rewritable memory that stores the predicted value of the encoding target symbol and the order that is the identifier of the group classified by the predictive matching rate, and the state of the reference symbol with respect to a plurality of consecutive encoding target symbols is all specified. A detector that detects a number of symbols that are in a state and in which all the encoding target symbols are predictively matched, and a prediction converter that calculates a prediction error of the encoding target symbol based on the prediction value stored in the memory. , The order / predicted value for rewriting the predictive value and the order of the memory in the reference symbol state according to the result of checking whether or not the symbols to be encoded match prediction An encoding / decoding device comprising a control circuit and an arithmetic encoder for encoding a prediction error signal calculated by a prediction converter based on order information stored in the memory.
【請求項6】 情報源の出力シンボル系列の予め定めて
おいた位置の複数の参照シンボルの状態から符号化対象
シンボル系列の予測を行ってその予測誤差信号を符号化
した符号ビット系列を復号化する際に、参照シンボルの
状態から復号化対象シンボルの予測値と予測一致率によ
って分類される群の識別子である次数とを記憶する書換
可能なメモリと、連続する複数個の復号化対象シンボル
が予測一致すると仮定した場合には該複数個の復号化対
象シンボルに対する参照シンボルの状態が全て特定の状
態であることを検出する検出器と、上記メモリに記憶さ
れた次数情報を基に符号ビット系列を復号化して予測誤
差信号を作成する算術復号器と、算術復号器にて作成さ
れた予測誤差信号と予測信号を基に当該復号化対象シン
ボルを復元する予測逆変換器と、上記復元された復号化
対象シンボルが予測一致しているか否かを検査しその結
果に応じて該参照シンボル状態における予測値及び次数
を書き換える次数・予測値制御回路を備えたことを特徴
とする符号化・復号化装置。
6. A code bit sequence obtained by predicting an encoding target symbol sequence from the states of a plurality of reference symbols at predetermined positions of an output symbol sequence of an information source and encoding the prediction error signal In this case, a rewritable memory that stores the predicted value of the decoding target symbol from the state of the reference symbol and the order that is the identifier of the group classified by the predictive matching rate, and a plurality of consecutive decoding target symbols are When it is assumed that the prediction matches, the state of the reference symbols for the plurality of decoding target symbols is all a specific state, and a code bit sequence based on the order information stored in the memory. An arithmetic decoder that decodes a prediction error signal to generate a prediction error signal, and a prediction that restores the decoding target symbol based on the prediction error signal and the prediction signal created by the arithmetic decoder An inverse transformer and an order / prediction value control circuit for checking whether or not the restored decoding target symbol matches prediction and rewriting the prediction value and order in the reference symbol state according to the result An encoding / decoding device characterized by:
JP3311910A 1991-04-25 1991-10-30 Encoding / decoding device Expired - Fee Related JPH0795693B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US07/871,083 US5313204A (en) 1991-04-25 1992-04-20 Encoding and decoding devices with predictor and detector
DE69224546T DE69224546T2 (en) 1991-04-25 1992-04-23 Coding and decoding devices
EP92106926A EP0510627B1 (en) 1991-04-25 1992-04-23 Encoding and decoding devices

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP3-122672 1991-04-25
JP12267291 1991-04-25

Publications (2)

Publication Number Publication Date
JPH0567978A true JPH0567978A (en) 1993-03-19
JPH0795693B2 JPH0795693B2 (en) 1995-10-11

Family

ID=14841781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3311910A Expired - Fee Related JPH0795693B2 (en) 1991-04-25 1991-10-30 Encoding / decoding device

Country Status (1)

Country Link
JP (1) JPH0795693B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997035434A1 (en) * 1996-03-19 1997-09-25 Mitsubishi Denki Kabushiki Kaisha Encoder, decoder, their methods, and image processor
US5694126A (en) * 1995-03-20 1997-12-02 Oki Data Corporation Adaptive predictive data compression method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5694126A (en) * 1995-03-20 1997-12-02 Oki Data Corporation Adaptive predictive data compression method and apparatus
WO1997035434A1 (en) * 1996-03-19 1997-09-25 Mitsubishi Denki Kabushiki Kaisha Encoder, decoder, their methods, and image processor

Also Published As

Publication number Publication date
JPH0795693B2 (en) 1995-10-11

Similar Documents

Publication Publication Date Title
EP0215229B1 (en) Method for compressing bi-level data
EP0510627B1 (en) Encoding and decoding devices
JPS63167526A (en) Data compression equipment
JP3409552B2 (en) Digital information encoding device, digital information decoding device, and digital information encoding / decoding device
US6058142A (en) Image processing apparatus
US5404138A (en) Apparatus for decoding variable length codes
US5736947A (en) Digital information encoding device, digital information decoding device, digital information encoding/decoding device, digital information encoding method, and digital information decoding method
JP3621512B2 (en) Digital information encoding apparatus, digital information decoding apparatus, digital information encoding / decoding apparatus, digital information encoding method, and digital information decoding method
JP3119025B2 (en) Encoding device and decoding device
JPH0567978A (en) Coder/decoder
JP3871995B2 (en) Encoding device and decoding device
JP3146109B2 (en) Binary image coding device
JPH104551A (en) Image processing unit, method for the unit and storage medium storing the method
JP3317079B2 (en) Variable length code decoding device
JPH07249995A (en) Data encoding device
US6331827B1 (en) Huffman decoder using two priority encoder to reduce circuit scale
JP3384287B2 (en) Encoding device and decoding device
JP3270665B2 (en) Encoding / decoding apparatus and method
JP2842045B2 (en) Data compression device
GB2327827A (en) Motion vector detection image processing apparatus
EP1959671A2 (en) Method of decoding a binary image
JP3146092B2 (en) Encoding device and decoding device
JP3698797B2 (en) Arithmetic encoder / decoder
JP3078692B2 (en) Arithmetic encoder
JP3108243B2 (en) Encoding and decoding device

Legal Events

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

Free format text: PAYMENT UNTIL: 20071011

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20081011

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20091011

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20091011

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20101011

Year of fee payment: 15

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

Free format text: PAYMENT UNTIL: 20111011

Year of fee payment: 16

LAPS Cancellation because of no payment of annual fees