JP3428817B2 - Print control device and method - Google Patents

Print control device and method

Info

Publication number
JP3428817B2
JP3428817B2 JP15412096A JP15412096A JP3428817B2 JP 3428817 B2 JP3428817 B2 JP 3428817B2 JP 15412096 A JP15412096 A JP 15412096A JP 15412096 A JP15412096 A JP 15412096A JP 3428817 B2 JP3428817 B2 JP 3428817B2
Authority
JP
Japan
Prior art keywords
data
compressed
pixel
default
command
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
JP15412096A
Other languages
Japanese (ja)
Other versions
JPH10823A (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.)
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)

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 that forms a visible image on a predetermined recording medium.

【0002】[0002]

【従来の技術】一般に、プリンタ装置ではページ記述言
語で書かれた印刷データを上位のホストコンピュータ等
から受信し、その印刷データを解析し、ビットマップデ
ータを作成しては印刷部で印刷させる、という処理を行
う。
2. Description of the Related Art Generally, 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 it in a printing section. Is performed.

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

【0004】[0004]

【0005】[0005]

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

【0006】本発明はかかる問題点に鑑みなされたもの
であり、通常の文書の行間の如く空白部分を有する印刷
を行う際、既存の圧縮方式であるパックビッツデータ圧
縮方式には既定外規定外コマンドがあることを有効利用
して、その空白部分を効率良く圧縮でき、上位装置から
の圧縮画像データの受信データ量を抑制することを可能
ならしめる印刷制御装置及び方法を提供しようとするも
のである。
The present invention has been made in view of the above problems, and printing with a blank portion such as a space between lines of a normal document.
Pack Bits data pressure, which is the existing compression method,
Effective use of non-default non-standard commands in compression method
Then, the blank part can be compressed efficiently , and
It is an object of the present invention to provide a print control apparatus and method capable of suppressing the amount of received compressed image data .

【0007】[0007]

【課題を解決するための手段】 この課題を解決するた
め、たとえば本発明の印刷制御装置は以下の構成を備え
る。すなわち、パックビッツデータ圧縮形式で圧縮され
た多値画像データを上位装置から受信し、伸長して、所
定の記録媒体上に印刷させる印刷部の印刷制御装置であ
って、前記パックビッツデータ圧縮形式で圧縮したとさ
れる圧縮画像データに含まれたコマンド群のうち、該形
式における既定コマンドと、既定外のコマンドを識別す
る識別手段と、 該識別手段により既定コマンドであると
識別された場合、当該既定コマンドと後続するデータに
基づいて、多値画素列に伸長する画素列伸長手段と、
記識別手段により既定外コマンドであると識別された場
合、当該既定外コマンドに後続するデータが、空白ライ
ン数であることを示すデータであると解釈し、該ライン
数に相当する間、前記画素列伸長手段の伸長を停止する
手段とを備える。
To solve this problem, for example, a print control apparatus of the present invention has the following configuration. That is, it is compressed in the Packbits data compression format.
A multi-valued image data received from a higher-level device, expanded, and printed on a predetermined recording medium in a printing control device of a printing unit, which is compressed in the Packbits data compression format.
Of the command group included in the compressed image data
Identify default and nondefault commands in expressions
Identifying means and that the identifying command is a default command
If identified, the default command and subsequent data
Based on a pixel column extending means for extending the multi-level pixel column, before
If the identification means identifies the command as a non-default command,
If the data following the non-default command is blank,
The line is interpreted as data indicating that the line
The expansion of the pixel column expansion means is stopped for the number of times corresponding to the number.
And means .

【0008】[0008]

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

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

【0010】701はLBP700全体に制御を行うプ
リンター制御ユニットである。この制御ユニット701
は、主に圧縮形式の印刷データの受信、及び伸長処理等
を行い、伸長して得られたデータ(各画素につき8ビッ
ト割り当てられている=256階調)を、公知のPWM
変換し、PWM変換後の新号をビデオ信号としてレーザ
ドライバ702に出力する。
A printer control unit 701 controls the entire LBP 700. This control unit 701
Mainly receives compressed print data, performs decompression processing, etc., and decompresses the resulting data (8 bits are assigned to each pixel = 256 gradations) to a known PWM.
The new issue after conversion and 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.
Laser light 7 emitted from the semiconductor laser 703 according to the input video signal.
04 is switched on and off. The laser light 704 is swung in the left-right direction by the rotating polygon mirror 705 and scans the 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 an electrostatic drum 706.
After being developed by the surrounding developing unit 707, it is transferred to recording paper.

【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, and is taken into the apparatus by a paper feed roller 709 and delivery rollers 710 and 711 to be electrostatically charged. 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. After that, the recording paper is conveyed toward the fixing device 712, the toner is fixed, and finally discharged by the discharge roller 713.

【0013】次に、実施形態におけるプリンタ制御ユニ
ット701を、図1に従って説明する。
Next, the 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変換処理回
路を含んでいる。
In the figure, 101 is a host computer connected to the apparatus, 103 is a CPU for controlling the printer control unit 701, and 104 is a RO in which a control program of the CPU 103 and font data are stored.
M and 105 are host I / F circuits that interface with the host computer 101 of 101, and 106 is RA
M and 107 are data decompression units that decompress compressed data. 108 is an arbiter that arbitrates access from the CPU 103 and the data decompression unit 107 to the RAM 106.
Reference numeral 9 denotes an engine I / F unit that interfaces with the printer engine unit 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 the data decompression unit 1 in this embodiment.
7 is a block configuration diagram of 07 and an engine I / F unit 109. FIG. In the figure, 201 is a decompression circuit, 202 is a flip-flop for holding decompressed parallel video data (in the embodiment, 8 bits per pixel, that is, 256 gradation data is received and printed), and 203 is a flip-flop. A
It is an 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に対して起動をかける。
Compressed image data, for example, image data compressed in the Packbits compression format is sent from the host computer 101. CPU10
3 receives the data of this format via the host interface circuit 105, transfers it to the RAM 106 and stores it. Then, this receiving operation is performed until the reception of the compressed image data for one page is completed. When the data for one page is stored, the data decompression unit 107 and the engine I / F unit 109 are activated.

【0018】起動をかけられたエンジンI/F部109
は用紙の搬送開始を行うべく、プリンタエンジンに対し
て給紙の開始指示を行う。
Engine I / F unit 109 which has been activated
Issues a paper feed start instruction to the printer engine in order to start conveyance of 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
The compressed data stored in 6 is read out, decompressed, and output to the flip-flop 202 in pixel units (= 8 bits). Since the AND gate 203 normally has the H / STOP signal 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 it out bit by bit from the register, and performs a known PWM conversion process to generate 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 in the Packbits data compression format, for example, the RAM 10
There is no value of "80H (H means hexadecimal number)" in the data corresponding to the command of the compressed data read from No. 6. Therefore, by utilizing this "80H", the following 1 byte means the number of blank lines. That is,
A new command "80H" + "value of the number of lines" is created, and this is defined as a compression command for the white line. As a result, the following extensions are 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 finds the command "80H", it sets the STOP signal of the AND gate to the "L" level, and the decompression operation is performed for the period of the number of lines represented by 1 byte following 80H. To stop. Therefore, 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. When the set number of lines has been counted, the decompression circuit 201 sets the / STOP signal to "H" level and restarts the decompression operation.

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

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

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

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

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

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

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

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

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

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

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

【0034】ステップS23では受信した印刷データに
対応するイメージデータのラインを調べ、そのラインが
空白(たとえば全て“00H”)であるか否かを判断す
る。空白ラインであると判断した場合には、変数cou
ntを“1”だけインクメントし、ステップS22に戻
る。
In step S23, the line of the image data corresponding to the received print data is checked to determine whether or not the line is blank (for example, all "00H"). If it is determined to be a blank line, 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 target line is not a blank line, the process proceeds to step S25, and it is determined 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. Therefore, the process proceeds to step S26 and the data of the blank line (command and line number starting at 80H Data) is generated, and is output to the printer device of the present embodiment in step S27, and the process proceeds to step S28.

【0037】また、ステップS25で、count=0
であると判断した場合には、ステップS26、27の処
理をスキップしてステップS28に進むことになる。
In step S25, count = 0
If it is determined that, 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, Packbits compression processing is performed on the line of interest (non-blank line), and in step S29, it is output. Then, unless it is determined in step S30 that the processing for one page has been 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 a host computer, it 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 a data decompression unit 107 and an engine I / F unit 109 according to another embodiment. In the figure, 301
Is an expansion circuit, 302 is a flip-flop, and 303 is an AN
It is a D gate. Further, FIG. 5 is a diagram showing a printing result in the second embodiment, and the numeral shown on the right is a character or the number of lines occupied by line intervals. Further, FIG. 6 shows a processing procedure (program) in the second embodiment.

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

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

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

