JP4895394B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP4895394B2 JP4895394B2 JP2007298317A JP2007298317A JP4895394B2 JP 4895394 B2 JP4895394 B2 JP 4895394B2 JP 2007298317 A JP2007298317 A JP 2007298317A JP 2007298317 A JP2007298317 A JP 2007298317A JP 4895394 B2 JP4895394 B2 JP 4895394B2
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- dmac
- page
- descriptor
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
- Bus Control (AREA)
Abstract
Description
本発明は、レジスタに設定した画像処理パラメータに基づいて、画像処理手段により画像データに画像処理を施す画像処理装置に関する。 The present invention is based on the image processing parameters set in the register relates to an image processing equipment for performing image processing on the image data by the image processing means.
デジタル複合機では、スキャナで読み取った画像データに各種の画像処理を施し、プリンタで画像出力を行う。代表的な画像処理はγ変換処理、フィルタ処理、色補正処理、階調処理などである。 In the digital multi-function peripheral, various image processing is performed on the image data read by the scanner, and the image is output by the printer. Typical image processing includes γ conversion processing, filter processing, color correction processing, gradation processing, and the like.
これらの画像処理を行うときは、メインメモリ上の未処理の画像データをDMAC(Direct Memory Access Controller)の制御により、それぞれの画像処理モジュールに転送し、画像処理済みの画像データをDMACの制御により、画像処理モジュールからメインメモリに転送する。 When performing these image processes, unprocessed image data on the main memory is transferred to each image processing module under the control of the DMAC (Direct Memory Access Controller), and image processed image data is transferred under the control of the DMAC. Then, transfer from the image processing module to main memory.
また、各画像処理を設定された画質モードで実行するために、各画像処理モジュールは画像処理パラメータを保持するためのレジスタを内蔵している。一般にこれらのパラメータのレジスタへの設定はCPU(Central Processing Unit)が行うため、CPUの負荷が重く、レジスタに対するパラメータの書き込みから画像処理終了までの時間も長くなる。 In addition, in order to execute each image processing in the set image quality mode, each image processing module has a built-in register for holding image processing parameters. In general, since these parameters are set in a register by a CPU (Central Processing Unit), the load on the CPU is heavy, and the time from writing the parameter to the register until the end of image processing also becomes longer.
そこで、CPUが予めメインメモリ上に画像処理パラメータを記憶しておき、パラメータ転送用のDMACにより、メインメモリ上の画像処理パラメータをレジスタに転送し、かつ画像データ転送用のDMACと連動させることにより、CPUの負荷を軽減するとともに、画像処理終了までの時間を短縮した画像処理装置が提案されている(特許文献1参照)。 Therefore, the CPU stores the image processing parameters in the main memory in advance, transfers the image processing parameters in the main memory to the register by the parameter transfer DMAC, and interlocks with the DMAC for image data transfer. An image processing apparatus that reduces the load on the CPU and shortens the time until the end of image processing has been proposed (see Patent Document 1).
図11はこの画像処理装置の機能ブロック図である。
この画像処理装置はCPU、ROM(Read Only Memory)及びRAM(Random Access Memory)を含むマイクロコンピュータによって実現される制御部101と、画像処理モジュール102と、メモリ103とを有する。
FIG. 11 is a functional block diagram of the image processing apparatus.
The image processing apparatus includes a
画像処理モジュール102は、例えば特定用途向け集積回路(Application Specific Integrated Circuit:ASIC)によって実現され、レジスタ104と、いずれもCPUを介すことなく直接データ転送を行うパラメータDMAC105、データリードDMAC106、及びデータライトDMAC107とからなり、各DMACが連動して画像処理を行う。
The image processing module 102 is realized by, for example, an application specific integrated circuit (ASIC), and includes a
まずステップS101〜103で、制御部101がメモリ103に対してデータリードDMAC106とデータライトDMAC107の各DMAC用のディスクリプタ情報と、パラメータDMAC105の画像処理パラメータ用のディスクリプタ情報とを書き込む。
First, in steps S101 to 103, the
次いでステップS104で、制御部101が画像処理モジュール102に対してレジスタ情報を書き込んで必要なレジスタを設定する。ステップS105で、制御部101が画像処理モジュール102に対して起動レジスタを使って起動させる。画像処理モジュール102は、制御部101により起動されたら、レジスタ104からパラメータDMAC105、データリードDMAC106、データライトDMAC107に対してそれぞれ起動信号EXECを同時に送る。従って、パラメータDMAC105、データリードDMAC106、データライトDMAC107は同時に起動する。
In step S104, the
次にステップS106で、レジスタ104から起動信号EXECを受けたデータリードDMAC106が、メモリ103からデータリードDMAC用のディスクリプタ情報を読み込んで取得し、内部レジスタに設定する。ステップS107で、レジスタ104から起動信号EXECを受けたパラメータDMAC105が、レジスタに設定で指定されたメモリ103のアドレスから画像処理パラメータ用のディスクリプタ情報を読み込んで取得し、内部レジスタに設定する。ステップS108で、レジスタ104から起動信号EXECを受けたデータライトDMAC107が、メモリ103からデータライトDMAC用のディスクリプタ情報を読み込んで取得し、内部レジスタに設定する。上記ステップS106〜108の処理は同時に行われ、これによりパラメータDMAC105とデータリードDMAC106とデータライトDMAC107とがメモリ103に設定されたそれぞれのディスクリプタ情報を同時に読み込んで取得する。
In step S106, the data read
次にステップS109で、パラメータDMAC105が、データリードDMAC106に対して画像処理パラメータ用のディスクリプタ情報を内部レジスタに設定して終了したことを示す終了通知を送る。ステップS110で、データリードDMAC106が、上記終了通知に基づいてパラメータDMAC105の内部レジスタに画像処理パラメータ用のディスクリプタ情報が設定されたことを確認し、ステップS105で取得したディスクリプタ情報に基づいてメモリ103から画像データを読み込み、画像処理モジュール102はその画像データに画像処理を行う。
Next, in step S109, the
ステップS111で、データライトDMAC107が、ステップS108で取得したディスクリプタ情報に基づいて画像処理モジュール102による画像処理後の画像データを順次メモリ103に書き込む。
In step S111, the data write
ステップS112で、データリードDMAC106が、データライトDMAC107に対して画像データを全て読み込んだことを示す終了通知を送る。ステップS113で、データライトDMAC107が、メモリ103に全ての画像処理後の画像データを書き込み、かつデータリードDMAC106から終了通知が来たことを確認後、制御部101に対して画像処理終了を示す終了通知を送り、制御部101はその終了通知に基づいて終了の割り込み処理を行う。
In step S112, the data read
このようにして、パラメータDMAC105の画像処理パラメータ用のディスクリプタ情報を設定する内部レジスタに、そのディスクリプタ情報を制御部101が直接設定するのではなく、一旦メモリ103に記憶してからDMA処理によって画像処理モジュール102が読み込むので、制御部101のCPUの負荷の低減と画像処理時間の短縮が可能になる。
In this way, the
しかしながら、この画像処理装置では、連続した複数ページの処理を行う場合、各DMACはページ毎に内部レジスタにディスクリプタ情報を設定する必要があり、制御部101は各ページの画像処理が終了してからレジスタの設定を行って起動を繰り返すことになる。従って、ページ数が多くなると、制御部101のCPUが割り込みを待機する処理が多くなることで、ソフトの処理効率が低下するという問題がある。
However, in this image processing apparatus, when performing processing of a plurality of continuous pages, each DMAC needs to set descriptor information in an internal register for each page, and the
本発明は、このような問題を解決するためになされたものであり、その目的は、プロセッサによりメインメモリにページ毎に書き込まれる画像処理パラメータをDMACにより読み出してレジスタに設定し、レジスタに設定される画像処理パラメータに基づいて、画像処理手段で連続した複数ページの画像データ処理を行うときに、プロセッサの処理効率の低下を抑えるとともに、画像処理に要する時間を短縮することである。 The present invention has been made to solve such a problem, and an object of the present invention is to read image processing parameters written to the main memory for each page by the processor using the DMAC, set the registers, and set the registers. That is, when performing image data processing of a plurality of continuous pages by the image processing means based on the image processing parameters, the reduction in the processing efficiency of the processor is suppressed and the time required for the image processing is shortened.
本発明は、画像処理パラメータが設定されるレジスタと、メインメモリ上の画像処理パラメータを読み出して前記レジスタに設定する第1のDMACと、該第1のDMACにより前記レジスタに設定された画像処理パラメータに基づいて、画像データに対し画像処理を施す画像処理手段と、プロセッサがページ毎に前記メインメモリに前記画像処理パラメータを書き込んだ後に出力する起動信号に基づいて前記第1のDMACを起動する起動制御手段と、前記起動制御手段により起動され、前記メインメモリ上の画像データを読み出して前記画像処理手段に転送する第2のDMACと、前記起動制御手段により起動され、前記画像処理手段で処理された画像データを前記メインメモリに転送する第3のDMACとを有し、前記第2のDMAC、第3のDMACの各々の動作を記述するディスクリプタのうち、各ページの先頭のディスクリプタはページ内で共通の情報の拡張領域を有し、それ以外のディスクリプタは各ディスクリプタ特有の情報を有し、連続した複数ページの画像データを処理するときは、前記プロセッサによる各ページの画像処理パラメータの書き込み及び起動信号の出力を、前記第1のDMAC及び画像処理手段の各ページの処理の終了を待たずに行うことを特徴とする画像処理装置である。 The present invention relates to a register in which image processing parameters are set, a first DMAC that reads out image processing parameters in a main memory and sets them in the register, and image processing parameters set in the registers by the first DMAC And an image processing means for performing image processing on the image data, and an activation that activates the first DMAC based on an activation signal output after the processor writes the image processing parameters to the main memory for each page A control unit, a second DMAC that is activated by the activation control unit, reads image data on the main memory and transfers the image data to the image processing unit, and is activated by the activation control unit and processed by the image processing unit and a third DMAC to transfer image data to the main memory were describes the operation of each of the second DMAC, third DMAC Of Isukuriputa, the head of the descriptor for each page has an expanded region of the common information in the page, has other descriptor for each descriptor specific information, when processing image data of a plurality consecutive pages The image processing apparatus is characterized in that writing of image processing parameters for each page and output of a start signal by the processor are performed without waiting for completion of processing of each page of the first DMAC and the image processing means. .
本発明によれば、プロセッサによりメインメモリにページ毎に書き込まれる画像処理パラメータをDMACにより読み出してレジスタに設定し、レジスタに設定される画像処理パラメータに基づいて、画像処理手段で連続した複数ページの画像データ処理を行うときに、プロセッサの処理効率の低下を抑えるとともに、画像処理に要する時間を短縮することができる。また、1ページを多数のディスクリプタで構成する場合のディスクリプタ用のメモリ領域の増大を抑えつつ、各ページ共通の情報をレジスタに保持する必要をなくすことができる。
According to the present invention, image processing parameters written to the main memory for each page by the processor are read by the DMAC and set in the register, and a plurality of continuous pages are processed by the image processing unit based on the image processing parameters set in the register. When performing image data processing, it is possible to suppress a decrease in the processing efficiency of the processor and to shorten the time required for the image processing. In addition, it is possible to eliminate the need to hold information common to each page in a register while suppressing an increase in the memory area for descriptors when one page is constituted by a large number of descriptors.
以下、本発明の実施形態について図面を参照しながら説明する。
図1は、本発明の実施形態の画像処理装置の全体構成を示すブロック図である。この画像処理装置は、エンジン1000と、コントローラ2000とを備えている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing the overall configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus includes an engine 1000 and a
エンジン1000は、スキャナ1100、スキャナ画像処理ASIC1200、プロッタ1300、プロッタ制御ASIC1400、RAM1500、エンジンCPU1600、フラッシュメモリ1700、エンジンASIC1800からなり、原稿の読み取りおよび画像の出力を行う。
The engine 1000 includes a
スキャナ1100は、原稿の読み取りを行うユニットであり、スキャナ動作、コピー動作、FAX送信動作時に原稿の画像データを出力する。スキャナ画像処理ASIC1200は、スキャナ1100で読み取られた画像データに補正を行った画像データ、及び原稿における文字部/写真部、有彩/無彩を判定した画像分離データを生成して出力する。
A
プロッタ1300は、プロッタ制御ASIC1400から出力される画像データに基づいて用紙上に画像形成を行って出力する。プロッタ制御ASIC1400は、プロッタ1300からの同期信号に合わせて、エンジンASIC1800から入力される画像データをプロッタ1300へ出力する。
The
RAM1500は、エンジンCPU1600がエンジン制御を行うための作業用メモリで、エンジンCPU1600により、プログラム実行中の変数記憶領域などに使用される。エンジンCPU1600は、スキャナ制御、用紙の搬送、作像、定着など、エンジン1000全般の制御を行う。フラッシュメモリ1700は、エンジンCPU1600が各種制御を実行するときに使用するプログラムを記憶するための書き換え可能な不揮発性メモリである。
The
エンジンASIC1800は、ビデオ出力部1810、アービタ1820、コミュニケーションバッファ1830、解像度変換部1840、及び圧縮伸張部1850を備え、コントローラ2000とエンジンCPU1600、コントローラ2000とプロッタ制御ASIC1400との間のデータのインタフェースを行う。
The engine ASIC 1800 includes a
ビデオ出力部1810は、出力する画像の画像データを後述するメインメモリ2400から読み込み、マスク処理、合成処理、フォーマット変換などを行ってプロッタ制御ASIC1400へ出力する。アービタ1820は、エンジンASIC1800内の各モジュールから後述するコントローラCPU2300へのアクセスの調停を行う。コミュニケーションバッファ1830は、エンジンCPU1600とコントローラCPU2300との間の通信のためのバッファである。解像度変換部1840は、プリンタ動作、FAX動作時に、メインメモリ2400上の低解像度の画像データからプロッタ1300に適合する高解像度の画像データへの変換を行い、変換後の画像データをメインメモリ2400に出力する。圧縮伸張部1850は、メインメモリ2400上の画像データ領域を削減するために、画像データを圧縮してメインメモリ2400に送出し、メインメモリ2400から出力された圧縮画像データを伸張する。
The
コントローラ2000は、画像処理装置の全体の制御や各種アプリケーションの実行を行う制御装置であり、コントローラASIC2100、ハードディスク2200、コントローラCPU2300、及びメインメモリ2400を備えている。
The
コントローラASIC2100は、ビデオ入力部2110、アービタ2120、配信画像処理部2140、画像処理コントローラ2150、及びハードディスクI/F(インタフェース)2160を有しており、エンジン1000から入力される画像データのメインメモリ2400への転送、コピー時の画像処理、ハードディスク2200へのリード/ライト制御などを行う。
The controller ASIC 2100 includes a video input unit 2110, an arbiter 2120, a distribution image processing unit 2140, an
ビデオ入力部2110は、スキャナ画像処理ASIC1200から出力された画像データを圧縮してメインメモリ2400へ転送する。アービタ2120は、コントローラASIC2100内の各モジュールからコントローラCPU2300へのアクセスの調停を行う。配信画像処理部2140は、メインメモリ2400上の画像データをネットワーク経由で配信するために、画像データの変換処理を行い、変換後の画像データをメインメモリ2400へ出力する。画像処理コントローラ2150は、メインメモリ2400上の圧縮画像データを展開し、フィルタ処理、色変換処理、階調処理などを行ってメインメモリ2400へ転送する。ハードディスクI/F2160は、ハードディスク2200へのリード/ライト制御を行う。
The video input unit 2110 compresses the image data output from the scanner image processing ASIC 1200 and transfers it to the
ハードディスク2200は、各種画像データの蓄積や、コントローラCPU2300の一時記憶領域に使用する記憶装置である。コントローラCPU2300は、メモリコントローラ及びPCI(Peripheral Component Interconnect) Express(登録商標)、PCIの汎用インタフェースを備え、メインメモリ2400の領域確保及びリード/ライト制御、並びにプリンタの画像描画、コピー、スキャナ、FAX、配信などの各種アプリケーションを実行する。メインメモリ2400は、コントローラCPU2300が各種アプリケーションを実行するための作業用メモリであり、コントローラCPU2300により、各種データの一時記憶領域や、DMAC用ディスクリプタ領域などに使用される。
The
図2は、画像処理コントローラ2150の構成例、及びメインメモリ2400との間のデータの流れを示す図である。
画像処理コントローラ2150は、画像処理モジュール群2151、レジスタ制御部2152、データリードDMAC2153、パラメータDMAC2154、第1〜第4のデータライトDMAC2155〜2158を備えている。
FIG. 2 is a diagram illustrating a configuration example of the
The
パラメータDMAC2154は、メインメモリ2400上に予めロードされた画像処理パラメータ2402を読み出して、レジスタ制御部2152内のパラメータレジスタ(図示せず)に設定する。データリードDMAC2153は、メインメモリ2400から、画素順次のRGB画像データと分離データX(入力画像データ2401)を読み出して、画像処理モジュール群2151へ送出する。画像処理モジュール群2151は、入力画像データに各種画像処理を施すモジュールの集まりであり、γ変換モジュール、フィルタモジュール、色補正モジュール、階調処理モジュールなどから構成される。第1〜第4のデータライトDMAC2155〜2158は、画像処理モジュール群2151から送出された画像処理後のCMYK面順次の画像データそれぞれをメインメモリ2400へ出力する(出力画像データ2403〜2406)。
The
レジスタ制御部2152は、画像処理モジュール群2151の中の、各画像処理モジュールが画像処理を行う際に使用するパラメータを保持する。また、各DMACに起動を指示するためのEXECレジスタや、割り込みのステータスを保持する割り込みステータスレジスタ、各DMACのディスクリプタポインタレジスタなどを備え、各DMACの起動処理及びコントローラCPU2300への割り込み信号の出力を行う。
The
図3は、データリードDMAC用、データライトDMAC用のディスクリプタの例を示す図である。ここで、Aは各ページの先頭のディスクリプタ2411であり、Bはそれ以外のディスクリプタ2412である。各ページの先頭のディスクリプタ2411及びそれ以外のディスクリプタ2412、即ち全てのディスクリプタは下記のエントリを持つ。
FIG. 3 is a diagram illustrating examples of descriptors for data read DMAC and data write DMAC. Here, A is the
NDP(ネクスト・ディスクリプタ・ポインタ)には、次のディスクリプタのアドレスを設定する。1ページ分の画像領域をメインメモリ2400上に連続して確保できない場合は、飛び飛びに画像領域を確保し、それぞれの領域に対してディスクリプタを作成して、次のディスクリプタのアドレスをここに書き込んでおくことにより、飛び飛びの画像領域に対して連続して処理を行うことが出来る。
The address of the next descriptor is set in NDP (Next Descriptor Pointer). If the image area for one page cannot be secured continuously on the
SA(スタートアドレス)には、データを入力或いは出力する先頭のアドレスを設定する。データリードDMACの場合は、このアドレスから画像データの読み出しを行い、データライトDMACの場合は、このアドレスから画像データを書き込んでいく。 In SA (start address), the head address for inputting or outputting data is set. In the case of data read DMAC, image data is read from this address, and in the case of data write DMAC, image data is written from this address.
LINE(ライン)には、2次元画像の副走査方向のライン数、又は1次元データのデータ数を設定する。MODE(モード)には、転送データの種類や、割り込み、繰り返しなどを設定する。 In LINE, the number of lines in the sub-scanning direction of the two-dimensional image or the number of data of one-dimensional data is set. In MODE, the type of transfer data, interrupt, and repeat are set.
また、ページの先頭のディスクリプタ2411は、上記のエントリに加え、ページ内に共通の情報のエントリを持つ。MWIDTH(メモリ幅)には、2次元画像の主走査方向のメモリ上の幅を設定する。DMACは、この値を単位として1ライン分の画像データ読み込み或いは書き込み(出力)を行う。IWIDTH(イメージ幅)には、2次元画像の主走査方向の幅を設定する。CTRL(コントロール)には、回転などの動作モードを設定する。FILL(フィルパターン)には、メモリのクリアを行う場合に書き込む値を設定する。
In addition to the above entries, the
このような構成にすることにより、1ページを多数のディスクリプタで構成する場合のディスクリプタ用のメモリ領域の増大を抑えつつ、各ページ共通の情報をレジスタに保持する必要をなくすことができる。 With such a configuration, it is possible to eliminate the need to hold information common to each page in a register while suppressing an increase in the memory area for descriptors when one page is configured with a large number of descriptors.
図4は、パラメータDMAC用のディスクリプタの例を示す図である。
パラメータDMAC用のディスクリプタ2413は、各画像処理モジュールに設定するパラメータのスタートアドレス(SA)のエントリを持つ。γ変換用パラメータのSAには、γ変換に使用するテーブルの値などのパラメータのスタートアドレスを設定する。フィルタ用パラメータのSAには、平滑化やエッジ強調に使用するフィルタ係数などのパラメータのスタートアドレスを設定する。色補正用パラメータのSAには、RGBからCMYKに変換する際に使用するマスキング係数などのパラメータのスタートアドレスを設定する。階調処理用パラメータのSAには、階調処理を行う際に使用するディザテーブルなどのパラメータのスタートアドレスを設定する。
FIG. 4 is a diagram illustrating an example of the descriptor for the parameter DMAC.
The
図5は、画像処理コントローラ2150のレジスタ制御部2152内のレジスタの構成例を示す図である。
この図のAに示されているEXECレジスタは、画像処理コントローラ2150を起動するレジスタである。割り込みステータスレジスタは、画像処理コントローラ2150の各DMACの終了割り込みや、エラーなどの割り込み情報を保持する。割り込みマスクレジスタには、画像処理コントローラ2150の各割り込みのマスク制御を設定する。動作モードレジスタには、画像処理コントローラ2150の動作モードを設定する。
FIG. 5 is a diagram illustrating a configuration example of registers in the
The EXEC register shown in A of this figure is a register for starting the
パラメータDMAC DP1〜パラメータDMAC DPnには、複数ページの設定を行う場合に各ページ(1〜nページ)の画像処理パラメータのディスクリプタのアドレス(ディスクリプタポインタ)を設定する。 In the parameters DMAC DP1 to DMAC DPn, the address (descriptor pointer) of the image processing parameter descriptor of each page (1 to n pages) is set when a plurality of pages are set.
データリードDMAC DP1〜データリードDMAC DPnには、複数ページの設定を行う場合に各ページの入力画像データの先頭のディスクリプタのアドレスを設定する。 In the data read DMAC DP1 to the data read DMAC DPn, the address of the first descriptor of the input image data of each page is set when setting a plurality of pages.
データライトDMAC1 DP1〜データライトDMAC1 DPnには、複数ページの設定を行う場合に第1のデータライトDMAC2155用の各ページの出力画像データの先頭のディスクリプタのアドレスを設定する。同様に、データライトDMAC2 DP1〜データライト DMAC2 DPnには、第2のデータライトDMAC2156用の各ページの出力画像データの先頭のディスクリプタのアドレスを設定し、データライトDMAC3 DP1〜データライトDMAC3 DPnには、第3のライトDMAC2157用の各ページの出力画像データの先頭のディスクリプタのアドレスを設定し、データライトDMAC4 DP1〜データライトDMAC4 DPnには、第4のライトDMAC2158用の各ページの出力画像データの先頭のディスクリプタのアドレスを設定する。 In the data write DMAC1 DP1 to the data write DMAC1 DPn, the address of the first descriptor of the output image data of each page for the first data write DMAC2155 is set when setting a plurality of pages. Similarly, the address of the first descriptor of the output image data of each page for the second data write DMAC2156 is set in the data write DMAC2 DP1 to the data write DMAC2 DPn, and the data write DMAC3 DP1 to the data write DMAC3 DPn The address of the first descriptor of the output image data of each page for the third write DMAC2157 is set, and the output image data of each page for the fourth write DMAC2158 is set in the data write DMAC4 DP1 to the data write DMAC4 DPn. Set the address of the first descriptor.
この図のBに示されている各レジスタはパラメータDMAC2154により設定される。γ変換用パラメータは、γ変換に使用するテーブルの値などのパラメータを保持し、フィルタ用パラメータは、平滑化やエッジ強調に使用するフィルタ係数などのパラメータを保持し、色補正用パラメータは、RGBからCMYKに変換する際に使用するマスキング係数などのパラメータを保持し、階調処理用パラメータは、階調処理を行う際に使用するディザテーブルなどのパラメータを保持する。 Each register shown in B of this figure is set by a parameter DMAC2154. The γ conversion parameters hold parameters such as table values used for γ conversion, the filter parameters hold parameters such as filter coefficients used for smoothing and edge enhancement, and the color correction parameters are RGB Parameters such as masking coefficients used when converting from CMYK to CMYK, and parameters for tone processing hold parameters such as a dither table used when tone processing is performed.
図6は、コントローラCPU2300のソフト制御フローを示す図である。
まずステップST1で画像処理パラメータをメインメモリ2400上に準備する。これは、例えばROMやハードディスク2200などの記憶装置に記憶しておき、それをメインメモリ2400にロードすることで実現する。
FIG. 6 is a diagram showing a software control flow of the controller CPU 2300.
First, in step ST1, image processing parameters are prepared on the
次に、ステップST2でパラメータDMAC2154用、データリードDMAC2153用、及び第1〜第4のデータライトDMAC2155〜2158用のディスクリプタをメインメモリ2400上に作成する。次いで、作成したディスクリプタのアドレスを、ステップST3でレジスタ制御部2152内のディスクリプタポインタレジスタに設定する。これらの設定が終了したら、ステップST4でレジスタ制御部2152内のEXECレジスタに1を書き込むことで、画像処理コントローラ2150に起動をかける。
Next, descriptors for the
次いでステップST5で次のページの有無を判断し、ある場合は(ST5:yes)、引き続きステップST1〜ST4の動作を繰り返す。最後のページまで終了したら(ST5:no)、処理を終了する。コントローラCPU2300は、後述する画像処理コントローラ2150の全ての処理が終了するまで、別のタスクを行うことが出来る。
Next, at step ST5, it is determined whether or not there is a next page. If there is (ST5: yes), the operations of steps ST1 to ST4 are repeated. When the process reaches the last page (ST5: no), the process ends. The controller CPU 2300 can perform another task until all the processing of the
図7は、画像処理コントローラ2150の動作フローを示す図である。
画像処理コントローラ2150は、コントローラCPU2300のソフトにより起動(EXEC)がかけられるまでは、ステップST11でアイドル状態を継続する。起動がかけられると(ステップST11:yes)、動作フローはステップST12及びST15の2つに分岐し、並行して進行する。
FIG. 7 is a diagram showing an operation flow of the
The
分岐した一方のステップST12では、レジスタ制御部2152に保持する起動回数のカウンタをインクリメントする。この後、再び起動がかけられたら(ステップST13:yes)、再び起動回数のカウンタをインクリメントする。かけられていなくて(ステップST13:no)、かつカウンタの値が0より大きいときには(ステップST14:yes)、起動がかけられるのを待つ。かけられていなくて、カウンタの値が0になったら、ステップST25に進み、コントローラCPU2300に動作完了割り込み信号を出力して終了する。
In one step ST12 branched, the counter of the number of activations held in the
分岐した他方のステップST15では、パラメータDMAC2154用のディスクリプタをメインメモリ2400から読み出す。ディスクリプタの読み込みが終了したら、ステップST16でメインメモリ2400上の画像処理パラメータ2402を読み出し、レジスタ制御部2152内のレジスタに設定する。パラメータDMAC2154によるパラメータ設定が終了したら、ステップST17で、データリードDMAC2153、及び第1〜第4のデータライトDMAC2155〜2158は、ページの先頭の拡張領域つきディスクリプタ2411をメインメモリ2400から読み出す。
In the other branched step ST15, the descriptor for the
データリードDMAC2153は、ディスクリプタの読み出しが終了したら、そのディスクリプタの内容に従って、メインメモリ2400から画像データを読み込み、画像処理モジュール群2151に出力する。画像処理モジュール群2151は、レジスタ制御部2152内のレジスタに設定されたパラメータに従って画像処理を行い、処理後の画像データを各データライトDMACに出力する。各データライトDMACは、画像処理モジュール群2151からの画像データをメインメモリ2400に出力する。これらがステップST18の処理である。
When the data read
ステップST19で次の領域の有無、即ち1ページ分の画像領域がメインメモリ2400上で分割されているか否かを判断する。そして、次の領域がない場合はステップST23へ進み、起動回数のカウンタをデクリメントする。
In step ST19, it is determined whether or not there is a next area, that is, whether or not an image area for one page is divided on the
一方、次の領域がある場合はステップST20へ進み、データリードDMAC2153、及び第1〜第4のデータライトDMAC2155〜2158は、メインメモリ2400から拡張領域を持たないディスクリプタ2412を読み出す。
On the other hand, if there is a next area, the process proceeds to step ST20, and the data read
データリードDMAC2153は、ディスクリプタの読み出しが終了したら、そのディスクリプタの内容に従って、メインメモリ2400から、分割されている領域の画像データを読み込み、画像処理モジュール群2151に出力する。画像処理モジュール群2151は、レジスタ制御部2152内のレジスタに設定されたパラメータに従って画像処理を行い、処理後の画像データを各データライトDMAC2155〜2158に出力する。各データライトDMAC2155〜2158は、画像処理モジュール群2151からの画像データをメインメモリ2400に出力する。これらがステップST21の処理である。
When the reading of the descriptor is completed, the data read
ステップST21により上記の2つ目の領域の処理が終了後、ステップST22でさらに次の領域があるか否かを判断し、ある場合(ST22:yes)はST20へ戻り、ページ内の分割されたすべての領域の画像処理が終了するまでS20及びS21を繰り返す。 After the processing of the second area is completed in step ST21, it is determined in step ST22 whether or not there is another area. If yes (ST22: yes), the process returns to ST20 and the page is divided. S20 and S21 are repeated until the image processing for all areas is completed.
次の領域がなくなったら(ST22:no)、ステップST23で起動回数のカウンタをデクリメントする。デクリメントした後、ステップST24でカウンタの値が0より大きいか否かを判断し、大きければ次のページの設定が終了して起動がかけられているので、ST15へ戻り、次のページの処理を行う。カウンタの値が0の場合は、次のページの起動がかけられていないため、ST25へ進み、動作完了割り込みを出力して、動作を終了する。 When there is no next area (ST22: no), the activation counter is decremented in step ST23. After decrementing, it is determined in step ST24 whether or not the counter value is greater than 0. If it is greater, the next page has been set and started, so the process returns to ST15 and the next page is processed. Do. If the counter value is 0, the next page has not been activated, so the process proceeds to ST25, an operation completion interrupt is output, and the operation is terminated.
図8は、メインメモリ2400上のディスクリプタ及びパラメータ並びに画像領域の配置例を示す図である。この例では、ページ数が2であり、各ページの画像領域が2つに分割されている。以下、分割されている領域をバンドと呼ぶ。この図のAは1ページ目、Bは2ページ目である。
FIG. 8 is a diagram illustrating an arrangement example of descriptors, parameters, and image areas on the
この図のAのPD1は、パラメータDMAC2154用の1ページ目のディスクリプタであり、このディスクリプタポインタがPDP1である。P1は、1ページ目のパラメータであり、この領域に、γ変換、フィルタ、色補正、階調処理のそれぞれのパラメータをロードしておく。このスタートアドレスがPSA1である。 PD1 of A in this figure is a descriptor of the first page for parameter DMAC2154, and this descriptor pointer is PDP1. P1 is a parameter for the first page, and parameters for γ conversion, filter, color correction, and gradation processing are loaded in this area. This start address is PSA1.
DRD1_1は、データリードDMAC2153用の1ページ目の1バンド目のディスクリプタであり、このディスクリプタポインタがDRDP1_1である。このディスクリプタはページの先頭のディスクリプタなので、拡張領域を持つ。DR1_1は、データリードDMAC用の1ページ目の1バンド目の画像領域であり、画像処理を行う元の画像データをこの領域にロードしておく。このスタートアドレスがDRSA1_1である。 DRD1_1 is a descriptor of the first band of the first page for the data read DMAC2153, and this descriptor pointer is DRDP1_1. Since this descriptor is the descriptor at the head of the page, it has an extension area. DR1_1 is an image area of the first band of the first page for data read DMAC, and original image data to be subjected to image processing is loaded into this area. This start address is DRSA1_1.
DRD1_2は、データリードDMAC2153用の1ページ目の2バンド目のディスクリプタであり、このディスクリプタポインタがDRDP1_2である。このディスクリプタはページの先頭のディスクリプタではないので、拡張領域を持たない。DR1_2は、データリードDMAC2153用の1ページ目の2バンド目の画像領域であり、画像処理を行う元の画像データをこの領域にロードしておく。このスタートアドレスがDRSA1_2である。 DRD1_2 is a descriptor of the second band of the first page for the data read DMAC2153, and this descriptor pointer is DRDP1_2. Since this descriptor is not the descriptor at the head of the page, it does not have an extension area. DR1_2 is an image area of the second band of the first page for the data read DMAC2153, and original image data to be subjected to image processing is loaded in this area. This start address is DRSA1_2.
DWD1_1は、第1〜第4のデータライトDMAC2155〜2158用の1ページ目の1バンド目のディスクリプタであり、このディスクリプタポインタがDWDP1_1である。このディスクリプタはページの先頭のディスクリプタなので、拡張領域を持つ。DW1_1は、第1〜第4のデータライトDMACC2155〜2158用の1ページ目の1バンド目の画像領域であり、画像処理を行った後の画像データがこの領域に出力される。このスタートアドレスがDWSA1_1である。なお、ここでは便宜上、4つのータライトDMAC2155〜2158用のディスクリプタ及び画像領域をそれぞれ1つずつ図示したが、実際は4つずつ設けている。
DWD1_1 is a first band descriptor of the first page for the first to fourth data writes DMAC2155 to 2158, and this descriptor pointer is DWDP1_1. Since this descriptor is the descriptor at the head of the page, it has an extension area. DW1_1 is an image area of the first band of the first page for the first to fourth data write
DWD1_2は、第1〜第4のデータライトDMACC2155〜2158用の1ページ目の2バンド目のディスクリプタであり、このディスクリプタポインタがDWDP1_2である。このディスクリプタはページの先頭のディスクリプタではないので、拡張領域を持たない。DR1_2は、第1〜第4のデータライトDMAC2155〜2158用の1ページ目の2バンド目の画像領域であり、画像処理を行った後の画像データがこの領域に書き込まれる。このスタートアドレスがDWSA1_2である。
DWD1_2 is a second band descriptor of the first page for the first to fourth data write
この図のBに示されているPD2は、パラメータDMAC2154用の2ページ目のディスクリプタであり、このディスクリプタポインタがPDP2である。P2は、2ページ目のパラメータであり、この領域に、γ変換、フィルタ、色補正、階調処理のそれぞれのパラメータをロードしておく。このスタートアドレスがPSA2である。 PD2 shown in B of this figure is the descriptor of the second page for parameter DMAC2154, and this descriptor pointer is PDP2. P2 is a parameter for the second page, and parameters for γ conversion, filter, color correction, and gradation processing are loaded in this area. This start address is PSA2.
DRD2_1は、データリードDMAC2153用の2ページ目の1バンド目のディスクリプタであり、このディスクリプタポインタがDRDP2_1である。このディスクリプタはページの先頭のディスクリプタなので、拡張領域を持つ。DR2_1は、データリードDMAC2153用の2ページ目の1バンド目の画像領域であり、画像処理を行う元の画像データをこの領域にロードしておく。このスタートアドレスがDRSA2_1である。 DRD2_1 is a descriptor of the first band of the second page for the data read DMAC2153, and this descriptor pointer is DRDP2_1. Since this descriptor is the descriptor at the head of the page, it has an extension area. DR2_1 is an image area of the first band of the second page for the data read DMAC2153, and original image data to be subjected to image processing is loaded into this area. This start address is DRSA2_1.
DRD2_2は、データリードDMAC2153用の2ページ目の2バンド目のディスクリプタであり、このディスクリプタポインタがDRDP2_2である。このディスクリプタはページの先頭のディスクリプタではないので、拡張領域を持たない。DR1_2は、データリードDMAC2153用の2ページ目の2バンド目の画像領域であり、画像処理を行う元の画像データをこの領域にロードしておく。このスタートアドレスがDRSA2_2である。 DRD2_2 is a descriptor of the second band of the second page for the data read DMAC2153, and this descriptor pointer is DRDP2_2. Since this descriptor is not the descriptor at the head of the page, it does not have an extension area. DR1_2 is an image area of the second band of the second page for the data read DMAC2153, and original image data to be subjected to image processing is loaded in this area. This start address is DRSA2_2.
DWD2_1は、第1〜第4のデータライトDMAC2155〜2158用の2ページ目の1バンド目のディスクリプタであり、このディスクリプタポインタがDWDP2_1である。このディスクリプタはページの先頭のディスクリプタなので、拡張領域を持つ。DW2_1は、第1〜第4のデータライトDMAC2155〜2158の2ページ目の1バンド目の画像領域であり、画像処理を行った後の画像データがこの領域に書き込まれる。このスタートアドレスがDWSA2_1である。
DWD2_1 is a first band descriptor of the second page for the first to fourth data write
DWD2_2は、第1〜第4のデータライトDMAC2155〜2158用の2ページ目の2バンド目のディスクリプタであり、このディスクリプタポインタがDWDP2_2である。このディスクリプタはページの先頭のディスクリプタではないので、拡張領域を持たない。DR2_2は、第1〜第4のデータライトDMAC2155〜2158用の2ページ目の2バンド目の画像領域であり、画像処理を行った後の画像データがこの領域に書き込まれる。このスタートアドレスがDWSA2_2である。
DWD2_2 is a second band descriptor of the second page for the first to fourth data writes DMAC2155 to 2158, and this descriptor pointer is DWDP2_2. Since this descriptor is not the descriptor at the head of the page, it does not have an extension area. DR2_2 is an image area of the second band of the second page for the first to fourth data write
図9及び図10は、以上説明したコントローラCPU2300及び画像処理コントローラ2150の動作シーケンスを示す図である。ここでは、図8と同様にページ数が2、各ページの画像領域が2つに分割されている場合の例を示している。なお、画像処理を行う元画像データはすでにメインメモリ2400上に記憶されているものとする。また、この図の「ソフト」がコントローラCPU2300のソフト処理である。
9 and 10 are diagrams showing the operation sequence of the controller CPU 2300 and the
ステップS0では初期状態であり、レジスタ制御部2152の起動回数のカウンタは0である。
ステップS1〜S12は1ページ目に対するソフトの処理である。まずステップS1で1ページ目のパラメータをメインメモリ2400上にロードし、ステップS2で1ページ目のパラメータのディスクリプタをメインメモリ2400上に作成する。ステップS3で、レジスタ制御部2152内のパラメータDMAC2154用のDP1にPDP1を設定する。ステップS4で、データリードDMAC2153用の1ページ目の1バンド目のディスクリプタDRD1_1をメインメモリ2400上に作成する。ステップS5で、レジスタ制御部2152内のデータリードDMAC2153用のDP1にDRDP1_1を設定する。ステップS6で、データリードDMAC2153用の1ページ目の2バンド目のディスクリプタDRD1_2をメインメモリ2400上に作成する。ステップS7で、レジスタ制御部内のデータリードDMAC2153用のDP2にDRDP1_2を設定する。ステップS8で、第1〜第4のデータライトDMAC2155〜2158用の1ページ目の1バンド目のディスクリプタDWD1_1をメインメモリ2400上に作成する。ステップS9で、レジスタ制御部2152内の第1〜第4のデータライトDMAC2155〜2158用のDP1にDWDP1_1を設定する。ステップS10で、第1〜第4のデータライトDMAC2155〜2158用の1ページ目の2バンド目のディスクリプタDWD1_2をメインメモリ2400上に作成する。ステップS11で、レジスタ制御部2152内の第1〜第4のデータライトDMAC2155〜2158用のDP2にDWDP1_2を設定する。ステップS12で、レジスタ制御部2152内のEXECレジスタに1を書き込み、1ページ目の起動をかける。
In step S0, the state is an initial state, and the counter for the number of activations of the
Steps S1 to S12 are software processes for the first page. First, in step S1, the parameters of the first page are loaded onto the
レジスタ制御部2152では起動がかけられると、ステップS13で起動回数のカウンタをインクリメントし、その結果、カウンタの値は1になる。
When the
以下のステップS14〜S25は2ページ目に対するソフトの処理である。ステップS14で、2ページ目のパラメータをメインメモリ2400上にロードする。ステップS15で、2ページ目のパラメータのディスクリプタをメインメモリ2400上に作成する。ステップS16で、レジスタ制御部2152内のパラメータDMAC2154用のDP2にPDP2を設定する。ステップS17で、データリードDMAC2153用の2ページ目の1バンド目のディスクリプタDRD2_1をメインメモリ2400上に作成する。ステップS18で、レジスタ制御部2152内のデータリードDMAC2153用のDP3にDRDP2_1を設定する。ステップS19で、データリードDMAC2153用の2ページ目の2バンド目のディスクリプタDRD2_2をメインメモリ2400上に作成する。ステップS20で、レジスタ制御部2152内のデータリードDMAC2153用のDP4にDRDP2_2を設定する。ステップS21で、第1〜第4のデータライトDMAC2155〜2158用の2ページ目の1バンド目のディスクリプタDWD2_1をメインメモリ2400上に作成する。ステップS22で、レジスタ制御部2152内の第1〜第4のデータライトDMAC2155〜2158用のDP3にDWDP2_1を設定する。ステップS23で、第1〜第4のデータライトDMAC2155〜2158用の2ページ目の2バンド目のディスクリプタDWD2_2をメインメモリ2400上に作成する。ステップS24で、レジスタ制御部2152内の第1〜第4のデータライトDMAC2155〜2158用のDP4にDWDP2_2を設定する。ステップS25で、レジスタ制御部2152内のEXECレジスタに1を書き込み、2ページ目の起動をかける。
The following steps S14 to S25 are software processes for the second page. In step S14, the parameters of the second page are loaded onto the
レジスタ制御部2152は、起動がかけられると、ステップS26で起動回数のカウンタをインクリメントし、その結果、カウンタの値は2になる。
When being activated, the
以下のステップS27〜S67は画像処理コントローラ2150の処理である。
アイドル状態で起動がかけられたレジスタ制御部2152は、ステップS27でパラメータDMAC2154を起動する。パラメータDMAC2154は、ステップS28で、メインメモリ2400にある1ページ目のディスクリプタPD1を読み出し、ステップS29で、メインメモリ2400にある1ページ目のパラメータP1を読み出し、ステップS30で、パラメータP1をレジスタ制御部2152内のレジスタに設定する。パラメータDMAC2154は、このようにして全てのパラメータ設定が終了したら、ステップS31で転送終了信号をレジスタ制御部2152に送出する。
The following steps S27 to S67 are processing of the
The
レジスタ制御部2152は、パラメータDMAC2154から転送終了信号を受け取ったら、ステップS32でデータリードDMAC2153を起動し、ステップS33で第1〜第4のデータライトDMAC2155〜2158を起動する。
Upon receiving the transfer end signal from the
起動されたデータリードDMAC2153は、ステップS34で、メインメモリ2400上の1ページ目の1バンド目のディスクリプタDRD1_1を読み出す。また、起動された第1〜第4のデータライトDMAC2155〜2158は、ステップS35で、メインメモリ2400上の1ページ目の1バンド目のディスクリプタDWD1_1を読み出す。ステップS36で、データリードDMAC2153は、メインメモリ2400上の1ページ目の1バンド目の画像データDR1_1を読み出し、画像処理モジュール群2151に出力する。
In step S34, the activated data read
画像処理モジュール群2151は、ステップS37で、データリードDMAC2153から入力された画像データに対して、パラメータで設定された画像処理を行い、第1〜第4のデータライトDMAC2155〜2158へ出力する。第1〜第4のデータライトDMAC2155〜2158は、ステップS38で、画像処理モジュール群2151から出力された1ページ目の1バンド目の画像処理後の画像データDW1_1をメインメモリ2400に出力する。
In step S37, the image processing module group 2151 performs image processing set by parameters on the image data input from the data read
ステップS39で、データリードDMAC2153は、メインメモリ2400上の1ページ目の2バンド目のディスクリプタDRD1_2を読み出す。ステップS40で、第1〜第4のデータライトDMAC2155〜2158は、メインメモリ2400上の1ページ目の2バンド目のディスクリプタDWD1_2を読み出す。ステップS41で、データリードDMAC2153は、メインメモリ2400上の1ページ目の2バンド目の画像データDR1_2を読み出し、画像処理モジュール群2151に出力する。そして、読み出しが終了したら、ステップS44で転送終了信号をレジスタ制御部2152に出力する。
In step S39, the data read
ステップS42で、画像処理モジュール群2151は、データリードDMAC2153から入力された画像データに対して、パラメータで設定された画像処理を行い、第1〜第4のデータライトDMAC2155〜2158へ出力する。ステップS43で、第1〜第4のデータライトDMAC2155〜2158は、画像処理モジュール群2153から出力された1ページ目の2バンド目の画像処理後の画像データDW1_2をメインメモリ2400に出力する。そして、出力が終了したら、ステップS45で転送終了信号をレジスタ制御部2152に出力する。
In step S42, the image processing module group 2151 performs image processing set by parameters for the image data input from the data read
レジスタ制御部2152は、第1〜第4のデータライトDMAC2155〜2158からの転送終了信号を受け取ったら、ステップS46で起動回数のカウンタをデクリメントし、その結果、カウンタの値は1になる。デクリメント後のカウンタの値が0でないため、ステップS47で、レジスタ制御部2152は再びパラメータDMAC2154を起動する。
Upon receiving the transfer end signal from the first to fourth data write
起動されたパラメータDMAC2154は、ステップS48で、メインメモリ2400上の2ページ目のディスクリプタPD2を読み出し、ステップS49で、メインメモリ2400上の2ページ目のパラメータP2を読み出し、ステップS50で、パラメータP2をレジスタ制御部2152内のレジスタに設定する。そして、全てのパラメータ設定が終了したら、ステップS51で転送終了信号をレジスタ制御部2152に出力する。
The activated parameter DMAC2154 reads the descriptor PD2 of the second page on the
レジスタ制御部2152は、パラメータDMA2154Cからの転送終了信号を受け取ったら、ステップS52でデータリードDMAC2153を起動し、ステップS53で第1〜第4のデータライトDMAC2155〜2158を起動する。
Upon receiving the transfer end signal from the parameter DMA 2154C, the
起動されたデータリードDMAC2153は、ステップS54で、メインメモリ2400上の2ページ目の1バンド目のディスクリプタDRD2_1を読み出す。起動された第1〜第4のデータライトDMAC2155〜2158は、ステップS55で、メインメモリ2400上の2ページ目の2バンド目のディスクリプタDWD2_1を読み出す。データリードDMAC2153は、ステップS56で、メインメモリ2400上の2ページ目の1バンド目の画像データDR2_1を読み出し、画像処理モジュール群2151に出力する。
The activated data read
画像処理モジュール群2151は、ステップS57で、データリードDMAC2153から入力された画像データに対して、パラメータで設定された画像処理を行い、第1〜第4のデータライトDMAC2155〜2158へ出力する。第1〜第4のデータライトDMAC2155〜2158は、ステップS58で、画像処理モジュール群2151から出力された2ページ目の1バンド目の画像処理後の画像データDW2_1をメインメモリ2400に出力する。
In step S57, the image processing module group 2151 performs image processing set by parameters on the image data input from the data read
次にステップS59で、データリードDMAC2153は、メインメモリ2400上の2ページ目の2バンド目のディスクリプタDRD2_2を読み出し、ステップS60で、第1〜第4のデータライトDMAC2155〜2158は、メインメモリ2400上の2ページ目の2バンド目のディスクリプタDWD2_2を読み出す。ステップS61で、データリードDMAC2153は、メインメモリ2400上の2ページ目の2バンド目の画像データDR2_2を読み出し、画像処理モジュール群2151に出力する。そして、読み出しが終了したら、ステップS64で転送終了信号をレジスタ制御部2152に出力する。
In step S59, the data read
画像処理モジュール群2151は、ステップS62で、データリードDMAC2153から入力された画像データに対して、パラメータで設定された画像処理を行い、第1〜第4のデータライトDMAC2155〜2158へ出力する。第1〜第4のデータライトDMAC2155〜2158は、ステップS63で、画像処理モジュール群2151から出力された2ページ目の2バンド目の画像処理後の画像データDW2_2をメインメモリ2400に出力する。そして、出力が終了したら、ステップS65で、転送終了信号をレジスタ制御部2152に出力する。
In step S62, the image processing module group 2151 performs image processing set by parameters on the image data input from the data read
レジスタ制御部2152は、第1〜第4のデータライトDMAC2155〜2158からの転送終了信号を受け取ったら、ステップS66で起動回数のカウンタをデクリメントし、カウンタの値は0になる。レジスタ制御部2152は、起動回数のカウンタが0になったので、ステップS67で、CPUコントローラ2300に転送終了割り込み信号を出力する。
Upon receiving the transfer end signal from the first to fourth data write
以上詳細に説明したように、本発明の実施形態によれば、下記(1)〜(3)の効果が得られる。
(1)レジスタ制御部2152がデータリードDMAC2153用、及び第1〜第4のデータライトDMAC2155〜2158用の各々のディスクリプタレジスタを複数持ち、画像処理コントローラ2150が起動回数のカウンタを持ち、画像処理終了後、起動カウンタが0でない場合は、再びパラメータDMAC2154を起動し、パラメータDMAC2154によるパラメータの転送が終了したら、データリードDMAC2153及び第1〜第4のデータライトDMAC2155〜2158の起動を行うことを繰り返すことにより、コントローラCPU2300は、1ページ分の画像処理後にパラメータ及びディスクリプタのメインメモリ2400への書き込みなどを行うという制約がなくなり、複数ページ分をまとめて書き込むことができるようになるため、ソフトの処理効率を向上させることができる。
(2)データリードDMAC2153用、及び第1〜第4のデータライトDMAC2155〜2158用の各々のディスクリプタのうち、ページの最初のディスクリプタのみに拡張領域を持たせることにより、保持しておく未処理のページ用のレジスタを削減することができ、ハードウェア規模の増大を抑えることが出来る。
(3)全てのページの処理が終わり、起動カウンタの値が0になった場合に終了割り込みを出すことにより、割り込み処理の回数が削減されるため、ソフトの処理効率を向上させることができる。
As described above in detail, according to the embodiment of the present invention, the following effects (1) to (3) can be obtained.
(1) The
(2) Among the descriptors for the data read
(3) Since the end interrupt is issued when the processing of all pages is completed and the value of the activation counter reaches 0, the number of interrupt processing is reduced, so that the software processing efficiency can be improved.
2150・・・画像処理コントローラ、2152・・・レジスタ制御部、2153・・・データリードDMAC、2154・・・パラメータDMAC、2155〜2158・・・第1〜第4のデータライトDMAC、2300・・・コントローラCPU、2400・・・メインメモリ。 2150 ... Image processing controller, 2152 ... Register controller, 2153 ... Data read DMAC, 2154 ... Parameter DMAC, 2155 to 2158 ... First to fourth data write DMAC, 2300 ... -Controller CPU, 2400 ... Main memory.
Claims (2)
メインメモリ上の画像処理パラメータを読み出して前記レジスタに設定する第1のDMACと、
該第1のDMACにより前記レジスタに設定された画像処理パラメータに基づいて、画像データに対し画像処理を施す画像処理手段と、
プロセッサがページ毎に前記メインメモリに前記画像処理パラメータを書き込んだ後に出力する起動信号に基づいて前記第1のDMACを起動する起動制御手段と、
前記起動制御手段により起動され、前記メインメモリ上の画像データを読み出して前記画像処理手段に転送する第2のDMACと、
前記起動制御手段により起動され、前記画像処理手段で処理された画像データを前記メインメモリに転送する第3のDMACとを有し、
前記第2のDMAC、第3のDMACの各々の動作を記述するディスクリプタのうち、各ページの先頭のディスクリプタはページ内で共通の情報の拡張領域を有し、それ以外のディスクリプタは各ディスクリプタ特有の情報を有し、
連続した複数ページの画像データを処理するときは、前記プロセッサによる各ページの画像処理パラメータの書き込み及び起動信号の出力を、前記第1のDMAC及び画像処理手段の各ページの処理の終了を待たずに行うことを特徴とする画像処理装置。 A register in which image processing parameters are set;
A first DMAC that reads image processing parameters on the main memory and sets them in the register;
Image processing means for performing image processing on image data based on image processing parameters set in the register by the first DMAC;
Activation control means for activating the first DMAC based on an activation signal that is output after the processor writes the image processing parameters to the main memory for each page ;
A second DMAC that is activated by the activation control means, reads image data on the main memory, and transfers the image data to the image processing means;
A third DMAC that is activated by the activation control means and transfers the image data processed by the image processing means to the main memory ;
Of the descriptors describing the operations of the second DMAC and the third DMAC, the descriptor at the head of each page has an extended area of information common to the page, and the other descriptors are unique to each descriptor. Have information,
When processing a plurality of consecutive pages of image data, the processor does not wait for the end of processing of each page of the first DMAC and image processing means to write the image processing parameters of each page and output the start signal. And an image processing apparatus.
前記起動信号の入力によりインクリメントし、1ページの画像処理の終了に基づいてデクリメントするカウンタと、該カウンタの値が0に低下したときに、前記プロセッサに完了通知の割り込みを行う手段とを有することを特徴とする画像処理装置。 The image processing apparatus according to claim 1.
A counter that increments upon input of the activation signal and decrements based on completion of image processing for one page; and a means for interrupting a completion notification to the processor when the value of the counter decreases to 0. An image processing apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007298317A JP4895394B2 (en) | 2007-11-16 | 2007-11-16 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007298317A JP4895394B2 (en) | 2007-11-16 | 2007-11-16 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009123091A JP2009123091A (en) | 2009-06-04 |
JP4895394B2 true JP4895394B2 (en) | 2012-03-14 |
Family
ID=40815152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007298317A Expired - Fee Related JP4895394B2 (en) | 2007-11-16 | 2007-11-16 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4895394B2 (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0631140B2 (en) * | 1984-09-26 | 1994-04-27 | 株式会社東芝 | Elevator seismic control method and control device |
JP2011138188A (en) * | 2009-12-25 | 2011-07-14 | Samsung Electronics Co Ltd | Data processing apparatus, and method of setting parameter |
US8751693B2 (en) | 2009-12-25 | 2014-06-10 | Samsung Electronics Co., Ltd. | Apparatus for and method of processing data |
BR112013020341B1 (en) * | 2011-03-02 | 2021-06-08 | Nec Corporation | data control system and data control method |
JP2013103372A (en) * | 2011-11-11 | 2013-05-30 | Ricoh Co Ltd | Image forming apparatus |
JP5806706B2 (en) * | 2012-10-15 | 2015-11-10 | 株式会社沖データ | Image reading apparatus and image forming apparatus |
JP6232945B2 (en) | 2013-11-07 | 2017-11-22 | 株式会社リコー | Image processing device |
JP6613699B2 (en) | 2015-08-10 | 2019-12-04 | 株式会社リコー | Image processing device |
CN113747043B (en) * | 2020-05-29 | 2023-06-20 | Oppo广东移动通信有限公司 | Image processor starting method, electronic device and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09288639A (en) * | 1996-04-22 | 1997-11-04 | Ricoh Co Ltd | Information processor |
JP2002140286A (en) * | 2000-10-31 | 2002-05-17 | Ricoh Co Ltd | Information processing device and dma transfer method |
JP2006259898A (en) * | 2005-03-15 | 2006-09-28 | Toshiba Corp | I/o controller, signal processing system and data transferring method |
JP2007188434A (en) * | 2006-01-16 | 2007-07-26 | Ricoh Co Ltd | Image processor |
-
2007
- 2007-11-16 JP JP2007298317A patent/JP4895394B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009123091A (en) | 2009-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4895394B2 (en) | Image processing device | |
JP3732702B2 (en) | Image processing device | |
JP4476203B2 (en) | Image processing apparatus, program, and image processing method | |
JP2001169022A (en) | Image processor | |
US8891091B2 (en) | Image processing apparatus, image processing control method and computer-readable storage medium | |
JP3003319B2 (en) | Image processing device | |
KR102197764B1 (en) | Information processing apparatus and semiconductor integrated circuit including ring bus system | |
JP2000316063A (en) | Image processor, image processing method and computer- readable recording medium recording program to allow computer to execute its method | |
JP4378197B2 (en) | Image information device | |
JP2000165563A (en) | Image processing unit | |
US6985258B1 (en) | Print system | |
US8514441B2 (en) | Image processing apparatus and control method thereof, in which an address for image data depends on whether the image data is input via a detachable image processing device | |
JP4034323B2 (en) | Image data processing method, image data processing apparatus, and image forming apparatus | |
JP2018118477A (en) | Image processing device, control method and program of the same | |
JP3669574B2 (en) | Image processing apparatus, image processing method, program for causing computer to execute the method, and computer-readable recording medium storing the program | |
JP4746945B2 (en) | Resolution conversion apparatus and method | |
JP3657161B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method | |
JP3785295B2 (en) | Image processing device | |
JP3670918B2 (en) | Image processing device | |
JP2001186355A (en) | Picture processor | |
JP2004112692A (en) | Image processing device | |
JP2004237472A (en) | Image processor | |
JP2001328315A (en) | Imaging system | |
JP2001101394A (en) | Image processor | |
JP2001092946A (en) | Image processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100712 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110706 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110711 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110817 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20111214 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20111219 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4895394 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150106 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |