JPH0465584B2 - - Google Patents
Info
- Publication number
- JPH0465584B2 JPH0465584B2 JP341683A JP341683A JPH0465584B2 JP H0465584 B2 JPH0465584 B2 JP H0465584B2 JP 341683 A JP341683 A JP 341683A JP 341683 A JP341683 A JP 341683A JP H0465584 B2 JPH0465584 B2 JP H0465584B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- data
- buffer
- address
- image 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.)
- Expired
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N1/32101—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N1/32106—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title separate from the image data, e.g. in a different computer file
- H04N1/32112—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title separate from the image data, e.g. in a different computer file in a separate computer file, document page or paper sheet, e.g. a fax cover sheet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/41—Bandwidth or redundancy reduction
- H04N1/411—Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
- H04N1/413—Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information
- H04N1/415—Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information in which the picture-elements are subdivided or grouped into fixed one-dimensional [1D] or two-dimensional [2D] blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N2201/3201—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N2201/3225—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title of data relating to an image, a page or a document
- H04N2201/3254—Orientation, e.g. landscape or portrait; Location or order of the image data, e.g. in memory
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N2201/00—Indexing scheme relating to scanning, transmission or reproduction of documents or the like, and to details thereof
- H04N2201/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
- H04N2201/3201—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N2201/3274—Storage or retrieval of prestored additional information
- H04N2201/3277—The additional information being stored in the same storage device as the image data
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Image Input (AREA)
- Facsimiles In General (AREA)
Description
【発明の詳細な説明】
〔利用分野〕
本発明は、画像データの圧縮又は復元を高速で
行なうことができるようにした画像データ変換装
置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Application] The present invention relates to an image data conversion device that can compress or restore image data at high speed.
従来のデジタル画像処理装置においては、一般
に入力部から処理部、処理部から出力部へ、画像
を主走査方向の一次元のビツト列として扱えば、
画像データの形式を変換する必要がなく簡単であ
るが、多量のメモリが必要になる。例えば、B4
サイズ1ページ記憶するのに約2メガバイトのメ
モリが必要になる。
In conventional digital image processing devices, if the image is generally treated as a one-dimensional bit string in the main scanning direction from the input section to the processing section and from the processing section to the output section,
It is simple as it does not require converting the image data format, but it requires a large amount of memory. For example, B4
Approximately 2 megabytes of memory is required to store one page in size.
そこで、扱うデータ量を少なくするために、画
像データを圧縮して処理部にとりこみ、圧縮デー
タで処理を行ない、再び一次元のビツト列に復元
して出力部に転送するという方法が考えられてい
る。 Therefore, in order to reduce the amount of data to be handled, a method has been considered in which the image data is compressed and taken into the processing section, the compressed data is processed, and then restored to a one-dimensional bit string and transferred to the output section. There is.
この処理部での画像データの表現方式につい
て、本発明者は先に特許出願した(特願昭57−
91406号)。この特許出願に記された画像データの
表現方式は、簡単に説明すると次のようである。 The present inventor previously filed a patent application for the representation method of image data in this processing section (Japanese Patent Application No. 1983-
No. 91406). The image data representation method described in this patent application can be briefly explained as follows.
今、第1図に示されているように、横がM×p
ドツト、縦がN×qドツトで構成される画像1が
あつたとすると、この画像1をp×q個のユニツ
トに分割する。そして、各ユニツト対応のエリア
を有するマツプメモリを作成する。このマツプメ
モリを模式的に表現すると第2図のようになる。 Now, as shown in Figure 1, the width is M×p
Assuming that there is an image 1 consisting of N×q dots vertically, this image 1 is divided into p×q units. Then, a map memory having areas corresponding to each unit is created. This map memory is schematically expressed as shown in FIG.
このマツプメモリ2はp×q個の単位メモリを
備えており、各単位メモリには以下のような情報
が記憶される。 This map memory 2 includes p×q unit memories, and each unit memory stores the following information.
1 対応するユニツトの画情報がオール0(真白)
であるときは、0または特定の数
2 対応するユニツトの画情報がオール0でない
ときは、対応するユニツトの画像データが格納
されているデータメモリへのポインタ(例え
ば、後述するデータメモリの先頭アドレス)
第3図はデータメモリの説明図である。データ
メモリ3は、第1図の各ユニツトのうち、画情報
がオール0でないものについて、M×Nドツトを
単位として画情報を記憶する。そして、その記憶
番地は、前記マツプメモリによつて、指定された
位置である。1 The image information of the corresponding unit is all 0 (pure white)
, then 0 or a specific number 2. If the image information of the corresponding unit is not all 0, a pointer to the data memory where the image data of the corresponding unit is stored (for example, the start address of the data memory described later). ) FIG. 3 is an explanatory diagram of the data memory. The data memory 3 stores image information in units of M.times.N dots for the units shown in FIG. 1 whose image information is not all 0. The storage address is the location specified by the map memory.
例えば第1図の画面上で、(i,j)および
(l,m)ユユニツトに画情報が含まれていると
仮定すると、それぞれの(M×N)ドツトの情報
が、第3図のメモリ領域3−1,3−2にそれぞ
れ記憶される。そして、マツプメモリ2の(i,
j)(l,m)位置には、前記メモリ領域へのポ
インタが、それぞれ記憶される。 For example, assuming that the (i, j) and (l, m) units on the screen in Figure 1 contain image information, the information for each (M x N) dot is stored in the memory in Figure 3. They are stored in areas 3-1 and 3-2, respectively. Then, (i,
j) Pointers to the memory areas are stored at the (l, m) positions, respectively.
以上のように、上記の方式ではM×Nドツトマ
トリクス(ユニツト)の内容に黒画素が含まれる
場合だけ記憶することによつて全体の画像データ
を圧縮するようにしている。 As described above, in the above system, the entire image data is compressed by storing only when black pixels are included in the contents of the M.times.N dot matrix (unit).
ところで、前述のように、読み取り時に圧縮、
出力時に復元するものとすると、この圧縮、復元
の速度は入出力の速度と同じかそれ以上でなけれ
ばならない。 By the way, as mentioned above, compression when reading,
If decompression is to be performed at the time of output, the speed of compression and decompression must be the same as or faster than the speed of input and output.
従つて、圧縮、復元が高速であることが要求さ
れるが従来の装置では十分高速に圧縮および復元
できる装置はなかつた。 Therefore, high-speed compression and decompression is required, but no conventional device has been able to compress and decompress at a sufficiently high speed.
本発明の目的は、M×Nドツトマトリクス(ユ
ニツト)の内容に黒画素を含むかどうか、すなわ
ち、該ユニツトを記憶する必要があるかどうかの
判断を素速く行なうことができるようにすること
により、画像データの圧縮又は復元が高速に行な
えるようにすることにある。
An object of the present invention is to quickly determine whether or not the contents of an M×N dot matrix (unit) include black pixels, that is, whether or not the unit needs to be stored. The object of the present invention is to enable high-speed compression or restoration of image data.
本発明の特徴は、画像データの1ライン分のワ
ード数をM、1ワード×Nラインを1ユニツトし
た時、2m×N(ただし2m≧M)の容量を有す
る第1および第2のメモリバツフア、該メモリバ
ツフアのそれぞれをアドレツシングする第1およ
び第2のバツフアアドレスレジスタ、該第1およ
び第2のメモリバツフアから読み出された1ユニ
ツトのデータがオール0かあるいはそれ以外かを
指示する符号が該ユニツト対応で記録されるマツ
プメモリ、前記1ユニツトのデータがオール0以
外の時、前記マツプメモリに記録された符号(ポ
インタ)をアドレスとするエリアに前記オール0
以外の1ユニツトの画像データが書き込まれるデ
ータメモリを具備し、前記第1および第2のメモ
リバツフアの一方に、メモリアドレスの連続方向
に入力画像データを書き込んでいる間に、前記メ
モリバツフアの他方から2mおきのアドレスでN
ワードを連続して読み出して画像データを圧縮す
るようにした点にある。
The present invention is characterized by first and second memory buffers each having a capacity of 2m x N (however, 2m≧M) when the number of words for one line of image data is M, and 1 word x N lines is one unit. First and second buffer address registers address each of the memory buffers, and a code indicating whether one unit of data read from the first and second memory buffers is all 0 or other is the unit. When the data of one unit is other than all 0s, the all 0s are stored in the area whose address is the code (pointer) recorded in the map memory.
2 m from the other memory buffer while writing the input image data into one of the first and second memory buffers in the direction of consecutive memory addresses. N at the old address
The key point is that the image data is compressed by reading out words in succession.
また、本発明の他の特徴は前記圧縮された画像
データを復元するときは、該圧縮されている画像
データにもとづいて、前記第1および第2のメモ
リバツフアの一方に、2mおきのアドレスでNワ
ードを連続して書き込んでいる間に、前記メモリ
バツフアの他方からメモリアドレスの連続方向に
読み出すようにした点にある。 Another feature of the present invention is that when restoring the compressed image data, based on the compressed image data, N addresses are stored in one of the first and second memory buffers at intervals of 2m. The present invention is characterized in that while words are being written in succession, they are read from the other memory buffer in the direction of successive memory addresses.
以下に本発明を実施例によつて説明する。第4
図は本発明の一実施例を示す。なお、本実施例
は、1ワードが16ビツトからなり、1ラインが
256ワードからなる画像を、16ビツト×16ワード
を1ユニツトとして圧縮変換する場合、すなわ
ち、第1図のM=N=16、p=256の場合を想定
している。
The present invention will be explained below by way of examples. Fourth
The figure shows an embodiment of the invention. Note that in this embodiment, one word consists of 16 bits, and one line consists of 16 bits.
It is assumed that an image consisting of 256 words is compressed and converted with 16 bits x 16 words as one unit, that is, M=N=16 and p=256 in FIG.
図において、11はシリアルで入力してくる読
み取り信号(RISビデオ)aをパラレルに変換す
るS/P(シリアル/パラレル)変換器、12a
および12bは、それぞれ一方がオンのとき他方
がオフになる入力ライン選択回路、13aおよび
13bは、それぞれ第1および第2のバツフアア
ドレスレジスタである。これらのバツフアアドレ
スレジスタ13a,13bはそれぞれ、下位8ビ
ツトと上位4ビツトの計12ビツトからなる。この
ため、該バツフアアドレスレジスタ13a,13
bは、ラインの区切り毎に下位8ビツト(28=
256)がクリアされ、上位4ビツトに1が繰り上
げられる。したがつて、1ライン(=256ワード)
の読み込みが終ると、前記下位8ビツトはクリア
され、16ラインの区切りで上位4ビツトは0クリ
アされる。14は、前記入力ライン選択回路12
aおよび12bに、これらのいずれか一方を選択
する入力ライン選択信号bを送ると共に、後述す
るメモリバツフアに1ワード書き込むつどに1個
のパルス信号を前記バツフアアドレスレジスタ1
3a又は13bに送るバツフアコントロール回路
である。 In the figure, 11 is an S/P (serial/parallel) converter that converts the read signal (RIS video) a that is input serially into parallel; 12a
and 12b are input line selection circuits in which the other is turned off when one is on, and 13a and 13b are first and second buffer address registers, respectively. Each of these buffer address registers 13a, 13b consists of a total of 12 bits, including lower 8 bits and upper 4 bits. Therefore, the buffer address registers 13a, 13
b is the lower 8 bits for each line break (2 8 =
256) is cleared and the upper 4 bits are incremented by 1. Therefore, 1 line (=256 words)
When reading is completed, the lower 8 bits are cleared, and the upper 4 bits are cleared to 0 at intervals of 16 lines. 14 is the input line selection circuit 12
A and 12b, an input line selection signal b for selecting one of them is sent, and one pulse signal is sent to the buffer address register 1 each time one word is written to the memory buffer (described later).
This is a buffer control circuit for sending data to 3a or 13b.
また、15aおよび15bは、入力ライン選択
回路12aおよび12bのいずれか一方を通つて
きた1ワード16ビツトの入力信号が、パラレルで
入力する256ワード×16ラインの容量を有する第
1および第2のメモリバツフアである。換言すれ
ば、該第1および第2のメモリバツフア15a,
15bは、それぞれ256ユニツトのデータを一度
に格納することができる。 Further, 15a and 15b are connected to first and second circuits having a capacity of 256 words x 16 lines, to which an input signal of 1 word and 16 bits that has passed through either one of the input line selection circuits 12a and 12b is input in parallel. It is a memory buffer. In other words, the first and second memory buffers 15a,
15b can each store 256 units of data at one time.
16a,16bはそれぞれ、出力ライン選択回
路であり、図示されていないCPUから入力する
読み出しライン選択信号cにより、いずれか一方
の出力ラインが選択される。17は、出力ライン
選択回路を通つた16ビツトのデータがオール0で
あるか否かを検出する0検出器である。 Reference numerals 16a and 16b each represent an output line selection circuit, and one of the output lines is selected by a read line selection signal c input from a CPU (not shown). 17 is a 0 detector that detects whether the 16-bit data passed through the output line selection circuit is all 0 or not.
18は、前記メモリバツフア15a又は15b
から読み出された16ワード(=1ユニツト)のデ
ータを一時記憶するレジスタである。 18 is the memory buffer 15a or 15b
This is a register that temporarily stores 16 words (=1 unit) of data read from.
また、19はマツプアドレスレジスタ、20は
データアドレスレジスタ、21は16ビツトの0デ
ータ発生器、22はマツプメモリおよびデータメ
モリを含むメインメモリである。前記マツプアド
レスレジスタ19は20ビツト構成であり、メモリ
アドレスバス23に接続されている。データアド
レスレジスタ20は下位4ビツトと上位16ビツト
からなり、この上位16ビツトはメモリライトバス
24に接続されている。また、この下位4ビツト
と上位16ビツトとを合せた20ビツトは、メモリア
ドレスバスス23に接続されている。 Further, 19 is a map address register, 20 is a data address register, 21 is a 16-bit 0 data generator, and 22 is a main memory including a map memory and a data memory. The map address register 19 has a 20-bit configuration and is connected to the memory address bus 23. The data address register 20 consists of lower 4 bits and upper 16 bits, and the upper 16 bits are connected to the memory write bus 24. Furthermore, the lower 4 bits and the upper 16 bits, totaling 20 bits, are connected to the memory address bus 23.
次に、上記した構成の本実施例の動作を説明す
る。先ず、S/P変換器11で16ビツトのパラレ
ル信号に変換された入力データをメモリバツフア
15a又は15bに格納する動作について、第5
図のフローチヤートを参照しながら説明する。な
お、第1および第2のメモリバツフア15a,1
5bは第1および第2のバツフアアドレスレジス
タ13aおよび13bの下位8ビツトで主走査方
向のアドレスが、上位4ビツトで副走査方向のア
ドレスが指定される。 Next, the operation of this embodiment having the above configuration will be explained. First, the operation of storing input data converted into a 16-bit parallel signal by the S/P converter 11 in the memory buffer 15a or 15b will be explained in the fifth section.
This will be explained with reference to the flowchart shown in the figure. Note that the first and second memory buffers 15a, 1
5b, the lower 8 bits of the first and second buffer address registers 13a and 13b specify an address in the main scanning direction, and the upper 4 bits specify an address in the sub-scanning direction.
ステツプS1…入力ライン選択信号bによつて、
例えば入力ライン選択回路12aが選択され
る。Step S1...By input line selection signal b,
For example, the input line selection circuit 12a is selected.
ステツプS2…第2のバツフアアドレスレジスタ
13bがクリアされ、0にされる。Step S2...The second buffer address register 13b is cleared and set to 0.
ステツプS3…S/P変換器11から、1ワード
のデータを出力し、このデータをステツプS2
で指定されたアドレスに対応する第2のメモリ
バツフア15bに格納する。Step S3...One word of data is output from the S/P converter 11, and this data is sent to step S2.
is stored in the second memory buffer 15b corresponding to the address specified by.
ステツプS4…第2のバツフアアドレスレジスタ
13bに1加算する。Step S4: Add 1 to the second buffer address register 13b.
ステツプS5…第2のバツフアアドレスレジスタ
13bから、キヤリーが出たか否か判断する。
キヤリーが出ていなければステツプS3に戻る。
そして、ステツプS5で第2のバツフアアドレ
スレジスタ13bからキヤリーが出たと判断さ
れるまで、ステツプS3とS4が繰り返される。
これによつて、第2のバツフア15bに、256
ワード×16のデータが格納される。ステツプ
S5でイエスになると、ステツプS6へ進む。Step S5: It is determined whether a carry has been issued from the second buffer address register 13b.
If there is no carry, return to step S3.
Steps S3 and S4 are then repeated until it is determined in step S5 that a carry has been output from the second buffer address register 13b.
As a result, the second buffer 15b has 256
Word x 16 data is stored. step
If YES in S5, proceed to step S6.
ステツプS6…画像情報の全部が入力し終つたか
否かの判断がなされ、イエスであれば終了す
る。ノーであれば、次のステツプS7に進む。Step S6: It is determined whether all of the image information has been input, and if YES, the process ends. If no, proceed to the next step S7.
ステツプS7…入力ライン選択回路12bが入力
ライン選択信号によつて選ばれる。Step S7...The input line selection circuit 12b is selected by the input line selection signal.
ステツプS8…第1のバツフアアドレスレジスタ
13aがクリアされ、0になる。Step S8...The first buffer address register 13a is cleared and becomes 0.
ステツプS9,S10,S11…前記ステツプS3,S4,
S5と同様の処理手順であるので説明を省略す
る。なお、ステツプS11でイエスになると、第
1のメモリバツフア15aに256×16ワードの
データが格納される。Steps S9, S10, S11...The steps S3, S4,
Since the processing procedure is the same as S5, the explanation will be omitted. Note that if the answer is YES in step S11, 256×16 words of data are stored in the first memory buffer 15a.
ステツプS12…画像情報の全部が入力し終つたか
否かの判断がなされる。イエスであれば、終了
する。ノーであれば、ステツプS1に戻つて再
度上記と同じ手順が繰り返される。なお、第1
のメモリバツフア15aに入力情報が書き込ま
れている間に第2のメモリバツフア15bに入
力されていたデータが読み出され、逆に、第2
のメモリバツフア15bに入力情報が書き込ま
れている間に第1のメモリバツフア15aに入
力されていたデータが読み出されることは勿論
である。Step S12: It is determined whether all of the image information has been input. If yes, end. If no, the process returns to step S1 and the same procedure as above is repeated again. In addition, the first
While the input information is being written to the second memory buffer 15a, the data input to the second memory buffer 15b is read out;
Of course, while the input information is being written to the first memory buffer 15b, the data input to the first memory buffer 15a is read out.
次に第1および第2のメモリバツフア15aお
よび15bからデータを読み出すときの処理につ
いて、第6図a,bのフローチヤートを参照して
説明する。 Next, the process of reading data from the first and second memory buffers 15a and 15b will be described with reference to the flowcharts in FIGS. 6a and 6b.
ステツプS21…マツプアドレスレジスタ19に、
メインメモリ22中にあるマツプメモリの最初
の番地をセツトする。また、データアドレスレ
ジスタ20に、データメモリの最初の番地をセ
ツトする。この場合、該データメモリの最初の
番地としては下位4ビツトが0のものを運ぶ。Step S21...In the map address register 19,
Set the first address of map memory in main memory 22. Also, the first address of the data memory is set in the data address register 20. In this case, the first address of the data memory carries the lower 4 bits of 0.
ステツプS22…読み出しライン選択信号cによつ
て、出力ライン選択回路16bを選択する。Step S22: The output line selection circuit 16b is selected by the read line selection signal c.
ステツプS23…第1のバツフアアドレスレジスタ
13aをクリアし、0にする。Step S23: Clear the first buffer address register 13a and set it to 0.
ステツプS24…第1のメモリバツフア15aから
1ワード読み出し、16ワードレジスタ18に格
納する。Step S24: One word is read from the first memory buffer 15a and stored in the 16-word register 18.
ステツプS25…第1のバツフアアドレスレジスタ
13aの上位4ビツトに1を加算する。Step S25: Add 1 to the upper 4 bits of the first buffer address register 13a.
ステツプS26…第1のバツフアアドレスレジスタ
13aの上位4ビツトからキヤリーが出たか否
かを判断する。ノーであれば、ステツプS24に
戻る。イエスであれば、次のステツプS27へ進
む。なお、ステツプS26でイエスになつた時
は、第1のメモリバツフア15aから1ユニツ
トのデータが16ワードレジスタ18に転送され
たことになることは明らかであろう。Step S26: It is determined whether a carry has occurred from the upper 4 bits of the first buffer address register 13a. If no, the process returns to step S24. If YES, proceed to the next step S27. It should be noted that when the answer is YES in step S26, it is clear that one unit of data has been transferred to the 16 word register 18 from the first memory buffer 15a.
ステツプS27…0検出器17によつて、16ワード
レジスタ18に入力されたデータがオール0で
あるか否かの判断がなされる。ノーであれば、
ステツプS28へ進み、イエスであればステツプ
S32へ進む。Step S27...The 0 detector 17 determines whether the data input to the 16 word register 18 is all 0s. If no,
Proceed to step S28, if yes, proceed to step S28.
Proceed to S32.
ステツプS28…マツプアドレスレジスタ19によ
つて指定されたメインメモリ22中のマツプメ
モリの番地に、データアドレスレジスタ20の
上位16ビツトのポインタを書き込む。Step S28: Write the pointer of the upper 16 bits of the data address register 20 to the map memory address in the main memory 22 specified by the map address register 19.
ここに、マツプメモリに書き込むポインタとし
て、データアドレスレジスタ20の上位16ビツト
を用いるのは、次の理由による。本実施例では、
ヘキサデシマルで信号処理が行なわれており、マ
ツプメモリに入力するポインタとして、データメ
モリのメモリアドレスを16で除算した値を用いる
と、データメモリのアドレス空間を拡張すること
ができる。すなわち、16ビツトでアドレス指定す
る場合で、ポインタとしてデータメモリのメモリ
アドレスを16で割つた値を用いないときには、第
7図aに示されているように、データメモリのア
ドレス空間は0〜FFFFまでになる。これに対し
て、前記のように、ポインタとしてデータメモリ
アドレスを16で除算した値を用いると、第7図b
に示されているように、10(ヘキサデシマル)/
16=1であるので、データメモリのアドレス空間
を0〜FFFFFまで大幅に拡張することができる。 The reason why the upper 16 bits of the data address register 20 are used as the pointer to be written into the map memory is as follows. In this example,
Signal processing is performed in hexadecimal, and by using the value obtained by dividing the memory address of the data memory by 16 as the pointer input to the map memory, the address space of the data memory can be expanded. In other words, when specifying an address using 16 bits and not using the value obtained by dividing the memory address of the data memory by 16 as the pointer, the address space of the data memory is 0 to FFFF, as shown in Figure 7a. Until. On the other hand, if the value obtained by dividing the data memory address by 16 is used as the pointer as described above, then
10 (hexadecimal)/
Since 16=1, the address space of the data memory can be greatly expanded from 0 to FFFFF.
再び第6図のフローチヤートに戻つて、本実施
例の動作を説明する。 Returning again to the flowchart of FIG. 6, the operation of this embodiment will be explained.
ステツプS29…データアドレスレジスタ20の全
ビツト(20ビツト)によつて指定されるデータ
メモリの番地に、16ワードレジスタ18の1ワ
ードを書き込む。Step S29: Write one word of the 16-word register 18 to the data memory address specified by all bits (20 bits) of the data address register 20.
ステツプS30…データアドレスレジスタ20に1
を加算する。Step S30...Set 1 to data address register 20
Add.
ステツプS31…データアドレスレジスタ20の下
位4ビツトからキヤリーが出力されたか否かの
判断がなされる。ノーであれば、ステツプS29
へ戻り、ステツプS31でイエスになるまで、ス
テツプS29とS30が繰り返される。これによつ
て、16ワードレジスタ18に格納されていた全
データがデータメモリに転送される。Step S31: It is determined whether a carry is output from the lower 4 bits of the data address register 20. If no, step S29
Steps S29 and S30 are repeated until step S31 returns YES. As a result, all data stored in the 16-word register 18 is transferred to the data memory.
ステツプS32…ステツプS27で16ワードレジスタ
18に格納されたデータがオール0であると判
断された時は、マツプアドレスレジスタ19に
よつて指定されたマツプメモリの番地に、0デ
ータ発生器21から発生された0が格納され
る。Step S32...When it is determined in step S27 that the data stored in the 16 word register 18 is all 0, the 0 data generator 21 generates the data at the map memory address specified by the map address register 19. 0 is stored.
ステツプS33…マツプアドレスレジスタ19に1
を加算する。Step S33...Set 1 to map address register 19
Add.
ステツプS34…第1のメモリバツフア15aから
全ワードの読み出しが終了したか否かの判断が
なされる。ノーであれば、ステツプS24へ戻
り、再度前述のステツプS24〜ステツプS33ま
での手順が繰り返される。ステツプS34でイエ
スになると、次のステツプS35へ進む。Step S34: It is determined whether reading of all words from the first memory buffer 15a has been completed. If the answer is no, the process returns to step S24, and the aforementioned steps from step S24 to step S33 are repeated again. If the answer is YES in step S34, the process advances to the next step S35.
ステツプS35…第2のメモリバツフア15bに新
しいデータが入力されているか否かの判断がな
される。ここで、ノーであれば終了する。一
方、イエスであれば、ステツプS36に進む。Step S35: It is determined whether new data has been input to the second memory buffer 15b. Here, if no, the process ends. On the other hand, if YES, the process advances to step S36.
ステツプS36…出力ライン選択回路16aを選択
する。Step S36... Select the output line selection circuit 16a.
ステツプS37…第2のバツフアレジスタ13bが
クリアされ、0がセツトされる。Step S37...The second buffer register 13b is cleared and set to 0.
ステツプS38…第2のバツフア15bから1ワー
ドを読み出し、16ワードレジスタ18に格納す
る。Step S38: One word is read from the second buffer 15b and stored in the 16-word register 18.
以下、前記ステツプS25〜S33と同様の手順が
行なわれる。 Thereafter, the same procedures as steps S25 to S33 are performed.
ステツプS39…第2のメモリバツフア15bか
ら、全ワードの読み出しが終了したか否かの判
断がなされる。ノーであれば、ステツプS38へ
戻る。イエスであれば、次のステツプS40へ進
む。Step S39: It is determined whether all words have been read from the second memory buffer 15b. If no, return to step S38. If YES, proceed to the next step S40.
ステツプS40…第1のメモリバツフア15aに新
しいデータが入力されているか否かの判断がな
される。イエスであれば、前記ステツプS22に
戻る。ノーであれば、終了する。Step S40: It is determined whether new data has been input to the first memory buffer 15a. If YES, the process returns to step S22. If no, terminate.
以上の説明から明らかなように、本実施例によ
れば、第1図に示されているような画像の各ユニ
ツトに対応するマツプメモリ領域に、ユニツトの
データがオール0であれば0を、またオール0で
なければポインタを入力することができる。ま
た、該ポインタに対応したデータメモリ領域に
は、前記ユニツトに0以外のデータが混つている
時のみ、該ユニツトの全データを格納することが
できる。 As is clear from the above explanation, according to this embodiment, if the data of the unit is all 0, 0 is stored in the map memory area corresponding to each unit of the image shown in FIG. If all values are not 0, a pointer can be input. Further, all data of the unit can be stored in the data memory area corresponding to the pointer only when the unit contains data other than 0.
本実施例では、256×16ワードのメモリバツフ
アを2個設け、交互に書き込み、読み出しを行な
つているので、上記のような画像データの圧縮処
理を高速で行なうことが可能である。 In this embodiment, two 256.times.16 word memory buffers are provided, and writing and reading are performed alternately, so that the image data compression process described above can be performed at high speed.
次に、データの圧縮と、復元の両方を可能にし
た本発明の他の実施例を第3図で説明する。第8
図において、25はメモリリードバス、26はデ
ータバス、27a,27bはそれぞれCPUから
の制御信号eによつて開閉が制御される第1およ
び第2の読み込みライン選択回路、28aおよび
28bはそれぞれ第1および第2の出力ライン選
択回路、29はP/S(パラレル/シリアル)変
換器を示す。また、その他の符号は第4図と同じ
物又は同等物を示す。 Next, another embodiment of the present invention that enables both data compression and restoration will be described with reference to FIG. 8th
In the figure, 25 is a memory read bus, 26 is a data bus, 27a and 27b are first and second read line selection circuits whose opening and closing are respectively controlled by a control signal e from the CPU, and 28a and 28b are respective first and second read line selection circuits. 1 and the second output line selection circuit, and 29 indicates a P/S (parallel/serial) converter. Further, other symbols indicate the same or equivalent items as in FIG. 4.
第8図の構成を見れば明らかなように、データ
の圧縮のプロセスは第1実施例と同じであるの
で、説明を省略する。 As is clear from the configuration shown in FIG. 8, the data compression process is the same as in the first embodiment, so its explanation will be omitted.
本実施例によつて圧縮されたデータを復元する
ときの動作を、第9図のフローチヤートを参照し
ながら説明する。なお、復元することの意味は、
第2図および第3図に示されているマツプメモリ
とデータメモリに格納された圧縮情報から、第1
図に示されている元のデータを作ることであるこ
とは、言うまでもなく、明らかであろう。 The operation of restoring data compressed by this embodiment will be explained with reference to the flowchart of FIG. Furthermore, the meaning of restoring is
From the compressed information stored in the map memory and data memory shown in FIGS. 2 and 3, the first
It goes without saying that the purpose is to create the original data shown in the figure.
先ず、メインメモリ22中のマツプメモリに格
納された0(=NIL)のデータとポインタとによ
り、0データ発生器21およびメインメモリ22
中のデータメモリにアクセスし、該0データ発生
器21およびデータメモリから読み出されたデー
タを、第1又は第2のメモリバツフア15a又は
15bに格納する場合の動作について説明する。 First, the 0 data generator 21 and the main memory 22 are activated by the 0 (=NIL) data and pointer stored in the map memory in the main memory 22
The operation when accessing the data memory in the 0 data generator 21 and storing data read from the data memory into the first or second memory buffer 15a or 15b will be described.
ステツプS50…マツプアドレスレジスタ19にマ
ツプメモリの先頭アドレスを入れる。またデー
タアドレスレジスタ20の下位4ビツトに0を
入力する。Step S50...The start address of the map memory is input into the map address register 19. Also, 0 is input to the lower 4 bits of the data address register 20.
ステツプS51…第1および第2の読み込みライン
選択回路27aおよび27bの一方、例えば、
読み込みライン選択回路27aを図示されてい
ないCPUからの制御信号cによつて選択する。Step S51...One of the first and second read line selection circuits 27a and 27b, for example,
The read line selection circuit 27a is selected by a control signal c from a CPU (not shown).
ステツプS52…第2のバツフアアドレスレジスタ
13bをクリアし、0をセツトする。Step S52: Clear the second buffer address register 13b and set it to 0.
ステツプS53…マツプアドレスレジスタ19にあ
るマツプアドレスにより、メモリアドレスバス
23を通つて、メインメモリ22中にあるマツ
プメモリをアクセスする。Step S53: The map memory in the main memory 22 is accessed via the memory address bus 23 using the map address in the map address register 19.
ステツプS54…マツプメモリのデータが0か否か
を判断する。ノーであれば、次のステツプS55
に進む。イエスの時はステツプS62に進む。Step S54: Determine whether the data in the map memory is 0 or not. If no, next step S55
Proceed to. If YES, the process advances to step S62.
ステツプS55…マツプメモリのデータ、すなわち
ポインタをデータアドレスレジスタ20の上位
16ビツトに入れる。Step S55...The map memory data, that is, the pointer, is transferred to the upper part of the data address register 20.
Set it to 16 bit.
ステツプS56…データメモリをアクセスして、1
ワードを読み出し、16ワードレジスタ18に入
れる。Step S56...Access the data memory and
Read the word and place it in the 16 word register 18.
ステツプS57…データアドレスレジスタ20に1
を加算する。Step S57...Set 1 to data address register 20
Add.
ステツプS58…データアドレスレジスタ20の下
位4ビツトからその上位ビツトにキヤリーが出
たかどうかの判断がなされる。ノーであればス
テツプS56に戻る。そして、ステツプS58がイ
エスになるまでステツプS56とS57が繰り返さ
れる。これによつて、データメモリ中に記憶さ
れている前記ポインタに対応する16ワードのデ
ータが16ワードレジスタ18に格納される。Step S58: It is determined whether a carry has appeared from the lower four bits of the data address register 20 to its upper bit. If no, the process returns to step S56. Steps S56 and S57 are then repeated until step S58 becomes YES. As a result, 16 words of data corresponding to the pointer stored in the data memory are stored in the 16 word register 18.
ステツプS59…16ワードレジスタ18から第1の
読み込みライン選択回路27aを経て第2のメ
モリバツフア15bに、1ワードのデータが転
送される。Step S59...One word of data is transferred from the 16-word register 18 to the second memory buffer 15b via the first read line selection circuit 27a.
ステツプS60…第2のバツフアアドレスレジスタ
13bの上位4ビツトに1が加算される。Step S60...1 is added to the upper 4 bits of the second buffer address register 13b.
ステツプS61…第2のバツフアアドレスレジスタ
13bの上位4ビツトからキヤリーが出たか否
かの判断がなされる。ノーであれば、ステツプ
S59へ戻る。ステツプS61がイエスになるまで、
ステツプS59とS60が繰り返される。これによ
つて、16ワードレジスタ18に記憶されていた
1ユニツトのデータが、第2のメモリバツフア
15bに、主走査方向1ワード、副走査方向16
ラインの形で格納される。Step S61: It is determined whether a carry has occurred from the upper 4 bits of the second buffer address register 13b. If no, step
Return to S59. Until step S61 becomes YES,
Steps S59 and S60 are repeated. As a result, one unit of data stored in the 16-word register 18 is transferred to the second memory buffer 15b by one word in the main scanning direction and 16 units in the sub-scanning direction.
Stored in the form of a line.
ステツプS62…ステツプS54でマツプメモリのデ
ータが0であるときは、0データ発生器21か
ら16ビツトの0を第2のメモリバツフア15b
に転送する。Step S62...If the data in the map memory is 0 in step S54, the 16-bit 0 is transferred from the 0 data generator 21 to the second memory buffer 15b.
Transfer to.
ステツプS63…第2のバツフアアドレスレジスタ
13bの上位4ビツトに1を加算する。Step S63: Add 1 to the upper 4 bits of the second buffer address register 13b.
ステツプS64…第2のバツフアアドレスレジスタ
13bの上位4ビツトからキヤリーが出たかど
うか判断する。ノーであればステツプS62に戻
る。そして、ステツプS62とS63がステツプS64
でイエスになるまで繰り返される。これによつ
て、主走査方向に1ワード、副走査方向に16ラ
インの形でオール0が第2のメモリバツフア1
5bに格納される。Step S64: It is determined whether a carry has occurred from the upper 4 bits of the second buffer address register 13b. If no, the process returns to step S62. Then, steps S62 and S63 are changed to step S64.
is repeated until the answer is yes. As a result, all 0s are transferred to the second memory buffer 1 in the form of 1 word in the main scanning direction and 16 lines in the sub-scanning direction.
5b.
ステツプS65…マツプアドレスレジスタ19に1
が加算される。Step S65...Set 1 to map address register 19
is added.
ステツプS66…第2のバツフアアドレスレジスタ
13bの下位8ビツトからキヤリーが出たか否
かの判断がなされる。ノーであれば、ステツプ
S53に戻り、前記ステツプS53〜S56までが、ス
テツプS66がイエスになるまで繰り返される。
これによつて、第2のメモリバツフア15b
に、主走査方向256ワード副走査方向に16ライ
ンのデータが格納される。該ステツプS66でイ
エスになると、次のステツプS67に進む。Step S66: It is determined whether a carry has occurred from the lower 8 bits of the second buffer address register 13b. If no, step
Returning to S53, steps S53 to S56 are repeated until step S66 becomes YES.
As a result, the second memory buffer 15b
Data of 256 words in the main scanning direction and 16 lines in the sub-scanning direction is stored. If YES in step S66, the process advances to the next step S67.
ステツプS67…マツプアドレスレジスタ19の値
が、ステツプS50でセツトした先頭アドレスに
1頁分のユニツト数を加えた値より大きくなつ
たか否かの判断がなされる。イエスであれば、
1頁分の画像を読み出したことになるので、終
了する。ノーであれば、次のステツプS68へ進
む。Step S67: It is determined whether the value of the map address register 19 has become larger than the value obtained by adding the number of units for one page to the top address set in step S50. If yes,
This means that one page worth of images has been read, so the process ends. If no, proceed to the next step S68.
ステツプS68…CPUからの制御信号cによつて、
読み込みライン選択回路27bが選択される。
これによつて、第1のメモリバツフア15aが
選ばれる。Step S68...According to the control signal c from the CPU,
The read line selection circuit 27b is selected.
As a result, the first memory buffer 15a is selected.
ステツプS69…第1のバツフアアドレスレジスタ
13aをクリアして、0をセツトする。以下、
前記ステツプS53〜S65と同様の手順が行なわ
れる。Step S69: Clear the first buffer address register 13a and set it to 0. below,
The same procedures as steps S53 to S65 are performed.
ステツプS70…第1のバツフアアドレスレジスタ
13aの下位8ビツトからキヤリーが出たか否
かの判断がなされる。ノーであれば、ステツプ
S69に戻る。ステツプS70でイエスになると、
第1のメモリバツフア15aに、主走査方向に
256ワード、副走査方向に16ラインのデータが
格納されたことになる。Step S70: It is determined whether a carry has occurred from the lower 8 bits of the first buffer address register 13a. If no, step
Return to S69. If the answer is yes at step S70,
to the first memory buffer 15a in the main scanning direction.
This means that 256 words and 16 lines of data in the sub-scanning direction are stored.
ステツプS71…前記ステツプS67と同様に、マツ
プアドレスレジスタ19の値が、(先頭アドレ
ス+1頁分のユニツト数)より大きいか否かの
判断がなされ、ノーであれば、ステツプS51に
戻る。そして、上記した各ステツプが再度繰り
返される。イエスであれば、終了する。Step S71...Similar to step S67, it is determined whether the value of the map address register 19 is greater than (starting address + number of units for one page), and if no, the process returns to step S51. The steps described above are then repeated again. If yes, end.
以上のようにして、マツプメモリとデータメモ
リに格納されていた画像の圧縮されたデータは、
第1および第2のメモリバツフアに圧縮前の形式
で格納される。 As described above, the compressed image data stored in the map memory and data memory is
The data is stored in the first and second memory buffers in an uncompressed format.
次に、このように圧縮前の状態に格納されたデ
ータを、第1および第2の出力ライン選択回路2
8a,28bを経て、P/S変換器29に出力さ
れる時の動作を第10図のフローチヤートを参照
しながら説明する。 Next, the data stored in the state before compression is transferred to the first and second output line selection circuits 2.
8a and 28b and is output to the P/S converter 29 will be described with reference to the flowchart of FIG.
ステツプS80…第2の出力ライン選択回路28b
を選択。Step S80...Second output line selection circuit 28b
choose.
ステツプS81…第1のバツフアアドレスレジスタ
13aをクリアし、0をセツトする。Step S81: Clear the first buffer address register 13a and set it to 0.
ステツプS82…第1のメモリバツフア15aから
1ワード読み出す。Step S82...One word is read from the first memory buffer 15a.
ステツプS83…第1のバツフアアドレスレジスタ
13aに1を加算する。Step S83...Add 1 to the first buffer address register 13a.
ステツプS84…第1のバツフアアドレスレジスタ
13aからキヤリーが出たか否かの判断がなさ
れる。ノーであれば、ステツプS82に戻る。ス
テツプS84がイエスになるまで、ステツプS82,
S83が繰り返される。これによつて、先ず、主
走査方向の256ワードが読み出され、この読み
出しが終ると、副走査方向に移り、再び主走査
方向に256ワード読み出される。このようにし
て主走査方向に256ワード、副走査方向に16ラ
インのデータが第1のメモリバツフア15aか
ら読み出される。Step S84: It is determined whether a carry has been output from the first buffer address register 13a. If no, the process returns to step S82. Step S82, until step S84 becomes YES.
S83 is repeated. As a result, 256 words in the main scanning direction are first read out, and when this reading is finished, the process moves to the sub-scanning direction, and 256 words are read out again in the main scanning direction. In this way, 256 words of data in the main scanning direction and 16 lines of data in the sub-scanning direction are read from the first memory buffer 15a.
ステツプS85…第2のメモリバツフア15bに新
しいデータが格納されたか否かの判断がなされ
る。ノーであれば、終了する。イエスであれ
ば、次のステツプS86に進む。Step S85: It is determined whether new data has been stored in the second memory buffer 15b. If no, terminate. If YES, proceed to the next step S86.
ステツプS86…第1の出力ライン選択回路28aを
選択。Step S86...Select the first output line selection circuit 28a.
以下、前記ステツプS81〜S84と同様の手順が
行なわれる。これによつて、第2のメモリバツフ
アから主走査方向に256ワード、副走査方向に16
ラインが、順次読み出される。そして、第2のメ
モリバツフア15bから全データの読み出しが終
ると、次のステツプS87に進む。 Thereafter, the same procedures as steps S81 to S84 are performed. This allows 256 words in the main scanning direction and 16 words in the sub-scanning direction from the second memory buffer.
Lines are read out sequentially. When all data has been read from the second memory buffer 15b, the process advances to the next step S87.
ステツプS87…第1のメモリバツフア15aに新
しいデータが入力しているか否かの判断がなさ
れる。イエスであれば、ステツプS80に戻り、
再度、ステツプS80から前記と同じ手順が繰り
返される。ステツプS87でノーであれば、終了
する。Step S87: It is determined whether new data is input to the first memory buffer 15a. If yes, return to step S80,
The same procedure as described above is repeated again from step S80. If no in step S87, the process ends.
以上のようにして、第1および第2のメモリバ
ツフア15aおよび15bに格納されたデータ
は、主走査方向に1ワードずつP/S変換器29
に読み出され、256ワードの読み出しが終ると副
走査方向に1ライン移り、再び主走査方向に256
ワードが1ワードずつ読み出される。このように
して、副走査方向に16ライン読み出される。そし
て、画像1頁分の読み出しが終ると、動作は終了
する。 As described above, the data stored in the first and second memory buffers 15a and 15b is transferred to the P/S converter 29 one word at a time in the main scanning direction.
When the reading of 256 words is completed, it moves one line in the sub-scanning direction, and then the 256-word line moves in the main scanning direction again.
Words are read out word by word. In this way, 16 lines are read out in the sub-scanning direction. When the reading of one page of images is completed, the operation ends.
上記した第1、第2実施例では、0検出器17
および16ワードレジスタ18を設けているが、こ
れらは必ずしも必要ではない。CPU側で0を検
出するようにすれば、0検出器17を省略するこ
とができる。また、メモリバツフア15aは15
bとメインメモリ22との間を直接データ転送す
るようにすれば、16ワードレジスタ18も省くこ
とができる。 In the first and second embodiments described above, the 0 detector 17
and 16 word register 18 are provided, but these are not necessarily required. If 0 is detected on the CPU side, the 0 detector 17 can be omitted. In addition, the memory buffer 15a is 15
If data is transferred directly between the main memory 22 and the main memory 22, the 16-word register 18 can also be omitted.
また、上記の実施例は、画像データを16ドツト
×16ワードを1ユニツトとする例で説明したが、
本発明はこれに限定されないことは勿論である。
この場合には、例えばメモリバツフアとして、画
像データの主走査方向の1ライン分のワード数を
Lとし、1ユニツトを構成する副走査方向のライ
ン数をNとするとき、2m×N(但し、2m≧L)
の容量をもつものを用いる。また、16ワードレジ
スタ18に代えて、Nワードレジスタを用いる。 Furthermore, in the above embodiment, the image data was explained as one unit of 16 dots x 16 words.
Of course, the present invention is not limited to this.
In this case, for example, as a memory buffer, if the number of words for one line of image data in the main scanning direction is L, and the number of lines in the sub-scanning direction constituting one unit is N, then 2m×N (however, 2m ≧L)
Use one with a capacity of Also, instead of the 16-word register 18, an N-word register is used.
以上のように、本発明によれば、2mワード×
Nラインの容量をもつ2個のメモリバツフアを用
い、一方のメモリバツフアにデータを読み込んで
いる間に他方のメモリバツフアのデータを読み出
すようにしている。また、メモリバツフアのデー
タを読み出すときは、画像データを副走査方向に
Nライン分(1ユニツト分)読み出し、該1ユニ
ツトのデータがオール0か、0以外のデータが混
つているかを検出している。
As described above, according to the present invention, 2m words×
Two memory buffers having a capacity of N lines are used, and while data is being read into one memory buffer, data is being read from the other memory buffer. Furthermore, when reading data from the memory buffer, the image data is read out for N lines (one unit) in the sub-scanning direction, and it is detected whether the data for one unit is all 0 or contains data other than 0. .
したがつて、本発明は画像データの圧縮が高速
に行なえるという効果がある。 Therefore, the present invention has the advantage that image data can be compressed at high speed.
また、第2実施例のように、画像データの圧縮
と復元に本発明を共用すれば、高速に画像データ
を圧縮、復元することが可能になる。 Further, if the present invention is used for compressing and restoring image data as in the second embodiment, it becomes possible to compress and restore image data at high speed.
第1図は画像をユニツトに分割する状態を示す
模式図、第2図はマツプメモリの一例を示す模式
図、第3図はデータメモリの説明図、第4図は本
発明の一実施例のブロツク図、第5図、第6図は
第4図の動作を説明するためのフローチヤート、
第7図はデータメモリの概念図、第8図は本発明
の第2実施例のブロツク図、第9図、第10図は
第8図の動作を説明するためのフローチヤートで
ある。
11…S/P変換器、12a,12b…入力ラ
イン選択回路、13a,13b…バツフアアドレ
スレジスタ、14…バツフアコントロール回路、
15a,15b…メモリバツフア、16a,16
b…出力ライン選択回路、17…0検出器、18
…16ワードレジスタ、19…マツプアドレスレジ
スタ、20…データアドレスレジスタ、21…0
データ発生器、22…メインメモリ、23…メモ
リアドレスバス、24…メモリライトバス、25
…メモリリードバス、27a,27b…読み込み
ライン選択回路、28a,28b…出力ライン選
択回路、29…P/S変換器。
Fig. 1 is a schematic diagram showing how an image is divided into units, Fig. 2 is a schematic diagram showing an example of a map memory, Fig. 3 is an explanatory diagram of a data memory, and Fig. 4 is a block diagram of an embodiment of the present invention. 5 and 6 are flowcharts for explaining the operation of FIG. 4,
FIG. 7 is a conceptual diagram of a data memory, FIG. 8 is a block diagram of a second embodiment of the present invention, and FIGS. 9 and 10 are flowcharts for explaining the operation of FIG. 8. 11...S/P converter, 12a, 12b...input line selection circuit, 13a, 13b...buffer address register, 14...buffer control circuit,
15a, 15b...Memory buffer, 16a, 16
b...Output line selection circuit, 17...0 detector, 18
...16 word register, 19...map address register, 20...data address register, 21...0
Data generator, 22... Main memory, 23... Memory address bus, 24... Memory write bus, 25
...Memory read bus, 27a, 27b...Read line selection circuit, 28a, 28b...Output line selection circuit, 29...P/S converter.
Claims (1)
ワード×Nラインを1ユニツトとした時、2m×
N(ただし、2m≧L)の容量を有する第1およ
び第2のメモリバツフア、該メモリバツフアのそ
れぞれをアドレツシングする第1および第2のバ
ツフアドレスレジスタ、該第1および第2のメモ
リバツフアから読み出された1ユニツトのデータ
がオール0からあるいはそれ以外かを指示する符
号が該ユニツト対応で記録されるマツプメモリ、
前記1ユニツトのデータがオール0以外の時、前
記マツプメモリに記録された符号(ポインタ)を
アドレスとするエリアに前記オール0以外の1ユ
ニツトの画像データが書き込まれるデータメモリ
を具備し、前記第1および第2のメモリバツフア
の一方に、メモリアドレスの連続方向に入力画像
データを書き込んでいる間に、前記メモリバツフ
アの他方から2mおきのアドレスでNワードを連
続して読み出して画像データを圧縮するようにし
たことを特徴とする画像データ変換装置。 2 前記圧縮された画像データを復元するとき
は、該圧縮されている画像データにもとずいて、
前記第1および第2のメモリバツフアの一方に、
2mおきのアドレスでNワードを連続して書き込
んでいる間に、前記メモリバツフアの他方からメ
モリアドレスの連続方向に読み出すようにしたこ
とを特徴とする前記特許請求の範囲第1項記載の
画像データ変換装置。[Claims] 1. The number of words for one line of image data is L, 1
When 1 unit is word x N lines, 2m x
first and second memory buffers having a capacity of N (however, 2m≧L), first and second buffer address registers that address each of the memory buffers, and a memory buffer that is read from the first and second memory buffers. a map memory in which a code indicating whether the data of one unit is all 0 or other is recorded corresponding to the unit;
A data memory is provided in which, when the one unit of data is other than all 0, one unit of image data other than the all 0 is written into an area whose address is a code (pointer) recorded in the map memory, and the first and while writing input image data into one of the second memory buffers in the direction of consecutive memory addresses, read N words continuously from the other memory buffer at addresses every 2m to compress the image data. An image data conversion device characterized by: 2. When restoring the compressed image data, based on the compressed image data,
one of the first and second memory buffers,
Image data conversion according to claim 1, characterized in that while N words are continuously written at addresses every 2m, reading is performed from the other side of the memory buffer in the direction of continuous memory addresses. Device.
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP341683A JPS59196660A (en) | 1983-01-14 | 1983-01-14 | Picture data converter |
| DE8383303119T DE3382253D1 (en) | 1982-05-31 | 1983-05-31 | IMAGE DATA STORAGE SYSTEM. |
| EP83303119A EP0095931B1 (en) | 1982-05-31 | 1983-05-31 | Picture data storage system |
| US06/838,448 US4761643A (en) | 1982-05-31 | 1986-03-11 | Image data storing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP341683A JPS59196660A (en) | 1983-01-14 | 1983-01-14 | Picture data converter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59196660A JPS59196660A (en) | 1984-11-08 |
| JPH0465584B2 true JPH0465584B2 (en) | 1992-10-20 |
Family
ID=11556778
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP341683A Granted JPS59196660A (en) | 1982-05-31 | 1983-01-14 | Picture data converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59196660A (en) |
-
1983
- 1983-01-14 JP JP341683A patent/JPS59196660A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59196660A (en) | 1984-11-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5594878A (en) | Bus interface structure and system for controlling the bus interface structure | |
| US5199102A (en) | Image processing apparatus having multiple display areas for editing | |
| US4800440A (en) | Digital image signal coding/decoding circuit with buffer memory storing reference line as compression codes | |
| CA1291822C (en) | Method and apparatus for processing an image signal | |
| EP0095931B1 (en) | Picture data storage system | |
| JP3772569B2 (en) | Image processing apparatus and image processing method | |
| JPS59196660A (en) | Picture data converter | |
| JP2584744B2 (en) | Data transmission equipment | |
| JPS6362083A (en) | Projection data generation method | |
| JPS5856872B2 (en) | Expanded character pattern encoder | |
| JP3270665B2 (en) | Encoding / decoding apparatus and method | |
| JPS6329472B2 (en) | ||
| JP2993143B2 (en) | Pattern synthesis coding method | |
| JP2889479B2 (en) | Histogram construction circuit | |
| JP2573701B2 (en) | Image recording and playback device | |
| JP2624659B2 (en) | Superimposed block decoding device | |
| JP3340449B2 (en) | Line memory circuit and data storage method | |
| JP2672497B2 (en) | Data processing device | |
| JP2917367B2 (en) | Character recognition device | |
| JPS62138975A (en) | Image memory device | |
| JPS62279445A (en) | data transfer device | |
| JPS62279449A (en) | data transfer device | |
| JPH0352714B2 (en) | ||
| JPS60258666A (en) | Intermemory data transfer device | |
| JPH06187435A (en) | Picture rotating device |