JPH0654202A - Image compressing/expanding device - Google Patents

Image compressing/expanding device

Info

Publication number
JPH0654202A
JPH0654202A JP4206587A JP20658792A JPH0654202A JP H0654202 A JPH0654202 A JP H0654202A JP 4206587 A JP4206587 A JP 4206587A JP 20658792 A JP20658792 A JP 20658792A JP H0654202 A JPH0654202 A JP H0654202A
Authority
JP
Japan
Prior art keywords
image
unit
line
buffer
image compression
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.)
Pending
Application number
JP4206587A
Other languages
Japanese (ja)
Inventor
Yoshinobu Mita
良信 三田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP4206587A priority Critical patent/JPH0654202A/en
Publication of JPH0654202A publication Critical patent/JPH0654202A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide an image compressing/expanding device which secures the connection to a scanner or a printer in real time without using a real memory. CONSTITUTION:An error detector means 16 reduces the delayed processing speed of an image compressing/expanding means 3 and also discontinues the reading or writing operation of a FIFO memory 13 right before the overflow or underflow state of the memory 13 is detected to start the error processing in order to prevent the overflow and underflow states. The error processing invalidates the line under processing and the normal processing is carried out again after the error processing at the termination of a single line.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、スキャナ/プリンタ等
の入出力装置に接続され、画像の圧縮伸長処理を行う画
像圧縮伸長装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression / expansion device which is connected to an input / output device such as a scanner / printer and performs an image compression / expansion process.

【0002】[0002]

【従来の技術】従来では、画像の入出力処理を行うに際
して、スキャナやプリンタと画像を扱う装置との間に
は、通常実メモリが用意されている。そして、画像入出
力はこの実メモリを経由して行われている。すなわち、
画像を扱う装置はこの実メモリを事実上の入出力装置と
みなして動作し、画像の圧縮や伸長もこの実メモリに対
して行われていた。
2. Description of the Related Art Conventionally, an actual memory is usually prepared between a scanner or a printer and a device that handles an image when inputting / outputting an image. Image input / output is performed via this real memory. That is,
A device that handles images operates by regarding this real memory as a virtual input / output device, and compression and decompression of images are also performed on this real memory.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、大容量
の画像を扱うプリンタ・スキャナとのインタフェースに
は、実メモリのコストが高すぎて現実的でなかった。
However, an interface with a printer / scanner that handles a large-capacity image is not realistic because the actual memory cost is too high.

【0004】また、高速度で動作するスキャナ・プリン
タに同期させて画像圧縮伸長部を開発設計する有効な手
段はなかった。特に画像圧縮伸長部にADCTによるア
ルゴリズムを使用するとDCT部分は同期設計可能であ
るが、ハフマンコーダやハフマンデコーダはプリンタや
スキャナスピードに同期させることは難しく、処理速度
が一定しないという欠点がある。
Further, there has been no effective means for developing and designing an image compression / decompression unit in synchronization with a scanner / printer operating at a high speed. In particular, when an ADCT algorithm is used in the image compression / decompression unit, the DCT portion can be designed synchronously, but it is difficult for the Huffman coder and Huffman decoder to synchronize with the printer or scanner speed, and the processing speed is not constant.

【0005】従って、画像の圧縮率が高いときはハフマ
ンコーダ・デコーダの負担が軽く問題ない場合でも画質
や圧縮パラメータ等が変わり、圧縮率が低くなると圧縮
データ量が増え、それを直接扱うハフマンコーダ・デコ
ーダの負担が増えて要求される動作スピードが満たされ
ないことが生じ、しかも一般のスキャナ・プリンタは途
中で停止することができないために画像が乱れてエラー
を起こしてしまうという欠点がみられた。
Therefore, when the image compression rate is high, the image quality and compression parameters are changed even if the load on the Huffman coder / decoder is light and there is no problem. When the compression rate is low, the amount of compressed data increases, and the Huffman coder that directly handles it.・ Depending on the increased load on the decoder, the required operating speed may not be met, and since ordinary scanners / printers cannot be stopped midway, the image is disturbed and an error occurs. .

【0006】よって本発明の目的は上述の点に鑑み、実
メモリ使用することなく、リアルタイムでスキャナ/プ
リンタとの接続を可能とした画像圧縮伸長装置を提供す
ることにある。
Therefore, in view of the above points, an object of the present invention is to provide an image compression / expansion device capable of connecting to a scanner / printer in real time without using an actual memory.

【0007】[0007]

【課題を解決するための手段】(1)かかる目的を達成
するために、本発明では、画像入力手段もしくは画像記
録手段と、画像圧縮伸長手段との間に設けられたファー
ストイン・ファーストアウト型メモリと、前記メモリの
オーバフローあるいはアンダーフローを生じる直前に該
メモリへのアクセスを中止するエラー検知手段と、前記
エラー検知手段の出力に応答して処理中のライン途中か
ら無効にすると共に、エラー解除後に当該1ラインの終
端を区切りとして通常の処理に復帰させる制御手段とを
具備したものである。
(1) In order to achieve such an object, in the present invention, a first-in / first-out type provided between an image input means or an image recording means and an image compression / expansion means. A memory; an error detection means for stopping access to the memory immediately before an overflow or an underflow of the memory; and an invalidation and an error cancellation in response to the output of the error detection means from the middle of the line being processed. After that, the control means is provided for returning to normal processing with the end of the one line as a delimiter.

【0008】より詳細に述べると、画像圧縮伸長手段,
画像記録手段,画像入力手段を備え、画像圧縮伸長手段
と画像記録手段または画像入力手段との間にFIFOメ
モリを設け、画像圧縮伸長手段の処理スピードが遅れた
ときの処理速度の緩衝をすると共に、該FIFOメモリ
のオーバーフロー,アンダーフローを検知してその直前
にFIFOの読み出しまたは書き込みを中止してエラー
処理を開始させオーバーフローまたはアンダーフローを
防ぐエラー検知手段を有し、エラー処理は処理中のライ
ンを途中から無効にし、エラー処理後には当該1ライン
の終端を区切りとして通常の処理に戻るよう構成した画
像圧縮伸長装置である。
More specifically, the image compression / decompression means,
An image recording unit and an image input unit are provided, and a FIFO memory is provided between the image compression / decompression unit and the image recording unit or the image input unit to buffer the processing speed when the processing speed of the image compression / decompression unit is delayed. , An error detection unit for detecting overflow or underflow of the FIFO memory and stopping reading or writing of the FIFO immediately before that to start error processing to prevent overflow or underflow, and the error processing is a line being processed. The image compression / decompression device is configured so as to be invalidated in the middle, and after the error processing, returns to the normal processing with the end of the one line as a delimiter.

【0009】(2)また、その他の本発明では、画像入
力手段もしくは画像記録手段と、画像圧縮伸長手段との
間に設けられた1ライン分以上のバッファ手段と、前記
画像圧縮伸長手段における処理スピードが遅れた時に、
処理画像の1ライン単位の1倍または複数倍単位で、画
像の繰り返しまたは飛び越し操作を行う制御手段とを具
備したものである。
(2) Further, in another aspect of the present invention, a buffer means for one line or more provided between the image input means or the image recording means and the image compression / expansion means, and the processing in the image compression / expansion means. When speed slows down,
The present invention is provided with a control means for performing an image repeating operation or an interlacing operation in a unit of a multiple of one line of a processed image.

【0010】[0010]

【作用】(1)本発明によれば、画像圧縮伸長手段とス
キャナやプリンタとの間にFIFOメモリを設け、画像
圧縮伸長手段の処理速度が変動しても対応できる構成に
し、FIFOメモリのアクセスで書き込みより読み出し
が多くなりエラーを起こす寸前に読み出しを制御し、処
理中の水平1ラインの残りを無効にし、エラー解除後に
新たな水平ラインからの処理をはじめることにより、画
像全体を損うことなく画像の入出力が可能となる。この
ことにより、実メモリを使用することなく、リアルタイ
ムでスキャナ/プリンタとの接続が可能となる。
(1) According to the present invention, a FIFO memory is provided between the image compression / expansion means and the scanner or printer so that the processing can be performed even if the processing speed of the image compression / expansion means varies, and the FIFO memory is accessed. By reading more than writing and controlling reading just before an error occurs, invalidating the rest of the horizontal 1 line being processed, and starting processing from a new horizontal line after releasing the error, the entire image is damaged. It becomes possible to input and output images without the need. This makes it possible to connect to the scanner / printer in real time without using an actual memory.

【0011】(2)その他の本発明によれば、画像圧縮
伸長手段と画像入力・記録手段との間にバッファ手段を
設け、画像圧縮伸長手段が要求スピードを満足できない
場合には、前ラインのデータを繰り返し出力したり、次
ラインのデータを飛ばして圧縮することにより、極力画
像全体を乱さずに入出力を行うことが可能となる。
(2) According to another aspect of the present invention, a buffer means is provided between the image compression / expansion means and the image input / recording means, and when the image compression / expansion means cannot satisfy the required speed, By repeatedly outputting the data or skipping the data of the next line and compressing the data, input / output can be performed without disturbing the entire image as much as possible.

【0012】[0012]

【実施例】以下、図面を参照して本発明の各実施例を詳
細に説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

【0013】実施例1 図1は、本発明の一実施例を示す。本実施例では、画像
圧縮伸長部3とプリンタ19またはスキャナ20との間
に処理速度緩衝用のFIFO(ファーストイン・ファー
ストアウト)メモリ13を有し、このFIFOメモリ1
3を周辺部の回路により制御することで画像圧縮伸長部
3の速度遅延によるエラーの影響を最小にするものであ
る。
Embodiment 1 FIG. 1 shows an embodiment of the present invention. In this embodiment, a FIFO (first-in / first-out) memory 13 for buffering the processing speed is provided between the image compression / decompression unit 3 and the printer 19 or the scanner 20, and this FIFO memory 1 is used.
By controlling the circuit 3 in the peripheral portion, the influence of an error due to the speed delay of the image compression / decompression unit 3 is minimized.

【0014】まず第1に、画像圧縮伸長部3の詳細につ
いて説明する。
First, the details of the image compression / decompression unit 3 will be described.

【0015】図2は、画像圧縮伸長部3の一構成例であ
る。本図において、入力された圧縮データはハフマン復
号部26で復号され、復号化されたデータ列が逆量子化
部25で逆量子化された後に、逆DCT部24でDCT
変換の逆変換が行われて生データが得られる。
FIG. 2 shows an example of the configuration of the image compression / expansion unit 3. In the figure, the input compressed data is decoded by the Huffman decoding unit 26, the decoded data string is inversely quantized by the inverse quantization unit 25, and then the inverse DCT unit 24 performs DCT.
Inverse transformation of the transformation is performed to obtain raw data.

【0016】また圧縮時には、生データはDCT部21
で周波数空間に変換された後に、量子化部22において
量子化が行われ、そのデータ列がハフマン符号部23で
符号化されて圧縮が行われる。
At the time of compression, the raw data is the DCT section 21.
After being converted into the frequency space by, the quantization is performed in the quantization unit 22, and the data string is encoded in the Huffman encoding unit 23 and compressed.

【0017】従って、データ列のデータの値によりハフ
マン符号部23,ハフマン復号部26の演算速度は外部
と非同期で一定せず、DCT部21,量子化部22,逆
DCT部24,逆量子化部25から成るパイプライン処
理部は、ハフマン符号部23,ハフマン復号部26から
成る非同期演算部が遅れると停止信号を発生し停止す
る。
Therefore, the operation speeds of the Huffman coding unit 23 and the Huffman decoding unit 26 are not fixed asynchronously with the outside depending on the value of the data of the data string, and the DCT unit 21, the quantization unit 22, the inverse DCT unit 24, and the inverse quantization. The pipeline processing unit including the unit 25 generates a stop signal and stops when the asynchronous operation unit including the Huffman encoding unit 23 and the Huffman decoding unit 26 is delayed.

【0018】非同期演算部がパイプライン処理部の速度
に追い付かなくなるのは、圧縮データ量が多く圧縮効率
の悪いデータを扱う場合で、文字などの高周波成分が多
い画像や量子化の際の量子化パラメータが低い値の時
に、ハフマン符号化しにくいデータ列となる。
The reason why the asynchronous operation unit cannot keep up with the speed of the pipeline processing unit is when handling data with a large amount of compressed data and poor compression efficiency, such as an image with many high-frequency components such as characters or quantization during quantization. When the parameter has a low value, the data string is difficult to be Huffman encoded.

【0019】次に、以上のような画像圧縮伸長部3を含
む本実施例全体の動作について説明する。
Next, the operation of the entire embodiment including the image compression / expansion unit 3 as described above will be described.

【0020】画像インタフェース部1は、外部の装置や
回路に対し生画像データを送受したり、圧縮画像を送受
してバッァメモリ2にインタフェースする機能がある。
そして、画像インタフェース部より受け取った画像や送
出する画像は、画像圧縮伸長部3により圧縮されてバッ
ファメモリ2に蓄えられたりバッファメモリ2より画像
圧縮伸長部で伸長される。
The image interface unit 1 has a function of transmitting / receiving raw image data to / from an external device or circuit and transmitting / receiving a compressed image to interface with the buffer memory 2.
Then, the image received from the image interface unit or the image to be transmitted is compressed by the image compression / expansion unit 3 and stored in the buffer memory 2, or expanded from the buffer memory 2 by the image compression / expansion unit.

【0021】この際に、画像インタフェース部1は接続
先がコンピュータのバスやネットワーク等であり、画像
圧縮伸長部3は、その送受スピードに十分間に合う。
At this time, the image interface section 1 is connected to a bus or network of a computer, and the image compression / expansion section 3 is sufficiently in time for its transmission / reception speed.

【0022】以下に、画像をプリンタ19に出力すると
きの動作について説明する。
The operation of outputting an image to the printer 19 will be described below.

【0023】バッファメモリ2から順次読み出される画
像圧縮データは、画像圧縮伸長部3において伸長され、
バッファ6を介してFIFOメモリ13に入力される。
FIFOメモリ13には、画像圧縮伸長部3の伸長デー
タに対応して書き込み信号WCLKが与えられる(ある
程度FIFOメモリが満たされると、プリンタが始動す
る。)そして、プリンタの動作クロックに同期して読み
出し信号RCLKが与えられ、バッファ14を介して画
像の読み出しが行われる。
The image compression data sequentially read from the buffer memory 2 is decompressed by the image compression / decompression unit 3,
It is input to the FIFO memory 13 via the buffer 6.
A write signal WCLK is given to the FIFO memory 13 corresponding to the expanded data of the image compression / expansion unit 3 (the printer is started when the FIFO memory is filled to some extent), and is read in synchronization with the operation clock of the printer. The signal RCLK is given and the image is read out via the buffer 14.

【0024】読み出された画像データは、画像処理部1
7で、プリンタに出力するためのガンマ補正や色補正等
の処理をかけられて、プリンタ19に出力される。
The read image data is processed by the image processing unit 1.
At 7, the image data is output to the printer 19 after being subjected to gamma correction, color correction, etc. for output to the printer.

【0025】ところで、図2に示す画像圧縮伸長部の非
同期演算部の速度が一時的に遅くなると、パイプライン
部が停止することが生じる。その場合は、画像圧縮伸長
部3から伸長データの送出が一時的に停止し、FIFO
メモリ13への書き込みが止まる。しかしながら、FI
FOメモリの容量が空になる直前まで、画像の読み出し
データは有効で、画像圧縮伸長部3が再びデータ出力す
ればFIFOメモリ13は再び満たされる。
By the way, when the speed of the asynchronous operation unit of the image compression / decompression unit shown in FIG. 2 is temporarily reduced, the pipeline unit may stop. In that case, the transmission of the decompressed data from the image compression / decompression unit 3 is temporarily stopped, and the FIFO
Writing to the memory 13 stops. However, FI
The read data of the image is valid until just before the capacity of the FO memory becomes empty, and when the image compression / expansion unit 3 outputs the data again, the FIFO memory 13 is filled again.

【0026】ここでは、FIFOメモリ13が満たされ
てオーバーフローする前にFIFO13からの半分以上
満たされることを示す信号H/FをFIFOメモリコン
トロール部15が検知してスタート/ストップを指示す
るS/S回路4により、画像圧縮伸長部3の伸長を停止
させる。従って、FIFOメモリ13が半分以下になる
と再び画像圧縮伸長部は動作し出す。
Here, the FIFO memory control unit 15 detects a signal H / F indicating that the FIFO memory 13 is more than half full before the FIFO memory 13 is filled and overflows, and the S / S for instructing start / stop. The circuit 4 stops the expansion of the image compression / expansion unit 3. Therefore, when the FIFO memory 13 becomes half or less, the image compression / decompression unit starts operating again.

【0027】また画像圧縮伸長部からのデータ送出に対
応してゲート回路5にライト(書き込み)がR/W信号
で送出され、ゲート回路を経由してさらにマルチプレク
サ11を経由してFIFOメモリ13に書き込み信号W
CLKが与えられている。
Further, in response to the data transmission from the image compression / expansion unit, a write (write) is transmitted to the gate circuit 5 as an R / W signal, and is transmitted to the FIFO memory 13 via the gate circuit and further via the multiplexer 11. Write signal W
CLK is given.

【0028】また、読み出し信号RCLKの生成は幅カ
ウンタ8で画像の有効幅の信号生成が許されてリードパ
ルスシェネレータRPG10により生成され、MUX1
2を介してFIFOメモリ13に与えられる。
The generation of the read signal RCLK is permitted by the width counter 8 to generate a signal of the effective width of the image, and is generated by the read pulse generator RPG10.
2 to the FIFO memory 13.

【0029】カウンタコントロール7で画像の垂直長さ
が垂直同期信号Vsyncをもとに水平同期信号Hsyncをカ
ウントして得られ、画像の有効な垂直長さの間だけ幅カ
ウンタ8を有効にする。
The vertical length of the image is obtained by counting the horizontal synchronizing signal H sync based on the vertical synchronizing signal V sync by the counter control 7, and the width counter 8 is enabled only during the effective vertical length of the image. To do.

【0030】ところでFIFOメモリ13の読み出し数
が書き込み数を上回るとFIFOメモリ容量が空にな
り、空か満タンかを示すf/e信号をエラー検知回路1
6に発する。エラー検知回路16は、エラーを検知する
とゲート14を閉じて出力値をクリアして、そのライン
全てを無効にする。また幅カウンタに対しデイセーブル
信号を出し、RPG10のクロック発生を抑える。
By the way, when the number of readings of the FIFO memory 13 exceeds the number of writings, the FIFO memory capacity becomes empty, and the error detection circuit 1 outputs the f / e signal indicating whether it is empty or full.
Depart at 6. When the error detection circuit 16 detects an error, it closes the gate 14 to clear the output value and invalidates all the lines. Further, a disable signal is issued to the width counter to suppress the clock generation of the RPG 10.

【0031】その後、FIFOメモリ13に与えられる
WCLK毎にf/eがクリアされ、エラー検知回路16
により幅カウンタ8のカウントとRPG10のクロック
発生が行われるが、幅カウンタ8による画像の水平有効
長さのカウントが終了した直後、またはその次の水平同
期信号Hsyncの発生まで、ゲート14のクリアは解除さ
れない。従って、エラーを起こしたラインが全て処理し
終るまでプリンタは1ライン単位の区切りまで画像がク
リアされた状態になるが、その後1ラインの区切りで画
像が回復するために画像全てを損うことはない。
Thereafter, f / e is cleared every WCLK given to the FIFO memory 13, and the error detection circuit 16
Causes the width counter 8 to count and the RPG 10 to generate a clock, but the gate 14 is cleared immediately after the width counter 8 counts the horizontal effective length of the image or until the next horizontal synchronizing signal H sync is generated. Is not released. Therefore, the printer keeps clearing the image up to the line-by-line division until all the lines that caused an error have been processed. However, the image is recovered at the line-by-line division, and the entire image is damaged. Absent.

【0032】幅カウンタ8が1ラインを終了し、水平同
期信号をトリガとしたゲート14の開放までにFIFO
メモリ13は満たされ、通常処理が回復する。
By the time the width counter 8 finishes one line and the gate 14 is opened using the horizontal synchronizing signal as a trigger, the FIFO
The memory 13 is full and normal processing is restored.

【0033】次に、スキャナ20より画像を読み込み、
画像圧縮する際の動作とエラー処理について説明する。
各部の基本的な動作については、画像伸長時の動作に準
ずる。
Next, the image is read by the scanner 20,
The operation and error processing when compressing an image will be described.
The basic operation of each part is similar to the operation at the time of image expansion.

【0034】まずスキャナ20において読み取られた画
像は、画像処理部18においてガンマ補正やスキャナの
色分解フィルターの特性補正処理(場合によっては、輝
度系から濃度系への対数変換等)が施され、バッファ1
4を介してFIFOメモリ13に書き込まれる。
First, the image read by the scanner 20 is subjected to gamma correction and characteristic correction processing of the color separation filter of the scanner (in some cases, logarithmic conversion from the brightness system to the density system) in the image processing unit 18, Buffer 1
4 to the FIFO memory 13 via

【0035】FIFOメモリ13では、画像が容量の半
分を超えるとH/F信号によりFIFOコントロール部
15に指令が行き、スタート/ストップを制御するS/
S回路4により画像伸長部を動作させて、バッファ6を
経由してFIFOメモリ13より画像データを読み出
す。そして、画像圧縮伸長部3の画像読み出しデータが
圧縮されて、画像インタフェース部1またはバッファメ
モリ2に送られる。
In the FIFO memory 13, when the image exceeds half the capacity, a command is sent to the FIFO control section 15 by the H / F signal, and S / which controls start / stop.
The S circuit 4 operates the image decompression unit to read the image data from the FIFO memory 13 via the buffer 6. Then, the image read data of the image compression / expansion unit 3 is compressed and sent to the image interface unit 1 or the buffer memory 2.

【0036】このように、画像圧縮伸長部3は、FIF
Oメモリコントロール部15より制御されてFIFOメ
モリ容量の半分以上で動作するようになっており、画像
の終端部においてのみ、FIFOメモリ容量の全てを読
み出して動作することが可能である。
As described above, the image compression / decompression unit 3 uses the FIF
It is controlled by the O memory control unit 15 to operate with a half or more of the FIFO memory capacity, and it is possible to read and operate the entire FIFO memory capacity only at the end portion of the image.

【0037】FIFOメモリの読み出し・書き込みをコ
ントロールするために、画像圧縮伸長部3からの読み出
し信号R/Wは、ゲート回路5を介し、マルチプレクサ
MUX12を介してFIFOメモリ13に読み出しクロ
ックRCLKが与えられる。従って、画像圧縮伸長部3
の停止状態では、ゲート回路5は閉じられる。
In order to control the reading / writing of the FIFO memory, the read signal R / W from the image compression / expansion unit 3 is given a read clock RCLK to the FIFO memory 13 via the gate circuit 5 and the multiplexer MUX 12. . Therefore, the image compression / decompression unit 3
In the stopped state, the gate circuit 5 is closed.

【0038】FIFOメモリ13の書き込みについて
は、書き込みパルスを生成するライトパルスジェネレー
タ9により、マルチプレクサ11を介してWCLKが与
えられる。これも、カウンタコントロール7により垂直
の画像有効と幅カウンタ8による水平の画像有効の時の
みWPG9がパルス生成が許可される。
For writing to the FIFO memory 13, WCLK is given through the multiplexer 11 by the write pulse generator 9 which generates a write pulse. Also in this case, the pulse generation of the WPG 9 is permitted only when the vertical image is valid by the counter control 7 and the horizontal image is valid by the width counter 8.

【0039】ところで、画像圧縮伸長部3が停止する
と、スキャナ20からFIFOメモリ13への書き込み
数が増え、FIFOメモリ13がいっぱいになり、エラ
ーを発生する場合が生じる。このとき、エラー検知回路
16はフル信号f/sを受けてFIFOメモリ13への
書き込みを停止させるために幅カウンタ8に指示を出
し、同時にゲート14を閉じて入力データをクリアす
る。
When the image compression / decompression unit 3 is stopped, the number of writes from the scanner 20 to the FIFO memory 13 increases, the FIFO memory 13 becomes full, and an error may occur. At this time, the error detection circuit 16 receives the full signal f / s and gives an instruction to the width counter 8 to stop the writing to the FIFO memory 13, and at the same time closes the gate 14 to clear the input data.

【0040】従って、画像圧縮伸長部3が読み出しを開
始すると、FIFOメモリフルを示すf/e信号も解除
され、幅カウンタも動作してFIFOメモリ13への書
き込みが回復するが、そのデータはゲート14が閉じて
いるのでクリアされた値である。
Therefore, when the image compression / decompression unit 3 starts reading, the f / e signal indicating the FIFO memory full is also released, the width counter also operates, and the writing to the FIFO memory 13 is restored, but the data is gated. Since 14 is closed, it is a cleared value.

【0041】バッファ14に入力されるスキャナのデー
タは、画像圧縮伸長部3の停止によるFIFOメモリ1
3のオーバーフローを防ぐためにとりこぼしているの
で、そのラインは無効として扱う。そして、幅カウンタ
8がそのラインを全て処理し終ると、エラー検知回路1
6にラインの終了を告げ、その後1番目、またはn番目
の(nは自然数)の水平同期信号Hsyncにより、ゲート
14を開いてエラー処理を終了する。このHsyncの発生
までの期間に画像圧縮伸長部3はFIFOメモリ13の
読み出しを進めると共に、途中で挿入されたクリアされ
たデータ信号のために圧縮効率が向上して図2に示す画
像圧縮伸長部3の非同期演算部の負担が軽くなり、FI
FOメモリ13を十分読み出し切ってエラー状態を脱す
る。
The scanner data input to the buffer 14 is stored in the FIFO memory 1 when the image compression / decompression unit 3 is stopped.
The line is treated as invalid because it has been dropped to prevent overflow of 3. When the width counter 8 finishes processing all the lines, the error detection circuit 1
6 is notified of the end of the line, and then the first or nth (n is a natural number) horizontal synchronizing signal H sync opens the gate 14 to end the error processing. The image compression / expansion unit 3 advances the reading of the FIFO memory 13 in the period until the occurrence of this H sync , and the compression efficiency is improved due to the cleared data signal inserted in the middle, and the image compression / expansion unit shown in FIG. The load on the asynchronous calculation unit of the unit 3 is reduced, and FI
The FO memory 13 is read sufficiently to get out of the error state.

【0042】実施例2 第1の実施例において、ゲート14をエラー時に閉じ
て、エラー回復後に開くタイミングは種々に設定するこ
とが可能であり、その一例を次に示す。
Embodiment 2 In the first embodiment, the timing of closing the gate 14 at the time of error and opening it after error recovery can be set variously. One example is shown below.

【0043】画像圧縮伸長部3により伸長しプリンタ1
9に画像出力する途中で、FIFOメモリ13が空(エ
ンプティ)になった時にエラー検知回路16はゲート1
4を閉じエラー処理するが、ゲート14を再び開くタイ
ミングに幅カウンタ8によるカウント終了の他にFIF
Oメモリ13によるH/F信号でFIFOメモリ13が
半分満たされるという条件を満たした後の次のHsync
バッファ(ゲート)14を開放してもよい。このことに
より、次のラインでエラーを再び発生する確率が低くな
る。
The printer 1 is expanded by the image compression / expansion unit 3.
When the FIFO memory 13 becomes empty during the image output to 9, the error detection circuit 16 operates the gate 1
4 is closed and error processing is performed, but at the timing of reopening the gate 14, in addition to the end of counting by the width counter 8, FIF
The buffer (gate) 14 may be opened at the next H sync after the condition that the FIFO memory 13 is half filled with the H / F signal from the O memory 13 is satisfied. This reduces the probability that an error will occur again on the next line.

【0044】また、FIFOメモリ13が半分満たされ
ている状態では、画像圧縮伸長部3が停止していること
は第1の実施例と同様である。
The image compression / expansion unit 3 is stopped when the FIFO memory 13 is half full, as in the first embodiment.

【0045】画像圧縮伸長部3によりスキャナ20の画
像データを圧縮する途中でFIFO13がいっぱい(フ
ル)になったときに、エラー検知回路16はゲート14
を閉じてエラー処理を第1の実施例同様に処理するが、
ゲート14を再び開くタイミングは、幅カウンタ8の終
了の他に画像圧縮伸長部3が読み出しを続け、FIFO
13が残り容量を半分にまで減らして動作を停止しH/
F信号で容量が半分を確認したエラー検知回路16が、
次のHsyncでゲート14を開いて通常の圧縮処理を再開
する。
When the FIFO 13 becomes full while the image compression / expansion unit 3 compresses the image data of the scanner 20, the error detection circuit 16 causes the gate 14 to operate.
Is closed and error processing is performed in the same manner as in the first embodiment.
The timing at which the gate 14 is opened again is that the image compression / decompression unit 3 continues to read data in addition to the end of the width counter 8 and the FIFO
13 reduces the remaining capacity to half and stops the operation and H /
The error detection circuit 16 which confirmed the capacity is half by F signal,
At the next H sync , the gate 14 is opened to resume normal compression processing.

【0046】従って、FIFOメモリ13が再びフルに
なりエラー発生する確率が低くなり、画質の劣化を極小
にすることが可能である。
Therefore, the FIFO memory 13 becomes full again and the probability of error occurrence is reduced, and the deterioration of image quality can be minimized.

【0047】ところで、本実施のエラー検知回路16や
FIFOメモリコントロール部15の制御信号に、FI
FO容量の半分を示すH/F信号やFIFO容量の空や
満パイを示すf/e信号を用いたが、その他に、FIF
Oメモリ容量の3/4,1/4や7/8,1/8等を示
す信号を用いて制御を行っても良いことは勿論である。
By the way, the FI is supplied to the control signals of the error detection circuit 16 and the FIFO memory control section 15 of this embodiment.
The H / F signal indicating half of the FO capacity and the f / e signal indicating empty or full pie of the FIFO capacity were used.
It goes without saying that the control may be performed using signals indicating 3/4, 1/4, 7/8, 1/8, etc. of the O memory capacity.

【0048】また、FIFOメモリ容量の満パイより1
少ない容量を示す信号や、FIFOメモリの空に対して
1満たされている信号等を使って制御しても同様に構わ
ない。
Also, from the full capacity of the FIFO memory, 1
The same control may be performed using a signal indicating a small capacity, a signal that fills one in the empty space of the FIFO memory, or the like.

【0049】実施例3 図3は、本発明の第3の実施例を示すブロック図であ
る。本図において、画像入出力部51は、他の装置や回
路に対して圧縮画像の入出力を行ったり、受け取った生
画像データを圧縮したり、圧縮画像データを伸長してデ
ータを他の装置や回路に与える部分である。
Third Embodiment FIG. 3 is a block diagram showing a third embodiment of the present invention. In the figure, an image input / output unit 51 inputs / outputs a compressed image to / from another device or circuit, compresses received raw image data, decompresses the compressed image data, and transfers the data to another device. It is a part to give to the circuit.

【0050】まず、第1に圧縮画像データを画像記録装
置57に与える時の動作について説明する。
First, the operation when the compressed image data is given to the image recording device 57 will be described.

【0051】画像入出力部51より出力される画像圧縮
データは、まず圧縮データバッファ52に蓄えられる。
その後、圧縮データバッファ52より順次読み出された
データは、画像圧縮伸長部53で伸長されて生データが
生成される。
The compressed image data output from the image input / output unit 51 is first stored in the compressed data buffer 52.
Thereafter, the data sequentially read from the compressed data buffer 52 is decompressed by the image compression / decompression unit 53 to generate raw data.

【0052】画像圧縮伸長部53は、先に説明した図2
のように構成されている。すなわち、入力された圧縮デ
ータはハフマン復号部26で復号され、復号化されたデ
ータ列が逆量子化部25で逆量子化された後に、逆DC
T部24でDCT変換の逆変換が行われて生データが得
られる。
The image compression / decompression unit 53 is the same as that shown in FIG.
It is configured like. That is, the input compressed data is decoded by the Huffman decoding unit 26, the decoded data string is dequantized by the dequantization unit 25, and then the inverse DC
Inverse conversion of DCT conversion is performed in the T section 24 to obtain raw data.

【0053】また圧縮時には、生データはDCT部21
で周波数空間に変換された後に、量子化部22において
量子化が行われ、そのデータ列がハフマン符号部23で
符号化されて圧縮が行われる。
At the time of compression, the raw data is the DCT section 21.
After being converted into the frequency space by, the quantization is performed in the quantization unit 22, and the data string is encoded in the Huffman encoding unit 23 and compressed.

【0054】従って、データ列のデータの値によりハフ
マン符号部23,ハフマン復号部26の演算速度は外部
と非同期で一定せず、DCT部21,量子化部22,逆
DCT部24,逆量子化部25から成るパイプライン処
理部は、ハフマン符号部23,ハフマン復号部26から
成る非同期演算部が遅れると停止信号を発生し停止す
る。
Therefore, the calculation speeds of the Huffman coding unit 23 and the Huffman decoding unit 26 are not fixed asynchronously with the outside depending on the data value of the data string, and the DCT unit 21, the quantizing unit 22, the inverse DCT unit 24, and the inverse quantizing unit. The pipeline processing unit including the unit 25 generates a stop signal and stops when the asynchronous operation unit including the Huffman encoding unit 23 and the Huffman decoding unit 26 is delayed.

【0055】非同期演算部がパイプライン処理部の速度
に追い付かなくなるのは、圧縮データ量が多く圧縮効率
の悪いデータを扱う場合で、文字などの高周波成分が多
い画像や量子化の際の量子化パラメータが低い値の時
に、ハフマン符号化しにくいデータ列となる。
The reason why the asynchronous operation unit cannot keep up with the speed of the pipeline processing unit is when dealing with data having a large amount of compressed data and poor compression efficiency, such as an image having many high-frequency components such as characters and quantization at the time of quantization. When the parameter has a low value, the data string is difficult to be Huffman encoded.

【0056】以上のような内部構成である画像圧縮伸長
部53は、伸長した生データをラインメモリ54,55
に対して出力される。ラインメモリ54,55は通常一
方が書き込み用で、一方が読み出し用となっており、画
像主走査1ライン毎に切り換わる。
The image compression / decompression unit 53 having the above-mentioned internal structure stores the decompressed raw data in the line memories 54 and 55.
Is output to. Normally, one of the line memories 54 and 55 is for writing and the other is for reading, and the line memories are switched for each line of image main scanning.

【0057】ラインメモリ54,55のいずれからセレ
クタ/分配器56が読み出し用のデータを選択して画像
記録装置57に与えられる。通常動作では、Wアドレス
カウンタ111は書き込み用アドレスをカウントし、R
アドレスカウンタ112は読み出し用アドレスをカウン
トする。それぞれの出力はセレクタ113,114に供
給されて、セレクタ113,114は選択した方のアド
レスをラインメモリ54,55に与える。セレクタ11
3,114は切換部115およびNOT回路116によ
り、互いに異なって読み出しアドレスと書き込みアドレ
スのどちらかを選択する。全く同じ制御でラインメモリ
54,55も読み出し書き込み動作をする。
The selector / distributor 56 selects the read data from either the line memory 54 or 55 and supplies it to the image recording device 57. In the normal operation, the W address counter 111 counts the write address and R
The address counter 112 counts the read address. The respective outputs are supplied to the selectors 113 and 114, and the selectors 113 and 114 give the selected addresses to the line memories 54 and 55. Selector 11
The switching units 115 and the NOT circuit 116 differently select either the read address or the write address 3114. The line memories 54 and 55 also perform read / write operations under exactly the same control.

【0058】従って、切換部115は通常動作では1ラ
イン毎に出力が切りかわる。そして、前述した非同期演
算部が速度不十分に間に合わない場合は切り換えを行わ
ずに、同じ値を出力し続けることで、ラインメモリ5
4,55の読み出し,書き込みが入れ変わらずに同じラ
インの値を繰り返し出力する。
Therefore, in the normal operation, the switching section 115 switches the output for each line. Then, if the asynchronous operation unit described above cannot keep up with the speed because of insufficient speed, the line memory 5 is continuously output without switching.
The values of the same line are repeatedly output without changing the reading and writing of 4,55.

【0059】それについて、さらに詳細に説明すると、
画像圧縮伸長部53からは非同期演算部が速度的に間に
合わない場合に、Wアドレスカウンタ111を停止させ
る信号を発生して、生画像データの(入)出力が一時止
まる。このようにして、図示しない1ラインの同期信号
が発生した時点で、Wアドレスカウンタ111の出力が
レジスタ58にセットされている画像の長さに達したか
否かを比較器59で判定し、達していない場合はフラグ
レジスタ110にエラーをセットし、切換部115で切
換えを発生させないようにするので同じラインが繰り返
し出力される。
More detailed description will be given below.
A signal for stopping the W address counter 111 is generated from the image compression / decompression unit 53 when the asynchronous operation unit cannot meet the speed, and the (input) output of the raw image data is temporarily stopped. In this way, the comparator 59 determines whether or not the output of the W address counter 111 has reached the length of the image set in the register 58 at the time when a 1-line synchronization signal (not shown) is generated. If it has not reached, an error is set in the flag register 110 so that the switching unit 115 does not generate switching, so that the same line is repeatedly output.

【0060】画像圧縮伸長部53では伸長を途中で飛ば
して先にすすめることはできないのでWアドレスカウン
タ111により、画像の幅の分だけ伸長が行われ、その
間は、たとえ何ライン分でも切換えは行われない。その
終了時点でフラグレジスタ110は切換部115に切換
え許可信号を出す。ただし、切換え部115は水平同期
信号に同期して切換えを行うために、次の水平同期信号
までは切換わらない。
Since the image compression / decompression unit 53 cannot skip the decompression in the middle and recommend it first, the W address counter 111 decompresses the image by the width of the image, and during this period, switching is performed even for any number of lines. I don't know. At the end of that time, the flag register 110 outputs a switching permission signal to the switching unit 115. However, since the switching unit 115 performs switching in synchronization with the horizontal synchronizing signal, it does not switch until the next horizontal synchronizing signal.

【0061】次に、画像入力装置117からの画像入力
時の動作について説明する。基本的に画像伸長時と同様
の動作とする。
Next, the operation when an image is input from the image input device 117 will be described. The operation is basically the same as when the image is expanded.

【0062】画像入力装置17から連続して送られてく
る画像データはセレクタ/分配器56において分配さ
れ、ラインメモリ54,55の内いずれかに書き込みが
行われる。そして残りの一方が読み出されて、画像圧縮
伸長部53に送られる。この時に、非同期演算部におけ
るハフマン符号部が連続的に処理できなくなると、Rア
ドレスカウンタ112に停止命令を出してDCT部21
にデータ入力されないようにする。このようにしてライ
ンメモリ54または55の1ラインの書き込み終了後
に、Rアドレスカウンタ112の出力が、比較器59で
画像の長さを示すレジスタ58と比較され、長さを満た
していない場合にフラグレジスタ110に指示して切換
部115に切換え禁止信号を出す。
The image data continuously sent from the image input device 17 is distributed by the selector / distributor 56 and written in either the line memory 54 or 55. Then, the other one is read and sent to the image compression / decompression unit 53. At this time, if the Huffman code part in the asynchronous operation part cannot process continuously, a stop command is issued to the R address counter 112 and the DCT part 21
Do not enter data in. After the completion of writing one line in the line memory 54 or 55 in this way, the output of the R address counter 112 is compared with the register 58 indicating the length of the image in the comparator 59, and if the length is not satisfied, the flag is flagged. The register 110 is instructed to output a switching prohibition signal to the switching unit 115.

【0063】このことにより、画像圧縮伸長部53は、
そのラインが終了するまで圧縮を続ける。その間に、ラ
インメモリ54,55のうち書き込み用ラインバッファ
は切り換えが行われず、次のラインが書き込まれ、切換
部115の許可が出るまでは、次々に新しいラインが書
き込まれ、古いラインは捨てられる。
As a result, the image compression / decompression unit 53
Continue compression until the line ends. In the meantime, the write line buffer of the line memories 54 and 55 is not switched, the next line is written, and new lines are written one after another and the old line is discarded until permission of the switching unit 115 is issued. .

【0064】そして、切換部115の許可が出て、初め
て読み出しが行われ、圧縮画像伸長部53は、その間の
ラインをすてることになる。
Then, the permission is given from the switching unit 115, and the reading is performed for the first time, and the compressed image decompression unit 53 drops the line between them.

【0065】フラグレジスタ110の解除はRアドレス
カウンタ112より行われ、切換部115で次の水平同
期信号を待ってから切換え信号が切り換わる。
The release of the flag register 110 is performed by the R address counter 112, and the switching signal is switched after waiting for the next horizontal synchronizing signal in the switching unit 115.

【0066】以上のように、非同期演算部によりパイプ
ライン部が停止して1水平同期期間内に画像圧縮が間に
合わない場合には、圧縮するラインを飛ばし、生成され
た圧縮データは圧縮データバッファ2に蓄えられ、その
後、画像入出力部51により他の装置や回路へ直接、ま
たは伸長されてデータ出力する。
As described above, when the pipeline section is stopped by the asynchronous operation section and the image compression cannot be done in time within one horizontal synchronization period, the line to be compressed is skipped and the generated compressed data is compressed data buffer 2. Then, the image input / output unit 51 outputs the data directly to another device or circuit, or by expanding the data.

【0067】実施例4 図4は、本発明の第3の実施例におけるラインメモリ5
4,55を、複数ラインのバッファに置き換えた場の実
施例である。
Fourth Embodiment FIG. 4 shows a line memory 5 according to a third embodiment of the present invention.
This is an example of the case where the buffers 4, 55 are replaced with a buffer of a plurality of lines.

【0068】まず、データを伸長して画像記録装置57
に書き込む場合について説明する。通常の動作時は、W
アドレスカウンタ134がメモリの書き込みアドレスを
セレクタ137,132を経由して複数ラインバッファ
131に与え、Rアドレスカウンタ136が読み出しア
ドレスをセレクタ138,132を経由して複数ライン
バッファ13に与える。ここで、セレクタ132は、読
み出しアドレスと書き込みアドレスを時分割に与える役
割を果す。
First, the data is decompressed and the image recording device 57 is expanded.
The case of writing in will be described. W during normal operation
The address counter 134 gives the write address of the memory to the plural line buffers 131 via the selectors 137 and 132, and the R address counter 136 gives the read address to the plural line buffers 13 via the selectors 138 and 132. Here, the selector 132 plays a role of giving a read address and a write address in a time division manner.

【0069】比較器139は、Wアドレスカウンタ13
4とRアドレスカウンタ136のカウント値を比較し
て、画像圧縮伸長部53のパイプライン部が停止し、W
アドレスカウンタを止めてWアドレスカウンタ134の
値がRアドレスカウンタ136を下回らないか比較し、
下回った場合には切換え部140によりセレクタ138
の選択を換えて減算器135の出力を読み出しアドレス
として与える。
The comparator 139 has a W address counter 13
4 is compared with the count value of the R address counter 136, the pipeline section of the image compression / decompression section 53 is stopped, and W
The address counter is stopped and the value of the W address counter 134 is compared with the value of the R address counter 136.
If it is below the limit, the selector 138 is operated by the switching unit 140.
And the output of the subtractor 135 is given as a read address.

【0070】減算器135の出力は、Rアドレスカウン
タ136の出力よりレジスタ58の画像の水平幅を引い
た値であり、セレクタ138で選ばれる読み出しアドレ
スは、きっかり1ライン前のデータが読み出される。
The output of the subtracter 135 is a value obtained by subtracting the horizontal width of the image in the register 58 from the output of the R address counter 136, and the read address selected by the selector 138 is exactly the data one line before.

【0071】セレクタ137,138の出力は比較器1
39で比較され、読み出しアドレスが上回る場合は、減
算器135でさらに画像の1ライン幅分の減算を行う。
従って、Rアドレスカウンタ136は常にカウントアッ
プされているにもかかわらず、減算器で相殺されてWア
ドレスカウンタ134が進まない限り、複数ラインバッ
ファ131からは常に同じラインを繰り返し読み出すこ
とになる。
The outputs of the selectors 137 and 138 are the comparator 1
If it is compared in 39 and the read address is higher, the subtractor 135 further subtracts one line width of the image.
Therefore, even though the R address counter 136 is constantly incremented, the same line is always read repeatedly from the plural line buffer 131 unless the W address counter 134 is offset by the subtracter and the W address counter 134 is advanced.

【0072】本動作の前には、画像記録装置57が動作
する前に画像圧縮伸長部53で伸長をはじめ、Wアドレ
スカウンタ134をRアドレスカウンタ136より複数
ライン進めておけば、エラーの頻度が少なくなる。
Before this operation, if the image compression / decompression unit 53 starts decompression before the image recording device 57 operates and the W address counter 134 is advanced by a plurality of lines from the R address counter 136, the error frequency is increased. Less.

【0073】この動作では、同ラインが繰り返されるこ
とで画像が副走査方向に長くなるが、それを解決するに
はセレクタ137,138の出力を比較器139が吟味
して読み出しアドレスが書き込みアドレスより1ライン
幅以上に下回った場合に減算器35で反対に1ライン分
の加算動作をさせる。
In this operation, the same line is repeated to lengthen the image in the sub-scanning direction. To solve this, the outputs of the selectors 137 and 138 are examined by the comparator 139 so that the read address is greater than the write address. When the width is less than the width of one line, the subtractor 35 performs the addition operation for one line.

【0074】従って、画像は1ライン飛ばされて画像記
録装置に与えられるので、画像の垂直長さを原画に近づ
けることが可能である。この場合には、画像の繰り返し
による伸びと飛ばしによる縮みが生じることで長さが調
節されるが、画像情報の一部が欠けることは言うまでも
ない。
Therefore, since the image is skipped by one line and given to the image recording apparatus, it is possible to make the vertical length of the image closer to the original image. In this case, the length is adjusted by the expansion and contraction due to the repetition of the image, but it goes without saying that a part of the image information is lost.

【0075】次に、画像入力装置117からの画像取り
込み時の動作を説明する。
Next, the operation at the time of capturing an image from the image input device 117 will be described.

【0076】画像入力装置117の出力は一旦複数ライ
ンバッファ131に書き込まれ、画像圧縮伸長部53に
より読み出されて圧縮される。通常動作は前述の通りで
ある。
The output of the image input device 117 is once written in the multiple line buffer 131, read by the image compression / decompression unit 53 and compressed. Normal operation is as described above.

【0077】比較器139において、Wアドレスカウン
タ134とRアドレスカウンタ136の値が比較され、
Rアドレスカウンタ136の値が低い時にはエラーと判
断し、切換部140に指令を出してセレクタ137が減
算器133の出力を選ぶように設定する。
In the comparator 139, the values of the W address counter 134 and the R address counter 136 are compared,
When the value of the R address counter 136 is low, it is determined that there is an error, and a command is issued to the switching unit 140 so that the selector 137 selects the output of the subtractor 133.

【0078】従って、画像入力装置117の出力は減算
器133でレジスタ58による1ライン幅の減算がなさ
れ、1ライン前に書かれて、これから圧縮しようとして
いるデータの破壊はされない。その後の動作中にセレク
タ137,138の出力が比較器139で吟味され、読
み出しアドレスが下回る時に減算器133でさらに1ラ
イン幅の減算がなされる。
Therefore, the output of the image input device 117 is subjected to subtraction of one line width by the register 58 in the subtractor 133, written one line before, and the data to be compressed is not destroyed. During the subsequent operation, the outputs of the selectors 137 and 138 are examined by the comparator 139, and when the read address is lower, the subtractor 133 further subtracts one line width.

【0079】結果的に、Wアドレスカウンタ134は常
に更新されるために、そのたびに、1ライン戻って繰り
返し書き込みが行われる。従って、1ライン逆行した分
は、データが飛ばされる結果となるが、大きな画像の乱
れとはならない。
As a result, the W address counter 134 is constantly updated, so that each time the W address counter 134 is updated, one line back is used for repetitive writing. Therefore, the amount of data reversing one line results in the data being skipped, but does not cause a large image disturbance.

【0080】[0080]

【発明の効果】以上説明したとおり本発明では、画像圧
縮伸長手段と画像入力手段/画像記録手段(スキャナ/
プリンタ)との間にFIFOメモリを入れる構成として
あり、画像圧縮伸長手段での処理速度を緩衝すると共
に、FIFOメモリ容量を越える速度差ではエラーを1
ライン単位で発生することにより、1ライン分の区切り
で画像の回復を行い、エラー回復後の画像の乱れを防ぐ
ことができる。このことにより、画像圧縮伸長部に過大
な回路や負荷をかけずに、スキャナやプリンタとのリア
ルタイムな接続が可能となる。
As described above, in the present invention, the image compression / expansion means and the image input means / image recording means (scanner / scanner /
It has a structure in which a FIFO memory is inserted between the printer and the printer) to buffer the processing speed of the image compression / expansion means, and to eliminate an error when the speed difference exceeds the FIFO memory capacity.
By occurring in units of lines, it is possible to recover the image at a break for one line and prevent the image from being disturbed after error recovery. This enables real-time connection with a scanner or printer without imposing an excessive circuit or load on the image compression / decompression unit.

【0081】さらに本発明によれば、画像の圧縮伸長手
段と画像記録手段や画像入力手段との間にバッファ手段
を設け、画像圧縮伸長手段において動作スピードが満足
できない時に、1ライン分単位で画像の繰り返し、また
は飛ばし操作をすることによって劣化を目立たなくし、
画像品位を損うことがなくなる。
Further, according to the present invention, the buffer means is provided between the image compression / expansion means and the image recording means or the image input means, and when the operation speed cannot be satisfied in the image compression / expansion means, the image is processed in units of one line. Repeatedly, or skip operation to make the deterioration inconspicuous,
Image quality is not impaired.

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

【図1】本発明第1の実施例を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】画像圧縮伸長部の構成例を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a configuration example of an image compression / decompression unit.

【図3】本発明の第3の実施例を示すブロック図であ
る。
FIG. 3 is a block diagram showing a third embodiment of the present invention.

【図4】本発明の第4の実施例を示すブロック図であ
る。
FIG. 4 is a block diagram showing a fourth embodiment of the present invention.

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

1 画像インタフェース部 2 バッファメモリ 3 画像圧縮伸長部 4 スタートストップ回路 5 ゲート回路 6 バッファ(ゲート) 7 カウンタコントロール部 8 幅カウンタ 9 ライトパルスジェネレータ(WPG) 10 リードパルスジェネレータ(RPG) 11,12 マルチプレクサ 13 FIFOメモリ 14 バッファ(ゲート) 15 FIFOメモリコントロール部 16 エラー検知回路 17,18 画像処理部 19 プリンタ 20 スキャナ 21 DCT部 22 量子化部 23 ハフマン符号部 24 逆DCT部 25 逆量子化部 26 ハフマン復号部 51 画像入出力部 52 圧縮データバッファ 53 画像圧縮伸長部 54,55 ラインメモリ 56 セレクタ/分配器 57 画像記録装置 58 レジスタ 59 比較器 110 フラグレジスタ 111 ライトアドレスカウンタ 112 リードアドレスカウンタ 113,114 セレクタ 115 切換部 116 NOTゲート 117 画像入力装置 131 複数ラインバッフア 132 セレクタ 133 減算器 134 ライトアドレスカウンタ 135 減算器 136 リードアドレスカウンタ 137,138 セレクタ 139 比較器 140 切換部 1 Image Interface Unit 2 Buffer Memory 3 Image Compression / Expansion Unit 4 Start / Stop Circuit 5 Gate Circuit 6 Buffer (Gate) 7 Counter Control Unit 8 Width Counter 9 Write Pulse Generator (WPG) 10 Read Pulse Generator (RPG) 11, 12 Multiplexer 13 FIFO memory 14 Buffer (gate) 15 FIFO memory control unit 16 Error detection circuit 17, 18 Image processing unit 19 Printer 20 Scanner 21 DCT unit 22 Quantization unit 23 Huffman coding unit 24 Inverse DCT unit 25 Inverse quantization unit 26 Huffman decoding unit 51 image input / output unit 52 compressed data buffer 53 image compression / expansion unit 54, 55 line memory 56 selector / distributor 57 image recording device 58 register 59 comparator 110 flag register 1 1 Write Address Counter 112 Read Address Counter 113, 114 Selector 115 Switching Unit 116 NOT Gate 117 Image Input Device 131 Multiple Line Buffer 132 Selector 133 Subtractor 134 Write Address Counter 135 Subtractor 136 Read Address Counter 137, 138 Selector 139 Comparator 140 Switching Department

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 画像入力手段もしくは画像記録手段と、
画像圧縮伸長手段との間に設けられたファーストイン・
ファーストアウト型メモリと、 前記メモリのオーバフローあるいはアンダーフローを生
じる直前に該メモリへのアクセスを中止するエラー検知
手段と、 前記エラー検知手段の出力に応答して処理中のライン途
中から無効にすると共に、エラー解除後に当該1ライン
の終端を区切りとして通常の処理に復帰させる制御手段
とを具備したことを特徴とする画像圧縮伸長装置。
1. An image input means or an image recording means,
First-in, provided between the image compression and expansion means
A first-out type memory, an error detection unit that stops access to the memory immediately before an overflow or an underflow of the memory, and invalidates the line being processed in response to the output of the error detection unit. An image compression / decompression device, comprising: a control unit for returning to normal processing with the end of the one line as a delimiter after the error is released.
【請求項2】 画像入力手段もしくは画像記録手段と、
画像圧縮伸長手段との間に設けられた1ライン分以上の
バッファ手段と、 前記画像圧縮伸長手段における処理スピードが遅れた時
に、処理画像の1ライン単位の1倍または複数倍単位
で、画像の繰り返しまたは飛び越し操作を行う制御手段
とを具備したことを特徴とする画像圧縮伸長装置。
2. An image input means or an image recording means,
A buffer unit for one line or more provided between the image compression / decompression unit and a unit of one or a multiple of one line unit of the processed image when the processing speed in the image compression / decompression unit is delayed. An image compression / decompression device comprising: a control unit that performs a repetitive or interlace operation.
【請求項3】 請求項2において、前記バッファ手段は
1ライン幅のダブルバッファ形式をとり、一方のバッフ
ァが書き込み時に他方のバッファが読み出し動作を行
い、該動作を1ライン毎に交代し、処理スピードが遅れ
たときには交代を行わないことを特徴とする画像圧縮伸
長装置。
3. The buffer means according to claim 2, wherein the buffer means has a double buffer format having a width of one line, one buffer performs a read operation at the time of writing, and the other buffer alternates the operation for each line. An image compression / decompression device characterized by not performing replacement when the speed is delayed.
【請求項4】 請求項2において、前記バッファ手段は
複数ライン分のバッファを持ち、書き込みアドレスおよ
び読み出しアドレスの大小により異常判定を行い、いず
れかのアドレスを1ラインの1倍または複数倍単位で変
化せしめること特徴とする画像圧縮伸長装置。
4. The buffer means according to claim 2, wherein the buffer means has a buffer for a plurality of lines, and an abnormality judgment is made based on the size of a write address and a read address, and one of the addresses is multiplied by one line or multiple times. An image compression / expansion device characterized by being changed.
JP4206587A 1992-08-03 1992-08-03 Image compressing/expanding device Pending JPH0654202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4206587A JPH0654202A (en) 1992-08-03 1992-08-03 Image compressing/expanding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4206587A JPH0654202A (en) 1992-08-03 1992-08-03 Image compressing/expanding device

Publications (1)

Publication Number Publication Date
JPH0654202A true JPH0654202A (en) 1994-02-25

Family

ID=16525876

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4206587A Pending JPH0654202A (en) 1992-08-03 1992-08-03 Image compressing/expanding device

Country Status (1)

Country Link
JP (1) JPH0654202A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012123620A (en) * 2010-12-08 2012-06-28 Fujitsu Semiconductor Ltd Data transfer device, data transfer method and semiconductor device
JP2013046963A (en) * 2011-08-29 2013-03-07 Kyocera Document Solutions Inc Image data transfer apparatus and image forming apparatus including the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012123620A (en) * 2010-12-08 2012-06-28 Fujitsu Semiconductor Ltd Data transfer device, data transfer method and semiconductor device
JP2013046963A (en) * 2011-08-29 2013-03-07 Kyocera Document Solutions Inc Image data transfer apparatus and image forming apparatus including the same

Similar Documents

Publication Publication Date Title
JP2661738B2 (en) Video coder
CA2094991C (en) Image coding/decoding apparatus
US5220325A (en) Hierarchical variable length decoder for digital video data
US6014095A (en) Variable length encoding system
US5774206A (en) Process for controlling an MPEG decoder
JP2003244446A (en) Image processor and image processing method
JPH11266460A (en) Video information processing circuit
US7433522B2 (en) JBIG coding apparatus and method with low cost, high-performance ping-pong buffer arrangement
JP2611637B2 (en) Image compression / decompression device
JPH06237452A (en) Picture decoder, picture coder and picture coding system
US6720893B2 (en) Programmable output control of compressed data from encoder
JPH07222164A (en) Digital video bit stream coder
JP3639580B2 (en) Cascade output of encoder system with multiple encoders
US5510846A (en) Process for synchronizing the scanning circuit of an image display device
KR100381556B1 (en) Process for decording and coding a compressed video data stream with reduced memory requirements
JPH0654202A (en) Image compressing/expanding device
JP2002112268A (en) Compressed image data decoding apparatus
JP2829246B2 (en) Image expansion device
JPH04326669A (en) Picture encoding device
US5889560A (en) MPEG video decoder
JP2776284B2 (en) Image coding device
JP4214554B2 (en) Video decoding device
JP3170313B2 (en) Image processing device
WO1996036178A1 (en) Multiple sequence mpeg decoder and process for controlling same
JPH04326654A (en) Picture data compression expansion device