JP2013056510A - Apparatus and method for image processing - Google Patents
Apparatus and method for image processing Download PDFInfo
- Publication number
- JP2013056510A JP2013056510A JP2011197230A JP2011197230A JP2013056510A JP 2013056510 A JP2013056510 A JP 2013056510A JP 2011197230 A JP2011197230 A JP 2011197230A JP 2011197230 A JP2011197230 A JP 2011197230A JP 2013056510 A JP2013056510 A JP 2013056510A
- Authority
- JP
- Japan
- Prior art keywords
- halftone pattern
- value
- halftone
- processing
- command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、コピー、スキャナー、デジタルカメラ、プリンタなどの画像処理装置等に関し、特に、取りこまれたコマンドを解析し、描画し、印刷する画像処理装置および画像処理方法に関する。 The present invention relates to an image processing apparatus such as a copy, a scanner, a digital camera, and a printer, and more particularly to an image processing apparatus and an image processing method for analyzing, drawing, and printing captured commands.
従来、ページプリンタなどにおいて、高い解像度を維持しつつ、印字速度を高速化したいという要求に応えるために、例えば、階調処理後の画像を高速に描画する技術がある。 2. Description of the Related Art Conventionally, in a page printer or the like, there is a technique for drawing an image after gradation processing at high speed, for example, in order to meet a demand for increasing the printing speed while maintaining high resolution.
従来のプリンタにおける処理の流れは、例えば、ネットワークから受け取ったPDL(Page Description Language:ページ記述言語)を解析して描画装置に実行させることが可能な中間言語を生成し、描画装置が中間言語を解析してバンドメモリへ階調処理後の画像を描画して、2値画像の圧縮アルゴリズム(JBIGなど)により符号化し、その符号をメモリに格納して、その後、プリントアウト時に、各版ごと遅延させ、メモリから符号データを読み込み、上記の圧縮アルゴリズムにより復号化して、その後、CMYK形式のC(Cyan:シアン),M(Magenta:マゼンダ),Y(Yellow:イエロー),K(Key Plate)の各版に対応するデータのプリンタエンジンに転送し、印字していた。 The flow of processing in a conventional printer is, for example, generating an intermediate language that can be executed by a drawing apparatus by analyzing a PDL (Page Description Language) received from a network, and the drawing apparatus uses the intermediate language. Analyzes and renders the image after gradation processing to the band memory, encodes it with a binary image compression algorithm (JBIG, etc.), stores the code in the memory, and then delays each plate at the time of printout The code data is read from the memory, decoded by the above compression algorithm, and then C (Cyan: Cyan), M (Magenta: Magenta), Y (Yellow: Yellow), K (Key Plate) in the CMYK format. The data corresponding to each plate was transferred to the printer engine and printed.
ところで、階調処理後の画像を高速に描画する技術に関連するものとして、例えば、事前にハーフトーンしきい値マトリックスデータから、階調値により2値化した2値マトリックスデータを作成し、描画部のメモリバウンダリ幅と基本ビットパターンの幅との最小公倍数のハーフトーンパターンを作成し、ハーフトーンリピート機能により、水平方向に順次繰り返し描画する従来技術(以下、従来技術1と記載する)がある(特許文献1参照)。 By the way, as a technique related to a technique for drawing an image after gradation processing at high speed, for example, binary matrix data binarized by gradation values is created in advance from halftone threshold matrix data and drawn. There is a conventional technique (hereinafter referred to as prior art 1) in which a halftone pattern having the least common multiple of the memory boundary width of a portion and the width of a basic bit pattern is created and sequentially drawn in the horizontal direction by a halftone repeat function. (See Patent Document 1).
また、階調処理後の画像を高速に描画する技術に関連するものとして、描画ワードX幅のハーフトーンパターンを少なくともハーフトーンパターンのY幅分を記憶し、ハーフトーンパターンアドレス値に対応するハーフトーンパターンを用いてハーフトーンパターンシフト値分の巡回シフト処理を行なうことにより、同じ階調値である描画オブジェクトに対して、効率よくハーフトーンパターンを使用する技術(以下、従来技術2と記載する)などもある(特許文献2参照)。 Further, as related to a technique for drawing an image after gradation processing at high speed, a halftone pattern having a drawing word X width is stored at least for the Y width of the halftone pattern, and a halftone pattern corresponding to the halftone pattern address value is stored. A technique for efficiently using a halftone pattern for a drawing object having the same gradation value by performing a cyclic shift process corresponding to the halftone pattern shift value using the tone pattern (hereinafter referred to as prior art 2). (See Patent Document 2).
従来技術1では、例えば、ハーフトーンパターンセットコマンドが来ると、指定されたハーフトーンパターン先頭アドレスから、階調処理後のハーフトーンパターンを順次読み込む。このように、従来技術1は、描画する前にハーフトーンパターンを読み込む必要があるので、その分、描画時間が長くなってしまう。
In
また、従来技術2では、しきい値テーブルコマンドセットが来ると、指定されたしきい値テーブルコマンドセットの先頭アドレスから順次読み込み、その後、描画ごとに、しきい値テーブルコマンドセットを読み込むことはないが、一方で、しきい値テーブルを使用して描画コマンドごとに階調処理を行い、ハーフトーンパターンを生成する必要がある。従来技術2は、しきい値テーブルを使用して描画コマンドごとに階調処理を行い、ハーフトーンパターンを生成する必要があるので、その分、描画時間が長くなってしまう。
Further, in the
本発明は、上記に鑑みてなされたものであって、処理時間を短くすることが可能な画像処理装置および画像処理方法を提供することを目的とする。 The present invention has been made in view of the above, and an object thereof is to provide an image processing apparatus and an image processing method capable of shortening the processing time.
上述した課題を解決し、目的を達成するために、本発明は、所定範囲の領域を示すバンド単位で階調処理後の画像を描画する画像処理装置であって、画像を描画単位に分解した場合の水平方向の始点と終点との幅である描画幅のハーフトーンパターンのハーフトーンしきい値を、少なくともハーフトーンパターンの垂直方向の幅分記憶するハーフトーンしきい値記憶手段と、前記描画幅のハーフトーンパターンを、少なくとも前記ハーフトーンパターンの垂直方向の幅分記憶するハーフトーンパターン記憶手段と、描画する水平ラインの垂直方向の位置を示す値から、対応するハーフトーンパターンを記憶した前記ハーフトーンパターン記憶手段のハーフトーンパターンアドレス値を生成するハーフトーンパターンアドレス生成手段と、前記ハーフトーンしきい値記憶手段からハーフトーンしきい値を読み込み、読み込んだハーフトーンしきい値を用いて階調処理を行ない、該階調処理により生成したハーフトーンパターンを前記ハーフトーンパターン記憶手段へ転送するハーフトーンパターン生成手段と、前記描画幅を、前記ハーフトーンパターンの水平方向の幅で割ったときの余り値を求め、該余り値を用いて前記ハーフトーンパターン記憶手段に記憶されているハーフトーンパターンをシフトするためのハーフトーンパターンシフト値を生成するハーフトーンパターンシフト値生成手段と、前記ハーフトーンパターンアドレス値によるアクセスにより前記ハーフトーンパターン記憶手段から転送されるハーフトーンパターンを、前記ハーフトーンパターンシフト値生成手段により生成されたハーフトーンパターンシフト値を用いて、該ハーフトーンパターンシフト値分の巡回シフトを行なう巡回シフト手段と、前記巡回シフトにより、同一の階調値である描画オブジェクトに対応するハーフトーンパターンを繰り返し使用して描画する描画手段とを備え、前記ハーフトーンパターン生成手段による処理と前記描画手段による処理とを並列に行うことを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention is an image processing apparatus that draws an image after gradation processing in a band unit indicating an area in a predetermined range, and decomposes the image into drawing units. A halftone threshold value storage means for storing a halftone threshold value of a halftone pattern having a drawing width that is a width between a start point and an end point in a horizontal direction in the case of at least the vertical width of the halftone pattern; A halftone pattern storage means for storing a halftone pattern of width at least for the vertical width of the halftone pattern, and a value indicating a vertical position of a horizontal line to be drawn, the corresponding halftone pattern is stored. Halftone pattern address generating means for generating a halftone pattern address value of the halftone pattern storage means; and The halftone threshold value is read from the halftone threshold value storage means, gradation processing is performed using the read halftone threshold value, and the halftone pattern generated by the gradation processing is transferred to the halftone pattern storage means. A halftone pattern generating means for calculating a remainder value obtained by dividing the drawing width by a width in the horizontal direction of the halftone pattern, and using the remainder value, the halftone pattern stored in the halftone pattern storage means A halftone pattern shift value generating means for generating a halftone pattern shift value for shifting the tone pattern, and a halftone pattern transferred from the halftone pattern storage means by the access by the halftone pattern address value. For tone pattern shift value generation means A cyclic shift means for performing a cyclic shift by the halftone pattern shift value using the generated halftone pattern shift value, and a halftone pattern corresponding to a drawing object having the same gradation value by the cyclic shift. And a drawing unit that repeatedly draws, and the processing by the halftone pattern generation unit and the processing by the drawing unit are performed in parallel.
また、本発明は、所定範囲の領域を示すバンド単位で階調処理後の画像を描画する画像処理装置で実行される画像処理方法であって、画像を描画単位に分解した場合の水平方向の始点と終点との幅である描画幅のハーフトーンパターンのハーフトーンしきい値を、少なくともハーフトーンパターンの垂直方向の幅分記憶するハーフトーンしきい値記憶手段からハーフトーンしきい値を読み込んで、読み込んだハーフトーンしきい値を用いて階調処理を行ない、該階調処理により生成したハーフトーンパターンを、前記描画幅のハーフトーンパターンを少なくとも前記ハーフトーンパターンの垂直方向の幅分記憶する前記ハーフトーンパターン記憶手段へ転送するハーフトーンパターン生成工程と、描画する水平ラインの垂直方向の位置を示す値から、対応するハーフトーンパターンを記憶した前記ハーフトーンパターン記憶手段のハーフトーンパターンアドレス値を生成するハーフトーンパターンアドレス生成手段と、前記描画幅を、前記ハーフトーンパターンの水平方向の幅で割ったときの余り値を求め、該余り値を用いて前記ハーフトーンパターン記憶手段に記憶されているハーフトーンパターンをシフトするためのハーフトーンパターンシフト値を生成するハーフトーンパターンシフト値生成工程と、前記ハーフトーンパターンアドレス値によるアクセスにより前記ハーフトーンパターン記憶手段から転送されるハーフトーンパターンを、前記ハーフトーンパターンシフト値生成工程により生成されたハーフトーンパターンシフト値を用いて、該ハーフトーンパターンシフト値分の巡回シフトを行なう巡回シフト工程と、前記巡回シフトにより、同一の階調値である描画オブジェクトに対応するハーフトーンパターンを繰り返し使用して描画する描画工程とを含み、前記ハーフトーンパターン生成工程による処理と前記描画工程による処理とを並列に行うことを特徴とする。 The present invention also relates to an image processing method executed by an image processing apparatus that draws an image after gradation processing in units of bands indicating a predetermined range area, in the horizontal direction when the image is decomposed into drawing units. The halftone threshold value is read from the halftone threshold value storage means for storing the halftone threshold value of the halftone pattern of the drawing width which is the width between the start point and the end point at least for the vertical width of the halftone pattern. Then, gradation processing is performed using the read halftone threshold value, and the halftone pattern generated by the gradation processing is stored for at least the halftone pattern of the drawing width in the vertical width of the halftone pattern. A halftone pattern generation process to be transferred to the halftone pattern storage means and a vertical position of a horizontal line to be drawn are shown. From the halftone pattern address generating means for generating the halftone pattern address value of the halftone pattern storage means storing the corresponding halftone pattern, and the drawing width divided by the horizontal width of the halftone pattern A halftone pattern shift value generating step for generating a halftone pattern shift value for shifting the halftone pattern stored in the halftone pattern storage means using the remainder value, A halftone pattern transferred from the halftone pattern storage means by access by a halftone pattern address value is converted into the halftone pattern using the halftone pattern shift value generated by the halftone pattern shift value generation step. A halftone pattern generating step, and a halftone pattern generating step, wherein a halftone pattern corresponding to a rendering object having the same gradation value is repeatedly drawn by the cyclic shift, and the halftone pattern is drawn. And the drawing process are performed in parallel.
本発明によれば、描画時間を短くするという効果を奏する。 According to the present invention, there is an effect of shortening the drawing time.
以下に添付図面を参照して、画像処理装置および画像処理方法の一実施形態を詳細に説明する。 Hereinafter, an embodiment of an image processing apparatus and an image processing method will be described in detail with reference to the accompanying drawings.
図1は、本実施形態に係る画像処理装置を適用可能な画像形成装置(カラープリンタとする)の機構部の構成例を示す図である。図1に示す画像形成装置100において、像担持体であるベルト状の感光体1は、回転ローラ2,3により回動可能に支持され、その各回転ローラ2,3の駆動により矢示A方向に回動される。感光体1の外周部には、帯電手段である帯電装置4と、除電ランプLと、感光体1用のクリーニングブレード15Aとが配置されている。帯電装置4の下流位置には、光書込手段であるレーザ書き込みユニット5が配置される。
FIG. 1 is a diagram illustrating a configuration example of a mechanism unit of an image forming apparatus (referred to as a color printer) to which the image processing apparatus according to the present embodiment can be applied. In the
レーザ書き込みユニット5の上部には、複数の現像ユニット(現像手段)が切り換え自在に支持された多色現像装置6が配置されている。多色現像装置6は、収容するトナーの色毎に、イエロー現像ユニット、マゼンタ現像ユニット、シアン現像ユニットを備えている。多色現像装置6の上部には、黒色トナーを収容したブラック現像ユニット7が備えられている。
Above the
これらの各現像ユニットのいずれか1つが、対応する色の現像タイミングに同期して現像可能な位置に移動する。多色現像装置6は、円周上120度の回転によっていずれかの現像ユニットを選択する機能を有している。そして、これらの現像ユニットが稼動するときには、ブラック現像ユニット7は感光体1より離間した位置に移動する。その移動は、カム45の回転により行なわれる。
Any one of these development units moves to a position where development is possible in synchronization with the development timing of the corresponding color. The multicolor developing device 6 has a function of selecting any developing unit by rotating 120 degrees on the circumference. When these developing units operate, the black developing
レーザ書き込みユニット5は、図示しないレーザ光源から複数色の画像形成信号(書き込み情報)に応じたレーザ光を順次発生させ、ポリゴンモータ5Aによって回転されるポリゴンミラー5Bを用いてそのレーザ光を周期的に偏向させ、fθレンズ5Cおよびミラー5Dなどを経て、帯電された感光体1の表面を走査してその表面に静電潜像を形成させる。
The
感光体1の表面に形成される静電潜像は、対応する現像ユニットからのトナーによって現像され、トナー画像が形成されて保持される。中間転写ベルト10は、感光体1に隣接しており、回転ローラ11,12により矢示B方向に回動可能に支持されている。感光体1上のトナー画像は、中間転写ベルト10の裏側にある転写ブラシ(第1の転写手段)13により、その中間転写ベルト10の表面に転写される。
The electrostatic latent image formed on the surface of the
感光体1の表面は1色毎にクリーニングブレード15Aによりクリーニングされ、その表面に所定色のトナー画像が形成される。そして、その都度中間転写ベルト10の1回動毎にその表面の同じ位置に感光体1上のトナー画像が転写されて、中間転写ベルト10上に複数色のトナー画像が重ね合わせられて保持される。その後、そのトナー画像は用紙やプラスチック等の記録媒体に転写される。
The surface of the
用紙への転写に際しては、給紙装置(給紙カセット)17に収納されている用紙が給紙ローラ18によって繰り出されて搬送ローラ19により搬送され、レジストローラ対20に付き当てられた状態で一旦停止された後、トナー画像の転写位置が正規のものとなるようにタイミングがとられて中間転写ベルト10と転写ローラ(第2の転写手段)14のニップに再搬送される。
At the time of transfer onto the paper, the paper stored in the paper feeding device (paper feeding cassette) 17 is fed out by the
そして、その用紙は転写ローラ14の作用により中間転写ベルト10上の複数色のトナー画像が一括転写された後、定着装置50に送られ、そこでトナー像が定着された後、排紙ローラ対51により本体フレーム9の上部の排紙スタック部52に排出される。
Then, after the toner images of a plurality of colors on the
中間転写ベルト10には、回転ローラ11の部位に中間転写ベルト10用のクリーニング装置16が設けられ、クリーニングブレード16Aがクリーニングブレード接離用アーム16Cを介して接離自在の構成となっている。このクリーニングブレード16Aは、感光体1からトナー画像を受け取る工程では、中間転写ベルト10から離れ、中間転写ベルト10より用紙にトナー画像が転写された後に接触するようになっていて、用紙にトナー画像が転写された後の残留トナーをかきとる。
The
クリーニングブレードは、すでに記したように、感光体1用と中間転写ベルト10用がある。これらブレードがかきとった廃トナーは、回収容器15に収納する。その回収容器15は適宜交換される。中間転写ベルト10用のクリーニング装置16の内部に設けられたオーガ16Bが、クリーニングブレード16Aでかきとられた廃トナーを搬送し、図示しない搬送手段で回収容器15に送るようになっている。
As already described, there are cleaning blades for the
ユニット化されたプロセスカートリッジ31は、感光体1と、帯電装置4と、中間転写ベルト10と、クリーニング装置16と、用紙搬送路を形成する搬送ガイド30とを一体に組み込み、寿命到来時に交換できるように構成されている。プロセスカートリッジ31の交換のほかに、多色現像装置6、ブラック現像ユニット7なども寿命到来時に交換するが、その交換性やジャム紙の処理を容易にするため、本体の一部の前フレーム8は支軸9Aを中心に開閉可能に回動できる構造にしてある。
The unitized
図1の左側には、コントローラボード60が収納されている。その上方には、ファン58が備えられており、機内の温度過昇防止のために排風する。図の右側には、比較的小規模な別の給紙装置59が備えられている。なお、この実施形態では、中間転写体として中間転写ベルト10を使用したが、中間転写ドラムを使用することもできる。
A
図2は、画像形成装置100の電装・制御部のハードウェア構成の例を示す図である。図2の電装・制御部は、コントローラボード60が、ネットワークを介してパーソナルコンピュータ(以下、「PC」という。)200に接続される。コントローラボード60は、CPU101と、CPU I/F102と、メモリアービター103と、メモリコントローラ104と、ハードウェア回路で構成される描画装置105と、エンジンコントローラ106と、通信コントローラ107と、ローカルI/F108と、ROM109と、パネルコントローラ110と、を含む。
FIG. 2 is a diagram illustrating an example of a hardware configuration of the electrical / control unit of the
CPU101は、画像形成装置100全体の制御を行う。CPU101は、また、PC200から伝送されるPDL(page description language)を解析し、描画コマンド、および、画像処理に必要な情報の生成等を行う。ここでは、所定の言語で記述されるとともに、画像の描画を指示する画像描画指示データの一例として、PDLを例示しているが、これに限定されるものではない。CPU I/F102は、CPU101のインタフェースであり、メモリアービター103を介してメインメモリ112及び他のコントローラ等に接続されている。メインメモリ112は、PDL、PDLを解析して得られる各種データ、PDLに含まれる画像(PDLを解析して得られる画像データ)に対して所定のハーフトーン処理が行われたハーフトーン処理後の画像データ(ハーフトーンパターン)、および、CPU101が実行するコンピュータプログラム等を格納する。
The CPU 101 controls the entire
メモリアービター103は、メモリコントローラ104と各種のコントローラ間の調停を行う。メモリコントローラ104は、メインメモリ112をコントロールし、メモリアービター103を介して各種のコントローラやCPU101と接続される。
The
描画装置105は、CPU101が生成した描画コマンドを読み込んで解析し、解析したコマンドに従ってバンド単位の描画処理を実行する。そして、描画したバンド画像をメインメモリ112のバンドメモリ領域に書き込む。エンジンコントローラ106は、プリンタエンジン114を制御する。プリンタエンジン114は、エンジンコントローラ106の制御により、画像を媒体上に形成する。PC200は、プリンタエンジン114に出力させる画像のPDLを作成し、ネットワークを介してPDLを画像形成装置100に対して出力する。
The
通信コントローラ107は、ネットワークに接続され、ネットワークを介して接続されたPC200等から送信される各データやコマンド等を受信する。通信コントローラ107は、また、メモリアービター103を介して接続される各コントローラに対して受信したデータ等を出力し、各コントローラから入力されるデータ等を、PC200等に対して送信する。
The
ROM109は、CPU101が実行するコンピュータプログラムや、文字のフォント情報等を格納する。ROM109は、ローカルI/F108を介してメモリアービター103に接続される。パネルコントローラ110は、オペレーション用のパネル113を制御する。パネルコントローラ110は、ローカルI/F108を介してメモリアービター103に接続される。パネル113は、画像形成装置100の状態の表示を行い、また、画像形成装置100に対するユーザーからの操作入力を受け付ける。
The
図3は、画像形成装置100における処理の一例の概略を示すフロー図である。PDL記憶ステップS1では、PC200から入力されるPDLが、メインメモリ112に格納される。次の描画コマンド生成ステップS2では、CPU101は、メインメモリ112に格納されたPDLを読み出して解析し、描画コマンドを生成する。また、CPU101は、PDLを解析して得られる画像に対してハーフトーン処理を実行し、ハーフトーン処理後の画像データ(ハーフトーンパターン)を、メインメモリ112の所定の領域(ハーフトーンパターン格納領域)に書き込む。次の描画コマンド記憶ステップS3では、CPU101は、生成した描画コマンドをメインメモリ112の所定の領域に書き込む。次の描画処理ステップS4では、描画装置105は、メインメモリ112に格納された描画コマンドを読み出し、その読み出した描画コマンドに従って、バンド単位での画像の描画を実行する。CPU101は、描画したバンド画像をメインメモリに書き込んでいき、1ページ分のバンド画像がメインメモリ112に格納される(次のページ記憶ステップS5)。次に、プリンタエンジン114は、メインメモリ112から、描画装置105により描画された1ページ分の画像データを読み出し、印刷して出力する。
FIG. 3 is a flowchart showing an outline of an example of processing in the
図4は、描画装置105の構成例を示すブロック図である。図4に示すように、描画装置105は、メモリアービターI/F121と、コマンド解析装置122と、描画処理装置123と、コントローラ124とを含む。メモリアービターI/F121は、コマンド解析装置122および描画処理装置123をメモリアービター103に接続するためのインタフェース装置である。
FIG. 4 is a block diagram illustrating a configuration example of the
コマンド解析装置122は、メインメモリ112に格納された描画コマンドを読み出し、その読み出した描画コマンドを解析する。コマンド解析装置122は、読み出したコマンドが描画パラメータ設定コマンドである場合は、そのコマンドで特定される各種のパラメータを描画処理装置123へ転送し、次のコマンドをメインメモリ112から読み出す。一方、読み出したコマンドが描画実行コマンドである場合は、描画処理装置123に対して、そのコマンドで特定される各種のパラメータを転送した後、描画用起動信号を転送する。その後、コマンド解析装置122は、描画処理装置123からの描画終了信号を受信した場合に、次の描画コマンドをメインメモリ112から読み出す。また、コマンド解析装置122は、描画コマンドの先頭のコマンドであるバンド初期化コマンドを読み出した場合、そのバンド初期化コマンドで特定されるバンドパラメータ(例えばバンド先頭アドレス、バンド始点Y座標、バンド高さ、バンド幅等)を描画処理装置123へ転送した後、次のコマンドをメインメモリ112から読み出す。
The command analysis device 122 reads the drawing command stored in the
描画処理装置123は、コマンド解析装置122から、各種のパラメータ(描画を行うための描画パラメータ)を受け取り、コマンド解析装置122から描画用起動信号を受信した場合に、描画処理を実行する。また、描画処理装置123は、描画処理が終了すると、描画処理の終了を示す終了信号をコマンド解析装置122へ転送する。描画処理装置123の詳細な構成については後述する。コントローラ124は、描画装置105全体を制御する手段である。
When the
図5は、描画処理装置123の構成例を示すブロック図である。図5に示すように、描画処理装置123は、DMAアドレス生成装置131と、DMA読み込み装置132と、バンドパラメータ記憶装置133と、グラフィックス用描画パラメータ記憶装置134と、水平ライン変換装置135と、水平ライン描画装置136と、グラフィックス用しきい値マトリックス記憶装置137と、コントローラ138とを含む。
FIG. 5 is a block diagram illustrating a configuration example of the
DMAアドレス生成装置131は、コマンド解析装置122から、描画を行うためのパラメータなど、各DMAの先頭アドレス(グラフィックス画像しきい値先頭アドレスを含む)を受け取り、DMAアドレスを生成してDMA読み込み装置132へ転送する。DMA読み込み装置132は、DMAアドレス生成装置131から、各DMAの先頭アドレスを受信した場合、メモリアービターI/F121を介してメインメモリ112にアクセスし、メインメモリ112から各DMAの先頭アドレスで特定される領域に格納されたDMAデータを読み込み、グラフィックス用しきい値マトリックス記憶装置137に格納する。グラフィックス用しきい値マトリックス記憶装置137は、DMAされたしきい値マトリックスのデータを記憶する。グラフィックス用描画パラメータ記憶装置134は、コマンド解析装置122から転送されたグラフィックス用描画パラメータを記憶する。バンドパラメータ記憶装置133は、コマンド解析装置122から転送されたバンドパラメータを記憶する。水平ライン変換装置135は、グラフィックス用描画パラメータ記憶装置134に記憶された描画パラメータを読み出し、その読み出した描画パラメータを水平ラインデータに変換する。水平ラインデータには、水平ラインY値、水平ラインX始点値、水平ラインX終点値が含まれる。水平ライン描画装置136は、水平ライン変換装置135からの水平ラインデータに基づき、メモリアービターI/F121を介してメインメモリ112のバンドメモリ領域へ描画する。
The DMA
図6は、水平ライン描画装置136の構成例を示すブロック図である。図6に示すように、水平ライン描画装置136は、ハーフトーンパターンアドレス生成装置141と、X始点ワード値生成装置142と、X終点ワード値生成装置143と、描画ワードX値生成装置144と、ハーフトーンパターンシフト値生成装置145と、描画マスク生成装置146と、ハーフトーンパターン記憶装置147と、巡回シフト装置148と、論理演算装置149と、描画アドレス生成装置150と、ハーフトーンパターン生成装置151と、ハーフトーンしきい値アドレス生成装置152と、水平描画コントローラ153とを含む。
FIG. 6 is a block diagram illustrating a configuration example of the horizontal
ハーフトーンパターンアドレス生成装置141は、水平ライン変換装置135から転送された水平ラインY値と、DMA読み込み装置132で読み込まれたハーフトーンパターンのY方向(垂直方向)の幅(Y幅)とから、水平ラインY値−MOD−ハーフトーンパターンY幅を行い(水平ラインY値をハーフトーンパターンY幅で除算するMOD演算を行い)、割り算の余りであるハーフトーンパターンのY値を求め、ハーフトーンパターンアドレスとして、ハーフトーンパターン記憶装置147へ転送する。
The halftone pattern address generator 141 uses the horizontal line Y value transferred from the
X始点ワード値生成装置142は、水平ライン変換装置135から転送された水平ラインX始点値から、描画ワード単位の描画ワードX始点値を求め、描画ワードX値生成装置144へ転送する。
The X start point word
X終点ワード値生成装置143は、水平ライン変換装置135から転送された水平ラインX終点値から、描画ワード単位の描画ワードX終点値を求め、描画ワードX値生成装置144へ転送する。
The X end point word
描画ワードX値生成装置144は、描画ワード単位のX始点値からX終点値の描画ワードX値を生成し、ハーフトーンパターンシフト値生成装置145へ転送する。なお、描画ワードX値は、画像を描画単位に分解した場合の水平方向の始点と終点との幅である。
The drawing word X
ハーフトーンパターンシフト値生成装置145は、描画ワードX値生成装置144から転送される描画ワードX値と、DMA読み込み装置132で読み込まれたハーフトーンパターンのX方向の幅(X幅)とから、描画ワードX値−MOD−ハーフトーンパターンX幅を行い、割り算の余りであるハーフトーンパターンのX値を求め、ハーフトーンパターンシフト値として巡回シフト装置148へ転送する。
The halftone pattern shift
描画マスク生成装置146は、水平ライン変換装置135から転送される水平ラインX始点値および水平ラインX終点値から、描画ワードごとのX始点からX終点までの描画マスクを生成し、論理演算装置149へ転送する。
The drawing
ハーフトーンパターン記憶装置147は、ハーフトーンパターンの描画ワードの水平ラインを、ハーフトーンパターンのY幅分記憶する記憶装置であり、ハーフトーンパターンアドレス生成装置141からのハーフトーンパターンアドレスによりアクセスされたハーフトーンパターン値を巡回シフト装置148へ転送する。
The halftone
巡回シフト装置148は、ハーフトーンパターン記憶装置147からハーフトーンパターン値を、ハーフトーンパターンシフト値生成装置145からハーフトーンパターンシフト値を、描画パラメータ記憶装置134からハーフトーンパターンあまり値を受け取り、ハーフトーンパターン値を巡回シフトし、巡回シフト後のハーフトーンパターン値を論理演算装置149へ転送する。
The
論理演算装置149は、AND回路で構成され、巡回シフト装置148からの巡回シフト後のハーフトーンパターン値と、描画マスク生成装置146からの描画マスクとの論理積を求めて描画パターン値を生成し、その生成した描画パターン値をメモリアービターI/F121へ転送する。
The
描画アドレス生成装置150は、水平ライン変換装置135からの水平ラインY値および水平ラインX始点値からメインメモリ112のバンドメモリへ描画するアドレスである描画アドレスを生成し、メモリアービターI/F121へ転送する。水平描画コントローラ153は、水平ライン描画装置136全体を制御する。
The drawing
ハーフトーンパターン生成装置151は、描画実行コマンド(図8参照)を受け取った後に起動し、グラフィックス用しきい値マトリックス記憶装置137の指定されたしきい値テーブルアドレスからしきい値を読み込み、色値で階調処理を行い、ハーフトーンパターン記憶装置147に階調処理後のハーフトーンパターンを格納する。
The halftone
ハーフトーンしきい値アドレス生成装置152は、描画パラメータ設定コマンド(図7参照)を受取った後に起動し、グラフィックス用しきい値マトリックス記憶装置137の指定されたしきい値テーブルアドレスからしきい値のアドレスを生成する。
The halftone threshold
水平描画コントローラ153は、水平ライン描画装置136による処理動作全体を制御する。
The
図7は、描画パラメータ設定コマンドのフォーマット例を示す図である。図8は、描画実行コマンドのフォーマット例を示す図である。描画コマンドは、図7に示す描画パラメータ設定コマンドと、図8に示す描画実行コマンドとに分けることができる。 FIG. 7 is a diagram illustrating a format example of a drawing parameter setting command. FIG. 8 is a diagram illustrating a format example of a drawing execution command. Drawing commands can be divided into drawing parameter setting commands shown in FIG. 7 and drawing execution commands shown in FIG.
図7に、バンド初期化コマンド(1)、しきい値テーブル設定コマンド(2)、バンド終了コマンド(3)を示す。 FIG. 7 shows a band initialization command (1), a threshold table setting command (2), and a band end command (3).
図7に示すバンド初期化コマンド(1)は、バンドの先頭アドレスとバンドの高さと幅を定義するためのコマンドである。図4に示すコマンド解析装置122は、このコマンドを受け取ると、バンドの先頭アドレスと、バンドの高さと幅を格納する。 The band initialization command (1) shown in FIG. 7 is a command for defining the start address of the band, the height and width of the band. When the command analysis device 122 shown in FIG. 4 receives this command, it stores the start address of the band and the height and width of the band.
図7に示すしきい値テーブル設定コマンド(2)は、ハーフトーンしきい値を設定するためのコマンドである。図4に示すコマンド解析装置122は、このコマンドを受け取ると、(グラフィックス画像)しきい値先頭アドレスを設定し、図5に示すDMAアドレス生成装置131およびDMA読み込み装置132を起動することにより、図2に示すメインメモリ112の描画コマンド領域の中から指定されたしきい値を順次読み込んで、図5に示すグラフィックス用しきい値マトリックス記憶装置137に書き込む。また、図4に示すコマンド解析装置122は、ディザX,Yサイズを、図5に示すグラフィックス用描画パラメータ記憶装置134に格納する。なお、ハーフトーンしきい値とは、多値の画像を少値(2値/4値など)に変換するハーフトーン処理のしきい値マトリックスの値である。組織的ディザ法のしきい値マトリックスを空間周波数特性から大別すると、中心を格に順次太っていくように構成されたドット集中型とドットがなるべく分散するように構成されたドット分散型の2種に分類される。また、ディザX,Yサイズとは、ハーフトーンしきい値(しきい値マトリックス)のX方向のサイズとY方向のサイズを示す。
The threshold value table setting command (2) shown in FIG. 7 is a command for setting a halftone threshold value. Upon receiving this command, the command analysis device 122 shown in FIG. 4 sets a (graphics image) threshold start address, and starts the DMA
図7に示すバンド終了コマンド(3)は、定義したバンドの描画処理を終了するためのコマンドである。図4に示すコマンド解析装置122は、このコマンドを受け取ると、そのバンドの描画処理を終了する。 The band end command (3) shown in FIG. 7 is a command for ending the drawing process of the defined band. Upon receiving this command, the command analysis device 122 shown in FIG. 4 ends the drawing process for the band.
図8に、四角形描画コマンド(1)と、3角形描画コマンド(2)を示す。 FIG. 8 shows a rectangle drawing command (1) and a triangle drawing command (2).
図8に示す四角形描画コマンド(1)は、指定された四角形の左上の座標から右下の座標までの四角形を描画するためのコマンドである。図4に示すコマンド解析装置122は、このコマンドを受け取ると、四角形の左上の座標、右下の座標、および四角形コマンド名を、図5に示すグラフィックス用描画パラメータ記憶装置134に格納し、図4に示す描画処理装置123を起動する。
The rectangle drawing command (1) shown in FIG. 8 is a command for drawing a rectangle from the upper left coordinate to the lower right coordinate of the designated rectangle. When receiving this command, the command analysis device 122 shown in FIG. 4 stores the upper left coordinates of the rectangle, the lower right coordinates, and the rectangle command name in the graphics drawing
図8に示す3角形描画コマンド(2)は、指定された3角形の頂点から3角形を描画するためのコマンドである。図4に示すコマンド解析装置122は、このコマンドを受け取ると、3角形の頂点の座標を、グラフィックス用描画パラメータ記憶装置134に格納し、図4に示す描画処理装置123を起動する。
The triangle drawing command (2) shown in FIG. 8 is a command for drawing a triangle from the apex of the specified triangle. Upon receiving this command, the command analysis device 122 shown in FIG. 4 stores the coordinates of the triangle vertices in the graphics drawing
図9は、描画処理の一例を示すフローチャートである。図9は、図2に示す描画装置105による描画処理の一例を示す。
FIG. 9 is a flowchart illustrating an example of the drawing process. FIG. 9 shows an example of a drawing process performed by the
図9に示すように、描画装置105は、描画コマンドを読み込む(S101)。続いて、描画装置105は、読み込んだ描画コマンドが描画実行コマンド(四角形描画コマンド、OR、3角形描画コマンド、図8参照)であるか否かを判定する(S102)。
As shown in FIG. 9, the
判定の結果、描画実行コマンドである場合には(S102、Yes)、描画装置105は、グラフィックス用描画パラメータ記憶装置134に描画パラメータを設定する(S103)。なお、グラフィックス用描画パラメータ記憶装置134をダブルバッファとして、1面に実行中の描画処理の描画パラメータを格納し、もう1面に次の描画時の描画パラメータを格納するように構成することができる。
If it is determined that the command is a drawing execution command (S102, Yes), the
続いて、描画装置105は、描画実行コマンドで設定される色値が、ハーフトーンパターン記憶装置147の色値と同じであるか否かを判定する(S104)。
Subsequently, the
判定の結果、ハーフトーンパターンの色値が異なる場合には(S104、No)、描画装置105は、ハーフトーンパターン生成処理(図11参照)を実行して(S105)、ステップS106の処理へ移る。一方、判定の結果、ハーフトーンパターンの色値が同じである場合には(S104、Yes)、描画装置105は、ハーフトーンパターン生成処理を実行せずに、そのまま、ステップS106の処理へ移る。なお、ハーフトーンパターン記憶装置147をダブルバッファとして、1面に描画時のハーフトーンパターンを格納し、もう1面に次の描画時のハーフトーンパターンを格納するように構成することができる。
If the halftone pattern color values are different as a result of the determination (S104, No), the
続いて、描画装置105は、現在、描画中(描画処理の実行中)であるか否かを判定する(S106)。
Subsequently, the
判定の結果、描画中(描画処理の実行中)である場合には(S106、Yes)、描画装置105は、描画が終了するまで待機し(S107)、描画終了後、S108の処理へ移る。一方、判定の結果、描画中(描画処理の実行中)ではない場合には(S106、No)、描画装置105は、そのまま、S108の処理へ移る。
If the result of the determination is that drawing is being performed (drawing process is being executed) (Yes in S106), the
続いて、描画装置105は、描画処理が終了すると、グラフィックス用描画パラメータ記憶装置134およびハーフトーンパターン記憶装置147を描画するパラメータに切替えて、起動信号を発生して、描画処理装置123を起動し(S108)、上述したステップS101へ戻る。
Subsequently, when the drawing processing is completed, the
ここで、上述したステップS102において、判定の結果、描画実行コマンドではない場合には(S102、No)、描画装置105は、描画終了コマンド(図7の(3)参照)であるか否かを判定する(S109)。判定の結果、描画終了コマンドではない場合には(S109、No)、描画装置105は、パラメータ設定処理(図10参照)を実行し(S110)、上述したステップS101へ戻る。一方、判定の結果、描画終了コマンドである場合には(S109、Yes)、描画装置105は、描画処理を終了し、描画処理の終了をCPU101へ通知して、処理を終了する。
If the result of determination in step S102 is not a drawing execution command (S102, No), the
上述してきたように、図9では、ハーフトーンパターンアドレス値に対応するハーフトーンパターンを用いてハーフトーンパターンシフト値分の巡回シフト処理を行なうことにより、同じ階調値である描画オブジェクトに対して、効率よくハーフトーンパターンを使用して描画処理を行う一方で、階調値である描画オブジェクトについては、実行中の描画処理と並行してハーフトーンパターンの生成を行う。 As described above, in FIG. 9, by performing the cyclic shift process for the halftone pattern shift value using the halftone pattern corresponding to the halftone pattern address value, the drawing objects having the same gradation value are processed. While the drawing process is efficiently performed using the halftone pattern, the halftone pattern is generated for the drawing object having the gradation value in parallel with the drawing process being executed.
図10は、パラメータ設定処理の一例を示すフローチャートである。図10に示すように、描画装置105は、上述した図9のS101で読み込んだ描画コマンドが、バンド初期化コマンドであるか否かを判定する(S201)。
FIG. 10 is a flowchart illustrating an example of the parameter setting process. As shown in FIG. 10, the
判定の結果、描画コマンドが、バンド初期化コマンドではない場合には(S201、Yes)、描画装置105は、描画コマンドがしきい値テーブル設定コマンド(図7の(2)参照)であるものと判定し、メインメモリ112に記憶されている描画領域のしきい値を、コマンドパラメータの(グラフィックス画像)しきい値先頭アドレスから順次読み込んで、読み込んだしきい値をグラフィックス用しきい値マトリックス記憶装置137に書き込む(S202)。
As a result of the determination, if the drawing command is not a band initialization command (S201, Yes), the
判定の結果、描画コマンドが、バンド初期化コマンドである場合には(S201、Yes)、描画装置105は、バンド初期化コマンドのコマンドパラメータをバンドパラメータ記憶装置133に書き込む(S203)。
If the drawing command is a band initialization command as a result of the determination (S201, Yes), the
なお、描画装置105は、ステップS202またはステップS203の処理後、上述した図9のステップS101に戻る。
The
図11は、ハーフトーンパターン生成処理の一例を示すフローチャートである。図11は、ディザのX方向およびY方向のサイズのしきい値を、描画コマンドの色値で階調処理後の1ビットを生成し、ハーフトーンパターンを生成する処理を示す。図11に示すように、描画装置105は、IY=0とし(S301)、IX=0(S302)として、しきい値テーブルの[IY]の値,[IX]の値が、色値未満であるか否かを判定する(303)。
FIG. 11 is a flowchart illustrating an example of halftone pattern generation processing. FIG. 11 shows a process of generating a halftone pattern by generating one bit after gradation processing using the threshold values of the dither X-direction and Y-direction sizes using the color values of the drawing command. As shown in FIG. 11, the
判定の結果、しきい値テーブルの[IY],[IX]それぞれの値が、色値未満である場合には(S303、Yes)、描画装置105は、ハーフトーンパターン[IY],[IX]=1とする(S304)。一方、判定の結果、しきい値テーブルの[IY],[IX]それぞれの値が、色値未満ではない場合には(S303、No)、描画装置105は、ハーフトーンパターン[IY],[IX]=0とする(S305)。
As a result of the determination, if the values of [IY] and [IX] in the threshold value table are less than the color value (S303, Yes), the
続いて、描画装置105は、IX=IX+1とし(S306)、IXのサイズが、ディザXサイズ(ディザのX方向のサイズ)未満であるか否かを判定する(S307)。
Subsequently, the
判定の結果、IXのサイズが、ディザXサイズ未満である場合には(S307、Yes)、描画装置105は、上述したS303に戻る。一方、判定の結果、IXのサイズが、ディザXサイズ未満ではない場合には(S307、No)、描画装置105は、IY=IY+1とし(S308)、IYのサイズが、ディザYサイズ(ディザのY方向のサイズ)未満であるか否かを判定する(S309)。
As a result of the determination, if the size of IX is smaller than the dither X size (S307, Yes), the
判定の結果、IYのサイズが、ディザYサイズ未満である場合には(S309、Yes)、描画装置105は、上述したS302に戻る。一方、判定の結果、IYのサイズが、ディザYサイズ未満ではない場合には(S309、No)、描画装置105は、上述した図9のステップS106に戻る。
If the result of determination is that the IY size is less than the dither Y size (S309, Yes), the
なお、図11は、階調処理後のビットが1ビットである場合の処理を示すが、階調処理後のビットが2ビットである場合や4ビットである場合も同様に考えることができる。 Note that FIG. 11 shows processing when the bit after gradation processing is 1 bit, but the same can be considered when the bit after gradation processing is 2 bits or 4 bits.
図12は、コマンドの一例を示す図である。図13は、バンド描画の一例を示す図である。図14は、図12のコマンドによるバンド描画の処理時間と本実施形態によるバンド描画の処理時間とを比較する図である。 FIG. 12 is a diagram illustrating an example of a command. FIG. 13 is a diagram illustrating an example of band drawing. FIG. 14 is a diagram comparing the band drawing processing time according to the command of FIG. 12 with the band drawing processing time according to the present embodiment.
図12に示すコマンド(1)のバンド初期化コマンドは描画パラメータ設定コマンドである。バンド初期化コマンドには、例えば、描画バンドの先頭アドレスと、描画バンドの左上の始点Y座標と、描画バンドの高さと、描画バンドの幅とが設定される(例えば、図7の(1)など参照)。 The band initialization command of command (1) shown in FIG. 12 is a drawing parameter setting command. In the band initialization command, for example, the drawing band start address, the upper left starting point Y coordinate of the drawing band, the height of the drawing band, and the width of the drawing band are set (for example, (1) in FIG. 7). Etc.)
図12に示すに示すコマンド(1)のハーフトーンパターンセットコマンドは描画パラメータ設定コマンドである。ハーフトーンパターンセットコマンドには、例えば、ディザのX方向およびY方向のサイズと、ハーフトーン先頭アドレスとが設定される。ハーフトーンパターン先頭アドレスは、メインメモリ112における、階調処理後のハーフトーンパターンの格納場所を特定するためのアドレスである。なお、階調処理後のハーフトーンパターンは、上述した図3に示す描画コマンド生成ステップS2により、ソフトで使用される色値ごとに、ディザのX方向およびY方向のサイズで生成される。
The halftone pattern set command of command (1) shown in FIG. 12 is a drawing parameter setting command. In the halftone pattern set command, for example, the size of the dither in the X and Y directions and the halftone head address are set. The halftone pattern head address is an address for specifying the storage location of the halftone pattern after gradation processing in the
図12に示すコマンド(1)の四角形描画コマンドは、四角形の描画を指示する描画実行コマンドである。図12に示す四角形描画コマンドには、例えば、メインメモリ112のバンド領域に、ページ座標の四角形の左上および右下の頂点の座標が設定される(例えば、図8の(1)参照)。例えば、図12のコマンド(1)の四角形描画コマンドでは、ハーフトーンパターンセットコマンドにより3つの色が設定されている。 The rectangle drawing command of command (1) shown in FIG. 12 is a drawing execution command for instructing drawing of a rectangle. In the rectangle drawing command shown in FIG. 12, for example, the coordinates of the upper left and lower right vertices of the page coordinate rectangle are set in the band area of the main memory 112 (see, for example, (1) in FIG. 8). For example, in the rectangular drawing command of command (1) in FIG. 12, three colors are set by the halftone pattern set command.
図12に示すコマンド(1)のバンド終了コマンドは、定義したバンドの描画処理を終了するためのコマンドである。 The band end command of command (1) shown in FIG. 12 is a command for ending the drawing processing of the defined band.
図12に示すコマンド(2)のバンド初期化コマンドは描画パラメータ設定コマンドである。バンド初期化コマンドには、例えば、描画バンドの先頭アドレスと、描画バンドの左上の始点Y座標と、描画バンドの高さと、描画バンドの幅とが設定される(例えば、図7の(1)など参照)。 The band initialization command of command (2) shown in FIG. 12 is a drawing parameter setting command. In the band initialization command, for example, the drawing band start address, the upper left starting point Y coordinate of the drawing band, the height of the drawing band, and the width of the drawing band are set (for example, (1) in FIG. 7). Etc.)
図12に示すコマンド(2)のしきい値テーブルセットコマンドは描画パラメータ設定コマンドである。しきい値テーブルセットコマンドには、ディザのX方向およびY方向のサイズと、しきい値テーブル先頭アドレスとが設定される(例えば、図7の(2)など参照)。しきい値テーブル先頭アドレスは、メインメモリ112における、グラフィックスディザのしきい値を格納場所を特定するためのアドレスである。グラフィックスディザのしきい値は、ディザサイズのものを持っており、描画装置105は、描画コマンドで指定された色値により、階調処理後のハーフトーンパターンを生成する。
The threshold value table set command of command (2) shown in FIG. 12 is a drawing parameter setting command. In the threshold table set command, the dither size in the X and Y directions and the threshold table head address are set (for example, see (2) in FIG. 7). The threshold table head address is an address for specifying the storage location of the graphics dither threshold in the
図12に示すコマンド(2)の四角形描画コマンドは、四角形の描画を指示する描画実行コマンドである。図12に示すコマンド(2)のバンド終了コマンドは、定義したバンドの描画処理を終了するためのコマンドである。 The quadrangle drawing command of command (2) shown in FIG. 12 is a drawing execution command for instructing drawing of a rectangle. The band end command of command (2) shown in FIG. 12 is a command for ending the drawing process of the defined band.
描画装置105は、描画コマンド(図12に示すコマンド(1)や(2)など)をメインメモリ112から読み出し、その読み出したコマンドに従って描画処理を実行する。
The
例えば、図12に示すコマンド(1)を読み出した場合、描画装置105は、まず、バンド初期化コマンドを読み出し、描画が行われるバンドを特定する。続いて、描画装置105は、ハーフトーンパターンセットコマンド(1)を読み出し、バンドに対応する階調処理後のハーフトーンパターンをメインメモリ112から読み出す。続いて、描画装置105は、四角形の描画を指示する四角形描画コマンド(1)を読み出し、四角形の描画処理を実行する。描画装置105は、バンド終了コマンドの読み出しが行われるまで、以上の処理を繰り返し行い、バンド終了コマンドの読み出しが行われると、描画処理を終了する。
For example, when the command (1) shown in FIG. 12 is read, the
上述してきたように、図12に示すコマンド(1)による描画処理では、描画装置105は、ハーフトーンパターンセットコマンド(1)が来ると、指定されたハーフトーンパターン先頭アドレスから、階調処理後のハーフトーンパターンを順次読み込む。このように、図12に示すコマンド(1)による描画処理では、描画の都度、描画する前にハーフトーンパターンを読み込む必要があるので、その分、描画時間が長くなってしまう。また、図12には示していないが、階調処理によりハーフトーンパターンを生成する必要があるので、その分のソフトの処理時間が長くなってしまう。
As described above, in the drawing process using the command (1) shown in FIG. 12, when the halftone pattern set command (1) is received, the
また、図12に示すコマンド(2)を読み出した場合、描画装置105は、まず、バンド初期化コマンドを読み出し、描画が行われるバンドを特定する。続いて、描画装置105は、しきい値テーブルセットコマンド(1)を読み出し、四角形の描画を指示する四角形描画コマンド(1),(2),(3),(3)を読み出す。続いて、描画装置105は、四角形描画コマンドごとに、しきい値テーブルを使用して階調処理を行い、ハーフトーンパターンを生成する。続いて、描画装置105は、図13に示すように、ハーフトーンパターンを用いて、四角形の描画処理を実行する。続いて、描画装置105は、バンド終了コマンドの読み出しが行われると、描画処理を終了する。
When the command (2) shown in FIG. 12 is read, the
上述してきたように、図12に示すコマンド(2)による描画処理では、描画装置105は、しきい値テーブルコマンドセット(1)が来ると、指定されたしきい値テーブルコマンドセットの先頭アドレスから順次読み込み、図12に示すコマンド(1)のように、描画ごとの読み込み処理は行わない。このように、図12に示すコマンド(2)では、描画ごとに、しきい値テーブルコマンドセットを読み込むことはないが、しきい値テーブルを使用して、描画コマンドごとに階調処理を行い、ハーフトーンパターンを生成する必要がある。よって、図12に示すコマンド(2)による描画処理では、ソフトで使用される色値ごとにハーフトーンパターンを生成する必要がないので、ソフトの処理時間は小さくなるが、その一方で、描画コマンドごとに、ハードにより、ハーフトーンパターンを生成することになるので、やはり、描画時間が長くなってしまう。
As described above, in the drawing process using the command (2) shown in FIG. 12, when the threshold value table command set (1) is received, the
これに対して、図14に示すように、上述してきた実施形態では、例えば、図12に示すコマンド(2)による処理を行う場合、コマンド解析処理(例えば、バンド初期化コマンド処理、しきい値テーブルセットコマンド処理など)やハーフトーンパターン生成処理、四角形の描画処理などを並列に行う。具体的には、しきい値テーブルを使用して階調処理を行うことによりハーフトーンパターンを生成するハーフトーンパターン生成処理と、四角形の描画処理とを並列に処理する。このように、上述した実施形態によれば、ハーフトーンパターン生成処理と、描画処理とを並列に処理するので、ハーフトーンパターン生成処理の時間が表に現れない分、描画時間を短くすることができる。なお、上述した実施形態によれば、図12に示すコマンド(2)による処理を行う場合、図3に示す描画コマンド生成ステップS2において、ソフトで使用される色値ごとにハーフトーンパターンを生成する処理を行う必要がないので、ソフトの処理時間を小さくできる分、描画時間を短くすることができる。 On the other hand, as shown in FIG. 14, in the embodiment described above, for example, when processing by the command (2) shown in FIG. 12 is performed, command analysis processing (for example, band initialization command processing, threshold value) Table set command processing), halftone pattern generation processing, quadrilateral drawing processing, etc. are performed in parallel. Specifically, halftone pattern generation processing for generating a halftone pattern by performing gradation processing using a threshold value table and quadrilateral drawing processing are performed in parallel. As described above, according to the above-described embodiment, the halftone pattern generation process and the drawing process are processed in parallel. Therefore, the drawing time can be shortened by the amount that the halftone pattern generation process does not appear in the table. it can. Note that, according to the above-described embodiment, when processing by the command (2) shown in FIG. 12 is performed, a halftone pattern is generated for each color value used in the software in the drawing command generation step S2 shown in FIG. Since it is not necessary to perform processing, the drawing time can be shortened as much as the software processing time can be reduced.
また、上述の実施形態では、グラフィックス用描画パラメータ記憶装置134やハーフトーンパターン記憶装置147をダブルバッファとすることで、1面に実行中の描画処理用のデータ(描画パラメータやハーフトーンパターン)を格納し、もう1面に次の描画時のデータを格納することができ、描画処理をスムーズにして描画時間を短くできる。
In the above-described embodiment, the graphics drawing
100 画像形成装置
103 メモリアービター
104 メモリコントローラ
105 描画装置
106 エンジンコントローラ
107 通信コントローラ
108 ローカルI/F
109 ROM
110 パネルコントローラ
112 メインメモリ
113 パネル
114 プリンタエンジン
122 コマンド解析装置
123 描画処理装置
124 コントローラ
131 DMAアドレス生成装置
132 DMA読み込み装置
133 バンドパラメータ記憶装置
134 グラフィックス用描画パラメータ記憶装置
135 水平ライン変換装置
136 水平ライン描画装置
137 グラフィックス用しきい値マトリックス記憶装置
141 ハーフトーンパターンアドレス生成装置
142 X始点ワード値生成装置
143 X終点ワード値生成装置
144 描画ワードX値生成装置
145 ハーフトーンパターンシフト値生成装置
146 描画マスク生成装置
147 ハーフトーンパターン記憶装置
148 巡回シフト装置
149 論理演算装置
150 描画アドレス生成装置
151 ハーフトーンパターン生成装置
152 ハーフトーンしきい値アドレス生成装置
153 水平描画コントローラ
DESCRIPTION OF
109 ROM
110
Claims (3)
画像を描画単位に分解した場合の水平方向の始点と終点との幅である描画幅のハーフトーンパターンのハーフトーンしきい値を、少なくともハーフトーンパターンの垂直方向の幅分記憶するハーフトーンしきい値記憶手段と、
前記描画幅のハーフトーンパターンを、少なくとも前記ハーフトーンパターンの垂直方向の幅分記憶するハーフトーンパターン記憶手段と、
描画する水平ラインの垂直方向の位置を示す値から、対応するハーフトーンパターンを記憶した前記ハーフトーンパターン記憶手段のハーフトーンパターンアドレス値を生成するハーフトーンパターンアドレス生成手段と、
前記ハーフトーンしきい値記憶手段からハーフトーンしきい値を読み込み、読み込んだハーフトーンしきい値を用いて階調処理を行ない、該階調処理により生成したハーフトーンパターンを前記ハーフトーンパターン記憶手段へ転送するハーフトーンパターン生成手段と、
前記描画幅を、前記ハーフトーンパターンの水平方向の幅で割ったときの余り値を求め、該余り値を用いて前記ハーフトーンパターン記憶手段に記憶されているハーフトーンパターンをシフトするためのハーフトーンパターンシフト値を生成するハーフトーンパターンシフト値生成手段と、
前記ハーフトーンパターンアドレス値によるアクセスにより前記ハーフトーンパターン記憶手段から転送されるハーフトーンパターンを、前記ハーフトーンパターンシフト値生成手段により生成されたハーフトーンパターンシフト値を用いて、該ハーフトーンパターンシフト値分の巡回シフトを行なう巡回シフト手段と、
前記巡回シフトにより、同一の階調値である描画オブジェクトに対応するハーフトーンパターンを繰り返し使用して描画する描画手段と
を備え、
前記ハーフトーンパターン生成手段による処理と前記描画手段による処理とを並列に行うことを特徴とする画像処理装置。 An image processing apparatus that draws an image after gradation processing in band units indicating a predetermined range area,
Halftone threshold that stores the halftone threshold value of the halftone pattern of the drawing width, which is the width between the start and end points in the horizontal direction when the image is divided into drawing units, at least for the vertical width of the halftone pattern Value storage means;
Halftone pattern storage means for storing the halftone pattern of the drawing width by at least the vertical width of the halftone pattern;
Halftone pattern address generating means for generating a halftone pattern address value of the halftone pattern storage means storing the corresponding halftone pattern from a value indicating a vertical position of a horizontal line to be drawn;
The halftone threshold value is read from the halftone threshold value storage means, gradation processing is performed using the read halftone threshold value, and the halftone pattern generated by the gradation processing is stored in the halftone pattern storage means Halftone pattern generation means for transferring to,
A half value for shifting the halftone pattern stored in the halftone pattern storage means using the remainder value is obtained by dividing the drawing width by the horizontal width of the halftone pattern. Halftone pattern shift value generating means for generating a tone pattern shift value;
The halftone pattern transferred from the halftone pattern storage means by the access by the halftone pattern address value is shifted by using the halftone pattern shift value generated by the halftone pattern shift value generating means. A cyclic shift means for performing a cyclic shift for a value;
Drawing means for drawing by repeatedly using a halftone pattern corresponding to drawing objects having the same gradation value by the cyclic shift;
An image processing apparatus, wherein the processing by the halftone pattern generation unit and the processing by the drawing unit are performed in parallel.
画像を描画単位に分解した場合の水平方向の始点と終点との幅である描画幅のハーフトーンパターンのハーフトーンしきい値を、少なくともハーフトーンパターンの垂直方向の幅分記憶するハーフトーンしきい値記憶手段からハーフトーンしきい値を読み込んで、読み込んだハーフトーンしきい値を用いて階調処理を行ない、該階調処理により生成したハーフトーンパターンを、前記描画幅のハーフトーンパターンを少なくとも前記ハーフトーンパターンの垂直方向の幅分記憶する前記ハーフトーンパターン記憶手段へ転送するハーフトーンパターン生成工程と、
描画する水平ラインの垂直方向の位置を示す値から、対応するハーフトーンパターンを記憶した前記ハーフトーンパターン記憶手段のハーフトーンパターンアドレス値を生成するハーフトーンパターンアドレス生成手段と、
前記描画幅を、前記ハーフトーンパターンの水平方向の幅で割ったときの余り値を求め、該余り値を用いて前記ハーフトーンパターン記憶手段に記憶されているハーフトーンパターンをシフトするためのハーフトーンパターンシフト値を生成するハーフトーンパターンシフト値生成工程と、
前記ハーフトーンパターンアドレス値によるアクセスにより前記ハーフトーンパターン記憶手段から転送されるハーフトーンパターンを、前記ハーフトーンパターンシフト値生成工程により生成されたハーフトーンパターンシフト値を用いて、該ハーフトーンパターンシフト値分の巡回シフトを行なう巡回シフト工程と、
前記巡回シフトにより、同一の階調値である描画オブジェクトに対応するハーフトーンパターンを繰り返し使用して描画する描画工程と
を含み、
前記ハーフトーンパターン生成工程による処理と前記描画工程による処理とを並列に行うことを特徴とする画像処理方法。 An image processing method executed by an image processing apparatus that draws an image after gradation processing in units of bands indicating a predetermined range area,
Halftone threshold that stores the halftone threshold value of the halftone pattern of the drawing width, which is the width between the start and end points in the horizontal direction when the image is divided into drawing units, at least for the vertical width of the halftone pattern The halftone threshold value is read from the value storage means, gradation processing is performed using the read halftone threshold value, and the halftone pattern generated by the gradation processing is set to at least the halftone pattern of the drawing width. A halftone pattern generating step for transferring to the halftone pattern storage means for storing the vertical width of the halftone pattern;
Halftone pattern address generating means for generating a halftone pattern address value of the halftone pattern storage means storing the corresponding halftone pattern from a value indicating a vertical position of a horizontal line to be drawn;
A half value for shifting the halftone pattern stored in the halftone pattern storage means using the remainder value is obtained by dividing the drawing width by the horizontal width of the halftone pattern. A halftone pattern shift value generation step for generating a tone pattern shift value;
The halftone pattern transferred from the halftone pattern storage means by the access by the halftone pattern address value is shifted by using the halftone pattern shift value generated by the halftone pattern shift value generating step. A cyclic shift process for performing a cyclic shift for the value;
A drawing step of drawing by repeatedly using a halftone pattern corresponding to a drawing object having the same gradation value by the cyclic shift, and
An image processing method, wherein the processing by the halftone pattern generation step and the processing by the drawing step are performed in parallel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011197230A JP2013056510A (en) | 2011-09-09 | 2011-09-09 | Apparatus and method for image processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011197230A JP2013056510A (en) | 2011-09-09 | 2011-09-09 | Apparatus and method for image processing |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013056510A true JP2013056510A (en) | 2013-03-28 |
Family
ID=48132820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011197230A Pending JP2013056510A (en) | 2011-09-09 | 2011-09-09 | Apparatus and method for image processing |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013056510A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07244715A (en) * | 1994-03-02 | 1995-09-19 | Canon Inc | Image processor |
JPH09245157A (en) * | 1996-03-12 | 1997-09-19 | Canon Inc | Image forming device |
JP2007208519A (en) * | 2006-01-31 | 2007-08-16 | Ricoh Co Ltd | Image processor and image processing method, and computer-readable recording medium with program for making computer perform image processing method recorded |
-
2011
- 2011-09-09 JP JP2011197230A patent/JP2013056510A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07244715A (en) * | 1994-03-02 | 1995-09-19 | Canon Inc | Image processor |
JPH09245157A (en) * | 1996-03-12 | 1997-09-19 | Canon Inc | Image forming device |
JP2007208519A (en) * | 2006-01-31 | 2007-08-16 | Ricoh Co Ltd | Image processor and image processing method, and computer-readable recording medium with program for making computer perform image processing method recorded |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4950007B2 (en) | Image processing apparatus, image forming apparatus including the same, and image processing method | |
JP2013084224A (en) | Image forming apparatus | |
JP2008141623A (en) | Image forming apparatus and control method therefor, computer program and storage medium | |
JP5768524B2 (en) | Image processing apparatus, image processing method, and program | |
JP2014058076A (en) | Image formation device and gradation conversion method | |
JP2012114510A (en) | Image forming apparatus and image forming method | |
JP6428084B2 (en) | Write control apparatus, image forming apparatus, write control method, and program | |
JP2009269341A (en) | Apparatus and method for processing image | |
JP5810734B2 (en) | Image processing apparatus, program, image forming apparatus, and image processing method | |
JP4568685B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing a program for causing a computer to execute the image processing method | |
JP4490783B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing a program for causing a computer to execute the image processing method | |
JP5740991B2 (en) | Image processing apparatus and image processing method | |
JP2013056510A (en) | Apparatus and method for image processing | |
JP2012191461A (en) | Image forming apparatus, and image forming method | |
JP6828481B2 (en) | Information processing equipment, image forming equipment, and programs | |
JP2009169727A (en) | Image processing apparatus, image processing method and program | |
JP2008023959A (en) | Image processor, image processing method and program | |
JP5721963B2 (en) | Print data processing apparatus, print data processing method, image forming apparatus, program, and recording medium | |
JP2018052088A (en) | Image formation apparatus and image processing program | |
JP2009186897A (en) | Image forming apparatus | |
JP2008203923A (en) | Image forming apparatus and image forming method | |
JP2013063574A (en) | Image processing apparatus, and drawing method | |
JP2009124615A (en) | Image processing apparatus and image forming apparatus with the same, and image processing method | |
JP4450651B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing a program for causing a computer to execute the image processing method | |
JP2010141607A (en) | Image processor, and image processing method for same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20140812 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150626 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150707 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20151104 |