JPH08337014A - Image plotting device, and data expanding method - Google Patents

Image plotting device, and data expanding method

Info

Publication number
JPH08337014A
JPH08337014A JP7147469A JP14746995A JPH08337014A JP H08337014 A JPH08337014 A JP H08337014A JP 7147469 A JP7147469 A JP 7147469A JP 14746995 A JP14746995 A JP 14746995A JP H08337014 A JPH08337014 A JP H08337014A
Authority
JP
Japan
Prior art keywords
data
image data
compressed image
processing
host computer
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
JP7147469A
Other languages
Japanese (ja)
Other versions
JP3412342B2 (en
Inventor
Takeshi Kishimoto
岳史 岸本
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP14746995A priority Critical patent/JP3412342B2/en
Publication of JPH08337014A publication Critical patent/JPH08337014A/en
Application granted granted Critical
Publication of JP3412342B2 publication Critical patent/JP3412342B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To improve the processing speed without newly providing a special agreement with a host computer by a method wherein an interface with the host computer is held, and at the same time, the receiving process and the expansion process of compression image data being split and transferred are performed in parallel. CONSTITUTION: The CPU 10 of an image plotting device ensures a memory region of a specified capacity to be used as an input buffer, from a common memory 16 as a data receiving preparation. Then, at a host interface control unit 14, when data is received, the received data is stored in the input buffer in the common memory 16, and then, whether the received data is image data or not is judged. If the received data is image data, an image expansion process to expand compressed image data to the image data for output is performed at an image expansion unit 18. The image expansion process is controlled by an image expansion control unit independently from the CPU 10.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プリンタ等のイメージ
描画装置及びデータ伸長方法に係り、特にホストコンピ
ュータから分割転送されてきた圧縮イメージデータを伸
長する処理とデータ受信処理を並列に行うイメージ描画
装置及びデータ伸長方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image drawing apparatus such as a printer and a data decompression method, and more particularly, to image decompression of compressed image data divided and transferred from a host computer and data reception processing in parallel. The present invention relates to a device and a data decompression method.

【0002】[0002]

【従来の技術】従来、ホストコンピュータから送られて
きた圧縮イメージデータに対して描画展開処理を行う技
術として平4−367927号公報に開示された技術が
あった。また、ホストコンピュータの処理効率を高める
ための技術として平1−196053号公報に開示され
た技術などがあった。
2. Description of the Related Art Conventionally, there has been a technique disclosed in Japanese Patent Laid-Open No. 4-369927 as a technique for performing drawing and developing processing on compressed image data sent from a host computer. Further, as a technique for increasing the processing efficiency of the host computer, there is a technique disclosed in Japanese Patent Laid-Open No. 1-196053.

【0003】平4−367927号公報に開示されたイ
メージ描画装置は、処理対象となる受信データを一時的
に格納するためのバッファが、「入力バッファ」と、
「未処理入力バッファ」と、「ページバッファ」とから
構成されることが特徴である。このイメージ描画装置で
は、レコード単位に分割され転送されてきた圧縮イメー
ジデータに対して描画展開処理を行い、処理不能なデー
タ、例えば符号化ビットの途中で切れたりして処理でき
ないデータ、或いは指定サイズ未満のデータに対して
は、上記描画展開処理を行わずに、上記未処理入力バッ
ファに一時的にセーブしておき、このデータと次に受信
したデータとを結合させてできたデータに対して描画展
開処理を行うというものである。
In the image drawing apparatus disclosed in Japanese Patent Laid-Open No. 4-369927, a buffer for temporarily storing received data to be processed is an "input buffer",
It is characterized by being composed of an "unprocessed input buffer" and a "page buffer". This image drawing device draws and expands compressed image data that has been divided and transferred in record units, and can process unprocessed data, for example, data that cannot be processed due to being cut in the middle of encoded bits, or a specified size. For the data less than the above, the drawing expansion processing is not performed, the data is temporarily saved in the unprocessed input buffer, and the data created by combining this data with the next received data Drawing expansion processing is performed.

【0004】一方、平1−196053号公報に開示さ
れた接続制御装置は、その特徴的な部分が受信データを
格納する「記憶手段」と、ホストコンピュータの送信が
終了したことを検知する「検知手段」と、この検知手段
が送信終了を検知したときに、受信完了を知らせる「通
知手段」とから構成されることが特徴である。この接続
制御装置によれば、ホストコンピュータは、記録手段に
データが格納されれば、下位の端末装置における処理終
了を待たずに端末装置との接続を終了し直ちに次の処理
に移行できる。従って、例えば上記イメージ描画装置
に、この接続制御装置を用いた場合、データ受信を終え
て次のデータの送信準備を行えば直ぐにデータ転送でき
るので、描画処理とデータ転送とを並列に実行させるこ
とが可能となる。
On the other hand, the connection control device disclosed in Japanese Patent Application Laid-Open No. 1-196053 includes a "storage means" for storing received data and a "detection" for detecting the end of transmission by the host computer. "Means" and "notification means" for notifying reception completion when the detection means detects the end of transmission. According to this connection control device, when the data is stored in the recording means, the host computer can end the connection with the terminal device and immediately shift to the next process without waiting for the end of the process in the lower terminal device. Therefore, for example, when this connection control device is used in the image drawing device, the data transfer can be performed immediately after the data reception is completed and the preparation for the transmission of the next data is performed, so that the drawing process and the data transfer are executed in parallel. Is possible.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記平
4−367927号公報に開示された技術では、圧縮イ
メージデータの描画処理(伸長処理)とデータ転送処理
とが同時に行われないので、描画出力までの処理時間が
かかり過ぎるという問題があった。
However, in the technique disclosed in Japanese Patent Laid-Open No. 4-369927, the drawing process (decompression process) of compressed image data and the data transfer process are not performed at the same time. There was a problem that the processing time of was too long.

【0006】一方、イメージ描画装置に上記平1−19
6053号公報に開示された接続制御装置を用いた場合
には、データ転送と描画処理とが並列化されるので上記
のような問題点は回避されるが、ホストコンピュータと
のインターフェイスを従来のものとは別個に設定してい
る構成から派生して次のような問題が新たに生じる。即
ち、受信データの内容にエラーがあった時、例えば圧縮
イメージデータが圧縮時の符号化誤り等により伸長でき
ないような時、ホストコンピュータへそのエラー内容を
通知する手段を持たず、これによりホストコンピュータ
との新たな取決めが必要となる。
On the other hand, the image drawing apparatus is equipped with the above-mentioned flat screen 1-19.
When the connection control device disclosed in Japanese Patent No. 6053 is used, since the data transfer and the drawing process are performed in parallel, the above problems can be avoided, but the interface with the host computer is the conventional one. The following problems newly arise due to the configuration set separately from and. That is, when there is an error in the content of the received data, for example, when the compressed image data cannot be decompressed due to a coding error at the time of compression, there is no means for notifying the host computer of the error content. A new agreement with

【0007】本発明は上記事実を考慮し、従来と同様の
ホストコンピュータとのインターフェイスを保持すると
共に、分割転送される圧縮イメージデータの受信処理と
伸長処理を並列に行うことにより処理速度の向上を図っ
たイメージ描画装置を提供することを目的とする。
In consideration of the above facts, the present invention maintains the same interface with the conventional host computer and improves the processing speed by performing the receiving process and the decompressing process of the compressed image data to be divided and transferred in parallel. An object is to provide an image drawing device designed.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の発明は、ホストコンピュータとの
通信を制御するホストインターフェイス制御部と、前記
ホストコンピュータから分割転送された圧縮イメージデ
ータを記憶する入力バッファと、前記圧縮イメージデー
タを伸長するデータ伸長部と、このデータ伸長部により
伸長されたイメージデータを描画する描画部と、を備え
たイメージ描画装置において、前記圧縮イメージデータ
を記憶する処理バッファと、前記入力バッファに記憶さ
れた圧縮イメージデータを、前記ホストコンピュータか
ら分割転送される毎に、前記処理バッファに転送若しく
は追加転送する転送手段と、前記ホストインターフェイ
ス制御部による前記ホストコンピュータとの通信及び前
記入力バッファへの次の分割された圧縮イメージデータ
の転送を行わせると共に、これらの処理とは並列に、前
記処理バッファに記憶された圧縮イメージデータを伸長
する処理を、前記データ伸長部に行わせる並列制御手段
と、を備えたことが特徴である。
In order to achieve the above object, the invention according to claim 1 provides a host interface control unit for controlling communication with a host computer, and a compressed image divided and transferred from the host computer. In an image drawing device including an input buffer for storing data, a data expansion unit for expanding the compressed image data, and a drawing unit for drawing the image data expanded by the data expansion unit, A processing buffer to be stored, a transfer means for transferring or additionally transferring the compressed image data stored in the input buffer to the processing buffer every time the host computer divides the transfer, and the host by the host interface control unit. Communication with computer and to the input buffer Parallel control means for causing the data decompression unit to perform a process of decompressing the compressed image data stored in the processing buffer in parallel with the transfer of the next divided compressed image data. It is characterized by having.

【0009】また、請求項2に記載の発明は、前記ホス
トインターフェイス制御部が、分割終了した圧縮イメー
ジデータを受信した場合には、データ送信を禁止する旨
を前記ホストコンピュータに通知し、前記分割終了した
圧縮イメージデータの伸長処理が終了したときに、この
伸長処理終了の旨を前記ホストコンピュータに通知する
通知手段を備えたことが特徴である。
According to the second aspect of the invention, when the host interface control unit receives the compressed image data that has been divided, the host interface control unit notifies the host computer that the data transmission is prohibited, and the division is performed. When the decompression process of the completed compressed image data is completed, a notifying means for notifying the host computer of the completion of the decompression process is provided.

【0010】さらに、請求項3に記載の発明は、前記圧
縮イメージデータを記憶する共有メモリを備え、前記入
力バッファ及び前記処理バッファは、前記共有メモリ上
に確保された互いに異なるメモリ領域にあることが特徴
である。
Further, the invention according to claim 3 is provided with a shared memory for storing the compressed image data, and the input buffer and the processing buffer are in different memory areas secured on the shared memory. Is a feature.

【0011】また、請求項4に記載の発明は、ホストコ
ンピュータから分割転送された圧縮イメージデータを順
次受信して入力バッファに格納し、その受信毎に前記入
力バッファから処理バッファに前記圧縮イメージデータ
を転送若しくは追加転送し、この処理バッファに転送さ
れた圧縮イメージデータを伸長する伸長処理を行うと共
に、分割終了した圧縮イメージデータを受信するまで
は、この伸長処理と並列に次に続く分割圧縮イメージデ
ータの受信処理を実行し、分割終了した圧縮イメージデ
ータを受信したときには、データの送信処理を禁止する
旨を前記ホストコンピュータに通知し、すべての分割転
送された圧縮イメージデータの伸長処理終了後に、前記
伸長処理が終了した旨を前記ホストコンピュータに通知
するステップから成ることが特徴である。
According to a fourth aspect of the present invention, the compressed image data divided and transferred from the host computer are sequentially received and stored in an input buffer, and each time the reception is performed, the compressed image data is transferred from the input buffer to a processing buffer. The compressed image data transferred to this processing buffer is decompressed and the decompressed compressed image data is received. When the data reception process is executed and the compressed image data that has been divided is received, the host computer is notified that the data transmission process is prohibited, and after the decompression process of all the divided and transferred compressed image data, The step of notifying the host computer that the decompression processing has been completed. It is a feature.

【0012】[0012]

【作用】ホストコンピュータから分割された圧縮イメー
ジデータが転送されると、ホストインターフェイス制御
部は、このホストコンピュータとの通信の制御を行うこ
とにより圧縮イメージデータを分割転送される毎に受信
し、入力バッファに格納する。入力バッファに格納され
た圧縮データは、分割転送される毎に転送手段により処
理バッファに転送される。この転送の際に、処理バッフ
ァに圧縮イメージデータがある場合には、転送されたデ
ータは、このデータに追加される。
When the divided compressed image data is transferred from the host computer, the host interface controller controls the communication with the host computer to receive and input the compressed image data each time the divided image data is transferred. Store in buffer. The compressed data stored in the input buffer is transferred to the processing buffer by the transfer means each time it is divided and transferred. At the time of this transfer, if there is compressed image data in the processing buffer, the transferred data is added to this data.

【0013】そして、データ伸長部は、この処理バッフ
ァに格納された圧縮イメージデータを伸長する伸長処理
を行う。
Then, the data decompression unit performs decompression processing for decompressing the compressed image data stored in the processing buffer.

【0014】上記処理を実行する場合において、並列制
御手段は、ホストインターフェイス制御部とデータ伸長
部を並列に制御して、ホストコンピュータとの通信及び
入力バッファへの次の分割された圧縮イメージデータの
転送と、圧縮イメージデータの伸長処理とを同時に実行
する。これにより、従来通りのホストコンピュータとの
インターフェイスを保持しつつ、並列制御による処理時
間の短縮化が可能となる。また、受信データの内容にエ
ラーがあった時でも、ホストインターフェイス制御部に
より、ホストコンピュータへそのエラー内容が通知され
るので、ホストコンピュータとの新たな取決めを設ける
必要もない。
In executing the above processing, the parallel control means controls the host interface control unit and the data decompression unit in parallel to communicate with the host computer and to send the next divided compressed image data to the input buffer. Transfer and decompression of compressed image data are executed simultaneously. As a result, it is possible to reduce the processing time by parallel control while maintaining the interface with the host computer as in the conventional case. Further, even if there is an error in the content of the received data, the host interface control unit notifies the host computer of the error content, so there is no need to establish a new agreement with the host computer.

【0015】そして、描画部は、伸長されたイメージデ
ータを実際に描画する。また、本発明によれば、ホスト
インターフェイス制御部における通知手段は、分割終了
した圧縮イメージデータを受信した場合には、データ送
信を禁止する旨をホストコンピュータに通知する。ま
た、この通知手段は、分割終了した圧縮イメージデータ
の伸長処理が終了したときに、この伸長処理が終了した
旨をホストコンピュータに通知する。これにより、最後
の圧縮イメージデータの伸長処理が終了するまで新たな
圧縮イメージデータの受信を中断することができ、伸長
処理終了後にはホストコンピュータとのデータ通信を速
やかに再開することができる。
Then, the drawing unit actually draws the expanded image data. Further, according to the present invention, the notification means in the host interface control unit notifies the host computer that the data transmission is prohibited when the compressed image data that has been divided is received. Further, the notifying unit notifies the host computer that the decompression process is completed when the decompression process of the compressed image data that has been divided is completed. Thereby, the reception of new compressed image data can be suspended until the decompression process of the final compressed image data is completed, and the data communication with the host computer can be promptly restarted after the decompression process is completed.

【0016】さらに、本発明では、1つの共有メモリ上
に互いに異なるメモリ領域として入力バッファ及び処理
バッファが確保され、転送手段は、この入力バッファか
ら処理バッファへ圧縮イメージデータを転送する。これ
により、互いに別個のメモリを入力バッファと処理バッ
ファとして使用した場合と比較して、転送時間の短縮化
を図ることができる。
Further, according to the present invention, the input buffer and the processing buffer are secured as different memory areas on one shared memory, and the transfer means transfers the compressed image data from the input buffer to the processing buffer. As a result, the transfer time can be shortened as compared with the case where separate memories are used as the input buffer and the processing buffer.

【0017】また、本発明によれば、ホストコンピュー
タから分割転送された圧縮イメージデータを順次受信し
て入力バッファに格納し、その受信毎に入力バッファか
ら処理バッファに圧縮イメージデータを転送若しくは追
加転送し、この処理バッファに転送された圧縮イメージ
データを伸長する伸長処理を行うと共に、分割終了した
圧縮イメージデータを受信するまでは、この伸長処理と
並列に次に続く分割圧縮イメージデータの受信処理を実
行し、分割終了した圧縮イメージデータを受信したとき
には、データの送信処理を禁止する旨を前記ホストコン
ピュータに通知し、すべての分割転送された圧縮イメー
ジデータの伸長処理終了後に、この伸長処理が終了した
旨をホストコンピュータに通知する。
Further, according to the present invention, the compressed image data divided and transferred from the host computer is sequentially received and stored in the input buffer, and the compressed image data is transferred or additionally transferred from the input buffer to the processing buffer each time it is received. Then, the decompression process for decompressing the compressed image data transferred to this processing buffer is performed, and until the decompressed compressed image data is received, the reception process of the next decompressed compressed image data is performed in parallel with this decompression process. When the compressed image data that has been executed and has been divided is received, the host computer is notified that the data transmission process is prohibited, and this decompression process ends after decompression of all the divided and transferred compressed image data. Notify the host computer to the effect.

【0018】これにより、ホストコンピュータとのイン
ターフェイスを保持しつつ、受信処理と伸長処理を並列
に実行でき、処理時間の短縮化を図ることができる。
Thus, the receiving process and the expanding process can be executed in parallel while maintaining the interface with the host computer, and the processing time can be shortened.

【0019】[0019]

【実施例】本実施例に係るイメージ描画装置の構成ブロ
ックを図1に示す。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a block diagram of an image drawing apparatus according to this embodiment.

【0020】図1によれば、イメージ描画装置は、デー
タや命令を伝達するためのバス22及びバス24を備え
ている。これらのバスには各構成部が接続されている。
According to FIG. 1, the image drawing device comprises a bus 22 and a bus 24 for transmitting data and commands. Each component is connected to these buses.

【0021】CPU10は、各構成部をシステムプログ
ラムに従って制御するための制御回路である。このCP
U10は、システムメモリ12とバス24と接続されて
いる。
The CPU 10 is a control circuit for controlling each component according to a system program. This CP
The U 10 is connected to the system memory 12 and the bus 24.

【0022】システムメモリ12は、システムプログラ
ムを格納しておくためのメモリであって、CPU10と
接続されている。
The system memory 12 is a memory for storing a system program and is connected to the CPU 10.

【0023】ホストインターフェイス制御部14は、上
位装置であるホストコンピュータとのインターフェイス
を制御するための通信制御回路である。このホストイン
ターフェイス制御部14は、図示しないホストコンピュ
ータと、図示しないイーサネット等のケーブル、入力端
子を介して接続され、受信したデータを装置内部に入力
するためにバス22と接続されている。
The host interface control unit 14 is a communication control circuit for controlling an interface with a host computer which is a higher-level device. The host interface control unit 14 is connected to a host computer (not shown) via a cable such as Ethernet (not shown) and an input terminal, and is connected to a bus 22 for inputting received data into the device.

【0024】共有メモリ16は、データ格納用のメモリ
であって、入力されたデータを格納するためバス22と
接続され、さらに、各構成部によるデータ読取や出力デ
ータの格納もできるように、バス24とも接続されてい
る。なお、この共有メモリは、論理的に、図2に示した
ような入力バッファ26、処理バッファ27、出力バッ
ファ28という3つのメモリ領域から構成される。
The shared memory 16 is a memory for storing data, is connected to the bus 22 for storing the input data, and further, the bus is provided so that each component can read the data and store the output data. 24 is also connected. The shared memory is logically composed of three memory areas, that is, an input buffer 26, a processing buffer 27, and an output buffer 28 as shown in FIG.

【0025】イメージ伸長部18は、圧縮イメージデー
タに対して伸長処理を行い、伸長されたイメージデータ
を生成する回路である。このイメージ伸長部18は、伸
長されたイメージデータを共有メモリ16に落とすた
め、バス24と接続されている。
The image decompression unit 18 is a circuit for decompressing the compressed image data to generate decompressed image data. The image decompression unit 18 is connected to the bus 24 to drop the decompressed image data into the shared memory 16.

【0026】イメージ描画部20は、伸長されたイメー
ジデータを記録用紙等に描画出力するプリンタ等から構
成される。このイメージ描画部20は、描画するデータ
を共有メモリ16から得るためにバス24と接続されて
いる。
The image drawing unit 20 is composed of a printer or the like that draws and outputs the expanded image data on a recording sheet or the like. The image drawing unit 20 is connected to the bus 24 in order to obtain drawing data from the shared memory 16.

【0027】次に、上記イメージ伸長部18内部の構成
ブロックを図3に示す。図3によれば、イメージ伸長部
18は、内部システムバス40及び内部グラフィックバ
ス42という2つのバスを備えている。これらのバス
は、制御命令の伝達やデータの入出力ができるように、
イメージ伸長部18の各構成部と接続されている。
Next, FIG. 3 shows constituent blocks inside the image decompression unit 18. According to FIG. 3, the image decompression unit 18 comprises two buses, an internal system bus 40 and an internal graphic bus 42. These buses are used to transmit control commands and input / output data.
It is connected to each component of the image decompression unit 18.

【0028】外部バス接続インターフェイス30は、イ
メージ伸長部18の外部とのデータ及び制御命令の入出
力を制御するためのインターフェイス回路である。この
外部バス接続インターフェイス30は、外部からのバス
24と内部システムバス40と接続されている。
The external bus connection interface 30 is an interface circuit for controlling input / output of data and control commands with the outside of the image decompression unit 18. The external bus connection interface 30 is connected to the external bus 24 and the internal system bus 40.

【0029】イメージ伸長制御部32は、外部のCPU
10の命令により動作を開始した後は、CPU10によ
る制御とは独立に、イメージ伸長プログラムに従ってイ
メージ伸長部18を制御するための制御回路である。イ
メージ伸長制御部32は、各構成部に制御命令を伝達す
るため、内部システムバス40と接続されている。
The image expansion control unit 32 is an external CPU.
The control circuit is for controlling the image decompression unit 18 according to the image decompression program independently of the control by the CPU 10 after the operation is started by the command of 10. The image decompression controller 32 is connected to the internal system bus 40 in order to transmit a control command to each component.

【0030】イメージ伸長プログラムメモリ31は、上
記イメージ伸長プログラムを格納するためのメモリであ
り、イメージ伸長制御部32によるプログラムロードが
できるように内部システムバス40と接続されている。
The image decompression program memory 31 is a memory for storing the above-mentioned image decompression program, and is connected to the internal system bus 40 so that the image decompression control unit 32 can load the program.

【0031】イメージ伸長プロセッサ36は、圧縮イメ
ージデータに対して伸長処理を行うことにより伸長され
た描画用のイメージデータを生成するためのプロセッサ
である。このイメージ伸長プロセッサ36は、圧縮イメ
ージデータを得るために内部システムバス40と接続さ
れ、さらに伸長されたイメージデータを出力するために
内部グラフィックバス42と接続されている。
The image expansion processor 36 is a processor for generating expanded image data for drawing by performing expansion processing on the compressed image data. The image decompression processor 36 is connected to an internal system bus 40 to obtain compressed image data, and is further connected to an internal graphic bus 42 to output decompressed image data.

【0032】ワーク用メモリ38は、描画用のイメージ
データを一時的に格納するためのメモリである。このワ
ーク用メモリ38は、内部グラフィックバス42と接続
されている。
The work memory 38 is a memory for temporarily storing image data for drawing. The work memory 38 is connected to the internal graphic bus 42.

【0033】DMA装置34は、イメージ伸長制御部3
2による入出力制御とは独立に、内部グラフィックバス
42を占拠し、ワーク用メモリ38を直接アクセスする
ことにより、このメモリに格納された描画用のイメージ
データを高速で外部に出力するためのアクセス装置であ
る。このDMA装置34は、描画用のイメージデータを
得るために内部グラフィックバス42と接続され、さら
に外部へのデータ出力のために内部システムバス40と
接続されている。
The DMA device 34 includes an image expansion controller 3
An access device for occupying the internal graphic bus 42 and directly accessing the work memory 38 independently of the input / output control by 2 to output the image data for drawing stored in this memory to the outside at high speed. Is. The DMA device 34 is connected to an internal graphic bus 42 for obtaining image data for drawing, and is further connected to an internal system bus 40 for outputting data to the outside.

【0034】なお、ホストコンピュータから転送される
圧縮イメージデータが大きいサイズの時は、複数のブロ
ックに分割されて順次転送されるが、これらの分割され
た圧縮イメージデータのデータ構造は、図4に示される
ようになっている。
When the compressed image data transferred from the host computer has a large size, it is divided into a plurality of blocks and sequentially transferred. The data structure of these divided compressed image data is shown in FIG. As shown.

【0035】図4は、圧縮イメージデータが、データ#
1、#2、#3という3つの部分に分割されている場合
を扱い、この図によれば、どのデータも管理領域である
ヘッダ部分と圧縮イメージのデータ部分である符号化デ
ータとから構成されている。データ#1、#2、#3の
ヘッダ部分で共通のデータは、イメージデータであるこ
とを示すイメージデータ識別子、当該データブロックの
大きさを示すデータブロックサイズ、当該データブロッ
クの分割順の種別を示すブロック識別子である。このブ
ロック識別子は、データ#1では「分割開始」、データ
#2では「分割途中」、データ#3では「分割最終」を
示すコードとなる。また、データ#1のヘッダ部では、
さらにイメージ全体のサイズ、データの圧縮方式、出力
する時のイメージデータのX方向とY方向のサイズを指
定するイメージXサイズ及びイメージYサイズとが付加
される。
In FIG. 4, the compressed image data is data #
The case where the data is divided into three parts, # 1, # 2, and # 3, is treated, and according to this figure, each data is composed of a header part which is a management area and encoded data which is a data part of a compressed image. ing. The data common to the headers of the data # 1, # 2, and # 3 includes an image data identifier indicating that the data is image data, a data block size indicating the size of the data block, and a division order type of the data block. It is a block identifier shown. This block identifier is a code indicating "division start" for data # 1, "mid-division" for data # 2, and "final division" for data # 3. In the header part of data # 1,
Further, an image X size and an image Y size that specify the size of the entire image, the data compression method, and the sizes of the image data in the X direction and the Y direction when output are added.

【0036】次に、本実施例に係るイメージ描画装置の
処理について、図5のフローチャートに沿って説明す
る。
Next, the processing of the image drawing apparatus according to this embodiment will be described with reference to the flowchart of FIG.

【0037】図5によれば、CPU10は、先ずホスト
コンピュータからのデータの受信準備として、共有メモ
リ16から入力バッファ26として用いる所定の容量の
メモリ領域を確保する(ステップ70)。この処理は入
力バッファが確保されるまで続けられる(ステップ70
肯定判定)。
According to FIG. 5, the CPU 10 first reserves a memory area of a predetermined capacity to be used as the input buffer 26 from the shared memory 16 in preparation for receiving data from the host computer (step 70). This process is continued until the input buffer is secured (step 70).
Affirmative judgment).

【0038】入力バッファが確保されると(ステップ7
0肯定判定)、ホストインターフェイス制御部14は、
ホストコンピュータへ受信準備完了の旨を通知する(ス
テップ72)。
When the input buffer is secured (step 7)
0 positive determination), the host interface control unit 14
The host computer is notified that the reception preparation is completed (step 72).

【0039】ホストインターフェイス制御部14は、ホ
ストコンピュータからのデータを受信するまで待機し
(ステップ74否定判定)、データを受信すると(ステ
ップ74肯定判定)、当該受信データを入力バッファ2
6に格納する(ステップ76)。
The host interface control section 14 waits until data is received from the host computer (step 74 negative judgment), and when the data is received (step 74 positive judgment), the received data is inputted into the input buffer 2.
6 (step 76).

【0040】次に、受信データがイメージデータである
か否かの判定が行われる(ステップ78)。この判断
は、図4で示されたヘッダ部分のイメージデータ識別子
を参照し、所定のビットが立っているか否かにより行
う。
Next, it is judged whether or not the received data is image data (step 78). This determination is made by referring to the image data identifier in the header portion shown in FIG. 4 and checking whether a predetermined bit is set.

【0041】受信データがイメージデータではなかった
場合(ステップ78否定判定)、イメージ伸長処理とは
異なるその他のデータ処理を行い(ステップ100)、
当該処理が終了すればホストコンピュータへ終了ステー
タスを通知し(ステップ102)、ホストコンピュータ
との接続が終了したか否かが判定される(ステップ9
8)。接続終了の場合(ステップ98肯定判定)には、
そのホストコンピュータとの通信を終了し、接続がまだ
終了していない場合(ステップ98否定判定)には、ス
テップ70に戻り、新たな受信準備が行われる。
If the received data is not image data (No determination in step 78), other data processing different from the image expansion processing is performed (step 100).
When the process ends, the end status is notified to the host computer (step 102), and it is determined whether the connection with the host computer is ended (step 9).
8). When the connection is completed (Yes at Step 98),
When the communication with the host computer is finished and the connection is not finished yet (No at step 98), the process returns to step 70 and a new reception preparation is performed.

【0042】一方、受信データがイメージデータである
場合(ステップ78肯定判定)には、イメージ伸長部1
8は、圧縮イメージデータを出力用のイメージデータに
伸長するイメージ伸長処理を行う(ステップ80)。こ
のイメージ伸長処理は、イメージ伸長制御部32によっ
て、CPU10とは独立に制御される。従って、このイ
メージ伸長処理とは並列に他の通信処理等が行われる。
なお、このイメージ伸長処理が、正常終了したかエラー
終了したかを示すステータスは、伸長処理終了後にメモ
リの所定の位置若しくはレジスタ等に出力される。
On the other hand, if the received data is image data (Yes at step 78), the image decompression unit 1
The image decompressor 8 decompresses the compressed image data into image data for output (step 80). The image decompression processing is controlled by the image decompression control unit 32 independently of the CPU 10. Therefore, other communication processing and the like are performed in parallel with this image expansion processing.
It should be noted that the status indicating whether the image decompression processing has ended normally or ended in error is output to a predetermined position in the memory or a register after the decompression processing ends.

【0043】そして、伸長処理が終了したか否かに係わ
らず、ステータスの内容が記憶されたレジスタが読み取
られ、エラーステータスか否かが判定される(ステップ
84)。
Regardless of whether or not the decompression process has been completed, the register in which the contents of the status are stored is read, and it is determined whether or not the status is an error status (step 84).

【0044】エラーステータスであった場合(ステップ
84肯定判定)、ホストインターフェイス制御部14
は、ホストコンピュータへこのエラーステータスを通知
する(ステップ94)。通知後は、ホストコンピュータ
からの指示を待って次の動作を行う(ステップ96)。
この動作終了後は、このホストコンピュータとの接続終
了か否か(ステップ98)に従って、再度の受信を準備
する(ステップ98否定判定)か或いはこのホストコン
ピュータとの通信を終了する(ステップ98肯定判
定)。
If the status is error (Yes at step 84), the host interface controller 14
Notifies the host computer of this error status (step 94). After the notification, the next operation is performed after waiting for an instruction from the host computer (step 96).
After this operation is completed, depending on whether or not the connection with the host computer is completed (step 98), the reception is prepared again (step 98 negative determination) or the communication with the host computer is completed (step 98 positive determination). ).

【0045】一方、エラーステータスでない場合(ステ
ップ84否定判定)、直前に受信した圧縮イメージデー
タが分割最終データであるか否か又は分割されていない
単独データであるか否かの判定が行われる(ステップ8
6)。この判断は、ヘッダ部分のブロック識別子を参照
することにより行う(図4参照)。なお、エラーステー
タスではない場合として、イメージ伸長処理部18によ
るイメージ伸長処理がまだ終了しておらず、レジスタに
ステータスがセットされていない場合と伸長処理が正常
終了して正常終了のステータスがセットされている場合
とがある。
On the other hand, when the status is not the error status (No determination in step 84), it is determined whether the compressed image data received immediately before is the divided final data or the undivided single data ( Step 8
6). This determination is made by referring to the block identifier of the header part (see FIG. 4). It should be noted that when the status is not the error status, the image expansion processing by the image expansion processing unit 18 is not completed yet, and the status is not set in the register, or the expansion processing is normally completed and the status of normal end is set. There are some cases.

【0046】直前に受信した圧縮イメージデータが分割
最終データではなく、かつ、単独データでもない場合
(例えば、#1データや#2データがこの場合に相当す
る)、ホストコンピュータへ次の分割データ送信を促す
旨を通知する(ステップ88)。そして、データを受信
すると(ステップ74肯定判定)、次の分割データを入
力バッファ26に格納し(ステップ76)、同様に当該
データに対するイメージ伸長処理を行う(ステップ8
0)。
When the compressed image data received immediately before is neither the final divided data nor the independent data (for example, # 1 data or # 2 data corresponds to this case), the next divided data is transmitted to the host computer. (Step 88). Then, when the data is received (affirmative determination in step 74), the next divided data is stored in the input buffer 26 (step 76), and the image decompression process is similarly performed on the data (step 8).
0).

【0047】後述するように、イメージ伸長処理の対象
となる分割データは、入力バッファ26から処理バッフ
ァ27に次々に転送され、図2に示したように処理バッ
ファ27に分割データが格納された状態になっている
(図2では、N個に分割されたデータを示している)。
従って、入力バッファ26へ順次分割データを受信して
前の分割データに上書きしても、これにより前の分割デ
ータの内容が失われることはなく、前の分割データをイ
メージ伸長処理しつつ、後の分割データを受信するとい
う並列処理が可能となる。なお、処理バッファ27の容
量を少なくするため、伸長処理が終了した分割データを
消去するようにしてもよい。
As will be described later, the divided data to be subjected to the image expansion processing is transferred from the input buffer 26 to the processing buffer 27 one after another, and the divided data is stored in the processing buffer 27 as shown in FIG. (FIG. 2 shows data divided into N pieces).
Therefore, even if the divided data is sequentially received in the input buffer 26 and the previous divided data is overwritten, the contents of the previous divided data are not lost by this, and the image data of the previous divided data is expanded and The parallel processing of receiving the divided data of is possible. In addition, in order to reduce the capacity of the processing buffer 27, the divided data after the decompression process may be deleted.

【0048】一方、直前に受信した圧縮イメージデータ
が分割最終データ(#3データがこれに相当する)又は
単独データである場合には、イメージ伸長処理が終了す
るまで待機する(ステップ90否定判定)。即ち、この
間は新たなデータの受信処理は行われない。
On the other hand, when the compressed image data received immediately before is the divided final data (the # 3 data corresponds to this) or the independent data, the process waits until the image decompression processing is completed (step 90 negative judgment). . That is, during this period, new data reception processing is not performed.

【0049】イメージ伸長処理が終了すると(ステップ
92肯定判定)、ホストコンピュータへ伸長処理終了の
ステータスを通知する(ステップ92)。この通知によ
り、ホストコンピュータは、次の動作指示をイメージ描
画装置に与えることができる。
When the image expansion processing is completed (Yes at Step 92), the status of the expansion processing completion is notified to the host computer (Step 92). By this notification, the host computer can give the next operation instruction to the image drawing device.

【0050】次に、ホストコンピュータとの接続が終了
したか否かが判定される(ステップ98)。接続終了の
場合(ステップ98肯定判定)には、そのホストコンピ
ュータとの通信を終了し、接続がまだ終了していない場
合(ステップ98否定判定)には、ステップ70に戻
り、新たなデータ受信準備が行われる。
Next, it is judged whether or not the connection with the host computer has been completed (step 98). If the connection is ended (Yes at Step 98), the communication with the host computer is ended. If the connection is not yet ended (No at Step 98), the procedure returns to Step 70 to prepare for new data reception. Is done.

【0051】なお、伸長されたイメージデータは共有メ
モリ16の処理バッファ28に格納された後、イメージ
描画部20によって記録用紙等に描画される。
The decompressed image data is stored in the processing buffer 28 of the shared memory 16 and then drawn on the recording paper by the image drawing unit 20.

【0052】以上のように、分割された圧縮イメージデ
ータのイメージ伸長処理とデータ受信処理とを並列に制
御することにより、イメージ伸長処理を待って次の分割
データの受信を行う方法よりも処理時間の短縮化が図れ
る。しかも、従来通りのインターフェイスを保持してい
るので、イメージ伸長処理がエラー終了した場合でも、
特別の取決めを設けることなく、エラーステータスをホ
ストコンピュータへ通知することができる。これによ
り、例えば圧縮イメージデータが圧縮時の符号化誤り等
により伸長できないような時でも、ホストコンピュータ
へ適宜そのエラー内容を通知して後処理を円滑に進める
ことができる。
As described above, by controlling the image decompression processing of divided compressed image data and the data reception processing in parallel, the processing time is longer than that of the method of waiting for the image decompression processing and receiving the next divided data. Can be shortened. Moreover, since the interface as before is retained, even if the image decompression process ends in error,
The error status can be notified to the host computer without any special arrangement. As a result, even when the compressed image data cannot be expanded due to a coding error or the like during compression, the error content is appropriately notified to the host computer, and the post-processing can be smoothly performed.

【0053】次に、上記のような並列制御によりどの程
度処理時間が短縮されるかを図6において、本実施例
における並列制御の場合と従来の直列制御の場合との
動作シーケンスとを対比して説明する。なお、この場
合、圧縮イメージデータは、ホストコンピュータにより
データ#1、#2、#3の3つのデータに分割されて転
送されてくるものとする。
Next, how the processing time is shortened by the above-mentioned parallel control will be compared with FIG. 6 by comparing the operation sequence of the parallel control in this embodiment with that of the conventional series control. Explain. In this case, it is assumed that the compressed image data is divided into three pieces of data # 1, # 2, and # 3 and transferred by the host computer.

【0054】図6において、英子文字a、a' 、a”
は、それぞれホストコンピュータがデータ#1、#2、
#3を出力編集する作業を示し、英子文字b、b' 、
b" は、それぞれホストコンピュータからイメージ描画
装置のホストインターフェイス制御部14へデータ#
1、#2、#3を転送する処理を示している。また、英
大文字A、A' 、A" は、それぞれホストインターフェ
イス制御部14によるデータ#1、#2、#3の受信処
理を示している。
In FIG. 6, English characters a, a ', a "
Are the data # 1, # 2,
It shows the work to output and edit # 3, and the English characters b, b ',
b "is data # from the host computer to the host interface controller 14 of the image drawing device.
A process for transferring 1, # 2 and # 3 is shown. Also, the capital letters A, A ′, and A ″ indicate the reception processing of the data # 1, # 2, and # 3 by the host interface control unit 14, respectively.

【0055】そして、英大文字Bは、イメージ伸長部1
8へ伸長処理開始指示を与え、ホストインターフェイス
制御部14からホストコンピュータへ次のデータ#1を
送信するよう促すためのステータスを返す処理を示して
いる(ステップ88)。また、英大文字B’は、イメー
ジ伸長部18へ伸長処理追加指示を与え、ホストインタ
ーフェイス制御部14からホストコンピュータへ次のデ
ータ#2を送信するよう促すためのステータスを返す処
理を示している(ステップ88)。さらに英大文字B"
は、イメージ伸長部18へ伸長処理追加指示を与え、イ
メージ伸長処理の終了待ち状態を示している(ステップ
90)。また、英大文字B'"は、伸長処理が終了した旨
を#3データの処理ステータスとして通知する処理を示
している(ステップ92)。
The capital letter B is the image decompression unit 1
8 shows a process of giving a decompression process start instruction to the CPU 8 and returning a status for prompting the host interface controller 14 to transmit the next data # 1 to the host computer (step 88). Also, the capital letter B'indicates a process of giving a decompression processing addition instruction to the image decompression unit 18 and returning a status for prompting the host interface control unit 14 to transmit the next data # 2 to the host computer ( Step 88). Further capital letter B "
Shows the decompression processing addition instruction to the image decompression unit 18 and shows the waiting state for ending the image decompression processing (step 90). Further, the capital letter B '"indicates the processing of notifying the completion of the expansion processing as the processing status of # 3 data (step 92).

【0056】図6によれば、並列制御の場合は、デー
タ#1若しくは#2のイメージ伸長処理が進行している
間に、それぞれデータ#2若しくは#3のデータ転送が
行われる。これに対し、直列制御の場合は、データ#
1若しくは#2のイメージ伸長処理の終了後に、それぞ
れ次のデータ#2若しくは#3のデータ転送が行われ
る。従って、並列制御の場合、図示のように処理時間が
短縮化されることがわかる。
According to FIG. 6, in the case of parallel control, the data transfer of the data # 2 or # 3 is performed while the image expansion processing of the data # 1 or # 2 is in progress. On the other hand, in the case of serial control, data #
After the completion of the image decompression processing of 1 or # 2, the data transfer of the next data # 2 or # 3 is performed. Therefore, in the case of parallel control, it can be seen that the processing time is shortened as shown in the figure.

【0057】次に、ステップ80におけるイメージ伸長
処理の詳細な処理の流れを、図7のフローチャートに従
って図8を参照しつつ説明する。なお、図7及び図8に
おいて、「GIA」はイメージ伸長部18、「GIC」
はコマンドブロック、「SDP」はソースデータブロッ
クポインタの略称である。
Next, the detailed processing flow of the image decompression processing in step 80 will be described with reference to the flowchart of FIG. 7 and with reference to FIG. 7 and 8, "GIA" is the image decompression unit 18, "GIC".
Is a command block, and “SDP” is an abbreviation for a source data block pointer.

【0058】先ず、イメージ伸長制御部32は、圧縮イ
メージデータの内容を検査し、このイメージデータの圧
縮時の符号化誤り等のエラー有無をチェックする(ステ
ップ120)。そのチェックの結果、データエラーがあ
る場合(ステップ122肯定判定)、分割処理中のフラ
グがオンであるか否かが判定され(ステップ192)、
分割処理中のフラグがオン、即ちイメージ伸長処理中の
場合(ステップ192肯定判定)にのみ、イメージ伸長
部18がリセットされる。そして、リセットが終了する
まで待機し(ステップ196否定判定)、リセットが終
了すると(ステップ196肯定判定)、データエラーの
ステータスをセットして(ステップ198)、イメージ
伸長制御部32の制御からCPU10による制御に戻
る。また、分割処理中フラグがオフの場合(ステップ1
92否定判定)、即ち、伸長処理開始前若しくは処理終
了後には、イメージ伸長部18のリセットを行わずにデ
ータエラーのステータスをセットして(ステップ19
8)、イメージ伸長制御部32の制御からCPU10に
よる制御に戻る。
First, the image decompression control unit 32 inspects the contents of the compressed image data, and checks whether there is an error such as a coding error when the image data is compressed (step 120). As a result of the check, if there is a data error (step 122, affirmative judgment), it is judged whether or not the division processing flag is on (step 192),
The image decompression unit 18 is reset only when the division processing flag is on, that is, when the image decompression processing is in progress (Yes at Step 192). Then, it waits until the reset is completed (step 196 negative judgment), and when the reset is completed (step 196 affirmative judgment), a data error status is set (step 198), and the CPU 10 is controlled by the image decompression controller 32. Return to control. If the division processing flag is off (step 1
92 negative determination), that is, before starting the decompression process or after the end of the process, the data error status is set without resetting the image decompression unit 18 (step 19).
8) Return from the control of the image expansion control section 32 to the control of the CPU 10.

【0059】一方、データエラーがない場合(ステップ
122否定判定)、データブロックの種別に応じて処理
を分岐させる(ステップ124)。
On the other hand, if there is no data error (NO at step 122), the process branches depending on the type of data block (step 124).

【0060】先ず、圧縮イメージデータが分割されずに
送られてきた単独データの場合、共有メモリ16をサー
チして、処理バッファ27を確保するためのチェックを
行う(ステップ126)。
First, in the case where the compressed image data is single data sent without being divided, the shared memory 16 is searched and a check for securing the processing buffer 27 is performed (step 126).

【0061】処理バッファ27が確保されるまでこのチ
ェックを続行し(ステップ128否定判定)、処理バッ
ファ27が確保されると(ステップ128肯定判定)、
単独のイメージデータが入力バッファ26から処理バッ
ファ27へ転送される(ステップ130)。この転送の
際、GICテーブルが作成され(ステップ132)、次
いでSDPテーブルが作成される(ステップ134)。
This check is continued until the processing buffer 27 is secured (No at step 128), and when the processing buffer 27 is secured (Yes at step 128).
Single image data is transferred from the input buffer 26 to the processing buffer 27 (step 130). During this transfer, the GIC table is created (step 132) and then the SDP table is created (step 134).

【0062】なお、図8に、転送される単独データと
GIC/SDPテーブルの内容とを示した。入力バッフ
ァ26に格納された単独データは、受信直後のものであ
り、ヘッダ部分とデータ部分とから構成されているが、
処理バッファ27に転送される部分はデータ部分だけで
ある。その代わりヘッダ部分の内容が読み取られ、GI
Cテーブルに反映される。GICテーブルはイメージ伸
長プロセッサ36に伸長に必要となるパラメータ等を示
すためのテーブルである。図8より、このGICテー
ブルは、伸長処理の制御のためのコマンド、SDPポイ
ンタ、出力する時のイメージサイズと圧縮タイプ等から
成る。また、SDPテーブルは、エントリ番号、処理バ
ッファ27に転送されたイメージデータのポインタやデ
ータ長を示すためのテーブルである。
FIG. 8 shows the individual data transferred and the contents of the GIC / SDP table. The individual data stored in the input buffer 26 is the data immediately after reception and is composed of a header part and a data part.
Only the data portion is transferred to the processing buffer 27. Instead, the contents of the header are read and the GI
It is reflected in the C table. The GIC table is a table for indicating to the image decompression processor 36 the parameters necessary for decompression. As shown in FIG. 8, this GIC table includes a command for controlling decompression processing, an SDP pointer, an image size when outputting, a compression type, and the like. The SDP table is a table for indicating the entry number, the pointer of the image data transferred to the processing buffer 27, and the data length.

【0063】次に、共有メモリ16をサーチして、伸長
されたイメージデータの出力先である出力バッファ28
を確保するためのチェックを行う(ステップ136)。
Next, the shared memory 16 is searched and the output buffer 28, which is the output destination of the decompressed image data.
A check is performed to ensure that (step 136).

【0064】出力バッファ28が確保されるまでこのチ
ェックを続行し(ステップ138否定判定)、出力バッ
ファ28が確保されると(ステップ138肯定判定)、
イメージ伸長部18が起動し(ステップ140)、イメ
ージ伸長処理が行われる。この場合、イメージ伸長プロ
セッサ36が、GICテーブルで指定されたパラメータ
に従って、SDPテーブルでポインタ指定された処理バ
ッファ27内のデータを対象として伸長処理を行う。伸
長されたイメージデータは、DMA装置34により外部
に出力され、出力バッファ28に格納される。
This check is continued until the output buffer 28 is secured (step 138 negative determination), and when the output buffer 28 is secured (step 138 positive determination).
The image decompression unit 18 is activated (step 140), and the image decompression processing is performed. In this case, the image decompression processor 36 performs decompression processing on the data in the processing buffer 27 designated by the pointer in the SDP table according to the parameters designated in the GIC table. The decompressed image data is output to the outside by the DMA device 34 and stored in the output buffer 28.

【0065】このデータ伸長処理が終了すると(ステッ
プ142肯定判定)、イメージ伸長処理のステータス
(正常/エラー)がセットされ、イメージ伸長制御部3
2の制御が終了する。
When this data expansion processing is completed (Yes at Step 142), the status (normal / error) of the image expansion processing is set, and the image expansion control unit 3
The control of 2 ends.

【0066】ステップ124において、受信データが、
分割転送された圧縮イメージデータであって、かつ、分
割開始データであった場合、共有メモリ16をサーチし
て、処理バッファ27を確保するためのチェックを行う
(ステップ146)。
In step 124, the received data is
If the compressed image data has been divided and transferred and is division start data, the shared memory 16 is searched and a check for securing the processing buffer 27 is performed (step 146).

【0067】処理バッファ27が確保されるまでこのチ
ェックを続行し(ステップ148否定判定)、処理バッ
ファ27が確保されると(ステップ148肯定判定)、
イメージ伸長部18で1度に処理する最小のデータ長が
決定される(ステップ150)。この最小データ長L
は、イメージデータ全体のサイズをM、SDPのエント
リ数をNとすると、次のようにして求められる。
This check is continued until the processing buffer 27 is secured (step 148 negative determination), and when the processing buffer 27 is secured (step 148 affirmative determination),
The image decompression unit 18 determines the minimum data length to be processed at one time (step 150). This minimum data length L
Is calculated as follows, where M is the size of the entire image data and N is the number of SDP entries.

【0068】 L = M / N (1) 例えば、イメージサイズ全体のサイズが、200kByte
s で、SDPのエントリ数を200とすると、この最小
データ長は(1)式より1kBytes となる。
L = M / N (1) For example, the entire image size is 200 kBytes.
Assuming that the number of SDP entries is 200 in s, the minimum data length is 1 kBytes from the equation (1).

【0069】もし仮に1ブロックが132Bytes で送ら
れてくる場合には、 132Bytes *n > 1kBytes (2) を満たす最小の整数nは8となる。従って、この例で
は、8ブロック毎にイメージ伸長部18に追加処理命令
を与えることとなる。
If one block is sent in 132 Bytes, the minimum integer n that satisfies 132 Bytes * n> 1 kBytes (2) is 8. Therefore, in this example, an additional processing command is given to the image decompression unit 18 every 8 blocks.

【0070】次に、分割開始データが入力バッファ26
から処理バッファ27へ転送される(ステップ15
2)。この転送の際、GICテーブルが作成され(ステ
ップ154)、次いでSDPテーブルが作成される(ス
テップ156)。なお、図8に、転送される分割開始
データとGIC/SDPテーブルの内容とを示した。
Next, the division start data is input to the input buffer 26.
To the processing buffer 27 (step 15)
2). During this transfer, a GIC table is created (step 154) and then an SDP table is created (step 156). Note that FIG. 8 shows the division start data and the contents of the GIC / SDP table that are transferred.

【0071】次に、共有メモリ16をサーチして、伸長
されたイメージデータの出力先である出力バッファ28
を確保するためのチェックを行う(ステップ158)。
Next, the shared memory 16 is searched and the output buffer 28 which is the output destination of the decompressed image data.
A check is performed to ensure that (step 158).

【0072】出力バッファ28が確保されるまでこのチ
ェックを続行し(ステップ160否定判定)、出力バッ
ファ28が確保されると(ステップ160肯定判定)、
分割処理中を示すフラグがオンにされる(ステップ16
2)。
This check is continued until the output buffer 28 is secured (No at Step 160), and when the output buffer 28 is secured (Yes at Step 160),
A flag indicating that the dividing process is in progress is turned on (step 16).
2).

【0073】次に、イメージ伸長部18が起動し(ステ
ップ164)、イメージ伸長処理が行われる。この場
合、イメージ伸長プロセッサ36が、GICテーブルで
指定されたパラメータに従って、SDPテーブルでポイ
ンタ指定された処理バッファ27内のデータを対象とし
てイメージ伸長処理を行う。伸長されたイメージデータ
は、DMA装置34により外部に出力され、出力バッフ
ァ28に格納される。
Next, the image decompression unit 18 is activated (step 164) and the image decompression processing is performed. In this case, the image decompression processor 36 performs the image decompression process on the data in the processing buffer 27 designated by the pointer in the SDP table according to the parameter designated in the GIC table. The decompressed image data is output to the outside by the DMA device 34 and stored in the output buffer 28.

【0074】このデータ伸長処理が終了すると(ステッ
プ166肯定判定)、イメージ伸長処理の正常ステータ
スがセットされる。
When the data decompression process is completed (Yes at step 166), the normal status of the image decompression process is set.

【0075】ステップ124において、受信データが、
分割転送された圧縮イメージデータであって、かつ、分
割途中データであった場合、先ずこの分割途中データの
長さが十分であるか否か、即ちステップ150で求めら
れた最小データ長以上であるか否かが判定される(ステ
ップ168)。
At step 124, the received data is
When the compressed image data is divided and transferred and is the data in the middle of division, it is first determined whether or not the length of the data in the middle of division is sufficient, that is, it is equal to or longer than the minimum data length obtained in step 150. It is determined whether or not (step 168).

【0076】データ長が十分であった場合(ステップ1
68肯定判定)、この分割途中データが入力バッファ2
6から処理バッファ27へ追加転送される(ステップ1
70)。この転送の際、SDPテーブルが更新される
(ステップ174)。
When the data length is sufficient (step 1
68 affirmative), the data in the middle of this division is input buffer 2
6 to the processing buffer 27 (step 1)
70). During this transfer, the SDP table is updated (step 174).

【0077】図8に追加転送された分割途中データと
更新されたSDPテーブルの内容とを示した。この図よ
り、追加転送された分割途中データの先頭アドレスと、
先に転送された分割開始データの最後のアドレスとは必
ずしも一致せず、処理バッファ27において連続的につ
ながっていないことが分かる。これにより、処理バッフ
ァ27の効率的な使用が可能となる。また、SDPテー
ブルでは、エントリ番号がインクリメントされ、追加転
送された分割途中データのソースデータポインタとその
データサイズとが追加されるという変更がなされてい
る。
FIG. 8 shows the additionally transferred halfway division data and the updated contents of the SDP table. From this figure, the start address of the additionally transferred data in the middle of division,
It does not necessarily match the last address of the division start data transferred earlier, and it can be seen that the processing buffer 27 is not continuously connected. As a result, the processing buffer 27 can be used efficiently. Further, in the SDP table, the entry number is incremented, and the source data pointer and the data size of the additionally transferred divided midway data are added.

【0078】次に、エントリ番号が更新されたため、イ
メージ伸長処理部18に伸長処理の追加起動命令が発せ
られる(ステップ178)。これにより、新たに追加さ
れたデータに対しても先のデータの伸長処理終了後にイ
メージ伸長処理が実行される。そして、イメージ伸長処
理が終了すると、正常終了のステータスをセットする
(ステップ166)。
Next, since the entry number has been updated, an additional decompression processing start command is issued to the image decompression processing unit 18 (step 178). As a result, the image decompression process is executed for the newly added data after the decompression process of the previous data is completed. Then, when the image expansion processing is completed, the status of normal completion is set (step 166).

【0079】一方、データ長が十分ではない場合(ステ
ップ168否定判定)、この分割途中データが入力バッ
ファ26から処理バッファ27へ先に転送されたデータ
と連続的に繋がるように追加転送される(ステップ17
2)。この転送の際、SDPテーブルが更新される(ス
テップ176)。
On the other hand, if the data length is not sufficient (No judgment at step 168), this dividing data is additionally transferred from the input buffer 26 to the processing buffer 27 so as to be continuously connected to the previously transferred data ( Step 17
2). During this transfer, the SDP table is updated (step 176).

【0080】図8に追加転送された分割途中データと
更新されたSDPテーブルの内容とを示した。この図よ
り、転送されたデータは、先のデータと処理バッファ2
7内において物理的に繋がるように追加されている。こ
のため、SDPテーブルのエントリ番号は変更されず、
追加されたデータブロックのサイズのみが変更となって
いる。これにより、エントリ番号の増加を防ぐことがで
きる。
FIG. 8 shows the additionally transferred halfway division data and the updated contents of the SDP table. From this figure, the transferred data is the same as the previous data and the processing buffer 2.
It is added to be physically connected within 7. Therefore, the entry number of the SDP table is not changed,
Only the size of the added data block has changed. This can prevent an increase in the entry number.

【0081】このように、データ長が十分ではない場合
には、先のデータと物理的に追加し、1ブロックとして
伸長処理を行うので、イメージ伸長処理の追加起動命令
を発する必要はない。そして、イメージ伸長処理が終了
すると、正常終了のステータスをセットする(ステップ
166)。
As described above, when the data length is not sufficient, since the data is physically added to the previous data and the decompression process is performed as one block, it is not necessary to issue an additional activation command for the image decompression process. Then, when the image expansion processing is completed, the status of normal completion is set (step 166).

【0082】ステップ124において、受信データが、
分割転送された圧縮イメージデータであって、かつ、分
割最終データであった場合、この分割最終データが入力
バッファ26から処理バッファ27へ追加転送される
(ステップ180)。この転送の際、SDPテーブルが
更新される(ステップ182)。
In step 124, the received data is
If the compressed image data is divided and transferred and is the divided final data, the divided final data is additionally transferred from the input buffer 26 to the processing buffer 27 (step 180). At the time of this transfer, the SDP table is updated (step 182).

【0083】図8に追加転送された分割最終データと
更新されたSDPテーブルの内容とを示した。この図よ
り、処理バッファ27にこの分割最終データが追加転送
されたことが分かる。また、SDPテーブルでは、エン
トリ番号がインクリメントされ、追加転送された分割最
終データのソースデータポインタとそのデータサイズと
が追加されるという変更がなされている。
FIG. 8 shows the divided final data additionally transferred and the contents of the updated SDP table. From this figure, it can be seen that this divided final data has been additionally transferred to the processing buffer 27. Further, in the SDP table, the entry number is incremented and the source data pointer of the additionally transferred divided final data and its data size are added.

【0084】次に、分割処理中フラグがオフにされ(ス
テップ184)、イメージ伸長処理部18に伸長処理の
追加起動命令が発せられる(ステップ186)。これに
より、最後に追加されたデータに対しても直前に転送さ
れたデータの伸長処理終了後にイメージ伸長処理が実行
される。
Next, the division processing in-progress flag is turned off (step 184), and the decompression processing additional activation command is issued to the image decompression processing portion 18 (step 186). As a result, the image decompression process is executed for the last added data after the decompression process of the data transferred immediately before is completed.

【0085】分割最終データのイメージ伸長処理が開始
されると、当該処理が終了するまで次の処理は行わず
(ステップ188否定判定)、このデータ伸長終了を待
って、イメージ伸長処理のステータス(正常/エラー)
をセットする(ステップ190)。
When the image decompression process of the divided final data is started, the next process is not performed until the process is completed (No at step 188), and the status of the image decompression process (normal /error)
Is set (step 190).

【0086】以上が本実施例に係るイメージ描画装置で
あるが、この例だけに限定されるものではない。例え
ば、共有メモリ16に、入力バッファ26、処理バッフ
ァ27及び出力バッファ28を確保したが、これらを別
個のメモリで構成することも可能である。
The above is the image drawing apparatus according to the present embodiment, but the present invention is not limited to this example. For example, although the input buffer 26, the processing buffer 27, and the output buffer 28 are secured in the shared memory 16, they may be configured as separate memories.

【0087】また、ホストコンピュータとの通信とイメ
ージ伸長の並列処理時にバスの競合を軽減させるため、
バス22とバス24とに分かれているが、1つのバスで
構成することも可能である。
Also, in order to reduce bus contention during parallel processing of communication with the host computer and image decompression,
Although it is divided into the bus 22 and the bus 24, it is also possible to configure with one bus.

【0088】さらに、データ受信処理とイメージ伸長処
理とを並列に制御する手段として、CPU10とは独立
に、イメージ伸長部18にイメージ伸長制御部32とイ
メージ伸長プロセッサ36とを設け、さらにDMA装置
34によりデータ転送を行うようにしたが、並列制御し
うる構成であれば、他の構成に任意好適に変更できる。
Further, as a means for controlling the data receiving process and the image decompression process in parallel, the image decompression control unit 32 and the image decompression processor 36 are provided in the image decompression unit 18 independently of the CPU 10, and the DMA device 34 is further provided. Although the data transfer is performed according to the above, the configuration can be arbitrarily changed to another configuration as long as the configuration allows parallel control.

【0089】また、プログラム動作中にバスに影響を与
えないように、システムプログラムの格納場所としてシ
ステムメモリ12を用意しているが、共有メモリ16上
にシステムプログラムを置いてそこから動作させること
も可能である。
The system memory 12 is prepared as a storage location of the system program so as not to affect the bus during the program operation. However, the system program may be placed on the shared memory 16 and operated from there. It is possible.

【0090】[0090]

【発明の効果】以上説明したように本発明によれば、従
来と同様のホストコンピュータとのインターフェイスを
保持すると共に、分割転送される圧縮イメージデータの
受信処理と伸長処理を並列に行うことによって、ホスト
コンピュータとの特別な取決めを新たに設けることな
く、処理速度の向上を図ることができる。
As described above, according to the present invention, the same interface with the conventional host computer is maintained, and the receiving process and the decompressing process of the divided compressed image data are performed in parallel. The processing speed can be improved without newly providing a special agreement with the host computer.

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

【図1】本実施例に係るイメージ描画装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram showing a configuration of an image drawing device according to an embodiment.

【図2】共有メモリのメモリ領域の構成を示す図であ
る。
FIG. 2 is a diagram showing a configuration of a memory area of a shared memory.

【図3】イメージ伸長部18の内部の構成を示すブロッ
ク図である。
FIG. 3 is a block diagram showing an internal configuration of an image decompression unit 18.

【図4】ホストコンピュータから分割転送されてくる圧
縮イメージデータのデータ構造を示す図である。
FIG. 4 is a diagram showing a data structure of compressed image data that is divided and transferred from a host computer.

【図5】本実施例に係るイメージ描画装置の処理の流れ
を示すフローチャートである。
FIG. 5 is a flowchart showing a processing flow of the image drawing apparatus according to the present embodiment.

【図6】並列制御の場合と直列制御の場合における
ホストコンピュータとイメージ描画装置とのデータ転送
及びイメージ伸長処理の動作シーケンスを示す図であ
る。
FIG. 6 is a diagram showing an operation sequence of data transfer and image expansion processing between a host computer and an image drawing device in the case of parallel control and the case of serial control.

【図7】イメージ伸長処理の流れを示すフローチャート
である。
FIG. 7 is a flowchart showing a flow of image expansion processing.

【図8】入力バッファ26と処理バッファ27に格納さ
れた状態の圧縮イメージデータ及びGICテーブルとS
DPテーブルの内容を示す図である。
FIG. 8 shows compressed image data stored in an input buffer 26 and a processing buffer 27, a GIC table and S
It is a figure which shows the content of DP table.

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

10 CPU 14 ホストインターフェイス制御部 16 共有メモリ 18 イメージ伸長部 20 イメージ描画部 26 入力バッファ 27 処理バッファ 32 イメージ伸長制御部 36 イメージ伸長プロセッサ 34 DMA装置 10 CPU 14 Host Interface Control Unit 16 Shared Memory 18 Image Decompression Unit 20 Image Drawing Unit 26 Input Buffer 27 Processing Buffer 32 Image Decompression Control Unit 36 Image Decompression Processor 34 DMA Device

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ホストコンピュータとの通信を制御する
ホストインターフェイス制御部と、 前記ホストコンピュータから分割転送された圧縮イメー
ジデータを記憶する入力バッファと、 前記圧縮イメージデータを伸長するデータ伸長部と、 このデータ伸長部により伸長されたイメージデータを描
画する描画部と、 を備えたイメージ描画装置において、 前記圧縮イメージデータを記憶する処理バッファと、 前記入力バッファに記憶された圧縮イメージデータを、
前記ホストコンピュータから分割転送される毎に、前記
処理バッファに転送若しくは追加転送する転送手段と、 前記ホストインターフェイス制御部による前記ホストコ
ンピュータとの通信及び前記入力バッファへの次の分割
された圧縮イメージデータの転送を行わせると共に、こ
れらの処理とは並列に、前記処理バッファに記憶された
圧縮イメージデータを伸長する処理を、前記データ伸長
部に行わせる並列制御手段と、 を備えたことを特徴とするイメージ描画装置。
1. A host interface control unit for controlling communication with a host computer, an input buffer for storing compressed image data divided and transferred from the host computer, and a data decompression unit for decompressing the compressed image data. An image drawing apparatus including: a drawing unit that draws image data expanded by a data expansion unit; and a processing buffer that stores the compressed image data, and compressed image data stored in the input buffer,
Transfer means for transferring or additionally transferring to the processing buffer each time dividedly transferred from the host computer, communication with the host computer by the host interface control unit, and next divided compressed image data to the input buffer And a parallel control unit that causes the data decompression unit to decompress the compressed image data stored in the processing buffer in parallel with these processes. Image drawing device.
【請求項2】 前記ホストインターフェイス制御部は、
分割終了した圧縮イメージデータを受信した場合には、
データ送信を禁止する旨を前記ホストコンピュータに通
知し、 前記分割終了した圧縮イメージデータの伸長処理が終了
したときに、この伸長処理終了の旨を前記ホストコンピ
ュータに通知する通知手段を備えたことを特徴とする請
求項1に記載のイメージ描画装置。
2. The host interface control unit,
When the compressed image data that has been divided is received,
A notification means is provided for notifying the host computer that data transmission is prohibited, and for notifying the host computer of the completion of the decompression process when the decompression process of the divided compressed image data is completed. The image drawing device according to claim 1.
【請求項3】 前記圧縮イメージデータを記憶する共有
メモリを備え、 前記入力バッファ及び前記処理バッファは、前記共有メ
モリ上に確保された互いに異なるメモリ領域にあること
を特徴とする請求項1又は請求項2に記載のイメージ描
画装置。
3. A shared memory for storing the compressed image data, wherein the input buffer and the processing buffer are in different memory areas secured on the shared memory. Item 2. The image drawing device according to item 2.
【請求項4】 ホストコンピュータから分割転送された
圧縮イメージデータを順次受信して入力バッファに格納
し、その受信毎に前記入力バッファから処理バッファに
前記圧縮イメージデータを転送若しくは追加転送し、こ
の処理バッファに転送された圧縮イメージデータを伸長
する伸長処理を行うと共に、分割終了した圧縮イメージ
データを受信するまでは、この伸長処理と並列に次に続
く分割圧縮イメージデータの受信処理を実行し、分割終
了した圧縮イメージデータを受信したときには、データ
の送信処理を禁止する旨を前記ホストコンピュータに通
知し、すべての分割転送された圧縮イメージデータの伸
長処理終了後に、前記伸長処理が終了した旨を前記ホス
トコンピュータに通知することを特徴とするデータ伸長
方法。
4. The compressed image data divided and transferred from a host computer is sequentially received and stored in an input buffer, and the compressed image data is transferred or additionally transferred from the input buffer to a processing buffer each time the reception is performed, and this processing is performed. Performs decompression processing to decompress the compressed image data transferred to the buffer, and executes the reception processing of the next divided compressed image data in parallel with this decompression processing until the compressed image data that has been divided is received. When the compressed image data that has been completed is received, the host computer is notified that the data transmission process is prohibited, and after the decompression process of all the divided and transferred compressed image data is completed, the fact that the decompression process is completed is described above. A data decompression method characterized by notifying a host computer.
JP14746995A 1995-06-14 1995-06-14 Image drawing apparatus and data decompression method Expired - Fee Related JP3412342B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14746995A JP3412342B2 (en) 1995-06-14 1995-06-14 Image drawing apparatus and data decompression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14746995A JP3412342B2 (en) 1995-06-14 1995-06-14 Image drawing apparatus and data decompression method

Publications (2)

Publication Number Publication Date
JPH08337014A true JPH08337014A (en) 1996-12-24
JP3412342B2 JP3412342B2 (en) 2003-06-03

Family

ID=15431095

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14746995A Expired - Fee Related JP3412342B2 (en) 1995-06-14 1995-06-14 Image drawing apparatus and data decompression method

Country Status (1)

Country Link
JP (1) JP3412342B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008071054A (en) * 2006-09-13 2008-03-27 Ricoh Co Ltd Data transfer control method, data processor, and image processor
SG143051A1 (en) * 2000-06-30 2008-06-27 Silverbrook Res Pty Ltd A print engine for a pagewidth printhead incorporating micro- electromechanical nozzle arrangements
JP2013046968A (en) * 2011-08-29 2013-03-07 Brother Industries Ltd Printer, print processing program, and print processing method
JP2017058926A (en) * 2015-09-16 2017-03-23 富士ゼロックス株式会社 Information processing device and program
JP2017177725A (en) * 2016-03-31 2017-10-05 ブラザー工業株式会社 Printing apparatus
US9953800B2 (en) 2015-04-28 2018-04-24 Nuflare Technology, Inc. Multi-charged particle beam writing apparatus and multi-charged particle beam writing method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG143051A1 (en) * 2000-06-30 2008-06-27 Silverbrook Res Pty Ltd A print engine for a pagewidth printhead incorporating micro- electromechanical nozzle arrangements
JP2008071054A (en) * 2006-09-13 2008-03-27 Ricoh Co Ltd Data transfer control method, data processor, and image processor
JP2013046968A (en) * 2011-08-29 2013-03-07 Brother Industries Ltd Printer, print processing program, and print processing method
US9152358B2 (en) 2011-08-29 2015-10-06 Brother Kogyo Kabushiki Kaisha Printer, print processing program, and print processing method
US9953800B2 (en) 2015-04-28 2018-04-24 Nuflare Technology, Inc. Multi-charged particle beam writing apparatus and multi-charged particle beam writing method
JP2017058926A (en) * 2015-09-16 2017-03-23 富士ゼロックス株式会社 Information processing device and program
JP2017177725A (en) * 2016-03-31 2017-10-05 ブラザー工業株式会社 Printing apparatus

Also Published As

Publication number Publication date
JP3412342B2 (en) 2003-06-03

Similar Documents

Publication Publication Date Title
US20050278502A1 (en) Method and apparatus for chaining multiple independent hardware acceleration operations
JPH10124268A (en) Print controller
JP2001113759A (en) Image data output device
JP3412342B2 (en) Image drawing apparatus and data decompression method
US5999709A (en) Printer memory boost
CN111382088B (en) Semiconductor device and method for controlling data access
WO2022074858A1 (en) Memory control device and control method
JP5186432B2 (en) Image processing device
US5764865A (en) Page printer controller
JPH05204591A (en) Image plotting device
JP4446389B2 (en) Interface device for compression / decompression module
US6246795B1 (en) Image processing apparatus and method
JPH1074163A (en) Digital copying machine
JPH08328914A (en) Memory dump system
JPH10260793A (en) Printing controller
JP2001318772A (en) Interface device and peripheral device
JPH10305641A (en) Printing system and printing method
JP3146197B2 (en) Data transfer device and storage device
JP2005223663A (en) Printing control device
JPH0462080A (en) Printing device
JP2000276316A (en) Printing controller, method for expanding printing data and storage medium
JPH1153131A (en) Printing device
JPH0628125A (en) Method and device for image formation
JP2003157157A (en) Method for dealing with shortage of memory for expanding compressed data
JP2004274270A (en) Data processor

Legal Events

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