【0044】具体的には、CPU103はデータ伸長部
107とエンジンI/F部109に起動をかけ、エンジ
ンI/F部109がプリンタエンジン部110に1ライ
ンのデータを送出終了したことを示す信号のLINE
ENDの数を数える。
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 the "L" level to stop the expansion circuit 301 and mask the AND gate 303. Then, after counting the LINE END signal 100 times, the CPU 101 sets the / STOP signal to the "H" level, and again sends the video data to the engine I / F unit 109. By repeating this operation, it is possible to create white line data that does not exist as image data.

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

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

【0048】まず、ステップS1でデータを受信し、ス
テップS2でRAM106に格納する。そして、次のス
テップS3で1ページ分のデータを受信したと判断する
まで、この動作を繰り返す。
First, the data is received in step S1 and stored in the RAM 106 in step S2. Then, 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 the data for one page is thus received, the process proceeds to step S4, and the head portion of the received data is analyzed.

【0050】この解析結果、受信データがイメージデー
タ以外のデータ、すなわち、通常のページ記述言語形式
のデータであると判断した場合には、対応する処理を行
う。この処理は、本第2の実施形態とは直接には関係が
ないので、以下ではイメージデータであると判断された
場合の処理を説明する。
As a result of this analysis, when it is determined that the received data is data other than the image data, that is, the data in the 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 to be image data will be described below.

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

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

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

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

【0055】[他の実施形態]なお、本発明は、複数の
機器(例えばホストコンピュータ,インタフェイス機
器,リーダ,プリンタなど)から構成されるシステムに
適用しても、一つの機器からなる装置に適用してもよ
い。
[Other Embodiments] Incidentally, even when 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.), it can be applied to an apparatus including one device. You may apply.

【0056】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。特に、ホストコンピュータ側の処理は、こ
のようにして実現することになる。
Another object of the present invention is to supply 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 supply a computer (or CPU) of the system or apparatus.
It is needless to say that it can be achieved by reading and executing the program code stored in the storage medium. In particular, the processing on the host computer side is realized in this way.

【0057】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, 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, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD
-R, magnetic tape, non-volatile memory card, ROM, etc. can be used.

【0059】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれることは言うまでもない。
Further, not only the functions of the above-described embodiments are realized by executing the program code read by the computer, but also the OS (operating system) running on the computer based on the instructions of the program code. It is needless to say that this also includes a case where the above) performs a part or all of the actual processing and the processing realizes the functions of the above-described embodiments.

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

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

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

【0063】[0063]

【発明の効果】以上説明したように本発明によれば、通
常の文書の行間の如く空白部分を有する印刷を行う際、
既存の圧縮方式であるパックビッツデータ圧縮方式には
既定外規定外コマンドがあることを有効利用して、その
空白部分を効率良く圧縮でき、上位装置からの圧縮画像
データの受信データ量を抑制することが可能となる。
As described above, according to the present invention, when printing a blank portion such as a space between lines of a normal document,
The existing compression method, Packbits data compression method
Non-default Non-default commands can be effectively used to efficiently compress the blank area, and the compressed image from the host device
It is possible to suppress the amount of data received .

【0064】[0064]

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

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

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

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

【図6】第2の実施形態における処理手順を示すフロー
チャートである。
FIG. 6 is a flowchart showing a processing procedure in 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 showing an operation processing procedure on the host computer side in 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 110 printer engine 201 Expansion circuit 202 flip flops 203 AND gate

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) B41J 5/30 G06F 3/12 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) B41J 5/30 G06F 3/12

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 パックビッツデータ圧縮形式で圧縮され
た多値画像データを上位装置から受信し、伸長して、所
定の記録媒体上に印刷させる印刷部の印刷制御装置であ
って、前記パックビッツデータ圧縮形式で圧縮したとされる圧
縮画像データに含まれたコマンド群のうち、該形式にお
ける既定コマンドと、所定の既定外のコマンドを識別す
る識別手段と、 該識別手段により既定コマンドであると識別された場
合、当該既定コマンドと後続するデータに基づいて、多
値画素列に伸長する画素列伸長手段と、 前記識別手段により前記所定の既定外コマンドであると
識別された場合、当該既定外コマンドに後続するデータ
が、空白ライン数であることを示すデータであると解釈
し、該ライン数に相当する間、前記画素列伸長手段の伸
長を停止する手段と を備えることを特徴とする印刷制御
装置。
1. Compressed in Packbits data compression format
A multi-valued image data received from a higher-level device, expanded, and printed on a predetermined recording medium in a printing control device of a printing unit, which is said to have been compressed in the Packbits data compression format.
Of the command group included in the reduced image data, the
To distinguish between default commands that are
Identification means, and if the identification means identifies a default command.
, Based on the default command and the data that follows.
Pixel column decompression means for decompressing to a value pixel row, and the predetermined non-default command by the identification means
Data that follows the non-default command, if identified
Is interpreted as data indicating that the number of blank lines is
Then, while the number of lines is equivalent,
And a means for stopping the length .
【請求項2】 前記上位装置からの圧縮画像データの受
信、及び伸長は1ページ単位で行われることを特徴とす
る請求項1に記載の印刷制御装置。
2. Reception of compressed image data from the host device
It is characterized in that transmission and decompression are performed in page units.
The print control device according to claim 1.
【請求項3】 更に、前記画素列伸長手段で伸長された
画像データを1画素毎に一時的に格納する一時格納手段
を備え、該一時格納手段にセットされた画像データを順
次前記印刷部に出力することを特徴とする請求項1に記
載の印刷制御装置。
3. Further expanded by the pixel row expansion means
Temporary storage means for temporarily storing image data pixel by pixel
The image data set in the temporary storage means in order.
Next, the data is output to the printing unit.
Print control device installed.
【請求項4】 パックビッツデータ圧縮形式で圧縮され
た多値画像データを上位装置から受信し、伸長して
定の記録媒体上に印刷させる印刷部の印刷制御方法であ
って、前記パックビッツデータ圧縮形式で圧縮したとされる圧
縮画像データに含まれたコマンド群のうち、該形式にお
ける既定コマンドと、所定の既定外のコマンドを識別す
る識別工程と、 該識別工程により既定コマンドであると識別された場
合、当該既定コマンドと後続するデータに基づいて、画
素列に伸長する画素列伸長工程と、 前記識別工程により前記所定の既定外コマンドであると
識別された場合、当該 既定外コマンドに後続するデータ
が、空白ライン数であることを示すデータであると解釈
し、該ライン数に相当する間、前記画素列伸長工程の伸
長を停止する工程と を備えることを特徴とする印刷制御
方法。
4. Compressed in Packbits data compression format
Is a print control method for a printing unit that receives multi-valued image data from a higher-level device, decompresses it , and prints it on a predetermined recording medium, which is said to be compressed in the Packbits data compression format.
Of the command group included in the reduced image data, the
To distinguish between default commands that are
Identification process, and if the identification process identifies a default command.
Image based on the default command and the data that follows.
The pixel row decompression step of decompressing into a prime row, and the predetermined non-default command by the identification step
Data that follows the non-default command, if identified
Is interpreted as data indicating that the number of blank lines is
Then, while the number of lines is equivalent, the extension in the pixel column extension step is performed.
And a step of stopping the length, the printing control method.
【請求項5】 多値画素データをパックビッツデータ圧
縮方式で圧縮して下位の印刷装置に出力して印刷させる
情報処理装置における印刷制御方法であって、 上位処理より渡された印刷データに基づいて順次生成さ
れる多値のラインが空白ラインであるか否かを判別する
判別工程と、 該判別工程において、多値の空白ラインが存在すると判
断した場合には、その連続する空白ライン数をカウント
し、パックビッツ圧縮方式での所定の既定外コマンド及
びカウントしたライン数を示すデータの圧縮データを生
成する第1の生成工程と、 前記判別工程において、多値の空白ラインが存在しない
と判別した場合には、そのラインの各多値画素データを
パックビッツ圧縮方式での既定コマンドを用いて圧縮デ
ータを生成する第2の生成工程と、 前記第1、第2の生成工程で生成される圧縮データを下
位の印刷装置に出力する工程と を備えることを特徴とす
る印刷制御方法。
5. Multi-valued pixel data is packed bit data pressure.
It is a print control method in an information processing apparatus that compresses by a compression method and outputs to a lower printing apparatus for printing, which is sequentially generated based on print data passed from a higher processing.
Multi-valued line it is determined whether or not a blank line to be
It is determined that there is a multivalued blank line in the discrimination step and the discrimination step.
If turned off, count the number of consecutive blank lines
However, the specified non-default commands and the Packbits compression method
And compressed data of the data showing the number of lines counted
There is no multivalued blank line in the first generation step to be performed and the discrimination step.
If it is determined that the multi-valued pixel data of the line
Compressed data using the default command of the Packbits compression method.
Under a second generation step of generating over data, the first, the compressed data generated by the second generating step
And a step of outputting to a printing device at a higher rank .
【請求項6】 多値画素データをパックビッツデータ圧
縮方式で圧縮して下位の印刷装置に出力して印刷させる
情報処理装置であって、 上位処理より渡された印刷データに基づいて順次生成さ
れる多値のラインが空白ラインであるか否かを判別する
判別手段と、 該判別手段において、多値の空白ラインが存在すると判
断した場合には、その連続する空白ライン数をカウント
し、パックビッツ圧縮方式での所定の既定外コマンド及
びカウントしたライン数を示すデータの圧縮データを生
成する第1の生成手段と、 前記判別手段において、多値の空白ラインが存在しない
と判別した場合には、そのラインの各多値画素データを
パックビッツ圧縮方式での既定コマンドを用い て圧縮デ
ータを生成する第2の生成手段と、 前記第1、第2の生成手段で生成される圧縮データを下
位の印刷装置に出力する手段と を備えることを特徴とす
る情報処理装置。
6. A multi-valued pixel data is packed bit data pressure.
Compress by the compression method and output to the lower printer to print.
An information processing device, which is sequentially generated based on the print data passed from the higher-level processing.
Whether the multi-valued line that is displayed is a blank line
It is determined that there is a multivalued blank line in the discrimination means and the discrimination means.
If turned off, count the number of consecutive blank lines
However, the specified non-default commands and the Packbits compression method
And compressed data of the data showing the number of lines counted
There is no multi-valued blank line in the first generating means to be formed and the judging means.
If it is determined that the multi-valued pixel data of the line
Compression de using the default command in PackBits compression method
A second generation unit for generating data and a compressed data generated by the first and second generation units.
It is characterized in that it comprises a means for outputting the position of the printing device
Information processing equipment.
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 JPH10823A (en) 1998-01-06
JP3428817B2 true 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
JPH10823A (en) 1998-01-06

Similar Documents

Publication Publication Date Title
US7505156B2 (en) Image processing method and apparatus for reprinting with a desired binding width having different print settings
US6611347B1 (en) Print control apparatus, print control method, storage medium, and computer readable program performing a form overlay process
US6226099B1 (en) Printing apparatus
JPH10147017A (en) Printing device and data control method
US5522028A (en) Output apparatus
JPH09234910A (en) Image processing system and method
US20050254713A1 (en) Image processing using processing by bands and fixed-size work buffer
JP3297445B2 (en) Output method and device
US6310693B1 (en) Printing control apparatus and method, and printing system for reducing processing overhead
JP3428817B2 (en) Print control device and method
EP0675428B1 (en) Printing system and method of printing graphic data
JPH11203070A (en) Printer controller
JP3203660B2 (en) Image recording device
JP3727962B2 (en) Printing apparatus and printing method
US6281985B1 (en) Print control apparatus, print control method, and memory medium
JPH11235849A (en) Image processing device, data processing method thereof, and storage medium storing program readable by computer
JPH09294210A (en) Image processing unit and image processing method
JPH10147016A (en) Image processor and processing method
JPH07137355A (en) Image processor
JPH11105354A (en) Image processor
JPH08216462A (en) Printer and its control
JP2000033730A (en) Printer, control thereof and printing system
JPH09269875A (en) Data compression/expansion method for page printer
JP2004274553A (en) Image processing apparatus, image processing method and program, and storage medium
JPH11188932A (en) Print controller, band processing method therefor and storage medium storing computer readable program

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