JP3760686B2 - Printer host and storage medium storing operation program thereof - Google Patents

Printer host and storage medium storing operation program thereof Download PDF

Info

Publication number
JP3760686B2
JP3760686B2 JP23269299A JP23269299A JP3760686B2 JP 3760686 B2 JP3760686 B2 JP 3760686B2 JP 23269299 A JP23269299 A JP 23269299A JP 23269299 A JP23269299 A JP 23269299A JP 3760686 B2 JP3760686 B2 JP 3760686B2
Authority
JP
Japan
Prior art keywords
drawing command
band
stored
list
storage device
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
JP23269299A
Other languages
Japanese (ja)
Other versions
JP2001058429A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP23269299A priority Critical patent/JP3760686B2/en
Priority to US09/639,886 priority patent/US6778292B1/en
Priority to AT00307114T priority patent/ATE437396T1/en
Priority to EP00307114A priority patent/EP1077402B1/en
Priority to DE60042580T priority patent/DE60042580D1/en
Publication of JP2001058429A publication Critical patent/JP2001058429A/en
Application granted granted Critical
Publication of JP3760686B2 publication Critical patent/JP3760686B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、主記憶装置とハードディスク等の外部記憶装置とを備え、この外部記憶装置にスプールファイルとして記憶された1ページ分の描画コマンドの束を、バンド毎にイメージデータとして展開するプリンタホスト、及びその動作プログラムが記憶されている記憶媒体に関する。
【0002】
【従来の技術】
一般的に、1ページ分の描画コマンドの束は、図10に示すように、スプールファイル39として、プリンタホストのハードディスク装置26に記憶される。そして、ハードディスク装置26に記憶されたスプールファイル39は、印刷時に、そのままプリンタホストのRAM22上に一時的に記憶される。プリンタホストは、描画コマンドをイメージデータとしてバンドメモリ55に展開するために、各バンドにいずれの描画コマンドが対応するかを示すバンド対応描画コマンド・フルリスト53cを作成する。このフルリスト53cでは、各バンドに対応する描画コマンドのメモリアドレスが示される。次に、このフルリスト53cのメモリアドレスを参照して、RAM22内のスプールファイルメモリ54cに記憶されたスプールファイルから、各バンドに対応する描画コマンドを呼び出して、これをイメージデータとしてバンドメモリ55上に展開する。バンドメモリ55上に展開されたイメージデータは、RGB−CMYK色変換処理やハーフトーン処理等を施された後、プリンタが解釈できるコマンドに変換されてから、プリンタへ送られる。
【0003】
ここで、図8に示すようなイメージを印刷する場合を例にして、具体的に説明する。
【0004】
このイメージは、座標(0,0)〜(577,992)の領域に描かれ、第0バンド〜第4バンドの5バンドに分けて処理されるものとする。座標(0,0)〜(577,992)の領域には、描画コマンドAで表される三角形、描画コマンドBで表される四角形、描画コマンドCで表される丸、描画コマンドDで表されるイメージが描かれる。
【0005】
スプールファイルには、図9に示すように、1ページ分の描画コマンドA,B,C,Dに関するデータが記憶されている。例えば、描画コマンドAは、「三角形を描け」というオペコードと、三角形の三つの頂点座標とから成る。また、描画コマンドDは、イメージ開始のオペコードと、イメージの矩形領域の対角点座標と、イメージデータとから成る。
【0006】
バンド対応描画コマンドリストを作成する際には、各描画コマンドが有しているイメージの座標データから、このイメージがどのバンドに属するかを把握する。例えば、三角形を示す描画コマンドAに関しては、三角形の各頂点座標のデータから第0バンドと第1バンドとに属することを把握する。そして、図10に示すように、第0バンドには描画コマンドA、第1バンドには描画コマンドAと描画コマンドC、第2バンドには描画コマンドBと描画コマンドC、第3バンドには描画コマンドB、第4バンドには描画コマンドBと描画コマンドD、をそれぞれ関係付けたバンド対応描画コマンド・フルリスト53cを作成する。但し、このバンド対応描画コマンド・フルリスト53cは、前述したように、各バンドと描画コマンドとを直接関係付けるものではなく、各バンドと描画コマンドが記憶されているRAM22上のアドレスと関係付けられている。
【0007】
【発明が解決しようとする課題】
しかしながら、従来技術では、ハードディスク装置上に記憶されたスプールファイルをそのままメモリに記憶するため、メモリの記憶容量を大きくしなければならないという問題点がある。特に、1ページ分のデータ中に非常に多くの描画コマンドが含まれている場合や、描画コマンドの中にイメージデータを含むものがある場合には、非常に多くの記憶容量が必要になる。
【0008】
本発明は、このような従来の問題点について着目してなされたもので、メモリに記憶されるデータ数量を少なくすることができるプリンタホストを提供することを目的とする。
【0009】
【課題を解決するための手段】
前記目的を達成するための第一のプリンタホストは、
外部記憶装置と主記憶装置とを備え、該外部記憶装置にスプールファイルとして記憶された1ページ分の描画コマンドの束を、所定のバンド幅のバンド毎にイメージデータとして展開するプリンタホストにおいて、
前記外部記憶装置に記憶されている前記スプールファイルを参照して、複数の前記描画コマンドのうちのいずれの描画コマンドがいずれのバンドに対応するかを、該外部記憶装置の各描画コマンドが記憶されている位置を示す位置情報と対応バンドとの関係で規定するバンド対応描画コマンドリストを作成するリスト作成手段と、
前記主記憶装置の一部で、1バンド分の前記描画コマンドが記憶される描画コマンド記憶領域と、
前記主記憶装置の他の一部で、1バンド分の前記イメージデータが展開されるイメージデータ展開領域と、
前記バンド対応描画コマンドリストに従って、前記外部記憶装置に記憶されているスプールファイルから各バンドに対応する描画コマンドを順次読み取り、読み取った1バンド分の該描画コマンドを前記描画コマンド記憶領域に記憶する描画コマンド記憶制御手段と、
前記描画コマンド記憶領域に記憶された1バンド分の描画コマンドをイメージデータに変換して前記イメージデータ展開領域に展開するイメージデータ展開手段と、
を備えていることを特徴とするものである。
【0010】
前記目的を達成するための第二のプリンタホストは、
前記第一のプリンタホストにおいて、
複数の描画コマンドのうち、前記描画コマンド記憶領域に一旦記憶されたものであるか、該描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであるかを判断するアクセス判断手段を備え、
前記描画コマンド記憶制御手段は、前記描画コマンドが前記描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであると前記アクセス判断手段で判断された場合に、前記バンド対応描画コマンドリストを参照して前記外部記憶装置にアクセスすることを特徴とするものである。
【0011】
前記目的を達成するための第三のプリンタホストは、
前記第一及び第二のいずれかのプリンタホストにおいて、
前記リスト作成手段は、前記バンド対応描画コマンドリストとして、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの開始位置に対応するバンドに、該イメージを示す描画コマンドの開始を関係付け、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの終了位置に対応するバンドに、該イメージを示す描画コマンドの終了を関係付けた描画コマンド差分リストを作成することを特徴とするものである。
【0012】
前記目的を達成するための第四のプリンタホストは、
前記第三のプリンタホストにおいて、
前記リスト作成手段は、前記描画コマンド差分リストを参照して、これからイメージ展開される一つのバンドに、対応する全ての描画コマンドを関係付けた1バンド分描画コマンドリストを、前記バンド対応描画コマンドリストの一部として作成し、
前記描画コマンド記憶制御手段は、前記1バンド分描画コマンドリストを参照して、1バンド分の前記描画コマンドを前記描画コマンド記憶領域に記憶することを特徴とするものである。
【0013】
前記目的を達成するための第一の記憶媒体は、
外部記憶装置と主記憶装置とを備えたプリンタホストで、該外部記憶装置にスプールファイルとして記憶された1ページ分の描画コマンドの束を、予め定めたバンド幅のバンド毎にイメージデータとして展開するプログラムが記憶されている記憶媒体において、
前記外部記憶装置に記憶されている前記スプールファイルを参照して、複数の前記描画コマンドのうちのいずれの描画コマンドがいずれのバンドに対応するかを、該外部記憶装置の各描画コマンドが記憶されている位置を示す位置情報と対応バンドとの関係で規定するバンド対応描画コマンドリストを作成するリスト作成手順と、
前記バンド対応描画コマンドリストに従って、前記外部記憶装置に記憶されている前記スプールファイルから各バンドに対応する描画コマンドを順次読み取り、読み取った1バンド分の該描画コマンドを、前記主記憶装置の一部である描画コマンド記憶領域に記憶する描画コマンド記憶制御手順と、
前記描画コマンド記憶領域に記憶された1バンド分の描画コマンドをイメージデータに変換して、前記主記憶装置の他の一部で1バンド分のイメージデータが展開されるイメージデータ展開領域に、該イメージデータを展開するイメージデータ展開手順と、
を有することを特徴とするプログラムが記憶されているものである。
【0014】
前記目的を達成するための第二の記憶媒体は、
前記第一の記憶媒体において、
複数の描画コマンドのうち、前記描画コマンド記憶領域に一旦記憶されたものであるか、該描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであるかを判断するアクセス判断手順を有し、
前記描画コマンド記憶制御手順は、前記描画コマンドが前記描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであると,前記アクセス判断手順で判断された場合に、前記外部記憶装置にアクセスすることを特徴とするプログラムが記憶されているものである。
【0015】
前記目的を達成するための第3の記憶媒体は,
前記第一及び第二のいずれかの記憶媒体において、
前記リスト作成手順は、前記バンド対応描画コマンドリストとして、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの開始位置に対応するバンドに、該イメージを示す描画コマンドの開始を関係付け、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの終了位置に対応するバンドに、該イメージを示す描画コマンドの終了を関係付けた描画コマンド差分リストを作成することを特徴とするプログラムが記憶されているものである。
【0016】
【発明の実施の形態】
以下、本発明に係るプリンタホストの各種実施形態について、図面を用いて説明する。
【0017】
まず、本発明に係るプリンタホストの第一の実施形態について、図1〜図3を用いて説明する。
本実施形態のプリンタホスト10は、図1に示すように、スキャナ1とプリンタ2とが組み合わされて、印刷システムを構成している。
【0018】
プリンタホスト10は、ホスト本体11とディスプレイ12とキーボード13とを有している。ホスト本体11は、ハードウエア的には、各種プログラム等を実行するCPU20と、各種データや各種プログラム等が記憶されているROM21と、各種データや各種プログラムが一時的に記憶されるRAM22と、ディスプレイ12を制御するディスプレイコントローラ23と、キーボード13を制御するキーボードコントローラ24と、フロッピーディスク装置25と、ハードディスク装置26と、CD装置27と、プリンタ等の接続されるプリンタ・インタフェース28と、スキャナ等を接続されるスキャナ・インタフェース29とを有している。
【0019】
ホスト本体11は、ソフトウェア的には、図2に示すように、アプリケーション31と、オペレーティングシステム32と、アプリケーション31から受け取った描画コマンドをスプールファイル39として記憶するジャーナルドライバ33と、スプールファイル39からの描画コマンドの呼び出しを管理するスプールマネージャ34と、スプールファイル39中の描画コマンドの再生を管理するリプレイマネージャ35と、描画コマンドをRGBイメージデータとして展開するレンダラ36と、RGBイメージデータをCMYK二値化イメージデータに変換する二値化モジュール37と、CMYK二値化イメージデータをプリンタ2が解釈できるコマンドに変換するコマンドジェネレータ38と、を有している。
【0020】
以上のソフトウェア構成要素は、いずれも、CD17(図1に示す)に記憶されているプログラムをCD装置27で再生し、これをRAM22にロードし、CPU20がこのプログラムを実行することで、機能する。
【0021】
また、ホスト本体11は、主要機能として、図3に示すように、ハードディスク装置26に記憶されているスプールファイル39を参照して各描画コマンドがいずれのバンドに対応するかを示すバンド対応描画コマンド・フルリスト53を作成するリスト作成部(リスト作成手段)41と、バンド対応描画コマンド・フルリスト53に従ってハードディスク装置26に記憶されているスプールファイル39から各バンドに対応する描画コマンドを順次読み取ってRAM22上に記憶させる描画コマンド記憶制御部(描画コマンド記憶制御手段)42と、RAM22上に記憶された描画コマンドをイメージデータに変換して展開するイメージデータ展開部(イメージデータ展開手段)43と、を有している。
【0022】
外部記憶装置であるハードディスク装置26には、従来技術の欄で図8及び図9を用いて説明したものと同じスプールファイル39が記憶されている。なお、スプールファイル内のデータ及び展開されるイメージは、以下の全ての実施形態においても同じである。また、主記憶装置であるRAM22には、バンド対応描画コマンド・フルリスト53が展開されるリストテーブル52と、ハードディスク装置26に記憶されているスプールファイル39中の各描画コマンドのオフセット値が展開されているオフセットテーブル51と、1バンド分の描画コマンドが展開される描画コマンドメモリ(描画コマンド記憶領域)54と、1バンド分のイメージデータが展開されるバンドメモリ(イメージデータ展開領域)55とが、形成されている。
【0023】
なお、リスト作成部41及び描画コマンド記憶制御部42は、ソフトウェアとしてのリプレイマージャ35の実行で機能し、イメージデータ展開部43は、ソフトウェアとしてのレンダラ36の実行で機能する。
【0024】
次に、各機能部位の動作について説明する。
リスト作成部41は、まず、ハードディスク装置26に記憶されているスプールファイル39中の各描画コマンドA,B,C,Dのオフセット値a,b,c,dを調べ、これをオフセットIDと対応させてRAM22中のオフセットテーブル51に記憶する。次に、リスト作成部41は、バンド対応描画コマンド・フルリスト53を作成して、これをRAM22中のリストテーブル52に記憶する。
【0025】
バンド対応描画コマンド・フルリスト53は、従来技術の欄で述べたように、第0バンドには描画コマンドA、第1バンドには描画コマンドAと描画コマンドC、第2バンドには描画コマンドBと描画コマンドC、第3バンドには描画コマンドB、第4バンドには描画コマンドBと描画コマンドD、をそれぞれ関係付けたものである。但し、このバンド対応描画コマンド・フルリスト53も、各バンドと描画コマンドを直接関係付けるものではなく、各バンドと描画コマンドが記憶されているハードディスク装置26のオフセット値と関係付けられている。従って、このバンド対応描画コマンド・フルリスト53では、例えば、第0バンドに対しては、描画コマンドAのオフセット値のIDであるIDが関係付けられ、第1バンドに対しては、描画コマンドA,Cのオフセット値のIDであるID,IDが関係付けられている。
【0026】
フルリスト53が作成されると、描画コマンド記憶制御部42は、このフルリスト53を参照して、第0バンドには描画コマンドAを展開することを認識すると共に、フルリスト53に示されている描画コマンドAのオフセットIDから、オフセットテーブル51に記憶されているオフセットIDに対するオフセット値aを抽出する。そして、ハードディスク装置26のオフセット値aの箇所から、描画コマンドAを呼び出し、この描画コマンドAをRAM22上の描画コマンドメモリ54に記憶する。
【0027】
描画コマンドメモリ54に描画コマンドAが記憶されると、イメージデータ展開部43は、この描画コマンドAをバンドメモリ55上にRGBイメージデータとして展開する。バンドメモリ55上に展開されたRGBイメージデータは、図2を用いて説明したように、二値化モジュール37で、CMYK二値化イメージデータに変換され、さらに、コマンドジェネレータ38で、このCMYK二値化イメージデータがプリンタコマンドに変換されて、プリンタ2へ出力される。
【0028】
第1バンド以降も、第0バンドと同様に、描画コマンド記憶制御部42がリスト53を参照して、第1バンドには描画コマンドA,Cを展開することを認識すると共に、フルリスト53に示されている描画コマンドA,CのオフセットID,IDから、オフセットテーブル51に記憶されているオフセットID,IDに対するオフセット値a,cを抽出する。そして、ハードディスク装置26のオフセット値a,cの箇所から、描画コマンドA,Cを呼び出し、この描画コマンドA,CをRAM22上の描画コマンドメモリ54に記憶される。イメージデータ展開部43は、この描画コマンドA,Cをバンドメモリ55上にRGBイメージデータとして展開する。
【0029】
以上のように、本実施形態では、バンド対応描画コマンド・フルリスト53を作成してから、このフルリスト53を参照して目的のバンドに関する描画コマンドのみをハードディスク装置26から呼び出して、これをRAM22上に記憶させているので、RAM22上に描画コマンドを記憶させる領域としては1バンド分で済み、従来技術のように、1ページ分の描画コマンドを全てRAM上に記憶させるよりも、RAM22に記憶されるデータ数量を遥かに少なくすることができる。
【0030】
次に、図4を用いて、本発明に係るプリンタホストの第二の実施形態について説明する。なお、本実施形態のプリンタホストは、ハードウェア的には、図1に示した第一の実施形態の構成と同じであり、機能構成に関してのみ第一の実施形態と異なっている。
【0031】
プリンタホスト本体は、主要機能として、第一の実施形態と同様のリスト作成部41と、描画コマンドが描画コマンドメモリ54aに一旦記憶されたものであるか否かを判断するアクセス判断部(アクセス判断手段)44と、アクセス判断部44の判断結果に応じてハードディスク装置26にアクセスして目的の描画コマンドを呼び出して描画コマンドメモリ54に記憶する描画コマンド記憶制御部42aと、第一の実施形態と同様のイメージデータ展開部43と、を有している。
【0032】
次に、各機能部位の動作について説明する。
リスト作成部41は、第一の実施形態と同様に、スプールファイル39中の各描画コマンドA,B,C,Dのオフセット値a,b,c,dを調べ、これをオフセットIDと対応させてRAM22中のオフセットテーブル51に記憶する。アクセス判断部44は、各描画コマンドA,B,C,DのオフセットID,ID,ID,ID,IDと対応させて、描画コマンドが描画コマンドメモリ54aに一端記憶させたものであるか否かを示すアクセス判断フラグ56をRAM22上に形成する。なお、このアクセス判断フラグ56は、描画コマンドが描画コマンドメモリ54aに一端記憶させたものである場合に「1」が設定され、描画コマンドが描画コマンドメモリ54aに未だ記憶させておらず、ハードディスク装置26中に記憶されている場合に「0」が設定される。次に、リスト作成部41は、第一の実施形態と同様に、バンド対応描画コマンド・フルリスト53を作成して、これをRAM22中のリストテーブル52に記憶する。
【0033】
フルリスト53が作成されると、描画コマンド記憶制御部42aは、このフルリスト53を参照して、第0バンドには描画コマンドAを展開することを認識してから、フルリスト39に示されている描画コマンドAのオフセットIDに対応するアクセス判断フラグ56を参照して、描画コマンドAが描画コマンドメモリ54aに一端記憶させたものであるか否かを認識する。この場合、描画コマンドAのオフセットIDに対応するアクセス判断フラグ56が「0」なので、描画コマンドAが描画コマンドメモリ54aに未だ記憶させておらず、ハードディスク装置26中に記憶されていると認識する。すると、描画コマンド記憶制御部42aは、第一の実施形態と同様に、オフセットテーブル51に記憶されているオフセットIDに対するオフセット値aを抽出し、ハードディスク装置26のオフセット値aの箇所から、描画コマンドAを呼び出し、この描画コマンドAをRAM22上の描画コマンドメモリ54aに記憶する。
【0034】
描画コマンド記憶制御部42aが描画コマンドAを描画コマンドメモリ54aに記憶すると、アクセス判断部44は、描画コマンドAのオフセットIDに対応するアクセス判断フラグ56を「1」に変更する。このとき、リスト作成部41は、オフセットテーブル51のオフセットIDと関係付けられているオフセット値aを、描画コマンドメモリ54a中の描画コマンドAのメモリアドレスに変更する。なお、描画コマンドAのオフセット値aは、描画コマンドAと対応付けられて描画コマンドメモリ54aに記憶される。つまり、描画コマンドAのオフセット値aは、描画コマンドメモリ54aに退避させられる。
【0035】
描画コマンドメモリ54aに描画コマンドAが記憶されると、イメージデータ展開部43が、オフセットテーブル51のIDと関係付けられているメモリアドレスを参照して、描画コマンドメモリ54aから描画コマンドAを呼び出して、第一の実施形態と同様に、バンドメモリ55上にRGBイメージデータとして展開する。描画コマンド記憶制御部42aは、フルリスト53から、描画コマンドA以外は描画に使用しないことがわかるので、アクセス判断フラグ56が「1」になっている描画コマンドA以外の描画コマンドがあれば、これを描画コマンドメモリ54aから消去する。
【0036】
第0バンド分の描画コマンドがイメージ展開されると,描画コマンド記憶制御部42aが再びフルリスト53を参照して、次の第1バンドに展開すべき描画コマンドを調べ、この第1バンドには描画コマンドAと描画コマンドCを展開することを認識する。次に、フルリスト53に示されている描画コマンドA,CのID,IDに対応するアクセス判断フラグ56を参照して、描画コマンドA,Cが描画コマンドメモリ54aに一端記憶させたものであるか否かを認識する。この場合、描画コマンドAのオフセットIDに対応するアクセス判断フラグ56が「1」になっており、描画コマンドAが既に描画コマンドメモリ54aに記憶されているので、描画コマンド記憶制御部42aは描画コマンドAに関してハードディスク装置26にアクセスしない。
【0037】
一方で、描画コマンドCのオフセットIDに対応するアクセス判断フラグ56が「0」なので、描画コマンド記憶制御部42aは描画コマンドCに関してハードディスク装置26にアクセスして、描画コマンドCを描画コマンドメモリ54aに記憶する。描画コマンド記憶制御部42aが描画コマンドCを描画コマンドメモリ54aに記憶すると、アクセス判断部44は、描画コマンドCのオフセットIDに対応するアクセス判断フラグ56を「1」に変更する。このとき、リスト作成部41は、オフセットテーブル51のオフセットIDと関係付けられているオフセット値cを、描画コマンドメモリ54a中の描画コマンドCのメモリアドレスに変更する。
【0038】
描画コマンドメモリ54aに描画コマンドCが記憶されると、イメージデータ展開部43が、オフセットテーブル51のID,IDと関係付けられているメモリアドレスを参照して、描画コマンドメモリ54aから描画コマンドA,Cを呼び出して、これらをバンドメモリ55上にRGBイメージデータとして展開する。描画コマンド記憶制御部42aは、フルリスト53から、描画コマンドAが以降のバンドでの描画に使用しないことがわかるので、アクセス判断フラグ56が「1」になっている描画コマンドAを描画コマンドメモリ54aから消去する。
以下、第2バンド以降も、以上と同様に行われる。
【0039】
本実施形態では、第一の実施形態と同様に、RAM22に記憶されるデータ数量を少なくすることができると共に、一端、ハードディスク装置26から呼び出してRAM22上に記憶した描画コマンドに関しては、再度、ハードディスク装置26にアクセスしないようにしたので、ハードディスク装置26へのアクセス回数が減り、1ページ分の描画コマンドのイメージ展開を短時間に行うことができる。
【0040】
次に、図5を用いて、本発明に係るプリンタホストの第三の実施形態について説明する。
プリンタホスト本体は、主要機能としては第二の実施形態と基本的に同様である。但し、リスト作成部41bが作成するリストが第一及び第二の実施形態と異なる。本実施形態のリスト作成部41bでは、バンド対応描画コマンドリストとして、描画コマンド差分リスト53aと、1バンド分描画リスト53bとを作成する。
【0041】
描画コマンド差分リスト53aは、複数の描画コマンドのそれぞれをイメージ展開した際にイメージの開始位置に対応するバンドに、このイメージを示す描画コマンドの開始を関係付け、複数の描画コマンドのそれぞれをイメージ展開した際にイメージの終了位置に対応するバンドに、このイメージを示す描画コマンドの終了を関係付けたものである。
【0042】
具体的には、差分リスト53aの各バンド欄を、描画コマンドの開始が関係付けられる開始欄と、描画コマンドの終了が関係付けられる終了欄とに分ける。そして、各バンド欄の開始欄及び終了欄に対応する描画コマンドを順次関係付けて行く。本実施形態の場合、第0バンドに関しては、描画コマンドAの示すイメージが開始位置になるので、第0バンド欄の開始欄に描画コマンドAを関係付け、すべての描画コマンドのいずれのイメージも終了位置にはならないので、第0バンド欄の終了欄にはいずれの描画コマンドも関係付けずに、終端を示す「e」を付ける。第1バンドに関しては、描画コマンドCの示すイメージが開始位置になるので、第1バンド欄の開始欄に描画コマンドCを関係付け、描画コマンドAの示すイメージが終了位置になるので、第1バンド欄の終了欄に描画コマンドAを関係付ける。第2バンド欄以降も、以上と同様に各描画コマンドが関係付けられる。
【0043】
1バンド分描画リスト53bは、これからイメージ展開される一つのバンドに、対応する全ての描画コマンドを関係付けたもので、第一及び第二の実施形態におけるバンド対応描画コマンド・フルリスト53の1バンド分のリストと同じである。
【0044】
次に、各機能部位の動作について説明する。
リスト作成部41bは、オフセットテーブル51を作成した後、前述した描画コマンド差分リスト53aを作成してから、第0バンドのみに関する1バンド分描画コマンドリスト53bを作成する。
【0045】
描画コマンド記憶制御部42aは、1バンド分コマンドリスト53bを参照して、ハードディスク装置26に記憶されている第0バンドに関する描画コマンドAを呼び出して、これを描画コマンドメモリ54bに記憶する。以下は、基本的に第二の実施形態と同様である。
【0046】
なお、本実施形態では、差分リスト53aの他に1バンド分リスト53bを設けたが、差分リスト53aがあれば、本質的には1バンド分リスト53bは不要である。しかしながら、例えば、描画コマンド記憶制御部42aが第3バンドに関する描画コマンドを呼び出す場合、差分リスト53aのみでは第3バンド欄と第2バンド欄を参照する必要が生じるため、処理を容易にするために1バンド分リスト53bを設けた方が好ましい。
【0047】
また、本実施形態では、アクセス判断部44及びアクセス判断フラグ56を設けたが,差分リスト53aがあれば、描画コマンド記憶制御部42aがこれから呼び出す描画コマンドが最初に呼び出すものであるか既に一度呼び出したものであるか、言い換えると、ハードディスク装置26にアクセスする必要があるか否かが分かるので、これらも本質的には不要である。すなわち、差分リスト53aを作成すれば、アクセス判断部44及びアクセス判断フラグ56を設けなくとも、第一の実施形態よりも、ハードディスク装置26へのアクセス回数を少なくすることができる。
【0048】
次に、図6及び図7を用いて、描画コマンド差分リストを用いることの効果について説明する。
描画コマンド差分リストを用いると、前述したように、ハードディスク装置26へのアクセス回数を少なくすることができると共に、コマンド対応描画コマンドリストとしてのデータ量を少なくすることができる。
【0049】
リストとしてのデータ量を少なくできるという効果に関しては、図4中のコマンド対応描画コマンド・フルリスト53と、図5中の描画コマンド差分リスト53aとを比較すると、理解できない。しかしながら、これは、1ページ分のイメージを簡単のために、図8に示すように、5分割しかしていないからである。1ページ分のイメージは、実際には、非常に多くの数に分割される。
【0050】
例えば、図6に示すように、以上で述べた1バンドをさらに三分割して、1ページ分のイメージが第0バンド〜第14バンドの15個のバンドからなるものとする。このように、15バンドある場合、図7(a)に示すように、バンド対応描画コマンド・フルリストでは、各バンド欄に関係付けられる描画コマンドのオフセットIDの総数が20個であるのに対し、図7(b)に示すように、描画コマンド差分リストでは、各バンド欄に関係付けられる描画コマンドのオフセットIDの総数が8個で、図5中に示す描画コマンド差分リスト53aでのオフセットIDの総数と同じ数にしかならない。これは、描画コマンド差分リストが、全てのバンド欄に、そのバンドで展開すべき全ての描画コマンドを関係付けるのではなく、描画コマンドの開始と終了のみをバンド欄に関係付けているからである。
【0051】
なお、以上の全ての実施形態では、一つのRAM22中に、オフセットテーブル51、リストテーブル52、描画コマンドメモリ54,54a,54b、バンドメモリ55を形成したが、これらはいくつかのRAMに分けて形成してもよい。
【0052】
【発明の効果】
本発明によれば、外部記憶装置に記憶されたスプールファイルを参照して、バンド対応描画コマンドリストを作成してから、このリストを参照して目的のバンドに関する描画コマンドのみを外部記憶装置から呼び出して、これを主記憶装置であるメモリに記憶させているので、メモリ上に描画コマンドを記憶させる領域としては1バンド分で済み、メモリに記憶されるデータ数量を遥かに少なくすることができる。
【図面の簡単な説明】
【図1】本発明に係る第一の実施形態におけるプリンタホストの回路ブロック図である。
【図2】本発明に係る第一の実施形態におけるプリンタホストのソフトウェア構成図である。
【図3】本発明に係る第一の実施形態におけるプリンタホストの機能ブロック図である。
【図4】本発明に係る第二の実施形態におけるプリンタホストの機能ブロック図である。
【図5】本発明に係る第三の実施形態におけるプリンタホストの機能ブロック図である。
【図6】1ページ分のイメージ(15分割)例を示す説明図である。
【図7】図6に示すイメージに関する、バンド対応描画コマンド・フルリストと描画コマンド差分リストを示す説明図である。
【図8】1ページ分のイメージ(5分割)例を示す説明図である。
【図9】1ページ分のイメージに関するスプールファイルの構成を示す説明図である。
【図10】従来技術における、スプールファイルに記憶された1ページ分の描画コマンドをイメージ展開する手法を説明する説明図である。
【符号の説明】
1…スキャナ
2…プリンタ
10…プリンタホスト
11…ホスト本体
17…CD
20…CPU
21…ROM
22…RAM
26…ハードディスク装置
27…CD装置
34…スプールマネージャ
35…リプレイマネージャ
36…レンダラ
37…二値化モジュール
38…コマンドジェネレータ
39…スプールファイル
41,41b…リスト作成部
42,42a…描画コマンド記憶制御部
43…イメージデータ展開部
44…アクセス判断部
51…オフセットテーブル
52…リストテーブル
53,53c…バンド対応描画コマンド・フルリスト
53a…描画コマンド差分リスト
53b…1バンド分描画コマンドリスト
54,54a,54b…描画コマンドメモリ
55…バンドメモリ
56…アクセス判断フラグ
[0001]
BACKGROUND OF THE INVENTION
The present invention includes a printer host that includes a main storage device and an external storage device such as a hard disk and develops a bundle of drawing commands for one page stored as a spool file in the external storage device as image data for each band, And a storage medium storing the operation program.
[0002]
[Prior art]
Generally, a bundle of drawing commands for one page is stored in the hard disk device 26 of the printer host as a spool file 39 as shown in FIG. The spool file 39 stored in the hard disk device 26 is temporarily stored in the RAM 22 of the printer host as it is during printing. The printer host creates a band-corresponding drawing command full list 53c indicating which drawing command corresponds to each band in order to develop the drawing command as image data in the band memory 55. In this full list 53c, the memory address of the drawing command corresponding to each band is shown. Next, by referring to the memory address of the full list 53c, a drawing command corresponding to each band is called from the spool file stored in the spool file memory 54c in the RAM 22, and this is used as image data on the band memory 55. Expand to. The image data developed on the band memory 55 is subjected to RGB-CMYK color conversion processing, halftone processing, and the like, and then converted into a command interpretable by the printer, and then sent to the printer.
[0003]
Here, the case where an image as shown in FIG. 8 is printed will be described as an example.
[0004]
This image is drawn in the area of coordinates (0, 0) to (577, 992), and is divided into five bands from the 0th band to the 4th band. The area of coordinates (0,0) to (577,992) is represented by a triangle represented by a drawing command A, a quadrangle represented by a drawing command B, a circle represented by a drawing command C, and a drawing command D. Image is drawn.
[0005]
As shown in FIG. 9, the spool file stores data related to drawing commands A, B, C, and D for one page. For example, the drawing command A includes an operation code “draw a triangle” and three vertex coordinates of the triangle. The drawing command D includes an operation code for starting an image, diagonal point coordinates of a rectangular area of the image, and image data.
[0006]
When creating a band-corresponding drawing command list, it is determined which band the image belongs to from the coordinate data of the image that each drawing command has. For example, regarding the drawing command A indicating a triangle, it is grasped that it belongs to the 0th band and the 1st band from the data of each vertex coordinate of the triangle. As shown in FIG. 10, the drawing command A is in the 0th band, the drawing command A and the drawing command C are in the first band, the drawing command B and the drawing command C are in the second band, and the drawing is in the third band. For the command B and the fourth band, a band corresponding drawing command / full list 53c in which the drawing command B and the drawing command D are associated with each other is created. However, as described above, the band-corresponding drawing command / full list 53c does not directly associate each band with the drawing command, but associates each band with the address on the RAM 22 where the drawing command is stored. ing.
[0007]
[Problems to be solved by the invention]
However, in the prior art, since the spool file stored on the hard disk device is stored in the memory as it is, there is a problem that the storage capacity of the memory has to be increased. In particular, when a very large number of drawing commands are included in one page of data, or when there are some drawing commands including image data, a very large storage capacity is required.
[0008]
The present invention has been made paying attention to such a conventional problem, and an object thereof is to provide a printer host capable of reducing the amount of data stored in a memory.
[0009]
[Means for Solving the Problems]
The first printer host for achieving the object is:
In a printer host comprising an external storage device and a main storage device, and developing a bundle of drawing commands for one page stored as a spool file in the external storage device as image data for each band of a predetermined bandwidth,
Each drawing command of the external storage device is stored with reference to the spool file stored in the external storage device, which drawing command of the plurality of drawing commands corresponds to which band. A list creation means for creating a band-corresponding drawing command list that is defined by the relationship between position information indicating a position and a corresponding band;
A drawing command storage area for storing the drawing commands for one band in a part of the main storage device;
An image data expansion area in which the image data for one band is expanded in another part of the main storage device;
The drawing command corresponding to each band is sequentially read from the spool file stored in the external storage device in accordance with the band-corresponding drawing command list, and the drawing command for one read band is stored in the drawing command storage area. Command storage control means;
Image data expansion means for converting a drawing command for one band stored in the drawing command storage area into image data and expanding the image data in the image data expansion area;
It is characterized by having.
[0010]
The second printer host for achieving the object is
In the first printer host,
It is determined whether a plurality of drawing commands are temporarily stored in the drawing command storage area, or are not yet stored in the drawing command storage area but are stored in the external storage device. Access judgment means,
The drawing command storage control means, when the access determining means determines that the drawing command is not yet stored in the drawing command storage area but is stored in the external storage device, The external storage device is accessed with reference to a corresponding drawing command list.
[0011]
A third printer host for achieving the object is
In either of the first and second printer hosts,
The list creating means associates the start of the drawing command indicating the image with the band corresponding to the start position of the image when each of the drawing commands is developed as the band-corresponding drawing command list. A drawing command difference list in which the end of the drawing command indicating the image is related to a band corresponding to the end position of the image when each of the drawing commands is developed is created.
[0012]
A fourth printer host for achieving the object is:
In the third printer host,
The list creating means refers to the drawing command difference list, and displays a band drawing command list for one band in which all corresponding drawing commands are related to one band to be developed from now on. As part of
The drawing command storage control means refers to the drawing command list for one band and stores the drawing command for one band in the drawing command storage area.
[0013]
The first storage medium for achieving the object is
A printer host having an external storage device and a main storage device develops a bundle of drawing commands for one page stored as a spool file in the external storage device as image data for each band of a predetermined bandwidth. In the storage medium storing the program,
Each drawing command of the external storage device is stored with reference to the spool file stored in the external storage device, which drawing command of the plurality of drawing commands corresponds to which band. A list creation procedure for creating a band-compatible drawing command list defined by the relationship between the position information indicating the current position and the corresponding band;
In accordance with the band-corresponding drawing command list, the drawing commands corresponding to each band are sequentially read from the spool file stored in the external storage device, and the drawing commands for one band read are part of the main storage device. A drawing command storage control procedure to be stored in the drawing command storage area,
A drawing command for one band stored in the drawing command storage area is converted into image data, and the image data for one band is developed in another part of the main storage device in the image data development area. Image data expansion procedure for expanding image data,
A program characterized by having: is stored.
[0014]
The second storage medium for achieving the object is
In the first storage medium,
It is determined whether a plurality of drawing commands are temporarily stored in the drawing command storage area, or are not yet stored in the drawing command storage area but are stored in the external storage device. Has an access decision procedure,
The drawing command storage control procedure is performed when the access determination procedure determines that the drawing command is not yet stored in the drawing command storage area but is stored in the external storage device. A program for accessing an external storage device is stored.
[0015]
The third storage medium for achieving the above object is:
In either of the first and second storage media,
The list creation procedure associates the start of a drawing command indicating the image with the band corresponding to the start position of the image when each of the drawing commands is developed as the band-corresponding drawing command list. A program is stored that creates a drawing command difference list that relates the end of a drawing command indicating the image to a band corresponding to the end position of the image when each of the drawing commands is expanded. It is what.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, various embodiments of a printer host according to the present invention will be described with reference to the drawings.
[0017]
First, a first embodiment of a printer host according to the present invention will be described with reference to FIGS.
As shown in FIG. 1, the printer host 10 according to the present embodiment includes a scanner 1 and a printer 2 to constitute a printing system.
[0018]
The printer host 10 includes a host main body 11, a display 12, and a keyboard 13. In terms of hardware, the host body 11 includes a CPU 20 that executes various programs, a ROM 21 that stores various data and various programs, a RAM 22 that temporarily stores various data and various programs, and a display. 12, a display controller 23 that controls the keyboard 12, a keyboard controller 24 that controls the keyboard 13, a floppy disk device 25, a hard disk device 26, a CD device 27, a printer interface 28 connected to a printer, a scanner, and the like. And a scanner interface 29 to be connected.
[0019]
As shown in FIG. 2, the host main body 11 includes an application 31, an operating system 32, a journal driver 33 that stores a drawing command received from the application 31 as a spool file 39, and a spool file 39. A spool manager 34 that manages the calling of drawing commands, a replay manager 35 that manages the playback of drawing commands in the spool file 39, a renderer 36 that develops drawing commands as RGB image data, and CMYK binarization of RGB image data. It has a binarization module 37 for converting to image data, and a command generator 38 for converting CMYK binarized image data into commands that can be interpreted by the printer 2.
[0020]
All of the above software components function when the program stored in the CD 17 (shown in FIG. 1) is reproduced by the CD device 27, loaded into the RAM 22, and the CPU 20 executes this program. .
[0021]
Further, as shown in FIG. 3, the host main body 11 refers to a spool file 39 stored in the hard disk device 26 as a main function, and shows a band corresponding drawing command indicating which band each drawing command corresponds to. A list creation unit (list creation means) 41 that creates a full list 53 and a band-corresponding drawing command. A drawing command corresponding to each band is sequentially read from the spool file 39 stored in the hard disk device 26 according to the full list 53. A drawing command storage control unit (drawing command storage control unit) 42 to be stored on the RAM 22; an image data development unit (image data development unit) 43 that converts the drawing command stored on the RAM 22 into image data and develops the image data; have.
[0022]
The hard disk device 26, which is an external storage device, stores the same spool file 39 as that described with reference to FIGS. Note that the data in the spool file and the developed image are the same in all of the following embodiments. Further, in the RAM 22 which is the main storage device, a list table 52 in which the band-corresponding drawing command / full list 53 is developed and an offset value of each drawing command in the spool file 39 stored in the hard disk device 26 are developed. Offset table 51, a drawing command memory (drawing command storage area) 54 in which drawing commands for one band are developed, and a band memory (image data development area) 55 in which image data for one band are developed. Is formed.
[0023]
The list creation unit 41 and the drawing command storage control unit 42 function by executing the replay merger 35 as software, and the image data development unit 43 functions by executing the renderer 36 as software.
[0024]
Next, the operation of each functional part will be described.
The list creation unit 41 first checks the offset values a, b, c, and d of the drawing commands A, B, C, and D in the spool file 39 stored in the hard disk device 26, and corresponds these to the offset ID. And stored in the offset table 51 in the RAM 22. Next, the list creation unit 41 creates a band-corresponding drawing command / full list 53 and stores it in the list table 52 in the RAM 22.
[0025]
As described in the section of the prior art, the band-corresponding drawing command full list 53 includes a drawing command A for the 0th band, a drawing command A and a drawing command C for the first band, and a drawing command B for the second band. And the drawing command C, the third band is associated with the drawing command B, and the fourth band is associated with the drawing command B and the drawing command D. However, the band corresponding drawing command / full list 53 is not directly related to each band and the drawing command, but is related to the offset value of the hard disk device 26 in which each band and the drawing command are stored. Accordingly, in the band-corresponding drawing command full list 53, for example, for the 0th band, an ID that is an ID of an offset value of the drawing command A 0 ID for the first band is the offset value ID of the drawing commands A and C. 0 , ID 2 Are related.
[0026]
When the full list 53 is created, the drawing command storage control unit 42 refers to the full list 53 and recognizes that the drawing command A is expanded in the 0th band, and is shown in the full list 53. Offset ID of drawing command A 0 To the offset ID stored in the offset table 51 0 The offset value a for is extracted. Then, the drawing command A is called from the location of the offset value a of the hard disk device 26, and this drawing command A is stored in the drawing command memory 54 on the RAM 22.
[0027]
When the drawing command A is stored in the drawing command memory 54, the image data development unit 43 develops the drawing command A on the band memory 55 as RGB image data. As described with reference to FIG. 2, the RGB image data developed on the band memory 55 is converted into CMYK binary image data by the binarization module 37, and this CMYK binary data is further converted by the command generator 38. The digitized image data is converted into a printer command and output to the printer 2.
[0028]
Similarly to the 0th band, the drawing command storage control unit 42 refers to the list 53 and recognizes that the drawing commands A and C are expanded in the first band, and the full list 53 is displayed. Offset ID of the displayed drawing commands A and C 0 , ID 2 To the offset ID stored in the offset table 51 0 , ID 2 The offset values a and c are extracted. Then, drawing commands A and C are called from the locations of the offset values a and c of the hard disk device 26, and the drawing commands A and C are stored in the drawing command memory 54 on the RAM 22. The image data development unit 43 develops the drawing commands A and C on the band memory 55 as RGB image data.
[0029]
As described above, in the present embodiment, after creating the band-corresponding drawing command / full list 53, only the drawing command related to the target band is called from the hard disk device 26 with reference to the full list 53, and this is called the RAM 22. Since it is stored above, the area for storing the drawing commands on the RAM 22 is one band, and the drawing commands for one page are stored in the RAM 22 rather than being stored in the RAM as in the prior art. The amount of data to be processed can be greatly reduced.
[0030]
Next, a second embodiment of the printer host according to the present invention will be described with reference to FIG. Note that the printer host of this embodiment is the same as the configuration of the first embodiment shown in FIG. 1 in terms of hardware, and is different from the first embodiment only in terms of the functional configuration.
[0031]
The printer host main body includes, as main functions, a list creation unit 41 similar to that of the first embodiment, and an access determination unit (access determination) that determines whether a drawing command is temporarily stored in the drawing command memory 54a. Means) 44, a drawing command storage control unit 42 a that accesses the hard disk device 26 according to the determination result of the access determination unit 44, calls a target drawing command, and stores it in the drawing command memory 54, and the first embodiment A similar image data development unit 43.
[0032]
Next, the operation of each functional part will be described.
As in the first embodiment, the list creation unit 41 examines the offset values a, b, c, and d of the drawing commands A, B, C, and D in the spool file 39 and associates them with the offset ID. And stored in the offset table 51 in the RAM 22. The access determination unit 44 uses the offset ID of each drawing command A, B, C, D 0 , ID 1 , ID 2 , ID 3 , ID 4 Correspondingly, an access determination flag 56 indicating whether or not the drawing command is stored in the drawing command memory 54 a is formed on the RAM 22. The access determination flag 56 is set to “1” when the drawing command is stored in the drawing command memory 54a, and the drawing command is not yet stored in the drawing command memory 54a. 26 is set to “0”. Next, as in the first embodiment, the list creation unit 41 creates a band-corresponding drawing command / full list 53 and stores it in the list table 52 in the RAM 22.
[0033]
When the full list 53 is created, the drawing command storage control unit 42a refers to the full list 53, recognizes that the drawing command A is expanded in the 0th band, and then is displayed in the full list 39. Offset ID of drawing command A 0 Referring to the access determination flag 56 corresponding to, it is recognized whether or not the drawing command A has been stored in the drawing command memory 54a. In this case, the offset ID of the drawing command A 0 Since the access determination flag 56 corresponding to “0” is “0”, it is recognized that the drawing command A is not yet stored in the drawing command memory 54 a and is stored in the hard disk device 26. Then, the drawing command storage control unit 42a uses the offset ID stored in the offset table 51 as in the first embodiment. 0 The drawing command A is called from the location of the offset value a of the hard disk device 26, and this drawing command A is stored in the drawing command memory 54a on the RAM 22.
[0034]
When the drawing command storage control unit 42a stores the drawing command A in the drawing command memory 54a, the access determination unit 44 sets the offset ID of the drawing command A. 0 The access determination flag 56 corresponding to is changed to “1”. At this time, the list creation unit 41 uses the offset ID of the offset table 51. 0 Is changed to the memory address of the drawing command A in the drawing command memory 54a. The offset value a of the drawing command A is associated with the drawing command A and stored in the drawing command memory 54a. That is, the offset value a of the drawing command A is saved in the drawing command memory 54a.
[0035]
When the drawing command A is stored in the drawing command memory 54a, the image data development unit 43 uses the ID of the offset table 51. 0 The drawing command A is called from the drawing command memory 54a with reference to the memory address associated with, and developed as RGB image data on the band memory 55 as in the first embodiment. Since the drawing command storage control unit 42a knows from the full list 53 that only the drawing command A is used for drawing, if there is a drawing command other than the drawing command A for which the access determination flag 56 is “1”, This is erased from the drawing command memory 54a.
[0036]
When the drawing commands for the 0th band are developed, the drawing command storage control unit 42a refers to the full list 53 again to check the drawing commands to be developed for the next first band. It recognizes that the drawing command A and the drawing command C are expanded. Next, the IDs of the drawing commands A and C shown in the full list 53 0 , ID 2 Referring to the access determination flag 56 corresponding to, it is recognized whether or not the drawing commands A and C are stored in the drawing command memory 54a. In this case, the offset ID of the drawing command A 0 Since the access determination flag 56 corresponding to "1" is "1" and the drawing command A is already stored in the drawing command memory 54a, the drawing command storage control unit 42a does not access the hard disk device 26 regarding the drawing command A.
[0037]
On the other hand, the offset ID of the drawing command C 2 Since the access determination flag 56 corresponding to “0” is “0”, the drawing command storage control unit 42a accesses the hard disk device 26 regarding the drawing command C and stores the drawing command C in the drawing command memory 54a. When the drawing command storage control unit 42a stores the drawing command C in the drawing command memory 54a, the access determination unit 44 sets the offset ID of the drawing command C. 2 The access determination flag 56 corresponding to is changed to “1”. At this time, the list creation unit 41 uses the offset ID of the offset table 51. 2 Is changed to the memory address of the drawing command C in the drawing command memory 54a.
[0038]
When the drawing command C is stored in the drawing command memory 54a, the image data development unit 43 uses the ID of the offset table 51. 0 , ID 2 The drawing commands A and C are called from the drawing command memory 54a with reference to the memory address associated with the data, and are developed as RGB image data on the band memory 55. Since the drawing command storage control unit 42a knows from the full list 53 that the drawing command A is not used for drawing in the subsequent bands, the drawing command A for which the access determination flag 56 is “1” is displayed in the drawing command memory. Delete from 54a.
Hereinafter, the second and subsequent bands are performed in the same manner as described above.
[0039]
In the present embodiment, as in the first embodiment, the amount of data stored in the RAM 22 can be reduced, and the drawing command that is called from the hard disk device 26 and stored in the RAM 22 is once again stored in the hard disk. Since the device 26 is not accessed, the number of accesses to the hard disk device 26 is reduced, and the image development of drawing commands for one page can be performed in a short time.
[0040]
Next, a third embodiment of the printer host according to the present invention will be described with reference to FIG.
The main function of the printer host is basically the same as that of the second embodiment. However, the list created by the list creation unit 41b is different from the first and second embodiments. The list creation unit 41b of the present embodiment creates a drawing command difference list 53a and a drawing list 53b for one band as the band corresponding drawing command list.
[0041]
The drawing command difference list 53a associates the start of the drawing command indicating the image with the band corresponding to the start position of the image when each of the drawing commands is developed, and develops each of the drawing commands. In this case, the end of the drawing command indicating the image is related to the band corresponding to the end position of the image.
[0042]
Specifically, each band field of the difference list 53a is divided into a start field related to the start of the drawing command and an end field related to the end of the drawing command. Then, the drawing commands corresponding to the start column and end column of each band column are sequentially related. In the present embodiment, for the 0th band, since the image indicated by the drawing command A is the start position, the drawing command A is related to the start column of the 0th band column, and all images of all drawing commands are terminated. Since it is not a position, “e” indicating the end is added to the end column of the 0th band column without relating any drawing command. For the first band, since the image indicated by the drawing command C is the start position, the drawing command C is related to the start column of the first band column, and the image indicated by the drawing command A is the end position. The drawing command A is related to the end column of the column. In the second and subsequent bands, the drawing commands are related in the same manner as described above.
[0043]
The drawing list 53b for one band is obtained by associating all the corresponding drawing commands with one band to be developed from now on, and is one of the band corresponding drawing commands / full lists 53 in the first and second embodiments. It is the same as the list for the band.
[0044]
Next, the operation of each functional part will be described.
After creating the offset table 51, the list creation unit 41b creates the drawing command difference list 53a described above, and then creates the drawing command list 53b for one band for only the 0th band.
[0045]
The drawing command storage control unit 42a refers to the command list 53b for one band, calls the drawing command A related to the 0th band stored in the hard disk device 26, and stores this in the drawing command memory 54b. The following is basically the same as in the second embodiment.
[0046]
In this embodiment, the one-band list 53b is provided in addition to the difference list 53a. However, if the difference list 53a is provided, the one-band list 53b is essentially unnecessary. However, for example, when the drawing command storage control unit 42a calls a drawing command related to the third band, it is necessary to refer to the third band column and the second band column only with the difference list 53a. It is preferable to provide a one-band list 53b.
[0047]
In the present embodiment, the access determination unit 44 and the access determination flag 56 are provided. However, if there is a difference list 53a, the drawing command to be called first by the drawing command storage control unit 42a is called first or already called once. In other words, in other words, whether or not it is necessary to access the hard disk device 26 is known, and these are essentially unnecessary. That is, if the difference list 53a is created, the number of accesses to the hard disk device 26 can be reduced as compared with the first embodiment without providing the access determination unit 44 and the access determination flag 56.
[0048]
Next, the effect of using the drawing command difference list will be described with reference to FIGS.
If the drawing command difference list is used, as described above, the number of accesses to the hard disk device 26 can be reduced, and the data amount as the command corresponding drawing command list can be reduced.
[0049]
The effect of reducing the amount of data as a list cannot be understood by comparing the command corresponding drawing command full list 53 in FIG. 4 with the drawing command difference list 53a in FIG. However, this is because the image for one page is only divided into five as shown in FIG. An image for one page is actually divided into a very large number.
[0050]
For example, as shown in FIG. 6, it is assumed that one band described above is further divided into three, and an image for one page is composed of 15 bands from the 0th band to the 14th band. In this way, when there are 15 bands, as shown in FIG. 7A, in the band corresponding drawing command full list, the total number of offset IDs of drawing commands related to each band column is 20. As shown in FIG. 7B, in the drawing command difference list, the total number of offset IDs of the drawing commands related to each band column is 8, and the offset IDs in the drawing command difference list 53a shown in FIG. It is only the same number as the total number. This is because the drawing command difference list associates not only all drawing commands to be developed in that band with all band fields, but only the start and end of drawing commands with the band field. .
[0051]
In all the embodiments described above, the offset table 51, the list table 52, the drawing command memories 54, 54a, 54b, and the band memory 55 are formed in one RAM 22, but these are divided into several RAMs. It may be formed.
[0052]
【The invention's effect】
According to the present invention, a band-corresponding drawing command list is created by referring to the spool file stored in the external storage device, and only the drawing command related to the target band is called from the external storage device by referring to this list. Since this is stored in the memory which is the main storage device, the area for storing the drawing commands in the memory is one band, and the amount of data stored in the memory can be greatly reduced.
[Brief description of the drawings]
FIG. 1 is a circuit block diagram of a printer host according to a first embodiment of the present invention.
FIG. 2 is a software configuration diagram of the printer host according to the first embodiment of the present invention.
FIG. 3 is a functional block diagram of a printer host according to the first embodiment of the present invention.
FIG. 4 is a functional block diagram of a printer host according to the second embodiment of the present invention.
FIG. 5 is a functional block diagram of a printer host according to a third embodiment of the present invention.
FIG. 6 is an explanatory diagram showing an example of an image for one page (15 divisions).
7 is an explanatory diagram showing a band-corresponding drawing command full list and a drawing command difference list related to the image shown in FIG. 6;
FIG. 8 is an explanatory diagram showing an example of an image for one page (5 divisions).
FIG. 9 is an explanatory diagram showing a configuration of a spool file related to an image for one page.
FIG. 10 is an explanatory diagram for explaining a technique for developing an image of a drawing command for one page stored in a spool file in the prior art.
[Explanation of symbols]
1 ... Scanner
2. Printer
10 ... Printer host
11 ... Host body
17 ... CD
20 ... CPU
21 ... ROM
22 ... RAM
26: Hard disk device
27 ... CD device
34 ... Spool manager
35 ... Replay Manager
36 ... Renderer
37 ... binarization module
38 ... Command generator
39 ... Spool file
41, 41b ... List creation section
42, 42a... Drawing command storage control unit
43 ... Image data development section
44 ... Access judging section
51 ... Offset table
52 ... List table
53, 53c ... Band-related drawing commands / full list
53a: Drawing command difference list
53b ... 1-band drawing command list
54, 54a, 54b ... Drawing command memory
55 ... Band memory
56 ... Access judgment flag

Claims (7)

外部記憶装置と主記憶装置とを備え、該外部記憶装置にスプールファイルとして記憶された1ページ分の描画コマンドの束を、所定のバンド幅のバンド毎にイメージデータとして展開するプリンタホストにおいて、
前記外部記憶装置に記憶されている前記スプールファイルを参照して、複数の前記描画コマンドのうちのいずれの描画コマンドがいずれのバンドに対応するかを、該外部記憶装置の各描画コマンドが記憶されている位置を示す位置情報と対応バンドとの関係で規定するバンド対応描画コマンドリストを作成するリスト作成手段と、
前記主記憶装置の一部で、1バンド分の前記描画コマンドが記憶される描画コマンド記憶領域と、
前記主記憶装置の他の一部で、1バンド分の前記イメージデータが展開されるイメージデータ展開領域と、
前記バンド対応描画コマンドリストに従って、前記外部記憶装置に記憶されているスプールファイルから各バンドに対応する描画コマンドを順次読み取り、読み取った1バンド分の該描画コマンドを前記描画コマンド記憶領域に記憶する描画コマンド記憶制御手段と、
前記描画コマンド記憶領域に記憶された1バンド分の描画コマンドをイメージデータに変換して前記イメージデータ展開領域に展開するイメージデータ展開手段と、
を備えていることを特徴とするプリンタホスト。
In a printer host comprising an external storage device and a main storage device, and developing a bundle of drawing commands for one page stored as a spool file in the external storage device as image data for each band of a predetermined bandwidth,
Each drawing command of the external storage device is stored with reference to the spool file stored in the external storage device, which drawing command of the plurality of drawing commands corresponds to which band. A list creation means for creating a band-corresponding drawing command list that is defined by the relationship between position information indicating a position and a corresponding band;
A drawing command storage area for storing the drawing commands for one band in a part of the main storage device;
An image data expansion area in which the image data for one band is expanded in another part of the main storage device;
The drawing command corresponding to each band is sequentially read from the spool file stored in the external storage device in accordance with the band-corresponding drawing command list, and the drawing command for one read band is stored in the drawing command storage area. Command storage control means;
Image data expansion means for converting a drawing command for one band stored in the drawing command storage area into image data and expanding the image data in the image data expansion area;
A printer host comprising:
請求項1に記載のプリンタホストにおいて、
複数の描画コマンドのうち、前記描画コマンド記憶領域に一旦記憶されたものであるか、該描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであるかを判断するアクセス判断手段を備え、
前記描画コマンド記憶制御手段は、前記描画コマンドが前記描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであると前記アクセス判断手段で判断された場合に、前記バンド対応描画コマンドリストを参照して前記外部記憶装置にアクセスする、
ことを特徴とするプリンタホスト。
The printer host according to claim 1.
It is determined whether a plurality of drawing commands are temporarily stored in the drawing command storage area, or are not yet stored in the drawing command storage area but are stored in the external storage device. Access judgment means,
The drawing command storage control means, when the access determining means determines that the drawing command is not yet stored in the drawing command storage area but is stored in the external storage device, Accessing the external storage device with reference to the corresponding drawing command list;
A printer host characterized by that.
請求項1及び2のいずれか一項に記載のプリンタホストにおいて、
前記リスト作成手段は、前記バンド対応描画コマンドリストとして、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの開始位置に対応するバンドに、該イメージを示す描画コマンドの開始を関係付け、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの終了位置に対応するバンドに、該イメージを示す描画コマンドの終了を関係付けた描画コマンド差分リストを作成する
ことを特徴とするプリンタホスト。
In the printer host according to claim 1,
The list creating means associates the start of the drawing command indicating the image with the band corresponding to the start position of the image when each of the drawing commands is developed as the band-corresponding drawing command list. A printer host that creates a drawing command difference list in which a drawing command indicating an image is related to a band corresponding to an end position of the image when each of the drawing commands is developed.
請求項3に記載のプリンタホストにおいて、
前記リスト作成手段は、前記描画コマンド差分リストを参照して、これからイメージ展開される一つのバンドに、対応する全ての描画コマンドを関係付けた1バンド分描画コマンドリストを、前記バンド対応描画コマンドリストの一部として作成し、
前記描画コマンド記憶制御手段は、前記1バンド分描画コマンドリストを参照して、1バンド分の前記描画コマンドを前記描画コマンド記憶領域に記憶する、
ことを特徴とするプリンタホスト。
The printer host according to claim 3,
The list creating means refers to the drawing command difference list, and displays a band drawing command list for one band in which all corresponding drawing commands are related to one band to be developed from now on. As part of
The drawing command storage control means refers to the drawing command list for one band and stores the drawing command for one band in the drawing command storage area.
A printer host characterized by that.
外部記憶装置と主記憶装置とを備えたプリンタホストで、該外部記憶装置にスプールファイルとして記憶された1ページ分の描画コマンドの束を、予め定めたバンド幅のバンド毎にイメージデータとして展開するプログラムが記憶されている記憶媒体において、
前記外部記憶装置に記憶されている前記スプールファイルを参照して、複数の前記描画コマンドのうちのいずれの描画コマンドがいずれのバンドに対応するかを、該外部記憶装置の各描画コマンドが記憶されている位置を示す位置情報と対応バンドとの関係で規定するバンド対応描画コマンドリストを作成するリスト作成手順と、
前記バンド対応描画コマンドリストに従って、前記外部記憶装置に記憶されている前記スプールファイルから各バンドに対応する描画コマンドを順次読み取り、読み取った1バンド分の該描画コマンドを、前記主記憶装置の一部である描画コマンド記憶領域に記憶する描画コマンド記憶制御手順と、
前記描画コマンド記憶領域に記憶された1バンド分の描画コマンドをイメージデータに変換して、前記主記憶装置の他の一部で1バンド分のイメージデータが展開されるイメージデータ展開領域に、該イメージデータを展開するイメージデータ展開手順と、
を有することを特徴とするプログラムが記憶されている記憶媒体。
A printer host having an external storage device and a main storage device develops a bundle of drawing commands for one page stored as a spool file in the external storage device as image data for each band of a predetermined bandwidth. In the storage medium storing the program,
Each drawing command of the external storage device is stored with reference to the spool file stored in the external storage device, which drawing command of the plurality of drawing commands corresponds to which band. A list creation procedure for creating a band-compatible drawing command list defined by the relationship between the position information indicating the current position and the corresponding band;
In accordance with the band-corresponding drawing command list, the drawing commands corresponding to each band are sequentially read from the spool file stored in the external storage device, and the drawing commands for one band read are part of the main storage device. A drawing command storage control procedure to be stored in the drawing command storage area,
A drawing command for one band stored in the drawing command storage area is converted into image data, and the image data for one band is developed in another part of the main storage device in the image data development area. Image data expansion procedure for expanding image data,
A storage medium storing a program characterized by comprising:
請求項5に記載の記憶媒体において、
複数の描画コマンドのうち、前記描画コマンド記憶領域に一旦記憶されたものであるか、該描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであるかを判断するアクセス判断手順を有し、
前記描画コマンド記憶制御手順は、前記描画コマンドが前記描画コマンド記憶領域に未だ記憶されておらず前記外部記憶装置に記憶されているものであると,前記アクセス判断手順で判断された場合に、前記外部記憶装置にアクセスする、
ことを特徴とするプログラムが記憶されていることを特徴とする記憶媒体。
The storage medium according to claim 5.
It is determined whether a plurality of drawing commands are temporarily stored in the drawing command storage area, or are not yet stored in the drawing command storage area but are stored in the external storage device. Has an access decision procedure,
The drawing command storage control procedure is performed when the access determination procedure determines that the drawing command is not yet stored in the drawing command storage area but is stored in the external storage device. Access external storage,
A storage medium characterized by storing a program characterized by the above.
請求項5及び6のいずれか一項に記載の記憶媒体において、
前記リスト作成手順は、前記バンド対応描画コマンドリストとして、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの開始位置に対応するバンドに、該イメージを示す描画コマンドの開始を関係付け、複数の前記描画コマンドのそれぞれをイメージ展開した際にイメージの終了位置に対応するバンドに、該イメージを示す描画コマンドの終了を関係付けた描画コマンド差分リストを作成する
ことを特徴とするプログラムが記憶されている記憶媒体。
The storage medium according to any one of claims 5 and 6,
The list creation procedure associates the start of a drawing command indicating the image with the band corresponding to the start position of the image when each of the drawing commands is developed as the band-corresponding drawing command list. A program is stored that creates a drawing command difference list that relates the end of a drawing command indicating the image to a band corresponding to the end position of the image when each of the drawing commands is expanded. Storage medium.
JP23269299A 1999-08-19 1999-08-19 Printer host and storage medium storing operation program thereof Expired - Fee Related JP3760686B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP23269299A JP3760686B2 (en) 1999-08-19 1999-08-19 Printer host and storage medium storing operation program thereof
US09/639,886 US6778292B1 (en) 1999-08-19 2000-08-17 Printer host and storage medium storing the operation program therefor
AT00307114T ATE437396T1 (en) 1999-08-19 2000-08-18 PRINTER HOST AND STORAGE MEDIA TO SAVE THE OPERATING PROGRAM
EP00307114A EP1077402B1 (en) 1999-08-19 2000-08-18 Printer host and storage medium storing the operation program therefor
DE60042580T DE60042580D1 (en) 1999-08-19 2000-08-18 Printer host and storage medium to save the operating program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23269299A JP3760686B2 (en) 1999-08-19 1999-08-19 Printer host and storage medium storing operation program thereof

