JP2004025572A - Printing processing system and printing processing method - Google Patents

Printing processing system and printing processing method Download PDF

Info

Publication number
JP2004025572A
JP2004025572A JP2002183987A JP2002183987A JP2004025572A JP 2004025572 A JP2004025572 A JP 2004025572A JP 2002183987 A JP2002183987 A JP 2002183987A JP 2002183987 A JP2002183987 A JP 2002183987A JP 2004025572 A JP2004025572 A JP 2004025572A
Authority
JP
Japan
Prior art keywords
data
pallet
palette
printing
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002183987A
Other languages
Japanese (ja)
Inventor
Shuji Ozawa
小澤 修司
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 JP2002183987A priority Critical patent/JP2004025572A/en
Publication of JP2004025572A publication Critical patent/JP2004025572A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printing processing system which can carry out a high-speed printing without processing useless palettes even if useless index data are employed as printing data, and to provide a printing processing method. <P>SOLUTION: According to the printing processing system, when the index data are employed as the printing data, palette data are regenerated only by available color IDs in a host computer or in a printer, and then the palette data is changed to image data, to thereby changes the color IDs. In the palette regenerating processing, if the number of bits corresponding to the ID length of each color ID is likely to be contractible, the ID length is processed to a shorter value. In this case, if a plurality of pieces of index data are present in the printing data, provided that a large portion of a color in the palette is commonly used, the index data are synthesized to generate a single palette data. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、インデックスデータを印刷データとして処理可能な印刷システムに関する。
【0002】
【従来の技術】
近年、データ処理システムとして、ホストコンピュータ、あるいはスキャナやデジタルカメラといった画像入力装置と双方向インターフェース(例えばIEEE1284.4、IEEE1394、USB、IPX等のプロトコルで接続されるネットワーク)を介して接続されるプリンタとから構成され、ホストから入力される出力情報をプリンタ側で解析して、プリンタエンジン、例えばレーザビームプリンタの出力データとしてビットマップデータを展開し(以後レンダリングと表記)、この展開データに基づいて変調されたレーザビームを感光ドラムに走査露光して画像記録を行うものが知られている。
【0003】
また、プリンタがエミュレーション機能を備える場合には、複数のプリンタ制御言語系を処理可能に構成されており、使用者が実行するアプリケーションにしたがってエミュレーションモードとネイティブモードを切り替えながらプリント処理を実行できるように構成されており、プリンタにはプリンタの制御言語を切り換える為のスイッチや切り換え指示を行うカードスロットがあらかじめ設けられている。
【0004】
近年、高階調をもったイメージデータを、パレット情報とそのパレット情報のIDを記述することによりイメージデータを表現する方法が使われることがある(以後インデックスイメージと記述)。色情報をイメージデータと独立してもつことにより、パレットを変えることにより間単位色空間を変換できたり、パレットを複数のイメージデータで共通使用することにより、イメージデータ間での色空間の統一を容易にする、またパレットの色数を限定してID長を短くすることによりデータ容量を少なくすることができるといったメリットが存在する。しかしながら、データ量を少なくするために各イメージデータの為にパレットを最適化することはデータ間の共有化においてはデメリットであり、例えば10色前後しか用いないイメージデータも、100色前後用いているデータも、扱いやすい8ビット(256色)や16ビット(65535色)といったID長のパレットを共通して用いるのが普通である。そのため印刷データとしてインデックデータが送られてきた場合、実際には使われてないIDのパレットデータまで送られてくるため、無駄なデータ転送や印刷装置内で無駄なデータ処理や保存のための無駄なメモリ使用が発生して印刷速度の低下が起こるといった問題点がある。
【0005】
【発明が解決しようとする課題】
このように上記従来例においては、印刷データとしてインデックデータが送られてきた場合、実際には使われてないIDのパレットデータまで送られてくるため、無駄なデータ転送や印刷装置内で無駄なデータ処理や保存のための無駄なメモリ使用が発生して印刷速度の低下が起こるといった問題点がある。
【0006】
本発明は、無駄なインデックスデータが印刷データとして用いられたときも、無駄なパレットを処理せずに、高速に印刷を行うことができる印刷処理システム及び印刷処理方法を提供することを目的としている。
【0007】
【課題を解決するための手段】
上記目的を達成するため、本発明は以下に示す工程を備える。
【0008】
インデックスデータが印刷データとして用いられた場合、ホストコンピュータまたは印刷装置内において、使用されている色IDのみでのパレットデータを再生成し、イメージデータ変更されて色IDに変更を行う処理を有する。
【0009】
前記パレット再生成処理において、ID長のビット数が縮小できそうな場合は、ID長を短くする処理を有する。
【0010】
印刷データ無いに複数のインデックスデータが存在する場合、パレット内の色が共通利用されている部分が多い場合においては、合成して1つのパレットデータを生成する処理を有する。
【0011】
【発明の実施の形態】
本実施例を適用するに好適なレーザビームプリンタの構成について説明する。なお、本実施例を適用するプリンタは、レーザビームプリンタおよびインクジェットプリンタに限られるものでなく、他のプリント方式のプリンタでもよいことは言うまでもない。
【0012】
図1は本発明を適用可能な第1の出力装置の構成を示す断面図であり、例えばレーザビームプリンタ(LBP)の場合を示す。
【0013】
図において、100はLBP本体であり、外部に接続されているホストコンピュータから供給される印刷情報(文字コード等)やフォーム情報あるいはマクロ命令等を入力して記憶するとともに、それらの情報にしたがって対応する文字パターンやフォームパターン等を作成し、記録媒体である記録紙等に像を形成する。112は操作の為のスイッチおよびLED表示器等が配されている操作パネル、101はLBP本体100全体の制御およびホストコンピュータから供給される文字情報等を解析するプリンタ制御ユニットである。このプリンタの制御ユニット101は、主に文字情報を対応する文字パターンのビデオ信号に変換してレーザドライバ102出力する。レーザドライバ102は半導体レーザ103を駆動する為の回路であり、入力されたビデオ信号に応じて半導体レーザ103から発射されるレーザ光104をオン・オフ切り換えする。レーザ光104は回転多面鏡105で左右方向に振らされて静電ドラム106上を走査露光する。これにより、静電ドラム106上には文字パターンの静電潜像が形成されることになる。この潜像は、静電ドラム106周囲に配設された現像ユニット107により現像された後、記録紙に転写される。この記録紙にはカットシートを用い、カットシート記録紙はLBP100に装着した用紙カセット108に収納され、給紙ローラ111により装置内に取り込まれ、静電ドラム106に供給される。また、LBP本体100には、図示しないカードスロットを少なくとも1個以上備え、内臓フォントに加えてオプションフォントカード、言語系の異なる制御カード(エミュレーションカード)を接続できるように構成されている。
【0014】
図2は本発明の実施例を示すプリンタ制御システムの構成を説明するブロック図である。ここでは、レーザビームプリンタ(図1)を例に説明する。なお、本発明の機能が実行されるのであれば、単体の機器であっても複数の機器からなるシステムであっても、ホストコンピュータを経由しないホストレスシステムやLAN等のネットワークを介して処理が行われるシステムであっても本発明を適用できることは言うまでもない。
【0015】
図において、200はホストコンピュータで、ROM204のプログラム用ROMに記憶された文書処理プログラム等に基づいて図形、イメージ、文字、表(表計算等を含む)等が混在して文書を実行するCPU202を備え、システムデバイス205に接続される各デバイスをCPU202が総括的に制御する。また、後述においては印刷装置内の処理として説明されているが本発明における図6〜図7示される圧縮処理および合成処理はフロッピーディスクやCD−ROMあるいはDVD−ROMといったメディアで供給され実行されてもよい。
【0016】
また、このROM204のプログラム用のROMには、CPU202の制御プログラム等を記憶し、ROM204のフォント用ROMには上記文書処理の際に使用するフォントデータ等を記憶し、ROM204のデータ用ROMは上記文書処理等を行う際に使用する各種データを記憶する。203はRAMでCPU202の主メモリ、ワークエリア等として機能する。206はキーボードコントローラ(KBC)で、キーボード210や不図示のポインティングデバイスからのキー入力を制御する。207はCRTコントローラ(CRTC)で、CRTディスプレイ(CRT)211の表示を制御する。208はメモリコントローラ(MC)で、ブートプログラム、種々のアプリケーション、フォントデータ、ユーザファイル、編集ファイル用を記憶するハードディスク(HD)、フロッピーディスク(FD)等の外部メモリ212とのアクセスを制御する。
【0017】
209、226はデバイス間のI/ Oを制御する処理部で、具体例としてIEEE1394の様なインターフェースが挙げられるが、双方向通信が可能なインターフェースであれば、その種類は問わない。また、プリンタ220において、222はプリンタCPUで、ROM224のプログラム用ROMに記憶された制御プログラム等或いは外部メモリ231に記憶された制御プログラム等に基づいてシステムバス225に接続される各種のデバイスとのアクセスを総括的に制御し、印刷部インターフェース227を介して接続される印刷部(プリンタエンジン)228に出力情報としての画像信号を出力する。
【0018】
また、このROM224のプログラムROMには、図5〜図7に示されるフローチャートで示されるようなCPU222の制御プログラム等を記憶する。ROM224のデータ用ROMにはハードディスク等の外部メモリ2031が無いプリンタの場合には、ホストコンピュータ上で利用される情報等を記憶している。CPU222は入力部226を介してホストコンピュータとの通信処理が可能となっており、プリンタ内の情報等をホストコンピュータ200に通知可能に構成されている。223はCPU222の主メモリ、ワークエリア等として機能するRAMで、図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張できるように設計されている。
【0019】
RAM223は、印刷データの格納、出力情報展開、環境データ格納領域、NVRAM等に用いられる。前述したハードディスク(HD)、ICカード等の外部メモリ231は、メモリコントローラ(MC)228によりアクセスを制御される。リプリント用のレンダリング済み画像データのデータ量が多い場合には、外部メモリに接続されたHD内に格納してもよい。230は前述した操作パネルで操作の為のスイッチおよびLED表示機機等が配されている。
【0020】
また、前述した外部メモリは1個に限らず、少なくとも1個以上備え、内臓フォントに加えてオプションカード、言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリを複数接続できるように構成されていてもよい。さらに、図示しないNVRAMを有し、操作パネル230からのプリンタモード設定情報を記憶するようにしてもよい。
【0021】
図3は本発明の実施例におけるパレットテーブルの圧縮の様子を図示した図である。300は圧縮されるまえのパレットテーブルである。301はパレットIDであり、本実施例においてのID長は8 ビットであり、256色持つことが可能である。302は実際の色を示す値が記述されている。色の表現方法は本発明において特に種類を選ばないが、例としてあげれば一般的に使用される、RGBをそれぞれ8ビット長で表現した24ビットカラーデータや、色成分をもたず輝度のみ持ったデータでも良い。303はイメージデータで304のパレットIDによりイメージデータを表現している。
【0022】
305は303のイメージにおいて使用されているパレットIDのみを集めた中間テーブルで、本例では0、3、5のパレットIDのみ使用されていたと仮定している。306は元のパレットID。307は圧縮後に変更されるパレットIDである。311は圧縮後のパレットIDテーブルであり、3色しかIDが必要が無いためID長を4ビットに縮小している。309は圧縮後のパレットIDテーブルに対応したイメージデータで、ID長が4ビットに変更されたことにより310のパレットID長も4ビットに変換されている。ID長が4ビットになることによりイメージデータのサイズは元のイメージデータのサイズの半分にすることができるため、メモリ効率が向上する。
【0023】
以上の処理はホストコンピュータ、印刷装置どちらにおいても行うことが可能だが、印刷装置で行う場合においては、ホストコンピュータからの転送時においては無駄なデータが転送されることになるので、ホストコンピュータにおいて処理した方が効果が高い。
【0024】
図4は本発明の実施例におけるパレットIDテーブルの合成を図示した図である。
【0025】
400と402はそれぞれ合成前のパレットIDテーブルで、ID長はそれぞれ8ビット長である。401、403は400、402のパレットIDから使用されているパレットIDを抜き出した中間テーブルである。この時点で図3の説明した処理を適用すれば4ビット長のIDテーブルが2つ生成されることになるが、401のパレットID5と403のパレットID1の用に、同じ色を表現しているパレットIDを統一すれば、404のパレットIDテーブルのように4ビット長のパレットIDテーブル1つのみ作れば良いことが解る。この処理によりパレットIDテーブルの個数が減らすことができ、管理の簡易化、メモリ効率の向上を実現することができる。
【0026】
図5は本発明の実施例における印刷装置内の全体の処理の流れを示すフローチャートである。本実施例においては印刷装置において全ての処理を実施しているが、前述のように本発明の処理はホストコンピュータにおいて処理しても良い。
【0027】
501において印刷データがホストコンピュータから送信されるのを待つ。502において印刷装置内で用いられるような中間データに変換する。503においてパレットIDテーブルの圧縮処理を行う。504パレットIDテーブルの合成処理を行う。505においてプリント処理を行い実際の紙への出力を行う。506において印刷データに含まれる全てのページに対して502から505の処理が行われるように判断する。
【0028】
図6は図5のフローチャートにおける503のパレットIDテーブルの圧縮処理の流れの詳細を示すフローチャートである。
【0029】
601において中間データに含まれる全てにデータに関して、インデックスイメージであるか判断する。インデックスデータであった場合、
602から608の処理を実行しパレットIDテーブルおよびイメージデータの圧縮を行う。602において情報の初期化を行う。使用されているパレットIDが多い場合においては圧縮の効果が少ない、その場合においては圧縮処理を行う分だけ無駄な処理時間が掛かってしまう。そのためLimit値以上のパレットIDが使用されているときは圧縮を行わないと判断する。図3や図4の例で言えば元のパレットID長が8ビットならばLimit値は16個(4ビット長のパレットIDテーブルに収まる)と設定するのが妥当であろう。Currentは使用されているパレットIDをカウントする変数である。初期化が終わったら603においてイメージデータの全てのID値に関して処理するように判断する。
【0030】
604において既にカウントしたパレットID値で無い時はは605において中間テーブルに登録してCurrentに1を足す。606においてCurrent値がLimit値を超えたか判断する。超えた場合は現在の処理を破棄して、次のインデックスイメージに処理を移す。603においてイメージデータ中の全てのIDに処理を終了して圧縮可能な場合は607において、中間テーブルに元でいてイメージデータのパレットIDを変換する。608において、圧縮前のパレットIDテーブルとイメージデータを破棄し、圧縮後のパレットIDテーブルとイメージデータの登録を行う。以上の処理によりインデックスイメージの圧縮が可能になる。
【0031】
図7はパレットIDテーブルの合成処理の流れを示すフローチャートである。本実施例においては合成後のパレットID長は4ビット(16個)とするが、本発明がこの数値でなければならない訳では無いことは言うまでもない。
【0032】
701においてページ内の全てのインデックスイメージについて判断する。702においてパレットIDテーブルが16個以上か判断する。16個以上の場合は合成できないので、何もせずに次のインデックスイメージに処理を移す。16個以下であった場合は703において情報の初期化を行う。Limit はパレットID長が4ビットつまり16個までということを示している。Current は現在の合成テーブルに入ったパレットID数である。703においてパレットIDテーブルに含まれている全てのパレットIDに対して、704から705の処理を行うように判断する。705においてパレットIDの値を見て、未登録であったら、706において合成テーブル用の中間テーブルに登録し、Current に1追加する。707においてCurrent がLimit 以上でなければ次のパレットIDを処理する。Current がLimit 以上だった場合、708において現在処理しているパレットIDテーブルのパレットIDを全て処理終了しているか判断する。
【0033】
処理が終了していないパレットIDがあるインデックスイメージは、必要なパレットIDが足りないため合成出来ない。よって709において中間テーブルから現在処理しているパレットIDテーブルに関するパレットIDを削除し、全てのパレットIDが未処理の状態に戻し、次に生成する合成パレットIDテーブルに加える。710において合成パレットIDテーブルを作成する。711において合成された全てのインデックスイメージのイメージデータを合成したパレットIDの書き換える。
【0034】
以上の処理まで1つの合成処理で、全てのインデックスイメージが終了するまで繰り返す。701において全てのインデックステーブルが処理された判断されたら、712においてCurrent が0であるか判断する。0でない場合は合成途中であるので、713において合成オアレットIDテーブルを生成する。714において713において生成された合成テーブルに関係する全てのイメージデータのIDを変換する。上記の処理によれば合成されるインデックスイメージは2個に限らず、パレットIDが16個以内であれば何個でも合成できる。
【0035】
また、本実施例に用いたアルゴリズムは最小限の処理ステップで合成を行うためであるが、本実施例はこのアルゴリズムに依存するものでなく合成テーブル数を最小限にする等のアルゴリズムであってもよいことは言うまでもない。
【0036】
【発明の効果】
以上の説明で明らかなように、本発明によれば、インデックスデータが印刷データとして用いられた場合、ホストコンピュータまたは印刷装置内において、使用されている色IDのみでのパレットデータを再生成し、イメージデータ変更されて色IDに変更を行う処理を有するため、無駄なインデックスデータが印刷データとして用いられたときも、無駄なパレットを処理せずに、高速に印刷を行うことができるという効果が得られる。
【図面の簡単な説明】
【図1】本実施例における印刷装置の断面図である。
【図2】本実施例における印刷装置のブロック構成図である。
【図3】本発明の実施例におけるパレットテーブルの圧縮の様子を図示した図である。
【図4】本発明の実施例におけるパレットIDテーブルの合成を図示した図である。
【図5】本発明の実施例における印刷装置内の全体の処理の流れを示すフローチャートである。
【図6】パレットIDテーブルの圧縮処理の流れの詳細を示すフローチャートである。
【図7】パレットIDテーブルの合成処理の流れを示すフローチャートである。
【符号の説明】
100   LBP本体
101   プリンタ制御ユニット
102   レーザドライバ
103   半導体レーザ
104   レーザ光
106   静電ドラム
107   現像ユニット
108   用紙カセット
112   操作パネル
200   ホストコンピュータ
202   CPU
203   RAM
204   ROM
205   システムデバイス
206   キーボードコントローラ
208   メモリコントローラ
220   プリンタ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a printing system that can process index data as print data.
[0002]
[Prior art]
2. Description of the Related Art In recent years, as a data processing system, a printer connected via a bidirectional interface (for example, a network connected by a protocol such as IEEE1284.4, IEEE1394, USB, IPX) to a host computer or an image input device such as a scanner or a digital camera. The printer analyzes the output information input from the host, develops bitmap data as output data of a printer engine, for example, a laser beam printer (hereinafter referred to as rendering), and based on the developed data, 2. Description of the Related Art There is known a device that scans and exposes a modulated laser beam to a photosensitive drum to record an image.
[0003]
When the printer has an emulation function, it is configured to be able to process a plurality of printer control language systems so that the printing process can be executed while switching between the emulation mode and the native mode according to the application executed by the user. The printer is provided with a switch for switching the control language of the printer and a card slot for giving a switching instruction in advance.
[0004]
In recent years, a method of expressing image data having high gradation by describing palette information and an ID of the palette information is sometimes used (hereinafter referred to as an index image). By having the color information independent of the image data, the unit color space can be converted by changing the palette, and the color space can be unified between the image data by using the palette commonly for multiple image data. There is a merit that the data capacity can be reduced by simplifying the ID number and shortening the ID length by limiting the number of colors of the palette. However, optimizing the palette for each image data in order to reduce the data amount is disadvantageous in sharing data, and for example, image data using only around 10 colors is used around 100 colors. For data, it is common to use a palette having an ID length such as 8 bits (256 colors) or 16 bits (65535 colors) that is easy to handle. For this reason, when index data is sent as print data, pallet data with an ID that is not actually used is also sent, so that useless data transfer, useless data processing in the printing device, and uselessness for saving are performed. However, there is a problem that the use of an excessive memory causes a reduction in printing speed.
[0005]
[Problems to be solved by the invention]
As described above, in the above-described conventional example, when index data is transmitted as print data, pallet data having an ID that is not actually used is also transmitted. There is a problem that useless memory is used for data processing and storage, and the printing speed is reduced.
[0006]
An object of the present invention is to provide a print processing system and a print processing method that can perform high-speed printing without processing useless pallets even when useless index data is used as print data. .
[0007]
[Means for Solving the Problems]
In order to achieve the above object, the present invention includes the following steps.
[0008]
When the index data is used as print data, the host computer or the printing apparatus regenerates pallet data using only the used color ID, and changes the image data to change the color ID.
[0009]
In the pallet regenerating process, when the number of bits of the ID length is likely to be reduced, a process for shortening the ID length is provided.
[0010]
In the case where a plurality of index data exist without print data, and when there are many portions where colors in the pallet are commonly used, there is a process of generating one pallet data by combining them.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
A configuration of a laser beam printer suitable for applying this embodiment will be described. The printer to which the present embodiment is applied is not limited to a laser beam printer and an ink jet printer, and it goes without saying that a printer of another printing method may be used.
[0012]
FIG. 1 is a sectional view showing a configuration of a first output device to which the present invention can be applied, and shows a case of, for example, a laser beam printer (LBP).
[0013]
In the figure, reference numeral 100 denotes an LBP main body, which inputs and stores print information (character codes, etc.), form information, macro instructions, and the like supplied from an externally connected host computer, and responds according to the information. A character pattern, a form pattern, and the like are created, and an image is formed on a recording medium such as recording paper. Reference numeral 112 denotes an operation panel on which switches for operation and an LED display are arranged. Reference numeral 101 denotes a printer control unit that controls the entire LBP main body 100 and analyzes character information and the like supplied from a host computer. The control unit 101 of the printer mainly converts character information into a video signal of a corresponding character pattern and outputs the video signal to a laser driver 102. The laser driver 102 is a circuit for driving the semiconductor laser 103, and switches on / off a laser beam 104 emitted from the semiconductor laser 103 according to an input video signal. The laser beam 104 is swung in the left-right direction by the rotary polygon mirror 105 to scan and expose the electrostatic drum 106. As a result, an electrostatic latent image of a character pattern is formed on the electrostatic drum 106. This latent image is developed by a developing unit 107 provided around the electrostatic drum 106 and then transferred to a recording sheet. A cut sheet is used as the recording paper. The cut sheet recording paper is stored in a paper cassette 108 mounted on the LBP 100, taken into the apparatus by a paper feed roller 111, and supplied to the electrostatic drum 106. The LBP body 100 is provided with at least one or more card slots (not shown) so that an optional font card and a control card (emulation card) having a different language can be connected in addition to the built-in fonts.
[0014]
FIG. 2 is a block diagram illustrating the configuration of a printer control system according to an embodiment of the present invention. Here, a laser beam printer (FIG. 1) will be described as an example. As long as the functions of the present invention are executed, processing can be performed via a network such as a hostless system or a LAN that does not pass through a host computer, whether it is a single device or a system including a plurality of devices. It goes without saying that the present invention can be applied to a system to be performed.
[0015]
In the figure, a host computer 200 includes a CPU 202 for executing a document in which graphics, images, characters, tables (including spreadsheets, etc.) are mixed based on a document processing program or the like stored in a program ROM of a ROM 204. The CPU 202 generally controls each device connected to the system device 205. Although described below as processing in the printing apparatus, the compression processing and synthesis processing shown in FIGS. 6 to 7 in the present invention are supplied and executed by a medium such as a floppy disk, CD-ROM, or DVD-ROM. Is also good.
[0016]
Further, a control program of the CPU 202 and the like are stored in the ROM for program of the ROM 204, font data and the like used in the above-described document processing are stored in the font ROM of the ROM 204, and the data ROM of the ROM 204 is stored in the ROM of the ROM 204. Various data used when performing document processing or the like is stored. A RAM 203 functions as a main memory, a work area, and the like for the CPU 202. A keyboard controller (KBC) 206 controls a key input from a keyboard 210 or a pointing device (not shown). A CRT controller (CRTC) 207 controls display on a CRT display (CRT) 211. A memory controller (MC) 208 controls access to an external memory 212 such as a hard disk (HD) for storing boot programs, various applications, font data, user files, and editing files, or a floppy disk (FD).
[0017]
Reference numerals 209 and 226 denote processing units for controlling I / O between the devices. Specific examples include an interface such as IEEE1394, but any type of interface can be used as long as it is an interface capable of bidirectional communication. In the printer 220, a printer CPU 222 communicates with various devices connected to the system bus 225 based on a control program or the like stored in a program ROM of the ROM 224 or a control program or the like stored in the external memory 231. It controls the access as a whole and outputs an image signal as output information to a printing unit (printer engine) 228 connected via a printing unit interface 227.
[0018]
The program ROM of the ROM 224 stores a control program of the CPU 222 as shown in the flowcharts of FIGS. In the case of a printer without the external memory 2031 such as a hard disk, the data ROM of the ROM 224 stores information used on the host computer. The CPU 222 can perform communication processing with the host computer via the input unit 226, and can notify the host computer 200 of information in the printer and the like. A RAM 223 functions as a main memory, a work area, and the like of the CPU 222, and is designed so that the memory capacity can be expanded by an optional RAM connected to an additional port (not shown).
[0019]
The RAM 223 is used for storing print data, developing output information, storing an environment data, an NVRAM, and the like. The access to the external memory 231 such as a hard disk (HD) and an IC card is controlled by a memory controller (MC) 228. When the data amount of the rendered image data for reprint is large, the image data may be stored in the HD connected to the external memory. Reference numeral 230 denotes the above-described operation panel on which switches for operation, an LED display device, and the like are arranged.
[0020]
The above-mentioned external memory is not limited to one, and at least one external memory is provided. In addition to the built-in fonts, an option card and a plurality of external memories storing programs for interpreting printer control languages of different languages can be connected. It may be. Further, an NVRAM (not shown) may be provided to store the printer mode setting information from the operation panel 230.
[0021]
FIG. 3 is a diagram illustrating a state of compression of the pallet table in the embodiment of the present invention. Reference numeral 300 denotes a pallet table before being compressed. A palette ID 301 has an ID length of 8 bits in this embodiment, and can have 256 colors. Reference numeral 302 denotes a value indicating an actual color. The color expression method is not particularly limited in the present invention, but, for example, as an example, generally used 24-bit color data in which each of RGB is represented by an 8-bit length, or has only luminance without color components. Data. Reference numeral 303 denotes image data, which expresses the image data by a pallet ID 304.
[0022]
Reference numeral 305 denotes an intermediate table in which only pallet IDs used in the image 303 are collected. In this example, it is assumed that only pallet IDs 0, 3, and 5 are used. 306 is the original pallet ID. Reference numeral 307 denotes a pallet ID changed after compression. Reference numeral 311 denotes a palette ID table after compression. Since only three colors need an ID, the ID length is reduced to 4 bits. Reference numeral 309 denotes image data corresponding to the compressed pallet ID table. The pallet ID length of 310 is also converted to 4 bits by changing the ID length to 4 bits. By setting the ID length to 4 bits, the size of the image data can be reduced to half of the size of the original image data, thereby improving the memory efficiency.
[0023]
The above processing can be performed by both the host computer and the printing device. However, if the processing is performed by the printing device, useless data will be transferred at the time of transfer from the host computer. The effect is higher.
[0024]
FIG. 4 is a diagram illustrating the synthesis of the pallet ID table in the embodiment of the present invention.
[0025]
Reference numerals 400 and 402 denote pallet ID tables before combination, respectively, and each ID length is 8 bits. Reference numerals 401 and 403 denote intermediate tables obtained by extracting used pallet IDs from the pallet IDs 400 and 402. At this point, if the processing described in FIG. 3 is applied, two 4-bit ID tables are generated. The same color is expressed for palette ID 5 of 401 and palette ID 1 of 403. It can be seen that if the pallet IDs are unified, only one 4-bit pallet ID table, such as the pallet ID table 404, needs to be created. By this processing, the number of pallet ID tables can be reduced, and management can be simplified and memory efficiency can be improved.
[0026]
FIG. 5 is a flowchart showing the flow of the entire processing in the printing apparatus according to the embodiment of the present invention. In this embodiment, all processes are performed in the printing apparatus, but the processes of the present invention may be performed in the host computer as described above.
[0027]
At 501, the process waits for print data to be transmitted from the host computer. At 502, the data is converted into intermediate data as used in the printing apparatus. In step 503, the pallet ID table is compressed. The 504 palette ID table is synthesized. At 505, print processing is performed and output to actual paper is performed. In step 506, it is determined that the processing of steps 502 to 505 is performed for all pages included in the print data.
[0028]
FIG. 6 is a flowchart showing details of the flow of the compression processing of the pallet ID table 503 in the flowchart of FIG.
[0029]
At 601, it is determined whether or not all data included in the intermediate data is an index image. If it is index data,
The processing of 602 to 608 is executed to compress the pallet ID table and the image data. At 602, information is initialized. If the number of pallet IDs used is large, the effect of compression is small. In that case, useless processing time is required for the compression processing. Therefore, when a palette ID equal to or more than the Limit value is used, it is determined that compression is not performed. In the examples of FIGS. 3 and 4, if the original palette ID length is 8 bits, it is appropriate to set the limit value to 16 (fits in a 4-bit palette ID table). Current is a variable for counting the pallet IDs used. When the initialization is completed, it is determined in 603 that processing is performed on all ID values of the image data.
[0030]
If the pallet ID value is not already counted in 604, it is registered in the intermediate table in 605, and 1 is added to Current. At 606, it is determined whether the Current value has exceeded the Limit value. If it exceeds, the current process is discarded and the process moves to the next index image. If the process is completed for all IDs in the image data in 603 and compression is possible, the palette ID of the image data is converted based on the intermediate table in 607. In 608, the pallet ID table and image data before compression are discarded, and the pallet ID table and image data after compression are registered. With the above processing, the index image can be compressed.
[0031]
FIG. 7 is a flowchart showing the flow of the pallet ID table combining process. In the present embodiment, the pallet ID length after combination is 4 bits (16), but it is needless to say that the present invention does not have to use this numerical value.
[0032]
At 701, a determination is made for all index images in the page. At 702, it is determined whether there are 16 or more pallet ID tables. If the number of images is 16 or more, the image cannot be synthesized. Therefore, the processing is shifted to the next index image without doing anything. If the number is less than 16, the information is initialized in 703. Limit indicates that the pallet ID length is 4 bits, that is, up to 16. Current is the number of pallet IDs in the current synthesis table. In 703, it is determined that the processes from 704 to 705 are performed for all pallet IDs included in the pallet ID table. In step 705, the pallet ID value is checked. If the pallet ID has not been registered, the pallet ID is registered in the intermediate table for the combination table in step 706, and 1 is added to Current. If Current is not equal to or greater than Limit in 707, the next pallet ID is processed. If Current is equal to or greater than Limit, it is determined in 708 whether all pallet IDs of the pallet ID table currently being processed have been processed.
[0033]
An index image having a pallet ID for which processing has not been completed cannot be synthesized because the required pallet ID is insufficient. Therefore, in 709, the pallet ID relating to the pallet ID table currently being processed is deleted from the intermediate table, all pallet IDs are returned to the unprocessed state, and the pallet ID is added to the next generated pallet ID table. At 710, a combined pallet ID table is created. In step 711, the palette ID obtained by combining the image data of all the index images combined is rewritten.
[0034]
The above processing is repeated by one combining processing until all index images are completed. If it is determined in 701 that all index tables have been processed, it is determined in 712 whether Current is 0. If it is not 0, the combining is in progress, and a combined oret ID table is generated at 713. At 714, the IDs of all the image data related to the combination table generated at 713 are converted. According to the above process, the number of index images to be combined is not limited to two, and any number of index images can be combined as long as the number of pallet IDs is 16 or less.
[0035]
The algorithm used in the present embodiment is for performing the synthesis with the minimum number of processing steps, but the present embodiment does not depend on this algorithm, and is an algorithm for minimizing the number of synthesis tables. Needless to say, it is good.
[0036]
【The invention's effect】
As apparent from the above description, according to the present invention, when the index data is used as the print data, the host computer or the printing apparatus regenerates the pallet data with only the used color ID, Since there is a process of changing the color ID after the image data is changed, even when useless index data is used as print data, it is possible to perform high-speed printing without processing useless pallets. can get.
[Brief description of the drawings]
FIG. 1 is a sectional view of a printing apparatus according to an embodiment.
FIG. 2 is a block diagram of a printing apparatus according to the embodiment.
FIG. 3 is a diagram illustrating a state of compression of a pallet table in the embodiment of the present invention.
FIG. 4 is a diagram illustrating the synthesis of a pallet ID table according to the embodiment of the present invention.
FIG. 5 is a flowchart illustrating a flow of overall processing in the printing apparatus according to the embodiment of the present invention.
FIG. 6 is a flowchart showing details of the flow of a pallet ID table compression process.
FIG. 7 is a flowchart illustrating a flow of a combining process of a pallet ID table.
[Explanation of symbols]
100 LBP main body 101 Printer control unit 102 Laser driver 103 Semiconductor laser 104 Laser beam 106 Electrostatic drum 107 Developing unit 108 Paper cassette 112 Operation panel 200 Host computer 202 CPU
203 RAM
204 ROM
205 System device 206 Keyboard controller 208 Memory controller 220 Printer

Claims (3)

インデックスデータが印刷データとして用いられた場合、ホストコンピュータまたは印刷装置内において、使用されている色IDのみでのパレットデータを再生成し、イメージデータ変更されて色IDに変更を行う処理を有することを特徴とする印刷処理システム。When index data is used as print data, the host computer or the printing apparatus must have a process of regenerating pallet data using only the used color ID and changing the image data to change the color ID. A print processing system characterized by the following. 前記パレット再生成処理において、ID長のビット数が縮小できそうな場合は、ID長を短く処理することを特徴とする印刷処理方法。In the pallet regeneration process, if the number of bits of the ID length is likely to be reduced, the ID length is shortened. 印刷データ無いに複数のインデックスデータが存在する場合、パレット内の色が共通利用されている部分が多い場合においては、合成して1つのパレットデータを生成する処理を行うことを特徴とする請求項2記載の印刷処理方法。10. A method according to claim 8, wherein when there are a plurality of index data without print data, and when there are many portions where colors in the palette are commonly used, a process of generating one palette data is performed. 2. The print processing method according to 2.
JP2002183987A 2002-06-25 2002-06-25 Printing processing system and printing processing method Pending JP2004025572A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002183987A JP2004025572A (en) 2002-06-25 2002-06-25 Printing processing system and printing processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002183987A JP2004025572A (en) 2002-06-25 2002-06-25 Printing processing system and printing processing method

