JPH09247462A - Reversible compression processing method in page printer - Google Patents

Reversible compression processing method in page printer

Info

Publication number
JPH09247462A
JPH09247462A JP8045253A JP4525396A JPH09247462A JP H09247462 A JPH09247462 A JP H09247462A JP 8045253 A JP8045253 A JP 8045253A JP 4525396 A JP4525396 A JP 4525396A JP H09247462 A JPH09247462 A JP H09247462A
Authority
JP
Japan
Prior art keywords
data
block
unit
image data
compression processing
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
JP8045253A
Other languages
Japanese (ja)
Inventor
Yoshiaki Haniyu
嘉昭 羽生
Takaya Chigusa
孝也 千種
Hiroshige Kawakami
浩成 川上
Mutsuo Shitamae
睦夫 下前
Makoto Onozuka
誠 小野塚
Akira Ohori
顕 大堀
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP8045253A priority Critical patent/JPH09247462A/en
Publication of JPH09247462A publication Critical patent/JPH09247462A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enhance the compression processing efficiency by considerably reducing the memory capacity in a page printer. SOLUTION: A page buffer is divided in the unit consisting of a prescribed number of blocks in a prescribed dot, drawn data are checked for each unit and when not all are at a white level, a compression processing result for each block is stored in a compression data table(CDT) designated by a white map table(WMT). When the compression processing is disable, image data are stored in an uncompression data record(UCDR) area as they are designated by the CDT. To which unit and to which block of a unit an image to be drawn belongs is calculated, Data drawn precedingly are decoded and replaced with new drawn data and compressed and drawn in the block of the page buffer. In a block with the 1st UCDR, data drawn newly are compressed and when compression is disable again by picture drawing and new 2nd UCDR is generated, then flag information is stored in the 1st UCDR.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、白黒およびカラーの
レーザプリンタ,LEDプリンタ等のページプリンタ
(デジタル複写機のプリンタ部も含む)において、プリ
ントすべき2値あるいは多値の画像データを描画するフ
レームバッファのメモリ容量を削減するための、画像デ
ータの可逆圧縮処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention draws binary or multi-valued image data to be printed in a page printer (including a printer section of a digital copying machine) such as a black-and-white or color laser printer or LED printer. The present invention relates to a lossless compression processing method of image data for reducing the memory capacity of a frame buffer.

【0002】[0002]

【従来の技術】近年、レーザプリンタ等のページプリン
タの解像度はますます高くなり、最近では600DPI
が主流になっている。今後は800DPIや1200D
PIのプリンタが出現するであろうし、マルチ・リゾリ
ューション・プリンタ、すなわちエミュレーションに応
じてエンジンの解像度が変化するプリンタも増えてくる
であろう。
2. Description of the Related Art In recent years, the resolution of page printers such as laser printers has become higher and higher, and recently 600 DPI.
Has become mainstream. 800DPI and 1200D in the future
Printers with PI will appear, and multi-resolution printers, that is, printers in which the resolution of the engine changes according to emulation will increase.

【0003】しかし、ページプリンタ内のフレームバッ
ファ(ページメモリ)のメモリ容量は、A4,600D
PIで約4MB、A3,600DPIでは約8MBにな
る。このようなフレームバッファのメモリ容量の増加
は、製品価格に大きな影響を与える。一方、ページプリ
ンタの価格は逆に低価格へと推移しているため、高解像
度化に伴う価格上昇をなんらかの手段で抑えなければな
らない。
However, the memory capacity of the frame buffer (page memory) in the page printer is A4,600D.
It is about 4MB for PI and about 8MB for A3,600DPI. Such an increase in the memory capacity of the frame buffer greatly affects the product price. On the other hand, since the price of the page printer has been changing to a low price, it is necessary to suppress the price increase accompanying the high resolution by some means.

【0004】そのための2値画像データの可逆圧縮技術
には、ファクシミリ等で用いられるMH(ハフマン符号
化方式:一次元圧縮法によるG3ファクシミリの標準符
号化方式),MR(二次元圧縮法によるG3ファクシミ
リではオプションの符号化方式),MMR(MR符号化
方式の変形で、G4ファクシミリの標準符号化方式)
や、コンピュータで扱うテキストファイルやバイナリフ
ァイルに用いられる、例えばLZ方式の圧縮等がある。
また、最近では国際標準である算術符号化を用いたJB
IG方式もある。
For this purpose, lossless compression techniques for binary image data include MH (Huffman coding: a standard G3 facsimile coding method using a one-dimensional compression method) and MR (G3 using a two-dimensional compression method) used in facsimile and the like. Optional coding method for facsimile), MMR (standard coding method for G4 facsimile, which is a modification of MR coding method)
For example, there is LZ compression used for text files and binary files handled by a computer.
Recently, JB using the international standard arithmetic coding
There is also an IG method.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、これら
の2値画像データ圧縮技術は、画像あるいはファイルの
先頭から順番に逐次符号化処理を行なうので、所望の任
意ブロックだけをリアルタイムに復元することはできな
い。ページプリンタでは、印刷すべき文書情報がコンピ
ュータのCRT上で実際に作成された順番にくるため、
ある大きさのブロック単位で圧縮処理を施さなければな
らない。従って、上記圧縮技術をそのまま使用すること
はできない。
However, in these binary image data compression techniques, since an encoding process is performed sequentially from the head of an image or a file, only a desired arbitrary block cannot be restored in real time. . With a page printer, the document information to be printed comes in the order in which it was actually created on the CRT of the computer.
The compression process must be performed in block units of a certain size. Therefore, the above compression technique cannot be used as it is.

【0006】この発明は上述のような現状に鑑みてなさ
れたものであり、ページプリンタにおけるページメモリ
のメモリ容量を描画する画像データの圧縮によって削減
し、低価格な高解像度ページプリンタを提供できるよう
にすることを目的とする。また、ブロック単位で2値画
像の可逆圧縮を行なえるようにすることと、圧縮の基本
単位であるブロック及びユニット毎の圧縮効率の一層の
向上と、圧縮処理の繰り返しにより使用されなくなった
メモリ領域の有効利用を図ることなども目的とする。
The present invention has been made in view of the above circumstances, and it is possible to provide a low-cost high-resolution page printer by reducing the memory capacity of the page memory in the page printer by compressing image data to be drawn. The purpose is to In addition, it is possible to perform lossless compression of a binary image in block units, further improve the compression efficiency of each block and unit that is the basic unit of compression, and a memory area that is no longer used due to repeated compression processing. It also aims to make effective use of.

【0007】さらに、白黒2値画像だけでなく、グレー
スケール・プリンタやカラープリンタ等の多値画像をプ
リントするページプリンタにおいても、描画データをブ
ロック単位で可逆圧縮可能にして、ページバッファのメ
モリ容量を大幅に削減できるようにすることも他の目的
とする。
Further, in a page printer which prints not only a binary image of black and white but also a multi-valued image such as a grayscale printer or a color printer, the drawing data can be reversibly compressed block by block, and the memory capacity of the page buffer is reduced. Another purpose is to be able to significantly reduce.

【0008】[0008]

【課題を解決するための手段】この発明はこれらの目的
を達成するため、2値画像データの可逆圧縮処理方法は
次の点を基本としている。ページプリンタにおいて、描
画する2値画像データに対して主走査方向にtドットで
構成されるブロックと主走査方向あるいは副走査方向に
uブロックで構成されるユニットの2つの基本単位を設
定する。
In order to achieve these objects, the present invention is based on the following points for a lossless compression processing method for binary image data. In a page printer, two basic units are set for a binary image data to be drawn: a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction.

【0009】そして、プリントする画像データを所定の
解像度に描画(ラスタライズ)するために必要なページ
バッファを上記ユニット単位に分割する。また、圧縮処
理のステップとして、そのユニット毎に描画データが全
白であるかどうかをチェックし、その結果をmビットの
ユニットレコードの集まりのホワイトマップテーブル
(WMT)に保存するステップと、該ユニットの描画デ
ータが全白でない場合に、上記ホワイトマップテーブル
で指定されるアドレス領域にnビットの圧縮データレコ
ード(CDR)をuブロック分集めた圧縮データテーブル
(CDT)を用意し、そこに該ユニットを構成するu個
分のブロック毎の圧縮処理結果を格納するステップと、
上記ブロック毎の圧縮処理が不可能な場合に、圧縮デー
タテーブルで指定されるアドレス領域にtビットの非圧
縮データレコード(UCDR)を用意し、そこに該ブロ
ックの画像データをそのまま格納するステップとを有す
る。
Then, the page buffer required for drawing (rasterizing) the image data to be printed to a predetermined resolution is divided into the above-mentioned unit units. As a step of compression processing, a step of checking whether or not the drawing data is all white for each unit and saving the result in a white map table (WMT) of a collection of m-bit unit records, If the drawing data of is not all white, prepare a compressed data table (CDT) in which u blocks of n-bit compressed data records (CDR) are collected in the address area specified by the white map table, and the unit is stored therein. Storing a compression processing result for each of u blocks constituting
A step of preparing a t-bit uncompressed data record (UCDR) in the address area specified by the compressed data table and storing the image data of the block as it is when the compression processing for each block is impossible. Have.

【0010】そして、描画すべき画像データが分割され
たどのユニットのどのブロックに該当するかを算出し、
そのブロックに以前描画されたデータを復元して、それ
を新たな描画データに書き替え、その描画データを上記
各ステツプの処理によって圧縮して前記ページバッファ
内の該ブロックに描画する可変長可逆圧縮処理を各ブロ
ック毎に施す。
Then, it is calculated which block of which unit the image data to be drawn corresponds to,
Variable-length lossless compression that restores the data previously drawn in the block, rewrites it to new drawing data, compresses the drawing data by the processing of each step, and draws in the block in the page buffer. Processing is performed for each block.

【0011】そこで、第1の発明は、第1の非圧縮デー
タレコードがあるブロックにおいて、新たな描画により
該ブロックに描画するデータが圧縮が可能になり、さら
なる描画により再度圧縮不能になって新たな第2の非圧
縮データレコードが発生した場合、最初の第1の非圧縮
データレコードにフラグ情報を格納する。これによっ
て、無駄に発生した非圧縮データレコード自身に情報を
持つことにより、新たな他の領域を必要とせずにメモリ
容量を削減できる。
Therefore, in the first invention, in the block having the first uncompressed data record, the data to be drawn in the block can be compressed by a new drawing, and cannot be recompressed by the further drawing and is newly added. If such a second uncompressed data record occurs, the flag information is stored in the first first uncompressed data record. As a result, since the uncompressed data record itself that is wastefully generated has information, it is possible to reduce the memory capacity without requiring another new area.

