Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3355909B2 - Printer control method and apparatus - Google Patents
[go: Go Back, main page]

JP3355909B2 - Printer control method and apparatus - Google Patents

Printer control method and apparatus

Info

Publication number
JP3355909B2
JP3355909B2 JP05556496A JP5556496A JP3355909B2 JP 3355909 B2 JP3355909 B2 JP 3355909B2 JP 05556496 A JP05556496 A JP 05556496A JP 5556496 A JP5556496 A JP 5556496A JP 3355909 B2 JP3355909 B2 JP 3355909B2
Authority
JP
Japan
Prior art keywords
data
compressed data
uncompressed
read
compressed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP05556496A
Other languages
Japanese (ja)
Other versions
JPH09220832A (en
Inventor
純 福井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP05556496A priority Critical patent/JP3355909B2/en
Publication of JPH09220832A publication Critical patent/JPH09220832A/en
Application granted granted Critical
Publication of JP3355909B2 publication Critical patent/JP3355909B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Memory System (AREA)
  • Storing Facsimile Image Data (AREA)
  • Dot-Matrix Printers And Others (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はプリンタ制御方法お
よび装置に係り、特に、非圧縮データを圧縮してメモリ
に蓄積した後に改めて読み出し、これを伸長してプリン
タ装置へ出力するプリンタ制御方法および装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control method and apparatus, and more particularly, to a printer control method and apparatus for compressing uncompressed data, storing the compressed data in a memory, reading it out again, decompressing it, and outputting it to a printer. About.

【0002】[0002]

【従来の技術】複数枚の原稿を順次読み取って各ページ
を必要枚数づつコピー出力する場合、従来は同一原稿を
必要なコピー枚数分だけ繰り返し読み取っていたが、近
年では例えば特公平7−53454号公報に記載されて
いるように、複数枚の原稿を順番に1回づつ読み取って
画像メモリに蓄積し、この蓄積された画像データをメモ
リから順番に繰り返し読み出すことで必要枚数のコピー
出力を1回の読取り操作だけで行えるようにしたプリン
タ装置が普及している。
2. Description of the Related Art In a case where a plurality of originals are sequentially read and each page is copied by a required number of copies, conventionally, the same original is repeatedly read for the required number of copies, but in recent years, for example, Japanese Patent Publication No. 7-53454. As described in the official gazette, a plurality of originals are read one by one in order and stored in an image memory, and the stored image data is repeatedly read out from the memory in order to copy the required number of copies once. 2. Description of the Related Art A printer device that can be performed only by reading a document has been widely used.

【0003】しかしながら、画像データは情報量が多い
ために複数枚のページイメージを蓄積しようとすると必
要なメモリ容量が膨大なものとなってしまう。このた
め、例えば特開平1−209169号公報では、画像デ
ータを圧縮する圧縮器およびこれを伸長する伸長器を設
け、メモリに蓄積する画像データは圧縮器で予め圧縮し
ておくことで蓄積容量を低減する一方、メモリから読み
出した圧縮データは伸長器で元の画像データに復元して
からプリンタへ出力するページプリンタ印刷制御装置が
提案されている。
However, since image data has a large amount of information, storing a plurality of page images requires an enormous memory capacity. For this reason, for example, in JP-A-1-209169, a compressor for compressing image data and a decompressor for expanding the image data are provided, and the image data to be stored in the memory is compressed in advance by the compressor to reduce the storage capacity. On the other hand, there has been proposed a page printer print control device in which compressed data read from a memory is restored to original image data by a decompressor and then output to a printer.

【0004】このような構成では、非圧縮のビットマッ
プデータを一時記憶する第1の記憶領域と、当該非圧縮
データを圧縮装置で圧縮した後の圧縮データを記憶する
第2の記憶領域とが必要となる。また、圧縮装置で圧縮
しても必ずしも容量が減少するとは限らず、ビットマッ
プデータのパターンによって圧縮データの容量が非圧縮
データの容量を上回ってしまう場合もある。
In such a configuration, a first storage area for temporarily storing uncompressed bitmap data and a second storage area for storing compressed data obtained by compressing the uncompressed data by a compression device. Required. Further, even if compression is performed by the compression device, the capacity does not always decrease, and the capacity of compressed data may exceed the capacity of non-compressed data depending on the pattern of bitmap data.

【0005】一方、圧縮データの容量が非圧縮データの
容量を上回ってしまう場合の圧縮率(圧縮データ/非圧
縮データ)の最悪値は圧縮方法ごとに予め定まってお
り、例えば“LZ77”方式では最悪圧縮率として9/
8が保障されている。
On the other hand, the worst value of the compression ratio (compressed data / uncompressed data) when the capacity of the compressed data exceeds the capacity of the uncompressed data is predetermined for each compression method. For example, in the “LZ77” system, The worst compression ratio is 9 /
8 is guaranteed.

【0006】したがって、非圧縮データの容量がDであ
る場合、第1および第2の記憶領域のための記憶容量と
しては(1+9/8)Dが必要不可欠でった。
Accordingly, when the capacity of the uncompressed data is D, (1 + 9/8) D is indispensable as the storage capacity for the first and second storage areas.

【0007】[0007]

【発明が解決しようとする課題】上記した従来技術で
は、第1の記憶領域に要求される記憶容量と第2の記憶
領域に要求される記憶容量との合計容量が画像メモリに
要求されるメモリ容量となるため、大きなメモリ容量が
必要となってしまういう問題があった。
In the above-mentioned prior art, the total capacity of the storage capacity required for the first storage area and the storage capacity required for the second storage area is equal to the memory capacity required for the image memory. There is a problem that a large memory capacity is required because of the large capacity.

【0008】本発明の目的は、上記した従来技術の問題
点を解決し、非圧縮のビットマップデータを圧縮して記
憶する際に必要なメモリ容量を低減できるようにしたプ
リンタ制御方法および装置を提供することにある。
An object of the present invention is to provide a printer control method and apparatus which solves the above-mentioned problems of the prior art and which can reduce the memory capacity required when compressing and storing uncompressed bitmap data. To provide.

【0009】[0009]

【課題を解決するための手段】上記した目的を達成する
ために、本発明では、以下のような手段を講じた点に特
徴がある。 (1) 非圧縮データを単位量ごとに記憶する記憶手段と、
記憶手段から非圧縮データを順次読み出す非圧縮データ
読出手段と、読み出された非圧縮データを圧縮する圧縮
手段と、圧縮データを前記記憶手段に書込む圧縮データ
書込手段とを具備した。 (2) 圧縮データ書込手段は、圧縮データを既に非圧縮デ
ータが読み出された前記記憶手段の実質上の空き領域に
書込むようにした。 (3) 実質上の空き領域が不足すると、非圧縮データが書
き込まれようとしている領域の非圧縮データを前記記憶
手段の空き領域へ退避させて実質上の空き領域を確保す
る非圧縮データ退避手段をさらに具備した。 (4) 非圧縮データ読出手段による読み出し開始位置と前
記圧縮データ書込手段による書込開始位置とを同一にし
た。 (5) 単位量の非圧縮データを前記圧縮手段で圧縮して得
られる圧縮データの容量の上限として容量Mmax が保証
されているとき、前記記憶手段は次式で表される容量M
を有するようにした。
Means for Solving the Problems In order to achieve the above object, the present invention is characterized in that the following means are taken. (1) storage means for storing uncompressed data for each unit amount,
An uncompressed data reading means for sequentially reading the uncompressed data from the storage means, a compression means for compressing the read uncompressed data, and a compressed data writing means for writing the compressed data to the storage means. (2) The compressed data writing means writes the compressed data into a substantially free area of the storage means from which the uncompressed data has already been read. (3) When the practical free space is insufficient, the non-compressed data saving means for saving the non-compressed data of the area to which the non-compressed data is to be written to the free area of the storage means to secure a substantial free area. Was further provided. (4) The read start position by the non-compressed data read means and the write start position by the compressed data write means are made the same. (5) When the capacity Mmax is guaranteed as the upper limit of the capacity of the compressed data obtained by compressing a unit amount of uncompressed data by the compression means, the storage means stores the capacity M expressed by the following equation.
It was made to have.

【0010】Mmax ≦M<(Mmax +単位量) (6) 非圧縮データを圧縮して蓄積した後に改めて読み出
し、これを伸長してプリンタ装置へ出力するプリンタ制
御方法において、記憶手段に記憶された非圧縮データを
順次読み出して圧縮し、圧縮データを前記記憶手段に、
読み出し前の非圧縮データを破壊しないように書き込む
ようにした。
Mmax ≦ M <(Mmax + unit amount) (6) In a printer control method for compressing and storing uncompressed data, reading it out again, decompressing it and outputting it to the printer, the data is stored in the storage means. Uncompressed data is sequentially read and compressed, and the compressed data is stored in the storage unit.
Uncompressed data before reading is written so as not to be destroyed.

【0011】上記した構成(1) によれば、記憶手段から
読み出されて圧縮されたデータは再び同じ記憶手段に記
憶されるので、非圧縮データと圧縮データとが記憶領域
を共用できるようになる。
According to the above configuration (1), the data read from the storage means and compressed is stored again in the same storage means, so that the uncompressed data and the compressed data can share the storage area. Become.

【0012】上記した構成(2) によれば、非圧縮データ
と圧縮データとによって共用される記憶領域の割合が増
えることになる。
According to the above configuration (2), the ratio of the storage area shared by the uncompressed data and the compressed data increases.

【0013】上記した構成(3) によれば、圧縮データが
記憶手段上の未だ処理の完了していない非圧縮データ上
に上書きされそうになると、この非圧縮データが空き領
域に退避されるのでデータ破壊が防止される。
According to the above configuration (3), when the compressed data is about to be overwritten on the uncompressed data which has not been processed yet, the uncompressed data is evacuated to a free area. Data destruction is prevented.

【0014】上記した構成(4) によれば、データの書込
制御および読み出し制御が簡単になる。
According to the above configuration (4), data write control and data read control are simplified.

【0015】上記した構成(5) によれば、記憶手段の容
量として圧縮方式に応じた最適な値を選択可能になる。
According to the above configuration (5), an optimum value according to the compression method can be selected as the capacity of the storage means.

【0016】[0016]

【発明の実施の形態】以下、図面を参照して本発明を詳
細に説明する。図2は本発明のプリンタ制御装置の機能
ブロック図である。非圧縮データ書込手段20は、非圧
縮データを第1の単位量(例えば1ページ分)ごとに非
圧縮データDとして記憶手段10に記憶する。非圧縮デ
ータ読出手段30は、前記記憶手段10から非圧縮デー
タDを前記第1の単位量よりも少ない第2の単位量づつ
非圧縮データDx として順次読み出す。圧縮手段40
は、読み出された非圧縮データDx を順次圧縮して圧縮
データdx を生成する。圧縮データ書込手段50は、前
記圧縮データdx を、記憶手段10内の読み出し前の非
圧縮データDを破壊しないように、既に非圧縮データD
x が読み出された前記記憶手段10の空き領域(以下、
読出後空き領域と表現する)に書込む。非圧縮データ退
避手段60は、記憶手段10上の読出後空き領域が不足
すると、圧縮データdx が書き込まれようとしている領
域に記憶されている非圧縮データDx を記憶手段10上
の空き領域へ退避させて空き領域(以後、退避後空き領
域と表現する)を確保する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 2 is a functional block diagram of the printer control device of the present invention. The uncompressed data writing unit 20 stores the uncompressed data in the storage unit 10 as uncompressed data D for each first unit amount (for example, for one page). The uncompressed data reading means 30 sequentially reads the uncompressed data D from the storage means 10 as uncompressed data Dx for each second unit amount smaller than the first unit amount. Compression means 40
Generates compressed data dx by sequentially compressing the read uncompressed data Dx. The compressed data writing means 50 converts the compressed data dx into the uncompressed data Dx so as not to destroy the uncompressed data D in the storage means 10 before reading.
x is a vacant area of the storage means 10 from which x has been read
(Expressed as an empty area after reading). The uncompressed data saving means 60 saves the uncompressed data Dx stored in the area where the compressed data dx is to be written to the free area on the storage means 10 when the free space after reading on the storage means 10 becomes insufficient. In this way, a free area (hereinafter, referred to as a saved free area) is secured.

【0017】このような構成において、非圧縮データ書
込手段20によって非圧縮データDが記憶手段10に記
憶されると、非圧縮データ読出手段30は記憶手段10
から非圧縮データDを第2の単位量づつ非圧縮データD
x として順次読み出し、これを圧縮手段40へ転送す
る。なお、非圧縮データDx が読み出された記憶領域
は、これ以後、読出後空き領域として扱われることにな
る。圧縮手段40は、転送された非圧縮データDx を圧
縮し、これを圧縮データdx として圧縮データ書込手段
50へ転送する。圧縮データ書込手段50は、記憶手段
10内の、前記非圧縮データDx が読み出されて新たに
読出後空き領域となった記憶領域に圧縮データdx を順
次記憶する。
In such a configuration, when the uncompressed data D is stored in the storage means 10 by the uncompressed data writing means 20, the uncompressed data reading means 30
From the uncompressed data D by a second unit amount
The data is sequentially read out as x and transferred to the compression means 40. The storage area from which the uncompressed data Dx has been read will be treated as a post-read free area thereafter. The compression means 40 compresses the transferred uncompressed data Dx and transfers it to the compressed data writing means 50 as compressed data dx. The compressed data writing means 50 sequentially stores the compressed data dx in a storage area in the storage means 10 from which the uncompressed data Dx has been read out and which has newly become a free area after reading.

【0018】ここで、非圧縮データDx の圧縮率が低い
ために圧縮データdx の容量が非圧縮データDx の容量
を上回ることがあると、非圧縮データDx が読み出され
た後の読出後空き領域内に圧縮データdx を記憶しきれ
なくなる。そして、これを放置すれば読み出し前の非圧
縮データD上に圧縮データdx が上書きされて非圧縮デ
ータDが破壊されてしまうことになる。このように、記
憶手段10の読出後空き領域が不足すると、非圧縮デー
タ退避手段60は、圧縮データdx が書き込まれようと
している領域に記憶されている非圧縮データDx を記憶
手段10上の他の空き領域へ退避させて退避後空き領域
を確保する。
Here, if the capacity of the compressed data dx exceeds the capacity of the uncompressed data Dx due to the low compression ratio of the uncompressed data Dx, the free space after reading after the uncompressed data Dx is read out. The compressed data dx cannot be stored in the area. If this is left as it is, the compressed data dx is overwritten on the uncompressed data D before reading, and the uncompressed data D is destroyed. As described above, when the free area of the storage means 10 becomes insufficient after reading, the non-compressed data saving means 60 stores the non-compressed data Dx stored in the area where the compressed data dx is to be written on the storage means 10. To a free area, and secure a free area after the save.

【0019】このように、本発明では記憶手段から読み
出した非圧縮データを、圧縮後に、当該非圧縮データが
読み出された後の読出後空き領域(または、退避後空き
領域)へ再び記憶させることにより、非圧縮データと圧
縮データとに記憶領域を共用させて記憶手段の容量削減
を可能にしている。
As described above, according to the present invention, the non-compressed data read from the storage means is stored again in the free space after reading (or the free space after saving) after the non-compressed data is read after compression. As a result, the storage area is shared between the uncompressed data and the compressed data, and the capacity of the storage unit can be reduced.

【0020】図1は、本発明の一実施形態であるプリン
タ制御装置1のブロック図である。本発明のプリンタ制
御装置1は、ローカルエリアネットワーク(LAN)等
のネットワーク2を介して複数のコンピュータ3と接続
されており、各コンピュータ3は上位装置としてプリン
タ制御装置1に印刷データを送信する。プリンタ制御装
置1は、この印刷データを受信すると適宜のデータ処理
を施してプリンタ4へ送出する。
FIG. 1 is a block diagram of a printer control device 1 according to an embodiment of the present invention. The printer control device 1 of the present invention is connected to a plurality of computers 3 via a network 2 such as a local area network (LAN), and each computer 3 transmits print data to the printer control device 1 as a host device. Upon receiving the print data, the printer control device 1 performs appropriate data processing and sends the data to the printer 4.

【0021】プリンタ制御装置1のCPU102は、前
記図2に関して説明した非圧縮データ書込手段20、非
圧縮データ読出手段30、および圧縮データ書込手段5
0として機能し、プログラム用メモリ103に予め格納
されているプログラムや定数等にしたがって当該プリン
タ制御装置1全体の動作を制御する。通信インタフェー
ス(I/F)101は、ネットワーク2を介してコンピ
ュータ3との間でデータの送受信を制御する。作業用メ
モリ104には、プリンタ制御装置1の制御に一時的に
使用するデータが格納される。
The CPU 102 of the printer control device 1 includes the uncompressed data writing means 20, the uncompressed data reading means 30, and the compressed data writing means 5 described with reference to FIG.
0, and controls the operation of the entire printer control device 1 according to a program, constants, and the like stored in the program memory 103 in advance. A communication interface (I / F) 101 controls transmission and reception of data with the computer 3 via the network 2. The working memory 104 stores data temporarily used for control of the printer control device 1.

【0022】圧縮伸長器107は前記圧縮手段40とし
て機能し、画像メモリ109に一時記憶されているビッ
トマップデータに対する圧縮処理、およびハードディス
ク装置108に記憶されている圧縮データに対する伸長
処理を、LZ77方式のアルゴリズムにしたがって実行
する。画像メモリ109は前記記憶手段10として機能
し、本実施形態では4.8MB(メガバイト)の記憶容
量を備えている。画像メモリ109の記憶容量は、1ペ
ージ分の印刷データのデータ量である4MBにLZ77
方式での最悪圧縮率9/8を乗じた4.5MBを上回っ
ている必要があるが、(4+4.5)MB未満であれば
いくらでも良い。画像転送I/F110は、プリンタ4
から出力される同期信号に同期して画像メモリ109か
ら読み出した印刷データをプリンタ4へ転送する。
The compression / expansion unit 107 functions as the compression means 40 and performs compression processing on bitmap data temporarily stored in the image memory 109 and expansion processing on compressed data stored in the hard disk device 108 according to the LZ77 system. The algorithm is executed according to the following algorithm. The image memory 109 functions as the storage unit 10 and has a storage capacity of 4.8 MB (megabyte) in the present embodiment. The storage capacity of the image memory 109 is LZ77 in 4 MB which is the data amount of print data for one page.
It is necessary to exceed 4.5 MB multiplied by the worst compression ratio of 9/8 in the system, but any value may be used as long as it is less than (4 + 4.5) MB. The image transfer I / F 110 is connected to the printer 4
The print data read from the image memory 109 is transferred to the printer 4 in synchronization with a synchronization signal output from the printer 4.

【0023】以下、図3、4のフローチャートを参照し
て本実施形態の動作を説明する。ステップS1におい
て、コンピュータ3から送出された印刷データがネット
ワーク2および通信I/F101を介して受信される
と、ステップS2では、受信された印刷データがハード
ディスク装置(HDD)108に蓄積される。ステップ
S3において、全ての印刷データの受信および蓄積が完
了したと判断されると、この印刷データを印刷するため
にステップS4へ進む。
Hereinafter, the operation of the present embodiment will be described with reference to the flowcharts of FIGS. In step S1, when the print data transmitted from the computer 3 is received via the network 2 and the communication I / F 101, the received print data is stored in the hard disk device (HDD) 108 in step S2. If it is determined in step S3 that all the print data has been received and stored, the process proceeds to step S4 to print the print data.

【0024】ステップS4では、ハードディスク装置1
08からページ単位で印刷データが読み出され、画像メ
モリ109上でビットマップデータに展開される。ステ
ップS5では、後に詳述するように、画像メモリ109
上から前記ビットマップデータが順次読み出されて圧縮
伸長器107へ転送され、圧縮伸長器107で圧縮され
た後に前記画像メモリ109上に再び記憶される。
In step S4, the hard disk drive 1
The print data is read from 08 in page units, and is developed into bitmap data on the image memory 109. In step S5, as will be described in detail later, the image memory 109
The bitmap data is sequentially read from above and transferred to the compression / expansion unit 107, and after being compressed by the compression / expansion unit 107, is stored again in the image memory 109.

【0025】ここで、前記ステップS5の処理を図4の
フローチャートを参照してさらに詳細に説明する。ステ
ップS501では、画像メモリ109に記憶されたビッ
トマップデータの先頭アドレスが読出アドレスRADとし
て指定され、ステップS502では、画像メモリ109
の先頭アドレスが書込アドレスWADとして指定される。
本実施形態では、図5(a) にハッチングで示したよう
に、4MBのビットマップデータが画像メモリ109の
先頭アドレスAD0からAD10まで記憶され、アドレ
スAD10〜AD12の0.8MBは空き領域であるも
のとして説明を続ける。したがって、前記ステップS5
01、S502では、読出アドレスRADおよび書込アド
レスWADとして共に先頭アドレスAD0が指定されるこ
とになる。このように、ビットマップデータの読出アド
レスRADと圧縮データの書込アドレスWADとを同じにす
れば、データの書込制御および読み出し制御が簡単にな
る。
Here, the processing of step S5 will be described in more detail with reference to the flowchart of FIG. In step S501, the head address of the bitmap data stored in the image memory 109 is specified as the read address RAD.
Is designated as the write address WAD.
In this embodiment, as shown by hatching in FIG. 5A, 4 MB of bitmap data is stored from the start address AD0 to AD10 of the image memory 109, and 0.8 MB of the addresses AD10 to AD12 is a free area. The description will be continued. Therefore, step S5
In 01 and S502, the start address AD0 is designated as both the read address RAD and the write address WAD. As described above, when the read address RAD of the bitmap data is the same as the write address WAD of the compressed data, the data write control and the read control are simplified.

【0026】ステップS503では、画像メモリ109
の前記指定された読出アドレスRAD(AD0)からビッ
トマップデータが予定の単位量(実際には4KB程度が
望ましいが、本実施形態では、図面を見易くするために
1アドレス分の0.4MB)づつ読み出され、作業用メ
モリ内104に確保された0.4MBのバッファ104
aに一時記憶される。したがって、この時点での画像メ
モリ109には、図5(b) に示したように、アドレスA
D0〜AD1に0.4MBの読出後空き領域が確保され
ることになる。
In step S503, the image memory 109
From the specified read address RAD (AD0), bitmap data is stored in a predetermined unit amount (actually, about 4 KB is preferable, but in the present embodiment, in order to make the drawing easy to see, 0.4 MB for one address). 0.4 MB buffer 104 read and secured in working memory 104
a is temporarily stored. Therefore, at this time, the address A is stored in the image memory 109 as shown in FIG.
An empty area after reading of 0.4 MB is secured in D0 to AD1.

【0027】ステップS504では、前記指定された書
込アドレスWAD(AD0)が、未だ読み出しの完了して
いないビットマップデータの記憶領域(この時点では、
図5(b) のアドレスAD1〜AD10)を指定している
か否か、すなわち読み出しの完了していないビットマッ
プデータ上に圧縮データがオーバーライトされようとし
ているか否かが判定される。最初は既にビットマップデ
ータの読み出しが完了している読出後空き領域の先頭ア
ドレス(アドレスAD0)が指定されることになるの
で、オーバーライトではないと判断されてステップS5
05へ進む。
In step S504, the specified write address WAD (AD0) is stored in the bitmap data storage area (at this point, the bitmap data has not been read yet).
It is determined whether or not the addresses AD1 to AD10 in FIG. 5B are specified, that is, whether or not the compressed data is about to be overwritten on the bitmap data that has not been read. At first, since the start address (address AD0) of the empty area after reading in which the reading of the bitmap data has already been completed is specified, it is determined that it is not overwriting, and step S5 is performed.
Go to 05.

【0028】ステップS505では、前記バッファ10
4a内のビットマップデータが圧縮伸長器107で順次
符号化圧縮される。ステップS506では、圧縮データ
が画像メモリ109上の前記ステップS502で指定さ
れた書込アドレスWAD(AD0)から順に記憶される。
ステップS507では、前記バッファ104a内の全て
のビットマップデータの圧縮処理が終了したか否かが判
断され、終了していなければステップS504へ戻って
前記各処理が繰り返され、終了していればステップS5
08へ進む。
In step S505, the buffer 10
The bitmap data in 4a is sequentially encoded and compressed by the compression / expansion unit 107. In step S506, the compressed data is stored in the image memory 109 in order from the write address WAD (AD0) designated in step S502.
In step S507, it is determined whether or not the compression processing of all the bitmap data in the buffer 104a has been completed. If the compression processing has not been completed, the process returns to step S504, and the processing is repeated. S5
Proceed to 08.

【0029】図5(c) は、バッファ104a内の全ての
ビットマップデータの圧縮処理が終了した時点での画像
メモリ109の記憶内容の一例を示しており、圧縮率が
高ければ、図示したように圧縮データのデータ量はビッ
トマップデータのデータ量(0.4MB)を下回るので
空き領域が残ることになる。
FIG. 5C shows an example of the contents stored in the image memory 109 at the time when the compression processing of all the bitmap data in the buffer 104a has been completed. Since the data amount of the compressed data is smaller than the data amount of the bitmap data (0.4 MB), an empty area remains.

【0030】ステップS508では、画像メモリ109
内に記憶された1ページ分のビットマップデータに対す
る圧縮処理が完了したか否かが判断され、初めは終了し
ていないと判断されてステップS509へ進む。ステッ
プS509では、書込アドレスWADとして画像メモリ1
09上での読出後空き領域の先頭アドレスが指定され
る。ステップS510では、後述する退避中のデータの
有無が判断され、初めは退避データは存在しないのでス
テップS511へ進む。ステップS511では、読出ア
ドレスRADとして画像メモリ109上での次のアドレス
(すなわち、AD1)が指定され、その後、当該処理は
ステップS503へ戻る。
In step S508, the image memory 109
It is determined whether or not the compression processing for the bitmap data for one page stored in is completed. At first, it is determined that the processing has not been completed, and the process proceeds to step S509. In step S509, the image memory 1 is set as the write address WAD.
09, the start address of the empty area after reading is designated. In step S510, it is determined whether there is any data being saved, which will be described later. Since there is no saved data at first, the process proceeds to step S511. In step S511, the next address on the image memory 109 (that is, AD1) is specified as the read address RAD, and then the process returns to step S503.

【0031】ステップS503では、今度は前記ステッ
プS511で指定された読出アドレスRAD(AD1)か
ら残りのビットマップデータが1アドレス分(アドレス
AD1〜AD2の0.4MB)だけ読み出され、前記と
同様にバッファ104aに一時記憶される。ステップS
504〜S507では、前記と同様にバッファ104a
内のビットマップデータが順次圧縮され、再び画像メモ
リ109の読出後空き領域に順次記憶される。
In step S503, one bit of the remaining bitmap data (0.4 MB of addresses AD1 to AD2) is read from the read address RAD (AD1) designated in step S511. Is temporarily stored in the buffer 104a. Step S
In steps 504 to S507, the buffer 104a
Are sequentially compressed, and are sequentially stored again in the empty area after readout of the image memory 109.

【0032】ここで、ビットマップデータの圧縮率が低
下し、バッファ104aに未処理のビットマップデータ
が残っているにもかかわらず、図5(d) に示したように
画像メモリ109のアドレスAD2まで圧縮データが埋
まって読出後空き領域が不足すると、ステップS504
では、読み出しの完了していないビットマップデータ上
にデータが書き込まれようとしていると判断されてステ
ップS513へ進む。ステップS513では、圧縮デー
タが上書きされようとしている領域(アドレスAD2〜
AD3)のビットマップデータが、図5(e) に示したよ
うに、画像メモリ109上の空き領域であるアドレスA
D11以降に退避され、ステップS505、S506で
は、前記退避によって生じた退避後空き領域(アドレス
AD2〜AD3)に残りの圧縮データが記憶される。図
5(f) は、残りの圧縮データの記憶が完了した時点での
画像メモリ109の記憶内容を示している。
Here, although the compression ratio of the bitmap data is reduced and the unprocessed bitmap data remains in the buffer 104a, the address AD2 of the image memory 109 as shown in FIG. If the compressed data is filled up and the free area becomes insufficient after reading, step S504
Then, it is determined that data is about to be written on bit map data for which reading has not been completed, and the process proceeds to step S513. In step S513, the area where the compressed data is about to be overwritten (address AD2
As shown in FIG. 5 (e), the bit map data of AD3) is the address A which is a free area on the image memory 109.
The data is saved after D11, and in steps S505 and S506, the remaining compressed data is stored in the free space after saving (addresses AD2 to AD3) generated by the saving. FIG. 5F shows the storage contents of the image memory 109 when the storage of the remaining compressed data is completed.

【0033】その後、当該処理がステップS510へ進
むと、今度は前記ステップS513で退避させたビット
マップデータが存在すると判断されてステップS512
へ進む。ステップS512では、退避させたビットマッ
プデータの先頭アドレスAD11が読出アドレスRADと
して指定される。したがって、次のステップS503で
は、退避されたビットマップデータが優先的に読み出さ
れてバッファ104aに記憶される。
Thereafter, when the process proceeds to step S510, it is determined that the bitmap data saved in step S513 exists, and the process proceeds to step S512.
Proceed to. In step S512, the head address AD11 of the saved bitmap data is specified as the read address RAD. Therefore, in the next step S503, the saved bitmap data is preferentially read and stored in the buffer 104a.

【0034】以上のようにして、画像メモリ109に記
憶された1ページ分のビットマップデータの圧縮処理が
終了し、画像メモリ109上に1ページ分の圧縮データ
が記憶されたことがステップS508で検出されると、
当該処理は図3のステップS6へ進む。
As described above, the compression processing of the bitmap data for one page stored in the image memory 109 is completed, and the fact that the compressed data for one page has been stored in the image memory 109 is determined in step S508. When detected,
The process proceeds to step S6 in FIG.

【0035】ステップS6では、画像メモリ109上に
新たに記憶された1ページ分の圧縮データがハードディ
スク装置108に記憶される。ステップS7では、全ペ
ージ分の処理が終了したか否かが判断され、終了してい
なければステップS4に戻って次ページのビットマップ
データがハードディスク装置108から画像メモリ10
9上に展開され、前記の処理が繰り返される。また、全
ページ分の処理が完了すると、ステップS8では、ハー
ドディスク装置108から圧縮データが1ページ分づつ
読み出され、ステップS9では、前記読み出された圧縮
データが圧縮伸長器107でビットマップデータに伸長
された後にプリンタ4へ転送される。
In step S6, one page of compressed data newly stored in the image memory 109 is stored in the hard disk device 108. In step S7, it is determined whether or not the processing for all pages has been completed. If not, the flow returns to step S4 to store the bitmap data of the next page from the hard disk device 108 into the image memory 10
9, and the above processing is repeated. When the processing for all pages is completed, the compressed data is read out one page at a time from the hard disk device 108 in step S8, and the read compressed data is Is transferred to the printer 4.

【0036】上記したように、本実施形態によれば、画
像メモリから読み出されて圧縮されたデータが再び同じ
画像メモリに記憶されるので、ビットマップデータと圧
縮データとがメモリを共用するようになってメモリ容量
の削減が可能になる。
As described above, according to the present embodiment, the data read and compressed from the image memory is stored again in the same image memory, so that the bitmap data and the compressed data share the memory. And the memory capacity can be reduced.

【0037】さらに、圧縮データが未だ処理の完了して
いないビットマップデータに上書きされそうになると、
このビットマップデータを空き領域に退避させるように
したので、圧縮率が低下して圧縮データのデータ量がビ
ットマップデータのデータ量を上回ってしまうような場
合であってもデータ破壊が防止される。
Further, when the compressed data is about to be overwritten on bitmap data that has not been processed yet,
Since the bitmap data is saved in the empty area, data destruction is prevented even in a case where the compression rate is reduced and the data amount of the compressed data exceeds the data amount of the bitmap data. .

【0038】[0038]

【発明の効果】上記したように、本発明によれば以下の
ような効果が達成される。 (1) 請求項1、6によれば、記憶手段から読み出されて
圧縮されたデータは再び同じ記憶手段に記憶されるの
で、非圧縮データと圧縮データとが記憶領域を共用でき
るようになって記憶手段の容量削減が可能になる。 (2) 請求項2によれば、圧縮データは既に非圧縮データ
が読み出された前記記憶手段の読出後空き領域に書込ま
れるので、非圧縮データと圧縮データとによって共用さ
れる記憶領域の割合が増えることになり、記憶手段の容
量をさらに削減できるようになる。 (3) 請求項3によれば、圧縮データが記憶手段上の未だ
処理の完了していない非圧縮データ上に上書きされそう
になると、この非圧縮データが空き領域に退避されるの
で、圧縮率が低下して圧縮データのデータ量が非圧縮デ
ータのデータ量を上回ってしまうような場合でもデータ
破壊が防止される。 (4) 請求項4によれば、データの書込制御および読み出
し制御が簡単になる。 (5) 請求項5によれば、記憶手段の容量として圧縮方式
に応じた最適な値を選択できるようになる。
As described above, according to the present invention, the following effects can be achieved. (1) According to the first and sixth aspects, since the data read and compressed from the storage means is stored again in the same storage means, the storage area can be shared between the uncompressed data and the compressed data. Thus, the capacity of the storage means can be reduced. (2) According to the second aspect, since the compressed data is written in the free area after the reading of the storage means from which the non-compressed data has already been read, the storage area shared by the non-compressed data and the compressed data is stored. As the ratio increases, the capacity of the storage means can be further reduced. (3) According to the third aspect, when the compressed data is about to be overwritten on the uncompressed data which has not been processed yet in the storage means, the uncompressed data is evacuated to a free area. And the data amount of the compressed data exceeds the data amount of the uncompressed data, thereby preventing data destruction. (4) According to the fourth aspect, data write control and data read control are simplified. (5) According to the fifth aspect, it is possible to select an optimum value according to the compression method as the capacity of the storage means.

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

【図1】 本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】 本発明の機能ブロック図である。FIG. 2 is a functional block diagram of the present invention.

【図3】 本発明の動作を示したフローチャートであ
る。
FIG. 3 is a flowchart showing the operation of the present invention.

【図4】 本発明の動作を示したフローチャートであ
る。
FIG. 4 is a flowchart showing the operation of the present invention.

【図5】 画像メモリの記憶内容を模式的に表現した図
である。
FIG. 5 is a diagram schematically illustrating the storage contents of an image memory.

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

1…プリンタ制御装置,2…ネットワーク,3…コンピ
ュータ,4…プリンタ,10…記憶手段,20…非圧縮
データ書込手段,30…非圧縮データ読出手段,40…
圧縮手段,50…圧縮データ書込手段,60…非圧縮デ
ータ退避手段
DESCRIPTION OF SYMBOLS 1 ... Printer control device, 2 ... Network, 3 ... Computer, 4 ... Printer, 10 ... Storage means, 20 ... Uncompressed data writing means, 30 ... Uncompressed data reading means, 40 ...
Compression means, 50: compressed data writing means, 60: non-compressed data saving means

フロントページの続き (51)Int.Cl.7 識別記号 FI H04N 1/21 H04N 1/21 1/41 1/41 Z (58)調査した分野(Int.Cl.7,DB名) B41J 5/30 G06F 3/12 G06F 12/00 580 G06F 12/02 530 H04N 1/21 H04N 1/41 Continuation of the front page (51) Int.Cl. 7 identification code FI H04N 1/21 H04N 1/21 1/41 1/41 Z (58) Investigated field (Int.Cl. 7 , DB name) B41J 5/30 G06F 3/12 G06F 12/00 580 G06F 12/02 530 H04N 1/21 H04N 1/41

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 非圧縮データを圧縮して蓄積した後に改
めて読み出し、これを伸長してプリンタ装置へ出力する
プリンタ制御装置において、 非圧縮データを単位量ごとに記憶する記憶手段と、 前記記憶手段から非圧縮データを順次読み出す非圧縮デ
ータ読出手段と、 読み出された非圧縮データを圧縮する圧縮手段と、 圧縮データを前記記憶手段に書込む圧縮データ書込手段
とを具備し、 前記圧縮データ書込手段は、圧縮データを既に非圧縮デ
ータが読み出された読出後空き領域に書込むことを特徴
とする記載のプリンタ制御装置。
1. A printer control device for compressing and accumulating uncompressed data, reading the compressed data again, decompressing the compressed data, and outputting the decompressed data to a printer device. An uncompressed data reading means for sequentially reading uncompressed data from the memory; a compression means for compressing the read uncompressed data; and a compressed data writing means for writing the compressed data to the storage means. 2. The printer control device according to claim 1, wherein the writing unit writes the compressed data into a vacant area after reading from which uncompressed data has already been read.
【請求項2】 前記読出後空き領域が不足すると、圧縮
データが書き込まれようとしている領域の非圧縮データ
を前記記憶手段の他の空き領域へ退避させて待避後空き
領域を確保する非圧縮データ退避手段をさらに具備し、前記圧縮データを前記待避後空き領域に書込む ことを特
徴とする請求項1に記載のプリンタ制御装置。
2. The non-compressed data for saving the free area after saving by saving the uncompressed data of the area where the compressed data is to be written to another free area of the storage means when the free area after reading is insufficient. 2. The printer control device according to claim 1, further comprising a save unit, wherein the compressed data is written in the free space after the save .
【請求項3】 前記非圧縮データ読出手段による読み出
し開始位置と前記圧縮データ書込手段による書込開始位
置とは同一であることを特徴とする請求項1または2に
記載のプリンタ制御装置。
3. The printer control device according to claim 1, wherein a read start position of the uncompressed data read unit and a write start position of the compressed data write unit are the same.
JP05556496A 1996-02-19 1996-02-19 Printer control method and apparatus Expired - Fee Related JP3355909B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05556496A JP3355909B2 (en) 1996-02-19 1996-02-19 Printer control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05556496A JP3355909B2 (en) 1996-02-19 1996-02-19 Printer control method and apparatus

Publications (2)

Publication Number Publication Date
JPH09220832A JPH09220832A (en) 1997-08-26
JP3355909B2 true JP3355909B2 (en) 2002-12-09

Family

ID=13002212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05556496A Expired - Fee Related JP3355909B2 (en) 1996-02-19 1996-02-19 Printer control method and apparatus

Country Status (1)

Country Link
JP (1) JP3355909B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001043115A (en) * 1999-07-29 2001-02-16 Nec Corp System and method for file management
JP4667348B2 (en) * 2006-11-20 2011-04-13 シャープ株式会社 Encoded data memory storage control device, method, and image processing device
JP6278245B2 (en) * 2015-06-26 2018-02-14 京セラドキュメントソリューションズ株式会社 Image processing device
TW202345109A (en) * 2022-05-10 2023-11-16 神盾股份有限公司 Biometric detection sensor and signal processing method thereof and electric product

Also Published As

Publication number Publication date
JPH09220832A (en) 1997-08-26

Similar Documents

Publication Publication Date Title
JP2525666B2 (en) Image filing method
JPH08289241A (en) Digital electronic still camera
JP3355909B2 (en) Printer control method and apparatus
US6459737B1 (en) Method and apparatus for avoiding redundant data retrieval during video decoding
US7864359B2 (en) Data compression and decompression unit
US6816280B1 (en) ALDC with zero clear after read
JP2002064714A (en) Image processing apparatus and method, and storage medium
JP3091917B2 (en) Compressed data transfer device
JP2000232587A (en) Image processor and image processing method
JPH05204747A (en) Semiconductor memory controller
JP3117987B2 (en) Image processing device
JP2837581B2 (en) Image scanner reader
JP3170967B2 (en) Data compression device
JP4307435B2 (en) Image data storage device, copying machine, image forming system, and image data storage method
JP3481284B2 (en) Image compression data decoding device
JP2003092674A (en) Image processing apparatus and image processing method
JP2000326571A (en) PRINT CONTROL DEVICE, PRINT CONTROL METHOD, AND RECORDING MEDIUM
JPH09294210A (en) Image processing apparatus and image processing method
JP2000004364A (en) Encoding / decoding device
JP3212076B2 (en) Communication device and storage medium
JPH10150574A (en) Image forming device
JPH07226848A (en) Picture signal encoding device
JPH05103213A (en) Picture data processor
JPH05185793A (en) Data compression-type plotter
JPH09123539A (en) Image forming device

Legal Events

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