Publications (1)

Publication Number Publication Date
JP2004025572A true JP2004025572A (en) 2004-01-29

Family

ID=31180001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002183987A Pending JP2004025572A (en) 2002-06-25 2002-06-25 Printing processing system and printing processing method

Country Status (1)

Country Link
JP (1) JP2004025572A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009159493A (en) * 2007-12-27 2009-07-16 Canon Inc Conversion table compression method and program
US9400948B2 (en) 2012-12-04 2016-07-26 Canon Kabushiki Kaisha Image processing for rendering an indexed color image

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009159493A (en) * 2007-12-27 2009-07-16 Canon Inc Conversion table compression method and program
US9400948B2 (en) 2012-12-04 2016-07-26 Canon Kabushiki Kaisha Image processing for rendering an indexed color image

Similar Documents

Publication Publication Date Title
JP3262492B2 (en) Color printer control device, color printer control method, and storage medium storing control program
JP3780103B2 (en) Information processing apparatus, information processing method, storage medium, and printing system
JP3711810B2 (en) Image conversion apparatus, storage medium, and image conversion method
JPH113187A (en) Print control system
JP2006244248A (en) Image processing device, image processing method, and program for executing image processing method
JP2004025572A (en) Printing processing system and printing processing method
JP2002187317A (en) Printing job producing apparatus, printing data producing apparatus, printing system, printing job producing method, printing data producing method, and memory medium
JP2005070957A (en) Conversion control unit and conversion control program
JP4706884B2 (en) Image processing apparatus, image processing program, and printing apparatus
JPH10320136A (en) Printer system, printing control method and computer readable memory
JP2006031376A (en) Image processor and color conversion method
JP2004030386A (en) Image processing method and image processor
JP5471696B2 (en) Image processing apparatus and image processing program
JP2004230726A (en) Processing method of plotting and plotting processor
JP2006079475A (en) Print processing system, program and recording medium
JP2005049949A (en) Print controller and its control method
JPH11110151A (en) Printer driver, computer having printer driver, and computer system
JP2000155663A (en) Printing controller, data processing method for the printing controller and storage medium stored with computer readable program
JP3728083B2 (en) Image output apparatus and image output method
JP2003050683A (en) Image processor and image processing method its program and storage medium
JP2002211052A (en) Printing control device, method of controlling printing, and computer-readable memory medium containing program for executing the method
JP3610307B2 (en) Image forming method and apparatus
JP2004326266A (en) Print control method, information processing device, and printer
JPH11179975A (en) Color printer control device
JP2002132466A (en) Image output unit, image output system, image processing method and storage medium