Publications (2)

Publication Number Publication Date
JP2001058429A JP2001058429A (en) 2001-03-06
JP3760686B2 true JP3760686B2 (en) 2006-03-29

Family

ID=16943294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23269299A Expired - Fee Related JP3760686B2 (en) 1999-08-19 1999-08-19 Printer host and storage medium storing operation program thereof

Country Status (1)

Country Link
JP (1) JP3760686B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8149448B2 (en) 2005-08-31 2012-04-03 Sharp Laboratories Of America, Inc. Systems and methods for rapidly creating an image from a document

Also Published As

Publication number Publication date
JP2001058429A (en) 2001-03-06

Similar Documents

Publication Publication Date Title
US6279043B1 (en) Method and system for script access to API functionality
US6778292B1 (en) Printer host and storage medium storing the operation program therefor
JP3760686B2 (en) Printer host and storage medium storing operation program thereof
US20050102327A1 (en) Data file processor, data file processing method and program
JPH09261457A (en) Print controller, data processing method for it and storage medium storing program readable by computer
JP4136282B2 (en) Image processing apparatus, image processing method, and storage medium
JP3883078B2 (en) Graphic image generation method
JP2004258861A (en) Method of processing information
JP2001058430A (en) Printer host and memory medium storing operation program thereof
JP3478696B2 (en) Image processing apparatus and control method thereof
JP2001324975A (en) Image processor
US9361555B2 (en) Method, apparatus and system for rendering an object on a page
JP3692792B2 (en) Print data spooling method, print control apparatus, and recording medium
JP2007122621A (en) Information processor, information processing method
JPH11185019A (en) Device and method for processing image
JP3661433B2 (en) Print data spooling method, print control apparatus, and recording medium
JP4158727B2 (en) Spool method, print control apparatus, and recording medium
US7675642B2 (en) Print apparatus and print method
JP2002091957A (en) Editing device and editing program storage medium
JP3912849B2 (en) Character processing apparatus, character processing method, and recording medium
JP4136505B2 (en) Information processing apparatus, information processing method, computer-readable storage medium, and program
JPH106553A (en) Printer and its control method
JP3812211B2 (en) Image processing device
JP3709608B2 (en) Information processing apparatus and storage medium
JP2001228990A (en) Image processing method, image processor and recording medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050920

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051111

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20051111

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060102

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100120

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110120

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120120

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120120

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130120

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140120

Year of fee payment: 8

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees