JPH10823A - Print control device and method - Google Patents

Print control device and method

Info

Publication number
JPH10823A
JPH10823A JP8154120A JP15412096A JPH10823A JP H10823 A JPH10823 A JP H10823A JP 8154120 A JP8154120 A JP 8154120A JP 15412096 A JP15412096 A JP 15412096A JP H10823 A JPH10823 A JP H10823A
Authority
JP
Japan
Prior art keywords
data
printing
compressed
printing unit
compressed data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP8154120A
Other languages
Japanese (ja)
Other versions
JP3428817B2 (en
Inventor
Tsutomu Kubota
勉 久保田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP15412096A priority Critical patent/JP3428817B2/en
Publication of JPH10823A publication Critical patent/JPH10823A/en
Application granted granted Critical
Publication of JP3428817B2 publication Critical patent/JP3428817B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

(57)【要約】 【課題】 通常の文書の印刷には行と行との空白部分が
多く含まれることに着目し、この空白部分を効率良く圧
縮することで、転送データ量を抑え、高速に印刷するこ
とを可能にする。 【解決手段】 受信したデータが空白ラインが連続する
ことを示すものである場合、ANDゲート293に対し
てSTOP信号(Lowレベル信号)を出力する。そし
て、伸長回路201はエンジンI/F部109から1ラ
イン出力する毎に出力されるLINE_END信号を計
数し、空白ラインに相当する期間だけ、その状態を維持
する。
(57) [Summary] [Problem] To pay attention to the fact that printing of a normal document includes many blanks between lines, and efficiently compresses the blanks, thereby suppressing the amount of transfer data and achieving high speed. To be able to print. When a received data indicates that blank lines are continuous, a STOP signal (Low level signal) is output to an AND gate 293. Then, the expansion circuit 201 counts the LINE_END signal output each time one line is output from the engine I / F unit 109, and maintains the state for a period corresponding to a blank line.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は印刷制御装置及び方
法、詳しくは所定の記録媒体上に可視画像を形成させる
印刷装置の印刷制御装置及び方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printing control apparatus and method, and more particularly to a printing control apparatus and method for a printing apparatus for forming a visible image on a predetermined recording medium.

【0002】[0002]

【従来の技術】一般に、プリンタ装置ではページ記述言
語で書かれた印刷データを上位のホストコンピュータ等
から受信し、その印刷データを解析し、ビットマップデ
ータを作成しては印刷部で印刷させる、という処理を行
う。
2. Description of the Related Art In general, a printer receives print data written in a page description language from a host computer or the like, analyzes the print data, creates bitmap data, and prints the data in a printing unit. Is performed.

【0003】この場合、印刷データの解析及びビットマ
ップデータを作成するまでには非常に複雑な処理が要求
され、この処理部分でも多くの時間を必要とする。そし
てまた、ビットマップデータを作成することからも、多
くのメモリを必要とするという問題もある。
In this case, very complicated processing is required until the print data is analyzed and the bit map data is created, and this processing also requires a lot of time. In addition, there is also a problem that a large amount of memory is required because bitmap data is created.

【0004】これを解決する手法としては、ホストコン
ピュータがイメージデータを転送することが考えられ
る。この場合、たしかにプリンタ装置側では解析及びビ
ットマップ展開といった処理から開放されるものの、今
度はホストコンピュータからプリンタ装置間へ転送され
るデータ量が非常に多くなり、その転送で多くの時間を
必要とする、という問題が出てくる。特に、昨今のプリ
ンタの印刷解像度は非常に高くなってきており、この問
題はもはや無視出来なくなってきている。
As a method for solving this, it is conceivable that a host computer transfers image data. In this case, although the printer apparatus is released from processing such as analysis and bitmap development, the amount of data transferred from the host computer to the printer apparatus becomes very large, and the transfer requires much time. Problem. In particular, the printing resolution of recent printers has become extremely high, and this problem is no longer negligible.

【0005】[0005]

【発明が解決しようとする課題】これを解決する手法と
しては、ホストコンピュータがイメージデータを転送す
ることが考えられる。この場合、たしかにプリンタ装置
側では解析及びビットマップ展開といった処理から開放
されるものの、今度はホストコンピュータからプリンタ
装置間へ転送されるデータ量が非常に多くなり、その転
送で多くの時間を必要とする、という問題が出てくる。
特に、昨今のプリンタの印刷解像度は非常に高くなって
きており、この問題はもはや無視出来なくなってきてい
る。
As a method for solving this problem, it is conceivable that a host computer transfers image data. In this case, although the printer apparatus is released from processing such as analysis and bitmap development, the amount of data transferred from the host computer to the printer apparatus becomes very large, and the transfer requires much time. Problem.
In particular, the printing resolution of recent printers has become extremely high, and this problem is no longer negligible.

【0006】[0006]

【課題を解決するための手段】本発明はかかる問題点に
鑑みなされたものであり、通常の文書の印刷には行と行
との空白部分が多く含まれることに着目し、この空白部
分を効率良く圧縮することで、転送データ量を抑え、高
速に印刷することを可能ならしめる印刷制御装置及び方
法を提供しようとするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and focuses on the fact that printing of a normal document includes many blank portions between lines. An object of the present invention is to provide a print control apparatus and method capable of suppressing the amount of transfer data and enabling high-speed printing by performing efficient compression.

【0007】この課題を解決するため、たとえば本発明
の印刷制御装置は以下のような構成を備える。すなわ
ち、画素データ圧縮されたデータを上位装置から受信
し、伸長して所定の記録媒体上に可視画像を形成させる
印刷部の印刷制御装置であって、受信したデータが、画
素単位の圧縮データであるか、ライン単位の圧縮データ
であるかを判断する判断手段と、画素単位の圧縮データ
であると判断した場合には、当該圧縮データに従って画
素データを伸長して、前記印刷部に出力し、ライン単位
の圧縮データであると判断した場合には、当該圧縮デー
タに従ってライン単位のデータを作成して、前記印刷部
に出力する制御手段とを備える。
In order to solve this problem, for example, a print control apparatus according to the present invention has the following configuration. That is, a print control device of a printing unit that receives pixel data compressed data from a higher-level device and decompresses the data to form a visible image on a predetermined recording medium, wherein the received data is compressed data in pixel units. There is a determining means for determining whether the data is compressed data in line units, and when it is determined that the compressed data is pixel-based compressed data, expands the pixel data according to the compressed data, and outputs the expanded data to the printing unit, When it is determined that the data is line-based compressed data, a control unit that creates line-based data in accordance with the compressed data and outputs the data to the printing unit.

【0008】[0008]

【発明の実施の形態】以下、添付図面に従って本発明に
係る実施形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0009】図7は実施形態におけるプリンタ装置(L
BP)の断面構造図を示している。同図において、70
0はLBP本体であり、外部に接続されているホストコ
ンピュータから供給される圧縮形式のデータを受信し、
それに従って印刷するものである。ただし、通常のプリ
ンタと同様に、文字情報(文字コード)を受信してパタ
ーンを発生し、それに従って印刷するモードをも備えて
いる。これらのモードは操作パネル800(LCD表示
器や各種設定スイッチは配置されている)による設定で
切り替えることができる。また、場合によっては、フォ
ーム情報あるいはマクロ命令などを入力して記憶するこ
とも可能になっている。
FIG. 7 shows a printer (L) according to the embodiment.
(BP) shows a sectional structural view. In FIG.
Reference numeral 0 denotes an LBP main body, which receives compressed format data supplied from an externally connected host computer,
The printing is performed according to it. However, like a normal printer, a mode is provided in which character information (character code) is received, a pattern is generated, and printing is performed in accordance with the pattern. These modes can be switched by setting using the operation panel 800 (where an LCD display and various setting switches are arranged). In some cases, it is also possible to input and store form information or macro instructions.

【0010】701はLBP700全体に制御を行うプ
リンター制御ユニットである。この制御ユニット701
は、主に圧縮形式の印刷データの受信、及び伸長処理等
を行い、伸長して得られたデータ(各画素につき8ビッ
ト割り当てられている=256階調)を、公知のPWM
変換し、PWM変換後の新号をビデオ信号としてレーザ
ドライバ702に出力する。
Reference numeral 701 denotes a printer control unit for controlling the entire LBP 700. This control unit 701
Is mainly for receiving print data in a compression format, performing decompression processing, etc., and converting the decompressed data (8 bits assigned to each pixel = 256 gradations) to a known PWM.
The new signal after the PWM conversion is output to the laser driver 702 as a video signal.

【0011】レーザドライバ702は半導体レーザ70
3を駆動するための回路であり、入力されたビデオ信号
に応じて半導体レーザ703から発射されるレーザ光7
04をオンオフ切り替えする。レーザ光704は回転多
面鏡705で左右方向に振られ静電ドラム706上を走
査する。これにより、静電ドラム706上には文字等の
静電潜像が形成される。この潜像は、静電ドラム706
周囲の現像ユニット707により現像された後、記録紙
に転送される。
The laser driver 702 is a semiconductor laser 70
And a laser beam emitted from the semiconductor laser 703 in response to an input video signal.
04 is turned on and off. The laser light 704 is swung right and left by a rotary polygon mirror 705 to scan on an electrostatic drum 706. As a result, an electrostatic latent image such as a character is formed on the electrostatic drum 706. This latent image is stored in the electrostatic drum 706
After the image is developed by the peripheral developing unit 707, the image is transferred to a recording sheet.

【0012】この記録紙にはカットシートを用い、カッ
トシート記録紙はLBP700に装着した用紙カセット
708に収納され、給紙ローラ709および配送ローラ
710と711とにより装置内に取り込まれて、静電ド
ラム706に供給される。そして、現像器707によっ
て静電ドラム706上に付着されたトナー像は、搬送さ
れてきた記録紙に転写される。その後、記録紙は定着器
712方向に搬送され、トナーが定着され、最終的に排
出ローラ713によって外部に排出される。
A cut sheet is used as the recording paper, and the cut sheet recording paper is stored in a paper cassette 708 mounted on the LBP 700, taken into the apparatus by a paper feed roller 709 and delivery rollers 710 and 711, and It is supplied to the drum 706. Then, the toner image adhered on the electrostatic drum 706 by the developing device 707 is transferred to the conveyed recording paper. Thereafter, the recording paper is conveyed in the direction of the fixing device 712, where the toner is fixed, and finally discharged by the discharge roller 713 to the outside.

【0013】次に、実施形態におけるプリンタ制御ユニ
ット701を、図1に従って説明する。
Next, a printer control unit 701 according to the embodiment will be described with reference to FIG.

【0014】図示において、101は本装置に接続され
るホストコンピュータ、103はプリンタ制御ユニット
701を制御するCPU、104はCPU103の制御
プログラム及びフォントデータが格納されているRO
M、105は101のホストコンピュータ101とのイ
ンターフェースを行うホストI/F回路、106はRA
M、107は圧縮されたデータを伸長するデータ伸長
部、108はCPU103とデータ伸長部107からの
RAM106へのアクセスの調停を行うアービタ、10
9は図7に示したプリンタエンジン部とのインターフェ
ースを行うエンジンI/F部であり、PWM変換処理回
路を含んでいる。
1, reference numeral 101 denotes a host computer connected to the apparatus, 103 denotes a CPU for controlling a printer control unit 701, and 104 denotes an RO storing a control program of the CPU 103 and font data.
M and 105 denote host I / F circuits for interfacing with the host computer 101, and 106 denotes an RA
M and 107 are data decompression units for decompressing the compressed data, 108 is an arbiter for arbitrating access to the RAM 106 from the CPU 103 and the data decompression unit 107, 10
Reference numeral 9 denotes an engine I / F which interfaces with the printer engine shown in FIG. 7, and includes a PWM conversion processing circuit.

【0015】図2は本実施形態におけるデータ伸長部1
07及びエンジンI/F部109のブロック構成図であ
る。同図において、201は伸長回路、202は伸長さ
れたパラレルビデオデータ(実施形態では1画素につき
8ビット、すなわち、256階調のデータを受信し印刷
する)を保持するためのフリップフロップ、203はA
NDゲートである。
FIG. 2 shows a data decompression unit 1 according to this embodiment.
FIG. 7 is a block diagram illustrating a configuration of an engine I / F unit 07. In the figure, reference numeral 201 denotes a decompression circuit; 202, a flip-flop for holding decompressed parallel video data (in the embodiment, 8 bits per pixel, that is, data of 256 gradations is received and printed); A
ND gate.

【0016】上記構成における実施形態の動作を以下に
説明する。
The operation of the embodiment having the above configuration will be described below.

【0017】ホストコンピュータ101からは圧縮され
たイメージデータ、例えばパックビッツ圧縮形式により
圧縮されたイメージデータが送られてくる。CPU10
3はホストインターフェース回路105を介してこの形
式のデータを受信すると、RAM106に転送し格納す
る。そして、1ページ分の圧縮イメージデータを受信し
終わるまでこの受信動作を行う。1ページ分のデータが
蓄えられたところで、データ伸長部107及びエンジン
I/F部109に対して起動をかける。
The host computer 101 sends compressed image data, for example, image data compressed according to the PackBits compression format. CPU10
3 receives the data in this format via the host interface circuit 105 and transfers it to the RAM 106 for storage. This reception operation is performed until the reception of the compressed image data for one page is completed. When the data of one page is stored, the data decompression unit 107 and the engine I / F unit 109 are activated.

【0018】起動をかけられたエンジンI/F部109
は用紙の搬送開始を行うべく、プリンタエンジンに対し
て給紙の開始指示を行う。
The activated engine I / F unit 109
Instructs the printer engine to start feeding the paper in order to start conveying the paper.

【0019】さて、データ伸長部107ではRAM10
6に格納された圧縮データを読出しては伸長し、1画素
単位(=8ビット)にフリップフロップ202に出力す
る。ANDゲート203は通常/STOP信号がHレベ
ルなので、フリップフロップ202にセットされたデー
タはエンジンI/F部109に対して出力されている。
エンジンI/F部109はこのパラレルのビデオデータ
を一旦不図示のレジスタに格納し、そのレジスタからビ
ット単位に読出しては公知のPWM変換処理を行って濃
度に依存したパルス幅信号を生成し、それをVIDEO
信号としてプリンタエンジン部のレーザドライバ702
に出力する。
In the data decompression unit 107, the RAM 10
6 is read out and decompressed and output to the flip-flop 202 in units of one pixel (= 8 bits). Since the / STOP signal of the AND gate 203 is normally at the H level, the data set in the flip-flop 202 is output to the engine I / F unit 109.
The engine I / F unit 109 temporarily stores the parallel video data in a register (not shown), reads out the parallel video data in bit units, performs a well-known PWM conversion process, and generates a pulse width signal depending on the density. VIDEO it
A laser driver 702 of the printer engine unit as a signal
Output to

【0020】ここで、伸長回路201が例えばパックビ
ッツデータ圧縮形式の伸長処理を行う場合、RAM10
6から読み出した圧縮データのコマンドに相当するデー
タには“80H(Hは16進数を意味する)”の値が存
在しない。そこで、この“80H”を活用し、続く1バ
イトを空白ライン数を意味するようにする。つまり、
“80H”+“ライン数の値”という新たなコマンドを
作成し、これを白ラインに対する圧縮コマンドと定義す
る。この結果、以下のような拡張が可能となる。
Here, when the decompression circuit 201 performs decompression processing of, for example, a packbits data compression format, the RAM 10
No value of “80H (H means hexadecimal)” exists in the data corresponding to the command of the compressed data read from No. 6. Therefore, this "80H" is used, and the subsequent one byte means the number of blank lines. That is,
A new command “80H” + “line number value” is created and defined as a compression command for the white line. As a result, the following expansion is possible.

【0021】201の伸長回路がコマンド“80H”を
見つけると、ANDゲートのSTOP信号を“L”レベ
ルにすると共に、80Hの後に続く1バイトで表される
ライン数分の期間だけ、その伸長動作を停止する。この
ため、伸長回路201はエンジンI/F部1009から
1ライン分のVIDEOデータ出力終了時に出力される
LINE END信号(この信号はプリンタエンジン部
からの公知のBD信号に対応する)を数えるようにして
いる。そして、設定されたライン数を数え終えると伸長
回路201は/STOP信号を“H”レベルにし、そし
て伸長動作を再開する。
When the decompression circuit 201 detects the command "80H", it sets the STOP signal of the AND gate to the "L" level, and performs the decompression operation for the number of lines represented by one byte following the 80H. To stop. For this reason, the decompression circuit 201 counts the LINE END signal (this signal corresponds to a known BD signal from the printer engine unit) output from the engine I / F unit 1009 at the end of outputting one line of VIDEO data. ing. After finishing counting the set number of lines, the expansion circuit 201 sets the / STOP signal to "H" level and restarts the expansion operation.

【0022】以上の動作により、行間等の白ラインをコ
マンドにより圧縮することが可能となる。
With the above operation, it is possible to compress a white line such as a line interval by a command.

【0023】以上の動作説明ではその圧縮データ形式を
パックビッツデータ圧縮形式としたが、他の圧縮形式に
おいても白ラインを圧縮するコマンドを定義することに
より、同様の動作が可能となる。
In the above description of the operation, the compressed data format is the pack bit data compression format. However, the same operation can be performed in other compression formats by defining a command for compressing a white line.

【0024】ここで、実施形態が適用する、パックビッ
ツデータ圧縮について図4を用いて説明する。
Here, packbits data compression applied to the embodiment will be described with reference to FIG.

【0025】パックビッツ圧縮では、最初に1バイトの
コマンドとそれに続く少なくとも1バイトのデータ部で
構成されている。
In packbits compression, a 1-byte command is first followed by a data portion of at least 1 byte.

【0026】<同じ画素データが繰り返される場合>こ
の場合には、最初のコマンドは、連続する画素数の個数
を示すデータが割り当てられ、その値はFFH(2個同
じ画素があることを示す)〜81H(128個の同じ画
素があることを示す)である。2番目の1バイトには、
その画素の値が格納される(図4(A)参照)。129
個以上同じ画素データが連続する場合には、このコマン
ド+データを複数個用意する。
<Case where Same Pixel Data is Repeated> In this case, the first command is assigned data indicating the number of consecutive pixels, and its value is FFH (indicating that two identical pixels are present). 8181H (indicating that there are 128 identical pixels). In the second byte,
The value of the pixel is stored (see FIG. 4A). 129
When a plurality of the same pixel data are continuous, a plurality of this command + data are prepared.

【0027】<繰り返しがない場合>この場合、最初の
コマンドは、00H〜7FHが割り当てられる。これら
の値の意味は、そのコマンドの後にいくつの画素データ
が続くかを示すものである。ただし、コマンド00Hは
1バイトの画素データが続くことを、01は2バイトの
画素データ、…、7FHは128バイトの画素データが
連続することを示している。
<When there is no repetition> In this case, 00H to 7FH is assigned to the first command. The meaning of these values indicates how many pixel data follows the command. However, the command 00H indicates that 1-byte pixel data continues, 01 indicates that 2-byte pixel data,..., 7FH indicates that 128-byte pixel data continues.

【0028】上記の如く、パックビッツ圧縮形式では、
コマンドとして80Hは存在しないので、その80Hを
活用して上記実施形態の如く空白ライン数を定義でき、
結果として大幅なデータ圧縮が可能になる。
As described above, in the Packbits compression format,
Since 80H does not exist as a command, the number of blank lines can be defined using the 80H as in the above-described embodiment.
As a result, significant data compression is possible.

【0029】以上説明したように本実施形態によれば、
圧縮された画像データを受信し印刷する場合において、
特にこれまでの文書等の行間の空白部分に対する圧縮率
を高くすることが可能になる。従って、ホストコンピュ
ータからみれば転送する情報量も少なくなり、印刷処理
を高速化できるのと同じ作用効果を得ることができる。
As described above, according to the present embodiment,
When receiving and printing compressed image data,
In particular, it is possible to increase the compression ratio for a blank portion between lines in a document or the like. Therefore, the amount of information to be transferred is reduced from the viewpoint of the host computer, and the same operation and effect as the speeding up of the printing process can be obtained.

【0030】特に、一般的な圧縮では、文書中の空白行
部分には白画素が連続しているものとしてしか解釈及び
圧縮していなかったので、多くの符号化データを生成さ
せたが、本実施形態によれば、空白行部分については画
素単位の圧縮ではなくライン単位の圧縮が可能になるの
で、圧縮効率は更に高くなる。
In particular, in general compression, a blank line portion in a document is interpreted and compressed only as continuous white pixels, so that much encoded data is generated. According to the embodiment, the blank line portion can be compressed not in units of pixels but in units of lines, so that the compression efficiency is further increased.

【0031】なお、ホストコンピュータ側では、いかな
るOS(オペレーティングシステム)が動作していても
良いが、少なくともそのOS上で動作しているプリンタ
ドライバは上記のような画像圧縮を行うことが必要にな
る。
The host computer may be running any OS (operating system), but at least the printer driver running on that OS needs to perform the above-described image compression. .

【0032】図8は、このプリンタドライバの動作処理
手順を示しているものである。
FIG. 8 shows an operation processing procedure of the printer driver.

【0033】まず、ステップS21で、変数count
を“0”クリアし、次のステップS22で上位装置(た
とえばアプリケーション或いはOS)から印刷データの
受信を行う。
First, in step S21, the variable count
Is cleared to "0", and in the next step S22, print data is received from a higher-level device (for example, an application or an OS).

【0034】ステップS23では受信した印刷データに
対応するイメージデータのラインを調べ、そのラインが
空白(たとえば全て“00H”)であるか否かを判断す
る。空白ラインであると判断した場合には、変数cou
ntを“1”だけインクメントし、ステップS22に戻
る。
In step S23, a line of the image data corresponding to the received print data is checked, and it is determined whether or not the line is blank (for example, all are "00H"). If it is determined that the line is blank, the variable cou
nt is incremented by “1”, and the process returns to step S22.

【0035】一方、ステップS23で注目ラインが空白
ラインではないと判断した場合には、ステップS25に
進み、その時点での変数countが“0”であるか否
かを判断する。
On the other hand, if it is determined in step S23 that the line of interest is not a blank line, the flow advances to step S25 to determine whether or not the variable count at that time is "0".

【0036】countが“0”ではないと判断した場
合には、少なくとも1回はステップS24の処理を経た
ことになるので、ステップS26に進んで、空白ライン
のデータ(80Hで始まるコマンド及びライン数のデー
タ)を作成し、ステップS27でそれを本実施形態のプ
リンタ装置に出力させ、ステップS28に進む。
If it is determined that the count is not "0", it means that the process of step S24 has been performed at least once, so the process proceeds to step S26, where the data of the blank line (the command starting with 80H and the number of lines) Is generated, and in step S27, it is output to the printer of the present embodiment, and the flow advances to step S28.

【0037】また、ステップS25で、count=0
であると判断した場合には、ステップS26、27の処
理をスキップしてステップS28に進むことになる。
In step S25, count = 0
If it is determined that the process is performed, the process of steps S26 and S27 is skipped, and the process proceeds to step S28.

【0038】ステップS28では、注目しているライン
(非空白ライン)に対するパックビッツ圧縮処理を行な
い、ステップS29でそれを出力する処理を行う。つい
で、ステップS30で1ページ分の処理が済んだと判断
しない限りは、ステップS21に戻り、上記処理を繰り
返す。
In step S28, pack bits compression processing is performed on the line of interest (non-blank line), and in step S29, processing for outputting it is performed. Then, unless it is determined in step S30 that the processing for one page is completed, the process returns to step S21 and the above processing is repeated.

【0039】なお、上記処理をホストコンピュータ上で
動作するプリンタドライバとして説明したが、OS自身
に持たせても良いし、アプリケーション自身に持たせて
も構わない。
Although the above processing has been described as a printer driver operating on the host computer, the processing may be provided in the OS itself or in the application itself.

【0040】[第2の実施形態の説明]図3は他の実施
形態におけるデータ伸長部107及びエンジンI/F部
109のブロック構成図である。同図において、301
は伸長回路、302はフリップフロップ、303はAN
Dゲートである。また、図5は本第2の実施形態におけ
る印字結果を示す図であり、右に示す数字は文字、或い
は、行間が占めるライン数である。また、図6は第2の
実施形態における処理手順(プログラム)を示してい
る。
[Explanation of Second Embodiment] FIG. 3 is a block diagram of the data decompression unit 107 and the engine I / F unit 109 in another embodiment. Referring to FIG.
Is an expansion circuit, 302 is a flip-flop, 303 is AN
D gate. FIG. 5 is a diagram showing a print result in the second embodiment, and the numbers shown on the right are characters or the number of lines occupied by line spaces. FIG. 6 shows a processing procedure (program) according to the second embodiment.

【0041】本実施形態における動作を以下に説明す
る。
The operation of this embodiment will be described below.

【0042】ホストコンピュータ101はイメージデー
タを圧縮し、本プリンタ装置に出力するとき、例えば図
5に示す様な画像を圧縮する場合には、文字が在るブロ
ックと行間であるデータの無いライン(空白ライン領
域)のライン数を数え、ブロック数及び全ライン数等も
含め、圧縮データの前にそれらのデータを付加する。そ
の後に、文字の在るブロック単位でデータを圧縮し、各
ブロックの圧縮データを連続してデータを送出する。圧
縮方法はパックビッツ法に限らずいかなるものでも良
い。要は、ホストコンピュータとプリンタ装置間で整合
性がとれればよい。
When the host computer 101 compresses image data and outputs the image data to the printer, for example, when compressing an image as shown in FIG. 5, the host computer 101 compresses image data as shown in FIG. The number of lines in the blank line area is counted, and the data including the number of blocks and the total number of lines is added before the compressed data. Thereafter, the data is compressed in units of blocks in which characters are present, and the compressed data of each block is continuously transmitted. The compression method is not limited to the Packbits method, but may be any method. In short, it is only necessary that consistency is maintained between the host computer and the printer device.

【0043】さて、プリンタ装置のCPU103は、最
初に受信したイメージデータの前にあるブロック数やラ
イン数を示す制御データに従って伸長回路301の動作
を制御する。
The CPU 103 of the printer controls the operation of the decompression circuit 301 in accordance with control data indicating the number of blocks and the number of lines preceding the first received image data.

【0044】具体的には、CPU103はデータ伸長部
107とエンジンI/F部109に起動をかけ、エンジ
ンI/F部109がプリンタエンジン部110に1ライ
ンのデータを送出終了したことを示す信号のLINE
ENDの数を数える。
More specifically, the CPU 103 activates the data decompression unit 107 and the engine I / F unit 109, and a signal indicating that the engine I / F unit 109 has finished sending one line of data to the printer engine unit 110. LINE
Count the number of ENDs.

【0045】図5に基づいて説明すると、印字開始から
200回LINE END信号を数えたところで、CP
U103は/STOP信号を“L”レベルにし、伸長回
路301を停止させ、ANDゲート303にマスクをか
ける。そして、LINE END信号を100回数えた
後、CPU101は/STOP信号を“H”レベルに
し、再び、ビデオデータをエンジンI/F部109へ送
出する。この動作を繰り返すことで、イメージデータと
して存在しない白ラインのデータを作成することができ
る。
Referring to FIG. 5, when the LINE END signal is counted 200 times from the start of printing, the CP
U103 sets the / STOP signal to "L" level, stops the expansion circuit 301, and masks the AND gate 303. After counting the LINE END signal 100 times, the CPU 101 sets the / STOP signal to the “H” level, and sends out the video data to the engine I / F unit 109 again. By repeating this operation, white line data that does not exist as image data can be created.

【0046】なお、ホストコンピュータは、ドットが存
在するブロックをプリンタに示せば、間接的に空白ライ
ン領域を指定することにもなるので、空白部分について
は出力しなくても良い。ただし、各文字イメージが存在
するブロックの特定位置、たとえばブロックの左上隅の
座標は指定することが必要になろう。
If the host computer indicates the block where the dot exists to the printer, the host computer indirectly designates a blank line area, so that the blank portion need not be output. However, it will be necessary to specify the specific position of the block where each character image exists, for example, the coordinates of the upper left corner of the block.

【0047】以上説明した本第2の実施形態のCPU1
03の動作手順をまとめると、図6に示すようになる。
なお、伸長及びビデオ信号の出力は、データ伸長部10
7がハード的に行うので以下ではその説明は省略する。
The CPU 1 of the second embodiment described above
FIG. 6 summarizes the operation procedure of 03.
The decompression and the output of the video signal are performed by the data decompression unit 10.
7, the description is omitted below.

【0048】まず、ステップS1でデータを受信し、ス
テップS2でRAM106に格納する。そして、次のス
テップS3で1ページ分のデータを受信したと判断する
まで、この動作を繰り返す。
First, data is received in step S1, and stored in the RAM 106 in step S2. This operation is repeated until it is determined in the next step S3 that one page of data has been received.

【0049】こうして1ページ分のデータを受信する
と、処理はステップS4に進み、受信データの先頭部分
を解析する。
When one page of data is received in this way, the process proceeds to step S4, where the head of the received data is analyzed.

【0050】この解析結果、受信データがイメージデー
タ以外のデータ、すなわち、通常のページ記述言語形式
のデータであると判断した場合には、対応する処理を行
う。この処理は、本第2の実施形態とは直接には関係が
ないので、以下ではイメージデータであると判断された
場合の処理を説明する。
As a result of this analysis, if it is determined that the received data is data other than image data, that is, data in a normal page description language format, a corresponding process is performed. Since this processing is not directly related to the second embodiment, the processing when it is determined that the data is image data will be described below.

【0051】さて、この場合、CPU103はデータ伸
長部107における/STOP信号を、LINE_EN
D信号を計数することで制御することになる。
In this case, the CPU 103 sets the / STOP signal in the data decompression unit 107 to LINE_EN
Control is performed by counting the D signal.

【0052】なお、最初はドットがある領域から始める
ため、/STOP信号はその論理出力レベルをHigh
にしてある。
Since the dot starts from a certain area at first, the / STOP signal changes its logical output level to High.
It is.

【0053】従って、ステップS8では設定されたライ
ン数を計数する。この後、処理はステップS9に進み、
/STOP信号の論理レベルを反転し、ステップS10
で全ブロックについての処理が完了したと判断するま
で、ステップS8以降の処理を繰り返す。
Therefore, in step S8, the set number of lines is counted. Thereafter, the process proceeds to step S9,
The logic level of the / STOP signal is inverted, and step S10
Step S8 and subsequent steps are repeated until it is determined that the processing for all blocks is completed.

【0054】以上説明したように本第2の実施形態によ
っても、先に説明した第1の実施形態と同様の作用効果
を得ることが可能になる。
As described above, according to the second embodiment, the same operation and effect as those of the first embodiment can be obtained.

【0055】[他の実施形態]なお、本発明は、複数の
機器(例えばホストコンピュータ,インタフェイス機
器,リーダ,プリンタなど)から構成されるシステムに
適用しても、一つの機器からなる装置に適用してもよ
い。
[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), the present invention can be applied to an apparatus including one device. May be applied.

【0056】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。特に、ホストコンピュータ側の処理は、こ
のようにして実現することになる。
Another object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or apparatus, and to provide a computer (or CPU) of the system or apparatus.
And MPU) read and execute the program code stored in the storage medium. In particular, processing on the host computer side is realized in this manner.

【0057】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0058】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0059】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0060】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instruction of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0061】また、実施形態ではプリンタとしてレーザ
ビームプリンタを例にして説明したが、これに限らずい
かなる方式のプリンタにも適用できる。
In the embodiment, a laser beam printer has been described as an example of a printer, but the present invention is not limited to this and can be applied to any type of printer.

【0062】更に、第1の実施形態では、パックビッツ
圧縮法を用いる例を説明したが、他の圧縮法を用いても
よい。従って、本発明は上記実施形態によって限定され
るものではなく、特許請求の範囲に記載された範囲内で
あればいかなる変更も可能である。
Further, in the first embodiment, an example using the Packbits compression method has been described, but another compression method may be used. Therefore, the present invention is not limited by the above-described embodiment, and any changes can be made within the scope described in the claims.

【0063】[0063]

【発明の効果】以上説明したように本発明によれば、通
常の文書の行間の如く、空白部分を有する印刷を行う
際、その空白部分を効率良く圧縮でき、且つ、伸長する
際においても単純に空白ドットではなく、ライン単位の
空白部分を生成すればよいので、メモリの使用効率を上
げることが可能になる。
As described above, according to the present invention, when printing having a blank portion, such as between the lines of a normal document, the blank portion can be efficiently compressed and decompressed simply. Since it is sufficient to generate a blank portion in line units instead of blank dots, it is possible to increase the use efficiency of the memory.

【0064】[0064]

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

【図1】実施形態におけるプリンタ装置のブロック構成
図である。
FIG. 1 is a block diagram of a printer device according to an embodiment.

【図2】データ伸長部のブロック構成図である。FIG. 2 is a block diagram of a data decompression unit.

【図3】第2の実施形態におけるデータ伸長部のブロッ
ク構成図である。
FIG. 3 is a block diagram of a data decompression unit according to a second embodiment.

【図4】パックビッツ圧縮のデータフォーマットを示す
図である。
FIG. 4 is a diagram showing a data format of PackBits compression.

【図5】第2の実施形態における印刷概要を説明するた
めの図である。
FIG. 5 is a diagram for explaining an outline of printing in a second embodiment.

【図6】第2の実施形態における処理手順を示すフロー
チャートである。
FIG. 6 is a flowchart illustrating a processing procedure according to the second embodiment.

【図7】実施形態におけるプリンタ装置の断面構造の一
例を示す図である。
FIG. 7 is a diagram illustrating an example of a cross-sectional structure of the printer device according to the embodiment.

【図8】第1の実施形態におけるホストコンピュータ側
の動作処理手順を示すフローチャートである。
FIG. 8 is a flowchart illustrating an operation processing procedure on the host computer side according to the first embodiment.

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

101 ホストコンピュータ 103 CPU 104 ROM 105 ホストI/F回路 106 RAM 107 データ伸長部 108 アービター 109 エンジンI/F部 110 プリンタエンジン 201 伸長回路 202 フリップフロップ 203 ANDゲート 101 Host Computer 103 CPU 104 ROM 105 Host I / F Circuit 106 RAM 107 Data Decompression Unit 108 Arbiter 109 Engine I / F Unit 110 Printer Engine 201 Decompression Circuit 202 Flip-Flop 203 AND Gate

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 画素データ圧縮されたデータを上位装置
から受信し、伸長して所定の記録媒体上に可視画像を形
成させる印刷部の印刷制御装置であって、 受信したデータが、画素単位の圧縮データであるか、ラ
イン単位の圧縮データであるかを判断する判断手段と、 画素単位の圧縮データであると判断した場合には、当該
圧縮データに従って画素データを伸長して、前記印刷部
に出力し、 ライン単位の圧縮データであると判断した場合には、当
該圧縮データに従ってライン単位のデータを作成して、
前記印刷部に出力する制御手段とを備えることを特徴と
する印刷制御装置。
1. A printing control apparatus for a printing unit for receiving pixel data compressed data from a host device and decompressing the data to form a visible image on a predetermined recording medium, wherein the received data is a pixel unit. Determining means for determining whether the data is compressed data or compressed data in line units; and, if it is determined that the data is compressed data in pixel units, decompresses the pixel data in accordance with the compressed data and sends it to the printing unit. Output, and if it is determined that the data is compressed data in line units, data is created in line units according to the compressed data,
And a control unit for outputting to the printing unit.
【請求項2】 前記制御手段は、ライン単位の圧縮デー
タを受信した場合には、該当するライン数に相当する期
間、空白データを出力することを特徴とする請求項第1
項に記載の印刷制御装置。
2. The apparatus according to claim 1, wherein said control means outputs blank data for a period corresponding to the number of corresponding lines when receiving the compressed data in line units.
A print control device according to the item.
【請求項3】 画素データ圧縮されたデータを上位装置
から受信し、伸長して所定の記録媒体上に可視画像を形
成させる印刷部の印刷制御方法であって、 受信したデータが、画素単位の圧縮データであるか、ラ
イン単位の圧縮データであるかを判断する判断工程と、 画素単位の圧縮データであると判断した場合には、当該
圧縮データに従って画素データを伸長して、前記印刷部
に出力し、 ライン単位の圧縮データであると判断した場合には、当
該圧縮データに従ってライン単位のデータを作成して、
前記印刷部に出力する制御工程とを備えることを特徴と
する印刷制御方法。
3. A printing control method for a printing unit for receiving pixel data compressed data from a host device and decompressing the data to form a visible image on a predetermined recording medium, wherein the received data is a pixel unit. A judging step of judging whether the data is compressed data or compressed data in line units, and if it is judged that the data is compressed data in pixel units, decompresses the pixel data according to the compressed data and sends it to the printing unit. Output, and if it is determined that the data is compressed data in line units, data is created in line units according to the compressed data,
And a control step of outputting to the printing unit.
【請求項4】 前記制御工程は、ライン単位の圧縮デー
タを受信した場合には、該当するライン数に相当する期
間、空白データを出力することを特徴とする請求項第3
項に記載の印刷制御方法。
4. The method according to claim 3, wherein the control step outputs blank data for a period corresponding to the number of lines when receiving compressed data in line units.
The print control method described in the paragraph.
【請求項5】 画素データ単位及びライン単位の圧縮デ
ータを下位の印刷装置に出力して印刷させる情報処理装
置における印刷制御方法であって、 上位処理より渡された印刷データに基づいて空白ライン
が存在するか否かを判別し、 該判別によって空白ラインを1以上連続する場合、連続
する区間に相当する部分についてはライン数単位の圧縮
データを、空白ラインではない場合には画素単位の圧縮
データを下位の印刷装置に出力することを特徴とする印
刷制御方法。
5. A print control method in an information processing apparatus for outputting compressed data in pixel data units and line units to a lower-level printing apparatus and printing the same, wherein a blank line is formed based on print data passed from a higher-level process. If there is one or more blank lines, the compressed data in units of lines is used for a portion corresponding to a continuous section, and the compressed data in pixels is used if it is not a blank line. Printing control method for outputting to a lower-level printing device.
【請求項6】 1ラインすべて白データであるブロック
と、イメージデータの存在する圧縮ブロックの各々のラ
イン数を含むブロック情報を受信し、所定の記録媒体上
に可視画像を印刷部で印刷させる印刷制御装置であっ
て、 イメージデータの存在するブロックを受信した場合に
は、当該ブロックの圧縮データに基づいて伸長し、伸長
して得られたイメージデータを印刷部に出力する第1の
出力手段と、 白データのブロックを示す情報を受信した場合には、前
記印刷部に対して当該ブロックに相当するライン数の期
間、伸長処理を停止させ、白データに相当するデータを
印刷部に出力する第2の出力手段とを備えることを特徴
とする印刷制御装置。
6. A printing unit which receives a block in which all lines are white data and block information including the number of lines of each of compressed blocks in which image data exists, and prints a visible image on a predetermined recording medium by a printing unit. A first output unit that, when receiving a block including image data, decompresses the block based on the compressed data of the block and outputs the decompressed image data to a printing unit; When the information indicating the block of the white data is received, the decompression process is stopped for the printing unit for the number of lines corresponding to the block, and the data corresponding to the white data is output to the printing unit. 2. A printing control device comprising: a second output unit.
【請求項7】 1ラインすべて白データであるブロック
と、イメージデータの存在する圧縮ブロックの各々のラ
イン数を含むブロック情報を受信し、所定の記録媒体上
に可視画像を印刷部で印刷させる印刷制御方法であっ
て、 イメージデータの存在するブロックを受信した場合に
は、当該ブロックの圧縮データに基づいて伸長し、伸長
して得られたイメージデータを印刷部に出力する第1の
出力工程と、 白データのブロックを示す情報を受信した場合には、前
記印刷部に対して当該ブロックに相当するライン数の期
間、伸長処理を停止させ、白データに相当するデータを
印刷部に出力する第2の出力工程とを備えることを特徴
とする印刷制御方法。
7. A printing method for receiving a block in which all lines are white data and block information including the number of lines of each of compressed blocks in which image data exists, and printing a visible image on a predetermined recording medium by a printing unit. A control method, comprising: when a block including image data is received, decompressing based on compressed data of the block, and outputting the decompressed image data to a printing unit; When the information indicating the block of the white data is received, the decompression process is stopped for the printing unit for the number of lines corresponding to the block, and the data corresponding to the white data is output to the printing unit. 2. A printing control method, comprising:
【請求項8】 画素データ圧縮されたデータを上位装置
から受信し、伸長して所定の記録媒体上に可視画像を形
成させる印刷部の印刷制御装置であって、 当該圧縮データに従って画素データを伸長し、伸長され
た画素データを直接印刷部に出力することを特徴とする
印刷制御装置。
8. A print control device of a printing unit for receiving pixel data compressed data from a host device and decompressing the data to form a visible image on a predetermined recording medium, and decompresses the pixel data according to the compressed data. And a decompressed pixel data that is directly output to a printing unit.
JP15412096A 1996-06-14 1996-06-14 Print control device and method Expired - Fee Related JP3428817B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15412096A JP3428817B2 (en) 1996-06-14 1996-06-14 Print control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15412096A JP3428817B2 (en) 1996-06-14 1996-06-14 Print control device and method

Publications (2)

Publication Number Publication Date
JPH10823A true JPH10823A (en) 1998-01-06
JP3428817B2 JP3428817B2 (en) 2003-07-22

Family

ID=15577367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15412096A Expired - Fee Related JP3428817B2 (en) 1996-06-14 1996-06-14 Print control device and method

Country Status (1)

Country Link
JP (1) JP3428817B2 (en)

Also Published As

Publication number Publication date
JP3428817B2 (en) 2003-07-22

Similar Documents

Publication Publication Date Title
JP2003312068A (en) Image processing method and apparatus
JP3634447B2 (en) Image processing apparatus and method
JPH10147017A (en) Printing apparatus and data control method
US5422985A (en) Output method
JPH09234910A (en) Image processing apparatus and method
US6310693B1 (en) Printing control apparatus and method, and printing system for reducing processing overhead
JP3655457B2 (en) Printer control device
JP2958229B2 (en) Printing apparatus and control method thereof
JPH10129050A (en) Printing processor
JP3428817B2 (en) Print control device and method
JPH10207645A (en) Output control method and apparatus, image forming apparatus having the apparatus, and storage medium storing program for implementing the method
JP3204136B2 (en) Image processing apparatus and compression processing method
US6246795B1 (en) Image processing apparatus and method
US6281985B1 (en) Print control apparatus, print control method, and memory medium
JPH04323058A (en) Output method and apparatus
JPH08130618A (en) Printing device and printing method
JPH07137355A (en) Image processing device
JPH08307695A (en) Page printer and data processing method thereof
JPH09269875A (en) Data compression / decompression method for page printer
JPH08216462A (en) Printing apparatus and control method thereof
JPH10147016A (en) Image processing apparatus and method
JPH09234911A (en) Data compression / decompression method for page printer
JPH07245685A (en) Printer
JP2000326568A (en) Print control apparatus, print control method, and storage medium storing computer-readable program
JP2003211744A (en) Print control device and print control method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030418

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090516

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100516

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees