JP2004268553A - Printing device - Google Patents

Printing device Download PDF

Info

Publication number
JP2004268553A
JP2004268553A JP2003066430A JP2003066430A JP2004268553A JP 2004268553 A JP2004268553 A JP 2004268553A JP 2003066430 A JP2003066430 A JP 2003066430A JP 2003066430 A JP2003066430 A JP 2003066430A JP 2004268553 A JP2004268553 A JP 2004268553A
Authority
JP
Japan
Prior art keywords
attribute
bit
image
attribute bits
bits
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.)
Withdrawn
Application number
JP2003066430A
Other languages
Japanese (ja)
Inventor
Naohiro Isshiki
直広 一色
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 JP2003066430A priority Critical patent/JP2004268553A/en
Publication of JP2004268553A publication Critical patent/JP2004268553A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Color, Gradation (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a high image quality printout by suppressing the increase of the compression rate of the raster data for background more than necessary at the time of a fall back and by generating exact attribute bits. <P>SOLUTION: This printing device has a constitution described below. The printing device has a predetermined attribute bit of a high compression rate provided in advance. A means for replacing a retreated attribute bit with the predetermined attribute bit is provided. Further, the device comprises an attribute bit synthesizing means for generating a new attribute bit by combining attribute bit formed at a fall back and the retreated bit. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、双方向性インターフェースを介してネットワーク上の複数のホストコンピュ−タ及び他のプリンタ等出力装置に接続されるプリンタ等の印刷装置及び該装置における出力方法に関する。
【0002】
【従来の技術】
近年、情報処理システムは一般化され広く使われるようになってきている。このような状況の中、前記情報処理システム上で作成される多くの電子ドキュメントが作成され、カラー印刷装置への出力要求は増大する傾向にあり、カラー印刷装置の高速化、高画質化が望まれている。
【0003】
高速化を行う手法としては、レンダリング用専用ハード(ハードレンダラー)を使用するという方法がある。従来、ページ記述言語(PDL)を解釈しラスタイメージを作成するシステムでは、PDLを解釈した上で中間言語であるディスプレイリスト(DL)を作成し、このDLからラスタイメージ変換(レンダリング)を行うのが一般的である。この一連の処理の中で、レンダリング部分に関しては非常に処理が重いが比較的ハード化しやすいため、レンダリング用専用ハード(ハードレンダラー)としてシステムに実装することにより高速化を行うことができる。しかしながら、このハードレンダラーはハードであるので、
1.予め定められた限定されたメモリ空間しかアクセスできない
2.レンダリングする領域(通常は1ページ)のDLをすべてこの限定された領域に収めなければならない
3.その他、ハードウェアーならではの各種ワーク用テーブルに上限が存在するといった制約がある。この制約を回避する為にフォールバックと呼ばれる処理が行われる。フォールバックは、DLのサイズがハードレンダラーのアクセス可能なメモリ空間を超えた場合やワーク用テーブルを超えた場合、一度そこまでのDLをレンダリングしてラスタイメージとし、そこまで作成したDLを一度クリアする。このラスタイメージを描画エリアのバックグラウンドイメージとして再びDLに追加する。通常、このバックグラウンドイメージは圧縮され、追加されるDLのサイズは限定されたメモリ空間のサイズよりも小さくなる。そこで、この空いた領域に残りのDLを作成していくことにより限定されたメモリ空間で大きなサイズのDLを処理できる。また、フォールバック時には各種ワーク用のテーブルもクリアされるため、次のDLが処理可能となる。
【0004】
高画質化を行う手法として、画像データに属性ビットを付加し適切な画像処理を行うという方法がある。
【0005】
この方法では、ホスト上又は印刷装置内でラスタ画像を生成する段階で、そのラスタ画像を構成する描画オブジェクトの種類(文字,図形,イメージ,カラー,モノクロ等)を認識しそのオブジェクトを構成する各ピクセルに対して、前記オブジェクト種を示す図3のような属性ビットを付加し、ラスタデータ+属性ビットを出力データとする。
【0006】
この出力データを印刷時に、ラスタデータに対し属性ビットを参照しながら適切な画像処理が行うことにより、高画質な印刷出力を得ることができる。
【0007】
【発明が解決しようとする課題】
属性ビット及びラスタデータは通常圧縮され出力バッファ中に保持されている。このとき、ラスタデータには非可逆圧縮を施すことができるため、圧縮率により圧縮後のサイズをコントロールすることができる。一方で、属性ビットに対しては、画像処理を行う段階ではオリジナルのデータが必要となるため、可逆圧縮しか使用できず、圧縮後のサイズは固定でありデータの種類に応じては非常にサイズが大きくなる場合がある。
【0008】
一方で、フォールバック時のバックグランドイメージとしてレンダリング結果が使用される場合も、ラスデータ+属性ビットをバックグランドイメージとしてDLの格納領域に収めなければならない。
【0009】
したがって、属性ビットの圧縮後のサイズが大きいと、属性ビットの締める割合が大きくなりラスタデータのサイズを小さく抑えるためにラスタデータの圧縮率を高くしなければならない。この場合、ラスタデータの圧縮率をあげたことによる画質の低下が、属性ビットの使用による画質向上効果を上回り、結果として出力画像の画質が低下してしまうといった問題点があった。
【0010】
本発明は、上記問題を解決する為になされたものであり、フォールバック時にラスタデータ+属性ビットのサイズが一定のサイズを超えた場合、属性ビットを一度退避させ、予め機器内に格納して置いた圧縮率の高い属性ビットデータとを置き換える又は属性ビットを削除することにより、バックグラウンド用のラスタデータの圧縮率を必要以上に高めることを抑制し、高画質な印刷出力を得ることを目的とする。さらにフォールバック後のレンダリング終了時に再度レンダリング時に生成された属性ビットと前記退避しておいた属性ビットを合成することにより、ラスタデータの圧縮率を上げることなく正しい属性ビットを生成でき、高画質な印刷出力を得ることを目的とする。
【0011】
【課題を解決するための手段】
上記目的を達成する本発明の印刷装置は以下に示す構成を備える。即ち、印刷装置に、属性ビットの付加された画像データを使用して、印刷出力時に、前記付加された属性ビットに基づき、画像処理を施して印刷する手段を備え、中間言語を解釈し画像データとしてラスタイメージと属性ビットを出力するレンダリング手段と、前記レンダリング手段が出力したラスタイメージと属性ビットの画像データを背景画像として再度中間言語に登録するフォールバック手段と、前記レンダリング手段が出力するラスタイメージと属性ビットの画像データの総容量が一定サイズを超過した時、前記属性ビットを印刷装置内の別メモリに退避する手段とを備える。
【0012】
また、本発明の前記印刷装置は以下に示す構成を備える。即ち、印刷装置に、圧縮率の高い既定の属性ビットを予め用意しておき、前記退避した属性ビットと既定の属性ビットを置き換える手段を備える。
【0013】
さらに、本発明の前記印刷装置は以下に示す構成を備える。即ち、前記退避しておいて属性ビットと、フォールバック時に生成された属性ビットを合成し新たな属性ビットを生成する、属性ビット合成手段を備える。
【0014】
また、本発明の前記印刷装置は以下に示す構成を備える。即ち、印刷装置に、前記レンダリング手段が出力するラスタイメージと属性ビットの画像データの総容量が一定サイズを超過した時、前記属性ビットを印刷装置内の別メモリにしたのち、属性ビットを削除する手段を備える。
【0015】
また、本発明の前記印刷装置は以下に示す構成を備える。即ち、印刷装置に、ラスタイメージのみを背景画像として登録するフォールバック手段を備える。
【0016】
かかる構成において、フォールバック時にラスタデータ+属性ビットのサイズが一定のサイズを超えた場合、属性ビットを一度退避させ、予め機器内に格納して置いた圧縮率の高い属性ビットデータとを置き換える又は属性ビットを削除することにより、バックグラウンド用のラスタデータの圧縮率を必要以上に高めることを抑制し、高画質な印刷出力を得る。また、フォールバック後のレンダリング終了時に再度レンダリング時に生成された属性ビットと前記退避しておいた属性ビットを合成することにより、ラスタデータの圧縮率を上げることなく正しい属性ビットを生成でき、高画質な印刷出力を得る。
【0017】
以上、本発明を整理して要約すれば以下の構成に集約できる。
【0018】
(1)属性ビットの付加された画像データを使用して、印刷出力時に、前記付加された属性ビットに基づき、画像処理を施して印刷することのできる印刷装置において、中間言語を解釈し画像データとしてラスタイメージと属性ビットを出力するレンダリング手段と、前記レンダリング手段が出力したラスタイメージと属性ビットの画像データを背景画像として再度中間言語に登録するフォールバック手段と、前記レンダリング手段が出力するラスタイメージと属性ビットの画像データの総容量が一定サイズを超過した時、前記属性ビットを印刷装置内の別メモリに退避する手段とを有することを特徴とする印刷装置。
【0019】
(2)前記(1)の印刷装置において、圧縮率の高い既定の属性ビットを予め用意しておき、前記退避した属性ビットと既定の属性ビットを置き換える手段を有することを特徴とする印刷装置。
【0020】
(3)前記(2)の印刷装置において、前記退避しておいて属性ビットと、フォールバック時に生成された属性ビットを合成し新たな属性ビットを生成する、属性ビット合成手段を有することを特徴とする印刷装置。
【0021】
(4)前記(1)の印刷装置において、前記レンダリング手段が出力するラスタイメージと属性ビットの画像データの総容量が一定サイズを超過した時、前記属性ビットを印刷装置内の別メモリにしたのち、属性ビットを削除する手段を有することを特徴とする印刷装置。
【0022】
(5)前記(1)のフォールバック手段は、ラスタイメージのみを背景画像として登録することを特徴とする印刷装置。
【0023】
【発明の実施の形態】
(第1実施例)
本実施例の構成を説明する前に、本実施例を適用するに好適なレーザビームプリンタおよびインクジェットプリンタの構成について図1を参照しながら説明する。なお、本実施例を適用するプリンタは、レーザビームプリンタおよびインクジェットプリンタに限られるものではなく、他のプリント方式のプリンタでも良いことは言うまでもない。
【0024】
図1は本発明を適用可能な出力装置の構成を示す断面図であり、例えばレーザビームプリンタ(LBP)の場合を示す。
【0025】
図1において、1000はLBP本体であり、外部にネットワークや直接インターフェースで接続されているホストコンピュータ等の外部情報源から供給される印刷情報(文字コード等)やフォーム情報あるいはマクロ命令等を入力して記憶すると共に、それらの情報に従って対応する文字パターンやフォームパターン等を作成し、記録媒体である記録紙等に像を形成する。
【0026】
1012は操作のためのスイッチおよびLED表示器等が配されている操作パネル、1001はLBP本体1000全体の制御および外部ネットワーク等から供給される文字情報等を解析するプリンタ制御ユニットである。このプリンタ制御ユニット1001は、主に文字情報を対応する文字パターンのビデオ信号に変換してレーザドライバ1002に出力する。レーザドライバ1002は半導体レーザ1003を駆動するための回路であり、入力されたビデオ信号に応じて半導体レーザ1003から発射されるレーザ光1004をオン・オフ切り換えする。レーザ光1004は回転多面鏡1005で左右方向に振らされて静電ドラム1006上を走査露光する。これにより、静電ドラム1006上には文字パターンの静電潜像が形成されることになる。この潜像は、静電ドラム1006周囲に配設された現像ユニット1007により現像された後、記録紙に転写される。この記録紙にはカットシートを用い、カットシート記録紙はLBP1000に装着した用紙カセット1008に収納され、給紙ローラ1009および搬送ローラ1010と搬送ローラ1011とにより、装置内に取り込まれて、静電ドラム1006に供給される。
【0027】
図2は本発明の実施例を示すプリンタ制御システムの構成を示すブロック図である。
【0028】
図2のプリンタ制御ユニット1001において、MAIN−CPU1はプリンタのCPUであり、ROM4に記憶された制御プログラムや外部メモリ7に記憶された制御プログラムなどに基づいてシステムバス5に接続される各種のデバイスへのアクセスを総合的に制御し、印刷部インタフェース8を介して接続される印刷部(プリンタエンジン)9に出力情報として画像信号を出力する。
【0029】
ROM4には図4,図5,図6及び図7のフローチャートに示されるようなMAIN−CPU1の制御プログラムや、後述する既定の置き換え用属性ビットデータ等プリンタ1000の制御に必要なデータを記憶する。
【0030】
MAIN−CPU1はI/O11を介して外部ネットワーク3000に接続されているホストコンピュータ等の外部装置と通信可能に構成されている。なお、ホストコンピュータと外部ネットワーク3000を介して通信するとしているが、図示しない直接インターフェースを介してホストコンピュータと接続し、通信を行っても良いことは言うまでもでもない。2はMAIN−CPU1の主メモリ・ワークエリア等として機能するRAMで、図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。3は前記RAM2上に用意される画像出力バッファであり、フォールバックバッファや出力バッファとして後述する20のハードレンダラーで作成されるラスタイメージ及び属性ビットが記録される。6はメモリコントローラ(MC)であり、ハードディスク等の外部メモリ7へのアクセスを制御する。
【0031】
20はハードレンダラーであり、内部にローカルメモリ21を持っている。ハードレンダラー20は、ローカルメモリ21に転送されてきたディスプレイリスト(DL)またはRAM2上にあるDLをそのまま解釈し、ラスタイメージ及びラスタイメージの各ピクセル毎に対応する属性ビットを作成する。ここで生成される各属性ビットは図3に示すように、1bitのカラービット(301)、1bitの属性ビット(302)及び2bitのオブジェクト種ビット(303)の3つのビットフィールド計4bitで構成されている。
【0032】
カラービット301は対応するピクセルがカラーオブジェクトを構成するピクセルであるか、白黒オブジェクトを構成するピクセルであるかを表し、このビットが“0”である時にはカラーオブジェクトを構成するピクセルであり、“1”である時には白黒オブジェクトを構成するピクセルでであることを示す。
【0033】
細線ビット302は対応するピクセルが細線を構成するピクセルであるか否かを表し、このビットが“1”である時には細線を構成するピクセルでであることを示す。
【0034】
オブジェクト種ビット303は対応するピクセルがどのような種類の描画オブジェクトを構成しているかを表し、“01”の時には文字オブジェクトを構成するピクセルであり、“10”のときにはグラフィックスオブジェクトを構成するピクセルであり、“11”の時にはイメージオブジェクトを構成するピクセルであり、“00”の時には、そのピクセルはどのようなオブジェクトも構成されていないことをしめす。
【0035】
非可逆圧縮部22は前記ラスタイメージに非可逆圧縮を施し、RAM2上の画像出力バッファ3へ記憶する。可逆圧縮部23は前記属性ビットに可逆圧縮を施し、出力バッファ3へ記憶する。画像処理部24は、ハードレンダラー20によって生成された属性ビットに基づいて、ラスタデータに文字用の画像処理、イメージ用の画像処理、グラフィック用の画像処理、カラー用の画像処理、白黒用の画像処理、細線用の画像処理のいずれかまたは組み合わせて施す。
【0036】
このように構成されたプリンタ制御システムにおいて、図3,及び図4,図5,図6,図7のフローチャートに従って本発明の実施例を説明する。
【0037】
はじめにプリンタ1000の基本動作を図4に示す。プリンタ1000が、外部ネットワーク3000からPDLデータを受信すると(ステップS402)、ステップS403でMAIN−CPU1においてPDLデータの解析処理を行い、ディスプレイリスト(DL)を生成し、ステップS404へ進む。
【0038】
前記ステップS403でのDLの生成時には通常1ページ分のDLが生成される。ただし、常にハードレンダラー20のローカルメモリのサイズ、ワーク用テーブルのサイズをそれぞれ検査しており、生成中のDLがローカルメモリのサイズを超える場合、また生成中のDLをレンダリング時に使用するワーク用テーブルのサイズがハードレンダラー20に搭載されているテーブルサイズを超えた場合にはフォールバックを発生し、フォールバックフラグを立て、その時点でステップS404へ進む。
【0039】
ステップS404ではフォールバックフラグを検査し、フォールバックの有無を検査する。ここで、フォールバックが発生していなければステップS405へ進む。
【0040】
ステップS405では前記ステップS403で作成されたDLをハードレンダラー20によって解釈・レンダリングしラスタイメージ及び属性ビットを生成する。生成されたラスタイメージは非可逆圧縮部22で非可逆圧縮された後、画像出力バッファ3中の出力バッファ上に格納され、属性ビットは可逆圧縮部23で可逆圧縮された後、画像出力バッファ3中の出力バッファ上に格納されステップS406へ進む。
【0041】
ステップS406では格納された属性ビットにしたがって適切な画像処理をラスタデータに施し、ステップS407へ進む。ステップS407では画像処理の施されたラスタデータを印刷部9へ転送し印刷し終了する(ステップS409)。
【0042】
前記ステップS404でフォールバックが発生していると判断した場合はステップS408へ進む。
【0043】
ステップS408では前記ステップS403で作成されたDLをハードレンダラー20によって解釈・レンダリングしラスタイメージ及び属性ビットが生成する。生成されたラスタイメージは非可逆圧縮部22で非可逆圧縮された後、画像出力バッファ3中のフォールバックバッファに格納され、ステップS409で生成された属性ビットは可逆圧縮部23で可逆圧縮された後、画像出力バッファ3中のフォールバックバッファ上に格納され、ステップS403へ戻る。
【0044】
ステップS403では、前記ステップS408でフォールバックバッファに格納されているラスタイメージと属性ビットをバックグラウンドイメージとしてDLに追加し、再び残りのDLの生成を行う。
【0045】
ここで、ステップS408でハードレンダラー20でレンダリングされ生成されたラスタイメージ及び属性ビットがフォールバックバッファに格納されるまでの動作を図5を使用して詳細に説明する。
【0046】
ハードレンダラー20でレンダリングが開始される(ステップS501)とステップS502で、フォールバックバッファが溢れた時に印刷データをから生成されたDLをレンダリングしたときに生成された属性ビットを退避する属性ビット退避エリアをクリアし、ステップS503へ進む。
【0047】
ステップS503では、ハードレンダラー20でDLを解釈して、32スキャンラインづつレンダリングし、生成されたラスタイメージとラスタイメージの各ピクセルに対応する属性ビットをRAM2上に用意された一時バッファ内に保持して、ステップS504へ進む。なお、ここでは32スキャンラインづつレンダリングされるとしているが、このスキャンライン数は一例であり他のスキャンライン数であっても良いことは言うまでもない。
【0048】
ステップS504では、後述する図6の属性ビット合成処理を行い、ステップS505へ進む。
【0049】
ステップS505では、属性ビット置換フラグを検査し属性ビット置換フラグが立っていなければ、即ち属性ビット置換が一度も行われていなければステップS506へ進む。
【0050】
ステップS506では、前記一時バッファ中のラスタイメージを非可逆圧縮部22に転送し非可逆圧縮を行うと共に、前記一時バッファ中の属性ビットを可逆圧縮部23に転送し可逆圧縮を行う。
【0051】
非可逆圧縮部22及び可逆圧縮部23では圧縮中にフォールバックバッファに出力可能であるか否か、すなわちフォールバックバッファが一杯であるかを常に検査しており(ステップS507)、それぞれの圧縮部が共にフォールバックバッファに出力可能であるならばステップS509でフォールバックバッファに非可逆圧縮されたラスタデータ及び可逆圧縮された属性ビットを格納する。ステップS507で、フォールバックバッファが一杯であると判断されるとステップS508へ進む。
【0052】
ステップS508では、ここまでにフォールバックバッファに格納されている属性ビット及び既に可逆圧縮されている一時バッファ中の属性ビットをRAM2上の属性ビット退避エリアにコピーして退避させると共に、予めROM4内に用意されている既定の属性ビットとフォールバックバッファに格納されている属性ビットを置き換える。即ち、ここまでに出力バッファに格納されている属性ビットをすべて削除し、ここまでにレンダリングされたスキャンライン数と同数の既定の属性ビットを出力バッファに格納する。さらにステップS508では、ステップS509で格納されるべき可逆圧縮された属性ビット、つまり現在一時バッファ中にある属性ビットを可逆圧縮部23で圧縮したものも既定の属性ビットで置換しておく。フォールバックバッファに格納されている属性ビットがすべて既定の属性ビットに置換された後、属性ビット置換フラグをセットしステップS509へ進む。前記既定の属性ビットは全面が“0000”の値で埋められたものであり予め可逆圧縮で圧縮されROM4に格納されている。したがって、前記既定の属性ビットは最も圧縮率の高いものであり、プリンタ1000に送信されて来たデータにより作成される現在の属性ビットを圧縮したサイズにくらべサイズが小さくなるため、既定の属性ビットと現在の属性ビットを置き換えることによりフォールバックバッファに空きスペースを作ることができる。
【0053】
ステップS509では、圧縮されたラスタデータ及び属性ビットをフォールバックバッファに格納した後、ステップS510へ進む。
【0054】
ステップS510では、全スキャンラインのレンダリングが終了したか否かを判断し、終了していなければステップS503へ戻り、次の32スキャンライン分の処理を行う。
【0055】
ステップS505で、属性ビット置換フラグを検査し属性ビット置換フラグが立っていれば、即ち属性ビット置換がすでに行われている場合は、ステップS511へ進む。
【0056】
ステップS511では、前記一時バッファ中のラスタイメージを非可逆圧縮部22に転送し非可逆圧縮を行うと共に、前記一時バッファ中の属性ビットを可逆圧縮部23に転送し可逆圧縮を行う。
【0057】
非可逆圧縮部22及び可逆圧縮部23では圧縮中にフォールバックバッファ3中に出力可能であるか否か、すなわちフォールバックバッファ3が一杯であるかを常に検査しており(ステップS512)、それぞれの圧縮部が共にフォールバッックバッファに出力可能であるならばステップS513へ進む。
【0058】
ステップS513では、フォールバックバッファに非可逆圧縮されたラスタデータを格納し、前記既定の属性ビット32スキャンライン分をフォールバックバッファ3へ格納すると共に、一時バッファ中の属性ビットを可逆圧縮したものを属性ビット退避エリアへ追加・格納する。
【0059】
ステップS512でフォールバックバッファが一杯でであると判断すると、ステップS514へ進む。
【0060】
ステップS514では、現在のラスタイメージ用非可逆圧縮部22の圧縮率ではフォールバックバッファへのデータ格納は不可能であると判断し、より高い圧縮率になるように非可逆圧縮部22を設定し、ステップS502へ戻り再レンダリングを行う。即ち、属性ビット退避エリアをクリアして、1スキャンライン目からレンダリングをやり直す。
【0061】
ステップS510で、全スキャンラインのレンダリングが終了したと判断すると、ステップS515へ進む。
【0062】
ステップS515では、属性ビット置換フラグを検査し属性ビット置換フラグが立っていなければ、即ち属性ビット置換が行われていなければステップS516へ進む。
【0063】
ステップS516では、属性ビットの合成時に使用される属性ビット合成バッファをクリアし、終了する(ステップS518)。
【0064】
ステップS515で、属性ビットの置換が行なわれていると判断すると、ステップS517へ進む。
【0065】
ステップS517では、属性ビット退避エリアに格納されている属性ビットを属性ビット合成バッファへコピーして終了する(ステップS518)。
【0066】
ここで、ステップS504で行なわれる属性ビットの合成処理の内容を、図6のフローチャート使用して説明する。
【0067】
この属性ビット合成処理では、一時バッファ中のハードレンダラー20が生成した属性ビットを1つずつ検査しながら合成処理を行う。
【0068】
属性ビットの合成処理がスタートすると(ステップS601)、ステップS602で、は前記属性ビット合成バッファを検査し、属性ビット合成バッファに属性ビットが格納されていなければそのまま終了し(ステップS607)、属性ビット合成バッファに属性ビットが格納されていれば1つ前のフォールバック時に属性ビットの退避が行なわれたと判断してステップS603へ進む。
【0069】
ステップS603では属性ビット退避エリアに退避されている属性ビットから、現在レンダリングされているスキャンラインに対応する属性ビットを読み出し解凍した後、ステップS604へ進む。
【0070】
ステップS604では、一時バッファ内の属性ビットが“0000”であるか否かを検査する。“0000”である場合は、フォールバック後のレンダリングで上書きされた描画オブジェクトがなかったと判断し、ステップS605で属性ビット合成バッファに格納されていた属性ビットで上書きしステップS606へ進む。
【0071】
ステップS606では、一時バッファ内に出力された属性ビットをすべてスキャンし終わったか否かを判断する。
【0072】
すべてスキャンし終わっていなければ、ステップS604へ戻り次の属性ビットの検査を行う。
【0073】
ステップS606で一時バッファ内の出力された属性ビットをすべてスキャンし終わったと判断すると、本属性ビット合成処理を終了する(ステップS607)。
【0074】
本合成処理により、現在のレンダリングで描画オブジェクトが描画されたピクセルに対応する属性ビットは、現在のレンダリングで描画された描画オブジェクトを示すものとなり、現在のレンダリングで何も描画されていないピクセルに対応する属性ビットは、一回前のレンダリングで描画されたオブジェクトを示すもの、つまり属性ビット合成バッファに格納されているものとなる。
【0075】
次に、ステップS405でハードレンダラー20でレンダリングされ生成されたラスタイメージ及び属性ビットが出力バッファに格納されるまでの動作を図7を使用して詳細に説明する。
【0076】
ハードレンダラー20でレンダリングが開始される(ステップS701)と、ステップS702で32スキャンラインづつレンダリングされたラスタイメージとラスタイメージの各ピクセルに対応する属性ビットをRAM2上に用意された一時バッファ内に保持し、ステップS703へ進む。
【0077】
ステップS703では、前記する図6の属性ビット合成処理を行い、ステップS704へ進む。
【0078】
ステップS704では、前記一時バッファ中のラスタイメージを非可逆圧縮部22に転送し非可逆圧縮を行うと共に、前記一時バッファ中の属性ビットを可逆圧縮部23に転送し可逆圧縮を行い、ステップS705へ進む。
【0079】
ステップS705では、非可逆圧縮されたラスタデータ及び可逆属性ビットを出力バッファに格納した後、ステップS706へ進む。
【0080】
ステップS706では、全スキャンラインのレンダリングが終了したか否かを判断し、終了していればレンダリングからデータ格納までの一連の処理を終了し(ステップS707)、終了していなければステップS702へ戻り、次の32スキャンライン分の処理を行う。
【0081】
以上、第1実施例によれば、フォールバック時にラスタイメージ+属性ビットがフォールバックに収まらない場合でも、属性ビットの置換を行うことによりフォールバック時のラスタイメージの圧縮率を高める必要がなくなるため、画質が劣化することがなくなくなる。また、属性ビットの退避・合成を行うことにより正確なフォールバックイメージの圧縮率を低く維持したまま、正確な属性ビットを生成できるため、高画質な印刷出力を得ることができる。
【0082】
(第2実施例)
第1実施例では、既定の属性ビットはそれぞれ予め圧縮されROM4内に格納されているとしているが、置き換え時に既定の属性ビットを生成するようにしても同様の結果を得ることが出来る。
【0083】
この場合、第1実施例のステップS508では、ここまでにフォールバックバッファに格納されている属性ビット及び既に一時バッファ中の属性ビット可逆圧縮したものをRAM3上の属性ビット退避エリアにコピーして退避させると共に、ここまでにレンダリングされたスキャンライン数と同数分の既定の属性ビット“0000”を生成し、可逆圧縮部23で圧縮したものと、フォールバックバッファ中にある格納されている属性ビットを置換する。さらにステップS508では、32スキャンライン分の既定の属性ビット“0000”を生成し、可逆圧縮部23で圧縮したものと、一時バッファ中にある属性ビットを置換した後、属性ビット置換フラグをセットしステップS509へ進む。
【0084】
またステップS513では、フォールバックバッファに非可逆圧縮されたラスタデータ及び、32スキャンライン分の既定の属性ビット“0000”を生成し可逆圧縮部23で圧縮したもとのを格納すると共に、一時バッファ中の可逆圧縮された属性ビットを前記属性ビット退避エリアへ追加・格納する。
【0085】
(第3実施例)
第1実施例では、フォールバック時にハードレンダラー20の生成した属性ビットを、属性ビット退避エリアへコピーし、フォールバックバッファ中の属性ビットを“0000”で埋められた既定の属性ビットと置換するとしているが、本実施例では、フォールバックバッファ中の属性ビットを既定の属性ビットでの置換はせずに、フォールバックバッファから削除しても、同様の効果を得ることが出来る。
【0086】
すなわち、S508でここまでにフォールバックバッファに格納されている属性ビット及び既に可逆圧縮されている一時バッファ中の属性ビットをRAM2上の属性ビット退避エリアにコピーして退避させた後、フォールバックバッファ中に格納されている属性ビットをすべて削除すると共に、一時バッファ中の属性ビットも削除する。また、S513においては既定属性ビットのフォールバックバッファへの格納は行わない。
【0087】
この場合、フォールバック後のレンダリング時に、ハードレンダラー20は背景画像としてラスタイメージのみを処理し、属性ビットは使用しない。
【0088】
【発明の効果】
以上述べたように本発明によれば、フォールバック時にラスタデータ+属性ビットのサイズが一定のサイズを超えた場合、属性ビットを一度退避させ、予め機器内に格納して置いた圧縮率の高い属性ビットデータとを置き換える又は属性ビットを削除することにより、バックグラウンド用のラスタデータの圧縮率を必要以上に高めることを抑制することにより、高画質な印刷出力を得ることが出来る。また、フォールバック後のレンダリング終了時に再度レンダリング時に生成された属性ビットと前記退避しておいた属性ビットを合成することにより、ラスタデータの圧縮率を上げることなく正しい属性ビットを生成でき、高画質な印刷出力を得ることが出来る。
【図面の簡単な説明】
【図1】本発明を適用可能な実施例の出力装置の構成を示す断面図
【図2】本発明の実施例を示すプリンタ制御システムの構成を説明するブロック図
【図3】本発明の印刷装置内で使用される属性ビットの構造を示す図
【図4】本発明の実施例の基本動作を説明するフローチャート
【図5】本発明の実施例で、フォールバック時のレンダリング動作を詳細に説明するフローチャート
【図6】本発明の属性ビット合成処理を説明するフローチャート
【図7】本発明の実施例で、印刷時のレンダリング動作を詳細に説明するフローチャート
【符号の説明】
1 CPU
2 RAM
3 出力バッファ
20 ハードレンダラー
22 非可逆圧縮部
23 可逆圧縮部
24 画像処理部
1000 プリンタ(LBP本体)
1001 プリンタ制御部
3000 外部ネットワーク
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a printing device such as a printer connected to a plurality of host computers on a network and other output devices such as a printer via a bidirectional interface, and an output method in the device.
[0002]
[Prior art]
In recent years, information processing systems have been generalized and widely used. Under such circumstances, many electronic documents created on the information processing system are created, and output requests to the color printing apparatus tend to increase. Therefore, it is desired to increase the speed and the image quality of the color printing apparatus. It is rare.
[0003]
As a method of increasing the speed, there is a method of using dedicated hardware for rendering (hard renderer). Conventionally, in a system that interprets a page description language (PDL) and creates a raster image, a display list (DL) that is an intermediate language is created after interpreting the PDL, and raster image conversion (rendering) is performed from the DL. Is common. In this series of processing, the rendering portion is very heavy processing but is relatively easy to be hardened. Therefore, it is possible to increase the speed by implementing the rendering portion in the system as a dedicated rendering hardware (hard renderer). However, because this hard renderer is hard,
1. Can access only a predetermined limited memory space
2. All DLs of the area to be rendered (usually one page) must fit in this limited area
3. In addition, there is a restriction that there is an upper limit in various work tables unique to hardware. In order to avoid this restriction, a process called fallback is performed. When the size of the DL exceeds the accessible memory space of the hard renderer or exceeds the work table, the fallback is rendered once and rendered as a raster image, and the created DL is cleared once. I do. This raster image is added to the DL again as a background image of the drawing area. Usually, this background image is compressed, and the size of the added DL is smaller than the size of the limited memory space. Therefore, a large-sized DL can be processed in a limited memory space by creating the remaining DLs in this empty area. Also, at the time of fallback, the tables for various works are also cleared, so that the next DL can be processed.
[0004]
As a method of improving image quality, there is a method of adding an attribute bit to image data and performing appropriate image processing.
[0005]
In this method, at the stage of generating a raster image on a host or in a printing apparatus, the type of a drawing object (character, graphic, image, color, monochrome, etc.) constituting the raster image is recognized, and each of the objects constituting the object is recognized. Attribute bits indicating the object type as shown in FIG. 3 are added to pixels, and raster data + attribute bits are used as output data.
[0006]
When this output data is printed, appropriate image processing is performed on the raster data while referring to the attribute bits, so that a high-quality print output can be obtained.
[0007]
[Problems to be solved by the invention]
The attribute bits and raster data are usually compressed and held in an output buffer. At this time, since the lossy compression can be applied to the raster data, the size after compression can be controlled by the compression ratio. On the other hand, for the attribute bits, the original data is required at the stage of image processing, so only lossless compression can be used, and the size after compression is fixed and very large depending on the type of data. May be large.
[0008]
On the other hand, even when the rendering result is used as a background image at the time of fallback, the raster data + attribute bits must be stored in the DL storage area as the background image.
[0009]
Therefore, if the size of the attribute bit after compression is large, the tightening ratio of the attribute bit increases, and the compression ratio of the raster data must be increased in order to keep the size of the raster data small. In this case, there is a problem that the deterioration of the image quality due to the increase in the compression ratio of the raster data exceeds the effect of improving the image quality by using the attribute bits, and as a result, the image quality of the output image is deteriorated.
[0010]
SUMMARY OF THE INVENTION The present invention has been made to solve the above problem. When the size of raster data + attribute bit exceeds a certain size at the time of fallback, the attribute bit is once saved and stored in the device in advance. The purpose is to replace the attribute bit data with a higher compression ratio or delete the attribute bit, thereby suppressing the compression ratio of the background raster data from being increased more than necessary, and to obtain a high quality print output. And Further, at the end of rendering after fallback, by combining the attribute bits generated at the time of rendering again with the saved attribute bits, correct attribute bits can be generated without increasing the compression ratio of raster data, and high image quality can be obtained. The purpose is to obtain printed output.
[0011]
[Means for Solving the Problems]
The printing apparatus of the present invention that achieves the above object has the following configuration. That is, the printing apparatus includes means for performing image processing and printing based on the added attribute bits at the time of printout using the image data to which the attribute bits have been added, interpreting the intermediate language, and interpreting the image data. Rendering means for outputting the raster image and the attribute bits as the image data, fallback means for registering the raster image output from the rendering means and the image data of the attribute bits in the intermediate language again as a background image, and the raster image outputted by the rendering means. Means for saving the attribute bits to another memory in the printing apparatus when the total capacity of the image data of the attribute bits exceeds a certain size.
[0012]
Further, the printing apparatus of the present invention has the following configuration. That is, the printing apparatus includes means for preparing in advance a predetermined attribute bit having a high compression ratio and replacing the saved attribute bit with the predetermined attribute bit.
[0013]
Further, the printing apparatus of the present invention has the following configuration. That is, there is provided an attribute bit synthesizing means for synthesizing the saved attribute bit and the attribute bit generated at the time of fallback to generate a new attribute bit.
[0014]
Further, the printing apparatus of the present invention has the following configuration. That is, when the total capacity of the raster image output from the rendering unit and the attribute bit image data exceeds a certain size, the attribute bits are stored in a separate memory in the printing apparatus, and then the attribute bits are deleted. Means.
[0015]
Further, the printing apparatus of the present invention has the following configuration. That is, the printing apparatus is provided with a fallback unit that registers only a raster image as a background image.
[0016]
In such a configuration, when the size of the raster data + attribute bit exceeds a certain size at the time of fallback, the attribute bit is once saved and replaced with the attribute bit data having a high compression ratio stored in advance in the device or By removing the attribute bits, it is possible to suppress the compression ratio of the background raster data from being increased more than necessary, and to obtain a high-quality print output. Also, by combining the attribute bits generated at the time of rendering again with the attribute bits saved at the end of rendering after fallback, correct attribute bits can be generated without increasing the compression ratio of raster data, and high image quality can be achieved. Print output.
[0017]
As described above, the present invention can be summarized into the following configuration by organizing and summarizing the present invention.
[0018]
(1) In a printing apparatus capable of performing image processing and printing based on the added attribute bits at the time of printout using the image data to which the attribute bits have been added, interpreting the intermediate language and interpreting the image data Rendering means for outputting the raster image and the attribute bits as the image data, fallback means for registering the raster image output from the rendering means and the image data of the attribute bits in the intermediate language again as a background image, and the raster image outputted by the rendering means. And a means for saving the attribute bits to another memory in the printing apparatus when the total capacity of the image data of the attribute bits exceeds a certain size.
[0019]
(2) The printing apparatus according to (1), further comprising means for preparing a predetermined attribute bit having a high compression rate in advance and replacing the saved attribute bit with the predetermined attribute bit.
[0020]
(3) The printing apparatus according to (2), further comprising an attribute bit synthesizing unit configured to synthesize the attribute bits saved and the attribute bits generated at the time of fallback to generate a new attribute bit. Printing device.
[0021]
(4) In the printing apparatus according to (1), when the total capacity of the raster image output by the rendering means and the image data of the attribute bits exceeds a certain size, the attribute bits are stored in another memory in the printing apparatus. And a means for deleting attribute bits.
[0022]
(5) The printing apparatus according to (1), wherein the fallback means registers only a raster image as a background image.
[0023]
BEST MODE FOR CARRYING OUT THE INVENTION
(First embodiment)
Before describing the configuration of this embodiment, the configurations of a laser beam printer and an inkjet printer suitable for applying this embodiment will be described with reference to FIG. The printer to which this embodiment is applied is not limited to the laser beam printer and the ink jet printer, and it goes without saying that a printer of another printing method may be used.
[0024]
FIG. 1 is a cross-sectional view showing a configuration of an output device to which the present invention can be applied, for example, a case of a laser beam printer (LBP).
[0025]
In FIG. 1, reference numeral 1000 denotes an LBP main body, which inputs print information (character codes, etc.), form information, macro instructions, and the like supplied from an external information source such as a host computer or the like which is externally connected via a network or a direct interface. In addition, a corresponding character pattern, form pattern, and the like are created according to the information, and an image is formed on a recording medium such as recording paper.
[0026]
Reference numeral 1012 denotes an operation panel on which switches and LED indicators for operation are arranged, and 1001 denotes a printer control unit for controlling the entire LBP main body 1000 and analyzing character information supplied from an external network or the like. The printer control unit 1001 mainly converts character information into a video signal of a corresponding character pattern and outputs the video signal to the laser driver 1002. The laser driver 1002 is a circuit for driving the semiconductor laser 1003, and switches on / off a laser beam 1004 emitted from the semiconductor laser 1003 according to an input video signal. The laser beam 1004 is oscillated in the left-right direction by the rotary polygon mirror 1005 and scans and exposes the electrostatic drum 1006. As a result, an electrostatic latent image of a character pattern is formed on the electrostatic drum 1006. This latent image is developed by a developing unit 1007 disposed around the electrostatic drum 1006, 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 1008 mounted on the LBP 1000, is taken into the apparatus by a paper feed roller 1009, a conveyance roller 1010, and a conveyance roller 1011, and is electrostatically charged. It is supplied to the drum 1006.
[0027]
FIG. 2 is a block diagram showing the configuration of the printer control system according to the embodiment of the present invention.
[0028]
In the printer control unit 1001 shown in FIG. 2, MAIN-CPU 1 is a CPU of the printer, and various devices connected to the system bus 5 based on a control program stored in the ROM 4 and a control program stored in the external memory 7. And outputs an image signal as output information to a printing unit (printer engine) 9 connected via a printing unit interface 8.
[0029]
The ROM 4 stores a control program of the MAIN-CPU 1 as shown in the flowcharts of FIGS. 4, 5, 6, and 7, and data necessary for controlling the printer 1000, such as predetermined replacement attribute bit data described later. .
[0030]
The MAIN-CPU 1 is configured to be able to communicate with an external device such as a host computer connected to the external network 3000 via the I / O 11. Although the communication with the host computer is performed via the external network 3000, it goes without saying that the communication may be performed by connecting to the host computer via a direct interface (not shown). Reference numeral 2 denotes a RAM that functions as a main memory work area or the like of the MAIN-CPU 1, and is configured so that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). Reference numeral 3 denotes an image output buffer prepared on the RAM 2, in which a raster image and attribute bits created by 20 hard renderers described later are recorded as a fallback buffer or an output buffer. Reference numeral 6 denotes a memory controller (MC), which controls access to an external memory 7 such as a hard disk.
[0031]
Reference numeral 20 denotes a hard renderer, which has a local memory 21 therein. The hard renderer 20 interprets the display list (DL) transferred to the local memory 21 or the DL in the RAM 2 as it is, and creates a raster image and attribute bits corresponding to each pixel of the raster image. As shown in FIG. 3, each attribute bit generated here is composed of three bit fields, that is, a 1-bit color bit (301), a 1-bit attribute bit (302), and a 2-bit object type bit (303), for a total of 4 bits. ing.
[0032]
The color bit 301 indicates whether the corresponding pixel is a pixel forming a color object or a pixel forming a black-and-white object. When this bit is “0”, the pixel is a pixel forming a color object, and “1”. "" Indicates that the pixel is a pixel constituting a monochrome object.
[0033]
The thin line bit 302 indicates whether the corresponding pixel is a pixel forming a thin line, and when this bit is “1”, it indicates that the pixel is a pixel forming a thin line.
[0034]
The object type bit 303 indicates what kind of drawing object the corresponding pixel constitutes. When "01", the pixel constitutes a character object, and when "10", the pixel constitutes a graphics object. In the case of "11", it is a pixel constituting an image object, and in the case of "00", it indicates that the pixel does not constitute any object.
[0035]
The irreversible compression unit 22 performs irreversible compression on the raster image and stores the raster image in the image output buffer 3 on the RAM 2. The lossless compression unit 23 performs lossless compression on the attribute bits and stores the attribute bits in the output buffer 3. The image processing unit 24 performs character image processing, image image processing, graphic image processing, color image processing, and monochrome image processing on the raster data based on the attribute bits generated by the hard renderer 20. Processing or image processing for thin lines is performed or combined.
[0036]
An embodiment of the present invention will be described with reference to the flowcharts of FIGS. 3, 4, 5, 6, and 7 in the thus configured printer control system.
[0037]
First, the basic operation of the printer 1000 is shown in FIG. When the printer 1000 receives the PDL data from the external network 3000 (step S402), the MAIN-CPU 1 analyzes the PDL data in step S403, generates a display list (DL), and proceeds to step S404.
[0038]
When generating the DL in step S403, a DL for one page is normally generated. However, the size of the local memory of the hard renderer 20 and the size of the work table are always checked. If the DL being generated exceeds the size of the local memory, the work table used for rendering is used. If the size exceeds the table size mounted on the hard renderer 20, a fallback is generated and a fallback flag is set, at which point the process proceeds to step S404.
[0039]
In step S404, the fallback flag is checked to determine whether there is a fallback. If no fallback has occurred, the process proceeds to step S405.
[0040]
In step S405, the hard renderer 20 interprets and renders the DL created in step S403 to generate a raster image and attribute bits. The generated raster image is stored on an output buffer in the image output buffer 3 after being irreversibly compressed by the lossy compression unit 22, and the attribute bits are losslessly compressed by the lossless compression unit 23, It is stored on the middle output buffer and the process proceeds to step S406.
[0041]
In step S406, appropriate image processing is performed on the raster data according to the stored attribute bits, and the flow advances to step S407. In step S407, the raster data subjected to the image processing is transferred to the printing unit 9 and printed, and the processing ends (step S409).
[0042]
If it is determined in step S404 that fallback has occurred, the process proceeds to step S408.
[0043]
In step S408, the DL created in step S403 is interpreted and rendered by the hard renderer 20 to generate a raster image and attribute bits. The generated raster image is irreversibly compressed by the irreversible compression unit 22 and then stored in a fallback buffer in the image output buffer 3. The attribute bits generated in step S409 are losslessly compressed by the lossless compression unit 23. Thereafter, the image data is stored in the fallback buffer in the image output buffer 3, and the process returns to step S403.
[0044]
In step S403, the raster image and the attribute bits stored in the fallback buffer in step S408 are added to the DL as a background image, and the remaining DL is generated again.
[0045]
Here, the operation until the raster image and the attribute bits generated and rendered by the hard renderer 20 in step S408 are stored in the fallback buffer will be described in detail with reference to FIG.
[0046]
When rendering is started by the hard renderer 20 (step S501), in step S502, an attribute bit save area for saving attribute bits generated when rendering a DL generated from print data when the fallback buffer overflows. Is cleared, and the process proceeds to step S503.
[0047]
In step S503, the hard renderer 20 interprets the DL, renders 32 scan lines at a time, and stores the generated raster image and attribute bits corresponding to each pixel of the raster image in a temporary buffer prepared on the RAM 2. Then, the process proceeds to step S504. Here, it is assumed that rendering is performed for every 32 scan lines. However, it is needless to say that the number of scan lines is an example and another number of scan lines may be used.
[0048]
In step S504, an attribute bit combining process of FIG. 6 described later is performed, and the process proceeds to step S505.
[0049]
In step S505, the attribute bit replacement flag is checked, and if the attribute bit replacement flag is not set, that is, if no attribute bit replacement has been performed, the process proceeds to step S506.
[0050]
In step S506, the raster image in the temporary buffer is transferred to the lossy compression unit 22 to perform lossy compression, and the attribute bits in the temporary buffer are transferred to the lossless compression unit 23 to perform lossless compression.
[0051]
The irreversible compression unit 22 and the lossless compression unit 23 always check whether the data can be output to the fallback buffer during compression, that is, whether the fallback buffer is full (step S507). If both can be output to the fallback buffer, irreversibly compressed raster data and losslessly compressed attribute bits are stored in the fallback buffer in step S509. If it is determined in step S507 that the fallback buffer is full, the process proceeds to step S508.
[0052]
In step S508, the attribute bits stored so far in the fallback buffer and the attribute bits in the temporary buffer that have already been losslessly compressed are copied to the attribute bit save area on the RAM 2 and saved, and stored in the ROM 4 in advance. Replace the provided default attribute bits with the attribute bits stored in the fallback buffer. That is, all the attribute bits stored in the output buffer so far are deleted, and the same number of predetermined attribute bits as the number of scan lines rendered so far are stored in the output buffer. Further, in step S508, the attribute bits that have been losslessly compressed to be stored in step S509, that is, the attribute bits that are currently in the temporary buffer and have been compressed by the lossless compression unit 23 are also replaced with the predetermined attribute bits. After all the attribute bits stored in the fallback buffer have been replaced with the predetermined attribute bits, an attribute bit replacement flag is set, and the process proceeds to step S509. The predetermined attribute bits are all filled with a value of “0000”, and are compressed in advance by lossless compression and stored in the ROM 4. Therefore, the default attribute bit has the highest compression rate, and has a smaller size than the compressed size of the current attribute bit created by the data transmitted to the printer 1000. And replace the current attribute bit with the empty space in the fallback buffer.
[0053]
In step S509, after storing the compressed raster data and the attribute bits in the fallback buffer, the process proceeds to step S510.
[0054]
In step S510, it is determined whether or not rendering of all scan lines has been completed. If not, the process returns to step S503 to perform processing for the next 32 scan lines.
[0055]
In step S505, the attribute bit replacement flag is checked. If the attribute bit replacement flag is set, that is, if attribute bit replacement has already been performed, the process proceeds to step S511.
[0056]
In step S511, the raster image in the temporary buffer is transferred to the lossy compression unit 22 to perform lossy compression, and the attribute bits in the temporary buffer are transferred to the lossless compression unit 23 to perform lossless compression.
[0057]
The irreversible compression unit 22 and the lossless compression unit 23 always check whether the data can be output to the fallback buffer 3 during compression, that is, whether the fallback buffer 3 is full (step S512). If both compression units can output to the fallback buffer, the process proceeds to step S513.
[0058]
In step S513, the lossy-compressed raster data is stored in the fallback buffer, the 32 scan lines of the predetermined attribute bits are stored in the fallback buffer 3, and the attribute bits in the temporary buffer are losslessly compressed. It is added and stored in the attribute bit save area.
[0059]
If it is determined in step S512 that the fallback buffer is full, the process proceeds to step S514.
[0060]
In step S514, it is determined that data cannot be stored in the fallback buffer at the current compression ratio of the raster image irreversible compression unit 22, and the irreversible compression unit 22 is set to have a higher compression ratio. Returning to step S502, re-rendering is performed. That is, the attribute bit save area is cleared, and rendering is performed again from the first scan line.
[0061]
If it is determined in step S510 that rendering of all scan lines has been completed, the process advances to step S515.
[0062]
In step S515, the attribute bit replacement flag is checked. If the attribute bit replacement flag is not set, that is, if the attribute bit replacement is not performed, the process proceeds to step S516.
[0063]
In step S516, the attribute bit synthesizing buffer used in synthesizing the attribute bits is cleared, and the process ends (step S518).
[0064]
If it is determined in step S515 that the attribute bits have been replaced, the process proceeds to step S517.
[0065]
In step S517, the attribute bits stored in the attribute bit save area are copied to the attribute bit synthesizing buffer, and the process ends (step S518).
[0066]
Here, the content of the attribute bit combining process performed in step S504 will be described with reference to the flowchart of FIG.
[0067]
In the attribute bit synthesizing process, the synthesizing process is performed while examining the attribute bits generated by the hard renderer 20 in the temporary buffer one by one.
[0068]
When the attribute bit synthesizing process starts (step S601), the attribute bit synthesizing buffer is checked in step S602, and if the attribute bit is not stored in the attribute bit synthesizing buffer, the process ends (step S607). If the attribute bit is stored in the synthesis buffer, it is determined that the attribute bit has been saved at the time of the previous fallback, and the process advances to step S603.
[0069]
In step S603, the attribute bits corresponding to the currently rendered scan line are read and decompressed from the attribute bits saved in the attribute bit save area, and the process proceeds to step S604.
[0070]
In step S604, it is checked whether the attribute bit in the temporary buffer is "0000". If it is “0000”, it is determined that there is no drawing object overwritten by the rendering after fallback, and the attribute bit stored in the attribute bit synthesis buffer is overwritten in step S605, and the process proceeds to step S606.
[0071]
In step S606, it is determined whether all the attribute bits output in the temporary buffer have been scanned.
[0072]
If the scanning has not been completed, the process returns to step S604 to check the next attribute bit.
[0073]
If it is determined in step S606 that all the output attribute bits in the temporary buffer have been scanned, the attribute bit synthesizing process ends (step S607).
[0074]
By this synthesis processing, the attribute bit corresponding to the pixel where the drawing object was drawn in the current rendering indicates the drawing object drawn in the current rendering, and corresponds to the pixel where nothing is drawn in the current rendering The attribute bit indicates the object drawn in the previous rendering, that is, is stored in the attribute bit synthesis buffer.
[0075]
Next, the operation until the raster image and the attribute bits generated and rendered by the hard renderer 20 in step S405 are stored in the output buffer will be described in detail with reference to FIG.
[0076]
When rendering is started by the hard renderer 20 (step S701), a raster image rendered by 32 scan lines and attribute bits corresponding to each pixel of the raster image are stored in a temporary buffer prepared on the RAM 2 in step S702. Then, the process proceeds to step S703.
[0077]
In step S703, the attribute bit synthesizing process shown in FIG. 6 is performed, and the process proceeds to step S704.
[0078]
In step S704, the raster image in the temporary buffer is transferred to the lossy compression unit 22 to perform lossy compression, and the attribute bits in the temporary buffer are transferred to the lossless compression unit 23 to perform lossless compression. move on.
[0079]
In step S705, after the lossy-compressed raster data and the lossless attribute bit are stored in the output buffer, the process proceeds to step S706.
[0080]
In step S706, it is determined whether rendering of all scan lines has been completed. If completed, a series of processes from rendering to data storage is completed (step S707), and if not completed, the process returns to step S702. , The next 32 scan lines are processed.
[0081]
As described above, according to the first embodiment, even when the raster image + attribute bit does not fit in the fallback at the time of fallback, it is not necessary to increase the compression ratio of the raster image at the time of fallback by performing replacement of the attribute bit. However, the image quality is not deteriorated. Also, by saving and synthesizing the attribute bits, accurate attribute bits can be generated while keeping the accurate fallback image compression rate low, so that a high-quality print output can be obtained.
[0082]
(Second embodiment)
In the first embodiment, the default attribute bits are respectively pre-compressed and stored in the ROM 4, but the same result can be obtained by generating the predetermined attribute bits at the time of replacement.
[0083]
In this case, in step S508 of the first embodiment, the attribute bits stored in the fallback buffer and the attribute bits already reversibly compressed in the temporary buffer are copied to the attribute bit save area on the RAM 3 and saved. At the same time, the same number of predetermined attribute bits “0000” as the number of scan lines rendered so far are generated, and the attribute bits compressed by the lossless compression unit 23 and the attribute bits stored in the fallback buffer are stored in the fallback buffer. Replace. Further, in step S508, a predetermined attribute bit “0000” for 32 scan lines is generated, the attribute bit which has been compressed by the lossless compression unit 23 and the attribute bit in the temporary buffer are replaced, and the attribute bit replacement flag is set. Proceed to step S509.
[0084]
In step S513, irreversibly compressed raster data and the original attribute bits “0000” for 32 scan lines are generated and stored in the fallback buffer and compressed by the lossless compression unit 23. The reversibly compressed attribute bits in the attribute bit are added and stored in the attribute bit save area.
[0085]
(Third embodiment)
In the first embodiment, it is assumed that the attribute bits generated by the hard renderer 20 at the time of fallback are copied to an attribute bit save area, and the attribute bits in the fallback buffer are replaced with predetermined attribute bits filled with “0000”. However, in the present embodiment, the same effect can be obtained even if the attribute bits in the fallback buffer are deleted from the fallback buffer without being replaced with the predetermined attribute bits.
[0086]
That is, in S508, the attribute bits stored in the fallback buffer and the attribute bits in the temporary buffer that has already been losslessly compressed are copied and saved in the attribute bit saving area on the RAM 2, and then fallback buffering is performed. In addition to deleting all the attribute bits stored therein, the attribute bits in the temporary buffer are also deleted. In step S513, the default attribute bit is not stored in the fallback buffer.
[0087]
In this case, at the time of rendering after fallback, the hard renderer 20 processes only a raster image as a background image, and does not use attribute bits.
[0088]
【The invention's effect】
As described above, according to the present invention, when the size of the raster data + attribute bit exceeds a certain size at the time of fallback, the attribute bit is once saved and stored in the device in advance and has a high compression ratio. By replacing the attribute bit data or deleting the attribute bit, it is possible to suppress the compression ratio of the background raster data from being increased more than necessary, thereby obtaining a high quality print output. In addition, by combining the attribute bits generated at the time of rendering again with the attribute bits saved at the end of rendering after fallback, correct attribute bits can be generated without increasing the compression ratio of raster data. Print output can be obtained.
[Brief description of the drawings]
FIG. 1 is a cross-sectional view illustrating a configuration of an output device according to an embodiment to which the present invention can be applied.
FIG. 2 is a block diagram illustrating a configuration of a printer control system according to an embodiment of the present invention.
FIG. 3 is a diagram showing a structure of attribute bits used in the printing apparatus of the present invention.
FIG. 4 is a flowchart illustrating a basic operation of the embodiment of the present invention.
FIG. 5 is a flowchart illustrating in detail a rendering operation at the time of fallback in the embodiment of the present invention.
FIG. 6 is a flowchart illustrating an attribute bit combining process according to the present invention.
FIG. 7 is a flowchart illustrating in detail a rendering operation at the time of printing in the embodiment of the present invention.
[Explanation of symbols]
1 CPU
2 RAM
3 Output buffer
20 Hard Renderer
22 Lossy compression unit
23 Lossless compression unit
24 Image processing unit
1000 Printer (LBP body)
1001 Printer control unit
3000 external network

Claims (5)

属性ビットの付加された画像データを使用して、印刷出力時に、前記付加された属性ビットに基づき、画像処理を施して印刷することのできる印刷装置において、中間言語を解釈し画像データとしてラスタイメージと属性ビットを出力するレンダリング手段と、前記レンダリング手段が出力したラスタイメージと属性ビットの画像データを背景画像として再度中間言語に登録するフォールバック手段と、前記レンダリング手段が出力するラスタイメージと属性ビットの画像データの総容量が一定サイズを超過した時、前記属性ビットを印刷装置内の別メモリに退避する手段とを有することを特徴とする印刷装置。In a printing apparatus that can perform image processing and print based on the added attribute bits at the time of printout using the image data to which the attribute bits have been added, a raster image is interpreted as image data by interpreting the intermediate language. Rendering means for outputting the raster image and attribute bits output by the rendering means, fallback means for registering the image data of the attribute bits in the intermediate language again as a background image, and the raster image and attribute bits output by the rendering means. Means for saving the attribute bits to another memory in the printing apparatus when the total capacity of the image data exceeds a certain size. 請求項1の印刷装置において、圧縮率の高い既定の属性ビットを予め用意しておき、前記退避した属性ビットと既定の属性ビットを置き換える手段を有することを特徴とする印刷装置。2. The printing apparatus according to claim 1, further comprising means for preparing a predetermined attribute bit having a high compression ratio in advance and replacing the saved attribute bit with the predetermined attribute bit. 請求項2の印刷装置において、前記退避しておいて属性ビットと、フォールバック時に生成された属性ビットを合成し新たな属性ビットを生成する、属性ビット合成手段を有することを特徴とする印刷装置。3. The printing apparatus according to claim 2, further comprising an attribute bit synthesizing unit configured to synthesize the attribute bits saved and the attribute bits generated at the time of fallback to generate a new attribute bit. . 請求項1の印刷装置において、前記レンダリング手段が出力するラスタイメージと属性ビットの画像データの総容量が一定サイズを超過した時、前記属性ビットを印刷装置内の別メモリにしたのち、属性ビットを削除する手段を有することを特徴とする印刷装置。2. The printing apparatus according to claim 1, wherein when the total capacity of the raster image output by the rendering unit and the image data of the attribute bits exceeds a certain size, the attribute bits are stored in another memory in the printing apparatus, and then the attribute bits are changed. A printing apparatus comprising means for deleting. 請求項1のフォールバック手段は、ラスタイメージのみを背景画像として登録することを特徴とする印刷装置。2. The printing apparatus according to claim 1, wherein the fallback unit registers only a raster image as a background image.
JP2003066430A 2003-03-12 2003-03-12 Printing device Withdrawn JP2004268553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003066430A JP2004268553A (en) 2003-03-12 2003-03-12 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003066430A JP2004268553A (en) 2003-03-12 2003-03-12 Printing device

Publications (1)

Publication Number Publication Date
JP2004268553A true JP2004268553A (en) 2004-09-30

Family

ID=33127155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003066430A Withdrawn JP2004268553A (en) 2003-03-12 2003-03-12 Printing device

Country Status (1)

Country Link
JP (1) JP2004268553A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8643861B2 (en) 2011-03-31 2014-02-04 Canon Kabushiki Kaisha Image processing apparatus, data processing method of image processing apparatus, and storage medium for performing multitask processing and single task processing while interpreting PDL data
US8780127B2 (en) 2011-05-09 2014-07-15 Canon Kabushiki Kaisha Image forming apparatus, method for controlling same, and storage medium
JP2016005911A (en) * 2015-07-08 2016-01-14 キヤノン株式会社 Image processing apparatus, data processing method of image processing apparatus, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8643861B2 (en) 2011-03-31 2014-02-04 Canon Kabushiki Kaisha Image processing apparatus, data processing method of image processing apparatus, and storage medium for performing multitask processing and single task processing while interpreting PDL data
US8780127B2 (en) 2011-05-09 2014-07-15 Canon Kabushiki Kaisha Image forming apparatus, method for controlling same, and storage medium
JP2016005911A (en) * 2015-07-08 2016-01-14 キヤノン株式会社 Image processing apparatus, data processing method of image processing apparatus, and program

Similar Documents

Publication Publication Date Title
US7697772B2 (en) Apparatus, method and computer program product for performing image compression of image data
JP4136292B2 (en) Image processing device
US6738150B1 (en) Methods and systems for processing image data
JP2004268553A (en) Printing device
JP2006263969A (en) Image processing device, printing job forming device, and image processing system
JP3685234B2 (en) Image processing device
JP2003323278A (en) Print program and print server
JP2018058295A (en) Image processing apparatus, image processing method and program
JP4400709B2 (en) Image processing apparatus and image processing method
JP2000335021A (en) Image processing apparatus and method
JP4136894B2 (en) Printing apparatus, printing method, and storage medium storing computer-readable program
JP2019010817A (en) Image processing apparatus, image processing method, and program
JP2004254187A (en) Information processor
JP4325339B2 (en) Printing system, host computer and printer driver
JP2004326266A (en) Print control method, information processing device, and printer
JP4029672B2 (en) Print program, print server, and printing method
JP2006159458A (en) Image output device
JP2009154546A (en) Image processing apparatus and image processing method
JP2005244748A (en) Image processing method and image processing apparatus
JP2004021925A (en) Image processor
JPH05205015A (en) Image processor
JPH06325137A (en) Image processing system
JP2001337810A (en) Picture processing device and method thereof and computer readable record medium storing picture processing program
JP2006164066A (en) Data processing system, data processor, data processing method and control program
JP2002236564A (en) Apparatus and system for image formation, encoding control method, and storage medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060606