JP2009265776A - Image processor - Google Patents
Image processor Download PDFInfo
- Publication number
- JP2009265776A JP2009265776A JP2008111873A JP2008111873A JP2009265776A JP 2009265776 A JP2009265776 A JP 2009265776A JP 2008111873 A JP2008111873 A JP 2008111873A JP 2008111873 A JP2008111873 A JP 2008111873A JP 2009265776 A JP2009265776 A JP 2009265776A
- Authority
- JP
- Japan
- Prior art keywords
- image
- band
- memory
- image processing
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012545 processing Methods 0.000 claims abstract description 121
- 238000000034 method Methods 0.000 claims description 28
- 230000008569 process Effects 0.000 claims description 25
- 230000006835 compression Effects 0.000 claims description 14
- 238000007906 compression Methods 0.000 claims description 14
- 238000012805 post-processing Methods 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 13
- 239000000203 mixture Substances 0.000 description 18
- 238000010586 diagram Methods 0.000 description 8
- 230000004913 activation Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 102000006463 Talin Human genes 0.000 description 1
- 108010083809 Talin Proteins 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Images
Landscapes
- Storing Facsimile Image Data (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Input (AREA)
Abstract
Description
本発明は、ダイレクトメモリアクセス(略称DMA)方式によってデータを転送することができる画像処理装置に関する。 The present invention relates to an image processing apparatus capable of transferring data by a direct memory access (abbreviated as DMA) system.
複写装置、スキャナ装置、プリンタ装置およびファクシミリ装置などの機能を1つにまとめた複合装置などに搭載され、画像データを処理する画像処理装置では、近年、カラー化の対応が行われている。カラー化によってデータ容量は増大し、このような画像処理装置では、データ処理の高速化が要求されている。画像処理装置では、ダイレクトメモリアクセス(Direct Memory Access、略称DMA)方式によってデータを転送することによって、データ処理の高速化が図られている。 2. Description of the Related Art In recent years, color processing has been performed in image processing apparatuses that process image data that are mounted on a composite apparatus that combines functions such as a copying apparatus, a scanner apparatus, a printer apparatus, and a facsimile apparatus. Data capacity increases due to colorization, and such image processing apparatuses are required to increase data processing speed. In an image processing apparatus, data processing is speeded up by transferring data by a direct memory access (abbreviated as DMA) system.
特許文献1には、主制御部である中央演算処理装置(Central Processing Unit、略称CPU)と、プログラム可能なDMA制御装置とを含む装置が開示される。CPUは、必要なDMA転送プログラムとパラメータとを、DMA制御装置にダウンロードする。DMA制御装置は、DMA転送プログラムを実行して、データ転送を行う。DMA制御装置は、データ転送を完了すると、割り込みをCPUに送る。 Patent Document 1 discloses an apparatus including a central processing unit (abbreviated as CPU), which is a main control unit, and a programmable DMA control device. The CPU downloads the necessary DMA transfer program and parameters to the DMA controller. The DMA controller executes a DMA transfer program to perform data transfer. When the DMA controller completes the data transfer, it sends an interrupt to the CPU.
特許文献2に開示される技術では、複数のDMA回路と各DMA回路を起動させるセレクタ回路が設けられ、各DMA回路が連携される。各DMA回路を連携するための連携設定は、CPUによる書き込み、読み出し指令の出力により行われる。 In the technique disclosed in Patent Document 2, a plurality of DMA circuits and a selector circuit that activates each DMA circuit are provided, and each DMA circuit is linked. Coordination settings for coordinating the DMA circuits are performed by the CPU writing and reading command output.
画像処理装置では、1ページ分の画像データを、複数のバンドに分割してバンド毎に順次に処理するものがある。 Some image processing apparatuses divide image data for one page into a plurality of bands and sequentially process each band.
前記特許文献1に開示される技術を、このような画像処理装置に用いた場合、分割されたバンドごとの異なるデータ転送を順次に行うにあたって、DMA制御装置は、データ転送が完了する毎に、割込みをCPUに送り、CPUは、割込みを与えられる毎に、必要なDMA転送プログラムとパラメータとをDMA制御装置にダウンロードする必要がある。したがってCPUの処理負荷が発生し、CPUのパフォーマンスが低下してしまうという問題がある。 When the technique disclosed in Patent Document 1 is used in such an image processing device, in order to sequentially perform different data transfer for each divided band, the DMA control device An interrupt is sent to the CPU, and each time the CPU is given an interrupt, the CPU needs to download the necessary DMA transfer program and parameters to the DMA controller. Therefore, there is a problem that the processing load of the CPU is generated and the performance of the CPU is lowered.
前記特許文献2に開示される技術を、このような画像処理装置に用いた場合、処理が不要なときでもDMA回路によってデータが転送されてしまい、バスの帯域を圧迫してしまうという問題がある。1ページ分の画像データには、処理が必要なバンドと、処理が不要なバンドとがある。それにも拘わらず、全てのバンドについて、DMA回路によってデータを転送して処理するので、前述のような問題が生じる。 When the technique disclosed in Patent Document 2 is used in such an image processing apparatus, there is a problem that even when processing is unnecessary, data is transferred by the DMA circuit, and the bandwidth of the bus is compressed. . The image data for one page includes a band that requires processing and a band that does not require processing. Nevertheless, since the data is transferred and processed by the DMA circuit for all the bands, the above-described problem occurs.
本発明の目的は、高速な画像処理を実現することができる画像処理装置を提供することである。 An object of the present invention is to provide an image processing apparatus capable of realizing high-speed image processing.
本発明は、1ページ分の画像データを、複数バンドに分割してバンド毎に順次処理する画像処理装置であって、
画像データの書き込みおよび画像データの読み出しが可能なメモリと、
画像を読み取る画像読取装置からメモリへ、画像データをバンド毎に転送し、1バンド分の画像データを転送するたびに1バンド転送完了通知を出力する画像入力モジュールと、
画像入力モジュールからの1バンド転送完了通知に応答して、画像入力モジュールによって画像読取装置からメモリへ転送された1バンド分の画像データを読み出して画像処理を行い、画像処理後の1バンド分の画像データをメモリへ転送するたびに1バンド転送完了通知を出力する画像処理モジュールと、
画像処理モジュールからの1バンド転送完了通知に応答して、画像処理モジュールからメモリへ転送された画像処理後の1バンド分の画像データを読み出し、後処理を行い、後処理後の1バンド分の画像データをメモリへ転送するたびに1バンド転送完了通知を出力する画像圧縮モジュールと、を含み、
画像処理モジュールは、画像入力モジュールによって画像読取装置からメモリへ転送された1バンド分の画像データが、画像処理を行うべきバンドかそうでないかを判断し、行わないバンドであると判断したときは、メモリアクセスを行うことなく後処理モジュールに対して1バンド転送完了通知を出力することを特徴とする画像処理装置である。
The present invention is an image processing apparatus that divides image data for one page into a plurality of bands and sequentially processes each band,
A memory capable of writing image data and reading image data;
An image input module that transfers image data for each band from an image reading device that reads an image to the memory, and outputs a one-band transfer completion notification each time image data for one band is transferred;
In response to the one-band transfer completion notification from the image input module, the image input module reads out one band of image data transferred from the image reading device to the memory, performs image processing, and performs one band after image processing. An image processing module that outputs a one-band transfer completion notification each time image data is transferred to the memory;
In response to the one-band transfer completion notification from the image processing module, the image data for one band after the image processing transferred from the image processing module to the memory is read, post-processing is performed, and one band for the post-processing is performed. An image compression module that outputs a one-band transfer completion notification each time image data is transferred to the memory,
When the image processing module determines whether the image data for one band transferred from the image reading device to the memory by the image input module is a band to be subjected to image processing or not, and determines that the band is not to be used The image processing apparatus outputs a one-band transfer completion notification to the post-processing module without performing memory access.
また本発明は、前記画像入力モジュールは、後処理モジュールから1バンド転送完了通知が与えられるまで、メモリに対して画像読取装置からの画像データの書き込みを行わないことを特徴とする。 In the invention, it is preferable that the image input module does not write the image data from the image reading device to the memory until the post-processing module receives a one-band transfer completion notification.
また本発明は、メモリ上の画像処理が行われる領域を有効画像エリアと設定し、画像処理が行われない領域を無効画像エリアと設定したとき、
画像処理モジュールは、画像入力モジュールから、設定された有効画像エリアを含むバンドの1バンド転送完了通知を与えられたとき、有効画像エリアのみに画像処理を行い、メモリへのアクセスを発生させ、当該バンドの転送完了時に後処理モジュールに対して、1バンド転送完了を通知することを特徴とする。
In the present invention, when an area where image processing is performed on a memory is set as an effective image area, and an area where image processing is not performed is set as an invalid image area,
When the image input module is notified by the image input module of the completion of 1-band transfer of the band including the set effective image area, the image processing module performs image processing only on the effective image area and generates access to the memory. When the band transfer is completed, the post-processing module is notified of the completion of one band transfer.
また本発明は、画像処理モジュールは、各モジュールの連携における一連の画像処理において、ウォータマークを合成する処理を行うことを特徴とする。 According to the present invention, the image processing module performs processing for combining watermarks in a series of image processing in cooperation between the modules.
また本発明は、ウォータマークを合成する処理を行う際に、メモリ上の2つの領域を使って、交互に3バンド以上の画像を転送することを特徴とする。 Further, the present invention is characterized in that when processing for combining watermarks, images of three bands or more are alternately transferred using two areas on the memory.
本発明によれば、画像処理モジュールが、画像入力モジュールによって画像読取装置からメモリへ転送された1バンド分の画像データに対して、画像処理を行うべきバンドかそうでないかを判断する。画像処理を行わないバンドであると判断したときは、メモリアクセスを行うことなく後処理モジュールに対して1バンド転送完了通知を出力する。 According to the present invention, the image processing module determines whether or not the image data for one band transferred from the image reading apparatus to the memory by the image input module should be subjected to image processing. When it is determined that the band is not subjected to image processing, a one-band transfer completion notification is output to the post-processing module without performing memory access.
これにより、画像処理を行う必要のないバンドについては、メモリアクセスを行うことなく転送完了通知を出力するので、必要以上のデータ転送処理が発生せず、高速な画像処理を実現することができる。 As a result, for a band that does not require image processing, a transfer completion notification is output without performing memory access. Therefore, data transfer processing more than necessary does not occur, and high-speed image processing can be realized.
また本発明によれば、前記画像入力モジュールは、後処理モジュールから1バンド転送完了通知が与えられるまで、メモリに対して画像読取装置からの画像データの書き込みを行わない。
これにより、メモリ上での画像データの上書きを防止することができる。
According to the invention, the image input module does not write the image data from the image reading device to the memory until a one-band transfer completion notification is given from the post-processing module.
Thereby, overwriting of image data on the memory can be prevented.
また本発明によれば、画像処理モジュールは、画像入力モジュールから、設定された有効画像エリアを含むバンドの1バンド転送完了通知を与えられたとき、有効画像エリアのみに画像処理を行い、メモリへのアクセスを発生させ、当該バンドの転送完了時に後処理モジュールに対して、1バンド転送完了を通知する。 According to the invention, the image processing module performs image processing only on the effective image area when the image input module is notified of the completion of the one-band transfer of the band including the set effective image area, and stores it in the memory. When the transfer of the relevant band is completed, the post-processing module is notified of the completion of one-band transfer.
これにより、1つのバンドの途中ラインにおいて有効画像エリアから無効画像エリアへ切り替わる、または無効画像エリアから有効画像エリアへ切り替わる場合であっても有効画像エリアのみに処理施すことができるので、より高速な画像処理を実現することができる。 As a result, even if the effective image area is switched from the invalid image area to the invalid image area in the middle line of one band, or the invalid image area is switched to the valid image area, only the valid image area can be processed. Image processing can be realized.
また本発明によれば、画像処理モジュールは、各モジュールの連携における一連の画像処理において、ウォータマークを合成する処理を行う。 Further, according to the present invention, the image processing module performs processing for combining watermarks in a series of image processing in cooperation of the modules.
ウォータマークの合成は、一部のエリアにのみ施す画像処理であるので、このような合成処理を行う際により高速な画像処理を実現することができる。 Since the watermark synthesis is an image process performed only on a part of the area, a higher-speed image process can be realized when performing such a synthesis process.
また本発明によれば、ウォータマークを合成する処理を行う際に、メモリ上の2つの領域を使って、交互に3バンド以上の画像を転送する。 Further, according to the present invention, when processing for combining watermarks, images of three or more bands are transferred alternately using two areas on the memory.
いわゆる、リングバッファ動作を利用することで、メモリに必要な記憶容量を小さくすることができる。 By using the so-called ring buffer operation, the storage capacity required for the memory can be reduced.
図1は、本発明の実施の一形態である画像処理装置1の構成示す概略図である。
画像処理装置1は、画像入力モジュール101、画像合成モジュール102、画像圧縮モジュール103、メモリコントローラ104およびメモリ105を含んで構成される。
FIG. 1 is a schematic diagram showing a configuration of an image processing apparatus 1 according to an embodiment of the present invention.
The image processing apparatus 1 includes an
画像入力モジュール101は、画像処理装置1に外部接続される画像読取装置からの画像データを、メモリコントローラ104を介してメモリ105へバンド毎に転送する。データをメモリ105へ転送する際は、1バンド分の画像データを転送するたびに1バンド転送完了通知を画像合成モジュール102へと出力する。
The
画像合成モジュール102は、1ページの画像データのうち、1部分、たとえば1バンド分の画像合成処理を行い、画像入力モジュール101からメモリ105へ転送された1バンド分の画像データを、画像入力モジュール101から出力される転送完了通知に応答して合成処理を行う。
The
処理済みのデータをメモリ105へ転送する際は、1バンド分の画像データを転送するたびに1バンド転送完了通知を画像圧縮モジュール103へと出力する。
When the processed data is transferred to the
画像圧縮モジュール103は、画像合成モジュール102からメモリ105へ転送された画像データを1バンド毎に読み出し、画像圧縮処理等の後処理を行った後、メモリ105へデータを転送する。
The
メモリコントローラ104は、各モジュールからの画像データをメモリ105へ書き込むとき、および各モジュールがメモリ105から画像データを読み出すときのインターフェースである。
The
メモリ105は、各モジュールから書き込まれる画像データを記憶する。
画像入力モジュール101と画像合成モジュール102、画像合成モジュール102と画像圧縮モジュール103は、DMA連携可能に構成されている。
The
The
図2は、画像合成モジュール102の構成を示すブロック図である。
画像合成モジュール102は、読み出しDMAコントローラ201、画像演算部202、書き込みDMAコントローラ203、読み出しアクセスコントローラ204、制御レジスタ205、書き込みアクセスコントローラ206を含んで構成される。
FIG. 2 is a block diagram illustrating a configuration of the
The
画像処理が必要なデータに対しては、読み出しDMAコントローラ201がメモリ105にアクセスして画像データを読み出し、画像演算部202が画像処理を施し、書き込みDMAコントローラ203が、メモリ105にアクセスして画像処理済み画像データを書き込む。
For data that requires image processing, the read
読み出しDMAコントローラ201は、読み出しアクセスコントローラ204からの起動信号が有効である場合にメモリコントローラ104に対して、画像データの読み出しを行う。
The read
画像演算部202は、読み出しDMAコントローラ201によってメモリ105から読み出された画像データに対して予め定める画像処理を行うモジュールである。
The
書き込みDMAコントローラ203は、書き込みアクセスコントローラ206からの起動信号が有効である場合にメモリコントローラ104に対して、画像処理済みのデータの書き込みを行う。
The write
読み出しアクセスコントローラ204は、制御レジスタ205に設定されるオフセット連携設定および、有効エリア開始ライン、有効エリア終了ライン設定情報から1ページの画像データに含まれる有効エリア、無効エリアを認識する。
The
画像入力モジュール101からのバンド転送完了通知信号を与えられたとき、無効エリアであった場合は、画像演算部202による画像処理を行う必要がないので、読み出しDMAコントローラ201を起動させずに、バンド転送完了応答のみ発行する。有効エリアであった場合は、読み出しDMAコントローラ201を起動させて、メモリアクセスを発生させる制御回路である。
When the band transfer completion notification signal is given from the
書き込みアクセスコントローラ206は、制御レジスタ205に設定されるオフセット連携設定および、有効エリア開始ライン、有効エリア終了ライン設定情報から1ページの画像データに含まれる有効エリア、無効エリアを認識する。
The
無効エリアであった場合は、画像演算部202による画像処理を行う必要がないので、書き込みDMAコントローラ203を起動させずに、バンド転送完了応答のみ発行する。有効エリアであった場合は、書き込みDMAコントローラ203を起動させて、メモリアクセスを発生させる。
If it is an invalid area, there is no need to perform image processing by the
制御レジスタ205は、オフセット連携の有効無効設定レジスタ、有効エリア開始ライン、有効エリア終了ライン設定レジスタを含む各種設定用レジスタを備える。
The
ここで、画像合成モジュール102が行う画像処理としては、ウォータマークの合成処理がある。ウォータマークの合成は、1ページの画像データ全体ではなく一部、たとえば1ページの上下方向の中央部に配置されるように合成される。したがって1ページ分の画像データには、ウォータマークのデータが合成されるバンドと、ウォータマークのデータが合成されないバンドとがある。
Here, image processing performed by the
有効エリアとしては、ウォータマークのデータが合成されるバンドを含むエリアであり、無効エリアとしては、ウォータマークのデータが合成されないバンドを含むエリアである。 The valid area is an area including a band where the watermark data is combined, and the invalid area is an area including a band where the watermark data is not combined.
図3は、オフセット連携時の画像データ読み出しDMA制御フローである。
1ページ分の画像データの転送を開始すると、ステップS1で、画像入力モジュール101からのバンド転送完了通知待ち状態となる。
FIG. 3 is an image data read DMA control flow at the time of offset cooperation.
When the transfer of image data for one page is started, the process waits for a band transfer completion notification from the
画像入力モジュール101からのバンド転送完了通知を検知すると、ステップS2で読み出しアクセスコントローラ204は、現在処理ラインと有効エリア開始ラインとの比較を行う。
When the band transfer completion notification is detected from the
続いてステップS3で、読み出しアクセスコントローラ204は、現在処理ラインと有効エリア終了ラインとの比較を行う。
Subsequently, in step S3, the
図4は、メモリ105上の画像データの有効、無効エリアを説明するための概念図である。
FIG. 4 is a conceptual diagram for explaining valid / invalid areas of image data on the
1ページ分の画像データ10は、複数のバンド(Band1、Band2、…)に分割される。有効エリア11、すなわち画像処理を施す必要があるエリアと無効エリア12、すなわち画像処理を施す必要がないエリアとは、分割されたバンドの境界とは無関係に設定される。したがって、1つの有効エリア11、無効エリア12が、複数のバンドにまたがって設定されることもある。図4に示した例では、たとえば無効エリア12がBand1からBand3の途中ラインまで設定され、Band3のその次のライン(有効エリア開始ラインL1)からBand5の途中ライン(有効エリア終了ラインL2)まで有効エリア11が設定される。
The
有効エリア開始ラインL1から有効エリア終了ラインL2までが有効エリア11であり、その他は無効エリア12と認識される。
The
バンドは、画像データの主走査方向の複数のラインから構成されており、有効エリア開始ラインL1、有効エリア終了ラインL2も主走査方向のラインである。したがって、有効エリア開始ラインL1、有効エリア終了ラインL2によって、副走査方向のエリア幅が決定される。 The band is composed of a plurality of lines in the main scanning direction of image data, and the effective area start line L1 and the effective area end line L2 are also lines in the main scanning direction. Therefore, the area width in the sub-scanning direction is determined by the effective area start line L1 and the effective area end line L2.
主走査方向の有効エリア幅については、たとえば、画像の主走査方向両端部分は、一定の幅をもって無効エリアとなり無効エリア以外の中央部分はすべて有効エリアとなる。 With respect to the effective area width in the main scanning direction, for example, both end portions of the image in the main scanning direction become invalid areas with a certain width, and all central portions other than the invalid areas become effective areas.
このように有効エリア、無効エリアは、主走査方向幅と副走査方向幅とによって決定されるが、主走査方向有効エリアは、予め定められており、バンドごとに変化することはないので、有効エリア、無効エリアを決定するには、副走査方向のエリア幅に依存する。 Thus, the effective area and the invalid area are determined by the width in the main scanning direction and the width in the sub-scanning direction, but the effective area in the main scanning direction is determined in advance and does not change for each band. The determination of the area and the invalid area depends on the area width in the sub-scanning direction.
ステップS4では、読み出しアクセスコントローラ204が、現在処理ラインが有効エリア内かどうかを判断する。具体的には、現在処理ラインが、有効エリア開始ライン以上、かつ有効エリア終了ライン以下であれば有効エリア内と判断し、これ以外の場合は、無効エリア内と判断する。
In step S4, the
有効エリアが1ページ内に複数設定される場合は、開始ライン、終了ラインが複数あることになるので、現在処理ラインは、1つの有効エリアに対応する開始ラインと終了ラインのペアごとにエリア内にあるかどうかを判断する。 When multiple effective areas are set in one page, there are multiple start lines and end lines, so the current processing line is within the area for each pair of start line and end line corresponding to one effective area. To determine whether or not
現在処理ラインが有効エリア内であれば、ステップS5に進み、読み出しアクセスコントローラ204が、読み出しDMAコントローラ201を起動させて、メモリアクセスを発生させる。有効エリア外と判断されると、メモリアクセスを発生しない。
If the current processing line is within the valid area, the process proceeds to step S5, where the read
ステップS6では、現在処理ラインをカウントアップする。ステップS7では、現在処理ラインがバンドの最終ラインであるかどうかを判断する。現在処理ラインがバンドの最終ラインでなければ、ステップS2に戻り、次の現在処理ラインについて上記の処理を繰り返す。現在処理ラインがバンドの最終ラインであれば、ステップS8でバンド転送完了応答発生処理に移行し、画像入力モジュール101へバンド転送完了応答を行う。
In step S6, the current processing line is counted up. In step S7, it is determined whether or not the current processing line is the last line of the band. If the current processing line is not the last line of the band, the process returns to step S2, and the above processing is repeated for the next current processing line. If the current processing line is the last line of the band, the process proceeds to a band transfer completion response generation process in step S8, and a band transfer completion response is sent to the
ステップS9では、1ページ分の転送が完了したかどうか判断する。1ページ分の転送が完了していなければ、ステップS1に戻り、次のバンドの転送完了通知を待つ状態となる。1ページ分の転送が完了していれば、画像読み出しDMA処理を終了する。 In step S9, it is determined whether or not the transfer for one page has been completed. If the transfer for one page is not completed, the process returns to step S1 to wait for a transfer completion notification for the next band. If the transfer for one page is completed, the image read DMA process is terminated.
図5は、オフセット連携時における画像データ書き込みDMA制御フローである。
書き込みアクセスコントローラ206は、読み出しアクセスコントローラ204からのライン管理信号により、現在処理ラインをカウントする。このライン管理信号は、有効エリア、無効エリアにかかわらず書き込みアクセスコントローラ206へと供給される。このライン管理信号をカウントするカウンタが、有効エリアに到達することで書き込み制御が開始される。
FIG. 5 is an image data writing DMA control flow at the time of offset cooperation.
The
1ページ分の画像データの転送を開始すると、ステップS11で書き込みアクセスコントローラ206は、現在処理ラインと有効エリア開始ラインとの比較を行う。続いてステップS12で、書き込みアクセスコントローラ206は、現在処理ラインと有効エリア終了ラインとの比較を行う。
When transfer of image data for one page is started, the
ステップS13では、書き込みアクセスコントローラ206が、現在処理ラインが有効エリア内かどうかを判断する。具体的には、現在処理ラインが、有効エリア開始ライン以上、かつ有効エリア終了ライン以下であれば有効エリア内と判断し、これ以外の場合は、無効エリア内と判断する。
In step S13, the
現在処理ラインが有効エリア内であれば、ステップS14に進み、書き込みアクセスコントローラ206が、書き込みDMAコントローラ203を起動させて、メモリアクセスを発生させる。有効エリア外と判断されると、メモリアクセスを発生しない。
If the current processing line is within the valid area, the process proceeds to step S14, where the
ステップS15では、現在処理ラインをカウントアップする。ステップS16では、現在処理ラインがバンドの最終ラインであるかどうかを判断する。現在処理ラインがバンドの最終ラインでなければ、ステップS11戻り、次の現在処理ラインについて上記の処理を繰り返す。現在処理ラインがバンドの最終ラインであれば、ステップS17でバンド転送完了通知発生処理に移行し、画像圧縮モジュール103へバンド転送完了通知を行う。
In step S15, the current processing line is counted up. In step S16, it is determined whether or not the current processing line is the last line of the band. If the current processing line is not the last line of the band, the process returns to step S11 and the above processing is repeated for the next current processing line. If the current processing line is the last line of the band, the process proceeds to a band transfer completion notification generation process in step S17, and a band transfer completion notification is sent to the
ステップS18では、画像圧縮モジュール103からのバンド転送完了応答待ち状態となる。画像圧縮モジュール103からのバンド転送完了応答を検出すると、ステップS19に進み、1ページ分の転送が完了したかどうか判断する。1ページ分の転送が完了していなければ、ステップS11に戻り、1ページ分の転送が完了していれば、画像書き込みDMA処理を終了する。
In step S18, a state of waiting for a band transfer completion response from the
本発明では、メモリ105画像の転送については特に制限されないが、メモリ上の2つの領域を使って、交互に3バンド以上の画像を転送する、いわゆる、リングバッファ動作を利用することが可能で、これによりメモリに必要な記憶容量を小さくすることができる。
In the present invention, the transfer of the image of the
リングバッファ動作を利用した場合は、データの上書きが発生するおそれがある。従来のバンドバッファ転送では、2つの回路でバンドバッファを介してデータ転送を行うが、本発明では画像入力モジュール101と画像合成モジュール102と画像圧縮モジュール103がそれぞれ同じバンド領域を共有する。
When ring buffer operation is used, there is a risk of data overwriting. In the conventional band buffer transfer, two circuits transfer data via a band buffer. In the present invention, the
画像データが、画像合成モジュール102から画像圧縮モジュール103へ転送される前に画像入力モジュール101から次のバンドの画像データの転送を開始すると画像データが上書きされてしまうので、画像合成モジュール102は、画像圧縮モジュール103からのバント転送完了応答を待ってから、画像入力モジュール101へバンド転送完了応答を通知する。
Since the image data is overwritten when the transfer of the image data of the next band from the
図6は、画像入力モジュール101の転送を強制終了させる場合について説明するための図である。
FIG. 6 is a diagram for explaining a case where the transfer of the
画像合成モジュール102が、画像入力モジュール101よりも前に1ページ分の画像処理を完了した場合、強制終了信号を画像入力モジュール101に対して発行し、画像入力モジュール101からのDMA転送を強制終了させる。
When the
このような場合に、画像入力モジュール101からの転送処理が発生すると、メモリ105上の画像データが上書きされるおそれがあるので、画像入力モジュール101からの転送処理を強制終了させることでデータの上書きを防止することができる。
In such a case, if the transfer process from the
1 画像処理装置
101 画像入力モジュール
102 画像合成モジュール
103 画像圧縮モジュール
104 メモリコントローラ
105 メモリ
201 読み出しDMAコントローラ
202 画像演算部
203 書き込みDMAコントローラ
204 読み出しアクセスコントローラ
205 制御レジスタ
206 書き込みアクセスコントローラ
DESCRIPTION OF SYMBOLS 1
Claims (5)
画像データの書き込みおよび画像データの読み出しが可能なメモリと、
画像を読み取る画像読取装置からメモリへ、画像データをバンド毎に転送し、1バンド分の画像データを転送するたびに1バンド転送完了通知を出力する画像入力モジュールと、
画像入力モジュールからの1バンド転送完了通知に応答して、画像入力モジュールによって画像読取装置からメモリへ転送された1バンド分の画像データを読み出して画像処理を行い、画像処理後の1バンド分の画像データをメモリへ転送するたびに1バンド転送完了通知を出力する画像処理モジュールと、
画像処理モジュールからの1バンド転送完了通知に応答して、画像処理モジュールからメモリへ転送された画像処理後の1バンド分の画像データを読み出し、後処理を行い、後処理後の1バンド分の画像データをメモリへ転送するたびに1バンド転送完了通知を出力する画像圧縮モジュールと、を含み、
画像処理モジュールは、画像入力モジュールによって画像読取装置からメモリへ転送された1バンド分の画像データが、画像処理を行うべきバンドかそうでないかを判断し、行わないバンドであると判断したときは、メモリアクセスを行うことなく後処理モジュールに対して1バンド転送完了通知を出力することを特徴とする画像処理装置。 An image processing apparatus that divides image data for one page into a plurality of bands and sequentially processes each band,
A memory capable of writing image data and reading image data;
An image input module that transfers image data for each band from an image reading device that reads an image to the memory, and outputs a one-band transfer completion notification each time image data for one band is transferred;
In response to the one-band transfer completion notification from the image input module, the image input module reads out one band of image data transferred from the image reading device to the memory, performs image processing, and performs one band after image processing. An image processing module that outputs a one-band transfer completion notification each time image data is transferred to the memory;
In response to the one-band transfer completion notification from the image processing module, the image data for one band after the image processing transferred from the image processing module to the memory is read, post-processing is performed, and one band for the post-processing is performed. An image compression module that outputs a one-band transfer completion notification each time image data is transferred to the memory,
When the image processing module determines whether the image data for one band transferred from the image reading device to the memory by the image input module is a band to be subjected to image processing or not, and determines that the band is not to be used An image processing apparatus that outputs a one-band transfer completion notification to a post-processing module without performing memory access.
画像処理モジュールは、画像入力モジュールから、設定された有効画像エリアを含むバンドの1バンド転送完了通知を与えられたとき、有効画像エリアのみに画像処理を行い、メモリへのアクセスを発生させ、当該バンドの転送完了時に後処理モジュールに対して、1バンド転送完了を通知することを特徴とする請求項1記載の画像処理装置。 When an area where image processing is performed in memory is set as an effective image area, and an area where image processing is not performed is set as an invalid image area,
When the image input module is notified by the image input module of the completion of 1-band transfer of the band including the set effective image area, the image processing module performs image processing only on the effective image area and generates access to the memory. 2. The image processing apparatus according to claim 1, wherein when the band transfer is completed, the post-processing module is notified of the completion of one band transfer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008111873A JP2009265776A (en) | 2008-04-22 | 2008-04-22 | Image processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008111873A JP2009265776A (en) | 2008-04-22 | 2008-04-22 | Image processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009265776A true JP2009265776A (en) | 2009-11-12 |
Family
ID=41391585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008111873A Pending JP2009265776A (en) | 2008-04-22 | 2008-04-22 | Image processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009265776A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012164186A (en) * | 2011-02-08 | 2012-08-30 | Olympus Corp | Data processing device |
-
2008
- 2008-04-22 JP JP2008111873A patent/JP2009265776A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012164186A (en) * | 2011-02-08 | 2012-08-30 | Olympus Corp | Data processing device |
US9026697B2 (en) | 2011-02-08 | 2015-05-05 | Olympus Corporation | Data processing apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6886301B2 (en) | Memory access system, its control method, program, and image forming device | |
US7321438B2 (en) | Parallel processing for a first and second image data from one input image | |
JP2009265776A (en) | Image processor | |
US20070208886A1 (en) | Data processing apparatus | |
JP2007188434A (en) | Image processor | |
US20180267923A1 (en) | Transfer control device, processing system, and processing device | |
JP2009025896A (en) | Data processing unit and data processing method | |
JP3714840B2 (en) | Data transfer method and data transfer control device | |
JP5930834B2 (en) | Image processing apparatus, image processing method, and control method for image processing apparatus | |
JP4855351B2 (en) | Image processing device | |
JP6833491B2 (en) | Information processing device | |
JP2001126057A (en) | Picture processor | |
JP5245803B2 (en) | Image processing apparatus and image processing module | |
JP2007280373A (en) | Data processing device, image processing device, image forming apparatus, and computer program | |
JP2003241983A (en) | Information processor and information processing method | |
JP4034323B2 (en) | Image data processing method, image data processing apparatus, and image forming apparatus | |
JP5205317B2 (en) | Image processing device | |
JP7447519B2 (en) | Image processing device, program, and image processing method | |
JP4468754B2 (en) | Image forming apparatus and memory control method | |
JP4158575B2 (en) | Data processing system | |
JP4316476B2 (en) | Image processing apparatus and image forming apparatus | |
JP4413041B2 (en) | Data transfer system and image forming apparatus | |
JP2004246828A (en) | Dma controller and image forming device | |
JP2008054005A (en) | Image processing apparatus | |
JP2001167046A (en) | Image processor |