JP3203352B2 - Data decompression processor - Google Patents

Data decompression processor

Info

Publication number
JP3203352B2
JP3203352B2 JP15731196A JP15731196A JP3203352B2 JP 3203352 B2 JP3203352 B2 JP 3203352B2 JP 15731196 A JP15731196 A JP 15731196A JP 15731196 A JP15731196 A JP 15731196A JP 3203352 B2 JP3203352 B2 JP 3203352B2
Authority
JP
Japan
Prior art keywords
code
data
code data
value
processing time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP15731196A
Other languages
Japanese (ja)
Other versions
JPH1013694A (en
Inventor
隆征 伊藤
Original Assignee
新潟日本電気株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新潟日本電気株式会社 filed Critical 新潟日本電気株式会社
Priority to JP15731196A priority Critical patent/JP3203352B2/en
Publication of JPH1013694A publication Critical patent/JPH1013694A/en
Application granted granted Critical
Publication of JP3203352B2 publication Critical patent/JP3203352B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データ伸張処理装
置に関し、特に伝送あるいは記録の為、圧縮符号化され
た画信号データを復号処理するデータ伸張処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data decompression processing device, and more particularly to a data decompression processing device for decoding image data compressed and encoded for transmission or recording.

【0002】[0002]

【従来の技術】従来、データ伸張処理装置としては、特
開昭61−284178号公報や、特開平1−2120
76号公報などに開示されたものがある。以下、説明す
る。
2. Description of the Related Art Conventionally, as a data decompression processing apparatus, Japanese Patent Application Laid-Open No. 61-284178 and Japanese Patent Application Laid-Open
No. 76 is disclosed. This will be described below.

【0003】一般に画像を横(あるいは縦)方向の主走
査による走査線と、その主走査と直交する方向の縦(あ
るいは横)方向の副走査との二次元走査により分解表現
した画信号のデータ量を圧縮することでデータ伝送ある
いは記録時に取り扱うデータ量を少なくすることを目的
とする符号データ形式としては、上記走査線を単位とし
た一次元符号化方式としてモディファイドハフマン符号
(以下MH符号)及び、さらにデータ圧縮率を高めるこ
とを目的として上記副走査により隣接主走査線間の相関
性を利用した二次元符号化方式としてモディファイドリ
ード符号(以下MR符号)が用いられている。
Generally, image signal data obtained by decomposing and expressing an image by two-dimensional scanning of a scanning line by horizontal (or vertical) main scanning and a vertical (or horizontal) sub-scanning direction orthogonal to the main scanning. As a code data format aimed at reducing the amount of data handled during data transmission or recording by compressing the amount, a modified Huffman code (hereinafter referred to as MH code) as a one-dimensional coding method using the scanning line as a unit is described. In order to further increase the data compression rate, a modified read code (hereinafter referred to as an MR code) is used as a two-dimensional encoding method utilizing the correlation between adjacent main scanning lines by the sub-scanning.

【0004】図14は、一般的なMH符号復号器の一例
を示すブロック図である。
FIG. 14 is a block diagram showing an example of a general MH code decoder.

【0005】従来この種のMH符号復号器は、図14に
示すように、コードメモリ1401、MH復号回路14
02、画素生成回路1403、イメージメモリ1404
より構成されている。
Conventionally, this type of MH code decoder includes a code memory 1401 and an MH decoding circuit 14 as shown in FIG.
02, pixel generation circuit 1403, image memory 1404
It is composed of

【0006】コードメモリ1401は、MH符号データ
を記憶するメモリである。MH復号回路1402は、コ
ードメモリ1401から、これから復号処理を行う復号
ラインのMH符号を読み出して、白または、黒のラン長
を出力する。画素生成回路1403は、MH復号回路1
402が出力したラン長情報に相当する白または、黒の
連続画素を生成して、イメージメモリ1404に書き込
む。イメージメモリ1404は、少なくとも1ページ分
の画像データ(前記画素の集合)を記憶する画像データ
記憶部である。
The code memory 1401 is a memory for storing MH code data. The MH decoding circuit 1402 reads, from the code memory 1401, the MH code of the decoding line for which decoding processing is to be performed, and outputs a white or black run length. The pixel generation circuit 1403 includes the MH decoding circuit 1
A continuous white or black pixel corresponding to the run length information output by 402 is generated and written to the image memory 1404. The image memory 1404 is an image data storage unit that stores at least one page of image data (the set of pixels).

【0007】MH符号データを複数に分割し、複数のM
H符号復号器によって並列処理する1次元符号復号化回
路として、例えば特開昭61−284178号公報が知
られている。
The MH code data is divided into a plurality of
For example, Japanese Patent Application Laid-Open No. 61-284178 is known as a one-dimensional code decoding circuit that performs parallel processing by an H code decoder.

【0008】これは、上位装置からの1次元符号(すな
わちMH符号)を復号化するラスタスキャン方式のファ
クシミリ装置における1次元符号復号化回路であって、
ライン同期に使用するEOLの有無を検出するEOL検
出回路と、少なくとも1ページ分の前記1次元符号を記
憶するコードデータ記憶回路と、前記EOL検出回路の
出力結果からEOL最終ビットの次のビットの前記コー
ドデータ記憶回路への格納番地及びワード内ビット位置
を演算するデータアドレス演算回路と、走査ライン先頭
ビットの格納番地及びワード内ビット位置をあらかじめ
定められたラインごとに格納する指標レジスタと、少な
くとも2つの1次元符号復号回路と、制御部とから構成
され、前記EOL検出回路は転送された前記1次元符号
の1ワードmビットを格納する少なくとも2つのコード
レジスタと、該コードレジスタに格納された2ワードの
データ中にEOLが存在するか否かを探知するそれぞれ
12ビット入力1ビット出力で該EOLを探知したとき
ローレベルを出力する(2m−11)個のゼロディテク
タと、該ゼロディテクタのうち1つがローレベルになっ
たときどのゼロディテクタからのものかを検出して2進
符号を出力する2進符号器とを備え、前記制御部は前記
コードデータ記憶回路のアドレス制御と、前記コードレ
ジスタ及び前記指標レジスタへのデータセット制御とを
行うことを特徴とする1次元符号復号化回路である。
This is a one-dimensional code decoding circuit in a raster scan facsimile apparatus for decoding a one-dimensional code (that is, an MH code) from a higher-level device,
An EOL detection circuit for detecting the presence or absence of an EOL used for line synchronization; a code data storage circuit for storing at least one page of the one-dimensional code; and an output result of the EOL detection circuit for determining a next bit of the EOL last bit. A data address arithmetic circuit for calculating a storage address and a bit position in a word in the code data storage circuit, an index register for storing a storage address of a scan line first bit and a bit position in a word for each predetermined line, The EOL detection circuit is composed of two one-dimensional code decoding circuits and a control unit, and the EOL detection circuit stores at least two code registers for storing one word and m bits of the transferred one-dimensional code, and the code registers stored in the code registers. 12-bit input each for detecting whether EOL exists in the data of two words. (2m-11) zero detectors that output a low level when the EOL is detected by the bit output, and which zero detector detects one of the zero detectors when the zero detector becomes a low level. A binary encoder for outputting a binary code, wherein the control unit performs an address control of the code data storage circuit and a data set control to the code register and the index register. It is a code decoding circuit.

【0009】次に、この1次元符号復号化回路について
図16を参照して説明する。
Next, the one-dimensional code decoding circuit will be described with reference to FIG.

【0010】以下の説明は、例として1ページ分のMH
符号データをA1、A2の2領域に分割した場合につい
てのものである。
In the following description, the MH for one page is taken as an example.
This is for the case where code data is divided into two areas A1 and A2.

【0011】図16において、MH符号復号化回路はコ
ードデータ記憶回路2と、MH符号復号回路3と、EO
L検出回路4と、データアドレス演算回路5と、指標レ
ジスタ6と、制御部7とから成る。上位装置1からコー
ドデータバスを経てMH符号データはコードデータ記憶
回路2及びEOL検出回路4に転送される。制御部7か
らのセット信号bによってMH符号データはEOL検出
回路4に格納され、同時に書き込み読出し信号c、アド
レス情報dによってコードデータ記憶回路2に格納され
る。この時EOL検出回路4においてEOL(11個の
連続する理論値“0”とそれに続く1つの理論値
“1”)が検出されなければ、次のMH符号データを上
記手順で格納する。もしEOLが検出されれば、EOL
検出回路4はEOL検出信号hを制御部7に通知すると
共に、EOL検出情報gをデータアドレス演算回路5へ
転送する。データアドレス演算回路5はあらかじめ制御
部7から与えられたEOL検出回路4に格納されている
データのコードデータ記憶回路2への格納番地情報1と
EOL検出情報gとからEOLの次のドット、すなわち
次走査ラインの先頭MH符号データのコードデータ記憶
回路2への格納番地情報i及びワード内位置情報jを演
算して出力する。
In FIG. 16, an MH code decoding circuit includes a code data storage circuit 2, an MH code decoding circuit 3,
It comprises an L detection circuit 4, a data address operation circuit 5, an index register 6, and a control unit 7. The MH code data is transferred from the host device 1 to the code data storage circuit 2 and the EOL detection circuit 4 via the code data bus. The MH code data is stored in the EOL detection circuit 4 by the set signal b from the control unit 7, and is simultaneously stored in the code data storage circuit 2 by the write / read signal c and the address information d. At this time, if the EOL detection circuit 4 does not detect EOL (11 consecutive theoretical values "0" and one subsequent theoretical value "1"), the next MH code data is stored in the above procedure. If EOL is detected, EOL
The detection circuit 4 notifies the control unit 7 of the EOL detection signal h and transfers the EOL detection information g to the data address operation circuit 5. The data address calculation circuit 5 determines the next dot of the EOL from the storage address information 1 in the code data storage circuit 2 of the data stored in the EOL detection circuit 4 given in advance from the control unit 7 and the EOL detection information g, that is, The storage address information i and the in-word position information j of the head MH code data of the next scan line in the code data storage circuit 2 are calculated and output.

【0012】制御部7は、あらかじめ上位装置1から与
えられた全走査ライン数情報aを記憶しておき、EOL
検出信号hの回数をカウントして走査ライン数の半数に
なった時のデータアドレス演算回路5から出力された番
地情報jを指標レジスタ6に格納すべき書き込み制御信
号eを出力し、前記情報i及びjを格納する。コードデ
ータ記憶回路2のMH符号データは指標レジスタ6の値
によってEOLを境に領域A1、A2に分割されるの
で、復号の際には領域A1の読出し先頭番地情報とし
て、MH符号データのコードデータ記憶回路2への書き
込み先頭番地情報を、また領域A2の読出し先頭番地情
報として指標レジスタ6に格納した番地情報iを与える
ことにより、領域A1、領域A2のMH符号データを書
き込み読出し信号cによって読み出し、領域A1のMH
符号データはMH符号復号回路3のMH符号復号器B1
へ、また領域A2のMH符号データはMH符号復号器B
2へ転送して復号を実行し、ビデオデータを出力する。
領域A2の復号開始の際はワード内ビット位置情報jを
アドレス情報dで与え、そのビット位置までシフトした
後復号を実行する。
The control unit 7 stores the total scanning line number information a given from the host device 1 in advance, and
A write control signal e for storing the address information j output from the data address arithmetic circuit 5 when the number of the detection signals h reaches half the number of the scanning lines and storing the address information j in the index register 6 is output. And j. Since the MH code data of the code data storage circuit 2 is divided into areas A1 and A2 at the EOL by the value of the index register 6, the code data of the MH code data is used as decoding start address information of the area A1 at the time of decoding. By giving the write start address information to the storage circuit 2 and the address information i stored in the index register 6 as the read start address information of the area A2, the MH code data of the areas A1 and A2 is read by the write / read signal c. , MH of area A1
The code data is the MH code decoder B1 of the MH code decoding circuit 3.
And the MH code data of the area A2 is the MH code decoder B
2 to execute decoding and output video data.
When decoding of the area A2 is started, the bit position information j in the word is given by the address information d, and the decoding is executed after shifting to the bit position.

【0013】なお、特開昭61−284178号公報に
おいては、上記EOL検出回路について例をあげて説明
されているが、省略する。
In the Japanese Patent Application Laid-Open No. 61-284178, the EOL detection circuit is described with an example, but is omitted.

【0014】次に、MH符号復号回路3のMH符号復号
器B1及びMH符号復号器B2の処理について、図17
を参照して説明する。
Next, the processing of the MH code decoder B1 and the MH code decoder B2 of the MH code decoding circuit 3 will be described with reference to FIG.
This will be described with reference to FIG.

【0015】図17は、MH符号復号器のブロック図を
示す。
FIG. 17 shows a block diagram of the MH code decoder.

【0016】図17は、並直変換レジスタ101、復号
テーブル記憶回路102、ビデオデータ発生回路10
3、タイミング制御回路104より構成される。
FIG. 17 is a block diagram showing a configuration of the parallel-to-vertical conversion register 101, the decoding table storage circuit 102, and the video data generation circuit 10.
3. It is composed of a timing control circuit 104.

【0017】並直変換レジスタ101は、タイミング制
御回路104からの信号c1 によってMH符号データを
1ビットずつシフトして復号テーブル記憶回路102に
与える。復号テーブル記憶回路102は並直レジスタ1
01の出力1ビットを入力順に記憶しビット列の内容が
復号テーブル記憶回路102に記憶されているある値と
一致した時2進ラン長データを出力する。復号テーブル
記憶回路102で出力された2進ラン長データを参照し
て、次段のビデオデータ発生回路103でラン長分の白
または黒のビデオデータを出力する。
The parallel-to-parallel conversion register 101 shifts the MH code data one bit at a time according to the signal c 1 from the timing control circuit 104, and supplies the data to the decoding table storage circuit 102. The decoding table storage circuit 102 stores the parallel register 1
The output 1 bit of 01 is stored in the input order, and when the content of the bit string matches a certain value stored in the decoding table storage circuit 102, binary run length data is output. With reference to the binary run length data output from the decoding table storage circuit 102, the video data generation circuit 103 at the next stage outputs white or black video data corresponding to the run length.

【0018】図17においてMH符号復号時は、MH符
号データを制御部7(図16に図示)からのセット信号
fで並直変換レジスタ101に格納し、コードデータ記
憶回路2(図16に図示)の領域A2を復号するMH符
号復号器B2(図16に図示)は制御部7からのアドレ
ス情報dすなわち前記ビット位置情報jからシフト数
(m−j)を求め復号前に(m−j)回並直変換シフト
レジスタ101をシフトしておくことによって領域A2
の先頭ビットが得られる。
In FIG. 17, at the time of MH code decoding, MH code data is stored in the parallel / translation register 101 by a set signal f from the control unit 7 (shown in FIG. 16), and the code data storage circuit 2 (shown in FIG. 16) The MH code decoder B2 (shown in FIG. 16) that decodes the area A2 of ()) obtains the number of shifts (m−j) from the address information d from the control unit 7, ie, the bit position information j, and obtains (m−j) before decoding. ) By shifting the parallel-to-parallel conversion shift register 101, the area A2
Is obtained.