【0012】第2の発明は、非圧縮データレコード(U
CDR)があるブロックにおいて、新たな描画により該
ブロックに描画するデータが圧縮可能になった場合、読
み書き可能なカウントレジスタのカウント値を増やす。
さらに、非圧縮データレコード(UCDR)があるブロ
ックにおいて、新たな描画により該ブロックに描画する
データが圧縮可能になり、さらなる描画により該ブロッ
クに描画するデータが再度圧縮不可能になって新たな非
圧縮データレコードが発生した場合、上記カウントレジ
スタのカウント値を減らす。
The second invention is an uncompressed data record (U
In a block having a CDR, if the data to be drawn in the block can be compressed by new drawing, the count value of the readable / writable count register is increased.
Further, in a block having an uncompressed data record (UCDR), the data drawn in the block can be compressed by new drawing, and the data drawn in the block cannot be compressed again by further drawing, and a new non-compressed data can be created. When a compressed data record occurs, the count value of the count register is decremented.

【0013】あるいは、上記非圧縮データレコード(U
CDR)があるブロックにおいて、新たな描画により該
ブロックに描画するデータが圧縮不可能になった場合、
上記カウントレジスタとは別のカウントレジスタのカウ
ント値を増やす。このように、カウントレジスタによっ
て非圧縮データレコード(UCDR)の管理をすること
により、ガーベージ・コレクション機能を果たし、メモ
リ容量の一層効率的な利用を図り、メモリ容量を一層削
減することができる。
Alternatively, the uncompressed data record (U
If the data to be drawn in the block becomes incompressible due to new drawing,
The count value of a count register other than the above count register is increased. In this way, by managing the uncompressed data record (UCDR) by the count register, the garbage collection function can be achieved, the memory capacity can be used more efficiently, and the memory capacity can be further reduced.

【0014】第3の発明は、第1の非圧縮データレコー
ド(UCDR)があるブロックにおいて、新たな描画に
より該ブロックに描画するデータが圧縮可能になり、さ
らなる描画により再度圧縮不可能になって新たな第2の
非圧縮データレコードが発生する一方、第3の非圧縮デ
ータレコード(UCDR)があるブロックにおいて、新
たな描画により該ブロックに描画するデータが圧縮可能
となり、さらなる描画により再度圧縮不可能になって新
たな第4の非圧縮データレコードが発生し、且つ前記第
1と第3の非圧縮データレコードが連続アドレスの場
合、前記第1の非圧縮データレコードに連続フラグ情報
を格納する。このように、非圧縮データレコードに連続
情報を持つことにより、ガーベージ・コレクション機能
を持ち、少ないステップでメモリ容量の削減を可能にす
る。
According to a third aspect of the invention, in a block having the first uncompressed data record (UCDR), data to be drawn in the block can be compressed by new drawing, and cannot be compressed again by further drawing. While a new second uncompressed data record is generated, in a block having a third uncompressed data record (UCDR), the data to be drawn in the block can be compressed by new drawing, and can be uncompressed again by further drawing. If enabled and a new fourth uncompressed data record occurs and the first and third uncompressed data records are contiguous addresses, contiguous flag information is stored in the first uncompressed data record. . In this way, by having continuous information in the non-compressed data record, it has a garbage collection function, and it is possible to reduce the memory capacity with a small number of steps.

【0015】第4の発明は、第1の非圧縮データレコー
ド(UCDR)があるブロックにおいて、新たな描画に
より該ブロックに描画するデータが圧縮可能になり、さ
らなる描画により再度圧縮不可能になって新たな第2の
非圧縮データレコードが発生した場合、前記第1の非圧
縮データレコードのアドレス情報を、書き込み可能なア
ドレスレジスタに格納する。これにより、アドレスレジ
スタのアドレス情報をダイレクトに参照可能になり、ガ
ーベージ・コレクション機能を持つ。さらに、第3の非
圧縮データレコード(UCDR)が発生した時に、上記
アドレスレジスタの指すアドレスである第1の非圧縮デ
ータレコードに該第3の非圧縮データレコードを格納す
るとよい。
According to a fourth aspect of the invention, in a block having the first uncompressed data record (UCDR), data to be drawn in the block can be compressed by new drawing, and cannot be compressed again by further drawing. When a new second uncompressed data record occurs, the address information of the first uncompressed data record is stored in the writable address register. This makes it possible to directly refer to the address information of the address register and has a garbage collection function. Furthermore, when a third uncompressed data record (UCDR) occurs, it is preferable to store the third uncompressed data record in the first uncompressed data record which is the address indicated by the address register.

【0016】また、第3の非圧縮データレコード(UC
DR)があるブロックにおいて、新たな描画により該ブ
ロックに描画するデータが圧縮可能になり、さらなる描
画により再度圧縮不可能になって新たな第4の非圧縮デ
ータレコードが発生した場合、第3の非圧縮データレコ
ードに第1の非圧縮データレコードのアドレスを格納
し、上記アドレスレジスタに第3の非圧縮データレコー
ドのアドレスを格納し、第1のUCDRには終端情報を
格納するとよい。これらにより、全ての無駄なUCDR
を参照可能になり、任意の数および任意のタイミングで
一括してそれを再利用することができる。
The third uncompressed data record (UC
DR) In a block, if new drawing makes the data drawn in the block compressible, and further drawing makes it uncompressible again and a new fourth uncompressed data record occurs, The address of the first uncompressed data record may be stored in the uncompressed data record, the address of the third uncompressed data record may be stored in the address register, and the termination information may be stored in the first UCDR. With these, all useless UCDR
Can be referred to, and it can be reused collectively at any number and at any timing.

【0017】第5の発明は、上記可変長圧縮処理中にペ
ージバッファの容量が不足した場合、ユニット毎に固定
長圧縮処理に切り替える。あるいは、上記可変長可逆圧
縮処理と固定長圧縮処理のいずれが適しているかをユニ
ット単位で判別し、その判別結果に基づいてユニット単
位で圧縮処理を切り替えて実施するようにしてもよい。
画像の種類(イメージ,文字,線画等)の中には、上記
可変長可逆圧縮処理が適さない場合もあるので、固定長
圧縮処理に切り替えることにより、圧縮可能になる可能
性があり、ユニット単位で圧縮方法の最適化を図ること
ができる。
In the fifth aspect of the invention, when the capacity of the page buffer is insufficient during the variable length compression process, the unit is switched to the fixed length compression process. Alternatively, which of the variable-length reversible compression process and the fixed-length compression process is suitable is discriminated on a unit-by-unit basis, and the compression process may be switched on a unit-by-unit basis based on the discrimination result.
Depending on the type of image (image, character, line drawing, etc.), the variable length lossless compression process may not be suitable, so there is a possibility that compression will be possible by switching to the fixed length compression process. Thus, the compression method can be optimized.

【0018】第6の発明は、上記圧縮処理の切り替え時
に、使用されなくなった圧縮データレコードや非圧縮デ
ータレコードを固定長圧縮処理で使用可能にするガーベ
ージ・コレクションを実行する。これによって、切り替
え前の圧縮方法で使っていたエリアを再利用することが
でき、圧縮効率の向上を図ることができる。
According to a sixth aspect of the present invention, when the compression process is switched, garbage collection is performed to make unused compressed data records and non-compressed data records usable in the fixed length compression process. As a result, the area used by the compression method before switching can be reused, and the compression efficiency can be improved.

【0019】第7の発明は、上記可変長可逆圧縮処理中
に、あるユニット内の非圧縮データレコード(UCD
R)の数が圧縮データテーブル(CDT)内のブロック
数の半分以上になった場合、該ユニット内の全てのブロ
ックを非圧縮データレコードに変換し、そのユニットに
該当する圧縮データテーブルを削除して、ホワイトマッ
プテーブル(WMT)内の該当するユニットのレコードに
フラグ情報を格納する。この場合は、圧縮しない方が圧
縮メモリを消費しない。
A seventh aspect of the invention is to carry out uncompressed data record (UCD) in a unit during the variable length lossless compression process.
If the number of R) becomes more than half of the number of blocks in the compressed data table (CDT), all blocks in the unit are converted into uncompressed data records and the compressed data table corresponding to the unit is deleted. Then, the flag information is stored in the record of the corresponding unit in the white map table (WMT). In this case, not compressing does not consume the compression memory.

【0020】第8の発明は、上記圧縮処理中に圧縮デー
タレコード(CDR)が発生したユニットにおいて、全
てが白データになった場合、そのユニットに該当する圧
縮データテーブルを削除して、ホワイトマップテーブル
内の該当するユニットレコードを初期化する。また、上
記圧縮処理中に圧縮データレコード(CDR)が発生し
たユニットにおいて、全てが黒データになった場合、そ
のユニットに該当する圧縮データテーブルを削除して、
ホワイトマップテーブル内の該当するユニットレコード
に全黒情報を格納する。これによって、ユニット内が全
白又は全黒データの状態に変わったとき、CDTおよび
CDRを削除できるので、メモリを効率よく使用でき
る。
An eighth aspect of the present invention is such that, when all of the units in which a compressed data record (CDR) has been generated during the compression process become white data, the compressed data table corresponding to that unit is deleted and a white map is created. Initialize the corresponding unit record in the table. In addition, when all the black data is generated in the unit in which the compressed data record (CDR) is generated during the compression processing, the compressed data table corresponding to the unit is deleted,
All black information is stored in the corresponding unit record in the white map table. By this, when the inside of the unit is changed to the state of all white or all black data, the CDT and CDR can be deleted, so that the memory can be efficiently used.

【0021】第9の発明は、上記圧縮処理中に圧縮デー
タレコード(CDR)が発生したユニットにおいて、全
てがあるpビットのビットパターンになった場合、その
ユニットに該当する圧縮データテーブルを削除して、ホ
ワイトマップテーブル内の該当するユニットレコードに
パターンフラグ情報及びそのパターンビット数及びパタ
ーン情報を格納する。これによって、ユニット内がフィ
ルパターンの繰り返しになっているとき、CDTおよび
CDRを削除できるので、メモリを効率よく使用でき
る。
A ninth aspect of the invention is to delete the compressed data table corresponding to the unit when a compressed data record (CDR) is generated in the unit during the compression process and all have a bit pattern of p bits. Then, the pattern flag information, the number of pattern bits, and the pattern information are stored in the corresponding unit record in the white map table. As a result, when the fill pattern is repeated in the unit, the CDT and CDR can be deleted, so that the memory can be used efficiently.

【0022】第10の発明は、前述のブロックに対応す
るフィルパターンをあらかじめ複数用意しておき、上記
ブロック毎の圧縮処理ができない場合にはそのパターン
を参照する。あるいは、上記ブロック毎の圧縮処理がで
きない場合に、そのブロックのドットパターンを記憶し
ておき、その後の圧縮処理中に同じパターンが出現した
場合には、そのドットパターンが格納されているアドレ
スを参照することによって圧縮処理してもよい。
A tenth aspect of the present invention prepares a plurality of fill patterns corresponding to the above-mentioned blocks in advance, and refers to the patterns when the compression processing for each block cannot be performed. Alternatively, when the compression process for each block cannot be performed, the dot pattern of the block is stored, and if the same pattern appears during the subsequent compression process, refer to the address where the dot pattern is stored. By doing so, compression processing may be performed.

【0023】さらに、上記ブロック毎の圧縮処理ができ
ない場合に、そのブロックのドットパターンに対してあ
る種の論理演算を施し、その結果を圧縮処理できる場合
は圧縮コードに変換し、伸長の際には前記論理演算の逆
の論理演算処理を施すようにしてもよい。これらによっ
て、圧縮効率を高くすることができる。
Further, when the above block-by-block compression processing cannot be performed, a certain kind of logical operation is performed on the dot pattern of that block, and if the result can be compressed, it is converted into a compression code and is expanded. May perform a logical operation process that is the reverse of the above logical operation. With these, the compression efficiency can be increased.

【0024】第11の発明は、多値画像データのブロッ
ク単位での可逆圧縮処理を可能にするため、次のような
画像データの可逆圧縮処理方法を提供する。ページプリ
ンタにおいて、描画する多値画像データに対して主走査
方向tドットと多値データのビットプレーン分のbビッ
トで構成されるブロックと、主走査方向あるいは副走査
方向にuブロックで構成されるユニットの2つの基本単
位を設定しする。
The eleventh invention provides the following lossless compression processing method of image data in order to enable lossless compression processing of multi-valued image data in block units. In a page printer, a block composed of t dots in the main scanning direction and b bits corresponding to a bit plane of the multivalued data for multi-valued image data to be drawn, and u blocks in the main scanning direction or the sub-scanning direction. Set the two basic units of the unit.

【0025】そして、プリントする画像データを所定の
解像度で描画するために必要なページバッファを前記ユ
ニット単位に分割する。また、圧縮処理のステップとし
て、そのユニット毎に描画データが全白であるかどうか
をチェックし、その結果をmビットのユニットレコード
の集まりのホワイトマップテーブル(WMT)に保存す
るステップと、該ユニットの描画データが全白でない場
合に、ホワイトマップテーブルで指定されるアドレス領
域にnビットの圧縮データレコード(CDR)をu×bブ
ロック分集めた圧縮データテーブル(CDT)を用意
し、そこに該ユニットを構成するu×b個分のブロック
毎の圧縮処理結果を格納するステップと、ブロック毎の
圧縮処理が不可能な場合に、圧縮データテーブルで指定
されるアドレス領域にtビットの非圧縮データレコード
(UCDR)を用意し、そこに該ブロックの画像データ
をそのまま格納するステップとを有する。
Then, the page buffer required for drawing the image data to be printed at a predetermined resolution is divided into the unit units. As a step of compression processing, a step of checking whether or not the drawing data is all white for each unit and saving the result in a white map table (WMT) of a collection of m-bit unit records, When the drawing data of is not all white, a compressed data table (CDT) is prepared in which u × b blocks of n-bit compressed data records (CDR) are collected in the address area specified by the white map table. A step of storing the compression processing result for each block of u × b constituting the unit, and t bit uncompressed data in the address area specified in the compressed data table when the compression processing for each block is impossible. A step of preparing a record (UCDR) and storing the image data of the block therein as it is.

【0026】そして、描画すべき画像データが分割され
たどのユニットのどのブロックに該当するかを算出し、
そのブロックに以前描画された画像データを復元して、
それを新たな描画データに書き替え、その描画データを
上記各ステツプの処理によって圧縮してページバッファ
内の該ブロックに描画する可変長可逆圧縮処理を各ブロ
ック毎に施す。
Then, it is calculated which block of which unit the image data to be drawn corresponds to,
Restore the image data previously drawn in that block,
It is rewritten into new drawing data, and the drawing data is compressed by the processing of each step described above, and variable length lossless compression processing for drawing in the block in the page buffer is performed for each block.

【0027】第12の発明は、上記画像データの可逆圧
縮処理方法において、可変長可逆圧縮処理の繰り返しに
より利用されなくなった圧縮データテーブル(CDT)
および非圧縮データレコード(UCDR)のメモリ領域
のフリーリストを形成し、圧縮データテーブル(CD
T)および非圧縮データレコード(UCDR)が必要に
なった際にそのフリーリスト上を探索し、該フリーリス
トにメモリ領域がある場合はそれを割り当てて再利用
し、該フリーリストにメモリ領域がない場合には新規に
メモリ領域を確保する。これにより、描画過程で発生す
る無駄なメモリ領域を削減し、効率的なメモリ領域の割
り当てを行なうことができる。
A twelfth aspect of the present invention is a compressed data table (CDT) which is no longer used due to repeated variable length lossless compression processing in the above-described method for lossless compression processing of image data.
And a free list of memory areas for uncompressed data records (UCDR) and compressed data tables (CD
T) and an uncompressed data record (UCDR) are searched on the free list, and if there is a memory area in the free list, it is allocated and reused. If it does not exist, a new memory area is secured. As a result, it is possible to reduce the wasteful memory area generated in the drawing process and to efficiently allocate the memory area.

【0028】[0028]

【発明の実施の形態】以下、この発明の実施の形態を図
面に基づいて具体的に説明する。図2は、この発明によ
る画像データ圧縮処理装置を備えたページプリンタを用
いた画像形成システムの構成例を示す図であり、100
はパーソナルコンピュータ、200がページプリンタで
ある。通常、ユーザはパーソナルコンピュータ100の
CRT画面とキーボードとDTP(デスクトップ・パブ
リッシング)アプリケーションを使って文書を作成し、
プリンタドライバ101を通してページプリンタ200
に転送して印刷を行なう。
Embodiments of the present invention will be specifically described below with reference to the drawings. FIG. 2 is a diagram showing an example of the configuration of an image forming system using a page printer provided with the image data compression processing apparatus according to the present invention.
Is a personal computer, and 200 is a page printer. Normally, a user creates a document by using a CRT screen of the personal computer 100, a keyboard and a DTP (Desktop Publishing) application,
Page printer 200 through printer driver 101
Transfer to and print.

【0029】プリンタドライバ101は、通常印刷すべ
き文書内容をページプリンタ200がサポートするプリ
ンタ言語、例えばヒューレット・パッカード(HP)社
のPCLやAdobe社のポストスクリプト言語等にコ
ンバートする。前者に接続されたプリンタを一般にPC
Lエミュレーション・プリンタ、後者に接続されたプリ
ンタをポストスクリプト・プリンタと呼ぶ。また、パー
ソナルコンピュータ100側で全てラスタライズされた
ビットイメージを印刷するだけのダムプリンタと呼ばれ
るプリンタもある。
The printer driver 101 converts the content of a document to be normally printed into a printer language supported by the page printer 200, such as PCL of Hewlett-Packard (HP) or Postscript language of Adobe. The printer connected to the former is generally connected to a PC.
The L emulation printer and the printer connected to the L emulation printer are called PostScript printers. There is also a printer called a dumb printer which simply prints a bit image which is entirely rasterized on the personal computer 100 side.

【0030】ページプリンタ200としては、レーザプ
リンタやインクジェットプリンタ、あるいはサーマルプ
リンタ等があるが、高速印刷という点でレーザプリンタ
が勝る。最近はカラーのレーザプリンタも市場に出始め
ており、それを使用することも可能である。また、解像
度は年々高まる一方で、現在は600DPIが標準とな
っている。以下の実施例では、ページプリンタ200を
600DPIの白黒ポストスクリプト・レーザプリンタ
(以下単に「ページプリンタ」と称する)として説明す
るが、この発明はそれに限定されるものではない。
The page printer 200 may be a laser printer, an ink jet printer, a thermal printer, or the like, but the laser printer is superior in high speed printing. Recently, a color laser printer has begun to appear on the market, and it is also possible to use it. Further, while the resolution is increasing year by year, 600 DPI is currently the standard. In the following embodiments, the page printer 200 will be described as a 600 DPI black and white PostScript laser printer (hereinafter simply referred to as “page printer”), but the present invention is not limited to this.

【0031】図3はそのページプリンタの外観図であ
り、図4はその内部機構の概略を示す縦断面図である。
このページプリンタ200は、給紙トレイ2を着脱可能
に備え、上部に第1排紙スタッカ3を設け、後部に第2
排紙スタッカ4を設けている。2個の排紙スタッカ3,
4への排紙は切換爪5によって切換え可能である。通常
は、排紙スタッカとして第1排紙スタッカ3が選択され
るが、封筒や葉書などのカールし易い紙を使用する場合
など、特別な場合に第2排紙スタッカ4が選択される。
FIG. 3 is an external view of the page printer, and FIG. 4 is a vertical sectional view showing the outline of the internal mechanism.
The page printer 200 has a paper feed tray 2 detachably provided, a first paper output stacker 3 provided at an upper portion, and a second paper output stacker 3 provided at a rear portion.
A discharge stacker 4 is provided. 2 paper output stackers 3,
4 can be switched by the switching claw 5. Normally, the first discharge stacker 3 is selected as the discharge stacker. However, the second discharge stacker 4 is selected in a special case such as when using easily curlable paper such as an envelope or a postcard.

【0032】さらに、内部にはプリンタエンジンの作像
部を構成する感光体ドラム10,帯電部11,光書込部
12,現像部13,転写部14,定着部15と、給紙ロ
ーラ16及びレジストローラ対17等による給紙部と、
搬送ローラとペーパガイド板等からなる排紙用搬送部1
8と、このページプリンタ全体を制御するプリンタコン
トローラを構成するコントローラ基板19及びプリンタ
エンジンのシーケンスコントローラを構成するエンジン
ドライバ基板20等が設けられている。
Further, inside thereof, a photosensitive drum 10, a charging section 11, an optical writing section 12, a developing section 13, a transfer section 14, a fixing section 15, which constitute an image forming section of a printer engine, a paper feed roller 16 and A paper feed section using a pair of registration rollers 17, etc.,
Paper discharge transport unit 1 composed of transport rollers and paper guide plates
8 and a controller board 19 constituting a printer controller for controlling the entire page printer, an engine driver board 20 constituting a sequence controller of the printer engine, and the like.

【0033】そして、プリンタエンジンのシーケンスコ
ントローラによりプリントシーケンスが開始されると、
給紙ローラ16によって給紙トレイ2から給紙を始め、
その用紙の先端をレジストローラ対17に突き当てた状
態で一時停止させる。一方、感光体ドラム10は図4の
矢印A方向へ回転し、帯電部11で帯電された表面に、
光書込部12によってプリンタコントローラからの画像
データに応じて変調されたレーザビームを、ドラム軸方
向に主走査しながら照射して露光し、感光体ドラム10
の表面に静電潜像を形成する。
When the print sequence is started by the sequence controller of the printer engine,
Paper is fed from the paper feed tray 2 by the paper feed roller 16,
The sheet is temporarily stopped in a state where the leading end of the sheet abuts against the pair of registration rollers 17. On the other hand, the photosensitive drum 10 rotates in the direction of arrow A in FIG. 4, and the surface charged by the charging unit 11 is
A laser beam modulated by the optical writing unit 12 according to the image data from the printer controller is irradiated while performing main scanning in the drum axis direction to be exposed, and the photosensitive drum 10 is exposed.
To form an electrostatic latent image on the surface of.

【0034】それを現像部13でトナーによって現像
し、レジストローラ対17によって所定のタイミングで
給送される用紙に転写部14において転写し、定着部1
5で加熱定着したプリント紙を第2排紙スタッカ4へ送
出するか、排紙用搬送部18を通して上部の第1排紙ス
タッカ3へ搬送する。
The developing unit 13 develops it with toner, and the registration roller pair 17 transfers it to a sheet fed at a predetermined timing by the transfer unit 14, and the fixing unit 1
The print paper heated and fixed in step 5 is sent to the second discharge stacker 4 or is conveyed to the first discharge stacker 3 above through the discharge conveyance section 18.

【0035】図5はコントローラ基板19の内部ブロッ
ク図である。このコントローラ基板19は、CPU20
1,NVRAM203,プログラムROM204,フォ
ントROM205,RAM206,及び4個のインタフ
ェース(以下「I/F」と略称する)207,209,
211,213と、これらを接続するバスライン215
によって構成されている。
FIG. 5 is an internal block diagram of the controller board 19. This controller board 19 has a CPU 20.
1, NVRAM 203, program ROM 204, font ROM 205, RAM 206, and four interfaces (hereinafter abbreviated as “I / F”) 207, 209,
211 and 213 and a bus line 215 connecting them
It is constituted by.

【0036】CPU201は、プログラムROM204
に格納されたプログラム、操作パネル210からのモー
ド指示、ホスト装置であるパーソナルコンピュータ(パ
ソコン)100からのコマンド等によって、このコント
ローラ全体を制御する。また、挿着されたICカード2
02から、フォントデータやプログラム等を取り込むこ
ともできる。さらに、後述する印刷すべき2値画像デー
タのページメモリへの描画及び圧縮に係わる処理も行な
う。NVRAM203は、操作パネル210からのモー
ド指示の内容などを記憶しておく不揮発性メモリであ
る。
The CPU 201 has a program ROM 204.
The controller is controlled by a program stored in the controller, a mode instruction from the operation panel 210, a command from a personal computer (personal computer) 100 as a host device, and the like. In addition, the inserted IC card 2
From 02, font data and programs can be imported. Further, it also carries out processing relating to drawing and compression of binary image data to be printed in a page memory, which will be described later. The NVRAM 203 is a non-volatile memory that stores the content of a mode instruction from the operation panel 210 and the like.

【0037】プログラムROM204は、このコントロ
ーラの制御プログラムを格納している読出し専用メモリ
である。フォントROM205は、文字フォントのパタ
ーンデータなどを記憶する。RAM206は、CPU2
01のワークメモリ,入力データのインプットバッフ
ァ,プリントデータのページメモリ(フレームバッフ
ァ),ダウンロードフォント用のメモリ等に使用するラ
ンダムアクセス・メモリである。
The program ROM 204 is a read-only memory that stores a control program for this controller. The font ROM 205 stores character font pattern data and the like. RAM206 is CPU2
The random access memory is used as a work memory 01, an input buffer for input data, a page memory (frame buffer) for print data, a memory for download fonts, and the like.

【0038】エンジンI/F207は、実際に印刷を行
なうプリンタエンジン208と接続されて、コマンド及
びステータスや印字データの通信を行なうインタフェー
スである。パネルI/F209は、操作パネル210と
接続されて、コマンド及びステータスの通信を行なうイ
ンタフェースであり、操作パネル210は、使用者に現
在のプリンタの状態を表示して知らせたり、使用者がモ
ード指示を行なったりするパネル装置である。
The engine I / F 207 is an interface that is connected to a printer engine 208 that actually performs printing and that communicates commands, statuses, and print data. A panel I / F 209 is an interface that is connected to the operation panel 210 and communicates commands and status. The operation panel 210 displays and informs the user of the current status of the printer, and allows the user to specify the mode. Panel device.

【0039】ホストI/F211は、ホスト装置である
パーソナルコンピュータ100と通信を行なうインタフ
ェースであり、通常はセントロニクスI/FやRS23
2Cを使用する。ディスクI/F213は、ディスク装
置214と通信を行なうためのディスクインタフェース
である。ディスク装置214は、フォントデータやプロ
グラム、あるいは印字データなどの種々のデータを記憶
しておくための外部記憶装置であり、フロッピディスク
装置やハードディスク装置などである。
The host I / F 211 is an interface for communicating with the personal computer 100 which is a host device, and is usually a Centronics I / F or RS23.
Use 2C. The disk I / F 213 is a disk interface for communicating with the disk device 214. The disk device 214 is an external storage device for storing various data such as font data, programs, and print data, and is a floppy disk device, a hard disk device, or the like.

【0040】ここで、このページプリンタ200による
ページ印刷の動作について、図6及び図1によって説明
する。図6はこのページプリンタ200によって1ペー
ジ分の印刷を行なう際の動作フロー図、図1はその処理
に係わる機能構成を示すブロック図である。そこで、図
6のフローに沿って、図1を参照しながらページ印刷の
動作を説明する。図2に示したパーソナルコンピュータ
100内のプリンタドライバ101が、印刷すべき文書
データをページ毎にポストスクリプト(以下、PSと記
す)ファイルに変換してページプリンタ200へ送る。
The page printing operation of the page printer 200 will be described with reference to FIGS. 6 and 1. FIG. 6 is an operation flow diagram when the page printer 200 prints one page, and FIG. 1 is a block diagram showing a functional configuration related to the processing. Therefore, along with the flow of FIG. 6, the operation of page printing will be described with reference to FIG. The printer driver 101 in the personal computer 100 shown in FIG. 2 converts the document data to be printed page by page into a Postscript (hereinafter referred to as PS) file and sends it to the page printer 200.

【0041】そして、ページプリンタ200がそのPS
ファイルを受信すると、図1に示したPSインタープリ
タ21が、第1の解像度である600DPIである決ま
ったブロック単位でラスタライズ(描画)し、圧縮部2
2がそのブロック単位で可変長可逆圧縮処理を試み、圧
縮できたらその結果の圧縮コードを圧縮メモリ(300
DPIで1ページ分の容量を持つページメモリ)23へ
ストアし、圧縮できなかったらラスタライズされた60
0DPIのデータを非圧縮メモリ24へストアする。実
際には、この非圧縮メモリ24は圧縮メモリ23を兼用
することができるので、それに使用する図5に示したR
AM206のメモリ容量を増加させる必要はない。
Then, the page printer 200 uses the PS
When the file is received, the PS interpreter 21 shown in FIG. 1 rasterizes (draws) in fixed block units of 600 DPI which is the first resolution, and the compression unit 2
2 tries variable length lossless compression processing in the block unit, and if the compression is successful, the resulting compression code is stored in the compression memory (300
It is stored in page memory 23 having a capacity of one page by DPI) 23, and if it cannot be compressed, it is rasterized 60
The data of 0DPI is stored in the uncompressed memory 24. In practice, the non-compressed memory 24 can also be used as the compressed memory 23. Therefore, the R shown in FIG.
There is no need to increase the memory capacity of the AM 206.

【0042】1ページ分の処理が終了したら、圧縮メモ
リ23へストアした圧縮画像をページの左上から順番に
伸長部25で伸長し、その600DPIの画像データを
600DPIのプリンタエンジン208へ送って印刷結
果を得る。非圧縮メモリ24にストアした600DPI
の非圧縮画像データは、そのまま600DPIのプリン
タエンジン208へ送る。
When the processing for one page is completed, the compressed image stored in the compression memory 23 is decompressed in the decompression unit 25 in order from the upper left of the page, and the 600 DPI image data is sent to the printer engine 208 of 600 DPI to print the result. To get 600 DPI stored in uncompressed memory 24
The non-compressed image data of is sent to the printer engine 208 of 600 DPI as it is.

【0043】これらの場合には、図1に示す2値多値変
換処理部26は、伸長部25からの圧縮画像を伸長した
600DPIの画像データ、あるいは非圧縮メモリ24
からの600DPIの非圧縮画像データを、そのままプ
リンタエンジン208へ送るだけで、2値多値変換処理
は行なわない。
In these cases, the binary / multi-value conversion processing unit 26 shown in FIG. 1 uses the image data of 600 DPI obtained by expanding the compressed image from the expansion unit 25, or the uncompressed memory 24.
The non-compressed image data of 600 DPI is sent to the printer engine 208 as it is, and the binary multi-value conversion process is not performed.

【0044】もし、1ページ分の処理を終了する前に、
(圧縮メモリ+非圧縮メモリ)のデータがある容量を越
えてしまったら、PSインタープリタ21は解像度を第
2の解像度である300DPIに変えて圧縮メモリ23
へラスタライズ(描画)し直し、1ページ分の処理が終
了したら、その300DPIの非圧縮画像データを、伸
長部25では何もせずに順次2値多値変換処理部26へ
送り、そこで解像度変換を含む2値多値変換処理を行な
って、解像度を600DPIに変換したデータをプリン
タエンジン208へ送って印刷する。
If the processing for one page is finished,
When the data of (compressed memory + non-compressed memory) exceeds a certain capacity, the PS interpreter 21 changes the resolution to the second resolution of 300 DPI and the compressed memory 23.
When rasterization (drawing) is performed again and the processing for one page is completed, the uncompressed image data of 300 DPI is sequentially sent to the binary multi-value conversion processing unit 26 without performing any processing in the expansion unit 25, and resolution conversion is performed there. The binary multi-value conversion process including the conversion is performed, and the data whose resolution is converted to 600 DPI is sent to the printer engine 208 and printed.

【0045】〈ブロック単位の圧縮処理の説明〉次に、
上述したブロック単位の圧縮処理の詳細について図7乃
至図16を参照して説明する。このページプリンタにお
いては、描画する2値画像データに対して主走査方向に
tドットで構成されるブロックと、主走査方向又は副走
査方向にuブロックで構成されるユニットの2つの基本
単位を設定している。
<Description of Block-by-Block Compression Processing> Next,
Details of the compression processing in block units described above will be described with reference to FIGS. 7 to 16. In this page printer, two basic units are set for the binary image data to be drawn: a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction. are doing.

【0046】そして、図7に示すように、圧縮メモリ2
3内のページバッファである1ページ分のフレーム23
aを多数のユニット(Unit)単位に分割する。この例で
は、図8に拡大して示すように、主走査方向に64ドッ
ト(t=64)のブロックワード(Brock Word:以下
「BW」と略称する)が、副走査方向に16ラインすな
わち16ブロック(u=16)で1ユニットを構成して
いる。
Then, as shown in FIG. 7, the compression memory 2
Frame 23 for one page which is a page buffer in 3
a is divided into a number of units. In this example, as shown in an enlarged view in FIG. 8, a block word (Brock Word: hereinafter abbreviated as “BW”) of 64 dots (t = 64) in the main scanning direction has 16 lines in the sub scanning direction, that is, 16 lines. A block (u = 16) constitutes one unit.

【0047】また、圧縮メモリ23には、図9に示すよ
うに、1ページ分のバーチャルフレーム(virtual flam
e)も用意し、各ユニット毎に、mビット(この例では
32ビット)のユニットレコード(Unit Record)の集ま
りのホワイトマップテーブル(White Map Table :以下
「WMT」と略称する)を設ける。そして、各ユニット
毎に描画データが全て白であるかどうかをチェックし、
全て白ならこのWMTの該ユニットに対応するユニット
レコードをNULL(0xffffffff)にする。
Further, as shown in FIG. 9, the compression memory 23 stores one page of virtual frames (virtual flam).
e) is also prepared, and a white map table (hereinafter abbreviated as “WMT”) of a collection of m-bit (32-bit in this example) unit records is provided for each unit. And check whether all drawing data is white for each unit,
If all white, the unit record corresponding to this unit of this WMT is set to NULL (0xffffffff).

【0048】もし、黒ドットが1つ以上存在するなら、
この32ビットのユニットレコードに、図10に示すよ
うに、圧縮データテーブル(Compression Data Table:
以下「CDT」と略称する) の実アドレス(CDTアド
レス) を格納する。CDTは、ユニット内の各BWに対
応する16個の32ビットの圧縮データレコード(Comp
ression Data Record:以下「CDR」と略称する)C
DR-0〜CDR-15によって構成される。
If there is more than one black dot,
In this 32-bit unit record, as shown in FIG. 10, a compression data table (Compression Data Table:
Hereinafter, the real address (CDT address) of "CDT" is stored. The CDT consists of 16 32-bit compressed data records (Comp
ression Data Record: Abbreviated as "CDR" below) C
It is composed of DR-0 to CDR-15.

【0049】この32ビットのCDRの詳細を図11に
示す。ユニットを構成する各WBごとに、描画データの
可変長可逆圧縮を試み、もし圧縮可能であれば、bit 3
1を“0”にして、bit29〜bit0に、その圧縮コード
(図12に示すハフマン・コードによる)を格納する。
また、圧縮不可能であったら、bit 31を“1”にし
て、bit30〜bit0に、そのBWのデータそのままのイ
メージデータで格納する非圧縮データレコード(Uncomp
ression Data Record:以下「UCDR」と略称する)
のアドレスである非圧縮データテーブルアドレス(Unco
mpression DataTable Address:以下「UDTアドレ
ス」と略称する)を格納する。
The details of the 32-bit CDR are shown in FIG. For each WB that makes up the unit, try variable length lossless compression of drawing data, and if compression is possible, bit 3
1 is set to "0", and the compressed code (according to the Huffman code shown in FIG. 12) is stored in bits 29 to 0.
If the data cannot be compressed, the bit 31 is set to "1", and the uncompressed data record (Uncomp.
ression Data Record: hereinafter abbreviated as "UCDR")
Uncompressed data table address (Unco
mpression DataTable Address: Stored below is abbreviated as “UDT address”.

【0050】この実施形態による画像データの圧縮方法
は、次に示した2ステップからなる。まず始めに、対象
となるBWのデータが全て白(全白)か全て黒(全黒)
かを調べる。もし、全白又は全黒であったなら、そのB
Wに対応するCDTをそれぞれ 0x00000000 又は 0x7ff
fffff とする。もし、そうでない場合には、先頭ドット
が白ドットか黒ドットかに応じて(図11に示したCD
Rのbit30で指定)、白ドットあるいは黒ドットのラン
グレンスを、図12に示したハフマン・コードで記述す
る。
The image data compression method according to this embodiment includes the following two steps. First of all, the target BW data is all white (all white) or all black (all black).
Find out what. If all white or all black, then B
The CDT corresponding to W is 0x00000000 or 0x7ff, respectively.
fffff. If not, depending on whether the first dot is a white dot or a black dot (see the CD shown in FIG. 11).
(Specified by bit 30 of R), the rung of white dots or black dots is described by the Huffman code shown in FIG.

【0051】例えば、図14の(a)に示したBWは、同
図(b)に示した圧縮コードに変換される。なお、最後の
白ドット(ランレングス=10)は、圧縮コードに含ま
れないが、ブラックドット(ランレングス=19)の後
が全て白ドット であることにより復元が可能である。
また、CDTの余った領域には、1を書き込むようにす
る。ここで、29bit に圧縮することが不可能だったブ
ロックにおいては、CDRのbit 31を1にし、対応す
るUCDRのアドレスを格納し、UCDRに圧縮前のB
Wのイメージデータをそのまま格納する。
For example, the BW shown in FIG. 14 (a) is converted into the compressed code shown in FIG. 14 (b). The last white dot (run length = 10) is not included in the compressed code, but restoration is possible because the black dots (run length = 19) are all white dots.
Also, 1 is written in the surplus area of the CDT. Here, in a block that could not be compressed to 29 bits, the bit 31 of CDR is set to 1, the address of the corresponding UCDR is stored, and B before compression is stored in UCDR.
The W image data is stored as it is.

【0052】具体的な画像の例を図15に、その画像デ
ータが描画された時の圧縮メモリとしてのRAM内のバ
ッファの内容を表したのが図16である。図15に示す
グラフィック図形が、楕円形,三角形,長方形の各図形
順で描画された時に、まず楕円形の図形から圧縮処理を
する。
FIG. 16 shows an example of a concrete image, and FIG. 16 shows the contents of the buffer in the RAM as the compression memory when the image data is drawn. When the graphic figure shown in FIG. 15 is drawn in the order of elliptical, triangular, and rectangular figures, the elliptical figure is first compressed.

【0053】図15の楕円形内の(A)部に対応する図
16のWMTの中の(A)に該当するブロックが全て圧縮
できた場合、CDT−Aのようなデータが作成される。
次に、三角形の描画時に対応する図16のWMTの中の
(B)に該当するブロックを描画したときの例として、図
15の(B)部は、以前に描画されている楕円形の図形
上に上書きされている。この例では、CDRb1に該当す
るブロックが圧縮できなかったので、UCDRb1という
レコードが発生している。
When all the blocks corresponding to (A) in the WMT of FIG. 16 corresponding to the (A) part in the ellipse of FIG. 15 can be compressed, data such as CDT-A is created.
Next, in the WMT of FIG. 16 corresponding to the drawing of the triangle,
As an example when a block corresponding to (B) is drawn, the (B) part of FIG. 15 is overwritten on the previously drawn elliptical figure. In this example, since the block corresponding to CDRb1 could not be compressed, the record UCDRb1 is generated.

【0054】さらに、四角形を描画したときCDT−C
が発生した時の例として、楕円形の描画時に、CDRc1
5 が圧縮できずにUCDRを作成した後、三角形の
(C)部の描画でCDRc15 が圧縮できた時、不使用記
録(Unused Record) が発生する。また新たな長方形の
描画時のデータで圧縮できなかった場合、別領域のCD
Rc15 を作成してしまう。描画の形態はこのような上書
き描画が多いので、不使用記録の容量は無視できないほ
ど大きくなってしまう。
Furthermore, when a rectangle is drawn, CDT-C
For example, when the ellipse is drawn, CDRc1
After creating the UCDR without being able to compress 5, the unused recording (Unused Record) occurs when CDRc15 can be compressed by drawing the triangle (C) part. If the data cannot be compressed due to the data when drawing a new rectangle, the CD in another area
Creates Rc15. Since most of the drawing forms are such overwriting, the capacity of unused recording becomes so large that it cannot be ignored.

【0055】〈不使用記録領域を再利用可能にする方
法〉この発明は、この不要となる不使用記録の領域(U
CDR)を再利用できるようにするために、次の各方法
をとることを提案している。これをあるCDTを一例と
して説明する。
<Method for Reusing Unused Recording Area> This invention is designed to eliminate this unnecessary unused recording area (U
In order to make the CDR) reusable, the following methods are proposed. This will be described by taking a certain CDT as an example.

【0056】図17は第1の方法を説明するための図で
あり、a)はCDR15が圧縮不可能でUCDRc15 を
持っているCDTの状態で、新たにCDR15に描画デ
ータが格納された時、新たなデータが圧縮可能な場合
は、UCDRc15 は不要となり、b)に示すように不使
用記録(Unused Record)になる。そこで、この使用しな
くなったUCDRの領域を再利用するためのガーベージ
コレクションを実行するために、この不使用記録(64
ビットのUCDR)内に“XX………XXX1X”で示
すようなフラグ情報を設ける。このように、使用しなく
なったUCDR自身にフラグ情報を持つことにより、新
たな他の領域を必要としないでガーベージ・コレクショ
ンを実行することができる。
FIG. 17 is a diagram for explaining the first method. In FIG. 17A, when the drawing data is newly stored in the CDR15 in the state of the CDT in which the CDR15 cannot be compressed and has the UCDRc15, If new data can be compressed, the UCDRc15 becomes unnecessary and becomes an unused record as shown in b). Therefore, in order to execute the garbage collection for reusing this unused UCDR area, this unused record (64
In the bit UCDR), flag information as shown by "XX ......... XXX1X" is provided. In this way, by having flag information in the UCDR itself that is no longer used, garbage collection can be executed without needing another new area.

【0057】図18は第2の方法を説明するための図で
あり、a)は同じくCDR15が圧縮不可能でUCDR
c15 を持っているCDTの状態で、新たにCDR15に
描画データが格納された時、新たなデータが圧縮可能な
場合は、UCDRc15 は不要となり、b)に示すように
不使用記録(Unused Record)になる。そこで、この使用
しなくなったUCDRの領域を再利用するためのガーベ
ージ・コレクションを実行するために、この不使用記録
が発生した時に、別領域に設けたカウントレジスタのカ
ウント値(X)を増やす(X+1にする)。これによ
り、単発のガーベージ・コレクションではなく、まとま
った処理も可能になる。
FIG. 18 is a diagram for explaining the second method. In FIG. 18A, the CDR 15 is also incompressible and the UCDR is the same.
When drawing data is newly stored in CDR15 in the state of CDT having c15, UCDRc15 becomes unnecessary if the new data can be compressed, and as shown in b) Unused Record become. Therefore, in order to execute the garbage collection for reusing the unused UCDR area, when the unused recording occurs, the count value (X) of the count register provided in another area is increased ( X + 1). This allows for bulk processing rather than a single garbage collection.

【0058】図19は第3の方法を説明するための図で
あり、a)は同じくCDR15が圧縮不可能でUCDR
c15 を持っているCDTの状態で、新たにCDR15に
描画データが格納された時、新たなデータが圧縮可能な
場合は、UCDRc15 は不要となり、b)に示すように
不使用記録(Unused Record)になる。このとき、別領域
に設けたカウントレジスタのカウント値(X)を増やす
(X+1にする)。
FIG. 19 is a diagram for explaining the third method. In FIG. 19A, the CDR 15 is also incompressible and the UCDR is the same.
When drawing data is newly stored in CDR15 in the state of CDT having c15, UCDRc15 becomes unnecessary if the new data can be compressed, and as shown in b) Unused Record become. At this time, the count value (X) of the count register provided in another area is increased (set to X + 1).

【0059】さらに、CDR15に新たな描画データが
書かれて、c)に示すように旧UCDRc15 と同じ場所
にUCDRc15 が作成された場合(1度UCDRを作成
したものは、以後圧縮しない方式もある)、上記カウン
トレジスタの値(X)を減らす(X−1にする)。これ
により、一度不使用記録になり再利用された数の計算を
描画時にできるので、ガーベージ・コレクション実行時
に計算の必要がなくなる。
Further, when new drawing data is written in the CDR 15 and the UCDRc15 is created at the same location as the old UCDRc15 as shown in c) (the UCDR created once may not be compressed thereafter. ), The value (X) of the count register is reduced (set to X-1). As a result, it is possible to calculate at the time of drawing the number of records that have become unused records and that have been reused. Therefore, there is no need for calculation when executing garbage collection.

【0060】図20は第4の方法を説明するための図で
あり、a)は同じくCDR15が圧縮不可能でUCDR
c15 を持っているCDTの状態で、新たにCDR15に
描画データが格納された時、新たなデータが圧縮可能な
場合は、UCDRc15 は不要となり、b)に示すように
不使用記録(Unused Record)になる。この場合には別例
領域に第1,第2のカウントレジスタを設けており、
b)の状態になったときに第1のカウントレジスタ値
(X)を増やす(X+1にする)。
FIG. 20 is a diagram for explaining the fourth method. In FIG. 20A, the CDR 15 is also incompressible and the UCDR is the same.
When drawing data is newly stored in CDR15 in the state of CDT having c15, UCDRc15 becomes unnecessary if the new data can be compressed, and as shown in b) Unused Record become. In this case, the first and second count registers are provided in another example area,
The first count register value when the state of b) is entered
Increase (X) (set to X + 1).

【0061】さらに、CDR15に新たな描画データが
書かれて、c)に示すように旧UCDRc15 と同じ場所
にUCDRc15 が作成された場合(1度UCDRを作成
したものは、以後は圧縮しない方式もある)、第2のカ
ウントレジスタの値(Y)を増やす(Y+1にする)。
これにより、UCDRに圧縮できるデータが入ってる数
が、第2のレジスタによりわかるので、ガーベージ・コ
レクション機能の分割が可能になる。
Further, when new drawing data is written in the CDR15 and the UCDRc15 is created at the same location as the old UCDRc15 as shown in c) (a UCDR created once does not have a compression method thereafter). Yes, the value (Y) of the second count register is increased (to Y + 1).
This allows the garbage collection function to be divided, since the number of data that can be compressed in the UCDR is known by the second register.

【0062】図21は第5の方法を説明するための図で
あり、a)は同じくCDR15が圧縮不可能でUCDR
c15 を持っているCDTの状態で、新たにCDR15に
描画データが格納された時、新たなデータが圧縮可能な
場合は、UCDRc15 は不要となり、b)に示すように
不使用記録(Unused Record)になる。その後、圧縮不可
能なデータが描画され、b)に示すようにUCDRc1が
作成され、さらにCDR0に圧縮可能なデータが描画さ
れて、c)に示すように不使用記録が連続になった場
合、その連続するというフラグ情報を設けて、ガーベー
ジ・コレクションを連続で実行できるようにする。
FIG. 21 is a diagram for explaining the fifth method. In FIG. 21A, the CDR 15 is also incompressible and the UCDR is the same.
When drawing data is newly stored in CDR15 in the state of CDT having c15, UCDRc15 becomes unnecessary if the new data can be compressed, and as shown in b) Unused Record become. After that, when incompressible data is drawn, UCDRc1 is created as shown in b), compressible data is drawn in CDR0, and unused recording becomes continuous as shown in c), The flag information indicating that they are continuous is provided so that garbage collection can be continuously executed.

【0063】図22は第6の方法を説明するための図で
あり、a)は同じくCDR15が圧縮不可能でUCDR
c15 を持っているCDTの状態で、新たにCDR15に
描画データが格納された時、新たなデータが圧縮可能な
場合は、UCDRc15 は不要となり、b)に示すように
不使用記録(Unused Record)になる。この例では別領域
にアドレスレジスタを設け、不使用記録となったUCD
Rのアドレスポインタを、そのアドレスレジスタに格納
する。それによって、このアドレスレジスタが指すアド
レスを直接参照するという簡単なガーベージ・コレクシ
ョンを実行できる。
FIG. 22 is a diagram for explaining the sixth method. In FIG. 22A, the CDR 15 is also incompressible and the UCDR is the same.
When drawing data is newly stored in CDR15 in the state of CDT having c15, UCDRc15 becomes unnecessary if the new data can be compressed, and as shown in b) Unused Record become. In this example, an address register is provided in another area, and the UCD that has not been used for recording
The R address pointer is stored in the address register. This allows simple garbage collection by directly referencing the address pointed to by this address register.

【0064】図23は第7の方法を説明するための図で
あり、a)は同じくCDR15が圧縮不可能でUCDR
c15 を持っているCDTの状態で、新たにCDR15に
描画データが格納された時、新たなデータが圧縮可能な
場合は、UCDRc15 は不要となり、b)に示すように
不使用記録(Unused Record)になる。この例でも別領域
にアドレスレジスタを設け、不使用記録となったUCD
Rのアドレスポインタを、そのアドレスレジスタに格納
する。その後さらに、別のUCDRが発生した場合、こ
のアドレスレジスタの指すアドレスにそのUCDRを格
納する。これにより、次に任意のCDTがUCDRを発
生させても、アドレスレジスタの場所に格納できるの
で、圧縮しながらリアルタイムのガーベージ・コレクシ
ョンが可能となる。
FIG. 23 is a diagram for explaining the seventh method. In FIG. 23A, the CDR 15 is also incompressible and the UCDR is the same.
When drawing data is newly stored in CDR15 in the state of CDT having c15, UCDRc15 becomes unnecessary if the new data can be compressed, and as shown in b) Unused Record become. In this example as well, an UCD that has not been used for recording has an address register in another area.
The R address pointer is stored in the address register. After that, when another UCDR is further generated, the UCDR is stored at the address indicated by this address register. As a result, even if an arbitrary CDT next generates a UCDR, the UCDR can be stored in the location of the address register, so that real-time garbage collection can be performed while compressing.

【0065】図24及び図25は第8の方法を説明する
ための図であり、まず1個目の不使用記録が発生した
ら、1個目不使用記録のアドレスをアドレスレジスタに
格納する。2個目の不使用記録が発生した場合、アドレ
スレジスタの指す1個目にはNULLデータのような終
端情報を格納し、アドレスレジスタの内容を2個目に格
納し、2個目のアドレスを他のアドレスレジスタに格納
する。3個目の時は、アドレスレジスタの内容を3個目
に格納し、3個目のアドレスをさらに他のアドレスレジ
スタに格納する。これを順次繰り返す。
24 and 25 are diagrams for explaining the eighth method. First, when the first unused record occurs, the address of the first unused record is stored in the address register. When the second unused recording occurs, the end information such as NULL data is stored in the first one pointed by the address register, the contents of the address register is stored in the second one, and the second address is set. Store in another address register. At the time of the third address, the contents of the address register are stored in the third address, and the third address is stored in another address register. This is repeated sequentially.

【0066】図24は、RAMのスクラッチパッドメモ
リ内にA−Iまでの不使用記録(Unused Record)がある
状態を示しており、図25は不使用記録Jが1個増えた
状態を示している。このようにすることにより、全ての
不使用記録のUCDRをいつでもたどることができるの
で、任意の数、任意のタイミングでガーベージ・コレク
ションが可能になる。
FIG. 24 shows a state where there is an unused record up to AI in the scratch pad memory of the RAM, and FIG. 25 shows a state where the unused record J is increased by one. There is. By doing so, since the UCDRs of all unused records can be traced at any time, garbage collection can be performed at any number and at any timing.

【0067】〈圧縮部の構成と圧縮処理について〉ここ
で、図1に示した圧縮部22のハードウエア構成例を図
26に示す。この圧縮部22は、リードブロック22
1、1ブロックワードBWのデータを格納できる容量で
ある64bitのバッファ222、モディファイブロック
223、及び圧縮ブロック224とからなる。
<Structure of Compression Unit and Compression Processing> Here, FIG. 26 shows an example of the hardware structure of the compression unit 22 shown in FIG. The compression unit 22 includes a lead block 22.
It is composed of a 64-bit buffer 222, a modify block 223, and a compression block 224, each of which has a capacity for storing data of 1 and 1 block word BW.

【0068】そして、図5に示したCPU201の機能
による図1のPSインタープリタによって、ブロックワ
ードBW単位で解像度600DPIで描画されるデータ
を可変長可逆圧縮して、図5のRAM206を使用する
ページメモリである圧縮メモリ(WMT,CDT,UD
Tの各エリアを有する)23に、その圧縮コードをスト
アする。
Then, the PS interpreter of FIG. 1 having the function of the CPU 201 shown in FIG. 5 performs variable length lossless compression on the data drawn at a resolution of 600 DPI in block word BW units, and the page memory using the RAM 206 of FIG. Compressed memory (WMT, CDT, UD
23) (with each area of T) storing the compressed code.

【0069】リードブロック221は、CPU201に
よって算出された描画すべきユニット番号とそのブロッ
クワードBWの位置の情報から、それに対応したホワイ
トマップテーブルWMT,圧縮データテーブルCDT,
及び非圧縮データテーブルUDTの圧縮データを圧縮メ
モリ23からリードし、圧縮前のブロックワードBWを
64bitのバッファ222に復元するためのブロックで
ある。
The read block 221 uses the unit number to be drawn and the position information of the block word BW calculated by the CPU 201 to determine the corresponding white map table WMT, compressed data table CDT,
And a block for reading the compressed data of the non-compressed data table UDT from the compression memory 23 and restoring the uncompressed block word BW to the 64-bit buffer 222.

【0070】また、モディファイブロック223は、C
PU201によって指定された新たに描画すべきブロッ
クワードBWのデータ(Write Data)を、バッファ2
22にリード・モディファイ・ライト(読み出し・修正
・書き込み)するためのブロックである。
The modify block 223 is C
The data (Write Data) of the block word BW newly designated by the PU 201 to be drawn is stored in the buffer 2
22 is a block for performing read / modify / write (read / modify / write).

【0071】そして、圧縮ブロック224は、リード・
モディファイ・ライト処理されたバッファ222のデー
タを再圧縮するブロックで、その結果を圧縮メモリ23
の先に読み出したユニット番号のBW位置に書き込む。
すなわち、圧縮メモリ23に先に描画(ラスタライズ)
されている圧縮データを、ブロックワード毎に新たに描
画する画像の圧縮データに順次書き替えていく。
Then, the compression block 224 reads
A block for recompressing the data in the buffer 222 that has been subjected to the modify write processing, and the result is stored in the compression memory 23.
Write to the BW position of the unit number read earlier.
That is, the compression memory 23 is first drawn (rasterized).
The compressed data that has been created is sequentially rewritten for each block word into the compressed data of an image to be newly drawn.

【0072】図27は、図5に示したCPU201によ
る画像データの描画に係わる処理ルーチンのフローチャ
ートである。CPU201は、まず以前の描画動作が終
了し、現在図26に示したハードウエアが動作可能であ
るかをチェックし、もし動作可能であれば、描画すべき
データのユニット番号とBWの位置を算出し、それをリ
ードブロック221と圧縮ブロック224にセットす
る。
FIG. 27 is a flow chart of a processing routine relating to drawing of image data by the CPU 201 shown in FIG. The CPU 201 first checks whether the hardware shown in FIG. 26 is operable after the previous drawing operation is completed, and if it is operable, calculates the unit number of the data to be drawn and the position of the BW. Then, it is set in the read block 221 and the compression block 224.

【0073】そして、モディファイブロック223に、
そのブロックワードBWに新たに描画するデータ(Wri
te Data)をセットすると、リードブロック221,モ
ディファイブロック223,圧縮ブロック224の順に
ハードウエアが動作し、ページメモリである圧縮メモリ
23への1ワードブロックBWの圧縮描画を実行し、1
ページ分の描画終了まで上記の処理を繰り返す。
Then, in the modify block 223,
Data to be newly drawn in the block word BW (Wri
te Data) is set, the hardware operates in the order of the read block 221, the modify block 223, and the compression block 224 to execute the compression drawing of the 1-word block BW in the compression memory 23 which is the page memory, and
The above process is repeated until drawing of the page is completed.

【0074】もし、CPUが図26に示したハードウエ
アの動作終了までアイドル状態である場合が多いシステ
ムであれば、ユニット番号,BWの位置、および新たに
描画すべきBWのデータを一時的に格納するために、C
PUと圧縮部22の各ブロックとの間に、図26に仮想
線で示すようにFIFO(先入れ先出し)メモリ225
〜227を設けるとよい。そして、その各FIFOメモ
リ225〜227の残り容量がある大きさになったら、
割り込みでCPUに知らせるように設計すれば、CPU
は圧縮部22のハードウエアの状態を気にせずに、描画
動作を実行することが可能になる。
If the system in which the CPU is in the idle state in many cases until the operation of the hardware shown in FIG. 26 ends, the unit number, the position of the BW, and the data of the BW to be newly drawn are temporarily stored. To store C
A FIFO (First In First Out) memory 225 is provided between the PU and each block of the compression unit 22 as indicated by a virtual line in FIG.
~ 227 may be provided. When the remaining capacity of each of the FIFO memories 225 to 227 becomes a certain size,
If it is designed to notify the CPU by an interrupt, the CPU
The drawing operation can be executed without worrying about the hardware state of the compression unit 22.

【0075】〈圧縮方式の切り替えの説明〉上述した可
変長可逆圧縮方式(以下の説明では「CDT圧縮方式」
と呼ぶ)で使用するメモリの内訳は図8のようになる。
このシステムで使用するシステムエリアはいつも固定
で、CDT圧縮方式で使用する領域は、ホワイトマップ
テーブル(WMT)エリアタとCDT,UCDTエリア
である。WMTのサイズは、ペーパサイズが決定したと
き(圧縮処理開始前)に決まるので固定である。それゆ
え、CDT,UCDTエリアが、RAMエンドに達した
時が、圧縮メモリがフル状態ということになる。
<Description of Switching of Compression Method> The variable length reversible compression method described above (“CDT compression method” in the following description).
8) shows the breakdown of the memory used.
The system area used in this system is always fixed, and the areas used in the CDT compression method are the white map table (WMT) area and the CDT and UCDT areas. The WMT size is fixed because it is determined when the paper size is determined (before the compression process is started). Therefore, when the CDT and UCDT areas reach the RAM end, it means that the compression memory is full.

【0076】ここで説明する実施形態では、ユニットに
CDT,UCDTが作成された箇所を画像イメージに伸
張し、固定長の圧縮方式で圧縮処理をすることもでき
る。そして、そのユニットがCDT圧縮方式か固定長圧
縮方式のいずれによって描画データの圧縮処理を行なう
かの判別ができるように、図29に示すように、WMT
の32ビットの中に圧縮処理方法判別フラグを設けてい
る。
In the embodiment described here, it is also possible to decompress the portion where the CDT and UCDT are formed in the unit into a picture image and perform the compression processing by the fixed length compression method. Then, as shown in FIG. 29, the WMT is used so that the unit can determine whether the compression processing of the drawing data is performed by the CDT compression method or the fixed length compression method.
A compression processing method determination flag is provided in the 32 bits of the above.

【0077】また、ユニット単位で、CDT圧縮方式又
は固定長圧縮方式のどちらが適しているかの判別は、U
CDRがある一定の数以上になった時で判断できる。C
DT圧縮処理中に、あるユニットのCUDRの数がある
一定の数を越えた場合、固定長圧縮方式に切り替える。
そのある一定の数は、1ユニットの固定長圧縮に要する
平均サイズとCDT圧縮方式で使用するCDR(32ビ
ット×16)とUCDR(64ビット)のサイズから決
まる。また、CDT圧縮処理と固定長圧縮処理の切り替
えの時に、伸張し終わったCDR及びUCDRや、CD
T圧縮処理時に発生したガーベージ(不使用記録)を固
定長圧縮使用可能にするガーベージ・コレクションを実
行することができる。
Further, it is possible to determine whether the CDT compression method or the fixed length compression method is suitable for each unit.
It can be judged when the CDR exceeds a certain number. C
When the number of CUDRs of a unit exceeds a certain number during the DT compression process, the fixed length compression method is switched to.
The certain number is determined by the average size required for fixed length compression of one unit and the sizes of CDR (32 bits × 16) and UCDR (64 bits) used in the CDT compression method. Also, when switching between CDT compression processing and fixed-length compression processing, decompressed CDR and UCDR, and CD
It is possible to execute a garbage collection that enables fixed length compression of the garbage (unused record) generated during the T compression processing.

【0078】これらの実施形態によれば、画像の種類
(イメージ、文字、線画等)に応じて適する圧縮処理方
法で圧縮することができ、圧縮可能になる確率が高くな
る。圧縮処理方法がその画像に適するかどうかの判別を
ユニット毎にすることにより、小単位での圧縮方法の最
適化ができる。圧縮処理方法切り替え時に、切り替え前
の圧縮方法で使っていたエリアを再利用することができ
るので、圧縮率の向上を計れる。
According to these embodiments, it is possible to perform compression by a compression processing method suitable for the type of image (image, character, line drawing, etc.), and the probability of compression becomes high. By determining whether the compression processing method is suitable for the image for each unit, the compression method can be optimized in small units. When switching the compression processing method, the area used by the compression method before the switching can be reused, so that the compression rate can be improved.

【0079】〈CDT圧縮をするか否かの管理〉あるユ
ニットに描画されると、WMTにCDTのアドレスを格
納し、CDT内のCDRが圧縮できない場合はUCDR
を作成する。このUCDRが図30の(a)に示す例で
は8個を越えた時に、CDRが圧縮されているものは伸
張し、(b)に示すように64×16のUCDRを作成
して、WMTにUCDRのアドレスを格納する。つま
り、UCDRが9個発生した場合、CDRが(32×1
6ビット)でUCDRが(64×9 ビット)で合計1
088ビット必要となり、1ユニットを全てUCDRに
展開した(64×16=1024ビット)よりもメモリ
を多く使用することになる。
<Management of whether or not to perform CDT compression> When the image is drawn in a certain unit, the address of the CDT is stored in WMT, and when the CDR in the CDT cannot be compressed, UCDR
Create In the example shown in (a) of FIG. 30, when the number of UCDRs exceeds 8, the compressed CDR expands, and as shown in (b), a 64 × 16 UCDR is created and the WMT is created. Stores the address of the UCDR. In other words, if nine UCDRs occur, the CDRs are (32 × 1
6 bits) and UCDR (64 x 9 bits) for a total of 1
Since 088 bits are required, more memory is used than when one unit is expanded to UCDR (64 × 16 = 1024 bits).

【0080】そこで、この発明では、(u/2)個以上
UCDRが発生した場合は1ユニット分全てUCDRに
変換し、CDTを削除する。この圧縮方法では、1ユニ
ット内で圧縮不可能なブロックが(u/2)個以上にな
ると、圧縮しない方が圧縮メモリを消費しない欠点があ
るため、その場合には、固定長圧縮方法に切り替えてメ
モリ容量の消費を少なくすることができる。
Therefore, in the present invention, when (u / 2) or more UCDRs are generated, one unit is converted into UCDRs and the CDTs are deleted. With this compression method, if there are (u / 2) or more uncompressible blocks in one unit, there is a disadvantage that compression memory is not consumed if not compressed. In that case, switch to the fixed length compression method. It is possible to reduce the consumption of memory capacity.

【0081】〈CDT及びUCDRの削除について〉こ
の発明によるCDT圧縮方式では、WMTは初期状態で
は図31の(a)に示すように、32ビットの全てが
“1”になっている。この状態から1度描画してCDT
が発生すると、(b)に示すようにWMTにはCDTの
アドレスが格納される。その後さらなる描画により、そ
のユニットが全て白データであった時、WMTを(a)
の初期状態にし、以前発生したCDT及びUCDRを削
除する。これにより、ユニット内が全白データ状態に変
わったとき、CDT及びUCDRを削除できるので、メ
モリの削減が可能になる。
<Deletion of CDT and UCDR> In the CDT compression method according to the present invention, in the initial state of the WMT, all 32 bits are "1" as shown in FIG. 31 (a). Draw once from this state and CDT
When occurs, the CDT address is stored in the WMT as shown in (b). After that, by further drawing, when the unit is all white data, WMT (a)
Then, the previously generated CDT and UCDR are deleted. As a result, when the inside of the unit is changed to the all-white data state, the CDT and UCDR can be deleted, so that the memory can be reduced.

【0082】また、あるユニットに全て黒データを書き
込んだ時、あるいは1度描画してCDTが発生したユニ
ットに対して新たにそのユニットに全て黒データが書き
込まれた場合、図31の(c)に示すようにWMTに全
黒情報を格納し、もし以前にCDT又はUCDRが発生
していればそれらを削除する。これにより、ユニット内
に全黒データを書いたとき、CDT及びUCDRを削除
できるので、メモリの削減が可能になる。
Further, when all black data is written to a certain unit, or when all black data is newly written to a unit which has been drawn once and CDT has occurred, (c) in FIG. All black information is stored in the WMT as shown in, and if CDT or UCDR has previously occurred, they are deleted. As a result, when all black data is written in the unit, the CDT and UCDR can be deleted, so that the memory can be reduced.

【0083】さらに、WMTが図31の(a)に示す初
期状態又は(b)に示す1度描画された状態の時に、そ
のユニット内がある繰り返しフィルパターンで描画され
た場合、WMTに(d)に示すようにパターン格納フラ
グ情報,パターンビット数情報法,及びパターンデータ
情報を格納し、もし以前にCDT又はUCDRが発生し
ていればそれらを削除する。この例は、1ユニット内に
16ビットの‘1001110010011000’の
パターンで全てフィルされている時のWMTの状態であ
る。これにより、ユニット内がフィルパターンの繰り返
しになっている時、CDT及びUCDRを削除できるの
で、メモリの削減が可能になる。
Further, when the WMT is in the initial state shown in (a) of FIG. 31 or in the once drawn state shown in (b) of FIG. ), The pattern storage flag information, the pattern bit number information method, and the pattern data information are stored, and if CDT or UCDR has previously occurred, they are deleted. In this example, the WMT state is shown when one unit is completely filled with a 16-bit '1001110010011000' pattern. As a result, when the fill pattern is repeated in the unit, the CDT and UCDR can be deleted, so that the memory can be reduced.

【0084】〈圧縮率を高める方法〉ここで、描画デー
タの圧縮率を高める方法について説明する。第1の方法
は、数種類のフィルパターンをあらかじめ用意してお
き、前述したCDT圧縮方式で圧縮できない場合にこの
フィルパターンテーブルを参照し、一致した場合はWM
Tの bit30=1 とし、bit30以下にそのテーブルコ
ードを格納する。この処理のフローチャートを図32に
示す。
<Method of Increasing Compression Rate> Here, a method of increasing the compression rate of drawing data will be described. The first method is to prepare several kinds of fill patterns in advance, refer to this fill pattern table when compression cannot be performed by the above-mentioned CDT compression method, and if they match, the WM
Bit 30 of T is set to 1 and the table code is stored below bit 30. FIG. 32 shows a flowchart of this process.

【0085】第2の方法は、前述したCDT圧縮方式で
圧縮できないBWのうち出現頻度の高いパターンを数種
類記憶できる領域をメモリ内に確保しておき、圧縮でき
ないBWが現れた時はこの領域を参照して、一致するB
Wがあった場合ははWMTのbit31=1として、bit3
0 以下にはそのBWが記憶されているアドレスのみを
セットする。
The second method reserves an area in the memory in which several types of frequently appearing patterns can be stored in the BW that cannot be compressed by the CDT compression method described above, and this area is stored when an uncompressable BW appears. Refer to and match B
If W is present, set bit31 = 1 of WMT and set bit3
Below 0, only the address where the BW is stored is set.

【0086】第3の方法は、ある決まったドットパター
ンを用意しておき、前述したCDT圧縮方式で圧縮でき
ない場合には、そのBWとあらかじめ用意されたドット
パターンとで、例えば排他的論理和のような論理演算を
行ない、その結果CDT圧縮方式で圧縮できるパターン
になれば、圧縮処理をしてその圧縮コードを格納する。
伸長時には逆の演算を施すことによって元のパターンを
復元することができる。この処理のフローチャートを図
33に示す。
In the third method, a certain fixed dot pattern is prepared, and if the CDT compression method cannot be used for compression, the BW and the dot pattern prepared in advance are subjected to, for example, exclusive OR. Such a logical operation is performed, and if a pattern that can be compressed by the CDT compression method is obtained as a result, compression processing is performed and the compression code is stored.
The original pattern can be restored by performing the reverse operation during expansion. A flowchart of this processing is shown in FIG.

【0087】これらのいずれの方法によっても、圧縮率
を高くすることができる。これらの手段を用いても圧縮
不可能であった場合は、WMTの bit31=1とし、bi
t30〜bit0にBWを格納するアドレスUDTアドレス
をセットする。その他の処理は、前述したとおりである
ので、説明を省略する。
The compression rate can be increased by any of these methods. If compression is not possible even using these means, set bit31 = 1 of WMT and set
The address UDT address for storing BW is set in t30 to bit0. The other processing is the same as described above, and thus the description thereof is omitted.

【0088】〈多値プリンタへの適用〉これまで説明し
てきた画像データの圧縮・伸長方法は、白黒2値画像を
プリントするものを対象としたものであり、グレースケ
ール・プリンタやカラープリンタなどの多値プリンタに
使用する場合については説明していなかった。そこで、
上述した画像データの圧縮・伸長方法を発展させて、グ
レースケール・プリンタやカラープリンタ等の多値プリ
ンタにも適用できるようにしたこの発明の実施態様を、
以下に図34乃至図36を参照して説明する。
<Application to Multi-Valued Printer> The image data compression / decompression method described so far is intended for printing a binary black and white image, such as a gray scale printer or a color printer. It did not explain the use for multi-valued printers. Therefore,
An embodiment of the present invention, which is developed by expanding the above-described image data compression / decompression method and can be applied to a multi-value printer such as a grayscale printer or a color printer,
This will be described below with reference to FIGS. 34 to 36.

【0089】この実施態様における多値ページプリンタ
のハード構成は、図1〜図5によって説明したものと、
基本的に共通しているのでその説明は省略する。この実
施形態では、ユニットの形状を図34又は図35に示す
ように、1ブロックワード(BW)を、tドット(dot)
×bビット(bit)とし、このBWが主走査方向にuブロ
ック(図34)又は副走査方向にuブロック(ライン)
で、1ユニットを構成するように変更する。したがっ
て、1ユニット(unit)=tドット(dot)×bビット(bi
t)×uとなる。ここで、bは多値あるいはカラー画像デ
ータのビットプレーンの数に相当する。例えば256階
調であれば8枚のビットプレーンが必要になるので、b
=8となる。
The hardware configuration of the multi-value page printer in this embodiment is the same as that described with reference to FIGS.
Since they are basically common, the description thereof is omitted. In this embodiment, as shown in FIG. 34 or FIG. 35, the shape of the unit is one block word (BW) and t dot (dot).
Xb bits, and this BW is u blocks in the main scanning direction (FIG. 34) or u blocks (lines) in the sub scanning direction.
Then, change to configure one unit. Therefore, 1 unit = t dot × b bit (bi
t) × u. Here, b corresponds to the number of bit planes of multi-valued or color image data. For example, since 256 bit planes require 8 bit planes, b
= 8.

【0090】そこで、図36によって、多値データに対
する圧縮処理の一例を説明する。図3の(a)が、上述し
たユニットに対する32(bit)のホワイトマップテーブ
ル(WMT)である。1ユニット(unit)が全て白なら、
WMTをNULL(0xffffffff)にし、もし、黒ドットが
1つ以上存在するなら、図3の(b)に示す32ビット圧
縮データテーブル(CDT)の実アドレス(CDTアド
レス))を格納する。なお、CDTアドレスが示すレコ
ードの長さは、b×u×CDTとなる。
An example of compression processing for multi-valued data will be described with reference to FIG. FIG. 3A is a 32 (bit) white map table (WMT) for the above-mentioned unit. If one unit is all white,
WMT is set to NULL (0xffffffff), and if there is one or more black dots, the 32-bit compressed data table (CDT) real address (CDT address) shown in FIG. 3B is stored. The length of the record indicated by the CDT address is b × u × CDT.

【0091】CDTは、u(line)×b(bit)分のビット
プレーンの幅t(dot)分のBWに対応し、前述の実施態
様の場合と同様にラングレンス圧縮を試み、もし圧縮可
能であったなら、bit29〜bit0にその圧縮コードを格
納する。また、もし圧縮可能であったなら、bit31=
1とし、bit30〜bit0に、図36の(c)に示すよう
にBWを格納する非圧縮データテーブルアドレス(UD
Taddress) を格納する。
The CDT corresponds to the BW of the width t (dot) of the bit plane of u (line) × b (bit), and the run-length compression is attempted in the same manner as in the above-mentioned embodiment, and the compression is possible. If so, the compressed code is stored in bits 29 to 0. If it is compressible, bit31 =
1 and the uncompressed data table address (UD) for storing BW in bits 30 to 0 as shown in (c) of FIG. 36.
Taddress) is stored.

【0092】このように、この発明によるデータ圧縮の
基本単位であるブロック(BW)とユニットの形状を変
更するだけで、多値画像に対するランダム・アクセス可
能な圧縮処理が可能になり、多値プリンタに適用するこ
とが可能になる。
As described above, by simply changing the block (BW), which is the basic unit of data compression according to the present invention, and the shape of the unit, it becomes possible to perform random accessible compression processing on a multi-valued image, and a multi-valued printer. Can be applied to.

【0093】〈フレーリストの形成について〉このよう
な多値プリンタ用の画像データの圧縮方式においても、
圧縮メモリ内の各ユニットへのBW単位での圧縮データ
の描画が繰り返された場合に、使用されなくなるCDT
およびUDTあるいはUCDRが発生し、それが次第に
増加するが、それが再利用されずに描画過程で無駄なメ
モリ領域となり、無視できないものになる。
<Formation of Flaist> In such a compression method of image data for a multi-valued printer as well,
CDT that is no longer used when the drawing of compressed data in units of BW to each unit in the compression memory is repeated
And UDT or UCDR occurs, and it increases gradually, but it is not reused and becomes a useless memory area in the drawing process, which cannot be ignored.

【0094】そこで、このような描画過程に発生する無
駄なメモリ領域を削減し、効率的なメモリ領域の割り当
てを行なえるようにするため、図37に示すようにフリ
ーリストを形成する。すなわち、描画処理の繰り返しに
より利用されなくなったCDTおよびUDT(あるいは
UCDR)の領域を、フリーCDTおよびフリーUDT
として、順次フリーCDTアドレスあるいはフリーUD
Tアドレスで連鎖状に連携させ(メモリ上の位置は離れ
ていてもかまわない)、最後のアドレスをNULLにし
ておく。
Therefore, in order to reduce the useless memory area generated in such a drawing process and enable efficient memory area allocation, a free list is formed as shown in FIG. That is, the areas of the CDT and UDT (or UCDR) that are no longer used due to the repetition of the drawing process are set as free CDT and free UDT.
As a free CDT address or free UD
The T addresses are linked in a chain (the positions on the memory may be separated), and the last address is set to NULL.

【0095】そして、圧縮処理時の描画過程で新たにC
DTおよびUDTが必要になった際に、このフリーリス
ト上を探索し、フリーリストにメモリ領域がある場合は
それを割り当てて再利用し、そうでない場合には新規に
メモリ領域を確保する。このようにすることにより、圧
縮処理時により効率的なメモリ領域割り当てを行なうこ
とができ、多値プリンタでも一層メモリ容量の削減を図
ることができる。
Then, C is newly added in the drawing process during the compression process.
When the DT and UDT are needed, the free list is searched, and if the free list has a memory area, it is allocated and reused. If not, a new memory area is secured. By doing so, more efficient memory area allocation can be performed during compression processing, and the memory capacity can be further reduced even in a multi-valued printer.

【0096】[0096]

【発明の効果】以上説明してきたように、この発明によ
れば、ページプリンタにおけるページメモリのメモリ容
量を画像データの圧縮によって削減し、低価格な高解像
度ページプリンタを提供することができる。また、ブロ
ック単位で2値画像の可逆圧縮を行なえるようにするこ
とと、圧縮の基本単位であるブロック及びユニット毎の
圧縮効率の一層の向上と、圧縮処理の繰り返しにより使
用されなくなったメモリ領域の有効利用を図ることなど
もできる。
As described above, according to the present invention, the memory capacity of the page memory in the page printer can be reduced by compressing the image data, and a low-cost high-resolution page printer can be provided. In addition, it is possible to perform lossless compression of a binary image in block units, further improve the compression efficiency of each block and unit that is the basic unit of compression, and a memory area that is no longer used due to repeated compression processing. You can also make effective use of.

【0097】さらに、白黒2値画像だけでなく、グレー
スケール・プリンタやカラープリンタ等の多値画像をプ
リントするページプリンタにおいても、描画データをブ
ロック単位で可逆圧縮可能にして、ページバッファのメ
モリ容量を大幅に削減し、低価格化を実現できる。
Further, in a page printer that prints not only a binary image of black and white but also a multi-valued image such as a grayscale printer or a color printer, the drawing data can be reversibly compressed in block units, and the memory capacity of the page buffer is increased. Can be significantly reduced, and the price can be reduced.

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

【図1】図2乃至図4に示したページプリンタ200に
おけるPSファイルの文書データを印刷するための処理
に係わる部分の機能構成を示すブロック図である。
FIG. 1 is a block diagram showing a functional configuration of a portion related to a process for printing document data of a PS file in page printer 200 shown in FIGS. 2 to 4.

【図2】この発明を適用したページプリンタを用いた画
像形成システムの構成例を示す図である。
FIG. 2 is a diagram showing a configuration example of an image forming system using a page printer to which the present invention is applied.

【図3】図2におけるページプリンタの一例を示す外観
図である。
FIG. 3 is an external view showing an example of the page printer in FIG.

【図4】同じくその内部機構の概略を示す縦断面図であ
る。
FIG. 4 is a longitudinal sectional view showing the outline of the internal mechanism of the same.

【図5】図4におけるコントローラ基板19の構成を示
すブロック図である。
5 is a block diagram showing a configuration of a controller board 19 in FIG.

【図6】図1に示した各部により1ページ分の印刷を行
なう際の動作フロー図である。
6 is an operation flow chart when printing one page by each unit shown in FIG. 1. FIG.

【図7】図1の圧縮メモリ23内の1ページ分のフレー
ムとそのユニット単位の分割状態示す図である。
7 is a diagram showing a frame for one page in the compression memory 23 of FIG. 1 and a division state of the unit.

【図8】その1ユニットを構成するブロックワード(B
W)群の説明図である。
FIG. 8 is a block word (B
It is explanatory drawing of W group.

【図9】図1の圧縮メモリ23内の1ページ分のバーチ
ュアルフレームとそれに設けられる各ユニットに対応し
たユニットレコードからなるホワイトマップテーブル
(WMT)の説明図である。
9 is an explanatory diagram of a white map table (WMT) including a virtual frame for one page in the compression memory 23 of FIG. 1 and unit records corresponding to respective units provided therein.

【図10】1つのユニットレコードとそこにアドレスが
格納される圧縮データテーブル(CDT)の構成を示す
図である。
FIG. 10 is a diagram showing the structure of one unit record and a compressed data table (CDT) in which addresses are stored.

【図11】CDTの1つの圧縮データレコード(CD
R)の構成を示す図である。
FIG. 11: One compressed data record (CD
It is a figure which shows the structure of R).

【図12】白ドットあるいは黒ドットのランレングスを
記述するハフマン・コードの説明図である。
FIG. 12 is an explanatory diagram of a Huffman code that describes the run length of white dots or black dots.

【図13】非圧縮データを格納する非圧縮データレコー
ド(UCDR)の説明図である。
FIG. 13 is an explanatory diagram of an uncompressed data record (UCDR) that stores uncompressed data.

【図14】圧縮コードの変換例を示す図である。FIG. 14 is a diagram showing a conversion example of a compressed code.

【図15】実際の画像の描画例を示す図である。FIG. 15 is a diagram showing an example of actual drawing of an image.

【図16】図15の画像データが描画された時の圧縮メ
モリとしてのRAM内のバッファの内容を表した説明図
である。
16 is an explanatory diagram showing the contents of a buffer in a RAM serving as a compression memory when the image data of FIG. 15 is drawn.

【図17】不要となる不使用記録の領域を再利用できる
ようにするための第1の方法を説明するためにあるCD
Tの変化を示す図である。
FIG. 17 is a CD for explaining a first method for enabling reuse of an unused unused recording area.
It is a figure which shows the change of T.

【図18】不要となる不使用記録の領域を再利用できる
ようにするための第2の方法を説明するためにあるCD
Tの変化を別領域に設けたカウントレジスタと共に示す
図である。
FIG. 18 is a CD for explaining a second method for enabling reuse of an unused unused recording area.
It is a figure which shows the change of T with the count register provided in another area | region.

【図19】不要となる不使用記録の領域を再利用できる
ようにするための第3の方法を説明するためにあるCD
Tの変化を別領域に設けたカウントレジスタと共に示す
図である。
FIG. 19 is a CD for explaining a third method for enabling reuse of an unused unused recording area.
It is a figure which shows the change of T with the count register provided in another area | region.

【図20】不要となる不使用記録の領域を再利用できる
ようにするための第4の方法を説明するためにあるCD
Tの変化を別領域に設けた第1,第2のカウントレジス
タと共に示す図である。
FIG. 20 is a CD for explaining a fourth method for making it possible to reuse an unused unused recording area.
It is a figure which shows the change of T with the 1st, 2nd count register provided in another area | region.

【図21】不要となる不使用記録の領域を再利用できる
ようにするための第5の方法を説明するためにあるCD
Tの変化を示す図である。
FIG. 21 is a CD for explaining a fifth method for making it possible to reuse an unused unused recording area.
It is a figure which shows the change of T.

【図22】不要となる不使用記録の領域を再利用できる
ようにするための第6の方法を説明するためにあるCD
Tの変化を別領域に設けたアドレスレジスタと共に示す
図である。
FIG. 22 is a CD for explaining a sixth method for enabling reuse of an unused unused recording area.
It is a figure which shows the change of T with the address register provided in another area | region.

【図23】不要となる不使用記録の領域を再利用できる
ようにするための第7の方法を説明するためにあるCD
Tの変化を別領域に設けたアドレスレジスタと共に示す
図である。
FIG. 23 is a CD for explaining a seventh method for enabling reuse of an unused unused recording area.
It is a figure which shows the change of T with the address register provided in another area | region.

【図24】不要となる不使用記録の領域を再利用できる
ようにするための第8の方法を説明するためのスクラッ
チパッドメモリ内の不使用記録領域の状態を示す図であ
る。
FIG. 24 is a diagram showing a state of an unused recording area in a scratch pad memory for explaining an eighth method for enabling reuse of an unnecessary unused recording area.

【図25】図24の状態から不使用記録Jが1つ増えた
状態を示す図である。
25 is a diagram showing a state in which the number of unused records J is increased by one from the state of FIG. 24.

【図26】図1に示した圧縮部22のハードウエア構成
例を示すブロック図である。
FIG. 26 is a block diagram showing a hardware configuration example of a compression unit 22 shown in FIG.

【図27】図5に示したCPU201による画像データ
の描画に係わる処理ルーチンのフロー図である。
27 is a flowchart of a processing routine relating to drawing of image data by the CPU 201 shown in FIG.

【図28】圧縮部22による可変長可逆圧縮方式で使用
するメモリの内訳を示す説明図である。
28 is an explanatory diagram showing a breakdown of a memory used in the variable-length lossless compression method by the compression unit 22. FIG.

【図29】圧縮処理方法判別フラグを有するWMTの説
明図である。
FIG. 29 is an explanatory diagram of a WMT having a compression processing method determination flag.

【図30】この発明によるCDT圧縮を行なうか否かの
管理の説明図である。
FIG. 30 is an explanatory diagram of management of whether or not to perform CDT compression according to the present invention.

【図31】この発明による圧縮データ描画に伴うWMT
の内容変化の例を示す説明図である。
FIG. 31 is a WMT involved in drawing compressed data according to the present invention.
It is explanatory drawing which shows the example of the content change of.

【図32】圧縮率を高くした描画データの圧縮処理の一
例を示すフロー図である。
FIG. 32 is a flowchart showing an example of compression processing of drawing data with a high compression rate.

【図33】圧縮率を高くした描画データの圧縮処理の他
の例を示すフロー図である。
FIG. 33 is a flowchart showing another example of compression processing of drawing data with a high compression rate.

【図34】この発明を多値プリンタあるいはカラープリ
ンタに適用する場合のブロックワード(BW)及びユニ
ットの形状例を示す図である。
FIG. 34 is a diagram showing a shape example of a block word (BW) and a unit when the present invention is applied to a multi-valued printer or a color printer.

【図35】同じく、ユニットの他の構成例を示す図であ
る。
FIG. 35 is a diagram similarly showing another example of the configuration of the unit.

【図36】同じくその描画データの圧縮処理を説明する
ための図である。
FIG. 36 is a diagram for explaining the compression process of the drawing data.

【図37】利用されなくなったCDTテーブルおよびU
DTテーブルのフリーリストの形成例を示す図である。
FIG. 37: CDT table and U that are no longer used
It is a figure which shows the example of formation of the free list of a DT table.

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

10:感光体ドラム 11:帯電部 12:光書込部 13:現像部 14:転写部 15:定着部 19:コントローラ基板 20:エンジンドライバ基板 21:ホストスクリプト(PS)インタープリタ 22:圧縮部 23:圧縮メモリ 24:非圧縮メモリ 25:伸長部 26:2値多値変換処理部 100:パーソナルコンピュータ 101:プリンタドライバ 200:ページプリンタ 201:CPU 206:RAM 208:プリンタエンジン 10: Photoconductor drum 11: Charging part 12: Optical writing part 13: Developing part 14: Transfer part 15: Fixing part 19: Controller board 20: Engine driver board 21: Host script (PS) interpreter 22: Compressing part 23: Compressed memory 24: Non-compressed memory 25: Decompression unit 26: Binary / multi-value conversion processing unit 100: Personal computer 101: Printer driver 200: Page printer 201: CPU 206: RAM 208: Printer engine

───────────────────────────────────────────────────── フロントページの続き (72)発明者 下前 睦夫 東京都大田区中馬込1丁目3番6号 株式 会社リコー内 (72)発明者 小野塚 誠 東京都大田区中馬込1丁目3番6号 株式 会社リコー内 (72)発明者 大堀 顕 東京都大田区中馬込1丁目3番6号 株式 会社リコー内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Mutsuo Shiomae 1-3-6 Nakamagome, Ota-ku, Tokyo Inside Ricoh Co., Ltd. (72) Makoto Onozuka 1-3-6 Nakamagome, Ota-ku, Tokyo In Ricoh Co., Ltd. (72) Inventor Akira Ohori 1-3-6 Nakamagome, Ota-ku, Tokyo In Ricoh Co., Ltd.

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 ページプリンタにおいて、描画する2値
画像データに対して主走査方向にtドットで構成される
ブロックと主走査方向あるいは副走査方向にuブロック
で構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画されたデータを復元して、それを新たな描画データに
書き替え、その描画データを上記各ステツプの処理によ
って圧縮して前記ページバッファ内の該ブロックに描画
する可変長可逆圧縮処理を各ブロック毎に施し、 第1の非圧縮データレコードがあるブロックにおいて、
新たな描画により該ブロックに描画するデータが圧縮が
可能になり、さらなる描画により再度圧縮不能になって
新たな第2の非圧縮データレコードが発生した場合、最
初の第1の非圧縮データレコードにフラグ情報を格納す
ることを特徴とする画像データの可逆圧縮処理方法。
1. In a page printer, two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction for binary image data to be drawn. , The page buffer necessary for drawing the image data to be printed at a predetermined resolution is divided into the above-mentioned units, and it is checked whether or not the drawing data is all white for each unit. Storing in a white map table (WMT) of a collection of bit unit records, and when the drawing data of the unit is not all white, an n-bit compressed data record (CDR ), A compressed data table (CDT) in which u blocks are collected, and the unit is configured there Storing a compression processing result for each of u blocks, and t-bit uncompressed data record (UCDR) in the address area specified in the compressed data table when the compression processing for each block is impossible. ) Is prepared, and the image data of the block is stored as it is, the image data to be drawn corresponds to which block of the divided unit, and the image data previously drawn in the block is calculated. Variable length reversible compression processing for reconstructing the reconstructed data, rewriting it to new drawing data, compressing the drawing data by the processing of each step described above, and drawing in the block in the page buffer for each block. And in the block with the first uncompressed data record,
If the new drawing allows the data to be drawn in the block to be compressed, and further drawing makes the data incompressible again and a new second uncompressed data record is generated, the first first uncompressed data record is written. A lossless compression processing method of image data, characterized by storing flag information.
【請求項2】 ページプリンタにおいて、描画する2値
画像データに対して主走査方向にtドットで構成される
ブロックと主走査方向あるいは副走査方向にuブロック
で構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 非圧縮データレコード(UCDR)があるブロックにお
いて、新たな描画により該ブロックに描画するデータが
圧縮可能になった場合、読み書き可能なカウントレジス
タのカウント値を増やすことを特徴とする画像データの
可逆圧縮処理方法。
2. In a page printer, two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction for binary image data to be drawn. , The page buffer necessary for drawing the image data to be printed at a predetermined resolution is divided into the above-mentioned units, and it is checked whether or not the drawing data is all white for each unit. A step of storing in a white map table (WMT) of a collection of bit unit records, and an n-bit compressed data record (CDR) in an address area specified by the white map table when the drawing data of the unit is not all white ), A compressed data table (CDT) in which u blocks are collected, and the unit is configured there Storing a compression processing result for each of u blocks, and t-bit uncompressed data record (UCDR) in the address area specified in the compressed data table when the compression processing for each block is impossible. ) Is prepared, and the image data of the block is stored as it is, the image data to be drawn corresponds to which block of the divided unit, and the image data previously drawn in the block is calculated. The variable-length lossless compression process of restoring the image data that has been restored, rewriting it to new drawing data, compressing the drawing data by the processing of each step described above, and drawing in the block in the page buffer for each block. In a block with uncompressed data record (UCDR), the data to be drawn in the block is compressed by new drawing. If enabled, lossless compression image data processing method, characterized in that to increase the count value of the read-write count register.
【請求項3】 請求項2記載の画像データの可逆圧縮処
理方法において、非圧縮データレコード(UCDR)が
あるブロックにおいて、新たな描画により該ブロックに
描画するデータが圧縮可能になり、さらなる描画により
該ブロックに描画するデータが再度圧縮不可能になって
新たな非圧縮データレコードが発生した場合、前記カウ
ントレジスタのカウント値を減らすことを特徴とする画
像データの可逆圧縮処理方法。
3. The lossless compression processing method for image data according to claim 2, wherein in a block having an uncompressed data record (UCDR), data to be drawn in the block can be compressed by new drawing, and further drawing can be performed. A reversible compression processing method for image data, comprising reducing the count value of the count register when the data to be drawn in the block becomes incompressible again and a new non-compressed data record occurs.
【請求項4】 請求項2記載の画像データの可逆圧縮処
理方法において、前記非圧縮データレコード(UCD
R)があるブロックにおいて、新たな描画により該ブロ
ックに描画するデータが圧縮不可能になった場合、前記
カウントレジスタとは別のカウントレジスタのカウント
値を増やすことを特徴とする画像データの可逆圧縮処理
方法。
4. The lossless compression processing method for image data according to claim 2, wherein the uncompressed data record (UCD).
R) In a certain block, if the data to be drawn in the block becomes incompressible due to new drawing, the count value of a count register different from the count register is increased, and reversible compression of image data. Processing method.
【請求項5】 ページプリンタにおいて、描画する2値
画像データに対して主走査方向にtドットで構成される
ブロックと主走査方向あるいは副走査方向にuブロック
で構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 第1の非圧縮データレコード(UCDR)があるブロッ
クにおいて、新たな描画により該ブロックに描画するデ
ータが圧縮可能になり、さらなる描画により再度圧縮不
可能になって新たな第2の非圧縮データレコードが発生
する一方、第3の非圧縮データレコード(UCDR)が
あるブロックにおいて、新たな描画により該ブロックに
描画するデータが圧縮可能となり、さらなる描画により
再度圧縮不可能になって新たな第4の非圧縮データレコ
ードが発生し、且つ前記第1と第3の非圧縮データレコ
ードが連続アドレスの場合、前記第1の非圧縮データレ
コードに連続フラグ情報を格納することを特徴とする画
像データの可逆圧縮処理方法。
5. In a page printer, two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction for binary image data to be drawn. , The page buffer necessary for drawing the image data to be printed at a predetermined resolution is divided into the above-mentioned units, and it is checked whether or not the drawing data is all white for each unit. A step of storing in a white map table (WMT) of a collection of bit unit records, and an n-bit compressed data record (CDR) in an address area specified by the white map table when the drawing data of the unit is not all white ), A compressed data table (CDT) in which u blocks are collected, and the unit is configured there Storing a compression processing result for each of u blocks, and t-bit uncompressed data record (UCDR) in the address area specified in the compressed data table when the compression processing for each block is impossible. ) Is prepared, and the image data of the block is stored as it is, the image data to be drawn corresponds to which block of the divided unit, and the image data previously drawn in the block is calculated. The variable-length lossless compression process of restoring the image data that has been restored, rewriting it to new drawing data, compressing the drawing data by the processing of each step described above, and drawing in the block in the page buffer for each block. In the block having the first uncompressed data record (UCDR), the data to be drawn in the block is newly drawn. Becomes uncompressible by further drawing and a new second uncompressed data record is generated, while a new drawing is performed in the block having the third uncompressed data record (UCDR). When the data to be drawn in the block can be compressed and cannot be compressed again due to further drawing, and a new fourth uncompressed data record is generated, and the first and third uncompressed data records have consecutive addresses. A lossless compression processing method for image data, characterized in that consecutive flag information is stored in the first uncompressed data record.
【請求項6】 ページプリンタにおいて、描画する2値
画像データに対して主走査方向にtドットで構成される
ブロックと主走査方向あるいは副走査方向にuブロック
で構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 第1の非圧縮データレコード(UCDR)があるブロッ
クにおいて、新たな描画により該ブロックに描画するデ
ータが圧縮可能になり、さらなる描画により再度圧縮不
可能になって新たな第2の非圧縮データレコードが発生
した場合、前記第1の非圧縮データレコードのアドレス
情報を、書き込み可能なアドレスレジスタに格納するこ
とを特徴とする画像データの可逆圧縮処理方法。
6. In a page printer, two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction for binary image data to be drawn. , The page buffer necessary for drawing the image data to be printed at a predetermined resolution is divided into the above-mentioned units, and it is checked whether or not the drawing data is all white for each unit. Storing in a white map table (WMT) of a collection of bit unit records, and when the drawing data of the unit is not all white, an n-bit compressed data record (CDR ), A compressed data table (CDT) in which u blocks are collected, and the unit is configured there Storing a compression processing result for each of u blocks, and t-bit uncompressed data record (UCDR) in the address area specified in the compressed data table when the compression processing for each block is impossible. ) Is prepared, and the image data of the block is stored as it is, the image data to be drawn corresponds to which block of the divided unit, and the image data previously drawn in the block is calculated. The variable-length lossless compression process of restoring the image data that has been restored, rewriting it to new drawing data, compressing the drawing data by the processing of each step described above, and drawing in the block in the page buffer for each block. In the block having the first uncompressed data record (UCDR), the data to be drawn in the block is newly drawn. Becomes compressible and becomes incompressible again by further drawing and a new second uncompressed data record is generated, the address information of the first uncompressed data record is stored in the writable address register. A lossless compression processing method for image data, comprising:
【請求項7】 請求項6記載の画像データの可逆圧縮処
理方法において、第3の非圧縮データレコード(UCD
R)が発生した時に、前記アドレスレジスタの指すアド
レスである第1の非圧縮データレコードに該第3の非圧
縮データレコードを格納することを特徴とする画像デー
タの可逆圧縮処理方法。
7. The lossless compression processing method for image data according to claim 6, wherein a third uncompressed data record (UCD) is used.
R), the third uncompressed data record is stored in the first uncompressed data record which is the address pointed to by the address register.
【請求項8】 請求項6記載の画像データの可逆圧縮処
理方法において、第3の非圧縮データレコード(UCD
R)があるブロックにおいて、新たな描画により該ブロ
ックに描画するデータが圧縮可能になり、さらなる描画
により再度圧縮不可能になって新たな第4の非圧縮デー
タレコードが発生した場合、前記第3の非圧縮データレ
コードに前記第1の非圧縮データレコードのアドレスを
格納し、前記アドレスレジスタに前記第3の非圧縮デー
タレコードのアドレスを格納し、前記第1のUCDRに
は終端情報を格納することを特徴とする画像データの可
逆圧縮処理方法。
8. The method of lossless compression processing of image data according to claim 6, wherein a third uncompressed data record (UCD) is used.
R) In a block, if data to be drawn in the block can be compressed by new drawing and becomes incompressible again by further drawing and a new fourth uncompressed data record occurs, the third Stores the address of the first uncompressed data record in the uncompressed data record, stores the address of the third uncompressed data record in the address register, and stores termination information in the first UCDR. A lossless compression processing method of image data, characterized by the above.
【請求項9】 ページプリンタにおいて、描画する2値
画像データに対して主走査方向にtドットで構成される
ブロックと主走査方向あるいは副走査方向にuブロック
で構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 上記可変長圧縮処理中に前記ページバッファの容量が不
足した場合、前記ユニット毎に固定長圧縮処理に切り替
えることを特徴とする画像データの可逆圧縮処理方法。
9. In a page printer, two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction for binary image data to be drawn. , The page buffer necessary for drawing the image data to be printed at a predetermined resolution is divided into the above-mentioned units, and it is checked whether or not the drawing data is all white for each unit. Storing in a white map table (WMT) of a collection of bit unit records, and when the drawing data of the unit is not all white, an n-bit compressed data record (CDR ), A compressed data table (CDT) in which u blocks are collected, and the unit is configured there Storing a compression processing result for each of u blocks, and t-bit uncompressed data record (UCDR) in the address area specified in the compressed data table when the compression processing for each block is impossible. ) Is prepared, and the image data of the block is stored as it is, the image data to be drawn corresponds to which block of the divided unit, and the image data previously drawn in the block is calculated. The variable-length lossless compression process of restoring the image data that has been restored, rewriting it to new drawing data, compressing the drawing data by the processing of each step described above, and drawing in the block in the page buffer for each block. When the capacity of the page buffer becomes insufficient during the variable length compression process, switch to fixed length compression process for each unit. Lossless compression method of the image data, characterized in that.
【請求項10】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する処理を各ブロック毎に施す、可変長可逆圧縮処
理と、固定長圧縮処理のいずれが適しているかを前記ユ
ニット単位で判別し、その判別結果に基づいて該ユニッ
ト単位で圧縮処理を切り替えて実施することを特徴とす
る画像データの可逆圧縮処理方法。
10. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. The variable length reversible compression process or the fixed length compression process is suitable, in which each block is subjected to the process of drawing the drawing data and compressing the drawing data by the process of each step and drawing the block in the block in the page buffer. Whether or not the compression process is performed for each unit, and the compression process is switched for each unit based on the determination result. Lossless compression method that the image data.
【請求項11】 請求項9又は10に記載の画像データ
の可変長可逆圧縮処理方法において、圧縮処理の切り替
え時に、使用されなくなった圧縮データレコードや非圧
縮データレコードを前記固定長圧縮処理で使用可能にす
るガーベージコレクションを実行することを特徴とする
画像データの可逆圧縮処理方法。
11. The variable-length lossless compression processing method for image data according to claim 9 or 10, wherein compressed data records and non-compressed data records that are no longer used are used in the fixed-length compression processing when switching compression processing. A lossless compression processing method of image data, characterized by executing a garbage collection that enables it.
【請求項12】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 上記可変長可逆圧縮処理中に、あるユニット内の非圧縮
データレコード(UCDR)の数が圧縮データテーブル
(CDT)内のブロック数の半分以上になった場合、該
ユニット内の全てのブロックを非圧縮データレコードに
変換し、そのユニットに該当する圧縮データテーブルを
削除して、前記ホワイトマップテーブル(WMT)内の
該当するユニットのレコードにフラグ情報を格納するこ
とを特徴とする画像データの可逆圧縮処理方法。。
12. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. , The drawing data is compressed by the processing of each step and the variable length lossless compression processing of drawing the block in the page buffer is performed for each block, and a unit during the variable length lossless compression processing is performed. If the number of uncompressed data records (UCDR) in the compressed data table (CDT) is more than half the number of blocks in the compressed data table (CDT), Converting all blocks in a unit to uncompressed data records, deleting the compressed data table corresponding to that unit, and storing the flag information in the record of the corresponding unit in the white map table (WMT). A method for lossless compression processing of characteristic image data. .
【請求項13】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 上記圧縮処理中に圧縮データレコード(CDR)が発生
したユニットにおいて、全てが白データになった場合、
そのユニットに該当する圧縮データテーブルを削除し
て、前記ホワイトマップテーブル内の該当するユニット
レコードを初期化することを特徴とする画像データの可
逆圧縮処理方法。
13. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. , The drawing data is compressed by the processing of each step described above, and variable length lossless compression processing of drawing in the block in the page buffer is performed for each block, and a compressed data record (CDR) is generated during the compression processing. When all the white data is generated in the unit where
A lossless compression processing method for image data, characterized in that the compressed data table corresponding to the unit is deleted and the corresponding unit record in the white map table is initialized.
【請求項14】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 上記圧縮処理中に圧縮データレコード(CDR)が発生
したユニットにおいて、全てが黒データになった場合、
そのユニットに該当する圧縮データテーブルを削除し
て、前記ホワイトマップテーブル内の該当するユニット
レコードに全黒情報を格納することを特徴とする画像デ
ータの可逆圧縮処理方法。
14. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. , The drawing data is compressed by the processing of each step described above, and variable length lossless compression processing of drawing in the block in the page buffer is performed for each block, and a compressed data record (CDR) is generated during the compression processing. In the unit where is generated, if all become black data,
A lossless compression processing method for image data, characterized in that the compressed data table corresponding to the unit is deleted and all black information is stored in the corresponding unit record in the white map table.
【請求項15】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施し、 上記圧縮処理中に圧縮データレコード(CDR)が発生
したユニットにおいて、全てがあるpビットのビットパ
ターンになった場合、そのユニットに該当する圧縮デー
タテーブルを削除して、前記ホワイトマップテーブル内
の該当するユニットレコードにパターンフラグ情報及び
そのパターンビット数及びパターン情報を格納すること
を特徴とする画像データの可逆圧縮処理方法。
15. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. , The drawing data is compressed by the processing of each step described above, and variable length lossless compression processing of drawing in the block in the page buffer is performed for each block, and a compressed data record (CDR) is generated during the compression processing. In the unit where is generated, if all have a p-bit bit pattern, the compressed data corresponding to that unit A lossless compression processing method of image data, characterized in that the pattern table is deleted and the pattern flag information and the number of pattern bits and the pattern information are stored in a corresponding unit record in the white map table.
【請求項16】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施すと共
に、 前記ブロックに対応するフィルパターンをあらかじめ複
数用意しておき、上記ブロック毎の圧縮処理ができない
場合にはそのパターンを参照することを特徴とする画像
データの可逆圧縮処理方法。
16. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. , The drawing data is compressed by the processing of each step described above, and the variable-length lossless compression processing of drawing in the block in the page buffer is performed for each block, and a plurality of fill patterns corresponding to the blocks are previously stored. The feature is that if the compression processing for each block cannot be performed, the pattern is referred to in advance. A method for lossless compression processing of image data.
【請求項17】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施すと共
に、 上記ブロック毎の圧縮処理ができない場合に、そのブロ
ックのドットパターンを記憶しておき、その後の圧縮処
理中に同じパターンが出現した場合には、そのドットパ
ターンが格納されているアドレスを参照することによっ
て圧縮処理することを特徴とする請求項1に記載の画像
圧縮方法。
17. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. If the variable length reversible compression processing is performed for each block and the drawing data is compressed by the processing of each step described above and is drawn in the block in the page buffer, the compression processing for each block cannot be performed. , The dot pattern of that block is stored, and if the same pattern appears during the subsequent compression processing, The image compression method according to claim 1, wherein the compression processing is performed by referring to an address in which the input pattern is stored.
【請求項18】 ページプリンタにおいて、描画する2
値画像データに対して主走査方向にtドットで構成され
るブロックと主走査方向あるいは副走査方向にuブロッ
クで構成されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度に描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をuブロック分集めた
圧縮データテーブル(CDT)を用意し、そこに該ユニ
ットを構成するu個分のブロック毎の圧縮処理結果を格
納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施すと共
に、 上記ブロック毎の圧縮処理ができない場合に、そのブロ
ックのドットパターンに対してある種の論理演算を施
し、その結果を圧縮処理できる場合は圧縮コードに変換
し、伸長の際には前記論理演算の逆の論理演算処理を施
すことを特徴とする画像データの可逆圧縮処理方法。
18. A page printer for drawing 2
Two basic units of a block composed of t dots in the main scanning direction and a unit composed of u blocks in the main scanning direction or the sub scanning direction are set for the value image data, and the image data to be printed has a predetermined resolution. The page buffer necessary for drawing is divided into units, and it is checked whether the drawing data is all white for each unit. The result is a white map table (WMT) of a collection of m-bit unit records. ), When the drawing data of the unit is not all white, a compressed data table (CDT) is created by collecting n blocks of compressed data records (CDR) in the address area specified by the white map table for u blocks. ) Is prepared, and the compression processing result for each of u blocks constituting the unit is stored therein. Step, and when the compression processing for each block is impossible, a t-bit uncompressed data record (UCDR) is prepared in the address area specified by the compressed data table, and the image data of the block is directly stored therein. Storing the image data to be drawn, calculating which block of which unit the divided image data corresponds to, restoring the image data previously drawn in that block, and using it as new drawing data. If the variable length reversible compression processing is performed for each block and the drawing data is compressed by the processing of each step described above and is drawn in the block in the page buffer, the compression processing for each block cannot be performed. , If a certain kind of logical operation is applied to the dot pattern of the block and the result can be compressed, A reversible compression processing method for image data, which comprises performing a logical operation process that is the reverse of the above-described logical operation upon conversion and decompression.
【請求項19】 ページプリンタにおいて、描画する多
値画像データに対して主走査方向tドットと多値データ
のビットプレーン分のbビットで構成されるブロック
と、主走査方向あるいは副走査方向にuブロックで構成
されるユニットの2つの基本単位を設定し、 プリントする画像データを所定の解像度で描画するため
に必要なページバッファを前記ユニット単位に分割し、 そのユニット毎に描画データが全白であるかどうかをチ
ェックし、その結果をmビットのユニットレコードの集
まりのホワイトマップテーブル(WMT)に保存するス
テップと、 該ユニットの描画データが全白でない場合に、前記ホワ
イトマップテーブルで指定されるアドレス領域にnビッ
トの圧縮データレコード(CDR)をu×bブロック分集
めた圧縮データテーブル(CDT)を用意し、そこに該
ユニットを構成するu×b個分のブロック毎の圧縮処理
結果を格納するステップと、 前記ブロック毎の圧縮処理が不可能な場合に、前記圧縮
データテーブルで指定されるアドレス領域にtビットの
非圧縮データレコード(UCDR)を用意し、そこに該
ブロックの画像データをそのまま格納するステップとを
有し、 描画すべき画像データが分割されたどのユニットのどの
ブロックに該当するかを算出し、そのブロックに以前描
画された画像データを復元して、それを新たな描画デー
タに書き替え、その描画データを上記各ステツプの処理
によって圧縮して前記ページバッファ内の該ブロックに
描画する可変長可逆圧縮処理を各ブロック毎に施す画像
データの可逆圧縮処理方法。
19. In a page printer, a block composed of t dots in the main scanning direction and b bits corresponding to a bit plane of the multivalued data and u in the main scanning direction or sub-scanning direction for the multivalued image data to be drawn. Set the two basic units of the unit composed of blocks, divide the page buffer required for drawing the image data to be printed at a predetermined resolution into the above-mentioned units, and draw the drawing data in all white. Checking whether there is any, and saving the result in a white map table (WMT) of a collection of m-bit unit records; A compressed data record in which n × compressed data records (CDRs) of u × b blocks are collected in the address area (CDT) is prepared, and the compression processing result for each of the u × b blocks forming the unit is stored therein; and when the compression processing for each block is impossible, the compressed data table Prepare a t-bit uncompressed data record (UCDR) in the address area specified by, and store the image data of the block as it is, in which unit the image data to be drawn is divided. Calculates which block it corresponds to, restores the image data previously drawn in that block, rewrites it with new drawing data, compresses the drawing data by the processing of each of the above steps, and compresses it in the page buffer. A lossless compression processing method for image data, in which variable length lossless compression processing is performed for each block in each block.
【請求項20】 請求項19記載の画像データの可逆圧
縮処理方法において、前記可変長可逆圧縮処理の繰り返
しにより利用されなくなった圧縮データテーブル(CD
T)および非圧縮データレコード(UCDR)のメモリ
領域のフリーリストを形成し、圧縮データテーブル(C
DT)および非圧縮データレコード(UCDR)が必要
になった際にそのフリーリスト上を探索し、該フリーリ
ストにメモリ領域がある場合はそれを割り当てて再利用
し、該フリーリストにメモリ領域がない場合には新規に
メモリ領域を確保することを特徴とする画像データの可
逆圧縮処理方法。
20. The lossless compression processing method for image data according to claim 19, wherein a compressed data table (CD which is no longer used due to the repetition of the variable length lossless compression processing).
T) and the uncompressed data record (UCDR) memory area free list is formed and the compressed data table (C
DT) and uncompressed data record (UCDR) are searched on the free list, and if there is a memory area in the free list, it is allocated and reused. A method for lossless compression processing of image data, characterized by newly allocating a memory area when there is no such data.
JP8045253A 1996-03-01 1996-03-01 Reversible compression processing method in page printer Pending JPH09247462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8045253A JPH09247462A (en) 1996-03-01 1996-03-01 Reversible compression processing method in page printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8045253A JPH09247462A (en) 1996-03-01 1996-03-01 Reversible compression processing method in page printer

Publications (1)

Publication Number Publication Date
JPH09247462A true JPH09247462A (en) 1997-09-19

Family

ID=12714122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8045253A Pending JPH09247462A (en) 1996-03-01 1996-03-01 Reversible compression processing method in page printer

Country Status (1)

Country Link
JP (1) JPH09247462A (en)

Similar Documents

Publication Publication Date Title
EP0887763B1 (en) Method and apparatus for building bitmap data in a printer
US6611347B1 (en) Print control apparatus, print control method, storage medium, and computer readable program performing a form overlay process
JPH06290007A (en) Method for decreasing memory requirement for raster generator and printer in printer
US6734989B2 (en) Image output apparatus and method
US6304336B1 (en) Output control device and image processing apparatus and method and storage medium
US6317217B1 (en) Printing system and printing control method
JP3792823B2 (en) Printing apparatus and printing control apparatus
JPH10147017A (en) Printing device and data control method
EP0398681B1 (en) Output apparatus
US6310693B1 (en) Printing control apparatus and method, and printing system for reducing processing overhead
JPH09261457A (en) Print controller, data processing method for it and storage medium storing program readable by computer
JPH08278862A (en) Image output device and image processing method
JP3685234B2 (en) Image processing device
JP3581470B2 (en) Data processing method in page printer and page printer
JPH09270919A (en) Data compression method in page printer
JPH09247462A (en) Reversible compression processing method in page printer
JP3611921B2 (en) Data compression / decompression method and page printer in page printer
JPH11203070A (en) Printer controller
JP3606985B2 (en) Data compression / decompression method and page printer in page printer
JPH08307695A (en) Page printer and its data processing method
JPH09248943A (en) Data compressing method for page printer
JPH08307677A (en) Page printer able to print out multi-value image
JPH09252409A (en) Data compression method in page printer
JPH0993425A (en) Image forming device
JPH1023272A (en) Data compression method and expansion method in page printer