JP4895394B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

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
Application number
JP2007298317A
Other languages
Japanese (ja)
Other versions
JP2009123091A (en
Inventor
竜弥 倉永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007298317A priority Critical patent/JP4895394B2/en
Publication of JP2009123091A publication Critical patent/JP2009123091A/en
Application granted granted Critical
Publication of JP4895394B2 publication Critical patent/JP4895394B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Bus Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To suppress deterioration of processing efficiency of a processor and to shorten a time required for image processing when transferring an image processing parameter to be written by the processor to a main memory page by page to a register by a DMAC (direct memory access controller) and performing image processing of a plurality of continuous pages with an image processing module on the basis of the image processor parameter. <P>SOLUTION: At ST1, the image processing parameter is stored in the main memory. At ST2, descriptors for a parameter DMAC, data read DMAC, and data write DMAC are created on the main memory. At ST3, an address of the descriptor is set to a descriptor pointer register. At ST4, an image processing controller is started. At ST5, it is determined whether or not there is a next page and, when there is, operation from ST1 to ST4 is repeated in succession. After the operation for a final page is finished, processing is completed. <P>COPYRIGHT: (C)2009,JPO&amp;INPIT

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 control unit 101 realized by a microcomputer including a CPU, a ROM (Read Only Memory), and a RAM (Random Access Memory), an image processing module 102, and a memory 103.

画像処理モジュール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 register 104, a parameter DMAC105, a data read DMAC106, and data that directly transfer data without using a CPU. It consists of a write DMAC 107, and each DMAC performs image processing in conjunction with each other.

まずステップS101〜103で、制御部101がメモリ103に対してデータリードDMAC106とデータライトDMAC107の各DMAC用のディスクリプタ情報と、パラメータDMAC105の画像処理パラメータ用のディスクリプタ情報とを書き込む。   First, in steps S101 to 103, the control unit 101 writes the descriptor information for each DMAC of the data read DMAC 106 and the data write DMAC 107 and the descriptor information for the image processing parameter of the parameter DMAC 105 in the memory 103.

次いでステップS104で、制御部101が画像処理モジュール102に対してレジスタ情報を書き込んで必要なレジスタを設定する。ステップS105で、制御部101が画像処理モジュール102に対して起動レジスタを使って起動させる。画像処理モジュール102は、制御部101により起動されたら、レジスタ104からパラメータDMAC105、データリードDMAC106、データライトDMAC107に対してそれぞれ起動信号EXECを同時に送る。従って、パラメータDMAC105、データリードDMAC106、データライトDMAC107は同時に起動する。   In step S104, the control unit 101 writes register information to the image processing module 102 and sets necessary registers. In step S105, the control unit 101 activates the image processing module 102 using the activation register. When activated by the control unit 101, the image processing module 102 simultaneously sends activation signals EXEC from the register 104 to the parameter DMAC 105, the data read DMAC 106, and the data write DMAC 107, respectively. Accordingly, the parameter DMAC 105, the data read DMAC 106, and the data write DMAC 107 are activated simultaneously.

次にステップ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 DMAC 106 that has received the activation signal EXEC from the register 104 reads and acquires the descriptor information for the data read DMAC from the memory 103, and sets it in the internal register. In step S107, the parameter DMAC 105 that has received the activation signal EXEC from the register 104 reads and acquires the descriptor information for the image processing parameter from the address of the memory 103 designated by the setting in the register, and sets it in the internal register. In step S108, the data write DMAC 107 that has received the activation signal EXEC from the register 104 reads and acquires the descriptor information for the data write DMAC from the memory 103, and sets it in the internal register. The processes in steps S106 to S108 are performed simultaneously, whereby the parameter DMAC 105, the data read DMAC 106, and the data write DMAC 107 simultaneously read and acquire the descriptor information set in the memory 103.

次にステップS109で、パラメータDMAC105が、データリードDMAC106に対して画像処理パラメータ用のディスクリプタ情報を内部レジスタに設定して終了したことを示す終了通知を送る。ステップS110で、データリードDMAC106が、上記終了通知に基づいてパラメータDMAC105の内部レジスタに画像処理パラメータ用のディスクリプタ情報が設定されたことを確認し、ステップS105で取得したディスクリプタ情報に基づいてメモリ103から画像データを読み込み、画像処理モジュール102はその画像データに画像処理を行う。   Next, in step S109, the parameter DMAC 105 sends an end notification indicating that the image processing parameter descriptor information has been set in the internal register to the data read DMAC 106 and ended. In step S110, the data read DMAC 106 confirms that the descriptor information for the image processing parameter is set in the internal register of the parameter DMAC 105 based on the end notification, and from the memory 103 based on the descriptor information acquired in step S105. The image processing module 102 reads the image data and performs image processing on the image data.

ステップS111で、データライトDMAC107が、ステップS108で取得したディスクリプタ情報に基づいて画像処理モジュール102による画像処理後の画像データを順次メモリ103に書き込む。   In step S111, the data write DMAC 107 sequentially writes the image data after the image processing by the image processing module 102 to the memory 103 based on the descriptor information acquired in step S108.

ステップS112で、データリードDMAC106が、データライトDMAC107に対して画像データを全て読み込んだことを示す終了通知を送る。ステップS113で、データライトDMAC107が、メモリ103に全ての画像処理後の画像データを書き込み、かつデータリードDMAC106から終了通知が来たことを確認後、制御部101に対して画像処理終了を示す終了通知を送り、制御部101はその終了通知に基づいて終了の割り込み処理を行う。   In step S112, the data read DMAC 106 sends an end notification indicating that all image data has been read to the data write DMAC 107. In step S113, the data write DMAC 107 writes all the image processed image data in the memory 103, and after confirming that the end notification is received from the data read DMAC 106, the control unit 101 indicates the end of the image processing. The control unit 101 performs a termination interrupt process based on the termination notification.

このようにして、パラメータDMAC105の画像処理パラメータ用のディスクリプタ情報を設定する内部レジスタに、そのディスクリプタ情報を制御部101が直接設定するのではなく、一旦メモリ103に記憶してからDMA処理によって画像処理モジュール102が読み込むので、制御部101のCPUの負荷の低減と画像処理時間の短縮が可能になる。   In this way, the controller 101 does not directly set the descriptor information in the internal register for setting the descriptor information for the image processing parameter of the parameter DMAC 105, but stores the descriptor information in the memory 103 and then performs image processing by DMA processing. Since the module 102 reads, it is possible to reduce the load on the CPU of the control unit 101 and shorten the image processing time.

しかしながら、この画像処理装置では、連続した複数ページの処理を行う場合、各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 control unit 101 completes image processing for each page. The setting will be repeated and the activation will be repeated. Therefore, when the number of pages increases, there is a problem that the processing efficiency of the software decreases due to an increase in the number of processes in which the CPU of the control unit 101 waits for an interrupt.

特開2007−188434号公報JP 2007-188434 A

本発明は、このような問題を解決するためになされたものであり、その目的は、プロセッサによりメインメモリにページ毎に書き込まれる画像処理パラメータを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 controller 2000.

エンジン1000は、スキャナ1100、スキャナ画像処理ASIC1200、プロッタ1300、プロッタ制御ASIC1400、RAM1500、エンジンCPU1600、フラッシュメモリ1700、エンジンASIC1800からなり、原稿の読み取りおよび画像の出力を行う。   The engine 1000 includes a scanner 1100, a scanner image processing ASIC 1200, a plotter 1300, a plotter control ASIC 1400, a RAM 1500, an engine CPU 1600, a flash memory 1700, and an engine ASIC 1800, and reads a document and outputs an image.

スキャナ1100は、原稿の読み取りを行うユニットであり、スキャナ動作、コピー動作、FAX送信動作時に原稿の画像データを出力する。スキャナ画像処理ASIC1200は、スキャナ1100で読み取られた画像データに補正を行った画像データ、及び原稿における文字部/写真部、有彩/無彩を判定した画像分離データを生成して出力する。   A scanner 1100 is a unit that reads a document, and outputs document image data during a scanner operation, a copy operation, and a FAX transmission operation. The scanner image processing ASIC 1200 generates and outputs image data obtained by correcting the image data read by the scanner 1100, and image separation data in which a character portion / photograph portion and chromatic / achromatic color in a document are determined.

プロッタ1300は、プロッタ制御ASIC1400から出力される画像データに基づいて用紙上に画像形成を行って出力する。プロッタ制御ASIC1400は、プロッタ1300からの同期信号に合わせて、エンジンASIC1800から入力される画像データをプロッタ1300へ出力する。   The plotter 1300 forms an image on a sheet based on the image data output from the plotter control ASIC 1400 and outputs the image. The plotter control ASIC 1400 outputs image data input from the engine ASIC 1800 to the plotter 1300 in accordance with the synchronization signal from the plotter 1300.

RAM1500は、エンジンCPU1600がエンジン制御を行うための作業用メモリで、エンジンCPU1600により、プログラム実行中の変数記憶領域などに使用される。エンジンCPU1600は、スキャナ制御、用紙の搬送、作像、定着など、エンジン1000全般の制御を行う。フラッシュメモリ1700は、エンジンCPU1600が各種制御を実行するときに使用するプログラムを記憶するための書き換え可能な不揮発性メモリである。   The RAM 1500 is a working memory for the engine CPU 1600 to perform engine control, and is used by the engine CPU 1600 for a variable storage area during program execution. The engine CPU 1600 performs overall control of the engine 1000 such as scanner control, paper conveyance, image formation, and fixing. The flash memory 1700 is a rewritable nonvolatile memory for storing programs used when the engine CPU 1600 executes various controls.

エンジンASIC1800は、ビデオ出力部1810、アービタ1820、コミュニケーションバッファ1830、解像度変換部1840、及び圧縮伸張部1850を備え、コントローラ2000とエンジンCPU1600、コントローラ2000とプロッタ制御ASIC1400との間のデータのインタフェースを行う。   The engine ASIC 1800 includes a video output unit 1810, an arbiter 1820, a communication buffer 1830, a resolution conversion unit 1840, and a compression / decompression unit 1850, and interfaces data between the controller 2000 and the engine CPU 1600, and between the controller 2000 and the plotter control ASIC 1400. .

ビデオ出力部1810は、出力する画像の画像データを後述するメインメモリ2400から読み込み、マスク処理、合成処理、フォーマット変換などを行ってプロッタ制御ASIC1400へ出力する。アービタ1820は、エンジンASIC1800内の各モジュールから後述するコントローラCPU2300へのアクセスの調停を行う。コミュニケーションバッファ1830は、エンジンCPU1600とコントローラCPU2300との間の通信のためのバッファである。解像度変換部1840は、プリンタ動作、FAX動作時に、メインメモリ2400上の低解像度の画像データからプロッタ1300に適合する高解像度の画像データへの変換を行い、変換後の画像データをメインメモリ2400に出力する。圧縮伸張部1850は、メインメモリ2400上の画像データ領域を削減するために、画像データを圧縮してメインメモリ2400に送出し、メインメモリ2400から出力された圧縮画像データを伸張する。   The video output unit 1810 reads image data of an image to be output from a main memory 2400, which will be described later, performs mask processing, composition processing, format conversion, and the like, and outputs them to the plotter control ASIC 1400. The arbiter 1820 arbitrates access from each module in the engine ASIC 1800 to the controller CPU 2300 described later. The communication buffer 1830 is a buffer for communication between the engine CPU 1600 and the controller CPU 2300. The resolution conversion unit 1840 converts low-resolution image data on the main memory 2400 to high-resolution image data suitable for the plotter 1300 during printer operation and FAX operation, and converts the converted image data to the main memory 2400. Output. The compression / decompression unit 1850 compresses the image data and sends it to the main memory 2400 in order to reduce the image data area on the main memory 2400, and decompresses the compressed image data output from the main memory 2400.

コントローラ2000は、画像処理装置の全体の制御や各種アプリケーションの実行を行う制御装置であり、コントローラASIC2100、ハードディスク2200、コントローラCPU2300、及びメインメモリ2400を備えている。   The controller 2000 is a control device that controls the entire image processing apparatus and executes various applications, and includes a controller ASIC 2100, a hard disk 2200, a controller CPU 2300, and a main memory 2400.

コントローラ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 image processing controller 2150, and a hard disk I / F (interface) 2160, and a main memory 2400 for image data input from the engine 1000. Transfer, image processing during copying, read / write control to the hard disk 2200, etc.

ビデオ入力部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 main memory 2400. The arbiter 2120 arbitrates access from each module in the controller ASIC 2100 to the controller CPU 2300. The distribution image processing unit 2140 performs image data conversion processing in order to distribute the image data on the main memory 2400 via the network, and outputs the converted image data to the main memory 2400. The image processing controller 2150 expands the compressed image data on the main memory 2400, performs filter processing, color conversion processing, gradation processing, and the like, and transfers them to the main memory 2400. The hard disk I / F 2160 performs read / write control to the hard disk 2200.

ハードディスク2200は、各種画像データの蓄積や、コントローラCPU2300の一時記憶領域に使用する記憶装置である。コントローラCPU2300は、メモリコントローラ及びPCI(Peripheral Component Interconnect) Express(登録商標)、PCIの汎用インタフェースを備え、メインメモリ2400の領域確保及びリード/ライト制御、並びにプリンタの画像描画、コピー、スキャナ、FAX、配信などの各種アプリケーションを実行する。メインメモリ2400は、コントローラCPU2300が各種アプリケーションを実行するための作業用メモリであり、コントローラCPU2300により、各種データの一時記憶領域や、DMAC用ディスクリプタ領域などに使用される。   The hard disk 2200 is a storage device used for storing various image data and for a temporary storage area of the controller CPU 2300. The controller CPU 2300 includes a memory controller, PCI (Peripheral Component Interconnect) Express (registered trademark), and a general-purpose interface for PCI, securing the area of the main memory 2400 and read / write control, as well as printer image drawing, copying, scanner, FAX, Execute various applications such as distribution. The main memory 2400 is a working memory for the controller CPU 2300 to execute various applications, and is used by the controller CPU 2300 for various data temporary storage areas, DMAC descriptor areas, and the like.

図2は、画像処理コントローラ2150の構成例、及びメインメモリ2400との間のデータの流れを示す図である。
画像処理コントローラ2150は、画像処理モジュール群2151、レジスタ制御部2152、データリードDMAC2153、パラメータDMAC2154、第1〜第4のデータライトDMAC2155〜2158を備えている。
FIG. 2 is a diagram illustrating a configuration example of the image processing controller 2150 and a data flow with the main memory 2400.
The image processing controller 2150 includes an image processing module group 2151, a register control unit 2152, a data read DMAC 2153, a parameter DMAC 2154, and first to fourth data write DMACs 2155 to 2158.

パラメータDMAC2154は、メインメモリ2400上に予めロードされた画像処理パラメータ2402を読み出して、レジスタ制御部2152内のパラメータレジスタ(図示せず)に設定する。データリードDMAC2153は、メインメモリ2400から、画素順次のRGB画像データと分離データX(入力画像データ2401)を読み出して、画像処理モジュール群2151へ送出する。画像処理モジュール群2151は、入力画像データに各種画像処理を施すモジュールの集まりであり、γ変換モジュール、フィルタモジュール、色補正モジュール、階調処理モジュールなどから構成される。第1〜第4のデータライトDMAC2155〜2158は、画像処理モジュール群2151から送出された画像処理後のCMYK面順次の画像データそれぞれをメインメモリ2400へ出力する(出力画像データ2403〜2406)。   The parameter DMAC 2154 reads the image processing parameter 2402 previously loaded on the main memory 2400 and sets it in a parameter register (not shown) in the register control unit 2152. The data read DMAC 2153 reads out pixel sequential RGB image data and separated data X (input image data 2401) from the main memory 2400 and sends them to the image processing module group 2151. The image processing module group 2151 is a collection of modules that perform various image processing on input image data, and includes a γ conversion module, a filter module, a color correction module, a gradation processing module, and the like. The first to fourth data write DMACs 2155 to 2158 output the CMYK plane sequential image data after image processing sent from the image processing module group 2151 to the main memory 2400 (output image data 2403 to 2406).

レジスタ制御部2152は、画像処理モジュール群2151の中の、各画像処理モジュールが画像処理を行う際に使用するパラメータを保持する。また、各DMACに起動を指示するためのEXECレジスタや、割り込みのステータスを保持する割り込みステータスレジスタ、各DMACのディスクリプタポインタレジスタなどを備え、各DMACの起動処理及びコントローラCPU2300への割り込み信号の出力を行う。   The register control unit 2152 holds parameters used when each image processing module in the image processing module group 2151 performs image processing. It also has an EXEC register for instructing each DMAC to start, an interrupt status register that holds the interrupt status, a descriptor pointer register for each DMAC, etc., to start each DMAC and output an interrupt signal to the controller CPU 2300 Do.

図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 first descriptor 2411 of each page, and B is the other descriptor 2412. The first descriptor 2411 and the other descriptors 2412 of each page, that is, all descriptors have the following entries.

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 main memory 2400, the image area is secured in a jump, a descriptor is created for each area, and the address of the next descriptor is written here. By doing so, it is possible to continuously perform processing on the skipped image area.

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 descriptor 2411 at the top of the page has a common information entry in the page. In MWIDTH (memory width), the width on the memory in the main scanning direction of the two-dimensional image is set. The DMAC reads or writes (outputs) image data for one line using this value as a unit. In IWIDTH (image width), the width of the two-dimensional image in the main scanning direction is set. Set operation mode such as rotation in CTRL (control). In FILL (fill pattern), the value to be written when the memory is cleared is set.

このような構成にすることにより、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 parameter DMAC descriptor 2413 has an entry of a start address (SA) of a parameter set in each image processing module. In the SA for the γ conversion parameter, a start address of a parameter such as a table value used for γ conversion is set. In the filter parameter SA, a start address of a parameter such as a filter coefficient used for smoothing or edge enhancement is set. In the color correction parameter SA, a start address of a parameter such as a masking coefficient used when converting from RGB to CMYK is set. In the gradation processing parameter SA, a start address of a parameter such as a dither table used for gradation processing is set.

図5は、画像処理コントローラ2150のレジスタ制御部2152内のレジスタの構成例を示す図である。
この図のAに示されているEXECレジスタは、画像処理コントローラ2150を起動するレジスタである。割り込みステータスレジスタは、画像処理コントローラ2150の各DMACの終了割り込みや、エラーなどの割り込み情報を保持する。割り込みマスクレジスタには、画像処理コントローラ2150の各割り込みのマスク制御を設定する。動作モードレジスタには、画像処理コントローラ2150の動作モードを設定する。
FIG. 5 is a diagram illustrating a configuration example of registers in the register control unit 2152 of the image processing controller 2150.
The EXEC register shown in A of this figure is a register for starting the image processing controller 2150. The interrupt status register holds interrupt information such as an end interrupt of each DMAC of the image processing controller 2150 and an error. In the interrupt mask register, mask control for each interrupt of the image processing controller 2150 is set. An operation mode of the image processing controller 2150 is set in the operation mode register.

パラメータ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 main memory 2400. This is realized by storing it in a storage device such as a ROM or a hard disk 2200 and loading it into the main memory 2400.

次に、ステップST2でパラメータDMAC2154用、データリードDMAC2153用、及び第1〜第4のデータライトDMAC2155〜2158用のディスクリプタをメインメモリ2400上に作成する。次いで、作成したディスクリプタのアドレスを、ステップST3でレジスタ制御部2152内のディスクリプタポインタレジスタに設定する。これらの設定が終了したら、ステップST4でレジスタ制御部2152内のEXECレジスタに1を書き込むことで、画像処理コントローラ2150に起動をかける。   Next, descriptors for the parameter DMAC 2154, the data read DMAC 2153, and the first to fourth data write DMACs 2155 to 2158 are created on the main memory 2400 in step ST2. Next, the address of the created descriptor is set in the descriptor pointer register in the register control unit 2152 in step ST3. When these settings are completed, the image processing controller 2150 is activated by writing 1 to the EXEC register in the register control unit 2152 in step ST4.

次いでステップ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 image processing controller 2150 described later is completed.

図7は、画像処理コントローラ2150の動作フローを示す図である。
画像処理コントローラ2150は、コントローラCPU2300のソフトにより起動(EXEC)がかけられるまでは、ステップST11でアイドル状態を継続する。起動がかけられると(ステップST11:yes)、動作フローはステップST12及びST15の2つに分岐し、並行して進行する。
FIG. 7 is a diagram showing an operation flow of the image processing controller 2150.
The image processing controller 2150 continues the idle state in step ST11 until it is activated (EXEC) by the software of the controller CPU 2300. When the activation is applied (step ST11: yes), the operation flow branches into two steps ST12 and ST15 and proceeds in parallel.

分岐した一方のステップ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 register control unit 2152 is incremented. Thereafter, when the activation is again applied (step ST13: yes), the activation number counter is incremented again. If not set (step ST13: no) and the counter value is larger than 0 (step ST14: yes), it waits for activation. If it is not set and the value of the counter becomes 0, the process proceeds to step ST25, an operation completion interrupt signal is output to the controller CPU 2300, and the process ends.

分岐した他方のステップ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 parameter DMAC 2154 is read from the main memory 2400. When reading of the descriptor is completed, the image processing parameter 2402 on the main memory 2400 is read out and set in the register in the register control unit 2152 in step ST16. When the parameter setting by the parameter DMAC2154 is completed, in step ST17, the data read DMAC2153 and the first to fourth data write DMAC2155 to 2158 read the descriptor 2411 with the extension area at the head of the page from the main memory 2400.

データリードDMAC2153は、ディスクリプタの読み出しが終了したら、そのディスクリプタの内容に従って、メインメモリ2400から画像データを読み込み、画像処理モジュール群2151に出力する。画像処理モジュール群2151は、レジスタ制御部2152内のレジスタに設定されたパラメータに従って画像処理を行い、処理後の画像データを各データライトDMACに出力する。各データライトDMACは、画像処理モジュール群2151からの画像データをメインメモリ2400に出力する。これらがステップST18の処理である。   When the data read DMAC 2153 finishes reading the descriptor, the data read DMAC 2153 reads the image data from the main memory 2400 according to the contents of the descriptor, and outputs it to the image processing module group 2151. The image processing module group 2151 performs image processing according to the parameters set in the register in the register control unit 2152 and outputs the processed image data to each data write DMAC. Each data write DMAC outputs image data from the image processing module group 2151 to the main memory 2400. These are the processes of step ST18.

ステップ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 main memory 2400. If there is no next area, the process proceeds to step ST23, and the counter for the number of activations is decremented.

一方、次の領域がある場合はステップ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 DMAC 2153 and the first to fourth data write DMACs 2155 to 2158 read the descriptor 2412 having no extension area from the main memory 2400.

データリードDMAC2153は、ディスクリプタの読み出しが終了したら、そのディスクリプタの内容に従って、メインメモリ2400から、分割されている領域の画像データを読み込み、画像処理モジュール群2151に出力する。画像処理モジュール群2151は、レジスタ制御部2152内のレジスタに設定されたパラメータに従って画像処理を行い、処理後の画像データを各データライトDMAC2155〜2158に出力する。各データライトDMAC2155〜2158は、画像処理モジュール群2151からの画像データをメインメモリ2400に出力する。これらがステップST21の処理である。   When the reading of the descriptor is completed, the data read DMAC 2153 reads the image data of the divided area from the main memory 2400 according to the contents of the descriptor, and outputs it to the image processing module group 2151. The image processing module group 2151 performs image processing according to the parameters set in the register in the register control unit 2152 and outputs the processed image data to the data write DMACs 2155 to 2158. Each data write DMAC 2155 to 2158 outputs the image data from the image processing module group 2151 to the main memory 2400. These are the processes of step ST21.

ステップ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 main memory 2400. In this example, the number of pages is 2, and the image area of each page is divided into two. Hereinafter, the divided area is referred to as a band. In this figure, A is the first page and B is the second page.

この図の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 DMACCs 2155 to 2158, and image data after image processing is output to this area. This start address is DWSA1_1. Here, for convenience, four descriptors and image areas for four data write DMACs 2155 to 2158 are shown one by one, but actually four are provided.

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 DMACCs 2155 to 2158, and this descriptor pointer is DWDP1_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 first to fourth data write DMACs 2155 to 2158, and image data after image processing is written to this area. This start address is DWSA1_2.

この図の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 DMACs 2155 to 2158, and this descriptor pointer is DWDP2_1. Since this descriptor is the descriptor at the head of the page, it has an extension area. DW2_1 is an image area of the first band of the second page of the first to fourth data write DMAC2155 to 2158, and image data after image processing is written to this area. This start address is DWSA2_1.

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 DMACs 2155 to 2158, and the image data after image processing is written in this area. This start address is DWSA2_2.

図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 image processing controller 2150 described above. Here, an example in which the number of pages is two and the image area of each page is divided into two as in FIG. 8 is shown. It is assumed that original image data to be subjected to image processing is already stored in the main memory 2400. The “software” in this figure is the software processing of the controller CPU 2300.

ステップ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 register control unit 2152 is zero.
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 main memory 2400, and in step S2, the descriptor of the parameters of the first page is created on the main memory 2400. In step S3, PDP1 is set in DP1 for parameter DMAC2154 in register controller 2152. In step S4, the first-band descriptor DRD1_1 of the first page for the data read DMAC 2153 is created on the main memory 2400. In step S5, DRDP1_1 is set in DP1 for data read DMAC 2153 in the register control unit 2152. In step S6, a second-band descriptor DRD1_2 for the first page for the data read DMAC 2153 is created on the main memory 2400. In step S7, DRDP1_2 is set in DP2 for data read DMAC2153 in the register control unit. In step S8, the first-band descriptor DWD1_1 of the first page for the first to fourth data write DMACs 2155 to 2158 is created on the main memory 2400. In step S9, DWDP1_1 is set in DP1 for the first to fourth data write DMACs 2155 to 2158 in the register control unit 2152. In step S10, the second-band descriptor DWD1_2 of the first page for the first to fourth data write DMACs 2155 to 2158 is created on the main memory 2400. In step S11, DWDP1_2 is set in DP2 for the first to fourth data write DMACs 2155 to 2158 in the register control unit 2152. In step S12, 1 is written in the EXEC register in the register control unit 2152 to activate the first page.

レジスタ制御部2152では起動がかけられると、ステップS13で起動回数のカウンタをインクリメントし、その結果、カウンタの値は1になる。   When the register controller 2152 is activated, the activation counter is incremented in step S13, and as a result, the counter value becomes 1.

以下のステップ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 main memory 2400. In step S15, a parameter descriptor for the second page is created on the main memory 2400. In step S16, PDP2 is set in DP2 for parameter DMAC2154 in register controller 2152. In step S17, the first-band descriptor DRD2_1 of the second page for the data read DMAC 2153 is created on the main memory 2400. In step S18, DRDP2_1 is set in DP3 for data read DMAC 2153 in the register control unit 2152. In step S19, a second-band descriptor DRD2_2 for the second page for the data read DMAC 2153 is created on the main memory 2400. In step S20, DRDP2_2 is set in DP4 for data read DMAC 2153 in the register control unit 2152. In step S21, the first-band descriptor DWD2_1 of the second page for the first to fourth data write DMACs 2155 to 2158 is created on the main memory 2400. In step S22, DWDP2_1 is set in DP3 for the first to fourth data write DMACs 2155 to 2158 in the register control unit 2152. In step S23, the second-band descriptor DWD2_2 of the second page for the first to fourth data write DMACs 2155 to 2158 is created on the main memory 2400. In step S24, DWDP2_2 is set in DP4 for the first to fourth data write DMACs 2155 to 2158 in the register control unit 2152. In step S25, 1 is written to the EXEC register in the register control unit 2152 to activate the second page.

レジスタ制御部2152は、起動がかけられると、ステップS26で起動回数のカウンタをインクリメントし、その結果、カウンタの値は2になる。   When being activated, the register control unit 2152 increments the activation number counter in step S26, and as a result, the counter value becomes 2.

以下のステップ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 image processing controller 2150.
The register control unit 2152 activated in the idle state activates the parameter DMAC2154 in step S27. In step S28, the parameter DMAC2154 reads the descriptor PD1 of the first page in the main memory 2400. In step S29, the parameter P1 of the first page in the main memory 2400 is read. In step S30, the parameter P1 is stored in the register control unit. Set in the register in 2152. The parameter DMAC 2154 sends a transfer end signal to the register control unit 2152 in step S31 when all parameter settings are completed in this way.

レジスタ制御部2152は、パラメータDMAC2154から転送終了信号を受け取ったら、ステップS32でデータリードDMAC2153を起動し、ステップS33で第1〜第4のデータライトDMAC2155〜2158を起動する。   Upon receiving the transfer end signal from the parameter DMAC 2154, the register control unit 2152 activates the data read DMAC 2153 in step S32, and activates the first to fourth data write DMACs 2155 to 2158 in step S33.

起動されたデータリード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 DMAC 2153 reads the first-band descriptor DRD1_1 of the first page on the main memory 2400. In addition, the activated first to fourth data write DMACs 2155 to 2158 read out the descriptor DWD1_1 of the first band of the first page on the main memory 2400 in step S35. In step S36, the data read DMAC 2153 reads the first band image data DR1_1 of the first page on the main memory 2400, and outputs it to the image processing module group 2151.

画像処理モジュール群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 DMAC 2153, and outputs the image data to the first to fourth data write DMACs 2155 to 2158. In step S38, the first to fourth data write DMACs 2155 to 2158 output the image data DW1_1 after the image processing of the first band of the first page output from the image processing module group 2151 to the main memory 2400.

ステップ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 DMAC 2153 reads the second-band descriptor DRD1_2 of the first page on the main memory 2400. In step S40, the first to fourth data write DMACs 2155 to 2158 read the second band descriptor DWD1_2 of the first page on the main memory 2400. In step S41, the data read DMAC 2153 reads the image data DR1_2 of the second band of the first page on the main memory 2400 and outputs it to the image processing module group 2151. When the reading is completed, a transfer end signal is output to the register control unit 2152 in step S44.

ステップ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 DMAC 2153, and outputs the image data to the first to fourth data write DMACs 2155 to 2158. In step S43, the first to fourth data write DMACs 2155 to 2158 output the image data DW1_2 after the second band image processing of the first page output from the image processing module group 2153 to the main memory 2400. When the output ends, a transfer end signal is output to the register control unit 2152 in step S45.

レジスタ制御部2152は、第1〜第4のデータライトDMAC2155〜2158からの転送終了信号を受け取ったら、ステップS46で起動回数のカウンタをデクリメントし、その結果、カウンタの値は1になる。デクリメント後のカウンタの値が0でないため、ステップS47で、レジスタ制御部2152は再びパラメータDMAC2154を起動する。   Upon receiving the transfer end signal from the first to fourth data write DMACs 2155 to 2158, the register control unit 2152 decrements the activation number counter in step S46. As a result, the counter value becomes 1. Since the value of the counter after decrement is not 0, the register control unit 2152 activates the parameter DMAC2154 again in step S47.

起動されたパラメータ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 main memory 2400 in step S48, reads the parameter P2 of the second page on the main memory 2400 in step S49, and sets the parameter P2 in step S50. Set to a register in the register control unit 2152. When all parameter settings are completed, a transfer end signal is output to the register control unit 2152 in step S51.

レジスタ制御部2152は、パラメータDMA2154Cからの転送終了信号を受け取ったら、ステップS52でデータリードDMAC2153を起動し、ステップS53で第1〜第4のデータライトDMAC2155〜2158を起動する。   Upon receiving the transfer end signal from the parameter DMA 2154C, the register control unit 2152 activates the data read DMAC 2153 in step S52, and activates the first to fourth data write DMACs 2155 to 2158 in step S53.

起動されたデータリード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 DMAC 2153 reads the first-band descriptor DRD2_1 of the second page on the main memory 2400 in step S54. The activated first to fourth data write DMACs 2155 to 2158 read the second band descriptor DWD2_1 of the second page on the main memory 2400 in step S55. In step S56, the data read DMAC 2153 reads the image data DR2_1 for the first band of the second page on the main memory 2400 and outputs it to the image processing module group 2151.

画像処理モジュール群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 DMAC 2153, and outputs the image data to the first to fourth data write DMACs 2155 to 2158. In step S58, the first to fourth data write DMACs 2155 to 2158 output the image data DW2_1 after the image processing for the first band of the second page output from the image processing module group 2151 to the main memory 2400.

次にステップ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 DMAC 2153 reads the second-band descriptor DRD2_2 of the second page on the main memory 2400. In step S60, the first to fourth data write DMACs 2155 to 2158 are read on the main memory 2400. Read out the descriptor DWD2_2 in the second band of the second page. In step S61, the data read DMAC 2153 reads the image data DR2_2 of the second band of the second page on the main memory 2400 and outputs it to the image processing module group 2151. When the reading is completed, a transfer end signal is output to the register control unit 2152 in step S64.

画像処理モジュール群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 DMAC 2153, and outputs the image data to the first to fourth data write DMACs 2155 to 2158. In step S63, the first to fourth data write DMACs 2155 to 2158 output the image data DW2_2 after the image processing of the second band of the second page output from the image processing module group 2151 to the main memory 2400. When the output ends, a transfer end signal is output to the register control unit 2152 in step S65.

レジスタ制御部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 DMACs 2155 to 2158, the register control unit 2152 decrements the activation number counter in step S66, and the counter value becomes zero. The register control unit 2152 outputs a transfer end interrupt signal to the CPU controller 2300 in step S67 because the counter of the number of activations has become 0.

以上詳細に説明したように、本発明の実施形態によれば、下記(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 register control unit 2152 has a plurality of descriptor registers for the data read DMAC 2153 and the first to fourth data write DMACs 2155 to 2158, the image processing controller 2150 has a counter for the number of activations, and the image processing ends. Thereafter, if the activation counter is not 0, the parameter DMAC2154 is activated again, and when the parameter transfer by the parameter DMAC2154 is completed, the activation of the data read DMAC2153 and the first to fourth data write DMAC2155 to 2158 is repeated. As a result, the controller CPU 2300 eliminates the restriction of writing parameters and descriptors to the main memory 2400 after image processing for one page, and can write multiple pages at a time. Can be improved.
(2) Among the descriptors for the data read DMAC 2153 and the first to fourth data write DMACs 2155 to 2158, only the first descriptor of the page has an extension area to be held. The number of page registers can be reduced, and an increase in hardware scale can be suppressed.
(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.

本発明の実施形態の画像処理装置の全体構成を示すブロック図である。1 is a block diagram illustrating an overall configuration of an image processing apparatus according to an embodiment of the present invention. 図1の画像処理コントローラの構成例、及びメインメモリとの間のデータの流れを示す図である。FIG. 2 is a diagram illustrating a configuration example of an image processing controller in FIG. 1 and a data flow to and from a main memory. 図2のデータリードDMAC、データライトDMACのディスクリプタの例を示す図である。FIG. 3 is a diagram illustrating an example of descriptors of the data read DMAC and the data write DMAC in FIG. 2. 図2のパラメータDMACのディスクリプタの例を示す図である。It is a figure which shows the example of the descriptor of the parameter DMAC of FIG. 図2の画像処理コントローラのレジスタ制御部内のレジスタの構成例を示す図である。FIG. 3 is a diagram illustrating a configuration example of a register in a register control unit of the image processing controller in FIG. 2. 図2のコントローラCPUのソフト制御フローを示す図である。It is a figure which shows the software control flow of the controller CPU of FIG. 図2の画像処理コントローラの動作フローを示す図である。It is a figure which shows the operation | movement flow of the image processing controller of FIG. 図2のメインメモリ上のディスクリプタ及びパラメータ並びに画像領域の配置例を示す図である。FIG. 3 is a diagram illustrating an arrangement example of descriptors, parameters, and image areas on the main memory in FIG. 2. 図2のコントローラCPU及び画像処理コントローラの動作シーケンスを示す図の前半部である。FIG. 3 is a first half of a diagram illustrating an operation sequence of the controller CPU and the image processing controller of FIG. 2. 図2のコントローラCPU及び画像処理コントローラの動作シーケンスを示す図の後半部である。FIG. 3 is the latter half of the diagram showing the operation sequence of the controller CPU and image processing controller of FIG. 2. 従来の画像処理装置の機能ブロック図である。It is a functional block diagram of the conventional image processing apparatus.

符号の説明Explanation of symbols

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記載の画像処理装置において、
前記起動信号の入力によりインクリメントし、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.
JP2007298317A 2007-11-16 2007-11-16 Image processing device Expired - Fee Related JP4895394B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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