【0019】このようにして、A1、A2の2つの領域
に分割したものを並列に復号するため、全領域を一つの
復号回路で復号する場合と比べ1/2に近い時間で復号
できる。
In this manner, since the two areas A1 and A2 are decoded in parallel, the decoding can be performed in a time that is close to 1/2 compared with the case where the entire area is decoded by one decoding circuit.

【0020】なお、以上の説明では、分配領域及び、M
H符号復号器を2組に限定したが、指標レジスタをR対
持つことによってMH符号復号器も(R+1)持つこと
ができるので更に高速の符号復号処理が可能となる。
In the above description, the distribution area and M
Although the number of H code decoders is limited to two, the MH code decoder can also have (R + 1) by having R pairs of index registers, so that even faster code decoding can be performed.

【0021】次にMR符号復号器により処理する場合に
ついて記述する。
Next, the case of processing by the MR code decoder will be described.

【0022】二次元符号化方式による符号化(MR符
号)は、1つの走査線を1次元符号化用符号によって符
号化した上で、それに続くK−1本の走査線の各々を、
その前の走査線(以下参照ライン)を参照して符号化す
る方法で行う。
In the encoding by the two-dimensional encoding method (MR code), one scanning line is encoded by a one-dimensional encoding code, and each of the subsequent K-1 scanning lines is encoded by:
The encoding is performed by referring to the preceding scanning line (hereinafter referred to as a reference line).

【0023】図15は、一般的なMR符号復号器の一例
を示すブロック図である。同図においてMR符号復号器
は、2値画像情報を格納するイメージメモリ1505、
符号データを格納するコードメモリ1501、イメージ
メモリ1505から参照ラインの画像データを読み出し
変化点を検出する変化点検出回路1503、コードメモ
リ1501からこれから復号処理を行う復号化ラインの
MR符号を読み出して必要に応じて変化点検出回路15
03よりおくられてくる参照ラインの変化点アドレスを
参照することにより白または黒のラン長を算出するMR
復号回路1502、MR復号回路1502によって得ら
れたラン長からそのランに相当する白または黒の連続画
素を生成してイメージメモリ1505上に書き込む画素
生成回路1504から構成される。
FIG. 15 is a block diagram showing an example of a general MR code decoder. In the figure, an MR code decoder includes an image memory 1505 for storing binary image information,
A code memory 1501 for storing code data, a reference line image data read from the image memory 1505, a change point detection circuit 1503 for detecting a change point, and an MR code of a decode line to be decoded from the code memory 1501 to be read from the code memory 1501. Change point detection circuit 15 according to
MR that calculates the white or black run length by referring to the change point address of the reference line sent from 03
The decoding circuit 1502 includes a pixel generation circuit 1504 which generates white or black continuous pixels corresponding to the run from the run length obtained by the MR decoding circuit 1502 and writes the pixels on the image memory 1505.

【0024】MR復号回路1502には、 コードメモリ1501より復号ラインのコードを読み
出し、連続している符号を1つ1つの符号に切り出す。
The MR decoding circuit 1502 reads the code of the decoding line from the code memory 1501, and cuts out the continuous codes one by one.

【0025】切り出した符号が水平モードの場合、以
後の符号を2つのランが得られるまでMH符号として復
号処理する。
If the extracted code is in the horizontal mode, the subsequent code is decoded as an MH code until two runs are obtained.

【0026】切り出した符号が水平モードでない場
合、変化点検出回路1503より送られてくる参照ライ
ンの変化点アドレスを参照し、白または黒のラン長を算
出する。 の3つの処理があり、の処理を実行した後で切り出し
た符号によってまたはの処理を選択して実行するこ
とによって処理が進行する。
If the extracted code is not in the horizontal mode, the white or black run length is calculated with reference to the change point address of the reference line sent from the change point detection circuit 1503. There are three processes, and after the process is performed, the process proceeds with the code cut out or by selecting and executing the process.

【0027】また、MR符号データを複数の復号手段に
よって並列処理することでMR復号処理に要する時間を
短縮する装置として、例えば特開平1−212076号
公報が知られている。
Japanese Patent Application Laid-Open No. 1-212076 is known as an apparatus for shortening the time required for MR decoding processing by performing parallel processing of MR code data by a plurality of decoding means.

【0028】これは、複数の復号化手段を設け、MR信
号の水平同期信号であるエンドオブラインを検出する検
出手段によりエンドオブライン信号を検出することによ
りMR符号を分割し、復号手段を順次切り替えてMR信
号の復号を行う。MR符号の分割は、MR符号のKパラ
メータで示されるライン数を同一の復号手段で処理され
る様に行う。
In this method, a plurality of decoding means are provided, an MR code is divided by detecting an end-of-line signal by a detection means for detecting an end-of-line which is a horizontal synchronization signal of the MR signal, and the decoding means is sequentially switched. The decoding of the MR signal is performed. The division of the MR code is performed such that the number of lines indicated by the K parameter of the MR code is processed by the same decoding means.

【0029】以上説明したように、MR符号をEOL符
号毎に分割して複数個の符号復号回路で並行して復号さ
せることで、高速な画像信号出力を得ることが出来る。
As described above, a high-speed image signal output can be obtained by dividing an MR code for each EOL code and decoding the MR code in parallel by a plurality of code decoding circuits.

【0030】[0030]

【発明が解決しようとする課題】第一の問題点は、複数
の復号回路を用いても期待通り高速化されないことであ
る。それは、前記従来の技術においては、1ページの符
号データ(MH符号、MR符号)を走査ライン単位(M
R符号の場合は、Kパラメータで示されるライン数単
位)に分割し複数の符号復号回路で並列処理した場合、
各符号復号回路の処理時間が均一にならないことであ
る。
The first problem is that the speed is not increased as expected even if a plurality of decoding circuits are used. In the conventional technique, one page of code data (MH code, MR code) is converted into scan line units (M code).
In the case of an R code, the data is divided into units of the number of lines indicated by the K parameter) and processed in parallel by a plurality of code decoding circuits.
The processing time of each code decoding circuit is not uniform.

【0031】つまり、1ページの符号データにおいて、
走査ラインごとの符号データの圧縮率は異なっている。
また、ある特定の符号復号回路(MH符号復号回路及び
MR符号復号回路)においては、符号データの伸張処理
時間は、符号データの圧縮率と符号データ量によって変
化する。したがって、符号データを走査線数で等分した
場合、各符号復号回路が処理する符号データ量は、符号
復号回路ごとに異なっており、各符号復号回路の処理時
間は、均一化されず、各符号復号回路の内一番多くの処
理時間を必要とした符号復号回路の処理時間が1ページ
の符号データの処理時間となり、必ずしも各符号復号回
路が、最適に機能していないためである。
That is, in one page of code data,
The compression ratio of code data for each scanning line is different.
In a specific code decoding circuit (MH code decoding circuit and MR code decoding circuit), the expansion processing time of the code data changes depending on the compression rate of the code data and the code data amount. Therefore, when code data is equally divided by the number of scanning lines, the amount of code data processed by each code decoding circuit differs for each code decoding circuit, and the processing time of each code decoding circuit is not equalized. This is because the processing time of the code decoding circuit that requires the most processing time among the code decoding circuits is the processing time of the code data of one page, and each code decoding circuit does not always function optimally.

【0032】[発明の目的]本発明の目的は、以上の問
題を解決して、高速且つ特性、性能向上できるデータ伸
張処理装置を提供することにある。
[Object of the Invention] An object of the present invention is to solve the above-mentioned problems and to provide a data decompression processing device which can improve characteristics and performance at high speed.

【0033】[0033]

【課題を解決するための手段】本発明のデータ伸張処理
装置は、複数の復号回路を並列に且つ均等に動作させる
ため符号データの走査ライン単位の分割ライン数を符号
データの圧縮率と符号データ量に応じて変化させる。
SUMMARY OF THE INVENTION A data decompression processing apparatus according to the present invention uses a compression ratio of a code data and a code data compression ratio in order to operate a plurality of decoding circuits in parallel and uniformly. Vary according to amount.

【0034】より具体的には、図1〜4のブロック図に
全体構成を示す如く、ライン同期に使用するEOLの有
無を検出するEOL検出回路(図3の4)と、少なくと
も1ページ分の符号を記憶するコードデータ記憶回路
(図2の2)と、前記EOL検出回路(図3の4)の出
力結果からEOL最終ビットの次のビットの前記コード
データ記憶回路への格納番地およびワード内ビット位置
を演算するデータアドレス演算回路(図3の5)と、走
査ライン先頭ビットの格納番地およびワード内ビット位
置をあらかじめ定められたラインごとに格納する指標レ
ジスタA(図3の17)と、指標レジスタAに格納され
ているある1つの走査ライン先頭ビットの格納番地およ
びワード内ビット位置(以下指標レジスタAの値1)と
その次に格納されている走査ライン先頭ビットの格納番
地およびワード内ビット位置(あらかじめ定められたラ
イン後の走査ライン先頭ビットの格納番地およびワード
内ビット位置で以下指標レジスタAの値2)とその間の
あらかじめ定められたライン数、及びあらかじめ与えら
れる符号データ伸張後のランレングスとから上記指標レ
ジスタAの値1と上記指標レジスタの値2の間の符号デ
ータ(以下符号データ1)の圧縮率(圧縮率1)を出力
する圧縮率演算回路(図3の8)と、その結果を格納す
る圧縮率レジスタ(図3の9)と、あらかじめ与えられ
る後記符号復号回路(図2の15)の処理性能とその処
理する符号データの圧縮率との関係を示す処理性能テー
ブルを格納する処理性能テーブル記憶回路(図4の1
0)と、処理性能テーブル記憶回路(図4の10)に格
納されている値と圧縮率レジスタ(図3の9)の値(上
記圧縮率1)とからその符号データ(上記符号データ
1)を後記符号復号回路が処理した場合の処理時間を計
算し出力する処理時間演算回路(図4の11)と、その
結果を格納する処理時間レジスタ(図4の12)と、処
理時間レジスタ(図4の12)に格納されている値から
1ページ分の符号データ処理時間(処理時間レジスタに
格納されている値の合計)を演算し、その1ページ分の
符号データ処理時間を並列処理する符号復号回路の個数
で除算した値(一つの符号復号回路で必要な処理時間の
平均値で以下平均値A)を求め、次に、処理時間レジス
タ(図4の12)に格納されている値を先頭から順次加
算していき上記平均値Aに最も近い値になるごとにそれ
に対応する指標レジスタA(図3の17)に格納されて
いる走査ライン先頭ビットの格納番地及びワード内ビッ
ト位置を符号復号回路の数だけ選択して出力し、さらに
符号データの末尾の格納番地及びワード内ビット位置を
出力する分割点演算回路(図4の13)と、その結果を
格納する指標レジスタB(図4の14)と、少なくとも
2つの符号復号回路(図4の15)と、イメージメモリ
(図1の16)と、制御部(図3の7)とを含む。
More specifically, as shown in the block diagrams of FIGS. 1-4, an EOL detection circuit (4 in FIG. 3) for detecting the presence / absence of an EOL used for line synchronization is provided with at least one page. A code data storage circuit (2 in FIG. 2) for storing a code, and a storage address and a word in the code data storage circuit for the next bit of the EOL last bit from the output result of the EOL detection circuit (4 in FIG. 3). A data address operation circuit (5 in FIG. 3) for calculating a bit position; an index register A (17 in FIG. 3) for storing a storage address of a scan line first bit and a bit position in a word for each predetermined line; The storage address and the bit position in a word (hereinafter, the value 1 of the index register A) of a certain scanning line first bit stored in the index register A and the next stored value The storage address of the first bit of the scanning line and the bit position in the word (the storage address of the first bit of the scanning line after the predetermined line and the bit position in the word, hereinafter referred to as value 2 of the index register A) and the predetermined line between them The compression ratio (compression ratio 1) of the code data (hereinafter referred to as code data 1) between the value 1 of the index register A and the value 2 of the index register is output from the number and the run length after the expansion of the code data given in advance. Compression rate calculation circuit (8 in FIG. 3), a compression rate register (9 in FIG. 3) for storing the result, and the processing performance of the code decoding circuit (15 in FIG. 2) given in advance and the code to be processed. A processing performance table storage circuit (1 in FIG. 4) for storing a processing performance table indicating a relationship with a data compression ratio.
0), the value stored in the processing performance table storage circuit (10 in FIG. 4) and the value of the compression ratio register (9 in FIG. 3) (the compression ratio 1), and its code data (the code data 1). A processing time calculation circuit (11 in FIG. 4) that calculates and outputs a processing time when the encoding / decoding circuit processes the following, a processing time register (12 in FIG. 4) that stores the result, and a processing time register (FIG. 4). A code for calculating the code data processing time for one page (total of the values stored in the processing time register) from the value stored in 4) 12), and processing the code data processing time for one page in parallel. A value obtained by dividing by the number of decoding circuits (hereinafter, an average value A by an average value of processing time required for one code decoding circuit) is obtained, and then the value stored in the processing time register (12 in FIG. 4) is calculated. The above average is added sequentially from the top Every time the value becomes closest to A, the storage address of the first bit of the scanning line and the bit position in the word stored in the index register A (17 in FIG. 3) corresponding thereto are selected and output by the number of code decoding circuits. A division point arithmetic circuit (13 in FIG. 4) for outputting the storage address at the end of the code data and the bit position in the word; an index register B (14 in FIG. 4) for storing the result; and at least two code decoding units It includes a circuit (15 in FIG. 4), an image memory (16 in FIG. 1), and a control unit (7 in FIG. 3).

【0035】[作用]本発明は、一つの画像を構成する
符号データ(MH圧縮符号、MR圧縮符号)を複数に分
割し、その分割された符号データを分割数に等しい数の
符号データ伸張処理ブロックが同時に符号の伸張処理を
行い画像をビットマップメモリに描画するシステムに対
するものである。
[Operation] According to the present invention, the code data (MH compression code, MR compression code) constituting one image is divided into a plurality of codes, and the divided code data is subjected to a code data decompression process of a number equal to the number of divisions. The present invention is directed to a system in which blocks simultaneously perform code expansion processing and draw an image in a bitmap memory.

【0036】一つの画像全体を細かく見た場合、主走査
線ごとに符号データの圧縮率が異なっている。また、一
般的に、符号データの伸張処理時間は、符号データの圧
縮率と符号データ量によって変化する。したがって、符
号データを主走査線数で等分した場合、各符号データ伸
張処理ブロックの処理時間は、均一化されず、各符号デ
ータ伸張処理ブロックのうち一番多くの処理時間を必要
とした符号データ伸張処理ブロックの処理時間が画像全
体の処理時間となり、各符号データ伸張処理ブロック
が、最適に機能していないという問題が発生する。
When one entire image is viewed in detail, the compression ratio of code data differs for each main scanning line. In general, the expansion processing time of the code data changes depending on the compression rate of the code data and the amount of the code data. Therefore, when the code data is equally divided by the number of main scanning lines, the processing time of each code data decompression processing block is not equalized, and the code that requires the most processing time among the code data decompression processing blocks is used. The processing time of the data decompression processing block becomes the processing time of the entire image, and a problem occurs that each code data decompression processing block does not function optimally.

【0037】そこで、符号データ伸張処理ブロックの処
理性能と符号データの圧縮率及び符号データ量の関係を
最適な値にすることで、各符号データ伸張処理ブロック
の処理時間を均一化することができる。
Therefore, the processing time of each code data decompression processing block can be made uniform by optimizing the relationship between the processing performance of the code data decompression processing block and the compression rate and code data amount of the code data. .

【0038】つまり、本発明は、各符号データ伸張処理
ブロックが処理する符号データサイズをその符号データ
の圧縮率によって変化させ、各符号データ伸張処理ブロ
ックの処理時間を均一化することで全体としての処理時
間の最適化を計る符号データ伸張処理装置を提供するこ
とにある。
That is, according to the present invention, the code data size processed by each code data decompression processing block is changed according to the compression rate of the code data, and the processing time of each code data decompression processing block is made uniform, so that the entire system is processed. An object of the present invention is to provide a code data decompression processor for optimizing a processing time.

【0039】[構成]本発明の構成は、例えば、制御
部、EOL符号検出部、スタックテーブル、処理性能テ
ーブル、記憶部、符号データ伸張処理ブロック1、符号
データ伸張処理ブロック2、符号データ伸張処理ブロッ
ク3、から構成されている。
[Configuration] The configuration of the present invention includes, for example, a control unit, an EOL code detection unit, a stack table, a processing performance table, a storage unit, a code data expansion processing block 1, a code data expansion processing block 2, and a code data expansion processing. Block 3.

【0040】[動作]次に、動作を説明する。符号デー
タには、符号の最初並びに一つの主走査線の符号列の後
にEOL符号が付加されている(MR符号の場合は、E
OL+タグビット)。
[Operation] Next, the operation will be described. An EOL code is added to the code data at the beginning of the code and after the code string of one main scanning line.
OL + tag bit).

【0041】データ受信時に、このEOL符号を検出す
ることで符号データの分割点を検出可能である。例え
ば、画像の先頭から8ラインごとのEOL符号を検出し
た時、その画像の先頭からのアドレスをスタックテーブ
ルに記憶しておく。全画像の符号データ受信後にこのス
タックテーブルを参照することで8ラインごとの符号デ
ータの圧縮率がわかる。また、あらかじめ測定してある
符号データの圧縮率と処理性能の関係を処理性能テーブ
ルに記憶しておく。
When data is received, the division point of the code data can be detected by detecting the EOL code. For example, when an EOL code is detected for every eight lines from the head of the image, the address from the head of the image is stored in the stack table. By referring to this stack table after receiving the code data of all the images, the compression rate of the code data for every eight lines can be known. In addition, the relationship between the compression rate of the code data measured in advance and the processing performance is stored in the processing performance table.

【0042】この二つの情報から、8ラインごとの符号
伸張処理時間と全符号データの伸張処理時間がわかる。
全符号データの伸張処理時間を分割数で割ると平均化さ
れた一つの符号データ伸張処理ブロックの処理時間がわ
かる。
From these two pieces of information, the code expansion processing time for every eight lines and the expansion processing time for all code data can be known.
By dividing the expansion processing time of all the code data by the number of divisions, the processing time of one averaged code data expansion processing block can be obtained.

【0043】先頭から8ラインごとの処理時間を加算し
ていき、平均化された一つの符号データ伸張処理ブロッ
クの処理時間に達するところまでを一つの符号データ伸
張処理ブロックの処理範囲とし、その次の8ラインから
の処理時間を加算していき、平均化された一つの符号デ
ータ伸張処理ブロックの処理時間を達するところまでを
一つの符号データ伸張処理ブロックの処理範囲とすると
いう様に、各符号データ伸張処理ブロックの処理範囲を
決定する。こうすることで各符号データ伸張処理ブロッ
クの処理時間は、平均化されることになる。
The processing time for every eight lines is added from the top, and the processing range of one code data decompression processing block until reaching the processing time of one averaged code data decompression processing block is determined. The processing time from eight lines is added, and the processing range of one code data decompression processing block is set to reach the processing time of one averaged code data decompression processing block. The processing range of the data decompression processing block is determined. In this way, the processing time of each code data decompression processing block is averaged.

【0044】本例では、符号データの圧縮率を8ライン
単位に求めることとしているが、符号データの圧縮率を
求める単位をより細かくし(MR圧縮符号の場合は、K
パラメータによって分割可能な単位が制限される)、符
号データの圧縮率と処理性能の関係をより細分化するこ
とでさらに適切な分割範囲を決定することができる。
In this example, the compression rate of the code data is determined in units of 8 lines. However, the unit for determining the compression rate of the code data is made finer (for MR compression codes,
A unit that can be divided is limited by a parameter), and a more appropriate division range can be determined by further subdividing the relationship between the compression ratio of code data and processing performance.

【0045】[効果]本発明により、一つの画像を構成
する符号データ(MH圧縮符号、MR圧縮符号)を複数
に分割し、その分割された符号データを分割数に等しい
数の処理ブロックが同時に符号の伸張処理を行い画像を
ビットマップメモリに描画するシステムにおいて、各符
号データ伸張処理ブロックが処理する符号データサイズ
をその符号データの圧縮率によって変化させ、各符号デ
ータ伸張処理ブロックの処理時間を均一化することで全
体としての処理時間の最適化を計ることが可能となる。
[Effect] According to the present invention, code data (MH compression code, MR compression code) constituting one image is divided into a plurality of pieces, and the divided code data is simultaneously processed by a number of processing blocks equal to the number of divisions. In a system that performs code decompression processing and draws an image in a bitmap memory, the code data size processed by each code data decompression processing block is changed according to the compression ratio of the code data, and the processing time of each code data decompression processing block is reduced. By uniforming, it is possible to optimize the processing time as a whole.

【0046】以下に、本発明の手段を参照しながら、更
に、詳述する。
The details will be described below with reference to the means of the present invention.

【0047】指標レジスタAは、走査ライン先頭ビット
の格納番地およびワード内ビット位置を符号データの先
頭からあらかじめ定められたラインごとに格納する。
The index register A stores the storage address of the first bit of the scanning line and the bit position in the word for each predetermined line from the top of the code data.

【0048】圧縮率演算回路は、連続して指標レジスタ
Aに格納されているある1つの走査ライン先頭ビットの
格納番地およびワード内ビット位置(以下指標レジスタ
Aの値1)とその次に格納されている走査ライン先頭ビ
ットの格納番地およびワード内ビット位置(以下指標レ
ジスタAの値2)とその間のあらかじめ定められたライ
ン数、及びあらかじめ与えられる1走査ラインの符号デ
ータ伸張後のランレングス(符号データ復号後の画像が
矩形)とから上記指標レジスタAの値1と上記指標レジ
スタAの値2の間の符号データ(符号データ1)の圧縮
率(圧縮率1)を出力する。
The compression ratio calculation circuit sequentially stores the storage address and the bit position in a word (hereinafter, the value 1 of the index register A) of one scanning line head bit stored in the index register A and the next. The scan address and the bit position in the word (hereinafter referred to as index register A value 2), the predetermined number of lines between them, and the run length (code) The compression ratio (compression ratio 1) of the code data (code data 1) between the value 1 of the index register A and the value 2 of the index register A is output from the data decoded image is a rectangle.

【0049】圧縮率レジスタは、その結果を格納する。The compression ratio register stores the result.

【0050】処理性能テーブルは、あらかじめ与えられ
る後記符号復号回路のその処理する符号データの圧縮率
と処理性能との関係を与える。
The processing performance table gives the relationship between the compression rate of the code data to be processed and the processing performance of the code decoding circuit given in advance.

【0051】処理時間演算回路は、処理性能テーブルと
圧縮率レジスタの値(圧縮率1)とその符号データ量
(上記符号データ1のデータ量で前記圧縮率を演算した
際に使用した2つの指標レジスタAの値の差として算出
する。)からその符号データ(上記符号データ1)の処
理時間を計算する。
The processing time calculation circuit calculates the values of the processing performance table and the compression ratio register (compression ratio 1) and the code data amount thereof (the two indices used when calculating the compression ratio based on the data amount of the code data 1). The processing time of the code data (code data 1) is calculated from the difference between the values of the register A.)

【0052】処理時間レジスタは、その結果を格納す
る。
The processing time register stores the result.

【0053】分割点演算回路は、処理時間レジスタに格
納されている値から1ページ分の符号データ処理時間
(処理時間レジスタに格納されている値の合計)を求め
る。次に、その1ページ分の符号データ処理時間を並列
処理する符号復号回路数で除算した値(一つの符号復号
回路で必要な処理時間の平均値で以下平均値A)を求め
る。次に、処理時間レジスタに格納されている値を先頭
から順次加算していき上記平均値Aに最も近い値になる
ごとにそれに対応する指標レジスタAに格納されている
走査ライン先頭ビットの格納番地及びワード内ビット位
置を符号復号回路の数だけ選択して出力し、最後に符号
データの末尾の格納番地及びワード内ビット位置を出力
する。
The division point calculation circuit obtains the code data processing time for one page (total of the values stored in the processing time register) from the value stored in the processing time register. Next, a value obtained by dividing the code data processing time for one page by the number of code decoding circuits for parallel processing (hereinafter referred to as an average value A by an average value of the processing time required by one code decoding circuit) is obtained. Next, the values stored in the processing time register are sequentially added from the top, and each time the value becomes closest to the average value A, the storage address of the scan line head bit stored in the corresponding index register A is added. And the number of bit positions in the word are selected and output by the number of code decoding circuits, and finally the storage address at the end of the code data and the bit position in the word are output.

【0054】指標レジスタBは、その結果を格納する。The index register B stores the result.

【0055】符号復号回路は、指標レジスタBに格納さ
れている走査ライン先頭ビットの格納番地およびワード
内ビット位置に従って、MH符号復号処理またはMR符
号復号処理を行いその結果をイメージメモリに書き込
む。
The code decoding circuit performs MH code decoding or MR code decoding in accordance with the storage address of the first bit of the scanning line stored in the index register B and the bit position in the word, and writes the result to the image memory.

【0056】以上のように各部が機能することにより、
各符号復号回路の処理時間がほぼ均一になり、1ページ
の画像データの処理時間の最適化を計ることが出来る。
As described above, the functioning of each unit allows
The processing time of each code decoding circuit is substantially uniform, and the processing time of one page of image data can be optimized.

【0057】[0057]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0058】図1は、本発明の実施の一形態のデータ伸
張処理装置を示すブロック図である。図1において、1
は、上位装置、20は、復号部、21は、分割部、16
は、イメージメモリである。
FIG. 1 is a block diagram showing a data decompression processing device according to an embodiment of the present invention. In FIG. 1, 1
Is a higher-level device, 20 is a decoding unit, 21 is a dividing unit, 16
Is an image memory.

【0059】図2は、図1の復号部20の詳細ブロック
図である。
FIG. 2 is a detailed block diagram of the decoding unit 20 of FIG.

【0060】図2において、2は、コードデータ記憶回
路、15は、符号復号回路である。
In FIG. 2, 2 is a code data storage circuit, and 15 is a code decoding circuit.

【0061】図3と図4は、図1の分割部21の詳細ブ
ロック図である。
FIGS. 3 and 4 are detailed block diagrams of the dividing section 21 of FIG.

【0062】図3において、4は、EOL検出回路、5
は、データアドレス演算回路、7は、制御部、17は、
指標レジスタA、8は、圧縮率演算回路、9は、圧縮率
レジスタ、である。
In FIG. 3, reference numeral 4 denotes an EOL detection circuit;
Is a data address operation circuit, 7 is a control unit, 17 is
The index registers A and 8 are compression ratio calculation circuits, and 9 is a compression ratio register.

【0063】図4において、10は、処理性能テーブル
記憶回路、11は、処理時間演算回路、12は、処理時
間レジスタ、13は、分割点演算回路、14は、指標レ
ジスタBである。
In FIG. 4, 10 is a processing performance table storage circuit, 11 is a processing time operation circuit, 12 is a processing time register, 13 is a division point operation circuit, and 14 is an index register B.

【0064】本発明の全体の処理の流れを、簡単に述べ
ると、以下のようになる。
The overall processing flow of the present invention is briefly described as follows.

【0065】符号データは、上位装置1からコードデー
タ記憶回路2およびエンドオブライン(EOL)検出回
路4に転送されて記憶される。検出回路4、制御部7、
データアドレス演算回路5により、定められた走査ライ
ン数ごとに次走査ラインの先頭符号の回路2への格納番
地情報iおよびワード内ビット位置情報jを指標レジス
タA17に格納する。回路2の符号データは、指標レジ
スタA17の値によって領域D0 からDm に分割され
る。圧縮率演算回路8、圧縮率レジスタ9、処理性能テ
ーブル記憶回路10、処理時間演算回路11、処理時間
レジスタ12、分割点演算回路13、指標レジスタA1
7、指標レジスタB14により各符号復号回路の処理時
間が平均化される様に領域D0 からDm を各符号復号回
路に割り当てる。符号復号回路15は、回路2の符号デ
ータを並列に処理し、イメージメモリ16に書き込む。
The code data is transferred from the host device 1 to the code data storage circuit 2 and the end of line (EOL) detection circuit 4 and stored therein. Detection circuit 4, control unit 7,
The data address arithmetic circuit 5 stores, in the index register A17, the stored address information i and the bit position information j in the word of the leading code of the next scanning line in the circuit 2 for each predetermined number of scanning lines. Code data of the circuit 2 is divided from the region D 0 to D m by the value of the index register A17. Compression ratio calculation circuit 8, compression ratio register 9, processing performance table storage circuit 10, processing time calculation circuit 11, processing time register 12, division point calculation circuit 13, index register A1
7, assigns the region D 0 as the processing time of each code decoding circuit is averaged by an index register B14 of the D m in each code decoding circuit. The code decoding circuit 15 processes the code data of the circuit 2 in parallel and writes the code data in the image memory 16.

【0066】次に、本発明の実施例の動作について、図
1、図2、図3、図4を参照して詳細に説明する。
Next, the operation of the embodiment of the present invention will be described in detail with reference to FIG. 1, FIG. 2, FIG. 3, and FIG.

【0067】上位装置1からコードデータバスを経て符
号データ(MH符号データ、または、MR符号データ)
は、コードデータ記憶回路2及びEOL検出回路4に転
送される。制御部7からのセット信号bによって符号デ
ータはEOL検出回路4に格納され、同時に書き込み読
出し信号c、アドレス情報dによってコードデータ記憶
回路2に格納される。この時EOL検出回路4において
EOL(11個の連続する論理値“0”とそれに続く1
つの論理値“1”)が検出されなければ、次の符号デー
タを上記手順で格納する。
Code data (MH code data or MR code data) from the host device 1 via the code data bus
Is transferred to the code data storage circuit 2 and the EOL detection circuit 4. The code data is stored in the EOL detection circuit 4 by the set signal b from the control unit 7, and is simultaneously stored in the code data storage circuit 2 by the write / read signal c and the address information d. At this time, the EOL detection circuit 4 outputs EOL (11 consecutive logical values “0” and 1
If one logical value "1" is not detected, the next code data is stored in the above procedure.

【0068】もし、EOL符号が検出されれば、EOL
検出回路4はEOL検出信号hを制御部7に通知すると
共に、EOL検出情報gをデータアドレス演算回路5へ
転送する。
If an EOL code is detected, EOL
The detection circuit 4 notifies the control unit 7 of the EOL detection signal h and transfers the EOL detection information g to the data address operation circuit 5.

【0069】データアドレス演算回路5はあらかじめ制
御部7から与えられたEOL検出回路4に格納されてい
るデータのコードデータ記憶回路2への格納情報1とE
OL検出情報gとからEOLの次のドット、すなわち次
走査ラインの先頭MH符号データのコードデータ記憶回
路2への格納番地情報i及びワード内位置情報jを演算
して出力する。
The data address operation circuit 5 stores the information 1 and E stored in the code data storage circuit 2 of the data stored in the EOL detection circuit 4 given from the control unit 7 in advance.
Based on the OL detection information g, the next address of the EOL, that is, the storage address information i and the in-word position information j of the leading MH code data of the next scan line in the code data storage circuit 2 are calculated and output.

【0070】制御部7は、あらかじめ上位装置1から与
えられた全走査ライン数情報aを記憶しておき、最初の
EOL検出信号h(1ページの符号データの先頭に付加
されているEOL)を受信すると、データアドレス演算
回路5から出力された番地情報i及びビット位置情報j
を指標レジスタA17に格納すべき書き込み制御信号e
を出力する。それ以降は、EOL検出信号hの回数をカ
ウントしてあらかじめ定められた走査ライン数(以下走
査ライン数V)ごとになった時のデータアドレス演算回
路5から出力された番地情報i及びビット位置情報jを
指標レジスタA17に格納すべき書き込み制御信号eを
出力する。
The control section 7 stores the total scanning line number information a given from the host device 1 in advance, and outputs the first EOL detection signal h (EOL added to the head of the code data of one page). Upon reception, the address information i and the bit position information j output from the data address arithmetic circuit 5
Is a write control signal e to be stored in the index register A17.
Is output. Thereafter, the number of times of the EOL detection signal h is counted and the address information i and the bit position information output from the data address arithmetic circuit 5 when the number of scanning lines reaches a predetermined number of scanning lines (hereinafter referred to as the number of scanning lines V). A write control signal e for storing j in the index register A17 is output.

【0071】また、符号データの最後に付加されるEO
L(1ページの符号データの最後には、RTCが付加さ
れており、本EOLは、その一部)を検出したEOL検
出信号hを受信した時データアドレス演算回路5から出
力された番地情報i及びビット位置情報jを指標レジス
タA17に格納すべき書き込み制御信号eを出力し、前
記情報i及びjを格納する。上記処理を1ページの符号
データを受信し終えるまで繰り返す。コードデータ記憶
回路2の符号データは指標レジスタA17の値によって
走査ライン数VごとにEOLを境にD0 からDm に分割
される。
The EO added to the end of the code data
L (the RTC is added to the end of the code data of one page, and this EOL is a part thereof). The address information i output from the data address arithmetic circuit 5 when the EOL detection signal h detecting the EOL detection signal h is detected. And a write control signal e for storing the bit position information j in the index register A17 and storing the information i and j. The above process is repeated until the reception of the code data of one page is completed. Code data code data storage circuit 2 is divided from D 0 to D m bordering the EOL for each scanning line number V by the value of the index register A17.

【0072】次に、制御部7は、圧縮率演算回路8に演
算を実行させるべき演算指示信号pを出力し、圧縮率演
算回路8は、指標レジスタA17に格納されている走査
ライン先頭の番地情報i、ビット位置情報jを先頭から
順次処理していき連続する2つの走査ライン先頭の番地
情報i、ビット位置情報jにつき、先に格納されている
走査ライン先頭ビットの格納番地およびワード内ビット
位置とその次に格納されている走査ライン先頭ビットの
格納番地およびワード内ビット位置の差(つまり、連続
する2つの走査ライン先頭の番地情報i、ビット位置情
報j間の符号データ量)と走査ライン数V、及びあらか
じめ与えられる1走査ラインの符号データ伸張後のラン
レングス(伸張後の画像は、矩形であると想定してい
る、以下ランレングスL)とから符号データの圧縮率を
演算指示信号pを受信するごとに演算し出力して、圧縮
率レジスタ9にセットする。
Next, the control unit 7 outputs an operation instruction signal p for causing the compression ratio operation circuit 8 to execute the operation, and the compression ratio operation circuit 8 outputs the start address of the scanning line stored in the index register A17. The information i and the bit position information j are sequentially processed from the beginning, and the storage address of the first bit of the scanning line and the bit in the word are stored for the address information i and the bit position information j at the beginning of two consecutive scanning lines. The difference between the position and the storage address of the first bit of the scanning line stored next and the bit position in the word (that is, the amount of code data between the address information i and bit position information j at the beginning of two consecutive scanning lines) and scanning The number of lines V, and the run length of the pre-given one-scan-line code data after decompression (the post-decompression image is assumed to be rectangular; Calculates and outputs each to receive an operation instruction signal p compression ratio of the code data from the L), to set the compression ratio register 9.

【0073】つまり、符号データの先頭の番地情報を番
地情報i0 、ビット位置情報j0 とし、指標レジスタA
17に格納されている番地情報、ビット位置情報を番地
情報in 、ビット位置情報jn (n=1〜m)、符号デ
ータの末尾の番地情報を番地情報im+1 、ビット位置情
報をビット位置情報jm+1 とした場合、上記D0 の圧縮
率D0cは、 D0c=符号データ伸張後のビット数/符号データのビット数 =ランレングスL×走査ライン数V /((i1 −i0 )×1ワードのビット数+(j1 −j0 )) 以下同様に上記Dm の圧縮率Dmcは、 Dmc=符号データ伸張後のビット数/符号データのビット数 =ランレングスL×走査ライン数V /((im+1 −im )×1ワードのビット数+(jm+1 −jm )) として与えられる。
That is, the first address information of the code data is set as address information i 0 and bit position information j 0 , and the index register A
The address information and bit position information stored in 17 are address information i n , bit position information j n (n = 1 to m ), the address information at the end of the code data is address information im + 1 , and the bit position information is bit address information. When the bit position information j m + 1 is set, the compression ratio D 0c of D 0 is as follows: D 0c = number of bits after decompression of code data / number of bits of code data = run-length L × number of scan lines V / ((i 1− i 0 ) × the number of bits of one word + (j 1 −j 0 )) Similarly, the compression ratio D mc of D m is D mc = the number of bits after decompression of the code data / the number of bits of the code data = It is given as the run length L × scan line number V / ((i m + 1 -i m) × 1 number of words bits + (j m + 1 -j m )).

【0074】圧縮率レジスタ9は、その結果を格納す
る。
The compression ratio register 9 stores the result.

【0075】処理性能テーブルは、後記符号復号回路の
その処理する符号データの圧縮率と処理性能との関係で
ありあらかじめ与えられる。(図5にその一例を示
す。)以下、図をもとに説明する。
The processing performance table is a relation between the compression rate of the code data to be processed by the code decoding circuit described later and the processing performance, and is given in advance. (One example is shown in FIG. 5.) Hereinafter, description will be made based on the drawings.

【0076】図5は、本発明のデータ伸張処理装置の処
理性能テーブルを示す図である。
FIG. 5 is a diagram showing a processing performance table of the data decompression processing device of the present invention.

【0077】一般的に、符号復号回路の符号データ復号
処理性能は、その回路固有のものであり、また、処理す
る符号データの圧縮率によって変化する。
In general, the code data decoding processing performance of a code decoding circuit is unique to the circuit, and varies depending on the compression ratio of the code data to be processed.

【0078】同図において、圧縮率は、符号データとそ
の符号データを復号した結果である原画とのデータ量の
比で表されるもので以下の通りである。
In the figure, the compression ratio is expressed by the ratio of the data amount of the encoded data to the original image as a result of decoding the encoded data, and is as follows.

【0079】 また、処理性能は、あるまとまった符号データを復号処
理した時の処理時間を符号データ量(ビット数)で除算
した値で、その符号データの圧縮率と対比させたもので
ある。処理性能を算出する際、一般的なドキュメントに
おいては、原画の走査ラインに対して白黒(白:論理値
“0”、黒:論理値“1”)の変化が少ない(1つの符
号データに対するランレングス値が大きい)部分(例え
ば図13の1302部、1304部)と、その逆に、白
黒の変化が多い(1つの符号データに対するランレング
ス値が小さい)部分(例えば図13の1303部の網掛
けの部分)が存在する。一般的に、白黒の変化が多い部
分は、圧縮率が小さく、白黒の変化が少ない部分は、圧
縮率が大きい傾向にある。そこで、1ページのドキュメ
ントにおいて、白黒の変化が少ない部分と白黒の変化が
多い部分とをピックアップしその部分の圧縮率と処理性
能を求める。
[0079] Further, the processing performance is a value obtained by dividing the processing time when decoding a certain set of code data by the code data amount (the number of bits), and comparing the result with the compression rate of the code data. When calculating the processing performance, in a general document, there is little change in black and white (white: logical value “0”, black: logical value “1”) with respect to the scan line of the original image (run for one code data). A portion having a large length value (for example, 1302 and 1304 in FIG. 13) and a portion having a large change in black and white (a small run-length value for one code data) (for example, a network in a portion 1303 in FIG. 13). Part). In general, a portion having a large change in black and white tends to have a small compression ratio, and a portion having a small change in black and white tends to have a large compression ratio. Therefore, in a one-page document, a portion having a small change in black and white and a portion having a large change in black and white are picked up, and the compression ratio and processing performance of the portion are obtained.

【0080】制御部7は、処理時間演算回路11に演算
を実行させるべき演算指示信号qを出力し、処理時間演
算回路11は、処理性能テーブルと圧縮率レジスタ及び
その符号データ量(前記圧縮率を演算した際に使用した
2つの指標レジスタAの値の差として算出する。)から
その符号データの処理時間を演算指示信号qを受信する
ごとに演算し出力して、処理時間レジスタ12にセット
する。
The control unit 7 outputs an operation instruction signal q for causing the processing time operation circuit 11 to execute an operation. The processing time operation circuit 11 outputs a processing performance table, a compression ratio register, and a code data amount thereof (the compression ratio). Is calculated as the difference between the values of the two index registers A used when the calculation is performed.) The processing time of the code data is calculated and output each time the calculation instruction signal q is received, and is set in the processing time register 12. I do.

【0081】上記D0 の処理時間を演算する場合につい
て以下に説明する。
The case of calculating the processing time of D 0 will be described below.

【0082】まず、処理性能テーブルから圧縮率レジス
タのD0cの値に最も近い値に対応する処理性能を検索す
る。仮に、その処理性能値がt1 であるとした場合、上
記D 0 の処理時間Dotは、 D0t=t1 ×((i1 −i0 )×1ワードのビット数+
(j1 −j0 )) 以下同様に上記Dm の処理時間Dmtは、Dm に対応する
処理性能をtm とすると、 Dmt=tm ×((im+1 −im )×1ワードのビット数
+(jm+1 −jm )) として与えられる。
First, the compression ratio register is obtained from the processing performance table.
D0cSearch for processing performance corresponding to the value closest to the value of
You. If the processing performance value is t1 And if
Note D 0 Processing time DotIs D0t= T1 × ((i1 −i0 ) X number of bits in one word +
(J1 −j0 )) The same applies to the above Dm Processing time DmtIs Dm Corresponding to
Processing performance is tm Then Dmt= Tm × ((im + 1 −im ) X number of bits per word
+ (Jm + 1 −jm )) Is given as

【0083】処理時間レジスタ12は、その結果を格納
する。
The processing time register 12 stores the result.

【0084】制御部7は、処理時間レジスタ12に格納
されている1ページの分割された領域の処理時間の個数
sを通知し、分割点演算回路13に演算を実行させるべ
き演算指示信号rを出力する。分割点演算回路13は、
処理時間レジスタ12に格納されている値から1ページ
分の符号データ処理時間(処理時間レジスタ12に格納
されている処理時間s個の値の合計)を求める。次に、
その1ページ分の符号データ処理時間を並列処理する符
号復号回路数で除算した値(以下平均値TA :一つの符
号復号回路で必要な処理時間の平均値)を求める。次
に、各符号復号回路が上記D0 からDm の内連続するど
の部分を処理するかを決定する。処理時間レジスタ12
に格納されているD0t、D1t、D2t…を加算していき最
初にD0t+D1t+D2t+…+Dlt≧TAとなったとき、
0t+D1t+D2t+…+DltとD0t+D1t+D2t+…+
(l-1)tとを比較しTA に近いほうまでを1つの符号復
号回路に割り当てる。つまり、D0t+D1t+D2t+…+
(l-1)tの方がTA に近かった場合、前記D0 からD
l-1 までの領域を1つの符号復号回路に割り当てる。
The control unit 7 stores the data in the processing time register 12
Of processing time of divided area of one page
s, and causes the division point operation circuit 13 to execute the operation.
And outputs a calculation instruction signal r. The division point calculation circuit 13
One page from the value stored in the processing time register 12
Minute code data processing time (stored in processing time register 12)
(Sum of processing time s values). next,
A code for processing the code data processing time for one page in parallel
Divided by the number of signal decoding circuits (hereinafter the average value TA : One note
(The average value of the processing time required by the signal decoding circuit). Next
In addition, each of the codec circuits has the D0 To Dm Continuous throat
Is determined to be processed. Processing time register 12
D stored in0t, D1t, D2t...
First D0t+ D1t+ D2t+ ... + Dlt≧ TAWhen it becomes
D0t+ D1t+ D2t+ ... + DltAnd D0t+ D1t+ D2t+ ... +
D(l-1) tAnd TA One code decoding up to
No. circuit. That is, D0t+ D1t+ D2t+ ... +
D(l-1) tIs TA , The above D0 To D
l-1 Are assigned to one code decoding circuit.

【0085】この時、指標レジスタAに格納されている
l に対応する番地情報i及びビット位置情報jを指標
レジスタBにセットする。
At this time, address information i and bit position information j corresponding to D 1 stored in the index register A are set in the index register B.

【0086】次に、Dlt+D(l+1)t+D(l+2)t+…+D
kt≧TAとなったとき、Dlt+D(l+1)t+D(l+2)t+…
+DktとDlt+D(l+1)t+D(l+2)t+…+D(k-1)tとを
比較しDlt+D(l+1)t+D(l+2)t+…+Dktの方がTA
に近かった場合Dl からDKまでの領域を別の1つの符
号復号回路に割り当てる。
Next, D lt + D (l + 1) t + D (l + 2) t +... + D
when it becomes kt ≧ T A, D lt + D (l + 1) t + D (l + 2) t + ...
Compare + D kt with D lt + D (l + 1) t + D (l + 2) t +... + D (k-1) t and compare D lt + D (l + 1) t + D (l + 2) t +. + D kt is T A
Allocate space to D K to a different one code decoding circuit from when D l was close to.

【0087】この時、指標レジスタAに格納されている
k+1 に対応する番地情報i及びビット位置情報jを指
標レジスタBにセットする。
At this time, address information i and bit position information j corresponding to D k + 1 stored in the index register A are set in the index register B.

【0088】以下同様にして、D0 からDm の領域を各
符号復号回路に割り当てる。
In the same manner, the areas from D 0 to D m are allocated to each code decoding circuit.

【0089】ただし、最後から1つ前の符号復号回路へ
の割り当てが終了した時点で、残っている領域を最後の
符号復号回路に割り当て、最後に符号データの末尾の格
納番地情報i、ワード内ビット位置情報jを格納する。
However, at the time when the assignment to the immediately preceding code decoding circuit from the end is completed, the remaining area is assigned to the last code decoding circuit. The bit position information j is stored.

【0090】指標レジスタBは、その結果を格納する。The index register B stores the result.

【0091】符号復号回路15は、指標レジスタBに格
納されている走査ライン先頭ビットの格納番地およびワ
ード内ビット位置に従い、制御部7からの制御信号wで
MH符号またはMR符号の符号復号処理を開始し、その
結果をイメージメモリ16に書き込む。
The code decoding circuit 15 performs a code decoding process of the MH code or the MR code by the control signal w from the control unit 7 in accordance with the storage address of the first bit of the scanning line stored in the index register B and the bit position in the word. Start and write the result to the image memory 16.

【0092】また、本発明のデータ伸張処理装置の符号
復号処理のフローチャートを図6、図7、図8、図9、
図10、図11、図12に示す。
FIG. 6, FIG. 7, FIG. 8, FIG. 9, FIG.
This is shown in FIG. 10, FIG. 11, and FIG.

【0093】また、MR符号データを処理する場合に
は、指標レジスタAに格納する走査ライン先頭ビットの
格納番地およびワード内ビット位置をKパラメータ(二
次元符号化方式による符号化は、1つの走査線を一次元
符号化用符号によって符号化した上で、それに続くK−
1本の走査線の各々を、その前の走査線を参照して符号
化する方法で行う。)の正の整数倍のあらかじめ定めら
れたラインごとに格納することにより行う。
When processing the MR code data, the storage address of the first bit of the scan line stored in the index register A and the bit position in the word are determined by the K parameter (in the two-dimensional encoding, one scan is used). After the line is encoded by the one-dimensional encoding code, the following K-
Each of the one scan line is encoded by referring to the previous scan line. ) Is stored for each predetermined line which is a multiple of a positive integer.

【0094】次に、この実施例の動作を具体的な例につ
いて記述する。
Next, the operation of this embodiment will be described with reference to a specific example.

【0095】図13は、画像データの一具体例を示した
もので、1301は、紙面上の印刷範囲を示し、その中
に文字列1302、グラフ及びその説明文1303、回
路図1304が表現されることを示している。
FIG. 13 shows a specific example of image data. Reference numeral 1301 denotes a print range on paper, in which a character string 1302, a graph and its description 1303, and a circuit diagram 1304 are expressed. Which indicates that.

【0096】また、図13の左側に記載しているD0
15は、領域D0 〜D15を示し、→は、その分割点を示
す。
Further, D 0 -D shown on the left side of FIG.
D 15 indicates the region D 0 to D 15, → represents the division point.

【0097】これを符号化したものが、上位装置から送
られてくる。
An encoded version of this is sent from the higher-level device.

【0098】以下、MH符号の場合につき説明する。Hereinafter, the case of the MH code will be described.

【0099】また、本具体例においては、符号復号回路
A、符号復号回路B、符号復号回路C、符号復号回路D
の4つの符号復号回路によって並列処理される場合につ
いて記述する。
In this example, the code decoding circuit A, the code decoding circuit B, the code decoding circuit C, and the code decoding circuit D
The case where the parallel processing is performed by the four code decoding circuits will be described.

【0100】今、画像の全走査ライン数は、1600ラ
イン、1走査ラインの符号データ伸張後のランレングス
値を1000とし、これを走査ライン数で100ライン
ごとの走査ライン先頭ビットの格納番地及びワード内ビ
ット位置を指標レジスタAに格納した場合、図13の枠
外に示してある通りD0 からD15の16の領域に分割さ
れる。
Now, as for the total number of scanning lines of an image, the run length value after the expansion of the code data of 1600 lines and one scanning line is assumed to be 1000. when storing the word in the bit positions in the index register a, it is divided from the street D 0 which is shown outside the frame of FIG. 13 to 16 of the region of the D 15.

【0101】それぞれの領域の原画データ量(ビット
数)は、 1000×100=100000ビット また、指標レジスタAに格納される格納番地情報i及び
ワード内ビット位置情報jは、表1の通りであるとする
(1ワードは、16ビット)。
The original image data amount (the number of bits) of each area is 1000 × 100 = 100000 bits. The storage address information i and the bit position information j in the word stored in the index register A are as shown in Table 1. (1 word is 16 bits).

【0102】[0102]

【表1】 それぞれの領域の符号データ量(ビット数)は表2の様
になる。
[Table 1] Table 2 shows the amount of code data (the number of bits) in each area.

【0103】[0103]

【表2】 それぞれの領域の符号データの圧縮率は、0.5単位で
表すと、表3の様になる。
[Table 2] Table 3 shows the compression rate of the code data of each area in units of 0.5.

【0104】[0104]

【表3】 また、処理性能テーブルの値が、表4の値であるとす
る。
[Table 3] It is also assumed that the values in the processing performance table are the values in Table 4.

【0105】[0105]

【表4】 上記の値から、処理時間を計算すると、表5の様にな
る。
[Table 4] Table 5 shows the result of calculating the processing time from the above values.

【0106】[0106]

【表5】 次に、領域D0 からD15を4つに分割する。[Table 5] Next, the regions D 0 to D 15 are divided into four.

【0107】上記、処理時間の総計は、627.92m
sとなる。これを4で除算した結果は、156.98m
sである。
The total processing time is 627.92 m
s. The result of dividing this by 4 is 156.98m
s.

【0108】上記表の処理時間を領域D0 から順番に加
算していくと、領域D0 からD3 までの加算結果は、1
44.36ms、領域D0 からD4 までの加算結果は、
182.55msとなり、領域D0 からD3 までの加算
結果の方が156.98msに近い値となる。
[0108] As you added sequentially the processing time in the above table from the region D 0, the addition result from the region D 0 to D 3 is 1
44.36 ms, the addition result in the areas D 0 to D 4 is
182.55 ms, and the sum of the addition results in the areas D 0 to D 3 is closer to 156.98 ms.

【0109】以下同様に順次加算していくと、以下の様
な結果がえられる。
The following results are obtained by successively adding in the same manner.

【0110】領域D4 からD6 までの加算結果は、16
8.54ms、領域D7 からD10までの加算結果は、1
55.39ms、領域D11からD15までの加算結果は、
159.82ms、したがって、領域D0 からD3 まで
を最初の符号復号回路が処理する符号データに領域D4
からD6 までをその次の符号復号回路が処理する符号デ
ータに領域D7 からD10までをその次の符号復号回路が
処理する符号データに領域D11からD15までをその次の
符号復号回路が処理する符号データに分割する。つま
り、指標レジスタBに表6に示すように格納番地情報
i、ワード内ビット位置jを格納する。
The addition result from the areas D 4 to D 6 is 16
8.54 ms, the addition result in the areas D 7 to D 10 is 1
55.39 ms, the addition result in the areas D 11 to D 15 is
159.82Ms, therefore, region D 4 to a code data for processing from the region D 0 to D 3 first code decoding circuit
The up D 6 from area D 7 to the code data that the next code decoding circuit to process up to D 10 from the region D 11 to the code data that the next code decoding circuit to process up to D 15 the next code decoding from It is divided into code data to be processed by the circuit. That is, as shown in Table 6, the storage address information i and the bit position j in the word are stored in the index register B.

【0111】[0111]

【表6】 次に、4つの符号復号回路は、指標レジスタBに格納さ
れている情報にしたがって、符号復号処理を開始する。
[Table 6] Next, the four code decoding circuits start the code decoding process according to the information stored in the index register B.

【0112】つまり、符号復号回路Aは、情報i0 、j
0 から情報i4 、j4 までの符号データを復号処理して
イメージメモリに書き込む。
That is, the code decoding circuit A outputs the information i 0 , j
Code data from 0 to information i 4 and j 4 is decoded and written to the image memory.

【0113】符号復号回路Bは、情報i4 、j4 から情
報i7 、j7 までの符号データを復号処理してイメージ
メモリに書き込む。
The code decoding circuit B decodes the code data from the information i 4 , j 4 to the information i 7 , j 7 and writes the decoded data in the image memory.

【0114】符号復号回路Cは、情報i7 、j7 から情
報i11、j11までの符号データを復号処理してイメージ
メモリに書き込む。
The code decoding circuit C decodes the code data from the information i 7 , j 7 to the information i 11 , j 11 and writes it to the image memory.

【0115】符号復号回路Dは、情報i11、j11から情
報i16、j16までの符号データを復号処理してイメージ
メモリに書き込む。
The code decoding circuit D decodes the code data from the information i 11 , j 11 to the information i 16 , j 16 and writes the decoded data in the image memory.

【0116】以上説明したように行うことで、以下の効
果を得られる。
The following effects can be obtained by performing the above operation.

【0117】符号復号回路Aの処理する領域は、D0
3 であるから、処理時間は、31.97+41.25
+32.19+38.76=144.17ms 符号復号回路Bの処理する領域は、D4 〜D6 であるか
ら処理時間は、38.19+69.60+60.75=
168.54ms 符号復号回路Cの処理する領域は、D7 〜D10であるか
ら処理時間は、50.53+38.38+32.77+
33.71=155.39ms 符号復号回路Dの処理する領域は、D11〜D15であるか
ら、処理時間は、32.18+31.98+31.61
+32.37+31.68=159.82msとなり、
一番処理時間が掛かるのは、符号復号回路Bの168.
54msであるから、画像全体の処理時間は、168.
54msである。
The area processed by the code decoding circuit A is from D 0 to
Since a D 3, the processing time is 31.97 + 41.25
+ 32.19 + 38.76 = 144.17 ms The processing area of the code decoding circuit B is D 4 to D 6 , so the processing time is 38.19 + 69.60 + 60.75 =
Processing region of 168.54ms code decoding circuit C, the processing time because it is D 7 ~D 10, 50.53 + 38.38 + 32.77 +
33.71 = 155.39 ms Since the area processed by the code decoding circuit D is D 11 to D 15 , the processing time is 32.18 + 31.98 + 31.61.
+ 32.37 + 31.68 = 159.82 ms,
The processing time is the longest at 168.
Since this is 54 ms, the processing time of the entire image is 168.
54 ms.

【0118】一方、従来の方法で行った場合、ライン数
で分割するので、第1の符号復号回路の処理する領域
は、D0 〜D3 であるから、処理時間は、31.97+
41.25+32.19+38.76=144.17m
s 第2の符号復号回路の処理する領域は、D4 〜D7 であ
るから、処理時間は、38.19+69.60+60.
75+50.53=219.07ms 第3の符号復号回路の処理する領域は、D8 〜D11であ
るから、処理時間は、38.38+32.77+33.
71+32.18=137.04ms 第4の符号復号回路の処理する領域は、D12〜D15であ
るから、処理時間は、31.98+31.61+32.
37+31.68=127.64msとなり、一番処理
時間が掛かるのは、第2の符号復号回路の219.07
msであるから、画像全体の処理時間は、219.07
msである。
On the other hand, in the case of the conventional method, since the data is divided by the number of lines, the area to be processed by the first code decoding circuit is D 0 to D 3 , and the processing time is 31.97+
41.25 + 32.19 + 38.76 = 144.17m
s Since the area processed by the second code decoding circuit is D 4 to D 7 , the processing time is 38.19 + 69.60 + 60.
75 + 50.53 = 219.07ms processing region of the third code decoding circuit, since a D 8 to D 11, the processing time is 38.38 + 32.77 + 33.
71 + 32.18 = 137.04 ms Since the area to be processed by the fourth code decoding circuit is D 12 to D 15 , the processing time is 31.98 + 31.61 + 32.
37 + 31.68 = 127.64 ms, and the longest processing time is caused by 219.07 of the second code decoding circuit.
ms, the processing time of the entire image is 219.07
ms.

【0119】従って、従来方式に対して、219.07
ms−168.54ms=50.53ms短縮されてい
る。
Therefore, compared to the conventional method, 219.07
ms-168.54 ms = 50.53 ms.

【0120】[0120]

【発明の効果】第1の効果は、1ページの符号データ
(MH符号、MR符号)を走査ライン単位に複数ブロッ
クに分割し、その各々の符号データを分割ブロック数に
等しい複数の符号復号回路において並行に符号復号処理
を行うデータ伸張処理装置において、1ページの符号デ
ータを分割処理した場合、各符号復号回路の要する復号
処理時間をほぼ等しくできるということである。
A first effect is that one page of code data (MH code, MR code) is divided into a plurality of blocks in scan line units, and each code data is divided into a plurality of code decoding circuits equal to the number of divided blocks. In the data decompression processing device that performs the code decoding process in parallel in the above, when the code data of one page is divided, the decoding processing time required by each code decoding circuit can be substantially equalized.

【0121】これにより、ある一つの符号復号回路が他
の符号復号回路よりも多くの処理時間を要するというこ
とがなくなり、1ページの処理時間の最適化を計ること
ができるようになる。
As a result, one code decoding circuit does not require more processing time than another code decoding circuit, and the processing time of one page can be optimized.

【0122】その理由は、符号データの圧縮率と符号デ
ータ量をもとに各ブロックの符号データの分割走査ライ
ン数を各符号復号回路の復号処理時間を平均化させるよ
うに変化させたからである。
The reason is that the number of divided scanning lines of the code data of each block is changed based on the compression ratio and the amount of code data so as to average the decoding processing time of each code decoding circuit. .

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

【図1】本発明の実施の一形態としてのデータ伸張処理
装置を示すブロック図である。
FIG. 1 is a block diagram showing a data decompression processing device as one embodiment of the present invention.

【図2】図1の復号部の一例の詳細ブロック図である。FIG. 2 is a detailed block diagram of an example of a decoding unit in FIG. 1;

【図3】図1の分割部の一例の詳細ブロック図(1/
2)である。
FIG. 3 is a detailed block diagram of an example of a dividing unit of FIG.
2).

【図4】図1の分割部の一例の詳細ブロック図(2/
2)である。
FIG. 4 is a detailed block diagram of an example of a dividing unit shown in FIG.
2).

【図5】本発明の処理性能テーブルの一例を示す図であ
る。
FIG. 5 is a diagram illustrating an example of a processing performance table according to the present invention.

【図6】図3のEOL検出回路の処理の一例を示すフロ
ーチャート図である。
FIG. 6 is a flowchart illustrating an example of a process of an EOL detection circuit in FIG. 3;

【図7】図3のデータアドレス演算回路の処理の一例を
示すフローチャート図である。
FIG. 7 is a flowchart illustrating an example of processing of the data address arithmetic circuit of FIG. 3;

【図8】図3の指標レジスタAの処理の一例を示すフロ
ーチャート図である。
FIG. 8 is a flowchart illustrating an example of a process of the index register A of FIG. 3;

【図9】図3の圧縮率演算回路の処理の一例を示すフロ
ーチャート図である。
FIG. 9 is a flowchart illustrating an example of processing of a compression ratio calculation circuit in FIG. 3;

【図10】図4の処理時間演算回路の処理の一例を示す
フローチャート図である。
FIG. 10 is a flowchart illustrating an example of processing of the processing time calculation circuit of FIG. 4;

【図11】図3の制御部の処理の一例を示すフローチャ
ート図(1/2)である。
FIG. 11 is a flowchart (1/2) illustrating an example of processing of the control unit in FIG. 3;

【図12】図3の制御部の処理の一例を示すフローチャ
ート図(2/2)である。
FIG. 12 is a flowchart (2/2) illustrating an example of a process of the control unit in FIG. 3;

【図13】一具体例を示す画像である。FIG. 13 is an image showing a specific example.

【図14】一般的なMH符号復号器の一例を示すブロッ
ク図である。
FIG. 14 is a block diagram illustrating an example of a general MH code decoder.

【図15】一般的なMR符号復号器の一例を示すブロッ
ク図である。
FIG. 15 is a block diagram illustrating an example of a general MR code decoder.

【図16】従来の技術のMH符号復号器の一例を示すブ
ロック図である。
FIG. 16 is a block diagram illustrating an example of a conventional MH code decoder.

【図17】MH符号復号器のブロック図である。FIG. 17 is a block diagram of an MH code decoder.

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

1 上位装置 2 コードデータ記憶回路 3 MH符号復号回路 4 EOL検出回路 5 データアドレス演算回路 6 指標レジスタ 7 制御部 8 圧縮率演算回路 9 圧縮率レジスタ 10 処理性能テーブル記憶回路 11 処理時間演算回路 12 処理時間レジスタ 13 分割点演算回路 14 指標レジスタB 15 符号復号回路 16 イメージメモリ 17 指標レジスタA 101 並直変換レジスタ 102 符号テーブル記憶回路 103 ビデオデータ発生回路 104 タイミング制御回路 1401 コードメモリ 1402 MH復号回路 1403 画素生成回路 1404 イメージメモリ 1501 コードメモリ 1502 MR復号回路 1503 変化点検出回路 1504 画素生成回路 1505 イメージメモリ DESCRIPTION OF SYMBOLS 1 High-order apparatus 2 Code data storage circuit 3 MH code decoding circuit 4 EOL detection circuit 5 Data address operation circuit 6 Index register 7 Control unit 8 Compression ratio operation circuit 9 Compression ratio register 10 Processing performance table storage circuit 11 Processing time operation circuit 12 Processing Time register 13 Division point operation circuit 14 Index register B 15 Code decoding circuit 16 Image memory 17 Index register A 101 Parallel / conversion register 102 Code table storage circuit 103 Video data generation circuit 104 Timing control circuit 1401 Code memory 1402 MH decoding circuit 1403 Pixel Generation circuit 1404 Image memory 1501 Code memory 1502 MR decoding circuit 1503 Change point detection circuit 1504 Pixel generation circuit 1505 Image memory

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 上位装置からの符号データを復号する複
数の符号復号手段と、少なくとも1ページ分の前記符号
データを複数に分割して、それぞれ前記複数の符号復号
回路に供給するデータ分割手段と、を備えて、前記上位
装置からの前記符号データを画像データに変換するデー
タ伸張処理装置であって、 前記データ分割手段は、前記少なくとも1ページ分の前
記符号データを復号するための全処理量が、前記符号デ
ータ中の分割される領域毎の圧縮率及び符号データ量
従って、前記各分割される領域の処理時間を均一化した
各処理量の総和となる割り付けに分割する手段であり、
前記分割された前記符号データを前記複数の符号復号回
路に供給することによって前記画像データを得ることを
特徴とするデータ伸張処理装置。
1. A plurality of code decoding means for decoding code data from a higher-level device, and a data division means for dividing at least one page of the code data into a plurality of codes and respectively supplying the plurality of code data to the plurality of code decoding circuits. And a data decompression processing device for converting the code data from the higher-level device into image data, wherein the data dividing means includes a total processing amount for decoding the at least one page of the code data. According to the compression ratio and the amount of code data for each of the divided areas in the code data , the processing time of each of the divided areas is divided into allocations that are the sum total of the respective processing amounts. Means,
A data decompression processing device, wherein the image data is obtained by supplying the divided code data to the plurality of code decoding circuits.
【請求項2】 復号すべき前記少なくとも1ページ分の
前記符号データを記憶するコードデータ記憶回路と、 前記符号復号手段により復号された画像データを格納す
るイメージメモリとを備え、 前記データ分割手段は、 ライン同期に使用するエンドオブライン(以下EOL)
の有無を検出するEOL検出回路と、 前記EOL検出回路の出力結果からEOL最終ビットの
次のビットの前記コードデータ記憶回路への格納番地お
よびワード内ビット位置を演算するデータアドレス演算
回路と、 その走査ライン先頭ビットの前記格納番地および前記
ード内ビット位置をあらかじめ定められた走査ラインご
とに格納する指標レジスタAと、前記 指標レジスタAに格納されている前記各走査ライン
先頭ビットの前記格納番地および前記ワード内ビット位
置間の符号データの前記圧縮率を演算し出力する圧縮率
演算回路と、前記圧縮率の 結果を格納する圧縮率レジスタと、 あらかじめ与えられる前記符号復号手段の処理性能とそ
の処理する符号データの前記圧縮率との関係を与える処
理性能テーブルを記憶する記憶性能テーブル記憶回路
と、前記 圧縮率レジスタの値とその値に対応する前記符号デ
ータを前記符号復号回路が処理した場合の処理時間を演
算し出力する処理時間演算回路と、前記処理時間を演算 結果を格納する処理時間レジスタ
と、 前記処理時間レジスタに格納されている値から前記各符
号復号回路の処理時間が、均一化した値となる様な前記
指標レジスタAに格納されている前記走査ライン先頭ビ
ットの前記格納番地および前記ワード内ビット位置を
符号復号回路の数だけ選択し出力する分割点演算回路
と、 その出力結果を格納する指標レジスタBと、 を含み構成されることを特徴とする請求項1記載のデー
タ伸張処理装置。
2. The at least one page to be decoded
A code data storing circuit for storing the code data, and a image memory for storing image data decoded by the code decoding means, said data dividing means, end-of-line for the synchronization line (hereinafter EOL)
An EOL detection circuit for detecting the presence / absence of an EOL; a data address operation circuit for calculating a storage address of the next bit of the EOL last bit in the code data storage circuit and a bit position in a word from an output result of the EOL detection circuit; a pointer register a for storing the storage address and the word <br/> over de in the bit position of the scan line leading bit predetermined for each scan line, each scan line head stored in the index register a a compression ratio arithmetic circuit for outputting calculates the compression rate of encoded data between the storage locations and said word in a bit position of the bit, and the compression ratio register which stores the result of the compression rate, the code decoding means provided in advance storage performance that stores processing performance table giving the processing performance and the relationship between the compression ratio of the code data to be the process And Buru memory circuit, the value of the compression ratio register and the processing time calculation circuit for the the code data to calculate the processing time when the code decoding circuit has processed output corresponding to the value, the operation result the processing time a processing time register for storing the processing time of each code decoding circuits from the value stored in the processing time register is stored in such as a uniform value the <br/> index register a before the storage address and the word in the bit positions of the scanning lines leading bit
2. The data decompression processing device according to claim 1, further comprising: a division point operation circuit that selects and outputs as many as the number of encoding / decoding circuits; and an index register B that stores the output result.
【請求項3】 復号すべき前記符号データは、MH符号
データであり、 前記圧縮率演算回路は、前記指標レジスタAに格納され
ているある1つの走査ライン先頭ビットの格納番地およ
びワード内ビット位置(前記指標レジスタAの値1)と
その次に格納されている走査ライン先頭ビットの格納番
地およびワード内ビット位置(あらかじめ定められた走
査ライン後の走査ライン先頭ビットの格納番地およびワ
ード内ビット位置で以下前記指標レジスタAの値2)と
その間のあらかじめ定められた走査ライン数、及びあら
かじめ与えられる1走査ラインの符号データ伸張後のラ
ンレングス値とから上記指標レジスタAの値1と上記指
標レジスタAの値2の間の符号データ(符号データ1)
前記圧縮率(圧縮率1)を演算し出力する機能を有
し、 前記処理時間演算回路は、前記圧縮率レジスタの値(圧
縮率1)とその値に対応する符号データ(上記符号デー
タ1)を前記符号復号回路が処理した場合の処理時間を
演算し出力する機能を有し、 前記分割点演算回路は、前記処理時間レジスタに格納さ
れている値から1ページ分の符号データ処理時間(前記
処理時間レジスタに格納されている値の合計)を演算
し、その1ページ分の符号データ処理時間を並列処理す
前記符号復号回路の個数で除算した値(一つの前記
号復号回路で必要な処理時間の平均値で以下平均値A)
を求め、次に、前記処理時間レジスタに格納されている
値を先頭から順次加算していき上記平均値Aに最も近い
値になるごとにそれに対応する前記指標レジスタAに格
納されている走査ライン先頭ビットの格納番地およびワ
ード内ビット位置を前記符号復号回路の数だけ選択し出
力する機能を有する、 ことを特徴とする請求項2記載のデータ伸張処理装置。
The encoded data wherein to be decoded is the MH code data, the compression ratio arithmetic circuit, storage location and a word in a bit position of a single scan line leading bit stored in the index register A and its storage location and a word in the bit positions of the scan lines first bit following the stored (predetermined storage addresses and word in the bit positions of the scanning lines leading bit after scanning line (value 1 of the index register a) the value 1 and the index register in the following the index register value 2) and the scanning line number defined therebetween in advance of a, and previously given 1 run-length value from the index register a after encoding data decompression scan line Code data between value 2 of A (code data 1)
The compression ratio (compression ratio 1) calculates the and outputting of the processing time calculation circuit, numeral data (the encoded data 1 corresponding value of the compression ratio register and (compression ratio 1) to the value ) Has a function of calculating and outputting a processing time when the code decoding circuit processes the code data. The division point calculation circuit calculates the code data processing time (for one page) from the value stored in the processing time register. the <br/> process calculates the total) of the values stored in the time register, the code division value by the number of decoding circuits (one of the marks for parallel processing of code data processing time for the one page < The average value of the processing time required by the decoding circuit is below average value A)
Look, then scan line stored in the index register A corresponding thereto whenever made to the nearest sequentially added to continue the average value A of the value stored in the processing time register from the head having storage addresses and word in the bit position of the first bit number only the selected function of the output of the code decoding circuit, a data decompression processing apparatus according to claim 2, wherein a.
【請求項4】 復号すべき符号データは、MR符号デー
タであり、 前記指標レジスタAに格納する走査ライン先頭ビットの
格納番地及びワード内ビット位置をあらかじめ定められ
たKパラメータの正の整数倍の走査ラインごととし、 前記圧縮率演算回路は、前記指標レジスタAに格納され
ているある1つの走査ライン先頭ビットの格納番地およ
びワード内ビット位置(以下前記指標レジスタAの値
1)とその次に格納されている走査ライン先頭ビットの
格納番地およびワード内ビット位置(前記Kパラメータ
の正の整数倍のあらかじめ定められた走査ライン後の走
査ライン先頭ビットの格納番地およびワード内ビット位
置で以下前記指標レジスタAの値2)とその間のあらか
じめ定められた走査ライン数、及びあらかじめ与えられ
る1走査ラインの符号データ伸張後のランレングス値と
から上記指標レジスタAの値1と上記指標レジスタAの
値2の間の符号データ(符号データ1)の前記圧縮率
(圧縮率1)を演算し出力する機能を有し、 前記処理時間演算回路は、前記圧縮率レジスタの値(圧
縮率1)とその値に対応する符号データ(上記符号デー
タ1)を前記符号復号回路が処理した場合の処理時間を
演算し出力する機能を有し、 前記分割点演算回路は、前記処理時間レジスタに格納さ
れている値から1ページ分の符号データ処理時間(前記
処理時間レジスタに格納されている値の合計)を演算
し、その1ページ分の前記符号データ処理時間を並列処
理する前記符号復号回路の個数で除算した値(一つの
符号復号回路で必要な処理時間の平均値で以下平均値
A)を求め、次に、前記処理時間レジスタに格納されて
いる値を先頭から順次加算していき、上記平均値Aに最
も近い値になるごとにそれに対応する前記指標レジスタ
Aに格納されている走査ライン先頭ビットの格納番地お
よびワード内ビット位置を符号復号回路の数だけ選択し
出力する機能を有する、 ことを特徴とする請求項2記載のデータ伸張処理装置。
4. The code data to be decoded is MR code data, and the storage address and the bit position in the word of the first bit of the scan line stored in the index register A are set to a positive integer multiple of a predetermined K parameter. and each scan line, the compression ratio arithmetic circuit, storage location and a word in a bit position of a single scan line leading bit stored in the index register a (hereinafter the value of the index register a 1) to the next positive the index following a predetermined storage location and a word in the bit positions of the scanning lines leading bit after scan line is an integer multiple of storage locations and word in the bit positions of the scanning lines leading bit stored (the K parameter The value 2) of the register A, the predetermined number of scanning lines between them, and one given scanning line The compression ratio of the encoded data between the run-length value after encoding data decompression down the value 2 value 1 and the index register A of the index register A (code data 1) (compression ratio 1) calculates the output The processing time calculation circuit has a function of performing a processing time when the code decoding circuit processes a value (compression rate 1) of the compression rate register and code data (code data 1) corresponding to the value. calculates a and outputting the division point arithmetic circuit is stored the processing time from the value stored in the register 1 page of code data processing time (the <br/> processing time register It calculates the total) value, the code division value by the number of decoding circuits (one before parallel processing of the code data processing time for the one page
Serial asked the following average A) by the average value of the processing time required by the code decoding circuit, then continue sequentially adds the value stored in the processing time register from the head closest to the average value A has a function of selecting a storage address and a word in the bit positions of the scanning lines leading bit stored in the index register a corresponding thereto every time a value for the number of code decoding circuit output, it is characterized in claim Item 3. A data decompression processor according to item 2.
JP15731196A 1996-06-19 1996-06-19 Data decompression processor Expired - Fee Related JP3203352B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15731196A JP3203352B2 (en) 1996-06-19 1996-06-19 Data decompression processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15731196A JP3203352B2 (en) 1996-06-19 1996-06-19 Data decompression processor

Publications (2)

Publication Number Publication Date
JPH1013694A JPH1013694A (en) 1998-01-16
JP3203352B2 true JP3203352B2 (en) 2001-08-27

Family

ID=15646909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15731196A Expired - Fee Related JP3203352B2 (en) 1996-06-19 1996-06-19 Data decompression processor

Country Status (1)

Country Link
JP (1) JP3203352B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4594214B2 (en) * 2005-11-07 2010-12-08 パナソニック株式会社 Image decoding device

Also Published As

Publication number Publication date
JPH1013694A (en) 1998-01-16

Similar Documents

Publication Publication Date Title
JP4101312B2 (en) Graphic image compression system and method
US7245396B2 (en) Image data coding apparatus, image data decoding apparatus, image data coding method and image data decoding method
JPH0564007A (en) Method and device for encoding and decoding
US8275210B2 (en) Lossless compressor for image data values
JPH04270568A (en) Data compression system in picture processing unit
US5170445A (en) Document decompressing system
US6785424B1 (en) Encoding method and apparatus for compressing a data structure having two or more dimensions, decoding method, and storage medium
EP0746143B1 (en) A method of and system for compressing and decompressing digital image signals
JP4164257B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP3203352B2 (en) Data decompression processor
US6658156B1 (en) Information processing apparatus and method
JPH06268842A (en) Picture processor
JPS6031423B2 (en) Compressed data restoration method
US20020024524A1 (en) Image processing apparatus, control method thereof, and image processing method
JP3024850B2 (en) Image processing device
JPH1098620A (en) Picture processor
JPH04270569A (en) Data compression system for picture processor
JP2891818B2 (en) Encoding device
JPH0965147A (en) Method and device for compressing picture signal, method and device for restoring picture signal, method and device for compressing and restoring picture signal and printer
JP2000078415A (en) Image processing system, image compressing device and recording medium
JPH08274947A (en) Image rotation method and image rotation device
EP0552544A1 (en) An improved method for decoding compressed images
JP2755463B2 (en) Image data compression method
JP3867887B2 (en) Image coding method, image coding device, image decoding method, image decoding device, image forming device, and recording medium
JPH02131673A (en) Document decompression system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees