JPH08125818A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH08125818A
JPH08125818A JP6258213A JP25821394A JPH08125818A JP H08125818 A JPH08125818 A JP H08125818A JP 6258213 A JP6258213 A JP 6258213A JP 25821394 A JP25821394 A JP 25821394A JP H08125818 A JPH08125818 A JP H08125818A
Authority
JP
Japan
Prior art keywords
processing
image data
image
line
data
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
JP6258213A
Other languages
Japanese (ja)
Inventor
Hitoshi Horie
等 堀江
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems 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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP6258213A priority Critical patent/JPH08125818A/en
Publication of JPH08125818A publication Critical patent/JPH08125818A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To attain write and read processing of image data to/from a storage means efficiently after image processing without so much load onto an MPU in the write and read processing of image to/from the storage means such as a line buffer after image processing. CONSTITUTION: The processing unit is provided with a compander 1 executing specific image processing to image data, a RAM 200 storing image data outputted from the compander 1 in the unit of a prescribed amount, a DMA controller 102 writing image data to the RAM 200 and reading image data from the RAM 200, and a microprogram control section 1600 being a means detecting image data left in the RAM 200, informing it to the MPU when the remaining image data are a prescribed amount or below and decreased more than by the preceding detection value.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像データまたはその
符号データを扱う画像処理装置に係わり、特にファクシ
ミリ装置などで必要な画像データの圧縮、画像符号デー
タの伸長、画像データの変換(拡大縮小)、画像符号デ
ータの他の符号への変換を行なうための画像処理装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus which handles image data or code data thereof, and particularly compression of image data, expansion of image code data, conversion of image data (enlargement / reduction) necessary for a facsimile machine or the like. ), An image processing device for converting image code data into another code.

【0002】[0002]

【従来の技術】この種の画像処理装置は、ファクシミリ
装置その他の画像通信装置、画像ファイルシステムなど
において必要となる。
2. Description of the Related Art This type of image processing apparatus is required in a facsimile apparatus, other image communication apparatus, image file system and the like.

【0003】図39に、従来のファクシミリ装置の一例
を示す。このファクシミリ装置においては、受信符号デ
ータの伸長または画像データの圧縮のための2台の圧縮
伸長装置(#1)8001、(#2)8002と、画像
データの拡大縮小(画像変換)のための画像変換装置8
003があり、これらはシステムバス8005とイメー
ジバス8006の両方とインタフェースしている。
FIG. 39 shows an example of a conventional facsimile apparatus. In this facsimile apparatus, two compression / decompression devices (# 1) 8001 and (# 2) 8002 for decompressing received code data or image data and enlarging / reducing image data (image conversion) are provided. Image conversion device 8
003, which interface with both the system bus 8005 and the image bus 8006.

【0004】モデム8007により復調された受信符号
データは、システムバス8005上の圧縮データメモリ
8009にバッファリングされた後、例えば圧縮伸長装
置(#1)8001によって復号され、復元画像データ
はイメージバス8006上の画像ページメモリ8010
に展開される。RAM8016は参照ラインメモリとし
て利用される。
The received code data demodulated by the modem 8007 is buffered in the compressed data memory 8009 on the system bus 8005 and then decoded by, for example, the compression / expansion device (# 1) 8001, and the restored image data is restored to the image bus 8006. Upper image page memory 8010
Be deployed to. RAM8016 is used as a reference line memory.

【0005】1ページの画像データが復元され、そのラ
イン数などのパラメータが得られた段階で、この画像デ
ータの拡大縮小率が決定されて画像変換装置8003に
指定される。そして、画像ページメモリ8010上の画
像データの拡大縮小処理が画像変換装置8003によっ
て実行され、処理後の画像データは記録画像処理部80
11を経由しプリンタ8012へ転送され記録紙にプリ
ントされる。
When the image data of one page is restored and parameters such as the number of lines thereof are obtained, the enlargement / reduction ratio of this image data is determined and designated to the image conversion apparatus 8003. Then, the image conversion device 8003 executes enlargement / reduction processing of the image data on the image page memory 8010, and the processed image data is recorded image processing unit 80.
It is transferred to the printer 8012 via 11 and printed on the recording paper.

【0006】この受信動作中に送信原稿の読取要求が生
じた場合、イメージスキャナ8014で読み取られて読
取画像処理部8015によって処理された送信原稿画像
データは、イメージバス8006上のRAM(ラインバ
ッファ)8016を経由して他方の圧縮伸長装置(#
2)8002によって符号化される。符号データは圧縮
データメモリ8009に蓄積される。RAM8016
は、符号化ラインメモリ及び参照ラインメモリとして利
用される。
When a request for reading a transmission original is issued during the receiving operation, the transmission original image data read by the image scanner 8014 and processed by the read image processing unit 8015 is RAM (line buffer) on the image bus 8006. The other compression / decompression device (#
2) Coded by 8002. The coded data is stored in the compressed data memory 8009. RAM8016
Are used as an encoding line memory and a reference line memory.

【0007】従来、このような圧縮伸長装置は、図40
に示すような構成であった。図40において、8050
はイメージバスとのインタフェースのためのイメージバ
ス部、8051はシステムバスとのインタフェースのた
めのシステムバス部である。これらのバス部8050ま
たは8051を通じ、画像データまたは符号データは1
6ビットまたは8ビット並列のワードデータとして入出
力する。
Conventionally, such a compression / expansion device is shown in FIG.
The configuration was as shown in. In FIG. 40, 8050
Is an image bus unit for interfacing with the image bus, and 8051 is a system bus unit for interfacing with the system bus. Image data or code data is transferred through these bus units 8050 or 8051.
Input / output as 6-bit or 8-bit parallel word data.

【0008】符号化処理に関して、参照ラインの変化画
素アドレスを検出する参照ライン変化画素検出部805
2、符号化ラインの変化画素アドレスを検出する符号化
ライン変化画素検出部8053、これらの変化画素アド
レス情報を用いて符号化モード(垂直、水平、パス)を
判定する符号化モード判定部8054、この判定結果に
基づいて符号割当を行なう符号テーブル検索部8055
と符号テーブル(ROM)8056がある。また、復号
化処理に関して、符号解析のための復号テーブル検索部
8058と復号テーブル(ROM)8059、復号ライ
ンの起点もしくは基準変化画素a0アドレス(ITU−
T勧告T。4参照)を計算するa0アドレス計算部80
60、復号ラインの画像データを描画する画像データ描
画部8061がある。8062は圧縮伸長装置全体の状
態監視、制御を司る制御部である。
Regarding the encoding process, the reference line changing pixel detecting unit 805 for detecting the changing pixel address of the reference line.
2, a coded line changed pixel detection unit 8053 that detects a changed pixel address of a coded line, a coding mode determination unit 8054 that determines a coding mode (vertical, horizontal, pass) using these changed pixel address information, A code table search unit 8055 that performs code allocation based on this determination result
And a code table (ROM) 8056. Regarding the decoding process, the decoding table search unit 8058 for code analysis, the decoding table (ROM) 8059, the starting point of the decoding line or the reference change pixel a0 address (ITU-
T Recommendation T. A0 address calculation unit 80 for calculating
60, an image data drawing unit 8061 for drawing the image data of the decoding line. Reference numeral 8062 denotes a control unit that monitors and controls the state of the entire compression / expansion device.

【0009】[0009]

【発明が解決しようとする課題】上述のように構成され
た従来の圧縮伸長装置においては、圧縮動作の場合、画
像データを1ワード単位に入力し、変化画素アドレスを
検出し、符号化し、符号データを出力する、という一連
の処理がシリアルに行なわれるため、圧縮処理時間は次
式で表わされる。
In the conventional compression / decompression device configured as described above, in the case of the compression operation, the image data is input in units of one word, the change pixel address is detected, encoded, and encoded. Since a series of processing of outputting data is performed serially, the compression processing time is expressed by the following equation.

【0010】 処理時間=画像入力時間+符号化処理時間+符号出力時間 (式1) 符号化ラインメモリ及び参照ラインメモリはイメージバ
ス上の外部メモリ(図40のRAM8016)に置かれ
るが、イメージバスのアクセス時間はかなり大きい。こ
のバスアクセス時間によって式1の第1項の下限が決ま
ってしまうので、高速化に限界がある。これが本発明が
解決しようとする第1の課題である。
Processing time = image input time + encoding processing time + code output time (Equation 1) The encoding line memory and the reference line memory are placed in the external memory (RAM 8016 in FIG. 40) on the image bus. Access time is quite large. This bus access time determines the lower limit of the first term of Expression 1, and therefore there is a limit to the speedup. This is the first problem to be solved by the present invention.

【0011】特に、図39に示したファクシミリ装置の
例のように複数の圧縮伸長装置、さらには画像変換装置
が共通バス上に置かれる場合、共通バスの負荷が重くな
るため、バスアクセス時間による処理時間の増大が顕著
になる。
Particularly, when a plurality of compression / decompression devices and further an image conversion device are placed on a common bus as in the example of the facsimile apparatus shown in FIG. The increase in processing time becomes remarkable.

【0012】粗い画像を処理する場合、式1の第2項、
第3項の時間は第1項に比べて小さいので、全体の処理
時間は第1項の画像入力時間でほぼ決まる。これに対
し、細かい画像を処理する場合、第2項の符号化処理時
間が増大し、また符号データも多くなるので第3項の符
号出力時間も増えるため、全体の処理時間が大きい。ま
た、処理画像の内容によって全体の処理時間は大きく変
動する。
When processing a coarse image, the second term of Equation 1
Since the time of the third term is smaller than that of the first term, the entire processing time is almost determined by the image input time of the first term. On the other hand, when processing a fine image, the encoding processing time of the second term increases, and since the code data also increases, the code output time of the third term also increases, so that the overall processing time is long. Further, the entire processing time greatly varies depending on the content of the processed image.

【0013】伸長動作に関しても、上述と同様のことが
言える。図39に示したファクシミリ装置の動作説明か
ら明かなように、復元画像データの画像変換が必要な場
合、拡大縮小率を決定するためのパラメータを得る必要
から、1ページ全体が復元されるまで画像変換を開始で
きない。このため、1ページの復元画像データを蓄積で
きる大容量のメモリ(図39の画像ページメモリ801
0)が必要になる。また、画像変換装置は圧縮伸長装置
から独立しており、画像変換と圧縮処理または伸長処理
を直列的に行なおうとした場合、画像変換のために必ず
外部バスのアクセスが必要となり、この点でも処理の高
速化に限界がある。また従来の圧縮伸長装置は、ホスト
プロセッサからの起動によって1ラインまたは複数ライ
ンから成る画像ブロックを一つの処理単位にして圧縮ま
たは伸長し、これを繰り返して1ページの画像データの
処理を行なっている。この間にスキャナ、プリンタなど
の入出力デバイスとラインバッファメモリ間の画像デー
タのDMA転送や、それに関連したラインバッファメモ
リの管理も必要になるが、これらの処理はホストプロセ
ッサの管理下において実行されている。
The same applies to the decompression operation. As is clear from the description of the operation of the facsimile apparatus shown in FIG. 39, when the image conversion of the restored image data is necessary, it is necessary to obtain the parameter for determining the enlargement / reduction ratio, and the image is restored until the entire page is restored. Cannot start conversion. Therefore, a large-capacity memory (image page memory 801 in FIG. 39) capable of accumulating one page of restored image data.
0) is required. Further, the image conversion device is independent of the compression / decompression device, and if an attempt is made to serially perform image conversion and compression / decompression processing, an external bus must be accessed for image conversion. There is a limit to the speed of processing. Further, the conventional compression / expansion device compresses or expands an image block consisting of one line or a plurality of lines as one processing unit upon activation from the host processor, and repeats this to process one page of image data. . During this time, DMA transfer of image data between an input / output device such as a scanner and a printer and the line buffer memory and management of the line buffer memory related thereto are required, but these processes are executed under the control of the host processor. There is.

【0014】したがって、圧縮伸長処理のみを高速化し
ても、ホストプロセッサの圧縮伸長装置に対する処理負
荷を減らさない限り、起動待ち時間の総和によって全体
の処理時間の下限が決まってしまうという第2の問題が
ある。言い替えれば、従来の圧縮伸長装置は、高速処理
に関してそれが使用される環境の影響を受け易い構成に
なっており、設計時の性能が現実の環境で充分に発揮で
きない、という問題がある。
Therefore, the second problem is that even if only the compression / decompression processing is speeded up, unless the processing load on the compression / decompression device of the host processor is reduced, the lower limit of the total processing time is determined by the sum of the startup waiting times. There is. In other words, the conventional compression / decompression device has a configuration that is easily affected by the environment in which it is used for high-speed processing, and there is a problem that the performance at the time of design cannot be sufficiently exerted in an actual environment.

【0015】本発明は、上述の問題点に鑑みてなされた
もので、ファクシミリ装置などにおいて必要とされる2
値化された後の画像処理、即ち、圧縮処理、伸長処理、
画像変換処理、符号変換処理、画像データのDMA転送
処理などを処理途中のデータを外部に出力することなく
装置内部で高速に実行し、更にホストプロセッサの処理
負荷を低減する画像処理装置を提供することを主たる目
的とする。さらに、本発明では画像処理後のラインバッ
ファ等の記憶手段への書き込み及び読み出し処理におい
て、MPUにそれほど負担をかけることなく、画像処理
途中で読み出すデータがなくなってしまうことを防止
し、効率のよい画像処理後等の画像データの記憶手段へ
の書き込み、読み出し処理を行うことができる画像処理
装置を提供することを目的とする。
The present invention has been made in view of the above problems, and is required in a facsimile machine or the like.
Image processing after being valued, that is, compression processing, decompression processing,
Provided is an image processing apparatus that executes image conversion processing, code conversion processing, DMA transfer processing of image data, etc. at high speed inside the apparatus without outputting the data being processed, and further reduces the processing load of the host processor. The main purpose is that. Further, according to the present invention, in the writing and reading processing to the storage means such as the line buffer after the image processing, it is possible to prevent the data to be read out during the image processing without being so heavy on the MPU and to be efficient. It is an object of the present invention to provide an image processing device capable of writing and reading image data to and from storage means after image processing.

【0016】[0016]

【課題を解決するための手段】本発明は上述の目的を達
成するために、画像データに特定の画像処理を実行する
処理手段と、該処理手段から所定単位毎に出力された画
像データを格納する記憶手段と、該記憶手段への画像デ
ータの書き込み及び前記記憶手段からの画像データの読
み出しを行う手段と、前記記憶手段に残存する画像デー
タを検出する検出手段と、残存する画像データが予め定
めた所定値以下で、かつ前回の検出値よりも減少したと
きにこれを外部装置に通知する手段とを備えたものであ
る。本発明は、かかる構成のみに限定されるものではな
い。特許請求の範囲の記載並びに本明細書全体の記載か
ら理解されるように、本発明は様々な態様を包含し、そ
れぞれの態様に特徴的な構成を備えるものである。
In order to achieve the above object, the present invention stores processing means for executing specific image processing on image data, and image data output from the processing means in predetermined units. Storage means, means for writing image data to the storage means and reading image data from the storage means, detection means for detecting image data remaining in the storage means, and remaining image data in advance. And a means for notifying the external device of this when the value is equal to or less than the predetermined value and is smaller than the previously detected value. The present invention is not limited to such a configuration. As can be understood from the description of the claims and the description of the entire specification, the present invention includes various aspects and has a characteristic configuration in each aspect.

【0017】[0017]

【作用】本発明の画像処理装置は、上述の構成によっ
て、画像処理後のラインバッファ等の記憶手段への書き
込み及び読み出し処理において、MPUにそれほど負担
をかけることなく、画像処理途中で読み出すデータがな
くなってしまうことを防止し、効率のよい画像処理後等
の画像データの記憶手段への書き込み、読み出し処理を
行うことができる。
With the above-described structure, the image processing apparatus of the present invention can store data to be read in the middle of image processing without significantly burdening the MPU in the writing and reading processing to the storage means such as the line buffer after the image processing. It is possible to prevent the data from being lost, and to efficiently perform the writing and reading processing of the image data into the storage means after the image processing or the like.

【0018】[0018]

【実施例】図1は本発明による圧縮伸長装置の一例の概
略構成を示すブロック図である。この圧縮伸長装置1は
圧縮装置、伸長装置、画像変換(拡大縮小)装置及び符
号変換装置、DMA転送装置を複合した画像処理装置で
ある。
1 is a block diagram showing the schematic construction of an example of a compression / expansion device according to the present invention. The compression / expansion device 1 is an image processing device that combines a compression device, a decompression device, an image conversion (enlargement / reduction) device, a code conversion device, and a DMA transfer device.

【0019】ファクシミリ装置の構成 この圧縮伸長装置1を用いたファクシミリ装置の一例を
図2に示す。圧縮伸長装置1はシステムバス10及びイ
メージバス11に接続されている。図2において、シス
テムバス10上には、ファクシミリ装置全体の制御、フ
ァクシミリ通信手順制御などを司るマイクロプロセッサ
(MPU)とDMAコントローラ(DMAC)からなる
プロセッサブロック13、アドレスデコーダ等のゲート
アレイからなる周辺回路ブロック14、制御プログラム
やデータを格納するためのROMとRAMよりなるメモ
リブロック15、送信原稿または受信原稿の圧縮データ
の蓄積のために主に用いられる圧縮データメモリ16、
ファクシミリ装置の操作のためのスイッチや表示器から
なる操作パネル18、回線信号の変復調のためのモデム
19なども設けられている。20は網制御回路(NC
U)であり、これを介してファクシミリ装置は公衆電話
回線網などに接続される。
Structure of Facsimile Machine FIG. 2 shows an example of a facsimile machine using the compression / expansion device 1. The compression / expansion device 1 is connected to the system bus 10 and the image bus 11. In FIG. 2, on the system bus 10, a processor block 13 including a microprocessor (MPU) and a DMA controller (DMAC) for controlling the entire facsimile apparatus and controlling the facsimile communication procedure, and a peripheral including a gate array such as an address decoder. A circuit block 14, a memory block 15 including a ROM and a RAM for storing control programs and data, a compressed data memory 16 mainly used for storing compressed data of a transmission document or a reception document,
An operation panel 18 including switches and a display for operating the facsimile machine, a modem 19 for modulating / demodulating line signals, and the like are also provided. 20 is a network control circuit (NC
U), through which the facsimile device is connected to a public telephone line network or the like.

【0020】イメージバス11上には読取画像処理部2
1、記録画像処理部22及びRAM28がある。このR
AM28は、圧縮伸長装置1による画像データ入出力の
ためのラインバッファとして用いられる。読取画像処理
部21は、イメージスキャナ23より入力するアナログ
画像信号を処理し、イメージバス11に出力するもの
で、ワークメモリとしてのRAM27を有する。この読
取画像処理部21による処理には、アナログ画像信号に
対するA/D変換や、デジタル画像信号に対するシュー
デング補正、MTF補正(エッジ強調)、2値平滑化、
多値平滑化、誤差拡散(ハーフトーン処理)などの画像
処理が含まれる。
The read image processing unit 2 is provided on the image bus 11.
1, a recording image processing unit 22 and a RAM 28. This R
The AM 28 is used as a line buffer for inputting / outputting image data by the compression / expansion device 1. The read image processing unit 21 processes the analog image signal input from the image scanner 23 and outputs it to the image bus 11, and has a RAM 27 as a work memory. The processing by the read image processing unit 21 includes A / D conversion for analog image signals, pseudo-correction for digital image signals, MTF correction (edge emphasis), and binary smoothing.
Image processing such as multilevel smoothing and error diffusion (halftone processing) is included.

【0021】イメージスキャナ23は、原稿を走査し画
像情報を読み取るもので、CCDイメージセンサ24、
原稿を照明し光学イメージをCCDイメージセンサ24
に結像させるためのレンズ/光源部25、原稿の副走査
送り機構を制御する読取機構制御部26からなる。記録
画像処理部22は、イメージバス11より画像データを
取り込み、レーザビームプリンタ(LBP)29へ与
え、プリントさせる。
The image scanner 23 scans a document and reads image information. The CCD image sensor 24,
The CCD image sensor 24 illuminates the original and gives an optical image.
The lens / light source unit 25 for forming an image on the document, and the reading mechanism control unit 26 for controlling the sub-scan feed mechanism for the document. The recording image processing unit 22 takes in the image data from the image bus 11 and supplies it to the laser beam printer (LBP) 29 for printing.

【0022】圧縮伸長装置の全体構成 次に、図2に示されたシステム構成と関連付けながら、
圧縮伸長装置1の構成を説明する。図1において、10
0はイメージバス11とのインタフェース機能を実現す
るイメージバス制御部である。200はRAMであり、
内部処理のためのラインメモリ及びパラメータレジスタ
として使用される。このRAM200は、プロセッサブ
ロック13のMPU(図2)からもアクセスできる。3
00は内部データバス(BEデータバス)1700によ
るRAM200に対するDMA転送を制御する内部バス
DMA制御部、400はMPU(図2)とインタフェー
スするためのシステムバス制御部である。
Overall Configuration of Compression / Expansion Device Next, referring to the system configuration shown in FIG.
The configuration of the compression / expansion device 1 will be described. In FIG. 1, 10
An image bus control unit 0 realizes an interface function with the image bus 11. 200 is a RAM,
Used as a line memory and parameter register for internal processing. This RAM 200 can also be accessed from the MPU (FIG. 2) of the processor block 13. Three
Reference numeral 00 is an internal bus DMA control unit for controlling DMA transfer to the RAM 200 by the internal data bus (BE data bus) 1700, and 400 is a system bus control unit for interfacing with the MPU (FIG. 2).

【0023】500は種々のレジスタとして利用される
ワーキングレジスタであり、実際的にはRAMが用いら
れる。600〜800は16ビット幅データの変化画素
アドレス情報の一時記憶のためのFIFOバッファ、1
200は内部処理の実行に関連して利用される算術論理
演算部、1300はMH/MR/MMR復号器、140
0は画像の主走査方向の画像変換(拡大縮小)を行なう
画像変換部、1500はMH/MR/MMRの符号器、
1600は装置動作の制御のためのマイクロプログラム
制御部である。
Reference numeral 500 is a working register used as various registers, and RAM is actually used. 600 to 800 are FIFO buffers for temporarily storing the change pixel address information of 16-bit width data, 1
Reference numeral 200 is an arithmetic logic operation unit used in connection with execution of internal processing, 1300 is an MH / MR / MMR decoder, 140
Reference numeral 0 is an image conversion unit that performs image conversion (enlargement / reduction) in the main scanning direction of the image, 1500 is an MH / MR / MMR encoder,
Reference numeral 1600 is a microprogram control unit for controlling the operation of the apparatus.

【0024】なお、変化画素検出部600〜800とF
IFOバッファ900〜1100は、対応した処理ブロ
ック1300〜1500に含めることもできる。ただ
し、この場合、変化画素検出部600とFIFOバッフ
ァ900は二つの処理ブロック1300、1500に共
用されるため、同じものを2組追加する必要がある。
The changed pixel detection units 600 to 800 and F
The IFO buffers 900-1100 can also be included in the corresponding processing blocks 1300-1500. However, in this case, since the changed pixel detection unit 600 and the FIFO buffer 900 are shared by the two processing blocks 1300 and 1500, it is necessary to add the same two sets.

【0025】1700はDMA制御バスであり、各部か
らのDMA転送要求信号線や各部へのDMA転送許可信
号線から成る。内部データバス(BEデータバス)18
00は、主に画像データの転送に使われる16ビットの
バスである。1900も16ビットの内部データバス
(BCデータバス)であり、これは主に符号化データの
転送に利用される。図1には示されていないが、マイク
ロプログラム制御部1600と装置内各部との間にマイ
クロプログラム制御バスが存在する(図6などを参
照)。
Reference numeral 1700 is a DMA control bus, which comprises a DMA transfer request signal line from each unit and a DMA transfer permission signal line to each unit. Internal data bus (BE data bus) 18
00 is a 16-bit bus mainly used for transferring image data. 1900 is also a 16-bit internal data bus (BC data bus), which is mainly used for transfer of encoded data. Although not shown in FIG. 1, a micro program control bus exists between the micro program control unit 1600 and each unit in the apparatus (see FIG. 6 and the like).

【0026】符号器の構成 図3は符号器1500のブロック図である。図3におい
て、変化画素アドレス制御部1502は、FIFOバッ
ファ900より参照ラインの変化画素アドレスを、FI
FOバッファ1100より符号化ラインの変化画素アド
レスをそれぞれ取り込み、順序付けして符号化モード判
定部1504に入力する。この符号化モード判定部15
04は、入力した変化画素アドレス情報より符号化モー
ド(パス、垂直、水平モード)の判定を行なう。符号テ
ーブル検索部1506は、符号化モードの判定結果に基
づいて内部の符号テーブルを検索し符号割当を行なう。
Configuration of Encoder FIG. 3 is a block diagram of encoder 1500. In FIG. 3, the changed pixel address control unit 1502 outputs the changed pixel address of the reference line from the FIFO buffer 900 to the FI.
The changed pixel addresses of the coding line are fetched from the FO buffer 1100, ordered, and input to the coding mode determination unit 1504. This encoding mode determination unit 15
Reference numeral 04 determines the encoding mode (pass, vertical, horizontal mode) from the input changed pixel address information. The code table search unit 1506 searches the internal code table based on the determination result of the coding mode and performs code allocation.

【0027】パッキング処理部1508は、符号テーブ
ル検索部1506より出力された可変長の16ビット/
ワードの符号データへの変換(ワードパッキング)を行
ない、ワード単位で内部データバス1900または18
00へ出力する。1510は符号器1500の全体制御
のためのメインシーケンサである。内部RAM200と
のDMA転送の要求は、このメインシーケンサ1510
より出される。1512〜1518はメインシーケンサ
1510の制御下で対応する機能ブロック1502〜1
508を制御するサブシーケンサである。符号器150
0はまた、内部データバス(BEデータバス)1800
を通じて1ライン幅(1ラインの画像データのワード
数)がセットされるレジスタ1520、1ライン符号数
(1ラインの符号データのワード数)をカウントするた
めのカウンタ1522を有する。このカウンタ1522
の値は内部データバス1800に出力できる。
The packing processing unit 1508 outputs a variable length 16 bits / bit output from the code table search unit 1506.
Converts words to coded data (word packing), and performs internal data bus 1900 or 18 in word units.
Output to 00. Reference numeral 1510 is a main sequencer for overall control of the encoder 1500. The request for the DMA transfer with the internal RAM 200 is issued by the main sequencer 1510.
Issued more. 1512 to 1518 are corresponding functional blocks 1502-1 under the control of the main sequencer 1510.
It is a sub sequencer for controlling 508. Encoder 150
0 is also an internal data bus (BE data bus) 1800
A register 1520 in which the width of one line (the number of words of image data of one line) is set is provided with a counter 1522 for counting the number of codes of one line (the number of words of code data of one line). This counter 1522
Can be output to internal data bus 1800.

【0028】マイクロプログラム制御部1600は、マ
イクロプログラム制御バス1602を介し、符号器15
00に対する符号化モードの指定や起動などの制御を行
なうことができ、また符号器1500の状態を取得でき
る。
The micro program control unit 1600 is provided with an encoder 15 via a micro program control bus 1602.
It is possible to specify the encoding mode for 00, control such as activation, and obtain the state of the encoder 1500.

【0029】復号器の構成 図4は復号器1300のブロック図である。図4におい
て、符号シフト部1302は、内部データバス(BCデ
ータバス)1900より取り込んだ符号データの解読を
終了した符号長分だけシフトし、符号解析部1304に
常に未解読の符号データを与える。符号解析部1304
は、符号データによって内部の復号ROMの検索を行な
い、復号符号を描画部1308へ送る。
Decoder Configuration FIG. 4 is a block diagram of decoder 1300. In FIG. 4, the code shift unit 1302 shifts the code data fetched from the internal data bus (BC data bus) 1900 by the code length for which decoding has been completed, and always provides the code analysis unit 1304 with undecoded code data. Code analysis unit 1304
Searches the internal decoding ROM according to the code data and sends the decoded code to the drawing unit 1308.

【0030】a0アドレス演算部1306は、FIFO
バッファ900より入力した参照ラインの変化画素アド
レス情報と符号解析部1304から入力した復号符号と
から、復号ラインの基準変化画素アドレスであるa0ア
ドレス(ITU−T勧告T。4参照)を計算する。描画
部はa0アドレスと色(白/黒)情報から画像データを
生成し、生成した画像データをワード(16ビット)単
位で内部データバス(BEデータバス)1800へ出力
する。
The a0 address operation unit 1306 is a FIFO
An a0 address (see ITU-T Recommendation T.4), which is the standard change pixel address of the decoded line, is calculated from the change pixel address information of the reference line input from the buffer 900 and the decoded code input from the code analysis unit 1304. The drawing unit generates image data from the a0 address and color (white / black) information, and outputs the generated image data to the internal data bus (BE data bus) 1800 in units of words (16 bits).

【0031】1310は復号器1300の全体的制御を
行なうメインシーケンサ、1312〜1318はメイン
シーケンサ1310の制御下で対応する機能ブロック1
302〜1318を制御するサブシーケンサである。D
MA転送要求はメインシーケンサ1310より出る。復
号器1300はまた、復元された画像データより白デー
タ(全ビットが白ビットのワード)を検出するための比
較器1320と、RTC符号とみなすための連続EOL
数と、1ラインの復元幅が内部データバス(BEデータ
バス)1800よりセットされるレジスタ1322、1
324を有する。比較器1320による比較結果に基づ
きメインシーケンサは白ライン(全ビットが白画素のラ
イン)の判定を行ない、その判定結果を状態信号として
マイクロプログラム制御バス1602に出力する。
Reference numeral 1310 is a main sequencer for controlling the entire decoder 1300, and reference numerals 1312 to 1318 are corresponding functional blocks 1 under the control of the main sequencer 1310.
It is a sub sequencer for controlling 302 to 1318. D
The MA transfer request is issued from the main sequencer 1310. The decoder 1300 also includes a comparator 1320 for detecting white data (words in which all bits are white bits) from the restored image data, and a continuous EOL for considering it as an RTC code.
A register 1322 in which the number and the restoration width of one line are set from the internal data bus (BE data bus) 1800,
324. Based on the comparison result by the comparator 1320, the main sequencer determines a white line (a line in which all bits are white pixels), and outputs the determination result to the microprogram control bus 1602 as a status signal.

【0032】また、メインシーケンサ1310によって
1ライン毎に復号エラーの有無がチェックされる。この
チェック結果は状態信号として出力される。マイクロプ
ログラム制御部1600は、マイクロプログラム制御バ
ス1602を介し、復号器1300に対して復号化モー
ドの指定、起動などの制御と状態監視を行なうことがで
きる。
Further, the main sequencer 1310 checks whether or not there is a decoding error for each line. The check result is output as a status signal. The microprogram control unit 1600 can control the decoder 1300 such as designation and activation of a decoding mode and state monitoring through the microprogram control bus 1602.

【0033】画像変換部の構成 図5は画像変換部1400のブロック図である。図5に
おいて、レジスタ1402はFIFOバッファ1000
より入力する変化画素アドレスと色情報(B/W)を保
持するもので、レジスタ1404は内部データバス(B
Eデータバス)1800を通じて拡大縮小率をセットさ
れるものである。乗算器1406は、その変化画素アド
レスと拡大縮小率を乗算することによって、拡大縮小後
の変化画素アドレスを求め描画部1408に与える。描
画部1408は、与えられた変化画素アドレスとレジス
タ1402より与えられる色情報に基づき拡大縮小後の
画像データを生成する。この画像データはレジスタ14
10を介しワード単位で内部データバス(BEデータバ
ス)1800へ出力される。1412は内部データバス
1800を介し変換前の1ライン幅(ワード数)をセッ
トされるレジスタ、1414は変換後の1ライン幅(ワ
ード数)をカウントするためのレジスタである。141
6は画像変換部1400内各部を制御するシーケンサで
あり、DMA転送要求も出す。
Structure of Image Conversion Unit FIG. 5 is a block diagram of the image conversion unit 1400. In FIG. 5, the register 1402 is a FIFO buffer 1000.
The register 1404 holds the change pixel address and the color information (B / W) to be input from the internal data bus (B
E data bus) 1800 is used to set the scaling rate. The multiplier 1406 multiplies the changed pixel address by the enlargement / reduction ratio to obtain the changed pixel address after the enlargement / reduction, and supplies it to the drawing unit 1408. The drawing unit 1408 generates scaled image data based on the given change pixel address and the color information given by the register 1402. This image data is stored in the register 14
The data is output to the internal data bus (BE data bus) 1800 in units of words via 10. Reference numeral 1412 is a register in which the 1-line width (word number) before conversion is set via the internal data bus 1800, and 1414 is a register for counting the 1-line width (word number) after conversion. 141
A sequencer 6 controls each unit in the image conversion unit 1400 and also issues a DMA transfer request.

【0034】算術論理演算部、ワーキングレジスタなど
の構成 図6は算術論理演算部1200及びワーキングレジスタ
(RAM)500とその周辺の構成、並びに他の機能ブ
ロックとの接続構成を示している。図6において、12
02は算術論理演算部1200の中心をなす16ビット
ALU(シフタ含む)である。図から明かなように、R
AM200などからのデータをALU1202にロード
して必要な演算を行ない、演算結果をRAM200など
に書き込むことができる。また、ワーキングレジスタ
(RAM)500上のレジスタの走査やチェックをAL
U1202を経由して行なうことができる。図6におい
て、1204と1206はALU1202の入力レジス
タ1207と1208はALU1202の入力選択のた
めのセレクタ、1210は算術論理演算部1200のロ
ーカルバス、1211はローカルバス1210への出力
バッファである。1212と1213はローカルバス1
210と内部データバス(BEデータバス)1800と
の間のデータ転送のためのバッファである。
Arrangement of Arithmetic and Logical Operation Unit, Working Register, etc. FIG. 6 shows an arithmetic and logic operation unit 1200, a working register (RAM) 500 and its peripheral configuration, and a connection configuration with other functional blocks. In FIG. 6, 12
Reference numeral 02 is a 16-bit ALU (including a shifter) that forms the center of the arithmetic logic operation unit 1200. As you can see from the figure, R
It is possible to load data from the AM 200 or the like into the ALU 1202, perform a necessary calculation, and write the calculation result in the RAM 200 or the like. In addition, scan and check the registers on the working register (RAM) 500
It can be done via U1202. 6, reference numerals 1204 and 1206 denote input registers 1207 and 1208 of the ALU 1202, selectors for selecting inputs of the ALU 1202, 1210 a local bus of the arithmetic logic operation unit 1200, and 1211 an output buffer to the local bus 1210. 1212 and 1213 are local buses 1
It is a buffer for data transfer between 210 and an internal data bus (BE data bus) 1800.

【0035】1214はマイクロプログラム制御バス1
602上の周辺アドレスをデコードしALU1202周
辺の制御信号を出すデコーダ、1216はワーキングレ
ジスタ500のリード/ライトを制御するR/W制御回
路(デコーダ)、1218はマイクロプログラム制御部
1600によって制御されるアドレスポインタ、122
0はアドレスポインタ1218の値またはマイクロプロ
グラム制御バス1602より与えられるアドレスを選択
しアドレスバス1220へ出すセレクタである。
Reference numeral 1214 is the microprogram control bus 1
A decoder that decodes the peripheral address on 602 and outputs a control signal for the ALU 1202 peripheral, 1216 is an R / W control circuit (decoder) that controls the read / write of the working register 500, and 1218 is an address controlled by the microprogram controller 1600. Pointer, 122
Reference numeral 0 is a selector which selects the value of the address pointer 1218 or the address given from the microprogram control bus 1602 and outputs it to the address bus 1220.

【0036】マイクロプログラム制御部、システムバス
制御部の構成 図7はマイクロプログラム制御部1600とシステムバ
ス制御部400の構成の説明図である。この圧縮伸長装
置1は符号化、復号化の処理チャネルを各々2チャネル
有し、ライン単位にチャネルを切り替えて処理を実行す
ることができる。このような処理実行を容易にするた
め、システムバス制御部400にチャネル0(CH0)
用のレジスタセット402と、チャネル1(CH1)用
のレジスタセット404がある。またシステムバス制御
部400には、システムバスタイミング制御部406
と、図1に示されるように、データバッファ408、D
MAコントローラ410、クロック発生器412なども
含まれる。
Configurations of Micro Program Control Unit and System Bus Control Unit FIG. 7 is an explanatory diagram of configurations of the micro program control unit 1600 and the system bus control unit 400. This compression / expansion device 1 has two encoding and decoding processing channels each, and can perform processing by switching the channels on a line-by-line basis. In order to facilitate the execution of such processing, the system bus control unit 400 has a channel 0 (CH0)
There is a register set 402 for channel 1 and a register set 404 for channel 1 (CH1). The system bus control unit 400 also includes a system bus timing control unit 406.
And as shown in FIG. 1, the data buffers 408, D
An MA controller 410, a clock generator 412, etc. are also included.

【0037】マイクロプログラム制御部1600は一般
的な構成であって、様々なコマンドの処理のためのマイ
クロプログラムを格納したマイクロROM1601のほ
か、マイクロプログラム実行制御のためのプログラムカ
ウンタ1603、スタック1604、スタックポインタ
1605、命令レジスタ1606、命令デコーダ160
7を含む。マイクロプログラム制御部1600はさら
に、各マクロコマンドのためのマイクロプログラムのス
タートアドレスを格納したマクロROM1608、レジ
スタセット402、404中のコマンドレジスタにセッ
トされたマクロコマンドをマクロROM1608へ入力
するためのセレクタ1609、マイクロROM1602
の入力切り替えのためのマルチプレクサ1610、マイ
クロプログラム制御バス1602上の状態信号及びシス
テムバス制御部400からの起動信号をマルチプレクサ
1610へ制御信号として入力するためのマルチプレク
サ1611などを含む。
The microprogram control unit 1600 has a general structure. In addition to a microROM 1601 storing a microprogram for processing various commands, a program counter 1603 for controlling the execution of the microprogram, a stack 1604, and a stack. Pointer 1605, instruction register 1606, instruction decoder 160
Including 7. The micro program control unit 1600 further includes a macro ROM 1608 storing the start address of the micro program for each macro command, and a selector 1609 for inputting the macro command set in the command register in the register sets 402 and 404 to the macro ROM 1608. , Micro ROM 1602
A multiplexer 1610 for switching the input of the above, a multiplexer 1611 for inputting a status signal on the microprogram control bus 1602 and an activation signal from the system bus control unit 400 to the multiplexer 1610 as a control signal.

【0038】内部RAMの使用方法 図8はRAM200の使用方法の説明図である。RAM
200のリニアなアドレス空間は、チャネル0(CH
0)用のパラメータレジスタセットの領域201、チャ
ネル1(CH1)用のパラメータレジスタセットの領域
204、画像メモリ領域206に分割されて使用され
る。各チャネルのパラメータレジスタセット領域20
2、204は、符号化コマンド、復号化コマンド、その
他のコマンド及びDMA転送のためのパラメータレジス
タ領域208〜214に分割される。
Method of Using Internal RAM FIG. 8 is an explanatory diagram of a method of using the RAM 200. RAM
The linear address space of 200 is channel 0 (CH
0) parameter register set area 201, channel 1 (CH1) parameter register set area 204, and image memory area 206 are used. Parameter register set area 20 for each channel
2, 204 are divided into encoding command, decoding command, other commands, and parameter register areas 208 to 214 for DMA transfer.

【0039】画像メモリ領域206は、複数のラインメ
モリの領域に分割され、分割領域が後に図10ないし図
12を参照して説明するように処理内容に応じた各種の
ラインメモリとして使用される。
The image memory area 206 is divided into a plurality of line memory areas, and the divided areas are used as various line memories according to processing contents, as will be described later with reference to FIGS.

【0040】イメージバス部の構成 図9はイメージバス制御部100のブロック図である。
イメージバス制御部100は、画像データのDMA転送
のためのDMAコントローラ102、アドレスカウンタ
104及びデータバッファ106を含む。このイメージ
バス制御部100の制御によって、次の4種類の画像デ
ータのDMA転送が可能である。 a)イメージバス上のI/Oデバイス(読取画像処理部
21)からメモリ(RAM28)への転送 b)イメージバス上のメモリ(RAM28)からI/O
デバイス(記録画像処理部22)への転送 c)イメージバス上のメモリ(RAM28)から圧縮伸
長装置1への転送 d)圧縮伸長装置1からイメージバス上のメモリ(RA
M28)への転送 各DMA転送に対応して、アドレスカウンタ104は4
組のアドレスレジスタ110とインクリメンタ112よ
り構成されている。同様に、DMAコントローラ102
には、4組の転送数レジスタ114とデクリメンタ11
6が含まれる。DMAコントローラ102にはまた、D
MA転送の優先制御のための優先コントロール118や
タイミング制御部120などが含まれる。
Configuration of Image Bus Unit FIG. 9 is a block diagram of the image bus control unit 100.
The image bus control unit 100 includes a DMA controller 102 for DMA transfer of image data, an address counter 104, and a data buffer 106. Under the control of the image bus control unit 100, the following four types of image data can be DMA-transferred. a) Transfer from I / O device (read image processing unit 21) on image bus to memory (RAM 28) b) I / O from memory (RAM 28) on image bus
Transfer to device (recorded image processing unit 22) c) Transfer from memory (RAM 28) on image bus to compression / expansion device 1 d) Memory on image bus (RA from compression / expansion device 1)
M28) transfer The address counter 104 corresponds to 4 for each DMA transfer.
It is composed of a set of address registers 110 and an incrementer 112. Similarly, the DMA controller 102
Includes four sets of transfer number registers 114 and decrementer 11
6 is included. The DMA controller 102 also has a D
A priority control 118 and a timing control unit 120 for priority control of MA transfer are included.

【0041】ラインメモリ関連の構成 図10、図11及び図12は、内部バスDMA制御部3
00の内部構成、マイクロプログラムによってワーキン
グレジスタ500上に定義されるアドレスレジスタ50
2及びRAM200の画像メモリ領域206上に定義さ
れるラインメモリ216の内訳と、それらの対応関係を
説明するための図である。図10は符号化コマンド処理
の場合を示し、図11は復号化コマンド処理の場合を示
し、図12は符号変換コマンド処理の場合を示してい
る。以下の説明において、アドレスレジスタ502及び
ラインメモリ216の個々を区別する必要のある場合は
図10、図11、または図12に示された名称INPU
T〜D1Rを用いる。
Configuration Related to Line Memory FIGS. 10, 11 and 12 show the internal bus DMA controller 3.
00, the address register 50 defined on the working register 500 by the microprogram.
2 is a diagram for explaining the breakdown of the line memory 216 defined in the image memory area 206 of the RAM 2 and the RAM 200 and the corresponding relationship between them. 10 shows the case of encoded command processing, FIG. 11 shows the case of decoding command processing, and FIG. 12 shows the case of code conversion command processing. In the following description, when it is necessary to distinguish the address register 502 and the line memory 216, the name INPU shown in FIG. 10, FIG. 11 or FIG.
T to D1R are used.

【0042】内部バスDMA制御部300には、ライン
メモリ216と同数のアドレスカウンタ(A〜J)30
2、RAM200と符号器1500、復号器1300な
どの処理ブロックとの間のDMA転送を制御するDMA
制御部304、アドレスカウンタ302を選択するため
のセレクタ306などが含まれる。RAM200上のラ
インメモリ216の領域、アドレスカウンタ302及び
アドレスカウンタ502は1対1に対応している。符号
化処理と復号化処理のための参照ライン用ラインメモリ
は2チャネル分あるため、外部のMPUは、画像処理装
置1に符号器1500、復号器1300が2個あるよう
に動作させることが容易である。
The internal bus DMA control unit 300 has the same number of address counters (A to J) 30 as the line memories 216.
2. DMA for controlling DMA transfer between the RAM 200 and processing blocks such as the encoder 1500 and the decoder 1300
A control unit 304, a selector 306 for selecting the address counter 302, and the like are included. The area of the line memory 216 on the RAM 200, the address counter 302, and the address counter 502 have a one-to-one correspondence. Since the reference line line memories for the encoding process and the decoding process are for two channels, it is easy for the external MPU to operate so that the image processing device 1 has two encoders 1500 and two decoders 1300. Is.

【0043】図13は、ワーキングレジスタ500上に
定義されるアドレスレジスタ502の構造を示す。IN
PUTアドレスレジスタが例として示されているが、他
のアドレスレジスタ502の構造も同様である。図示の
ように、アドレスレジスタ502の下位11ビットはラ
インメモリの先頭アドレスである。上位の4ビット(A
〜E)はフラグビットで、その意味は次の通りである。 A:”1”のとき対応ラインメモリに有効データが有る
ことを示す。 B:”1”のとき対応ラインメモリの内容が縮小対象デ
ータであることを示す。 C:”1”のとき対応ラインメモリの内容が最終ライン
データであることを示す。 D:このフラグはコマンド処理内容によって意味が異な
る。 E:”1”のとき対応ラインメモリの内容が拡大対象デ
ータであることを示す。 マイクロプログラムは、これらのフラグビットの操作や
チェックを算術論理演算部1200を用いて行なうこと
ができる。
FIG. 13 shows the structure of the address register 502 defined on the working register 500. IN
Although the PUT address register is shown as an example, the structure of other address registers 502 is similar. As shown, the lower 11 bits of the address register 502 are the start address of the line memory. Upper 4 bits (A
~ E) are flag bits, and their meanings are as follows. A: "1" indicates that the corresponding line memory has valid data. B: "1" indicates that the content of the corresponding line memory is reduction target data. When C: "1", the content of the corresponding line memory is the final line data. D: This flag has a different meaning depending on the command processing content. E: "1" indicates that the content of the corresponding line memory is the enlargement target data. The microprogram can operate and check these flag bits by using the arithmetic and logic operation unit 1200.

【0044】圧縮伸長装置の動作 以上のように構成された圧縮伸長装置1について、図2
に示したファクシミリ装置に用いられた場合の動作を説
明する。
Operation of the compression / expansion device FIG. 2 shows the compression / expansion device 1 configured as described above.
The operation when used in the facsimile apparatus shown in FIG.

【0045】圧縮伸長装置1の画像データの入出力経路
は次の通りである。 a)読取画像処理部21→圧縮伸長装置1 b)読取画像処理部21→RAM28→圧縮伸長装置1 C)圧縮伸長装置1→記録画像処理部22 d)圧縮伸長装置1→RAM28→記録画像処理部22 圧縮伸長装置1のイメージバス制御部100は、このよ
うな画像データのDMA転送をサポートしているが、読
取画像処理部21からRAM28に転送するのがDMA
チャネル0、RAM28から記録画像処理部22に転送
するのがDMAチャネル1である(図2参照)。
The input / output path of the image data of the compression / expansion device 1 is as follows. a) read image processing unit 21 → compression / expansion device 1 b) read image processing unit 21 → RAM 28 → compression / expansion device 1 C) compression / expansion device 1 → recorded image processing unit 22 d) compression / expansion device 1 → RAM 28 → recorded image processing The image bus control unit 100 of the compression / decompression device 1 supports the DMA transfer of such image data.
It is the DMA channel 1 that is transferred from the channel 0 and the RAM 28 to the recording image processing unit 22 (see FIG. 2).

【0046】圧縮動作の説明 (概要)プロセッサブロック13のMPU(図1)は、
圧縮伸長装置1に対してマクロコマンドを発行すること
によって動作の指示を与える。MPUはまず、システム
バス制御部400内の各種レジスタの設定を行なう。こ
の中には、符号化チャネルCH0、CH1の指示も含ま
れる。このレジスタ設定の終了後、システムバス制御部
400内の指定チャネルのコマンドレジスタ402Aま
たは404B(図7)に符号化コマンドを書き込む。こ
のコマンドはセレクタ1609を通ってマクロROM1
608でデコードされ、符号化プログラムのスタートア
ドレスが出力される。このアドレスからマイクロROM
1601内の符号化プログラムが実行される。圧縮伸長
装置1内の各処理ブロックは、マイクロROM1601
に書かれたプログラムで制御される。
Description of compression operation (outline) The MPU (FIG. 1) of the processor block 13 is
By issuing a macro command to the compression / expansion device 1, an operation instruction is given. The MPU first sets various registers in the system bus control unit 400. This also includes instructions for coded channels CH0 and CH1. After this register setting is completed, the encoded command is written in the command register 402A or 404B (FIG. 7) of the designated channel in the system bus control unit 400. This command passes through the selector 1609 to the macro ROM 1
It is decoded in 608 and the start address of the encoding program is output. Micro ROM from this address
The encoding program in 1601 is executed. Each processing block in the compression / expansion device 1 has a micro ROM 1601.
It is controlled by a program written in.

【0047】既に説明したように、符号化コマンド処理
の場合に定義されるラインメモリ216とアドレスレジ
スタ502は図10に示すとおりである。各ラインメモ
リの内容または役割は次の通りである。 INPUT :入力ラインの画像データ(入力バッフ
ァ) CONVR :主走査変換前ラインの画像データ CONVW :主走査変換後ラインの画像データ CODING:符号化ラインの画像データ BC1 :符号データ(出力バッファ) BC :符号データ(出力バッファ) C0R :符号化チャネル0用の参照ラインの画像
データ C1R :符号化チャネル1用の参照ラインの画像
データ D0R :復号化チャネル0用の参照ラインの画像
データ D1R :復号化チャネル1用の参照ラインの画像
データ (図16に沿った説明)図16に符号化プログラムのフ
ローの一例を簡略化して示す。このフローに沿って圧縮
動作を詳細に説明する。符号化コマンドが発行される
と、処理2001で必要なパラメータをRAM200の
パラメータレジスタセット領域202(CH0)または
204(CH1)からワーキングレジスタ500にロー
ドする。アドレスレジスタ502には同名のラインメモ
リ216の領域の先頭アドレスが設定される。
As described above, the line memory 216 and the address register 502 defined in the case of the encoded command processing are as shown in FIG. The contents or roles of each line memory are as follows. INPUT: Image data of input line (input buffer) CONVR: Image data of line before main scanning conversion CONVW: Image data of line after main scanning conversion CODING: Image data of encoded line BC1: Code data (output buffer) BC: Code Data (output buffer) C0R: reference line image data for encoding channel 0 C1R: reference line image data for encoding channel 1 D0R: reference line image data for decoding channel 0 D1R: decoding channel 1 Image data of reference line for reference (explanation along FIG. 16) FIG. 16 shows a simplified example of the flow of the encoding program. The compression operation will be described in detail along this flow. When the encoded command is issued, the parameters required in the process 2001 are loaded into the working register 500 from the parameter register set area 202 (CH0) or 204 (CH1) of the RAM 200. The start address of the area of the line memory 216 having the same name is set in the address register 502.

【0048】処理2002、処理2003で、イメージ
バス11上のDMA転送要求(読取画像処理部21から
RAM28への転送要求、RAM28から記録画像処理
部22への転送要求)があった時に、DMA転送処理を
行なう。マイクロプログラムは、DMA転送要求があれ
ば、イメージバス制御部100のスタートアドレスレジ
スタ110にスタートアドレスを、転送数レジスタ11
4に転送ワード数を、それぞれ設定し、起動をかけ、起
動フラグを”1”にセットする(図9)。この後、イメ
ージバス制御部100がDMA転送を実行する。
When a DMA transfer request (transfer request from the read image processing unit 21 to the RAM 28 or a transfer request from the RAM 28 to the recording image processing unit 22) on the image bus 11 is made in the processes 2002 and 2003, the DMA transfer is performed. Perform processing. If there is a DMA transfer request, the microprogram stores the start address in the start address register 110 of the image bus control unit 100 and the transfer number register 11
The number of transfer words is set to 4, each is activated, and the activation flag is set to "1" (FIG. 9). After that, the image bus control unit 100 executes the DMA transfer.

【0049】次の処理2004は、イメージバス11上
のRAM28(ラインバッファ)より、圧縮伸長装置1
のRAM200上のINPUTラインメモリに1ライン
の画像データを入力する処理である。
In the next step 2004, the compression / expansion device 1 is loaded from the RAM 28 (line buffer) on the image bus 11.
Is a process of inputting one line of image data to the INPUT line memory on the RAM 200.

【0050】(図17に沿った説明:画像データ入力)
この画像データ入力処理のフローを図17に示す。図1
7において、マイクロプログラムは処理2101、21
02で、イメージバス制御部100が動作中でなく、か
つイメージバス制御部の起動フラグがリセット状態であ
ることを確認する。これを確認できた場合、処理210
3で、内部バスDMA制御部300内のアドレスカウン
タA(図10)に、INPUTアドレスレジスタよりI
NPUTラインメモリの先頭アドレスを内部データバス
1800経由で設定する。処理2104で、イメージバ
ス制御部100のアドレスレジスタ104(図9)の一
つに外部RAM28のアドレスを設定する。ここでは、
読取画像処理部21→RAM28→圧縮伸長装置1の経
路で画像データを入力する場合を想定している。
(Description with reference to FIG. 17: image data input)
The flow of this image data input processing is shown in FIG. FIG.
7, the microprogram executes the processes 2101 and 21.
In 02, it is confirmed that the image bus control unit 100 is not in operation and the activation flag of the image bus control unit is in the reset state. If this can be confirmed, the process 210
In step 3, the address counter A (FIG. 10) in the internal bus DMA control unit 300 is loaded with I from the INPUT address register.
The start address of the NPUT line memory is set via the internal data bus 1800. In process 2104, the address of the external RAM 28 is set in one of the address registers 104 (FIG. 9) of the image bus controller 100. here,
It is assumed that image data is input through the path of the read image processing unit 21 → RAM 28 → compression / decompression device 1.

【0051】処理2105で、イメージバス制御部10
0内の転送数レジスタ114(図9)の一つに1ライン
のワード数を設定する。処理1706でイメージバス制
御部100をメモリリードモードに設定し、処理210
7で起動し、処理2108で起動フラグを”1”にセッ
トする。起動後は、1ワードのデータをイメージバス制
御部100がリードする毎にインクリメンタ112はメ
モリリードアドレスをインクリメントし、デクリメンタ
116は転送ワード数をデクリメントする。イメージバ
ス制御部100に読み込まれた画像データは、内部デー
タバス(BEバス)1800経由でRAM200上のI
NPUTラインメモリに転送される。この転送は、イメ
ージバス制御部100がRAM200へのDMA転送要
求を出し、内部バスDMA制御部300内のDMA制御
部304が内部データバス1800の制御権をイメージ
バス制御部100に与えることで実行される。1ワード
の画像データをINPUTラインメモリに転送すると、
内部バスDMA制御部300内のアドレスカウンタAも
インクリメントされる。
In step 2105, the image bus controller 10 is executed.
The number of words in one line is set in one of the transfer count registers 114 (FIG. 9) in 0. In processing 1706, the image bus control unit 100 is set to the memory read mode, and processing 210
7 is started, and the start flag is set to "1" in process 2108. After activation, the incrementer 112 increments the memory read address and the decrementer 116 decrements the transfer word number each time the image bus control unit 100 reads 1-word data. The image data read by the image bus control unit 100 is stored in the I / O on the RAM 200 via the internal data bus (BE bus) 1800.
It is transferred to the NPUT line memory. This transfer is executed by the image bus control unit 100 issuing a DMA transfer request to the RAM 200, and the DMA control unit 304 in the internal bus DMA control unit 300 giving the control right of the internal data bus 1800 to the image bus control unit 100. To be done. When 1-word image data is transferred to the INPUT line memory,
The address counter A in the internal bus DMA control unit 300 is also incremented.

【0052】イメージバス制御部100に設定した転送
ワード数がゼロになるまで、以上の動作を繰り返す。転
送中は処理2101の判断ですぐリターンする。1ライ
ンの転送が終了すると、INPUTラインメモリに1ラ
イン分の画像データが入る。処理2109以降は1ライ
ン入力後の処理である。処理2109では、処理210
8でセットした起動フラグをリセットする。処理211
0で、次のラインが入っている外部RAM28の先頭ア
ドレスを計算する。処理2111では、符号化コマンド
で連続して処理する処理ライン数をデクリメントし、残
りの処理ライン数を計算する。処理2112で、処理2
111の結果より直前に入力したラインが最終ラインか
どうかを判断する。最終ラインのときは、処理2113
でINPUTアドレスレジスタのCフラグを”1”にセ
ットする。処理2114でINPUTアドレスレジスタ
のAフラグを”1”にセットする。このAフラグやCフ
ラグの状態は、後述するようにアドレスレジスタの内容
を交換する過程で後続の処理に引き渡される。
The above operation is repeated until the number of transfer words set in the image bus control unit 100 becomes zero. During the transfer, the process 2101 returns immediately after the determination. When the transfer of one line is completed, the image data for one line is stored in the INPUT line memory. The process 2109 and subsequent processes are processes after one line is input. In process 2109, process 210
The start flag set in 8 is reset. Process 211
At 0, the start address of the external RAM 28 containing the next line is calculated. In process 2111, the number of processing lines to be continuously processed by the encoded command is decremented, and the number of remaining processing lines is calculated. In Process 2112, Process 2
Based on the result of 111, it is determined whether the line input immediately before is the final line. If the last line, processing 2113
Then, the C flag of the INPUT address register is set to "1". In process 2114, the A flag of the INPUT address register is set to "1". The states of the A flag and the C flag are passed to the subsequent processing in the process of exchanging the contents of the address register as described later.

【0053】図14は、INPUTラインメモリに1ラ
イン分のデータが入った時の状態を示したものである。
ここでは、INPUTラインメモリはアドレスXXXよ
り始まるメモリ領域216Aであると仮定している。画
像データが入り終わると、INPUTアドレスレジスタ
のAフラグは”1”にセットされ、INPUTラインメ
モリに有効データが有ることが分かる。CONVRアド
レスレジスタはYYYを示し、そのAフラグは”0”で
あるから、CONVRラインメモリがアドレスYYYよ
り始まるメモリ領域216Bで、これが空いていること
が分かる。
FIG. 14 shows a state when one line of data is stored in the INPUT line memory.
Here, it is assumed that the INPUT line memory is the memory area 216A starting from the address XXX. When the image data is completely input, the A flag of the INPUT address register is set to "1", and it can be seen that there is valid data in the INPUT line memory. Since the CONVR address register indicates YYY and its A flag is "0", it can be seen that the CONVR line memory is vacant in the memory area 216B starting from the address YYY.

【0054】(図16に沿った説明の続き)図16のフ
ローに戻る。マイクロプログラムは、処理2005でI
NPUTアドレスレジスタのA=1をチェックし、A=
1ならば処理2006でCONVRアドレスレジスタの
A=0のチェックを行なう。INPUTのA=1かつC
ONVRのA=0ならば、すなわちINPUTラインメ
モリに有効データがあって、CONVRラインメモリが
空いている場合、処理2007でINPUTアドレスレ
ジスタとCONVRアドレスレジスタの内容を交換す
る。
(Continuing the Description According to FIG. 16) The process returns to the flow of FIG. The microprogram I in step 2005
Check A = 1 in the NPUT address register, A =
If it is 1, in processing step 2006, A = 0 of the CONVR address register is checked. INPUT A = 1 and C
If A = 0 in ONVR, that is, if there is valid data in the INPUT line memory and the CONTVR line memory is empty, the contents of the INPUT address register and the CONTVR address register are exchanged in step 2007.

【0055】(ラインメモリ間のデータ受け渡し)この
ラインメモリ間のデータの受け渡しを図14と図15に
よって説明する。図14は処理2007の実行前の状態
である。図15はアドレスレジスタINPUT、CON
VRの内容を入れ換えた後の状態である。図15におい
て、CONVRアドレスレジスタはメモリ領域216の
先頭アドレスXXXを指し、INPUTアドレスレジス
タはメモリ領域216Bの先頭アドレスYYYを指す。
これは実質上、INPUTラインメモリに入力されたデ
ータがCONVRラインメモリに渡され、INPUTラ
インメモリに空き領域が渡されたということである。こ
のように、RAM200上での実際のデータ移動を伴わ
ない手法であるため、ラインメモリ間のデータ受け渡し
は瞬時に行なわれる。 (図16に沿った説明の続き)次の処理2008は、主
走査方向の拡大縮小(画像変換)処理である。この処理
では、CONVRラインメモリのデータを変換してCO
NVWラインメモリに書き込む。この処理2008にお
いて、マイクロプログラムは画像変換部1400を起動
する前に次の設定を行なう。内部バスDMA制御部30
0内のアドレスカウンタB、CにアドレスレジスタCO
NVR、CONVWに設定されている先頭アドレスをロ
ードする(図10)。プロセッサブロック13のMPU
(図1)によってRAM200内のパラメータレジスタ
208に設定された拡大縮小率を、画像変換部1400
内のレジスタ1404(図5)に設定する。CONVR
ラインのワード数をレジスタ1412に設定する。この
ような初期設定後、マイクロプログラムは画像変換部1
400に起動をかけ、当該処理2008を抜ける。
(Data Transfer between Line Memories) Data transfer between the line memories will be described with reference to FIGS. 14 and 15. FIG. 14 shows a state before execution of the process 2007. FIG. 15 shows address registers INPUT and CON.
This is the state after the contents of the VR have been exchanged. In FIG. 15, the CONVR address register indicates the start address XXX of the memory area 216, and the INPUT address register indicates the start address YYY of the memory area 216B.
This means that the data input to the INPUT line memory is passed to the CONVR line memory, and the empty area is passed to the INPUT line memory. As described above, since the method does not involve the actual data movement on the RAM 200, the data transfer between the line memories is instantaneously performed. (Continued from the description according to FIG. 16) The next process 2008 is a scaling (image conversion) process in the main scanning direction. In this process, the data in the CONVR line memory is converted to CO
Write to NVW line memory. In this process 2008, the microprogram makes the following settings before activating the image conversion unit 1400. Internal bus DMA control unit 30
Address counters CO in the address counters B and C in 0
The head address set in NVR and CONVW is loaded (FIG. 10). MPU of processor block 13
The scaling ratio set in the parameter register 208 in the RAM 200 according to FIG.
It is set in the register 1404 (FIG. 5). CONVR
The number of words in the line is set in the register 1412. After such initial setting, the microprogram is converted into the image conversion unit 1.
400 is activated, and the process 2008 is exited.

【0056】CONVRラインメモリの画像データは変
化画素検出部700へDMA転送されて変化画素データ
に変換され、そのアドレス情報がレジスタ1402に入
力する。乗算器1406によってレジスタ1402、1
404の内容が乗算され、変換後の変化画素アドレスデ
ータが得られる。このデータとレジスタ1402内の色
情報をもとに描画部1408で変換後の画像データが作
られる。得られた変換後画像データは、CONVWライ
ンメモリにDMA転送される。この場合のCONVRラ
インメモリからのDMA転送と、CONVWラインメモ
リへのDMA転送方法は、イメージバス制御部100か
らRAM200へのDMA転送と同様である。1ライン
の転送が終了すると、CONVWアドレスレジスタのA
フラグを”1”にセットする。
The image data in the CONVR line memory is DMA-transferred to the changed pixel detection unit 700 and converted into changed pixel data, and its address information is input to the register 1402. Registers 1402, 1 by multiplier 1406
The contents of 404 are multiplied to obtain the changed pixel address data after conversion. Based on this data and the color information in the register 1402, the drawing unit 1408 creates converted image data. The obtained converted image data is DMA-transferred to the CONVW line memory. In this case, the DMA transfer from the CONVR line memory and the DMA transfer method to the CONVW line memory are the same as the DMA transfer from the image bus control unit 100 to the RAM 200. When the transfer of one line is completed, A of the CONVW address register is
Set the flag to "1".

【0057】副走査方向縮小が必要な場合、1ライン主
走査変換に引き続きCONVWラインメモリ上のライン
データが間引きラインであるか否かの判定とフラグ制御
が行なわれる。この処理の内容については後述する。間
引きラインと判定された場合、CONVWアドレスレジ
スタのAフラグはセットされない。処理2009、20
10で、変換後の有効データの有無と符号化用のCOD
INGラインメモリが空いているかどうか判断する。C
ONVWアドレスレジスタのA=1かつCODINGア
ドレスレジスタのA=0のときには、次の処理2011
でアドレスレジスタCONVW、CODINGの内容を
交換し、交換後の先頭アドレスを対応したアドレスカウ
ンタ302にロードすることによって、ラインメモリC
ONVW、CODING間のデータの受け渡しを行な
う。間引きラインの場合は、この交換は行なわれない。
When reduction in the sub-scanning direction is required, determination is made as to whether or not the line data on the CONVW line memory is a thinning line and flag control is performed following the one-line main scanning conversion. The contents of this processing will be described later. When it is determined that the line is the thinning line, the A flag of the CONVW address register is not set. Process 2009, 20
10, whether or not there is valid data after conversion and the COD for encoding
It is determined whether the ING line memory is empty. C
When A = 1 of the ONVW address register and A = 0 of the CODING address register, the next processing 2011
By exchanging the contents of the address registers CONVW and CODING, and loading the exchanged start address into the corresponding address counter 302, the line memory C
Transfers data between ONVW and CODING. In the case of thinning lines, this exchange is not done.

【0058】処理2012はCODINGラインメモリ
のデータの符号化処理である。マイクロプログラムは、
符号器1500が動作中でなければ、符号器1500に
対し符号化モード(MH、MR、MMR符号化など)を
設定し、またレジスタ1520に1ライン幅を設定し、
起動をかける。ただし間引きラインの場合、CONVW
アドレスレジスタのAフラグは”0”であるので、符号
器1500を起動しない。起動された符号器1500
は、CODINGラインメモリの画像データの符号化処
理を、符号化参照ラインメモリC0R(CH0)、C1
R(CH1)のいづれかのデータを参照して行ない、そ
の結果を符号データメモリBC1に書き込む。CODI
NGラインメモリからのデータ読み出し、BC1ライン
メモリへのデータ書き込みは内部バスDMA制御部30
0を通して行なわれる。内部バスDMA制御部300の
動きはイメージバス制御部100からRAM200への
データ転送の場合と同様である。
The process 2012 is a process of encoding the data in the CODING line memory. The micro program is
If the encoder 1500 is not in operation, the encoding mode (MH, MR, MMR encoding, etc.) is set for the encoder 1500, and one line width is set in the register 1520.
Start up. However, in case of thinning line, CONVW
Since the A flag of the address register is "0", the encoder 1500 is not activated. Encoder 1500 activated
Encodes the image data of the CODING line memory using the encoded reference line memories C0R (CH0) and C1.
The data is read by referring to any data of R (CH1), and the result is written in the code data memory BC1. CODI
The internal bus DMA control unit 30 reads data from the NG line memory and writes data to the BC1 line memory.
Performed through 0. The operation of the internal bus DMA control unit 300 is the same as the case of data transfer from the image bus control unit 100 to the RAM 200.

【0059】符号化ラインの変化画素アドレスは変化画
素検出部800によって検出され、参照ラインの変化画
素アドレスは変化画素検出部600により検出される。
1ラインの符号化が終了すると、BC1アドレスレジス
タのAフラグは”1”にセットされる。CODINGア
ドレスレジスタとアドレスカウンタC0R(CH0)ま
たはC1R(CH1)の内容交換によって、参照ライン
が更新される。マイクロプログラムは、処理2013、
2014で符号化の終了とBCラインメモリの空きを確
認すると、処理2015でアドレスレジスタBC1、B
Cの内容を交換することによって、ラインメモリBC
1、BCのデータの受け渡しを行なう。
The changed pixel address of the encoded line is detected by the changed pixel detecting section 800, and the changed pixel address of the reference line is detected by the changed pixel detecting section 600.
When the encoding of one line is completed, the A flag of the BC1 address register is set to "1". The reference line is updated by exchanging the contents of the CODING address register and the address counter C0R (CH0) or C1R (CH1). The microprogram is a process 2013,
When the end of encoding and the vacancy of the BC line memory are confirmed in 2014, the address registers BC1 and B1 are processed in processing 2015.
By exchanging the contents of C, the line memory BC
1. The data of BC is transferred.

【0060】処理2016では、BCラインメモリから
システムバス10に符号データをDMA転送によって出
力させる。この際に、出力する符号量を知る必要がある
が、符号化終了時に符号器1500内のカウンタ152
2(図3)の内容を参照することで符号量が分かる。処
理2017では設定ライン数の符号化が終了したかどう
かを判断し、終了していなければ処理2002に戻る。
符号化が終了していれば、処理2018で符号データが
全て外部に出るのを待って符号化コマンドの処理を終了
する。符号化コマンドの終了は、Cフラグが”1”に設
定された最終ラインの符号化が済んだかどうかで判断す
る。Cフラグの状態は次のようにアドレスレジスタを伝
搬する。 INPUT、C=1→CONVR、C=1 CONVRのC=1ならば画像変換終了後 CONV
W、C=1 →CODING、C=1 (圧縮動作のまとめ)以上に説明したように、内部RA
M200上のラインメモリにデータが詰まった後は、画
像データの入力処理(処理2004)、画像変換処理
(処理2008)、符号化処理(処理2012)、符号
データ出力処理(処理2016)が並列に動作する。更
に、これらと並行して、イメージバス側のDMA転送
(処理2002、処理2003)もできる。従って、本
圧縮伸長装置1の圧縮処理時間は近似的に次式によって
表わすことができる。 処理時間= max{画像入力時間、画像変換時間、符号化時間、符号出力時間} (式2) 図18は符号化コマンド処理におけるラインメモリの使
い方を示している。この図から分かるように、ラインメ
モリINPUT、CONVRをトグルで使用し、ライン
メモリCONVW、CODING、C0R/C1Rを循
環して使用し、ラインメモリBC1、BCをトグルで使
用する。なお、主走査変換を行なわない場合、図18に
付記されているように、CONVWラインメモリのデー
タは直接的にCODINGラインメモリに渡される。ま
た、以上の説明では画像データをイメージバス11側か
ら入力したが、図18に示されるように、本圧縮伸長装
置1は符号化すべきデータをシステムバス10からも入
力できる。同様に、以上の説明では符号化データをRA
M200を経由させシステムバス10に出力したが、符
号器1500より直接的にシステムバス10に出力する
ことも可能である。
In process 2016, code data is output from the BC line memory to the system bus 10 by DMA transfer. At this time, it is necessary to know the code amount to be output, but at the end of encoding, the counter 152 in the encoder 1500
The code amount can be known by referring to the contents of 2 (FIG. 3). In step 2017, it is determined whether or not the encoding of the set number of lines has been completed. If not, the process returns to step 2002.
If the encoding is completed, the process of the encoding command is completed after waiting for all the code data to be output outside in step 2018. The end of the encoding command is determined by whether or not the encoding of the final line with the C flag set to "1" has been completed. The state of the C flag propagates through the address register as follows. INPUT, C = 1 → CONVR, C = 1 If C = 1 in CONVR, after the image conversion is completed CONV
W, C = 1 → CODING, C = 1 (Summary of compression operation) As described above, the internal RA
After the line memory on the M200 is clogged with data, the image data input process (process 2004), image conversion process (process 2008), encoding process (process 2012), and code data output process (process 2016) are performed in parallel. Operate. Further, in parallel with this, DMA transfer (process 2002, process 2003) on the image bus side can be performed. Therefore, the compression processing time of the main compression / expansion device 1 can be approximately expressed by the following equation. Processing time = max {image input time, image conversion time, encoding time, code output time} (Equation 2) FIG. 18 shows how to use the line memory in the encoding command processing. As can be seen from this figure, the line memories INPUT and CONVR are used in a toggle, the line memories CONVW, CODING and C0R / C1R are used in a circulating manner, and the line memories BC1 and BC are used in a toggle. When the main scanning conversion is not performed, the data in the CONVW line memory is directly transferred to the CODING line memory, as shown in FIG. Further, although the image data is input from the image bus 11 side in the above description, the compression / expansion device 1 can also input the data to be encoded from the system bus 10 as shown in FIG. Similarly, in the above description, the encoded data is RA
Although it is output to the system bus 10 via the M200, it is also possible to directly output to the system bus 10 from the encoder 1500.

【0061】(概要)プロセッサブロック13のMPU
はまず、復号化コマンド処理に関する各種レジスタの設
定を行なう。この中には、復号化チャネル0、1(CH
0、CH1)の指定も含まれる。このレジスタ設定の終
了後、MPUはシステムバス制御部400内のコマンド
レジスタ402Aまたは404Aに復号化コマンドを書
き込む。このコマンドは、マクロROM1608で解読
され、復号化プログラムのスタートアドレスが出力され
る。このアドレスからマイクロROM1601内の復号
化プログラムが実行される。
(Outline) MPU of the processor block 13
First, various registers for decoding command processing are set. In this, decoding channels 0, 1 (CH
0, CH1) designation is also included. After the completion of this register setting, the MPU writes the decryption command in the command register 402A or 404A in the system bus control unit 400. This command is decoded by the macro ROM 1608 and the start address of the decoding program is output. The decoding program in the micro ROM 1601 is executed from this address.

【0062】既に説明したように、復号化コマンド処理
の場合に定義されるラインメモリ216とアドレスレジ
スタ502は図11に示す通りである。各ラインメモリ
の内容または役割は次の通りである。 DECODE:復元ラインの画像データ D0R :復号化チャネル0用参照ラインの画像デ
ータ D1R :復号化チャネル1用参照ラインの画像デ
ータ CONVR :変換前ラインの画像データ CONVW :変換後ラインの画像データ OUT2 :出力ラインバッファ OUT1 :出力ラインバッファ OUT :出力ラインバッファ 符号データはラインメモリD0R(CH0)またはD1
R(CH1)のデータを参照して復号され、復元された
データはDECODEラインメモリに展開される。1ラ
インの復号が終了すると、DECODEラインメモリの
内容はラインメモリD0RまたはD1Rに渡され、次の
ラインの復号の際に参照される。それと同時にラインメ
モリD0RまたはD1Rの内容はラインメモリCONV
Rに渡されて、画像変換の対象となる。画像変換はCO
NVRラインメモリのデータに対して行なわれ、変換後
の画像データはCONVWラインメモリに書き込まれ
る。
As already described, the line memory 216 and the address register 502 defined in the case of the decoding command processing are as shown in FIG. The contents or roles of each line memory are as follows. DECODE: Image data of restored line D0R: Image data of reference line for decoding channel 0 D1R: Image data of reference line for decoding channel 1 CONVR: Image data of line before conversion CONVW: Image data of line after conversion OUT2: Output Line buffer OUT1: Output line buffer OUT: Output line buffer Code data is line memory D0R (CH0) or D1
The data restored by decoding with reference to the data of R (CH1) is expanded in the DECODE line memory. When the decoding of one line is completed, the contents of the DECODE line memory are transferred to the line memory D0R or D1R and are referred to when decoding the next line. At the same time, the contents of the line memory D0R or D1R are stored in the line memory CONV.
It is passed to R for image conversion. Image conversion is CO
This is performed for the data in the NVR line memory, and the converted image data is written in the CONVW line memory.

【0063】CONVWラインメモリ内の変換後データ
は、OUT2ラインメモリが空いていれば、すぐにOU
T2ラインメモリに渡される。OUT2ラインメモリの
データは、OUT1ラインメモリが空いていれば、すぐ
にOUT1ラインメモリに渡される。OUT1ラインメ
モリのデータは、OUTラインメモリが空いていれば、
すぐにOUTラインメモリに渡り、このデータが外部に
出力される。このように、CONVW、OUT2、OU
T1、OUTの各ラインメモリはライン単位のFIFO
バッファとして動作する。 (図19に沿った説明)図19は復号化プログラムのフ
ローの一例を示す。このフローに沿って、復号化コマン
ド処理を説明する。処理3001では初期設定として、
復号化コマンド処理に必要なパラメータをRAM200
内のパラメータレジスタセット202(CH0)または
204(CH1)から、ワーキングレジスタ500にロ
ードする。
The converted data in the CONVW line memory is OU immediately after the OUT2 line memory is empty.
Passed to T2 line memory. The data in the OUT2 line memory is immediately transferred to the OUT1 line memory if the OUT1 line memory is empty. If the OUT line memory is empty, the data in the OUT1 line memory is
Immediately, this data is output to the OUT line memory and output to the outside. In this way, CONVW, OUT2, OU
Each T1 and OUT line memory is a line-by-line FIFO
Acts as a buffer. (Description along FIG. 19) FIG. 19 shows an example of the flow of the decryption program. The decryption command processing will be described along this flow. In process 3001, as an initial setting,
RAM 200 for parameters required for decryption command processing
The working register 500 is loaded from the parameter register set 202 (CH0) or 204 (CH1) in the inside.

【0064】処理3002で1ラインの復号化を行なわ
せるが、この処理については後に図20を参照し詳細に
説明する。
One line is decoded in the process 3002, which will be described later in detail with reference to FIG.

【0065】処理3003でDECODEアドレスレジ
スタのAフラグをチェックし、1ラインの復元が終了し
たかどうかを判断する。処理3004でCONVRライ
ンメモリが空いているかどうかを判断する。DECOD
EアドレスレジスタのA=1かつCONVRアドレスレ
ジスタのA=0であれば、処理3005でアドレスレジ
スタCONVRとアドレスレジスタD0RまたはD1R
の内容を交換し、続いて処理3006でアドレスレジス
タD0RまたHD1RとアドレスレジスタDECODE
の内容を交換してラインメモリ間のデータの受け渡しを
行なう。これにより、ラインメモリD0RまたはD1R
に今復元したデータが渡り、次のラインを復元する準備
ができる。CONVRラインメモリに参照ラインとして
使い終わったデータが渡り、DECODEラインメモリ
に変換を終了したデータのメモリ領域が渡される。これ
で次のラインを復元するための準備と次の画像変換をす
る準備ができる。
In process 3003, the A flag of the DECODE address register is checked to determine whether the restoration of one line is completed. In process 3004, it is determined whether the CONVR line memory is empty. DECODE
If A = 1 of the E address register and A = 0 of the CONVR address register, the address register CONVR and the address register D0R or D1R are processed in processing 3005.
Of the address register D0R or HD1R and the address register DECODE in processing 3006.
The contents of are exchanged and data is exchanged between line memories. As a result, the line memory D0R or D1R
The data you just restored is now crossed and you are ready to restore the next line. The data that has been used as a reference line is passed to the CONVR line memory, and the memory area of the data that has been converted is passed to the DECODE line memory. Now you are ready to restore the next line and the next image conversion.

【0066】処理3007、3008で、変換すべきデ
ータの有無とCONVWラインメモリの空きをチェック
する。処理3009で、画像変換部1400によって主
走査方向の画像変換を行なわせる。この処理の内容は図
16の処理2008と同じである。また、副走査方向変
換が必要な場合は、主走査変換に続いて、間引きライン
の判定とフラグ制御が行なわれるが、その内容について
は後に詳述する。
In steps 3007 and 3008, the presence / absence of data to be converted and the availability of the CONVW line memory are checked. In process 3009, the image conversion unit 1400 performs image conversion in the main scanning direction. The contents of this process are the same as the process 2008 of FIG. Further, when sub-scanning direction conversion is necessary, thinning line determination and flag control are performed subsequent to main scanning conversion, the details of which will be described later.

【0067】処理3010はラインバッファの制御であ
る。その詳細は、図21を参照して後述する。処理30
11で出力すべきデータの有無をチェックする。処理3
012でOUTラインメモリのデータの外部出力を行な
う。処理3013、3014では、イメージバス側のD
MA転送の要求があるときに、その転送処理を行なう。
これは図16に示された処理2002、2003と同じ
である。
Process 3010 is control of the line buffer. The details will be described later with reference to FIG. Processing 30
At 11, the presence or absence of data to be output is checked. Process 3
At 012, the data of the OUT line memory is externally output. In processes 3013 and 3014, D on the image bus side
When there is a request for MA transfer, the transfer process is performed.
This is the same as the processes 2002 and 2003 shown in FIG.

【0068】処理3015で復号化コマンドの終了判断
を行ない、終了条件を満足していなければ処理3002
に戻る。復号化コマンドの終了条件は次の通りである。 (1)設定ライン数分の復号化処理を終了した (2)RTC符号を検出した (3)MMR復号化処理で復号エラーを検出した 終了条件を満足したときは、処理3016で、次の復号
化コマンドに備えてCONVRラインメモリに移ったデ
ータをラインメモリD0RまたはD1Rに戻す。
In step 3015, the end of the decryption command is determined, and if the end condition is not satisfied, step 3002
Return to The conditions for ending the decryption command are as follows. (1) Decoding processing for the set number of lines has been completed (2) RTC code has been detected (3) Decoding error has been detected in MMR decoding processing The data transferred to the CONVR line memory in preparation for the conversion command is returned to the line memory D0R or D1R.

【0069】(図20に沿った説明:1ライン復号化)
図20は図19の1ライン復号化処理3002のフロー
である。処理3101で復号器1300の動作中を示す
状態信号をチェックする。動作中でないときは、起動さ
れたか否かを判断するため、処理3102で復号器13
00の起動フラグをチェックする。起動フラグがセット
されている(起動済み)ことを確認した場合は処理31
03に進み、起動フラグがリセットされている場合は処
理3115に進む。また復号器1300が動作中である
時は直ちにリターンする。
(Description along FIG. 20: 1-line decoding)
FIG. 20 is a flow of the 1-line decoding process 3002 of FIG. In process 3101, the status signal indicating that the decoder 1300 is in operation is checked. If it is not in operation, in step 3102, the decoder 13
Check the start flag of 00. If it is confirmed that the startup flag is set (started), process 31
03, and if the activation flag is reset, proceed to processing 3115. When the decoder 1300 is in operation, it immediately returns.

【0070】復号器1300が動作中でない場合の処理
フローは次の通りである。処理3115で、復号器13
00の起動の準備のために、内部バス制御部300内の
アドレスカウンタA、アドレスカウンタIまたはJに、
ワーキングレジスタ500上のアドレスレジスタDEC
ODE、アドレスレジスタD0RまたはD1Rの内容を
それぞれロードする。
The processing flow when the decoder 1300 is not in operation is as follows. In process 3115, the decoder 13
In order to prepare for starting 00, the address counter A and the address counter I or J in the internal bus control unit 300 are
Address register DEC on working register 500
The contents of ODE and address register D0R or D1R are loaded respectively.

【0071】以後、復号器1300からのDMA転送要
求に応じて1ワードアクセスする毎に、これらのアドレ
スカウンタは自動的にインクリメントされ、復元データ
の書き込みアドレスと参照ラインデータの読み出しアド
レスを指定する。処理3116で、復号器1300のレ
ジスタ1324と参照ライン変化画素検出部600の内
部レジスタ(図示されていない)に、1ラインのワード
数を設定する。このような準備の後、処理3117で復
号器1300を起動し、処理3118で復号器1300
の起動フラグを”1”にセットしリターンする。以上が
ラインの先頭処理である。
Thereafter, these address counters are automatically incremented each time one word is accessed in response to a DMA transfer request from the decoder 1300, and a write address of the restored data and a read address of the reference line data are designated. In process 3116, the number of words of one line is set in the register 1324 of the decoder 1300 and the internal register (not shown) of the reference line change pixel detection unit 600. After such preparation, the decoder 1300 is activated in step 3117 and the decoder 1300 is started in step 3118.
Set the start flag of "1" to "1" and return. The above is the line head processing.

【0072】処理3103以降は、復号器1300が1
ライン分のデータを復号し、復元データがDECODE
ラインメモリに得られた後の処理部分である。処理31
03では、処理3118でセットした起動フラグをリセ
ットする。処理3104で復号エラーがあったかどうか
を示す復号器1300の状態信号をチェックする。復号
エラーがあれば処理3119で、復号エラー処理を行な
う。例えば、エラーがあったラインを直前のラインまた
は白ラインで置換する処理を行なう。復号エラーがなけ
れば、DECODEラインメモリにエラーのないデータ
が復元されているので、それを示すために処理3105
でDECODEアドレスレジスタのAフラグを”1”に
セットする。
After the process 3103, the decoder 1300 is set to 1
The data for the line is decrypted and the restored data is DECODE
It is a processing part after being obtained in the line memory. Process 31
In 03, the activation flag set in process 3118 is reset. The process 3104 checks the status signal of the decoder 1300, which indicates whether there was a decoding error. If there is a decryption error, a decryption error process is performed in process 3119. For example, a process of replacing the line having an error with the immediately preceding line or the white line is performed. If there is no decoding error, error-free data has been restored in the DECODE line memory, and therefore processing 3105 is performed to indicate this.
The A flag of the DECODE address register is set to "1".

【0073】処理3106では、復元したラインが白ラ
イン(全画素が白)であることを示す復号器1300の
状態信号をチェックする。復号器1300は、1ワード
復元する毎に比較器1320(図4)で白データかどう
かを確認し、1ライン復号終了した時点で、そのライン
が白ラインであったことを状態信号からマイクロプログ
ラム側で確認できる。白ラインであるときは、処理31
07で、1ページの上端の連続した白ラインを計数する
ためのカウンタ、またはページの下端の連続した白ライ
ンを計数するためのカウンタ(いづれのカウンタもワー
キングレジスタ500上に用意される)をインクリメン
トする。
In the process 3106, the status signal of the decoder 1300 indicating that the restored line is a white line (all pixels are white) is checked. Each time the decoder 1300 restores one word, the comparator 1320 (FIG. 4) checks whether or not the data is white data, and when one line is decoded, it is determined from the status signal that the line is a white line by a microprogram. You can check on the side. If it is a white line, process 31
At 07, increment the counter for counting the continuous white lines at the top of one page or the counter for counting the continuous white lines at the bottom of the page (any counter is provided on working register 500) To do.

【0074】処理3108ではRTC符号を検出したか
どうかを示す復号器1300の状態信号をチェックす
る。処理3109で、復元したデータを外部に出力する
かどうかを判断する。この判断は、システムバス制御部
400内のレジスタセット402(CH0)または40
4(CH1)中の特定レジスタを参照することによって
行なう。このレジスタのビットの内容は、プロセッサブ
ロック13のMPUによって設定されている。出力しな
いラインであるときは、処理3110で、DECODE
アドレスレジスタのBフラグを”1”にセットする。B
フラグがセットされたラインは、データ出力時に、デー
タが無視され外部に出力されない。このような制御によ
って、MPU側でページの上端または下端の白ラインを
カットさせるような制御を行なうことができる。
In step 3108, the status signal of the decoder 1300 indicating whether the RTC code is detected is checked. In process 3109, it is determined whether to output the restored data to the outside. This judgment is made by register set 402 (CH0) or 40 in the system bus control unit 400.
4 (CH1) by referring to a specific register. The contents of the bits of this register are set by the MPU of the processor block 13. If it is a line that is not output, in step 3110, DECODE
The B flag of the address register is set to "1". B
When the data is output to the line for which the flag is set, the data is ignored and is not output to the outside. By such control, it is possible to perform control such that the MPU side cuts the white line at the upper end or the lower end of the page.

【0075】処理3112で、MPUによって設定され
た連続処理するライン数をデクリメントし、残りライン
数を求める。そして処理3113で、残りライン数をチ
ェックし、これが0であれば、処理3114でDECO
DEアドレスレジスタの最終ラインを示すCフラグを”
1”にセットする。残りライン数が0でないときは、直
ちにリターンする。処理3120では、復元ライン数の
カウンタ(ワーキングレジスタ500上に用意される)
をインクリメントする。このカウンタ値で1ページのラ
イン数が得られる。このライン数は、1ページの処理が
終わった段階で、マイクロプログラムによってRAM2
00の対応チャネル用の復号化コマンドパラメータレジ
スタ領域210に保存される。この領域はMPUから直
接アクセスすることができる。
In process 3112, the number of lines to be continuously processed set by the MPU is decremented to obtain the number of remaining lines. Then, in process 3113, the number of remaining lines is checked, and if it is 0, then in process 3114 DECO
Set the C flag indicating the last line of the DE address register to "
Set to 1 ″. If the number of remaining lines is not 0, the process immediately returns.
Is incremented. With this counter value, the number of lines on one page can be obtained. The number of lines can be set in the RAM2 by the microprogram when the processing of one page is completed.
00 in the decoding command parameter register area 210 for the corresponding channel. This area can be directly accessed from the MPU.

【0076】(図21に沿った説明:ラインバッファ制
御)図21は図19の処理3010(ラインバッファ制
御)のフローである。処理3201、3202で、CO
NVWアドレスレジスタのA=1かつOUT2アドレス
レジスタのA=0であることを確認し、処理3203で
アドレスレジスタCONVW、OUT2の内容入れ替え
を行なう。
(Description of FIG. 21: Line Buffer Control) FIG. 21 is a flowchart of the process 3010 (line buffer control) of FIG. In processes 3201 and 3202, CO
After confirming that A = 1 of the NVW address register and A = 0 of the OUT2 address register, the contents of the address registers CONVW and OUT2 are exchanged in process 3203.

【0077】これで、CONVWラインメモリのデータ
がOUT2ラインメモリに入り、CONVWラインメモ
リには空き領域が渡る。アドレスレジスタのフラグの状
態は、OUT2はA=1、CONVWはA=0となる。
As a result, the data in the CONVW line memory enters the OUT2 line memory, and the empty area extends to the CONVW line memory. The flag states of the address register are A = 1 for OUT2 and A = 0 for CONVW.

【0078】処理3208、3204、3205でライ
ンメモリOUT2、OUT1間のデータ交換を行ない、
処理3209、3206、3207でラインメモリOU
T1、OUTの間のデータ交換を行なう。処理3207
でOUTアドレスレジスタのAフラグは”1”にセット
される。以上の処理でCONVW、OUT2、OUT
1、OUTの各ラインメモリがライン単位のFIFOバ
ッファとして利用されることになる。
Data exchange between the line memories OUT2 and OUT1 is performed in processes 3208, 3204 and 3205.
Line memory OU in processing 3209, 3206, 3207
Data is exchanged between T1 and OUT. Process 3207
The A flag of the OUT address register is set to "1". With the above processing, CONVW, OUT2, OUT
Each of the line memories 1 and OUT is used as a line-by-line FIFO buffer.

【0079】(図22に沿った説明:画像データ出力)
図22は、図19の画像データ出力処理3012のフロ
ーである。処理3301でイメージバス制御部3301
が動作中であるか否かをチェックし、動作中であればリ
ターンする。動作中でない場合、処理3302でイメー
ジバス制御部100の起動フラグがセットされているか
調べる。起動フラグが”1”であればイメージバス制御
部100は起動後であって、しかも動作中でないという
ことであるので、処理3311以下のライン端処理に進
む。
(Description According to FIG. 22: Image Data Output)
FIG. 22 is a flow of the image data output process 3012 of FIG. In process 3301, the image bus control unit 3301
Check whether or not is in operation, and if it is in operation, return. If it is not operating, it is checked in process 3302 whether the activation flag of the image bus control unit 100 is set. If the activation flag is "1", it means that the image bus control unit 100 has been activated and is not in operation. Therefore, the process proceeds to the line end process of process 3311 and thereafter.

【0080】起動していなければライン先頭処理に入
る。処理2303でOUTアドレスレジスタのBフラグ
をチェックし、OUTラインメモリのデータを出力する
かどうかを判断する。Bフラグが”1”でなければ出力
すべきデータであるので、そのDMA転送による出力の
準備をする。まず処理3304で、OUTアドレスレジ
スタより、内部バスDMA制御部300内のOUTライ
ンメモリ対応のアドレスカウンタ302に先頭アドレス
をロードする。処理3305で、イメージバス制御部1
00内のアドレスカウンタ104の一つに外部RAM2
8のアドレスを設定する。処理3306で、イメージバ
ス制御部100内の転送ワード数レジスタ114の一つ
に出力ラインのワード数を設定する。処理3307で、
イメージバス制御部100の動作モードを設定する。こ
こではメモリライト・モードに設定することになる。そ
して処理3308でイメージバス制御部100を起動す
る。処理3309でイメージバス制御部100のメモリ
ライト・モードの起動フラグを”1”にセットし、リタ
ーンする。
If it has not been started, the line head processing is started. In processing 2303, the B flag of the OUT address register is checked to determine whether to output the data of the OUT line memory. If the B flag is not "1", the data is data to be output, so preparation for output by the DMA transfer is made. First, in process 3304, the start address is loaded from the OUT address register into the address counter 302 corresponding to the OUT line memory in the internal bus DMA control unit 300. In processing 3305, the image bus control unit 1
External RAM 2 in one of the address counters 104 in 00
Set 8 addresses. In process 3306, the number of words in the output line is set in one of the transfer word number registers 114 in the image bus control unit 100. In process 3307,
The operation mode of the image bus control unit 100 is set. Here, the memory write mode is set. Then, in process 3308, the image bus control unit 100 is activated. In process 3309, the start flag in the memory write mode of the image bus control unit 100 is set to "1", and the process returns.

【0081】処理3303でBフラグが”1”であった
場合、データ出力は行なわず、処理3310でOUTア
ドレスレジスタのAフラグを”0”にリセットすること
で、OUTラインメモリの内容を無視させる。この処理
でライン間引きが達成される。処理3311以降はライ
ン端の処理である。処理3311では、処理3309で
セットしたイメージバス制御部100の起動フラグをリ
セットする。処理3312で、OUTアドレスレジスタ
のEフラグをチェックすることにより、出力ラインが副
走査方向の拡大対象ラインかどうかを判断している。拡
大対象ラインでなければ(E=0)、OUTラインメモ
リのデータの2回目の出力は不要であるので、処理33
13でOUTアドレスレジスタのAフラグを”0”にセ
ットし、OUTラインメモリを解放する。拡大対象ライ
ンであれ(E=1)、処理2314でOUTアドレスレ
ジスタのEフラグをリセットする。そのAフラグは”
1”であるから、このデータは再度出力され、結果とし
て副走査方向の拡大(ラインの補間)が達成される。処
理3315で、次のラインを出力するために、外部RA
M28のアドレスを更新しリターンする。
If the B flag is "1" in the process 3303, the data is not output, and the A flag of the OUT address register is reset to "0" in the process 3310 to ignore the contents of the OUT line memory. . Line thinning is achieved by this processing. The process 3311 and subsequent processes are line end processes. In process 3311, the activation flag of the image bus control unit 100 set in process 3309 is reset. In process 3312, the E flag of the OUT address register is checked to determine whether the output line is the enlargement target line in the sub-scanning direction. If the line is not the enlargement target line (E = 0), the second output of the data in the OUT line memory is unnecessary, so the process 33
At 13, the A flag of the OUT address register is set to "0", and the OUT line memory is released. If the line is an enlargement target line (E = 1), the E flag of the OUT address register is reset in process 2314. The A flag is "
1 ″, this data is output again, and as a result, enlargement in the sub-scanning direction (line interpolation) is achieved. In process 3315, the external RA is output to output the next line.
Update the address of M28 and return.

【0082】復号化コマンドの終了判定は、Cフラグ
が”1”にセットされたデータを出力したかどうかで判
断する。Cフラグ(最終ラインフラグ)はアドレスレジ
スタの交換によって、次のように伝搬する。 DECODE、C=1→CONVR、C=1 CONVR、C=1ならば画像変換終了後 CONV
W、C=1 →OUT、C=1 (伸長動作のまとめ)以上に説明したように、内部RA
M200上のラインメモリにデータが詰まった後は、復
号化処理(処理3002)、画像変換処理(処理300
9)、画像データ出力処理(処理3012)が並列に動
作する。更にイメージバス側のDMA転送処理(処理3
013、処理3014)も、これと並列動作ができる。
The determination of the end of the decoding command is made based on whether or not the data in which the C flag is set to "1" is output. The C flag (final line flag) is propagated as follows by exchanging the address register. DECODE, C = 1 → CONVR, C = 1 CONVR, C = 1 after image conversion is completed CONV
W, C = 1 → OUT, C = 1 (Summary of decompression operation) As described above, the internal RA
After the line memory on the M200 is clogged with data, a decoding process (process 3002) and an image conversion process (process 300) are performed.
9), the image data output process (process 3012) operates in parallel. Further, DMA transfer processing on the image bus side (processing 3
013, process 3014) can also operate in parallel with this.

【0083】したがって、本圧縮伸長装置1の伸長処理
時間は近似的に次式で表わすことができる。 処理時間= max{復号化時間、画像変換時間、画像データ出力時間} (式3) 図23は復号化コマンド処理でのラインメモリの使い方
を示している。この図からわかるように、DECOD
E、D0R/D1R、CONVRの各ラインメモリは循
環的に使用され、CONVW、OUT2、OUT1、O
UTの各ラインメモリも循環使用される。
Therefore, the expansion processing time of the compression / expansion device 1 can be approximately expressed by the following equation. Processing time = max {decoding time, image conversion time, image data output time} (Equation 3) FIG. 23 shows how to use the line memory in the decoding command processing. As you can see from this figure, DECOD
The E, D0R / D1R, and CONVR line memories are cyclically used, and CONVW, OUT2, OUT1, and O are used.
Each line memory of the UT is also used cyclically.

【0084】符号変換動作の説明 次に、符号変換動作について説明する。この符号変換と
は、ある符号データを入力して、それを別の符号データ
に変換することである。例えば、MR符号からMMR符
号への変換である。
Description of Code Conversion Operation Next, the code conversion operation will be described. This code conversion is to input a certain code data and convert it to another code data. For example, conversion from MR code to MMR code.

【0085】符号変換動作の場合、変換すべき符号デー
タはシステムバス10から入力し、復号器1300によ
って復号され、復元データがDECODEラインメモリ
に書き込まれる。既に説明した復号化動作によって、C
ONVRラインメモリのデータが画像変換される。ここ
までは伸長動作と全く同じである。その後、CONVW
ラインメモリのデータが符号化の対象となる。これ以後
は圧縮動作と全く同じである。
In the case of the code conversion operation, the code data to be converted is input from the system bus 10, decoded by the decoder 1300, and the restored data is written in the DECODE line memory. By the decoding operation already described, C
The data in the ONVR line memory is converted into an image. Up to this point, the decompression operation is exactly the same. After that, CONVW
The data in the line memory is the target of encoding. After that, the compression operation is exactly the same.

【0086】以上の復号化、画像変換、符号化の処理を
順に1ライン毎に繰り返して1ページ分の符号データを
別の符号に変換することができる。
The above decoding, image conversion, and coding processes can be repeated in order for each line to convert the code data for one page into another code.

【0087】この符号変換処理の場合、既に説明したよ
うに、図12に示すアドレスレジスタ502とラインメ
モリ216が定義される。図25はラインメモリの使い
方の説明図である。
In the case of this code conversion processing, the address register 502 and the line memory 216 shown in FIG. 12 are defined as already described. FIG. 25 is an explanatory diagram of how to use the line memory.

【0088】図24は符号変換プログラムのフローであ
る。図16または図19のフローと同じ番号の処理は同
内容であるので、その説明を省略する。図24のフロー
から、次のことが容易に理解される。 a)復号化処理、画像変換処理、符号化処理、イメージ
バス側の2つのDMA転送処理が並行動作する。 b)復号エラーが生じても、1ライン復号化処理(処理
3002)内で復号エラーのチェックと復号エラー処理
(図20の処理3119)が行なわれるので、エラー処
理後の画像データに対して符号化が行なわれる。したが
って、変換後の符号データは復号エラーを含まない。な
お、符号変換動作または伸長動作において、復号化処理
(処理3002)で1ページのライン数、ページの上端
と下端の連続した白ライン数が求められ(図20の処理
3120、3107)、動作終了時点でRAM200上
の復号化コマンド用パラメータレジスタ領域210に保
存される。MPUは、これらのパラメータを読みだし、
拡大縮小率やページ上下端のカットラインの決定などの
ために用いることができる。
FIG. 24 is a flow of the code conversion program. Since the processes having the same numbers as those in the flow of FIG. 16 or FIG. 19 have the same contents, the description thereof will be omitted. The following can be easily understood from the flow of FIG. a) Decoding process, image conversion process, encoding process, and two DMA transfer processes on the image bus side operate in parallel. b) Even if a decoding error occurs, the decoding error is checked and the decoding error process (process 3119 in FIG. 20) is performed in the 1-line decoding process (process 3002). The conversion is performed. Therefore, the coded data after conversion does not include a decoding error. In the code conversion operation or decompression operation, the number of lines in one page and the number of continuous white lines at the upper and lower edges of the page are obtained in the decoding process (process 3002) (processes 3120 and 3107 in FIG. 20), and the operation ends. At this point, it is stored in the decryption command parameter register area 210 on the RAM 200. MPU reads these parameters,
It can be used to determine the scaling ratio and cut lines at the top and bottom edges of the page.

【0089】副走査方向の画像変換(縮小)の説明 副走査方向の縮小は一定ライン数毎に1ラインを間引く
ことで実現され、副走査方向の拡大は一定ライン数毎に
1ラインをコピーする(補間)することで実現される。
ここでは、副走査方向の縮小動作について、間引きライ
ンの決定方法を中心に詳細に説明する。
Description of image conversion (reduction) in the sub-scanning direction Reduction in the sub-scanning direction is realized by thinning out one line every constant number of lines, and enlargement in the sub-scanning direction copies one line every constant number of lines. It is realized by (interpolation).
Here, the reduction operation in the sub-scanning direction will be described in detail centering on the method of determining thinning lines.

【0090】図26は副走査方向変換動作の処理の概念
図である。関連したパラメータ(ワーキングレジスタ5
00上に用意されるレジスタ551〜557に置かれ
る)は次の通りである(ただし、チャネル0用)。 C0−VCONV(副走査変換率) :レジスタ551 C0−VCWRK(ワークレジスタ):レジスタ552 CONVWラインメモリに1ラインの有効データが得ら
れる毎に、16ビットALU1202でC0−VCON
Vの積算を行なう。この積算値がC0−VCWRKであ
る。積算した時にALU1202がオーバフローしてキ
ャリーが出たラインが間引きの対象になる。
FIG. 26 is a conceptual diagram of the processing of the sub-scanning direction conversion operation. Related parameters (working register 5
00 are provided in the registers 551 to 557 prepared as follows) (however, for channel 0). C0-VCONV (sub-scan conversion rate): register 551 C0-VCWRK (work register): register 552 CONVW Each time valid data of one line is obtained in the line memory, 16-bit ALU 1202 is used to C0-VCON
V is integrated. This integrated value is C0-VCWRK. The line in which the carry occurs when the ALU 1202 overflows when integrated is the target of thinning.

【0091】16ビットのALU1202のキャリー
は、65536/(C0−VCONV)ライン毎に1回
出る。M=65536/(C0−VCONV)とする
と、平均してMラインに1ライン間引かれるので、縮小
率Rは R=(M−1)/M=1−(1/M) となる。
The carry of the 16-bit ALU 1202 comes out once every 65536 / (C0-VCONV) lines. If M = 65536 / (C0-VCONV), one line is thinned out to M lines on average, and the reduction ratio R is R = (M-1) / M = 1- (1 / M).

【0092】この関係から、プロセッサブロック13の
MPUは、縮小率RよりC0−VCONVを決定し圧縮
伸長装置1に対して、この値を設定する。
From this relationship, the MPU of the processor block 13 determines C0-VCONV from the reduction ratio R and sets this value in the compression / expansion device 1.

【0093】図27(a)はC0−VCONVの積算過
程の説明図で、画像のラインと各ラインでの積算値C0
−VCWRKを左右に並べて示している。ここに示した
例では、第5ラインでキャリーが出るので、このライン
が間引きラインとされる。
FIG. 27 (a) is an explanatory view of the integration process of C0-VCONV, which is the image line and the integrated value C0 on each line.
-VCWRK is shown side by side. In the example shown here, since carry occurs on the fifth line, this line is set as a thinning line.

【0094】このようなアルゴリズムは従来から知られ
ているものである。なお、副走査方向の拡大の場合のコ
ピーラインの決定も同様のアルゴリズムによって行なう
ことができ、その積算過程を図27(b)に示す。第5
ラインでキャリーが出るので、第5ラインが拡大対象ラ
インになる。符号化コマンド内の拡大処理であれば、こ
のラインが2回符号化されることになる。
Such an algorithm is conventionally known. Note that the determination of the copy line in the case of enlargement in the sub-scanning direction can also be performed by the same algorithm, and the integration process is shown in FIG. 27 (b). Fifth
Since the carry appears on the line, the fifth line becomes the expansion target line. In the case of the enlargement process in the encoded command, this line is encoded twice.

【0095】コマンド処理とDMA転送処理の連携 次に、以上の動作説明をもとにして符号化、復号化など
の圧縮伸長装置の内部処理と画像データのDMA転送の
連携処理について、復号化処理を実施例として説明す
る。
Coordination of Command Processing and DMA Transfer Processing Next, based on the above description of operation, the decoding processing will be described for the internal processing of the compression / expansion device such as encoding and decoding and the cooperation processing of DMA transfer of image data. Will be described as an example.

【0096】一般的には、ファクシミリ装置では受信し
た符号化データを復元し、その復号化データを記録部に
転送する一連の処理を、RAM28内部に図28に示す
ような2面のバッファメモリを用意し、復号化データの
バッファメモリへの書き込みとDMA転送によるバッフ
ァメモリからの読みだしを互いに異なるバッファメモリ
をトグルに使用することによって実行している。つま
り、バッファA、バッファBのメモリ容量をLライン分
とすると、まず、バッファAにLライン分の画像データ
を復元してライトする。バッファAのライト動作が終了
すると、バッファAのデータのDMA転送を開始する。
それと同時に復号化動作はバッファBに移る。これを繰
り返して1ページ分の画像データの復号化とDMA転送
を行なう。
Generally, in a facsimile machine, a series of processes for restoring the received encoded data and transferring the decoded data to the recording unit is performed by using a two-sided buffer memory as shown in FIG. Writing the decoded data to the buffer memory and reading it from the buffer memory by DMA transfer are executed by using different buffer memories as toggles. That is, assuming that the memory capacities of the buffer A and the buffer B are L lines, first, the image data of L lines is restored and written in the buffer A. When the write operation of the buffer A is completed, the DMA transfer of the data of the buffer A is started.
At the same time, the decoding operation moves to the buffer B. By repeating this, the image data for one page is decoded and the DMA transfer is performed.

【0097】この方式では、MPUはLライン毎にDM
A転送処理と復号化処理の同期をとりながら圧縮伸長装
置に復号化処理とDMA転送の指示(マクロコマンドの
発行)を与える必要がある。また、一般に1ページの復
元ライン数は、バッファサイズLラインの倍数にはなら
ないので、RTC符号を検出した後のページ端処理で
は、バッファメモリにライトされた画像データのライン
数を計算し、DMA転送の転送ライン数を再設定する等
の例外処理を実行しなければならない。
In this method, the MPU DMs every L line.
It is necessary to give instructions to the compression / expansion device for the decoding process and the DMA transfer (issue macro command) while synchronizing the A transfer process and the decoding process. Further, in general, the number of restored lines of one page is not a multiple of the buffer size L lines, so in the page edge processing after detecting the RTC code, the number of lines of image data written in the buffer memory is calculated, Exception processing such as resetting the number of transfer lines must be executed.

【0098】別の方式として、一面のバッファメモリを
巡回的に使用し、データの書き込み位置を示すライトア
ドレスポインタと、データの読みだし位置を示すリード
アドレスポインタが互いに相手を追い越さないように制
御する方式がある。本実施例の圧縮伸長装置にこの方式
を適用すると、2つのアドレスポインタは、ともにMP
Uが管理することになる。MPUは2つのアドレスポイ
ンタが互いに相手を追い越さないようにするため、バッ
ファメモリに1ライン以上の空き領域ができたら圧縮伸
長装置を起動し、DMA転送に関しては1ライン以上の
データが蓄積したら転送を開始するよう制御する必要が
ある。この方式ではアドレスポインタが互いに相手を追
い越さないようにするため、バッファメモリに対する複
数ラインに渡る連続的な書き込みと読みだし動作を制御
するのは困難で、基本的には1ライン毎にデータのライ
トとリードを制御することになる。従って、MPUの制
御負荷は2面バッファの切り替え方式より増加し、圧縮
伸長装置の起動待ち時間もそれにつれて増加することに
なる。
As another method, the buffer memory on one side is cyclically used so that the write address pointer indicating the data write position and the read address pointer indicating the data read position do not overtake each other. There is a method. When this method is applied to the compression / decompression device of this embodiment, the two address pointers are both MP
U will manage it. In order to prevent two address pointers from overtaking each other, the MPU activates the compression / decompression device when a free area of one line or more is created in the buffer memory, and when DMA transfer accumulates one or more lines of data, transfers the data. Need to control to start. In this method, since the address pointers do not pass each other over each other, it is difficult to control the continuous write and read operations over a plurality of lines to the buffer memory, and basically write data for each line. And will control the reed. Therefore, the control load of the MPU is greater than that of the two-sided buffer switching method, and the activation waiting time of the compression / expansion device is also increased accordingly.

【0099】あらかじめメモリに1ページ分の符号化デ
ータを蓄積し、これを高速に復元、記録する処理を想定
した場合、圧縮伸長装置の復号化処理を如何に高速化し
てもLライン毎、または各ライン毎にコマンド待ち時間
が発生し、この待ち時間の総和で処理時間が下方から抑
えられる。従って、圧縮伸長装置に対するMPUの処理
負荷を軽減することは、高速処理のために解決すべき必
須課題である。
Assuming a process of previously accumulating one page of encoded data in the memory and restoring and recording the encoded data at high speed, no matter how the decoding process of the compression / expansion device is speeded up, every L line, or A command waiting time is generated for each line, and the processing time can be suppressed from below by the sum of the waiting times. Therefore, reducing the processing load of the MPU on the compression / decompression device is an essential issue to be solved for high-speed processing.

【0100】(本方式の説明)図29乃至図32は本方
式のバッファメモリの制御方式の概念図である。はじめ
に動作の概要を説明する。図29は、RAM28内部に
設けられたDMAチャネル1用のメモリ領域である。T
1−MTOPA、T1−MENDA、T1−WPOIN
T、およびT1−STRAはパラメータレジスタ領域2
14(図8)にあらかじめ定義されているレジスタであ
る。T1−MTOPA、T1−MENDAはメモリ領域
の先頭アドレスと終端アドレスであり、この範囲がライ
ンバッファとして巡回的に使用される。T1−WPOI
NTとT1−STRAは2つのアドレスポインタであ
る。T1−WPOINTはメモリのライトアドレスであ
り、復号化コマンドではT1−WPOINTの位置から
復元画像が1ライン書き込まれる。それに対してT1−
STRAはメモリからデータを読み出すアドレスを示
し、DMAチャネル1はT1−STRAのアドレスから
1ライン分のデータを読み出す。図29の所定値は、他
のパラメータと同様にあらかじめパラメータレジスタ2
14に定義されたレジスタ値であり、T1−WPOIN
TとT1−STRA相互間の最小距離を表わす。
(Description of this system) FIGS. 29 to 32 are conceptual diagrams of a buffer memory control system of this system. First, the outline of the operation will be described. FIG. 29 shows a memory area for the DMA channel 1 provided inside the RAM 28. T
1-MTOPA, T1-MENDA, T1-WPOIN
T and T1-STRA are parameter register areas 2
14 (FIG. 8). T1-MTOPA and T1-MENDA are the start address and end address of the memory area, and this range is cyclically used as a line buffer. T1-WPOI
NT and T1-STRA are two address pointers. T1-WPOINT is a write address of the memory, and in the decoding command, one line of the restored image is written from the position of T1-WPOINT. On the other hand, T1-
STRA indicates an address for reading data from the memory, and the DMA channel 1 reads data for one line from the address of T1-STRA. The predetermined value shown in FIG. 29 is set in advance in the parameter register 2 like other parameters.
Register value defined in No. 14, T1-WPOIN
It represents the minimum distance between T and T1-STRA.

【0101】このように定義されたパラメータを使っ
て、本圧縮伸長装置1のマイクロプログラムは、T1−
WPOINTとT1−STRAが互いに相手を追い越さ
ないように、DMA転送処理と復号化処理を連携して制
御する。T1−WPOINTとT1−STRA間の斜線
部分が未転送データである。
Using the parameters thus defined, the microprogram of the compression / expansion device 1 executes T1-
The DMA transfer process and the decoding process are cooperatively controlled so that the WPOINT and T1-STRA do not overtake each other. The shaded area between T1-WPOINT and T1-STRA is untransferred data.

【0102】図30はラインバッファ内部の未転送デー
タ量DSIZEの時間的変動を示したものである。t
1、t2、などはDMA転送を起動するタイミングを示
す。マイクロプログラムは、画像データのDMA転送を
起動する時にDSIZEを計算し、それが所定値より小
さく、前回のDSIZEよりも減少しているときにMP
Uに対して割り込み(IRQ)を発生する。その理由は
後述する。割り込み発生条件は次の2条件が、共に満た
される場合である。
FIG. 30 shows the temporal variation of the untransferred data amount DSIZE in the line buffer. t
1, t2, etc. indicate the timing of activating the DMA transfer. The micro program calculates DSIZE when activating a DMA transfer of image data, and when it is smaller than a predetermined value and smaller than the previous DSIZE, MP is calculated.
An interrupt (IRQ) is generated for U. The reason will be described later. The interrupt generation condition is a case where the following two conditions are both satisfied.

【0103】DSIZE≦所定値 ΔDSIZE<0 ここで、ΔDSIZEは今回計算した未転送データ量か
ら前回計算した未転送データ量の差分値である。従っ
て、図示するようにti、ti+1では割り込みが発生する
が、ti+2ではΔDSIZE>0なので割り込みは発生
しない。このようにラインバッファ内部の未転送データ
量が上記2つの条件に合致したときに、MPUに対して
割込み処理を行っているために、MPUにそれほど負担
をかけることなく、処理途中で読み出すデータがなくな
ってしまうことを防止し、効率のよいラインバッファの
書き込み、読み出し処理を行うことができる。
DSIZE ≦ predetermined value ΔDSIZE <0 Here, ΔDSIZE is a difference value between the untransferred data amount calculated this time and the untransferred data amount calculated last time. Therefore, as shown in the figure, an interrupt is generated at ti and ti + 1, but at ti + 2, an interrupt is not generated because ΔDSIZE> 0. In this way, when the amount of untransferred data inside the line buffer matches the above two conditions, the MPU performs interrupt processing, so that the data to be read in the middle of the processing can be processed without much load on the MPU. It is possible to prevent the data from being lost and to efficiently perform the writing and reading processing of the line buffer.

【0104】図34〜図37は上記処理のマイクロプロ
グラムのフローである。これらの図に沿って復号化処理
とDMA転送処理の連携を詳しく説明する。
34 to 37 are flow charts of the microprogram for the above processing. The cooperation between the decoding process and the DMA transfer process will be described in detail with reference to these figures.

【0105】(図34に沿った説明:イメージバスDM
A転送処理 チャネル1)図34は図19の処理301
4(イメージバスDMA転送処理 チャネル1)を示し
たものである。処理4001は、MPUがDMA転送の
要求を出しているかをチェックする。DMAチャネル1
の転送要求信号は、システムバス制部のCH1レジスタ
セット404(図7)内部のレジスタに設けられたビッ
トである。MPUはこのビットを”1”にすることによ
って、DMA転送の起動をかける。処理4002では、
DMAチャネル1の動作中を示すイメージバス部の状態
信号をチェックする。処理4003は、マイクロプログ
ラムがDMAチャネル1の転送を開始するために、イメ
ージバス部を起動したことを示すフラグビットがONし
ているかどうかをチェックする。このフラグビットはワ
ーキングレジスタ500内部に設定される。処理400
2と処理4003によって、ライン転送の開始であるか
終了であるのかを判断する。
(Description According to FIG. 34: Image Bus DM
A transfer processing channel 1) FIG. 34 shows processing 301 of FIG.
4 (image bus DMA transfer processing channel 1) is shown. A process 4001 checks whether the MPU issues a DMA transfer request. DMA channel 1
The transfer request signal is a bit provided in a register inside the CH1 register set 404 (FIG. 7) of the system bus control unit. The MPU activates DMA transfer by setting this bit to "1". In process 4002,
The status signal of the image bus section showing that the DMA channel 1 is operating is checked. A process 4003 checks whether or not a flag bit indicating that the image bus unit is activated in order to start the transfer of the DMA channel 1 by the microprogram is ON. This flag bit is set inside the working register 500. Process 400
2 and processing 4003, it is determined whether the line transfer is started or ended.

【0106】処理4004は、処理4005、4006
をブロック転送のはじめに1回だけ行うための判断であ
り、内部に設定されたフラグをチェックする。処理40
05、処理4006、処理4007はライン転送の開始
処理である。処理4005で1ラインの転送ワード数を
イメージバス部の転送数レジスタ114(図9)に設定
する。処理4006は、MPUがパラメータレジスタ2
14(図8)にあらかじめ設定している転送ライン数
を、ワーキングレジスタ500にロードする。処理40
04は、一つの転送単位に1回だけ設定するための内部
フラグビットのチェックである。処理4007で、DM
Aチャネル1のスタートアドレスT1−STRAを設定
する。図35で後述するように、この処理の内部でイメ
ージバス部の起動がかけられる。
Process 4004 is process 4005, 4006.
Is a judgment to make only once at the beginning of block transfer, and the flag set inside is checked. Processing 40
05, processing 4006, and processing 4007 are line transfer start processing. In process 4005, the number of transfer words for one line is set in the transfer number register 114 (FIG. 9) of the image bus unit. In process 4006, the MPU sets the parameter register 2
The number of transfer lines preset to 14 (FIG. 8) is loaded into the working register 500. Processing 40
Reference numeral 04 is a check of the internal flag bit for setting only once in one transfer unit. In process 4007, DM
Set the start address T1-STRA of the A channel 1. As will be described later with reference to FIG. 35, the image bus unit is activated inside this process.

【0107】起動フラグが1の場合、すなわち、1ライ
ンの転送が終了した場合には処理4008以降に進む。
処理4008以降は、ライン転送の終端処理である。処
理4008は処理4003で設定した起動フラグをリセ
ットする。処理4009では、1ライン転送する毎に、
処理4006でロードした転送ライン数をディクリメン
トする。処理4010は転送すべきライン数の転送(ブ
ロック転送)が終了したかどうかの判断である。ブロッ
ク転送が終了すれば、処理4011でそれを示す割り込
みをMPUに発行する。処理4012は、1ライン転送
する毎にスタートアドレスを更新する。
When the activation flag is 1, that is, when the transfer of one line is completed, the processing proceeds to processing 4008 and thereafter.
The process 4008 and subsequent processes are line transfer termination processes. A process 4008 resets the activation flag set in the process 4003. In process 4009, each time one line is transferred,
The number of transfer lines loaded in the process 4006 is decremented. A process 4010 is to judge whether or not the transfer of the number of lines to be transferred (block transfer) is completed. When the block transfer is completed, in process 4011 an interrupt indicating that is issued to the MPU. A process 4012 updates the start address every time one line is transferred.

【0108】図35は処理4007をさらに具体的に説
明するための動作フロー図である。処理4101はMP
Uが指定したバッファメモリの制御方法を判断する。図
29乃至図33で説明した方法を、ここではポインタ制
御と呼び、以下ではこの場合に限る。処理4102では
2つのアドレスポインタが一致しているかどうかを判断
する。処理4103でバッファ内のデータ量DSIZE
を計算する。処理4104はイメージバス制御部100
のスタートアドレス110(図9)にDMA転送のスタ
ートアドレスT1−STRAを設定する。処理4105
はイメージバス制御部に対して、DMAチャネル1動作
の開始を指示する。処理4105によってDMAチャネ
ル1の動作が開始されるので、処理4106ではそれを
示す内部フラグをセットする。このフラグは処理400
3でチェックされる。
FIG. 35 is an operation flow chart for explaining the process 4007 more specifically. Process 4101 is MP
The method of controlling the buffer memory designated by U is determined. The method described with reference to FIGS. 29 to 33 is referred to as pointer control here, and is limited to this case below. In process 4102, it is determined whether the two address pointers match. In process 4103, the amount of data in the buffer DSIZE
Is calculated. The process 4104 is the image bus control unit 100.
The start address T1-STRA of the DMA transfer is set to the start address 110 (FIG. 9) of FIG. Process 4105
Instructs the image bus control unit to start the DMA channel 1 operation. Since the operation of the DMA channel 1 is started by the process 4105, the internal flag indicating this is set in the process 4106. This flag is processed 400
Checked in 3.

【0109】処理4102でポインタが一致していれ
ば、処理4107、処理4108に移りバッファフルで
ポインタが一致したのか、初期状態で一致しているのか
を判断する。バッファフル状態ではポインタは例えば図
30で示される状態となり、初期状態では図31で示す
状態になる。T1−WPOINTがT1−STRAに追
いついたバッファフル状態(図30)では、DMA転送
の起動が可能であるから処理4104に移る。処理41
08の判断で初期状態(図31)のときは転送データが
まだバッファにたまっていないのでDMA転送の起動は
行なわない。バッファフルでも初期状態でもない時は、
復号化処理が終了し、T1−STRAがT1−WPOI
NTに追いついた状態(図32)であるから処理410
9で、それを示す割り込みをMPUに発行する。
If the pointers match in process 4102, the process moves to processes 4107 and 4108 to determine whether the pointers match due to buffer full or match in the initial state. In the buffer full state, the pointer is in the state shown in FIG. 30, for example, and in the initial state it is in the state shown in FIG. In the buffer full state (FIG. 30) in which T1-WPOINT has overtaken T1-STRA, DMA transfer can be activated, and the process proceeds to step 4104. Process 41
In the initial state (FIG. 31) as determined by 08, the transfer data is not yet accumulated in the buffer, so that the DMA transfer is not started. When it is neither buffer full nor initial state,
The decryption process is completed, and T1-STRA becomes T1-WPOI.
Process 410 because it has caught up with NT (FIG. 32)
At 9, an interrupt indicating that is issued to the MPU.

【0110】バッファフル状態、初期状態、復号化コマ
ンド終了状態等の識別は、適切に設定された内部フラグ
を参照することによって実行できる。図36は図22に
示すイメージ出力処理フロー中の、処理3308の内部
処理を示している。図35がリードポインタT−STR
Aの制御であったのに対して、図36はライトポインタ
T1−WPOINTの制御を示す。
The identification of the buffer full state, the initial state, the decoding command end state, etc. can be performed by referring to an appropriately set internal flag. FIG. 36 shows the internal processing of the processing 3308 in the image output processing flow shown in FIG. FIG. 35 shows the read pointer T-STR.
In contrast to the control of A, FIG. 36 shows the control of the write pointer T1-WPOINT.

【0111】処理4201は処理4101と同様の処理
である。処理4202で2つのポインタが一致していな
ければ、処理4203でイメージバス部にT1−WPO
INTを設定し、処理4204で起動する。処理420
2でポインタが一致していれば、処理4205で初期状
態かどうかを判断し、初期状態であれば処理4203に
移りバッファメモリへのライト動作を開始する。初期状
態でなければ、T1−WPOINTがT1−STRAに
追いついたことになり、バッファメモリの空き領域がな
いのでイメージ出力動作を停止する。DMA転送処理が
進み、マイクロプログラムが次に処理4202を行なっ
た時に、アドレスポインタが離れていれば、そのときに
は処理4203を通ってイメージ出力動作が起動され
る。ライトポインタT1−WPOINTの値は、1ライ
ンのデータ出力が終了する毎に、処理3315(図2
2)で更新される。 (イメージ出力動作の停止に伴う復号化処理の停止と再
開)処理4205で初期状態でない時は、イメージバス
部が起動されないため、イメージ出力動作が一時的に停
止する。イメージ出力動作が停止することは、図23に
示すOUTラインメモリのデータが読み出されないこと
である。イメージ出力動作が停止すると、図21、図2
2から分かるようにCONVWのAフラグは”1”の状
態になり、主走査変換処理が待ち状態になる。そうする
とCONVRのAフラグが”1”のままになり、図19
の処理3005、処理3006の処理が実行されないた
め、DECODE、A=1のままになる。このため、図
20の処理3121の判断で復号器が起動されず、復号
化処理が一時的に停止する。
Process 4201 is similar to process 4101. If the two pointers do not match in processing 4202, T1-WPO is added to the image bus section in processing 4203.
The INT is set, and the process 4204 is activated. Process 420
If the pointers match with each other in step 2, it is determined in step 4205 whether or not it is in the initial state. If it is not the initial state, T1-WPOINT has caught up with T1-STRA, and the image output operation is stopped because there is no free area in the buffer memory. If the address pointer is separated when the DMA transfer process proceeds and the microprogram next performs the process 4202, the image output operation is activated through the process 4203 at that time. The value of the write pointer T1-WPOINT is set to the processing 3315 (FIG. 2) each time the data output of one line is completed.
Updated in 2). (Stopping and Resuming Decoding Process Accompanying Stop of Image Output Operation) If the process 4205 is not in the initial state, the image bus operation is not started, so the image output operation is temporarily stopped. The stop of the image output operation means that the data in the OUT line memory shown in FIG. 23 is not read. When the image output operation is stopped, FIG. 21 and FIG.
As can be seen from 2, the A flag of CONVW is in the "1" state, and the main scanning conversion process is in the waiting state. Then, the A flag of CONVR remains "1", as shown in FIG.
Since the processing 3005 and the processing 3006 are not executed, DECODE and A = 1 remain. Therefore, the decoder is not activated by the determination of the process 3121 in FIG. 20, and the decoding process is temporarily stopped.

【0112】ただし、図23に示すようにOUTライン
メモリとDECODEラインメモリの間のラインメモリ
は、ラインバッファとして機能するので出力動作の停止
が、即復号化動作の停止にはつながらない。イメージ出
力動作が再開しOUT、A=0となり内部のラインメモ
リに空きができると、DECODE、A=0となり、復
号処理が再開される。この復号化処理の停止と再開はラ
インメモリ間のデータ交換処理のみによってAフラグが
伝搬し、その結果としてデータの流れが制御されてい
る。
However, as shown in FIG. 23, since the line memory between the OUT line memory and the DECODE line memory functions as a line buffer, stopping the output operation does not lead to stopping the immediate decoding operation. When the image output operation is restarted and OUT and A = 0 and the internal line memory becomes empty, DECODE and A = 0 are set, and the decoding process is restarted. This decoding process is stopped and restarted by the A flag being propagated only by the data exchange process between the line memories, and as a result, the data flow is controlled.

【0113】符号変換処理(図24)によって再符号化
された1ページ分の符号データが、メモリ16(図2)
に格納されている場合には、MPUは復号化を開始する
前に1ページの復元ライン数を知ることができるので、
そのライン数を復号器に設定し、復号化コマンドを発行
する。設定したライン数の復号化処理が終了すると、図
32に示すようにT−POINTは停止し、T1−ST
RAがそれに追いついて図35の処理4102、処理4
107、処理4108、処理4109を通ってDMA転
送も終了する。このように、1回復号化コマンドを発行
するだけで1ページの復号化と記録部へのDMA転送が
実行できる。
The code data for one page re-encoded by the code conversion process (FIG. 24) is stored in the memory 16 (FIG. 2).
Stored in the MPU, the MPU can know the number of restored lines of one page before starting decoding.
The number of lines is set in the decoder and a decoding command is issued. When the decoding processing for the set number of lines is completed, T-POINT stops as shown in FIG. 32, and T1-ST
RA catches up with it, and processes 4102 and 4 in FIG.
The DMA transfer is also completed through 107, processing 4108, and processing 4109. Thus, by issuing the decryption command once, the decryption of one page and the DMA transfer to the recording unit can be executed.

【0114】通信回線から符号化データを受信しなが
ら、または受信した1ページ分の符号化データをメモリ
に蓄積した後、復号化し記録部にデータを転送する場合
は、1ページのライン数が復号化開始時点では分からな
いが、通信手順を通してページサイズと解像度は既知で
あるから、MPUは復号器に実際よりも数倍大きい処理
ライン数を設定する。この場合は図20の処理3108
のRTC符号検出の判断によって、処理3114で復号
化処理の終了を示すCフラグがセットされ、図19の処
理3015によって復号化コマンドが終了する。復号化
コマンドが終了すると、T−WPOINTは停止するの
で、T1−STRAがそれに追いついて図35の処理4
102、処理4107、処理4108、処理4109を
通ってDMA転送も終了する。この場合にもMPUは、
1回復号化コマンドを発行するだけで1ページの復号化
と記録部へのDMA転送が実行できる。
When the coded data is received from the communication line, or when the received coded data for one page is stored in the memory and then decoded and transferred to the recording unit, the number of lines of one page is decoded. Although it is unknown at the start of conversion, since the page size and resolution are known through the communication procedure, the MPU sets the number of processing lines in the decoder to be several times larger than the actual number. In this case, the process 3108 of FIG.
According to the determination of RTC code detection, the C flag indicating the end of the decoding process is set in the process 3114, and the decoding command ends in the process 3015 of FIG. When the decryption command ends, T-WPOINT stops, so T1-STRA catches up with it and process 4 in FIG.
The DMA transfer is also completed through 102, processing 4107, processing 4108, and processing 4109. Even in this case, the MPU
By issuing the decryption command once, the decryption of one page and the DMA transfer to the recording unit can be executed.

【0115】図37は処理4103の内部を示したもの
である。この処理は次に説明する符号化、復号化複数チ
ャネルをライン単位に切り替える時分割多重処理に関連
する。処理4301でバッファ内部の未転送データ量D
SIZEiを計算する。添字iはiライン目のDMA転
送開始時点の計算値であることを示す。処理4302で
計算結果をワーキングレジスタ500内部のレジスタに
格納する。処理4303で式4の第1条件が満たされる
か判断し、もしそうであれば処理4304でDSIZE
の差分値を計算し、処理4305で式4の第2条件が満
たされるかどうか判断する。式4の条件が満足されてい
れば、処理4306でそれを示す割り込みをMPUに発
行する。図35から分かるように、処理4306で割り
込みを発行してもDMA転送は停止しない。
FIG. 37 shows the inside of the process 4103. This processing is related to the time-division multiplexing processing for switching the encoding / decoding multiple channels in line units, which will be described below. In process 4301, the untransferred data amount D in the buffer
Calculate SIZEi. The subscript i indicates the calculated value at the time of starting the DMA transfer of the i-th line. In process 4302, the calculation result is stored in the register inside the working register 500. In processing 4303, it is determined whether the first condition of Expression 4 is satisfied. If so, processing 4304 determines in DSIZE.
The difference value of is calculated, and in process 4305 it is determined whether the second condition of Expression 4 is satisfied. If the condition of Expression 4 is satisfied, an interrupt indicating that is issued to the MPU in process 4306. As can be seen from FIG. 35, the DMA transfer does not stop even if the interrupt is issued in the process 4306.

【0116】以上は復号化処理とDMA転送処理を例に
して説明した。符号化処理の場合は、DMAチャネル0
のライトポインタが先行し、それを符号化のリードポイ
ンタが追いかけるので、復号化の場合とはアドレスポイ
ンタの関係が逆になるが、同様して実現できる。また、
これらの処理は圧縮伸長装置内部のコマンド処理のため
のバッファメモリのリード/ライトと、入出力装置とバ
ッファメモリ間のDMA転送の関係であるから、上記コ
マンド処理内容に限定されるものではない。
The decoding process and the DMA transfer process have been described above as examples. In the case of encoding processing, DMA channel 0
Since the write pointer of 1 precedes and the read pointer of encoding follows it, the relationship of the address pointer is opposite to that in the case of decoding, but the same can be realized. Also,
These processes are not limited to the above command processing contents because they have a relationship of read / write of the buffer memory for command processing inside the compression / expansion device and DMA transfer between the input / output device and the buffer memory.

【0117】バッファメモリ制御と時分割多重処理 本圧縮伸長装置1は、符号化処理と復号化処理それぞれ
2チャネル実行できることは既に説明した。MPUは、
これらのチャネルを組み合わせて、圧縮伸長装置1にラ
イン単位の時分割処理を実行させることができる。
Buffer Memory Control and Time Division Multiplexing Processing It has already been described that the compression / expansion device 1 can execute two channels for each of the encoding processing and the decoding processing. MPU is
By combining these channels, the compression / expansion device 1 can be made to execute the time-division processing on a line-by-line basis.

【0118】図35は本圧縮伸長装置1を使った時分割
多重処理の実施例である。ここでは、符号変換処理と復
号化動作の時分割処理例を示す。符号化、復号化チャネ
ル0で符号変換を実行し、チャネル1側で復号化を実行
する様子を示している。図中、は符号変換動作であ
り、圧縮データメモリ16に蓄積された符号データを復
号化し()、必要があれば画像変換処理を施して符号
化し、再度圧縮データメモリ16に格納する()。図
中、はすでに、の符号変換処理で、圧縮メモリ
に格納されている符号データを復号化しRAM28内部
に設けられたラインバッファ#1に書き込む。はライ
ンバッファからのDMA転送処理である。、の処理
の連携は既に説明した通りである。
FIG. 35 shows an embodiment of time division multiplexing processing using the compression / expansion device 1. Here, an example of time division processing of the code conversion processing and the decoding operation is shown. Encoding / decoding Channel conversion is performed on channel 0, and decoding is performed on channel 1 side. In the figure, is a code conversion operation, in which the code data accumulated in the compressed data memory 16 is decoded (), and if necessary, image conversion processing is performed to code and stored again in the compressed data memory 16 (). In the figure, in the code conversion process of, the code data stored in the compression memory is already decoded and written in the line buffer # 1 provided in the RAM 28. Is a DMA transfer process from the line buffer. The cooperation of the processes of and is as described above.

【0119】図35の処理は、図2に示したファクシミ
リ装置で実行されることを仮定する。LBP29にデー
タを供給するため、の転送は一定速が要求され、ペー
ジ内の停止はできないものとする。しかも、RAM28
はラインバッファであり、ページメモリは使わないもの
とする。このような状況化では、の転送処理の優先順
位が最も高い。
It is assumed that the processing of FIG. 35 is executed by the facsimile machine shown in FIG. Since data is supplied to the LBP 29, it is assumed that a constant speed is required for the transfer and the page cannot be stopped. Moreover, RAM28
Is a line buffer, and page memory is not used. In such a situation, the priority of the transfer process is highest.

【0120】従来の圧縮伸長装置で、その1ラインの復
号化速度が、常にLBP29の1ラインの記録速度以上
のものが存在したとしても、上記の処理を実行するのた
めに、符号変換と復号化のために複数個の圧縮伸長装置
8001、8002(図39)が必要になる。
In the conventional compression / expansion apparatus, even if the decoding speed of one line is always higher than the recording speed of one line of LBP29, the code conversion and decoding are performed in order to execute the above processing. A plurality of compression / decompression devices 8001 and 8002 (FIG. 39) are required for this.

【0121】本圧縮伸長装置1の復号化は既に説明した
手段によって、LBPの記録速度に対して平均約10倍
の処理速度で実行できるように設計されている。したが
って、図29に示したT1−WPOINTは、T1−S
TRAよりも平均して10倍早く移動し、T1−STR
Aに追いつきバッファフルの状態になる。フローチャー
トには示していないが、割り込み等の手段によって、こ
の状態をMPUは知らせることは容易に実現できる。こ
の状態になったらMPUは復号化処理を中断し、圧縮伸
長装置1に対して符号変換コマンドを発行し、処理内容
を切り替える。符号変換処理の実行中は図35の転送
は停止しているので、T1−STRAがT1−WPOI
NTに近づいてくる。そして、式4の条件が満たされる
と、MPUは圧縮伸長装置1からの割り込みによって、
バッファ内部に転送データが少なくなったことを知る。
The decoding of the compression / expansion device 1 is designed so that it can be executed at an average processing speed of about 10 times the recording speed of the LBP by the means already described. Therefore, T1-WPOINT shown in FIG.
On average 10 times faster than TRA, T1-STR
Catch up with A and the buffer is full. Although not shown in the flowchart, the MPU can easily notify this state by means such as an interrupt. In this state, the MPU interrupts the decoding process, issues a code conversion command to the compression / expansion device 1, and switches the processing content. Since the transfer of FIG. 35 is stopped during the execution of the code conversion process, T1-STRA is set to T1-WPOI.
Approaching NT. When the condition of Expression 4 is satisfied, the MPU receives an interrupt from the compression / decompression device 1 and
Know that the transfer data has decreased in the buffer.

【0122】MPUは適当なタイミングで符号変換処理
を中断し、復号化コマンドを発行する。復号化が開始す
ると、バッファ内のデータ量は増加しはじめる。この場
合、データ量が所定値以下でもその差分値はプラスにな
り、バッファメモリのアンダーフローは回避される方向
なので割り込みは発行しない。
The MPU interrupts the code conversion processing at an appropriate timing and issues a decoding command. When decoding starts, the amount of data in the buffer starts to increase. In this case, even if the amount of data is less than or equal to the predetermined value, the difference value becomes positive, and the underflow of the buffer memory is avoided, so no interrupt is issued.

【0123】MPUは以上の処理を繰り返して、符号変
換と復号化の時分割処理を実行することができる。式4
の所定値は、MPUが割り込みを受けてからコマンドを
切り替えるまでに必要な時間を確保するためのものであ
る。この値はコマンド切り替え処理時間を圧縮伸長装置
1の1ライン復号化時間で割った値を基準にして決定す
ればよい。
The MPU can execute the time-division processing of code conversion and decoding by repeating the above processing. Formula 4
The predetermined value of is to secure the time required from the MPU receiving the interrupt until the command is switched. This value may be determined based on a value obtained by dividing the command switching processing time by the one-line decoding time of the compression / expansion device 1.

【0124】本発明は、以上説明した実施例に限定され
るものではない。本発明によれば、圧縮、伸長、符号変
換のいづれか一つまたは二つ以上の動作を高速に行なう
装置を実現することができる。また、本発明による圧縮
伸長装置は、ファクシミリ装置に代表される画像通信装
置に最適であるが、画像ファイルシステム、その他シス
テムもしくは機器における同様の画像処理の用途にも好
適である。なお、本実施例では復号化処理後におけるメ
モリへの書き込み及びDMA転送について記載したが、
原稿読取り後におけるメモリへの書き込み、読み出し後
における符号化処理、記録処理等にも利用できることは
言うまでもない。
The present invention is not limited to the embodiments described above. According to the present invention, it is possible to realize an apparatus that performs at least one of compression, decompression, and code conversion at high speed. Further, the compression / expansion device according to the present invention is most suitable for an image communication device represented by a facsimile device, but is also suitable for an image file system and other similar image processing applications in a system or device. It should be noted that although the writing to the memory and the DMA transfer after the decoding processing are described in the present embodiment,
It goes without saying that it can also be used for writing to the memory after reading a document, encoding processing after reading, and recording processing.

【0125】[0125]

【発明の効果】以上の説明から明らかなように、本発明
は以下の効果を有するものである。
As is apparent from the above description, the present invention has the following effects.

【0126】符号化、復号化、符号変換などのコマンド
処理と画像データのDMA転送の連携処理によって、M
PUから1回のコマンド発行で、1ページの画像データ
を処理することができる。
By the command processing such as encoding, decoding and code conversion and the cooperative processing of the DMA transfer of the image data, M
One page of image data can be processed by issuing one command from the PU.

【0127】コマンド処理とDMA転送の連携処理によ
って、MPUの処理負担を軽減し、圧縮伸長装置のコマ
ンド待ち時間を小さくし、高速処理ができる。
By the cooperative processing of the command processing and the DMA transfer, the processing load of the MPU can be reduced, the command waiting time of the compression / expansion device can be shortened, and the high speed processing can be performed.

【0128】圧縮伸長装置がバッファメモリの残量検出
を行ない、その値が所定値以下になると、MPUにそれ
を知らせる手段を有するため、バッファメモリのアンダ
ーフロー制御が容易にできる。また、複数の処理を実行
しているときには一方の画像処理時において、MPUに
通知があるとMPUは他方の画像処理に切換えて処理す
るために、効率よく複数の画像処理を実現することがで
きる。
The compression / expansion device detects the remaining amount of the buffer memory, and when the value becomes a predetermined value or less, it has means for notifying the MPU, so that the underflow control of the buffer memory can be easily performed. Further, when a plurality of processes are being executed, when one of the image processes is informed, the MPU switches to the other image process and performs the process, so that the plurality of image processes can be efficiently realized. .

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

【図1】本発明による圧縮伸長装置の一例を示すブロッ
ク図
FIG. 1 is a block diagram showing an example of a compression / decompression device according to the present invention.

【図2】本発明による圧縮伸長装置が用いられたファク
シミリ装置の一例を示すブロック図
FIG. 2 is a block diagram showing an example of a facsimile apparatus using the compression / expansion device according to the present invention.

【図3】符号器のブロック図FIG. 3 is a block diagram of an encoder.

【図4】復号器のブロック図FIG. 4 is a block diagram of a decoder.

【図5】画像変換器のブロック図FIG. 5 is a block diagram of an image converter.

【図6】算術論理演算部と周辺のブロック図FIG. 6 is a block diagram of an arithmetic logic operation unit and its peripherals.

【図7】マイクロプログラム制御部とシステムバス制御
部のブロック図
FIG. 7 is a block diagram of a micro program control unit and a system bus control unit.

【図8】内部RAMの使用方法の説明図FIG. 8 is an explanatory diagram of how to use the internal RAM.

【図9】イメージバス制御部のブロック図FIG. 9 is a block diagram of an image bus control unit.

【図10】符号化コマンド処理のためのラインメモリ、
アドレスカウンタ及びアドレスレジスタの説明図
FIG. 10 is a line memory for processing encoded commands,
Illustration of address counter and address register

【図11】復号化コマンド処理のためのラインメモリ、
アドレスカウンタ及びアドレスレジスタの説明図
FIG. 11: Line memory for decoding command processing,
Illustration of address counter and address register

【図12】符号変換コマンド処理のためのラインメモ
リ、アドレスカウンタ及びアドレスレジスタの説明図
FIG. 12 is an explanatory diagram of a line memory, an address counter, and an address register for processing a code conversion command.

【図13】アドレスレジスタの内容を示す図FIG. 13 is a diagram showing the contents of an address register.

【図14】ラインメモリ間のデータ受け渡しを実行する
前の状態を示す図
FIG. 14 is a diagram showing a state before executing data transfer between line memories.

【図15】アドレスレジスタの内容交換によりラインメ
モリ間のデータを受け渡した後の状態を示す図
FIG. 15 is a diagram showing a state after data is transferred between line memories by exchanging contents of address registers.

【図16】圧縮動作のフローチャートFIG. 16 is a flowchart of a compression operation.

【図17】画像データ入力のフローチャートFIG. 17 is a flowchart for inputting image data.

【図18】圧縮動作時のラインメモリの使われ方とデー
タフローを示す図
FIG. 18 is a diagram showing usage and data flow of a line memory during compression operation.

【図19】伸長動作のフローチャートFIG. 19 is a flowchart of a decompression operation.

【図20】1ライン復号化のフローチャートFIG. 20 is a flowchart of 1-line decoding.

【図21】ラインバッファ制御のフローチャートFIG. 21 is a flowchart of line buffer control.

【図22】イメージ出力のフローチャートFIG. 22 is a flowchart of image output.

【図23】伸長動作時のラインメモリの使われ方とデー
タフローを示す図
FIG. 23 is a diagram showing how the line memory is used and the data flow during decompression operation.

【図24】符号変換動作のフローチャートFIG. 24 is a flowchart of a code conversion operation.

【図25】符号変換動作時のラインメモリの使われ方と
データフローを示す図
FIG. 25 is a diagram showing how the line memory is used and the data flow during a code conversion operation.

【図26】副走査方向の画像変換のためのパラメータの
説明図
FIG. 26 is an explanatory diagram of parameters for image conversion in the sub-scanning direction.

【図27】(a)副走査方向縮小のための間引きライン
の決定方法の説明図 (b)副走査方向拡大のための間引きラインの決定方法
の説明図
FIG. 27 (a) is an explanatory diagram of a thinning line determination method for reducing the sub-scanning direction, and (b) is an explanatory diagram of a thinning line determination method for expanding the sub-scanning direction.

【図28】従来のバッファメモリの制御方法の説明図FIG. 28 is an explanatory diagram of a conventional buffer memory control method.

【図29】本発明の圧縮伸長装置によるバッファメモリ
の制御方法の説明図
FIG. 29 is an explanatory diagram of a buffer memory control method by the compression / expansion device of the present invention.

【図30】バッファフルでポインタが一致した状態を示
す図
FIG. 30 is a diagram showing a state where the pointers match when the buffer is full.

【図31】初期状態でポインタが一致した状態を示す図FIG. 31 is a diagram showing a state where the pointers match in the initial state.

【図32】復号化処理後、T1−STRAが追い付く状
態を示す図
FIG. 32 is a diagram showing a state in which T1-STRA catches up after the decoding process.

【図33】バッファメモリ内のデータ量の変動を説明す
る図
FIG. 33 is a diagram for explaining fluctuations in the amount of data in the buffer memory.

【図34】DMA転送のフローチャートFIG. 34 is a flowchart of DMA transfer.

【図35】図34のサブルーチンを示すフローチャートFIG. 35 is a flowchart showing the subroutine of FIG. 34.

【図36】図35のサブルーチンを示すフローチャートFIG. 36 is a flowchart showing the subroutine of FIG. 35.

【図37】バッファ量のチェック方法を示すフローチャ
ート
FIG. 37 is a flowchart showing a method for checking the buffer amount.

【図38】時分割多重動作の説明図FIG. 38 is an explanatory diagram of time division multiplexing operation.

【図39】従来のファクシミリ装置の一例を示すブロッ
ク図
FIG. 39 is a block diagram showing an example of a conventional facsimile apparatus.

【図40】従来の圧縮伸長装置のブロック図FIG. 40 is a block diagram of a conventional compression / expansion device.

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

1 圧縮伸長装置 10 システムバス 11 イメージバス 13 MPU 16 圧縮データメモリ 21 読取画像処理部 22 記録画像処理部 28 RAM 102 DMAコントローラ 104 アドレスカウンタ 200 内部RAM 216 ラインメモリ 1 Compression / Expansion Device 10 System Bus 11 Image Bus 13 MPU 16 Compressed Data Memory 21 Read Image Processing Unit 22 Recorded Image Processing Unit 28 RAM 102 DMA Controller 104 Address Counter 200 Internal RAM 216 Line Memory

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 画像データに特定の画像処理を実行する
処理手段と、該処理手段から所定単位毎に出力された画
像データを格納する記憶手段と、該記憶手段への画像デ
ータの書き込み及び前記記憶手段からの画像データの読
み出しを行う手段と、前記記憶手段に残存する画像デー
タを検出する検出手段と、残存する画像データが予め定
めた所定値以下で、かつ前回の検出値よりも減少したと
きにこれを外部装置に通知する手段とを具備した画像処
理装置。
1. A processing means for executing specific image processing on image data, a storage means for storing image data output from the processing means for each predetermined unit, and writing of the image data to the storage means, and A means for reading out image data from the storage means, a detection means for detecting the image data remaining in the storage means, and the remaining image data is less than or equal to a predetermined value set in advance and decreased from the previous detection value. An image processing apparatus having a means for occasionally notifying this to an external device.
【請求項2】 前記所定値よりも小さな値である第2の
所定値を定め、残存する画像データが該第2の所定値に
達したときに画像データの読み出しを停止させるように
したことを特徴とする請求項1記載の画像処理装置。
2. A second predetermined value, which is a value smaller than the predetermined value, is set, and the reading of the image data is stopped when the remaining image data reaches the second predetermined value. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
【請求項3】 原稿を読取り、画像データを出力する読
取手段と、該読取手段から所定単位毎に出力された画像
データを格納する記憶手段と、該記憶手段から所定単位
毎に出力された画像データを符号化する処理手段と、前
記記憶手段に残存する画像データを頁単位内に複数回検
出する検出手段と、残存する画像データが予め定めた所
定値以下で、かつ前回の検出値よりも減少したときにこ
れを外部装置に通知する手段とを具備した画像処理装
置。
3. A reading unit for reading a document and outputting image data, a storage unit for storing image data output from the reading unit in predetermined units, and an image output in predetermined units from the storage unit. Processing means for encoding the data, detecting means for detecting the image data remaining in the storage means a plurality of times within a page unit, and the remaining image data is less than or equal to a predetermined value, and more than the previous detected value. An image processing apparatus having means for notifying an external device of the decrease.
【請求項4】 符号化された画像データを復元する処理
手段と、該処理手段から所定単位毎に出力された画像デ
ータを格納する記憶手段と、該記憶手段から所定単位毎
に出力された画像データを印字する記録手段と、前記記
憶手段に残存する画像データを所定単位内に複数回検出
する検出手段と、残存する画像データが予め定めた所定
値以下で、かつ前回の検出値よりも減少したときにこれ
を外部装置に通知する手段とを具備した画像処理装置。
4. Processing means for restoring coded image data, storage means for storing image data output from the processing means in predetermined units, and images output from the storage unit in predetermined units. Recording means for printing data, detection means for detecting image data remaining in the storage means a plurality of times within a predetermined unit, and remaining image data is less than or equal to a predetermined value that has been previously determined, and less than the previous detected value. An image processing apparatus having means for notifying an external device of this when the above.
【請求項5】 符号化された画像データを復元する処理
手段と、該処理手段から所定単位毎に出力された画像デ
ータを格納する記憶手段と、該記憶手段への画像データ
の書き込み及び前記記憶手段からの画像データの読み出
しを行う手段と、前記記憶手段に残存する画像データを
検出する検出手段と、残存する画像データが予め定めた
所定値以下で、かつ前回の検出値よりも減少したときに
これを外部装置に通知する手段とを備え、前記処理手段
は復元した画像データよりRTC信号を検出した場合に
復元処理を停止することを特徴とする画像処理装置。
5. A processing means for restoring encoded image data, a storage means for storing image data output from the processing means for each predetermined unit, and writing of the image data to the storage means and the storage. A means for reading out image data from the means, a detecting means for detecting the image data remaining in the storage means, and a remaining image data which is equal to or less than a predetermined value and which is smaller than the previously detected value. And a means for notifying this to an external device, wherein the processing means stops the restoration processing when the RTC signal is detected from the restored image data.
【請求項6】 画像データに特定の画像処理を実行する
第1の処理手段と、該第1の処理手段とは異なる画像処
理を実行する第2の処理手段と、前記第1の処理手段か
ら所定単位毎に出力された画像データを格納する記憶手
段と、該記憶手段への画像データの書き込み及び前記記
憶手段からの画像データの読み出しを行う手段と、前記
記憶手段に残存する画像データを検出する検出手段と、
残存する画像データが予め定めた所定値以下で、かつ前
回の検出値よりも減少したときに画像処理の実行を前記
第1の処理手段から前記第2の処理手段へ切換える手段
とを具備した画像処理装置。
6. A first processing means for performing specific image processing on image data, a second processing means for performing image processing different from the first processing means, and the first processing means. Storage means for storing image data output for each predetermined unit, means for writing image data to the storage means and reading image data from the storage means, and detecting image data remaining in the storage means Detection means,
An image having means for switching the execution of the image processing from the first processing means to the second processing means when the remaining image data is equal to or less than a predetermined value and which is smaller than the previous detected value. Processing equipment.
JP6258213A 1994-10-24 1994-10-24 Image processing unit Pending JPH08125818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6258213A JPH08125818A (en) 1994-10-24 1994-10-24 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6258213A JPH08125818A (en) 1994-10-24 1994-10-24 Image processing unit

Publications (1)

Publication Number Publication Date
JPH08125818A true JPH08125818A (en) 1996-05-17

Family

ID=17317095

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6258213A Pending JPH08125818A (en) 1994-10-24 1994-10-24 Image processing unit

Country Status (1)

Country Link
JP (1) JPH08125818A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008005303A (en) * 2006-06-23 2008-01-10 Toshiba Corp Line memory mounting device and television receiver
US8126295B2 (en) 2003-10-06 2012-02-28 Samsung Electronics Co., Ltd. Image processing apparatus and method of using the same
JP2013115458A (en) * 2011-11-25 2013-06-10 Ricoh Co Ltd Image processing apparatus and program
US9491346B2 (en) 1996-06-28 2016-11-08 Metrovideo, Inc. Image acquisition system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9491346B2 (en) 1996-06-28 2016-11-08 Metrovideo, Inc. Image acquisition system
US8126295B2 (en) 2003-10-06 2012-02-28 Samsung Electronics Co., Ltd. Image processing apparatus and method of using the same
JP2008005303A (en) * 2006-06-23 2008-01-10 Toshiba Corp Line memory mounting device and television receiver
US8164693B2 (en) 2006-06-23 2012-04-24 Kabushiki Kaisha Toshiba Line memory packaging apparatus and television receiver
JP2013115458A (en) * 2011-11-25 2013-06-10 Ricoh Co Ltd Image processing apparatus and program

Similar Documents

Publication Publication Date Title
US6900909B2 (en) Image processor
JP3000744B2 (en) Multi-function image processing device
US5574834A (en) Image communication system for following a communication procedure to simultaneously transmit image code data
US7599087B2 (en) Method and apparatus for image processing, and a computer product
US20030164975A1 (en) Image processing apparatus and image processing method
US5412488A (en) Data processing apparatus dual-bus data processing with reduced cpu and memory requirements
US20040109186A1 (en) Image forming apparatus and image data transforming method
US8027546B2 (en) Method, apparatus, and computer program for image data processing
JPH11122498A (en) Picture processor
JPH08125818A (en) Image processing unit
JPH04252557A (en) Parallel picture processor
JP3083493B2 (en) Image processing device
JP3024850B2 (en) Image processing device
JP2004221998A (en) Image processor
JP4080658B2 (en) Encoding / decoding device
JPH06291991A (en) Picture communications equipment
JP2003250031A (en) Image processing apparatus and image processing method
JP2599524B2 (en) Image communication device
JPH06164947A (en) Picture signal coder
JPH0844875A (en) Encoding processor
JP2003078770A (en) Image processing method and its apparatus
JP2001186355A (en) Picture processor
JPH0774967A (en) Facsimile equipment and its decoding method
JP2002051220A (en) Image processor
JPH09307725A (en) Dma transfer method