[go: up one dir, main page]

JP2005124071A - Image processing apparatus, image processing method, computer-readable storage medium storing program, and program - Google Patents

Image processing apparatus, image processing method, computer-readable storage medium storing program, and program Download PDF

Info

Publication number
JP2005124071A
JP2005124071A JP2003359581A JP2003359581A JP2005124071A JP 2005124071 A JP2005124071 A JP 2005124071A JP 2003359581 A JP2003359581 A JP 2003359581A JP 2003359581 A JP2003359581 A JP 2003359581A JP 2005124071 A JP2005124071 A JP 2005124071A
Authority
JP
Japan
Prior art keywords
data
image processing
image
unit
memory
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
Application number
JP2003359581A
Other languages
Japanese (ja)
Inventor
Atsushi Otani
節志 倧谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2003359581A priority Critical patent/JP2005124071A/en
Publication of JP2005124071A publication Critical patent/JP2005124071A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Input (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

【課題】 蚭定される画像凊理モヌド等の条件に適応しお確保される矩圢圢状単䜍の䞭間バッファを確保しお、各ブロック間の䞭間バッファのサむズを凊理内容ず胜力に応じお最適化しお、所定の矩圢圢状単䜍の画像デヌタ凊理時におけるバッファ管理凊理負担を軜枛するこずである。
【解決手段】 所定の矩圢圢状単䜍毎のデヌタ曞き蟌み凊理たたはデヌタ読み出し凊理のための凊理デヌタを䞀時滞留させる䞭間バッファをメむンメモリに確保しお、該䞭間バッファ䞊の滞留デヌタ量をモニタし、該滞留デヌタ量に基づいおによる䞭間バッファ䞊ぞの所定の矩圢圢状単䜍毎のデヌタ曞き蟌み凊理たたはデヌタ読み出し凊理をバッファ調停郚が調停する構成を特城ずする。
【遞択図】 図
PROBLEM TO BE SOLVED: To secure an intermediate buffer in a rectangular shape unit that is secured in accordance with conditions such as a set image processing mode, and optimize the size of the intermediate buffer between blocks according to processing contents and capability, This is to reduce the burden of buffer management processing when processing image data of a predetermined rectangular unit.
An intermediate buffer for temporarily retaining processing data for data writing processing or data reading processing for each predetermined rectangular shape unit is secured in a main memory 100, and the amount of retained data on the intermediate buffer is monitored, The buffer arbitration units 77 and 78 arbitrate data write processing or data read processing for each predetermined rectangular unit on the intermediate buffer by the DMAC 91 based on the amount of staying data.
[Selection] Figure 1

Description

本発明は、メむンメモリに確保され、凊理デヌタを䞀時滞留させる䞭間バッファず、前蚘䞭間バッファの前段に配眮され、入力される画像デヌタを所定の矩圢圢状単䜍で加工しお前蚘䞭間バッファぞの入力デヌタを生成する第の画像凊理ブロックず、前蚘䞭間バッファの埌段に配眮され、前蚘䞭間バッファから読み出したデヌタを加工する第の画像凊理ブロックずを備える画像凊理装眮および画像凊理方法およびコンピュヌタが読み取り可胜なプログラムを栌玍した蚘憶媒䜓およびプログラムに関するものである。   The present invention provides an intermediate buffer that is secured in a main memory and temporarily stores processing data, and is arranged in a preceding stage of the intermediate buffer. The input image data is processed in a predetermined rectangular unit and input to the intermediate buffer. An image processing apparatus, an image processing method, and a computer comprising: a first image processing block that generates data; and a second image processing block that is arranged after the intermediate buffer and that processes data read from the intermediate buffer. The present invention relates to a storage medium storing a readable program and a program.

図は、埓来の画像凊理装眮におけるスキャナ画像凊理回路・蚘録画像凊理回路の構成を瀺すブロック図である。   FIG. 35 is a block diagram showing a configuration of a scanner image processing circuit / recorded image processing circuit in a conventional image processing apparatus.

図に瀺すように、画像読み取りデバむスずしおは、Charged Coupled DeviceたたはContact Image Sensorずいった光孊玠子が甚いられ、䞻走査方向のラむン単䜍に所定の出力圢匏に埓ったデヌタが、それぞれむンタフェヌス回路、むンタフェヌス回路により倉換され、メむンメモリに栌玍される。   As shown in FIG. 35, an optical element such as a CCD (Charged Coupled Device) 2010 or a CIS (Contact Image Sensor) 2110 is used as an image reading device, and data in accordance with a predetermined output format for each line in the main scanning direction. Are A / D converted by the CCD interface (CCDi / f) circuit 2000 and the CIS interface (CISi / f) circuit 2100, respectively, and stored in the main memory 2200.

この堎合、は、、に察応したデヌタがそれぞれパラレルに出力されるの察し、から出力される信号はの点灯順䜍に埓い、、、のデヌタがシリアルに出力されるずいう、出力デヌタの特性の盞違により、それぞれ専甚のむンタフェヌス回路が蚭けられ、所定の倉換凊理を経お、読み取られた画像デヌタがメむンメモリ内の䞭間バッファ−に栌玍される構成ずなっおいた。   In this case, the CCD 2010 outputs data corresponding to R, G, B in parallel, whereas the signal output from the CIS 2110 outputs R, G, B data serially according to the lighting order of the LEDs. Due to the difference in the characteristics of the output data, a dedicated interface circuit is provided, and the read image data is stored in the intermediate buffer 2200-1 in the main memory (SDRAM) 2200 through a predetermined A / D conversion process. It became the composition to be.

蚘録系では圧瞮デヌタをメモリより読み出し、䌞長埌メむンメモリ内の䞭間バッファ−に栌玍され、䞭間バッファ−を介しお蚘録画像凊理を斜し、に出力する構成になっおいた。   The LBP recording system reads compressed data from the memory, stores the compressed data in the intermediate buffer 2200-2 in the main memory (SDRAM) 2200, performs recording image processing via the intermediate buffer 2200-2, and outputs the processed data to the LBP 2530. It was.

図においお、読み取り系の各画像凊理ブロックシェヌディング補正、文字刀定凊理、フィルタ凊理等には、専甚のラむンバッファ〜が蚭けられおいる。このような回路構成においお、メむンメモリ内の䞭間バッファ−に栌玍されたデヌタを、䞻走査方向にラむン単䜍で読み出し、専甚のラむンバッファ〜に栌玍しお、個別の画像凊理を斜すずいう構成が採られおいた。   In FIG. 35, dedicated line buffers 2400a to 2400d are used for image processing blocks of the reading system (shading correction (SHD) 2300, character determination processing (ZSG) 2320, filter processing (NSF) 2340 (NSF), LIP 2350, etc.)). Is provided. In such a circuit configuration, data stored in the intermediate buffer 2200-1 in the main memory (SDRAM) 2200 is read in line units in the main scanning direction and stored in dedicated line buffers (2400a to 2400d). A configuration in which individual image processing is performed has been adopted.

蚘録系の各画像凊理ブロック解像床倉換には、専甚のラむンバッファが蚭けられおいる。このような回路構成においお、メむンメモリ内の䞭間バッファ−に栌玍されたデヌタを、䞻走査方向にラむン単䜍で読み出し、専甚のラむンバッファに栌玍しお解像床倉換郚で解像床倉換を行った埌、に出力印字するずいう構成が採られおいた。   Each image processing block (resolution conversion) of the recording system is provided with a dedicated line buffer 2510. In such a circuit configuration, the data 2520 stored in the intermediate buffer 2200-2 in the main memory (SDRAM) 2200 is read line by line in the main scanning direction, stored in the dedicated line buffer 2510, and stored in the resolution converter 2500. Then, after the resolution conversion is performed, the output printing is performed on the LBP 2530.

たた、䞭間バッファ−−に察する曞き蟌み読み出しの制埡は゜フトり゚ア䞊で管理しおいた。   Control of writing / reading on the intermediate buffers 2200-1 and 2200-2 is managed by software.

埓来の方法ではメむンメモリ内の䞭間バッファ−−を䞻走査ラむン単䜍で制埡するため、䞭間バッファ−−のラむン数は゜フトり゚アで管理する堎合でも、ハヌドりェアの凊理胜力に応じお゜フトり゚アが制埡可胜なバッファ単䜍を面備える凊理系を取るこずでバッファ容量が極端に増倧するこずはなかった。   In the conventional method, since the intermediate buffers 2200-1 and 2200-2 in the main memory (SDRAM) 2200 are controlled in units of main scanning lines, the number of lines in the intermediate buffers 2200-1 and 2200-2 is managed by software. However, the buffer capacity does not increase extremely by adopting a processing system having two buffer units that can be controlled by software according to the processing capability of the hardware.

䞊蚘の埓来䟋の構成を開瀺する先行技術ずしおは、䟋えば、特蚱文献〜により開瀺されるものがある。   As prior art which discloses the configuration of the above-described conventional example, for example, there are those disclosed in Patent Documents 1 to 3.

特に、特蚱文献には、専甚のラむンバッファに察しお、ラむン単䜍で曞き蟌みを制埡する調停回路に぀いおの蚘茉がある。   In particular, Patent Document 2 describes an arbitration circuit that controls writing in line units for a dedicated line buffer.

たた、特蚱文献には、リング圢状で䜿甚するラむンバッファの、残量怜出手段に぀いおの蚘茉がある。
特開平−号公報 特開平−号公報 特開平−号公報
Further, Patent Document 3 describes a remaining amount detecting means for a line buffer used in a ring shape.
JP-A-5-327989 JP-A-5-284364 Japanese Patent Laid-Open No. 7-319799

しかしながら、各凊理郚ごずに専甚のラむンバッファ〜を持たず各画像読み取りデバむスにより読み取った画像デヌタの䞭間バッファ−−ぞの栌玍ず、画像凊理郚における凊理を、個別のラむンバッファ−−の介圚無しに、メむンメモリのデヌタを画像凊理モヌドに適応した所定の単䜍䟋えば矩圢圢状に切出しお、デヌタ凊理を制埡する画像凊理装眮では、䞭間バッファ−−からの読み出し単䜍が耇数ラむン単䜍ずなるため、゜フトりェア䞊でのバッファ管理を行うず、バッファメモリの増倧もしくは゜フトりェア凊理の負荷増を招いおしたう他にハヌドりェア性胜を掻かせないず蚀った問題があった。   However, each processing unit does not have a dedicated line buffer 2400a to 2400d, and the image data read by each image reading device is stored in the intermediate buffers 2200-1 and 2200-2 and the processing in the image processing unit is individually performed. In an image processing apparatus that controls data processing by cutting out data in the main memory 2200 into a predetermined unit (for example, a rectangular shape) adapted to the image processing mode without the intervention of the line buffers 2200-1 and 2200-2, an intermediate buffer Since the unit of reading from 2200-1 and 2200-2 is a unit of multiple lines, performing buffer management on software may cause an increase in buffer memory or an increase in software processing load as well as use hardware performance. There was a problem that said no.

たた、ハヌドりェアの凊理胜力によっお䞭間バッファを増加させる必芁があるずいう問題点があった。䞭間バッファの容量の増加はコスト負担を倧きくし、画像凊理装眮党䜓の䜎コスト化を阻む芁因ずなっおいた。   In addition, there is a problem that it is necessary to increase the number of intermediate buffers depending on the processing capability of hardware. An increase in the capacity of the intermediate buffer increases the cost burden and hinders cost reduction of the entire image processing apparatus.

たた、゜フトり゚アの負荷䜎枛のためにラむン単䜍で䞭間バッファの監芖を行う調停回路を構成する堎合に斌いおも、入出力のデヌタ単䜍が矩圢圢状の堎合には察応できない。   Further, even in the case of configuring an arbitration circuit that monitors the intermediate buffer in units of lines in order to reduce the software load, it cannot cope with the case where the input / output data units are rectangular.

本発明は、䞊蚘の問題点を解決するためになされたもので、本発明の目的は、メむンメモリに確保され、凊理デヌタを䞀時滞留させる䞭間バッファず、前蚘䞭間バッファの前段に配眮され、入力される画像デヌタを所定の矩圢圢状単䜍で加工しお前蚘䞭間バッファぞの入力デヌタを生成する第の画像凊理ブロックず、前蚘䞭間バッファの埌段に配眮され、前蚘䞭間バッファから読み出したデヌタを加工する第の画像凊理ブロックずを備える画像凊理装眮においお、䞭間バッファ䞊の滞留デヌタ量をモニタし、該滞留デヌタ量に基づいおによる䞭間バッファ䞊ぞの所定の矩圢圢状単䜍毎のデヌタ曞き蟌み凊理たたはデヌタ読み出し凊理を調停するこずにより、蚭定される画像凊理モヌド等の条件に適応しお確保される矩圢圢状単䜍の䞭間バッファを確保しお、各ブロック間の䞭間バッファのサむズを凊理内容ず胜力に応じお最適化しお、所定の矩圢圢状単䜍の画像デヌタ凊理時におけるバッファ管理凊理負担を軜枛しお効率よく画像凊理を行える安䟡な画像凊理装眮および画像凊理方法およびコンピュヌタが読み取り可胜なプログラムを栌玍した蚘憶媒䜓およびプログラムを提䟛するこずである。   The present invention has been made in order to solve the above-described problems. The object of the present invention is to secure an intermediate buffer that is secured in a main memory and temporarily stores processing data, and is arranged in the preceding stage of the intermediate buffer. A first image processing block for processing input image data in a unit of a predetermined rectangular shape to generate input data to the intermediate buffer, and processing the data read from the intermediate buffer, which is arranged after the intermediate buffer In the image processing apparatus including the second image processing block, the amount of staying data on the intermediate buffer is monitored, and data writing processing for each predetermined rectangular shape unit on the intermediate buffer by the DMAC based on the amount of staying data Or a rectangular unit that can be secured by adapting the conditions such as the set image processing mode by arbitrating the data reading process By securing an intermediate buffer and optimizing the size of the intermediate buffer between each block according to the processing content and capability, it reduces the burden of buffer management processing when processing image data in units of a predetermined rectangular shape and efficiently performs image processing. An inexpensive image processing apparatus, image processing method, and storage medium storing a computer-readable program and a program are provided.

本発明に係る第の発明は、画像入力手段によっお入力された前蚘画像デヌタを䞻走査方向にそっお、順次メモリに曞き蟌む曞蟌手段図に瀺す画像凊理ず、前蚘曞き蟌み手段によっお前蚘メモリに曞き蟌たれた前蚘画像デヌタが所定の副走査幅分蓄積されたかどうか刀断する刀断手段ず、メモリに曞き蟌たれた前蚘画像デヌタを䞻走査方向に所定の䞻走査幅で分割し、前蚘所定の䞻走査幅ず前蚘所定の副走査幅からなる矩圢圢状単䜍で前蚘画像デヌタを前蚘メモリから画像凊理手段に出力するために画像を読み出す読出手段図に瀺す画像凊理ず、前蚘メモリに蓄積された前蚘画像デヌタ量が前蚘矩圢圢状で読出し可胜であるかどうかに基づいお、前蚘読出手段により前蚘矩圢圢状での読出しを行うよう調停する調停手段図に瀺すバッファ調停郚を有するこずを特城ずする。   According to a first aspect of the present invention, a writing unit (image processing DMAC 91 shown in FIG. 1) that sequentially writes the image data input by the image input unit in a memory along the main scanning direction, and the writing unit. Determining means for determining whether or not the image data written in the memory has been accumulated for a predetermined sub-scanning width; and dividing the image data written in the memory by a predetermined main scanning width in the main scanning direction; Reading means (image processing DMAC 91 shown in FIG. 1) for reading out the image data in order to output the image data from the memory to the image processing means in units of a rectangular shape having the main scanning width and the predetermined sub-scanning width; and the memory Based on whether the amount of image data stored in the image can be read out in the rectangular shape, the reading means reads out the rectangular shape. Characterized in that it has an arbitration unit for stop (buffer arbitration unit 77 shown in FIG. 1).

本発明に係る第の発明は、前蚘メモリに蓄積された前蚘画像デヌタ量を蚈数する蚈数手段を有し、前蚘曞蟌手段が䞻走査方向にラむンの前蚘画像デヌタが曞き蟌たれるごずに前蚘蚈数手段をカりントアップし、前蚘読出手段が、前蚘矩圢圢状単䜍ごずに䞻走査方向に前蚘ラむン分読み出すごずに所定数枛算するこずを特城ずする。   According to a second aspect of the present invention, there is provided a counting means for counting the amount of the image data stored in the memory, and the writing means writes the image data for one line in the main scanning direction each time the image data is written. The counting means counts up, and the reading means subtracts a predetermined number every time one line is read in the main scanning direction for each rectangular unit.

本発明に係る第の発明は、前蚘画像入力手段によっお入力された画像デヌタを前蚘画像入力手段の入力方匏に埓っお䞀時的に蓄積する蓄積手段を有し、前蚘曞蟌手段は、前蚘蓄積手段に蓄積された画像デヌタを前蚘画像入力手段の入力方匏にしたがっお前蚘メモリに曞き蟌み動䜜を行い、前蚘読出手段は前蚘画像入力手段の入力方匏によらずに読み出すこずを特城ずする。   According to a third aspect of the present invention, there is provided storage means for temporarily storing the image data input by the image input means according to the input method of the image input means, and the writing means is stored in the storage means. The stored image data is written into the memory according to the input method of the image input means, and the reading means reads out regardless of the input method of the image input means.

本発明に係る第の発明は、前蚘調停手段は、残量怜出郚を備え、前蚘メモリのフル状態が発生するず、前蚘曞蟌手段に察しお停止信号を出力し、曞き蟌み偎の動䜜を停止させるこず特城ずする。   According to a fourth aspect of the present invention, the arbitration unit includes a remaining amount detection unit, and when the memory is full, outputs a stop signal to the writing unit and stops the operation on the writing side. It is characterized by letting.

本発明に係る第の発明は、前蚘調停手段は、トリガ発生手段を備え、予め決められた読み出し偎の凊理ラむン単䜍分の所定ラむン数のデヌタが前蚘メモリに蓄積されるず、前蚘読出手段に起動信号を出力し、読み出し制埡を開始させるこず特城ずする。   According to a fifth aspect of the present invention, the arbitration unit includes a trigger generation unit, and when the predetermined number of lines of data corresponding to a predetermined processing line unit on the reading side is accumulated in the memory, the reading unit A start signal is output to start reading control.

本発明に係る第の発明は、前蚘所定の矩圢圢状単䜍は、画像凊理モヌドに基づいお可倉量に蚭定可胜ずするこずを特城ずする。   A sixth aspect of the present invention is characterized in that the predetermined rectangular shape unit can be set to a variable amount based on an image processing mode.

本発明に係る第の発明は、前蚘曞蟌み手段は、耇数タむプの画像読み取りデバむスを接続可胜ずするこずを特城ずする。   A seventh invention according to the present invention is characterized in that the writing means can connect a plurality of types of image reading devices.

本発明に係る第の発明は、画像入力手段によっお入力された前蚘画像デヌタを䞻走査方向にそっお、順次メモリに曞き蟌む曞蟌ステップず、前蚘曞き蟌みステップによっお前蚘メモリに曞き蟌たれた前蚘画像デヌタが所定の副走査幅分蓄積されたかどうか刀断する刀断ステップず、メモリに曞き蟌たれた前蚘画像デヌタを䞻走査方向に所定の䞻走査幅で分割し、前蚘所定の䞻走査幅ず前蚘所定の副走査幅からなる矩圢圢状単䜍で前蚘画像デヌタを前蚘メモリから画像凊理手段に出力するために画像を読み出す読出ステップず、前蚘メモリに蓄積された前蚘画像デヌタ量が前蚘矩圢圢状での読出し可胜であるかどうかに基づいお、前蚘読出手段により前蚘矩圢圢状での読出しを行うよう調停する調停ステップ図に瀺すステップを有するこずを特城ずする。   According to an eighth aspect of the present invention, there is provided a writing step of sequentially writing the image data input by the image input means in the main scanning direction into the memory, and the image data written in the memory by the writing step. Determining whether or not a predetermined sub-scanning width has been accumulated, and dividing the image data written in the memory by a predetermined main scanning width in the main scanning direction, so that the predetermined main scanning width and the predetermined sub-scanning width are divided. A reading step of reading out the image data in order to output the image data from the memory to the image processing means in a rectangular shape unit comprising a scanning width, and the amount of the image data stored in the memory can be read out in the rectangular shape. An arbitration step (step S33 shown in FIG. 26) for arbitrating to read out the rectangular shape by the reading means based on whether or not Characterized in that it has.

本発明に係る第の発明は、第の発明の画像凊理方法を実珟するプログラムをコンピュヌタが読み取り可胜な蚘憶媒䜓に蚘憶したこずを特城ずする。   According to a ninth aspect of the present invention, a program for realizing the image processing method of the eighth aspect is stored in a computer-readable storage medium.

本発明に係る第の発明は、第の発明の画像凊理方法を実珟するプログラムであるこずを特城ずする。 A tenth aspect of the present invention is a program for realizing the image processing method of the eighth aspect.

本発明によれば、メむンメモリに確保され、凊理デヌタを䞀時滞留させる䞭間バッファず、前蚘䞭間バッファの前段に配眮され、入力される画像デヌタを所定の矩圢圢状単䜍で加工しお前蚘䞭間バッファぞの入力デヌタを生成する第の画像凊理ブロックず、前蚘䞭間バッファの埌段に配眮され、前蚘䞭間バッファから読み出したデヌタを加工する第の画像凊理ブロックずを備える画像凊理装眮においお、䞭間バッファ䞊の滞留デヌタ量をモニタし、該滞留デヌタ量に基づいおによる䞭間バッファ䞊ぞの所定の矩圢圢状単䜍毎のデヌタ曞き蟌み凊理たたはデヌタ読み出し凊理を調停するこずにより、蚭定される画像凊理モヌド等の条件に適応しお確保される矩圢圢状単䜍の䞭間バッファを確保しお、各ブロック間の䞭間バッファのサむズを凊理内容ず胜力に応じお最適化しお、所定の矩圢圢状単䜍の画像デヌタ凊理時におけるバッファ管理凊理負担を軜枛しお効率よく画像凊理を行える効果を奏する。   According to the present invention, an intermediate buffer that is secured in the main memory and temporarily retains processing data, and is arranged in the preceding stage of the intermediate buffer, and processes input image data in a predetermined rectangular shape unit to the intermediate buffer. In an image processing apparatus comprising: a first image processing block that generates input data of a second image processing block; and a second image processing block that is arranged downstream of the intermediate buffer and processes data read from the intermediate buffer. The amount of staying data is monitored, and based on the amount of staying data, the data writing process or data reading process for each predetermined rectangular shape unit on the intermediate buffer by the DMAC is arbitrated, thereby setting the image processing mode etc. Secure an intermediate buffer of rectangular units to be secured according to the conditions, and save the intermediate buffer between each block. Optimized according to size as the process type and capacity, an effect capable of performing efficient image processing to reduce the buffer management processing load at the time of image data processing in a predetermined rectangular units.

次に本発明を実斜するための最良の圢態に぀いお図面を参照しお説明する。   Next, the best mode for carrying out the present invention will be described with reference to the drawings.

図は、本発明の䞀実斜圢態を瀺す画像凊理装眮の抂略的な構成を瀺すブロック図である。   FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus showing an embodiment of the present invention.

図においお、はスキャナむンタフェヌス以䞋、「スキャナ」ずいう郚であり、アナログフロント゚ンドを介しお、、が接続し、個別の専甚回路を介圚するこずなく、その読み取りデヌタを画像凊理装眮に取り蟌むこずができる。スキャナ郚のデヌタ凊理に぀いおは、埌に詳现に説明する。   In FIG. 1, reference numeral 10 denotes a scanner interface (hereinafter referred to as “scanner I / F”) unit, which is connected to a CCD 17 and a CIS 18 via an analog front end (AFE) 15 without interposing dedicated dedicated circuits. The read data can be taken into the image processing apparatus 200. Data processing of the scanner I / F unit 10 will be described in detail later.

はスキャナ画像凊理郚であり、スキャナ郚の凊理によりメむンメモリに展開された画像デヌタに察しお、画像凊理動䜜モヌドカラヌコピヌ、モノクロコピヌ、カラヌスキャン、モノクロスキャン等に応じた画像凊理を実行する凊理郚である。スキャナ画像凊理郚の詳现に぀いおは、埌に説明する。   Reference numeral 20 denotes a scanner image processing unit. The image data developed in the main memory 100 by the processing of the scanner I / F unit 10 is set in an image processing operation mode (color copy, monochrome copy, color scan, monochrome scan, etc.). It is a processing unit that executes corresponding image processing. Details of the scanner image processing unit 20 will be described later.

バッファ調停郚はスキャナ郚ずスキャナ画像凊理郚間のデヌタの受け枡しをメむンメモリ䞊のリングバッファ領域を介しお行う堎合、デヌタの曞き蟌みず、読み出しを埌述するように調停する。   When the data transfer between the scanner I / F unit 10 and the scanner image processing unit 20 is performed via the ring buffer area on the main memory 100, the buffer arbitration unit 77 arbitrates data writing and reading as described later. .

プリンタ画像凊理郚は、入力する画像の領域線集や、解像床倉換を行い、埗られた画像デヌタをプリンタ出力するための凊理ナニットであり、は接続するレヌザビヌムプリンタに画像凊理結果を出力するためのむンタフェヌス郚である。   The printer image processing unit 30 is a processing unit for performing region editing and resolution conversion of an input image, and outputting the obtained image data to a printer. Reference numeral 40 denotes a laser beam printer (LBP) 45 to be connected. It is an LBP interface (I / F) unit for outputting a result.

バッファ調停郚は、プリンタ画像凊理郚ずむンタフェヌス郚間のデヌタの受け枡しをメむンメモリ䞊のリングバッファ領域を介しお行う堎合、デヌタの曞き蟌みず、読み出しを埌述するように調停する。バッファ調停郚は基本構成は同䞀のブロックであるが、䜿甚する甚途により、制埡方法が異なる。詳现に぀いおは埌述する。   When the data transfer between the printer image processing unit 30 and the LBP interface unit 40 is performed via the ring buffer area on the main memory 100, the buffer arbitration unit 78 arbitrates data writing and reading as described later. The buffer arbitration units 77 and 78 have the same basic configuration, but the control method differs depending on the application to be used. Details will be described later.

は、モゞュヌルであり、所定の芏栌に準拠した画像デヌタの圧瞮、䌞長凊理を実行する凊理郚である。   Reference numerals 50 and 60 denote JPEG and JBIG modules, which are processing units for executing image data compression / decompression processing conforming to a predetermined standard.

はメモリ制埡郚であり、画像凊理系の第第及びコンピュヌタ系の第ずそれぞれ接続し、メむンメモリに察するデヌタの曞き蟌み、読み出しのためのデヌタ転送制埡を行う。   Reference numeral 70 denotes a memory control unit, which is connected to the first BUS 83 and second BUS 84 of the image processing system and the third BUS 85 of the computer system, and performs data transfer control for writing / reading data to / from the main memory (SDRAM) 100.

はコントロヌラであり、メモリ制埡郚ず協働しお、を介しおず接続し、倖郚デバむスや皮々のむンタフェヌス郚、ずメむンメモリずの間のデヌタ授受に関し、制埡するための所定のアドレス情報を生成したり、蚭定したりする。   Reference numeral 90 denotes a DMA controller (DMAC), which is connected to the ROM 95 via the ROMISA 97 in cooperation with the memory control unit 70, and relates to data exchange between the external device and various interface units 170 and the main memory 100. Predetermined address information for DMA control is generated or set.

はコントロヌラ画像凊理であり、メモリ制埡郚ず協働しお、各画像凊理郚、、、ずメむンメモリずの間のデヌタ授受に関し、制埡するための所定のアドレス情報を生成したり、蚭定したりする。   Reference numeral 91 denotes a DMA controller (image processing DMAC), which cooperates with the memory control unit 70 to perform DMA control regarding data exchange between each image processing unit (10, 20, 30, 40) and the main memory 100. Predetermined address information is generated or set.

䟋えば、画像読み取りデバむスの皮類、、の別に応じお、スキャナ郚で読み取り凊理された画像デヌタをメむンメモリに転送するためのアドレス情報をのチャンネルごずに生成し、たたは、メむンメモリ䞊に展開された画像デヌタを読み出すためのアドレス情報をのチャンネルに応じお生成し、スキャナ画像凊理郚に転送する等、メむンメモリず、画像凊理郚、、ずメむンメモリ間における制埡を、メモリ制埡郚ず共に叞るナニットずしお機胜する。   For example, according to the type of image reading device, CCD 17 and CIS 18, address information for DMA transfer of image data read by the scanner I / F unit 10 to the main memory 100 is generated for each DMA channel. Alternatively, the address information for reading out the image data developed on the main memory 100 is generated according to the DMA channel and DMA-transferred to the scanner image processing unit 20. 20, 30, 40) and the main memory 100 function as a unit that manages the DMA control together with the memory control unit 70.

には画像読み取りデバむスやに応じお、適した制埡パラメヌタ、制埡プログラムデヌタが栌玍されおおり、制埡パラメヌタ等を画像読み取りデバむスに応じお皮々蚭定するこずができるので、、の個別のデヌタ出力圢匏に応じた画像デヌタの入力凊理が可胜ずなるため、専甚のむンタフェヌス回路を蚭ける必芁がなくなる。   The ROM 95 stores appropriate control parameters and control program data according to the image reading device (CCD 17 and CIS 18), and various control parameters can be set according to the image reading device. Since it is possible to input image data in accordance with the individual data output format, it is not necessary to provide a dedicated interface circuit.

は第で、メむンメモリから読み出したデヌタを画像凊理系の各凊理郚〜に送出するこずが可胜に構成されおいる。は第で、画像凊理系の各凊理郚〜から読み出したデヌタをメむンメモリに送出するこずが可胜であり、第第は察になっお画像凊理ブロックずメむンメモリ間の画像デヌタの授受を行う。は第で、、通信及びむンタフェヌス郚、メカトロ系制埡郚、画像凊理郚内郚の制埡レゞスタ、及びが接続するコンピュヌタ系のバスずしお機胜する。   Reference numeral 83 denotes a first BUS, which is configured to transmit data read from the main memory 100 to each processing unit (10 to 60) of the image processing system. Reference numeral 84 denotes a second BUS, which can send data read from each processing unit (10 to 60) of the image processing system to the main memory 100. The first BUS 83 and the second BUS 84 are paired with the image processing block and the main. Transfer image data between the memories 100. Reference numeral 85 denotes a third BUS, which functions as a computer system bus to which the CPU 180, the communication and interface unit 170, the mechatronic system control unit 125, the control register in the image processing unit, and the DMAC 90 are connected.

メカトロ系制埡郚にはモヌタ制埡郚ず、モヌタの駆動タむミングや、画像凊理系の凊理の同調を制埡するためのタむミング制埡を叞る割り蟌みタむマ制埡郚が含たれる。   The mechatronics system control unit 125 includes a motor control unit 110 and an interrupt timer control unit 120 that controls timing for controlling motor drive timing and image processing system processing.

制埡郚は、画像凊理装眮の皮々の蚭定、凊理状況等をに衚瀺するための衚瀺制埡を叞るナニットである。、は呚蟺機噚ずの接続を可胜にするむンタフェヌス郚であり、図では、−プリンタが接続した状態を瀺しおいる。   The LCD control unit 130 is a unit that controls display for displaying various settings, processing statuses, and the like of the image processing apparatus on the LCD 135. Reference numerals 140 and 150 denote USB interface units that enable connection with peripheral devices. FIG. 1 shows a state in which the BJ-printer 175 is connected.

はメディアアクセス制埡郚であり、接続する機噚に察しおデヌタをどのようなタむミングで送り出せばよいかアクセス等を制埡するナニットである。はであり、画像凊理装眮の党䜓的な動䜜を制埡する。はモデムである。   Reference numeral 160 denotes a media access control (MAC) unit that controls at what timing (access) data should be sent to a connected device. A CPU 180 controls the overall operation of the image processing apparatus 200. Reference numeral 93 denotes a modem (MODEM).

スキャナ郚の構成
スキャナ郚は、画像読み取りデバむスずしお、及びに察応可胜であり、䞡画像読み取りデバむスの信号を入力凊理する。ここで入力された画像デヌタは、メモリ制埡郚により転送されおメむンメモリ䞊に展開される。
<Configuration of Scanner I / F Unit 10>
The scanner I / F unit 10 can correspond to the CCD 17 and the CIS 18 as image reading devices, and inputs signals of both image reading devices. The image data input here is DMA-transferred by the memory control unit 70 and developed on the main memory 100.

図は、図に瀺したスキャナ郚の抂略的な構成を瀺すブロック図であり、図ず同䞀のものには同䞀の笊号を付しおある。   2 is a block diagram showing a schematic configuration of the scanner I / F unit 10 shown in FIG. 1, and the same components as those in FIG. 1 are denoted by the same reference numerals.

図においお、に察しお、タむミング制埡郚は読み取りスピヌドに応じた読み取りデバむスの制埡信号を生成しお出力する。このデバむス制埡信号は、スキャナ郚内で生成される同期信号に同期するものであり、これにより䞻走査方向の読み取りタむミングず、読み取り凊理の同調を図るこずができる。   In FIG. 2, for the CCD 17 / CIS 18, the timing control section 11a generates and outputs a reading device control signal corresponding to the reading speed. This device control signal is synchronized with a synchronization signal generated in the scanner I / F unit 10, whereby the reading timing in the main scanning direction and the reading process can be synchronized.

点灯制埡郚は、の光源ずなるの点灯を制埡するナニットであり、、、各色芁玠に察応したの順次点灯制埡のための同期信号、、図、図を参照、クロック信号、図等を参照及びに察応した調光の制埡、点灯の開始、消灯の制埡を実行する。この制埡タむミングは、䞊述のタむミング制埡郚から受信する同期信号に基づくものであり、画像読み取りデバむスの駆動ず同期したの点灯が制埡される。   The LED lighting control unit 11b is a unit that controls the lighting of the LED 19 serving as the light source of the CCD 17 / CIS 18, and is a synchronization signal (TG, SP, FIG. 5) for controlling the sequential lighting of LEDs corresponding to the R, G, and B color elements. 3, refer to FIG. 4), clock signal (CLK, refer to FIG. 4, etc.) and dimming control corresponding to the CCD 17 / CIS 18, start of lighting, and extinction control. This control timing is based on the synchronization signal received from the above-described timing control unit 11a, and the lighting of the LED 19 synchronized with the driving of the image reading device is controlled.

図は、図に瀺したによる出力信号䟋を説明するタむミングチャヌトである。   FIG. 3 is a timing chart for explaining an example of an output signal from the CCD 17 shown in FIG.

図に瀺すように、から照射された光が原皿面を照らし、その反射光がに導かれ、光電倉換される。䟋えば、䞻走査方向であるのラむン方向ず盎角方向副走査方向に、読み取り䜍眮を定速移動させながら、その原皿面を䞻走査方向のラむン毎に順次走査しお原皿面党䜓の画像を読み取るこずができる。   As shown in FIG. 2, the light emitted from the LED 19 illuminates the document surface, and the reflected light is guided to the CCD 17 for photoelectric conversion. For example, the original surface is sequentially scanned for each line in the main scanning direction while moving the reading position at a constant speed in the direction perpendicular to the line direction of the CCD 17 that is the main scanning direction (sub-scanning direction). Can be read.

図に瀺す通り、タむミング制埡郚から出力される同期信号に基づき、のラむン分の、、芁玠に察応した信号がパラレルに出力される図、、を参照。   As shown in FIG. 3, based on the synchronization signal (TG) output from the timing controller 11a, signals corresponding to the R, G, B elements for one line of the CCD 17 are output in parallel (FIG. 3B). , (C), (d)).

図は、図に瀺したに察するの点灯制埡に関するタむミングチャヌトであり、点灯制埡郚により生成された同期信号ずクロックに基づき、各、、のの点灯開始ず消灯のタむミングが制埡される。   FIG. 4 is a timing chart relating to the lighting control of the LED 19 with respect to the CIS 18 shown in FIG. 2, and based on the synchronization signal (SP) and the clock (CLK) generated by the LED lighting control unit 11b, each R, G, B The timing for starting and turning off the LED is controlled.

図においお、同期信号の呚期はで瀺され、この時間内に各色、、のいずれか、又はこれらの組合わせによりが点灯制埡される。は、同期信号の呚期におけるの点灯時間を瀺すものである。   In FIG. 4, the period of the synchronization signal (SP) is indicated by Tstg, and the lighting of the LED is controlled by any one of these colors (R, G, B) or a combination thereof within this time. Tled indicates the lighting time of the LED in one cycle (Tstg) of the synchronization signal (SP).

図は、図に瀺したタむミングチャヌトに埓った、、、に察応するの点灯〜ずその点灯時間内に蓄積されたの反射光により光電倉換された出力ずの関係を瀺すタむミングチャヌトである。   FIG. 5 shows a photoelectrical operation based on the lighting of the LEDs corresponding to R, G, and B ((a) to (d)) and the reflected light of the LED accumulated during the lighting time according to the timing chart shown in FIG. It is a timing chart which shows the relationship with the output (e) converted.

図の出力より明らかなように、、、各色に察応した信号の出力は、出力、出力、出力ず、それぞれがシリアルのデヌタずしお出力され、先に説明したの出力信号ずは盞違する。   As is clear from the output (e) of FIG. 5, the output of the signals corresponding to the R, G, and B colors is output as R data, G output, and B output, respectively, as serial data. This is different from the output signal of the CCD 17.

たた、図は、図に瀺したの点灯制埡動䜜を説明するタむミングチャヌトであり、の制埡に関連し、同期信号の呚期以内に、、の各が順次点灯する堎合のタむミングを瀺すタむミングチャヌト䟋であり、、、デヌタの合成により、この堎合の画像読み取りデバむスの入力はモノクロ画像のデヌタずしお画像凊理装眮に取り蟌むこずが可胜になる。   FIG. 6 is a timing chart for explaining the LED lighting control operation shown in FIG. 2. In relation to the control of the CIS 18, each of the R, G, B LEDs 19 is within one cycle of the synchronization signal (SP). It is an example of a timing chart which shows the timing in the case of turning on sequentially, The input of the image reading device in this case can be taken in into the image processing apparatus 200 as monochrome image data by the synthesis | combination of R, G, B data.

図は、図に瀺したが䞻走査方向にチャンネル蚭けられた堎合の出力䟋を瀺すタむミングチャヌトである。   FIG. 7 is a timing chart showing an output example when the CIS 18 shown in FIG. 2 is provided with two channels in the main scanning direction.

図に瀺すように、チャンネルの出力図のは、番目の信号図のを参照の立ち䞋がりず同期しお、任意のダミヌのビット列図の堎合はビットを出力し、その埌、有効ビット数ビットに察する信号を出力する図の。䞀方、チャンネルの出力図のは、番目の信号の立ち䞋がりず同期しお、有効ビットビット目チャンネルのセンサ出力の最終ビットに埌続するビットから有効ビットずしおビットを出力する。   As shown in FIG. 7, the output of channel 1 ((c) in FIG. 7) is synchronized with the falling edge of the Nth CLK signal (see (b) in FIG. 7) in any dummy bit string ( In the case of FIG. 7, 22 bits) are output, and then a signal for the number of effective bits of 3254 bits is output ((c) of FIG. 7). On the other hand, the output of channel 2 ((d) in FIG. 7) is synchronized with the falling edge of the Nth CLK signal from the valid bit 3255th bit (the bit following the last bit 3254 of the sensor output of channel 1). 2794 bits are output as valid bits.

぀のチャンネルのセンサ出力により、䞻走査方向ラむン分のデヌタを分割しお読み取るこずができる。尚、の構成は最倧チャンネルに限るものではなく、䟋えば、チャンネルの構成にしおも、有効ビット数の出力数が倉わるのみで、本発明の趣旚が限定されるものではない。   The data for one line in the main scanning direction can be divided and read by the sensor outputs of the two channels. Note that the configuration of the CIS is not limited to a maximum of 2 channels. For example, even if the configuration is a 3 channel, only the number of outputs of the number of effective bits changes, and the gist of the present invention is not limited.

以䞋、図に瀺したブロック図に説明を戻し、画像読み取りデバむスの出力信号は、アナログフロント゚ンドに入力される。   Returning to the block diagram shown in FIG. 2, the output signal of the image reading device (CCD 17 / CIS 18) is input to an AFE (analog front end) 15.

図は、図に瀺したの構成を説明するブロック図であり、図ず同䞀のものには同䞀の笊号を付しおある。   FIG. 8 is a block diagram for explaining the configuration of the AFE 15 shown in FIG. 2, and the same components as those in FIG. 2 are denoted by the same reference numerals.

の凊理は、図に瀺すように、、の出力信号に察しお、ゲむン調敎、倉換凊理を斜し、さらにラむン間補正凊理を各画像読み取りデバむスより出力されるアナログ信号をデゞタル信号に倉換しお、スキャナ郚に入力する。たた、は画像読み取りデバむスより出力されるパラレルなデヌタをシリアルなデヌタに倉換しお出力するこずができる。   As shown in FIG. 8, the AFE 15 performs gain adjustment (15a, 15d) and A / D conversion processing (15b, 15c, 15e) on the output signals of the CCD 17 and CIS 18, and further performs inter-line correction processing. The analog signal output from each image reading device 15c is converted into a digital signal and input to the scanner I / F unit 10. The AFE 15 can convert parallel data output from the image reading device into serial data and output the serial data.

図における同期制埡郚は、に察しお、各デバむス、のアナログ信号に応じお所定の閟倀レベルを蚭定し、画像読み取りデバむスの盞違による出力信号レベルの調敎を行う。曎に、アナログ信号のサンプリング制埡ずデゞタル信号をに出力させるための同期クロックを生成しお出力し、から所定のデゞタル信号による読み取り画像デヌタを受信する。このデヌタは、同期制埡郚を介しお出力デヌタ制埡郚に入力され、出力デヌタ制埡郚は、スキャナ郚の出力モヌドに合わせお、より受信した画像デヌタをバッファに栌玍する。   The synchronization control unit 11c in FIG. 2 sets a predetermined threshold level for the AFE 15 according to the analog signal of each device (17, 18), and adjusts the output signal level according to the difference in the image reading device. Further, a sampling clock for analog signals and a synchronous clock for outputting a digital signal to the AFE 15 are generated and output, and read image data by a predetermined digital signal is received from the AFE 15. This data is input to the output data control unit 11d via the synchronization control unit 11c. The output data control unit 11d buffers the image data received from the AFE 15 in accordance with the output mode of the scanner I / F unit 10 (11e , 11f, 11g).

スキャナ郚の出力モヌドには、シングルモヌド、チャンネルモヌド、チャンネルモヌドず、接続する画像読み取りデバむスに応じお出力モヌドを切り替えるこずができる。   The output mode of the scanner I / F unit 10 can be switched between a single mode, a 2-channel (ch) mode, and a 3-channel (ch) mode, depending on the image reading device to be connected.

シングルモヌドずは、から䞻走査方向デヌタがシリアル入力される堎合に遞択されるモヌドであり、この堎合、぀のバッファのみが利甚可胜な状態になる。   The single mode is a mode selected when main scanning direction data is serially input from the AFE 15, and in this case, only one buffer is available.

モヌドは、から入力されるデヌタが、画像読み取りデバむスのチャンネル分の情報ずしお、同じタむミングで入力される堎合に遞択されるモヌドであり、この堎合は、぀のバッファ䟋えば、が利甚可胜な状態に蚭定される。   The 2ch mode is a mode selected when data input from the AFE 15 is input at the same timing as information for two channels of the image reading device. In this case, two buffers (for example, 11e, 11f) is set to an available state.

モヌドは、から受信する画像デヌタが、、出力ずしお、同じタむミングで入力される堎合に遞択されるモヌドであり、この堎合は、぀のバッファが利甚可胜な状態に蚭定される。   The 3ch mode is a mode that is selected when image data received from the AFE 15 is input at the same timing as R, G, and B outputs. In this case, three buffers (11e, 11f, and 11g) are provided. Set to available state.

カラヌ画像デヌタを、シングルモヌドによりで読み取った堎合、より受信するデヌタは、図のに瀺すように、の点灯順䜍に埓ったデヌタの出力がシリアルに配列したものずなり、出力デヌタ制埡郚は、この配列に埓っお、デヌタを぀のバッファ䟋えば第バッファに栌玍する。モノクロ画像デヌタをで読み取った堎合でも同様であり、モノクロ画像デヌタが぀のバッファに栌玍される。   When color image data is read by the CIS 18 in the single mode, the data received from the AFE 15 is serially output as R, G, B data according to the lighting order of the LEDs as shown in FIG. The output data control unit 11d stores the data in one buffer (for example, the first buffer 11e) according to this arrangement. The same applies when monochrome image data is read by the CIS 18, and the monochrome image data is stored in one buffer.

カラヌ画像デヌタをチャンネルのにより読み取った堎合、䞊述のモヌドが蚭定される。より受信するデヌタは、図のc、(d)で瀺すように、䞻走査方向に分割した領域毎のデヌタずなり、これら領域毎のデヌタを栌玍するために、出力デヌタ制埡郚は、受信したデヌタを぀のバッファ䟋えば、第バッファ及び第バッファに栌玍する。この凊理はモノクロ画像デヌタをチャンネルで読み取った堎合でも同様である。   When the color image data is read by the 2-channel CIS 18, the above-described 2ch mode is set. As shown in FIGS. 7C and 7D, the data received from the AFE 15 is data for each area divided into two in the main scanning direction. In order to store the data for each area, the output data control unit 11d stores the received data in two buffers (for example, the first buffer 11e and the second buffer 11f). This process is the same even when monochrome image data is read by the CIS2 channel.

カラヌ画像デヌタをで読み取った堎合、出力デヌタ制埡郚は、から受信したデヌタを䞊述のモヌドにより、、デヌタごずに、぀のバッファ第、第、第バッファに振り分けお栌玍するこずができる。   When the color image data is read by the CCD 17, the output data control unit 11d receives the data received from the AFE 15 in three buffers (first, second, and third buffers) for each of R, G, and B data in the above-described 3ch mode. 11e, 11f, and 11g).

メモリ制埡郚の構成
次に、スキャナ郚の凊理により、所定のバッファに栌玍された画像デヌタをメむンメモリに転送し、栌玍する凊理に぀いお説明する。画像デヌタをメむンメモリに転送しお栌玍する凊理は、画像凊理の制埡ナニットにより制埡される。
<Configuration of Memory Control Unit 70>
Next, a description will be given of a process in which the image data stored in the predetermined buffer (11e, 11f, 11g) is DMA-transferred to the main memory (SDRAM) 100 and stored by the process of the scanner I / F unit 10. The process of transferring the image data to the main memory 100 by DMA transfer is controlled by the I / O control unit 71 of the image processing DMAC 91.

図は、図に瀺した画像凊理の抂略的な構成を説明するブロック図であり、図に瀺したバッファ調停郚の接続、画像読み取りデバむス、により読み取った画像デヌタを栌玍するメむンメモリずの関係及びプリンタ画像凊理郚ずバッファ調停郚ずの接続の関係を瀺す図に察応する。   FIG. 9 is a block diagram for explaining a schematic configuration of the image processing DMAC (DMAC) 91 shown in FIG. 1, and the connection of the buffer arbitration unit 77 shown in FIG. 1 and the image reading devices (17, 18). This corresponds to a diagram illustrating a relationship between the main memory (SDRAM) 100 storing the read image data and a connection relationship between the printer image processing unit 30 and the buffer arbitration unit 78.

は、スキャナ郚により入力凊理された画像デヌタをメむンメモリに転送する制埡ナニット、メむンメモリずスキャナ画像凊理郚ずの間でデヌタの授受を制埡する制埡ナニットを含む。制埡ナニットず制埡ナニット間のデヌタ受け枡しはメむンメモリ䞊の䞭間バッファを介しお行われる。この䞭間バッファをリングバッファずしお䜿甚する堎合、デヌタの曞き蟌みず、読み出しを調停するためのバッファ調停郚が䜿甚される。   The DMAC 91 controls transfer of data between the main memory 100 and the scanner image processing unit 20, an I / O control unit 71 that DMA-transfers image data input by the scanner I / F unit 10 to the main memory 100. An I / P control unit 73 is included. Data exchange between the I / O control unit 71 and the I / P control unit 72 is performed via an intermediate buffer on the main memory 100. When this intermediate buffer is used as a ring buffer, a buffer arbitration unit 77 for arbitrating data writing and reading is used.

制埡ナニットの構成
ここで、制埡ナニットは、デヌタ調停ナニットず、第曞き蟌みデヌタむンタフェヌス郚ず、むンタフェヌス郚ずを有しおいる。
<Configuration of I / O control unit 71>
Here, the I / O control unit 71 includes a data arbitration unit 71a, a first write data interface (I / F) unit 71b, and an I / O interface unit 71c.

むンタフェヌス郚は、メむンメモリにデヌタを栌玍するために䞊述のにより生成された所定のアドレス情報を第曞き蟌みデヌタ郚に蚭定する。たた、スキャナ郚より出力される画像デヌタを受信しお、制埡ナニット内の各バッファチャンネル以䞋、「チャンネル」ずいう。〜にデヌタを栌玍する。   The I / O interface unit 71c sets predetermined address information generated by the above-described DMAC 91 to store data in the main memory 100 in the first write data I / F unit 71b. Further, the image data output from the scanner I / F unit 10 is received, and the data is stored in each buffer channel (hereinafter referred to as “channel”) (ch0 to ch2) in the I / O control unit 71.

第曞き蟌みデヌタ郚はメむンメモリに察しおデヌタの曞き蟌みを行うための第ず接続し、生成された所定のアドレス情報に埓っお各チャンネル〜に栌玍されおいるデヌタをメむンメモリに転送する。デヌタ調停ナニットは、各チャンネルに栌玍されおいるデヌタの読み出しを行い、第曞き蟌みデヌタ郚の曞き蟌み凊理に合わせお各チャンネルのデヌタの受け枡しを行う。   The first write data I / F unit 71b is connected to the first BUS 83 for writing data to the main memory 100, and the data stored in each channel (ch0 to ch2) according to the generated predetermined address information. Are transferred to the main memory 100 by DMA. The data arbitration unit 71a reads the data stored in each channel, and transfers the data of each channel in accordance with the writing process of the first write data I / F unit 71b.

第曞き蟌みデヌタ郚はバッファ調停郚ず接続し、埌に説明する制埡ナニットによるデヌタの読み出し、若しくは曞き蟌みず、メモリアクセスが競合しないよう制埡される。メむンメモリに察するアクセスの制埡により、メむンメモリをリングバッファずしお䜿甚した堎合であっおも、メむンメモリに栌玍されおいるデヌタの読み出し前に、同䞀のメモリアドレスにデヌタをオヌバラむトする等のトラブルを防止するこずができ、メモリリ゜ヌスを有効に掻甚するこずが可胜になる。   The first write data I / F unit 71b is connected to the buffer arbitration unit 77, and is controlled so that memory access does not compete with data read or write by the I / P control unit 72 described later. Even when the main memory 100 is used as a ring buffer by controlling access to the main memory 100, data is overwritten to the same memory address before the data stored in the main memory 100 is read. Troubles can be prevented and memory resources can be used effectively.

図は、図に瀺したバッファ調停郚の抂略構成ずずの接続関係を説明するブロック図である。   FIG. 10 is a block diagram for explaining the schematic configuration of the buffer arbitration units 77 and 78 shown in FIG.

図に瀺すように、バッファ調停郚は、制埡レゞスタ、読み出し偎チャンネルからの転送完了信号Read_end信号を怜出する読み出し曎新怜出郚、曞き蟌み偎チャンネルからの転送完了信号Write_end信号を怜出する曞き蟌み曎新怜出郚、䞭間バッファの滞留量をカりントする滞留カりンタ、滞留ラむン数に応じおぞの制埡信号を生成する制埡信号生成郚からなる。   As shown in FIG. 10, the buffer arbitration unit 77 detects the control register 771, the read update detection unit 773 that detects the transfer completion signal Read_end signal from the read side DMAC channel, and the transfer completion signal Write_end signal from the write side DMAC channel. And a DMAC control signal generator 775 that generates a control signal to the DMAC 91 according to the number of staying lines.

制埡ナニット内のチャンネル〜の各チャンネルは次元毎の転送完了信号を生成する機胜を持ち、転送完了信号Write_end−は次元以降ラむンず蚘述の転送終了信号が接続されおいる。即ち、䞻走査方向ラむン分の転送を怜出するず転送完了信号Write_end−が出力される。曞き蟌み曎新怜出郚は接続されるチャンネルの転送終了信号の内、実際に䜿甚されるチャンネルに応じお入力を蚱可するこずで、党おの䜿甚されるチャンネルの終了を怜出する。   Each of the channels ch0 to ch2 in the I / O control unit 71 has a function of generating a transfer completion signal for each dimension, and the transfer completion signal Write_end1-3 is connected to a one-dimensional (hereinafter referred to as line) transfer end signal. Has been. That is, when transfer for one line in the main scanning direction is detected, a transfer completion signal Write_end1-3 is output. The write update detection unit 772 detects the end of all the used channels by permitting the input according to the actually used channel among the transfer end signals of the three channels to be connected.

以䞊図図図で述べたように、画像読み取りデバむスや画像読み取りデバむスの出力モヌドシングルモヌド、チャンネルモヌド、チャネルモヌドにしたがっお、メむンメモリに曞き蟌む画像デヌタの曞蟌み方法を遞択しおいるので、スキャナ画像凊理郚偎は画像読み取りデバむスや画像読み取りデバむスの出力モヌドによらずにメむンメモリから画像デヌタを読み出すこずが可胜になり、簡単な構成で様々な読み取りデバむス、読み取り方匏に察応できる。   As described above with reference to FIGS. 8, 9, and 10, data is written into the main memory 100 in accordance with the image reading device (CCD17 / CIS18) and the output mode (single mode, two-channel mode, and three-channel mode) of the image reading device. Since the image data writing method is selected, the scanner image processing unit 20 side can read the image data from the main memory regardless of the image reading device or the output mode of the image reading device, and has a simple configuration. Compatible with various reading devices and reading methods.

図は、図に瀺したバッファ調停郚ずずの動䜜を説明するためのタむミングチャヌトであり、図のはそれぞれチャンネルを有効ずした堎合のタむミングチャヌトである。図のではバッファ調停郚がチャンネルの終了怜出によっおcount_up信号が生成され、滞留カりンタのカりント倀が曎新されるのに察しお、図のではバッファ調停郚が぀のチャンネルの終了たでカりント倀は曎新されない。   FIG. 11 is a timing chart for explaining the operation of the buffer arbitration units 77 and 78 and the DMAC 91 shown in FIG. 10, and (a) and (b) of FIG. It is a timing chart in the case. In FIG. 11A, the buffer arbitration unit 78 generates a count_up signal when the end of one channel is detected and the count value of the stay counter 774 is updated, whereas in FIG. 11B, the buffer arbitration unit 77 is updated. However, the count value is not updated until the end of the two channels.

図のは、印刷甚のリングバッファぞの曞き蟌みの調停を瀺しおいる。たた、図ののsuspend信号は制埡レゞスタに蚭定されたリングバッファの芁領に盞圓するRING_LINE倀ず滞留数が䞀臎したずきにプリント甚のバッファがであるず刀定し、プリンタ画像凊理郚からの曞き蟌み偎を停止するための䞀時停止信号で、制埡ナニットはこの信号がアサヌトされおいる間は䞭間バッファに察する曞き蟌み転送を停止する。   FIG. 11A shows arbitration of writing to the ring buffer for printing. Further, the suspend signal in FIG. 11A determines that the print buffer is FULL when the RING_LINE value corresponding to the ring buffer set in the control register 771 matches the number of stays, and the printer image This is a temporary stop signal for stopping the write side DMAC from the processing unit, and the I / O control unit 71 stops the write transfer to the intermediate buffer 1 while this signal is asserted.

図のは、スキャナむンタフェヌス郚から画像デヌタの曞き蟌みを瀺しおいる。図のの転送完了信号Write_endの出力、即ち、䞻走査方向でラむン分の画像デヌタの曞き蟌みが終了する毎に、滞留数が加算される。TRIGGER信号は制埡レゞスタに蚭定されたストラむプ幅分に盞圓するTRIGGER_LINE倀ず滞留数が䞀臎したずきに生成されるパルス信号で、予め転送デヌタを蚭定し、埅機䞭の制埡ナニットがこのパルス信号受けるずスキャナ画像凊理郚ぞのデヌタ転送凊理を開始する。   FIG. 11B shows the writing of image data from the scanner interface unit 10. Each time the output of the transfer completion signal Write_end2 in FIG. 11B, that is, writing of one line of image data in the main scanning direction is completed, the staying number is added. The TRIGGER signal is a pulse signal generated when the number of stays matches the TRIGGER_LINE value corresponding to the stripe width set in the control register 771. The transfer data is set in advance, and the waiting I / P control unit 72 When this pulse signal is received, data transfer processing to the scanner image processing unit is started.

制埡ナニット内のチャンネル〜の各チャンネルは次元毎の転送完了信号を生成する機胜を持ち、転送完了信号Read_end−は次元以降ストラむプ領域ず呌ぶの転送終了信号が接続されおいる。バッファ調停郚内の読み出し曎新怜出郚は接続されるチャンネルの転送終了信号の内、実際に䜿甚されるチャンネルに応じお入力を蚱可するこずで、党おの䜿甚するチャンネルの終了を怜出する。   Each of the channels ch3 to ch6 in the I / P control unit 72 has a function of generating a transfer completion signal for each dimension, and the transfer completion signals Read_end1-4 are three-dimensional (hereinafter referred to as stripe regions) transfer end signals. It is connected. The read update detection unit 773 in the buffer arbitration unit 77 detects the end of all used channels by permitting input according to the channel actually used among the transfer end signals of the connected four channels. .

図のはバッファ調停郚それぞれチャンネルを有効ずした堎合のタむミングチャヌトであり、図のは、バッファ調停郚に関しおは、図のではチャンネルの終了怜出、即ちストラむプ幅分のスキャナ画像凊理郚のための読み出しの終了によっおcount_down信号が生成され、滞留カりンタのカりント倀が曎新される即ちストラむプ分カりント倀を枛算する。バッファ調停郚に察しおは、リングバッファからプリンタ郚ぞ画像デヌタがラむン読み出されるごずにカりント倀が曎新されるのに察しお、図のはバッファ調停郚のチャンネル䞊行しおプリンタ郚に出力する堎合のタむミングチャヌトである。これは、のレヌザビヌム発生噚(䞍図瀺)が぀あっお、本のレヌザビヌムを同時に点灯さお高速にプリントさせる堎合の䟋である。図のでは぀のチャンネルの終了たでリングバッファのカりント倀は曎新されない。   FIG. 11C is a timing chart when 1 and 2 channels of the buffer arbitration units 77 and 78 are enabled. FIG. 11C shows the buffer arbitration unit 77 in FIG. In this case, the count_down signal is generated by detecting the end of one channel, that is, the end of reading for the scanner image processing unit 20 for one stripe width, and the count value of the stay counter is updated (that is, the count value for one stripe is subtracted). ). For the buffer arbitration unit 78, the count value is updated every time one line of image data is read from the ring buffer to the printer unit, whereas FIG. 6 is a timing chart when output to the printer unit. This is an example in which there are two LBP laser beam generators (not shown) and the two laser beams are simultaneously turned on to print at high speed. In FIG. 11D, the count value of the ring buffer is not updated until the end of the two channels.

図ののsuspend信号はcount_down信号の入力により滞留カりンタのカりント倀が曎新され、結果ずしおsuspend解陀の状態に移行しおいる。   In the suspend signal in FIG. 11D, the count value of the stay counter 774 is updated by the input of the count_down signal, and as a result, the state is shifted to the suspend release state.

制埡ナニットはsuspend信号の解陀により䞭間バッファに察する曞き蟌み転送を再開する。バッファ調停郚、が生成するsuspendは生成を蚱可・犁止する機胜がある。TRIGGER信号は蚱可、犁止、初回の条件発生時のみ蚱可の぀の切り替え機胜を有する。   The I / O control unit 71 resumes the write transfer to the intermediate buffer 1 by releasing the suspend signal. The suspend generated by the buffer arbitration units 77 and 78 has a function of permitting / prohibiting the generation. The TRIGGER signal has three switching functions: permission, prohibition, and permission only when the first condition occurs.

以䞊説明したずおり、スキャナむンタフェヌス郚からの画像デヌタをメむンメモリに䞻走査方向にそっお順次曞き蟌む凊理ず、スキャナ画像凊理郚で凊理するための矩圢デヌタずしお読み出す凊理の調停を、簡単に行うこずができる。   As described above, arbitration between the process of sequentially writing the image data from the scanner interface unit 10 in the main memory 100 along the main scanning direction and the process of reading out the rectangular data for processing by the scanner image processing unit 20 is simple. It can be carried out.

たた、曞き蟌みはラむン単䜍でバッファの滞留数を加算し、読み出しはストラむプ単䜍での読み出しの完了で滞留数を枛算するこずで、必芁なメモリ領域を削枛し、簡単に調停を行うこずができる。   In addition, the number of stays in the buffer is added for writing, and the number of stays is subtracted when reading is completed for each stripe, so that the necessary memory area can be reduced and arbitration can be easily performed.

図図図で瀺されるずおり、スキャナで読み取った画像を各色成分毎にメむンメモリに栌玍しおスキャン画像凊理郚で凊理する堎合も、各色ごずに䞊述ず同様の調停をすればよい。   As shown in FIGS. 8, 9, and 10, when the image read by the scanner is stored in the main memory 100 for each color component and processed by the scan image processing unit 20, the same arbitration as described above is performed for each color. do it.

チャンネルのデヌタの栌玍
図は、図に瀺した制埡ナニットがメむンメモリにチャンネル分のデヌタを曞き蟌む凊理を説明する図であり、図のはチャンネルのカラヌ画像デヌタを、、デヌタに分離しお栌玍する凊理を瀺し、図のは図ので瀺したの点灯タむミングで埗られるによるモノクロ画像デヌタの曞き蟌み凊理を瀺す。
<(1) Storage of data for one channel>
FIG. 12 is a diagram for explaining a process in which the I / O control unit 71 shown in FIG. 10 writes data for one channel to the main memory (SDRAM) 100. FIG. 12A shows a color image for one channel. FIG. 12 (b) shows a process of writing monochrome image data by the CIS 18 obtained at the LED lighting timing shown in FIG. 5 (b). Show.

図ので瀺した出力䟋のように、䞻走査方向のラむン分の、、デヌタがシリアルに出力され、スキャナ郚の぀のバッファ図のにデヌタが栌玍された堎合、制埡ナニット内の察応する぀のチャンネル、図を参照にデヌタが転送される。   As in the output example shown in FIG. 5E, R, G, and B data for one line in the main scanning direction are serially output, and one buffer (11e in FIG. 2) of the scanner I / F unit 10 is output. ), The data is transferred to one corresponding channel (ch0, see FIG. 9) in the I / O control unit 71.

ここで、図、図、図においお、チャンネルのデヌタをデヌタ調停ナニット第曞き蟌みデヌタ郚により栌玍凊理するための構成を「第」ず暙蚘し、チャンネルのデヌタを凊理するための構成を「第」、チャンネルのデヌタを凊理するための構成を「第」ず暙蚘する。   Here, in FIG. 12, FIG. 13, and FIG. 14, the configuration for storing the data of the channel (ch0) by the data arbitration unit 71a and the first write data I / F unit 71b is denoted as “first LDMAC”. The configuration for processing the data of the channel (ch1) is denoted as “second LDMAC”, and the configuration for processing the data of the channel (ch2) is denoted as “third LDMAC”.

チャンネルのカラヌ画像デヌタを、、デヌタに分離しお栌玍する凊理を行う堎合は、図のに瀺すように、第は、ラむン順䜍の、、デヌタのうち、䞻走査方向ラむン分〜のデヌタをメむンメモリの領域に曞き蟌み、次の曞き蟌み領域である領域の先頭アドレスに曞き蟌みアドレスを切り替える。   In the case where the process of storing color image data of one channel separately into R, G, and B data is performed, as shown in FIG. Among them, R data for one line (R1 to R2) in the main scanning direction is written in the R area 1000a of the main memory 100, and the write address is switched to the start address (G1) of the G area (1000b) which is the next writing area.

そしお、第は、、、デヌタのうち、䞻走査方向ラむン分〜のデヌタをメむンメモリの領域に曞き蟌み、次の曞き蟌み領域である領域の先頭アドレスに曞き蟌みアドレスを切り替える。   Then, the first LDMAC writes the G data for one line (G1 to G2) in the main scanning direction among the R, G, and B data to the G area (1000b) of the main memory 100, and the next B area that is the next writing area The write address is switched to the start address (B1) of (1000c).

そしお、第は、䞻走査方向ラむン分〜のデヌタをメむンメモリの領域に曞き蟌み埌、アドレスを領域のラむン目の先頭アドレスに切り替える。以䞋、デヌタ、デヌタも同様にデヌタの曞き蟌みアドレスを副走査方向のラむン目にシフトさせおデヌタの曞き蟌みを行う。   The first LDMAC writes the B data for one line (B1 to B2) in the main scanning direction to the B area (1000c) of the main memory 100, and then the address is the leading address (R2) of the second line in the R area (1000a). ). Thereafter, the G data and B data are similarly written by shifting the data write address to the second line in the sub-scanning direction.

第がデヌタを曞き蟌む制埡においお、デヌタ、デヌタ、デヌタに察応したデヌタの栌玍先ずなるメモリの番地をオフセット情報、ずしお䞎え、各色デヌタ毎の栌玍領域を切り替えるこずで、ラむン順䜍の、、デヌタを、デヌタ、デヌタ、デヌタず分離しおメむンメモリに栌玍するこずが可胜になる。   In the DMA control in which the first LDMAC writes data, the address of the memory that is the storage destination of data corresponding to the R data, G data, and B data is given as offset information (A, B), and the storage area for each color data is switched. Thus, the R, G, and B data in the line order can be stored in the main memory 100 separately from the R data, the G data, and the B data.

転送を開始するスタヌトアドレス図のの堎合、オフセット情報、等は䞊述のの生成によるものである。   The start address for starting DMA transfer (R1 in the case of FIG. 12A), offset information (A, B), and the like are due to the generation of the DMAC 90 described above.

バッファ調停郚はこの堎合、第のWite_end信号のみ曞き蟌み曎新怜出郚ぞの入力を有効ずしお䜿甚する。各ラむン転送毎にWrite_end信号が発生し、滞留カりンタはカりントアップするのでカラヌラむンの入力に察しお、滞留カりンタはカりントアップする。埓っお、制埡レゞスタにはRING_LINE倀ずしお、、デヌタ栌玍にそれぞれに割り圓おられるラむン数の合蚈を蚭定する。   In this case, the buffer arbitration unit 77 uses the input to the write update detection unit 772 as valid only for the Wite_end signal of the first LDMAC (ch0). A Write_end signal is generated for each R, G, B line transfer, and the stay counter 774 counts up by 1. Therefore, the stay counter 774 counts up by 3 for the input of one color line. Therefore, the total number of lines allocated to each of R, G, and B data storage is set in the control register 771 as the RING_LINE value.

図で瀺したの点灯タむミングで埗られるによるモノクロ画像デヌタの曞き蟌み凊理を行う堎合は、図のに瀺すように、モノクロ画像デヌタの堎合は、、、ごずにデヌタを分離する必芁がないので、ラむン順䜍のモノクロ画像デヌタを、メむンメモリの䞻走査方向にラむン分〜のデヌタを曞き蟌み、同領域の副走査方向に曞き蟌みアドレスをシフトさせお、次のラむン目〜のデヌタの曞き蟌みをする。以䞋、順次同様の凊理を実行するこずにより、モノクロ画像デヌタをメむンメモリの領域に栌玍するこずができる。   When performing monochrome image data writing processing by the CIS 18 obtained at the LED lighting timing shown in FIG. 6, as shown in FIG. 12B, in the case of monochrome image data, for each of R, G, and B Since there is no need to separate the data, the line order monochrome image data is written for one line (M1 to M2) in the main scanning direction of the main memory 100, and the writing address is shifted in the sub-scanning direction of the area 1000d. Then, the data for the next second line (M3 to M4) is written. Thereafter, monochrome image data can be stored in the area 1000d of the main memory 100 by sequentially executing the same processing.

バッファ調停郚はこの堎合、第のWite_end信号のみ曞き蟌み曎新怜出郚ぞの入力を有効ずしお䜿甚する。モノクロ各ラむン転送毎にWrite_end信号が発生し、滞留カりンタはカりントアップするのでモノクロラむンの入力に察しお、滞留カりンタはカりントアップする。埓っお、制埡レゞスタにはRING_LINE倀ずしおモノクロデヌタ栌玍に割り圓おられるラむン数を蚭定する。   In this case, the buffer arbitration unit 77 uses the input to the write update detection unit 772 as valid only for the Wite_end signal of the first LDMAC (ch0). A Write_end signal is generated for each monochrome line transfer, and the stay counter 774 counts up by one, so the stay counter 774 counts up by one for monochrome one line input. Therefore, the number of lines allocated to monochrome data storage is set in the control register 771 as the RING_LINE value.

チャンネルによるデヌタの栌玍
図は、図に瀺した画像凊理によるに察するデヌタ栌玍凊理を説明する図であり、図のは、図で瀺したようにチャンネルのカラヌ画像デヌタを、、デヌタに分離しお栌玍する凊理䟋に察応し、か぀、図で瀺したの点灯タむミングで埗られるチャンネルのによるモノクロ画像デヌタの曞き蟌み凊理䟋に察応する。なお、䞻走査方向のメモリ領域は぀のチャンネルに察応しお分割される。
<Data storage by 2-channel CIS>
FIG. 13 is a diagram for explaining a data storing process in the SDRAM 100 by the image processing DMAC 91 shown in FIG. 1. FIG. 13A shows two-channel color image data as R, G, as shown in FIG. This corresponds to a processing example of storing data separately into B data, and corresponds to a processing example of monochrome image data writing by CIS of two channels obtained at the lighting timing of the LED shown in FIG. The memory area in the main scanning direction is divided corresponding to two channels.

チャンネルのにより読み取られた画像デヌタは、スキャナ郚の぀のバッファに栌玍され、制埡ナニットの制埡の䞋、぀のバッファのデヌタは、同制埡ナニット内のチャンネル、に転送される。   Image data read by the two-channel CIS 18 (chip 0, chip 1) is stored in the two buffers (11e, 11f) of the scanner I / F unit 10, and is controlled by the I / O control unit 71. The data (11e, 11f) is transferred to the channels (ch0, ch1) in the control unit 71.

第は、チャンネルのデヌタ(chip0_data)を、図のの第領域、第領域、第領域ずしお瀺される領域に栌玍する。   The first LDMAC stores the data (chip0_data) of the channel (ch0) in the areas indicated as the first R area (1100a), the first G area (1200a), and the first B area (1300a) in FIG.

図のにおいお、第は、から入力された、、デヌタのうち、デヌタ〜をメむンメモリの第領域に曞き蟌み、次の曞き蟌み領域である第領域の先頭アドレスに曞き蟌みアドレスを切り替えるオフセット情報。   In FIG. 13A, the first LDMAC writes R data (RA1 to RA2) out of R, G, and B data input from chip0 to the first R area (1100a) of the main memory, and the next writing area. The write address is switched to the first address (GA1) of the first G area (1200a) (offset information C).

第は、、、デヌタのうち、デヌタ〜をメむンメモリの第領域に曞き蟌み、次の曞き蟌み領域である第領域の先頭アドレスに曞き蟌みアドレスを切り替えるオフセット情報。   The first LDMAC writes G data (GA1 to GA2) among R, G, and B data to the first G area (1200a) of the main memory, and the first address (BA1) of the first B area (1300a) that is the next writing area. ) To switch the write address (offset information C).

そしお、第は、、、デヌタのうち、デヌタ〜をメむンメモリの領域に曞き蟌み、凊理の終了埌、アドレスを領域の副走査方向のラむン目の先頭アドレスに切り替えるオフセット情報。以䞋、デヌタ、デヌタも同様にデヌタの曞き蟌みアドレスを副走査方向のラむン目にシフトさせおデヌタの曞き蟌みを行う。   Then, the first LDMAC writes B data (BA1 to BA2) among the R, G, and B data to the B area (1300a) of the main memory, and after the processing is completed, the address is set in the sub-scanning direction of the R area (1100a). To the first address (RA2) of the second line (offset information D). Thereafter, the G data and B data are similarly written by shifting the data write address to the second line in the sub-scanning direction.

第は、メむンメモリのデヌタ栌玍領域ずしお、図の第領域、第領域、第領域ずしお瀺される領域毎に、デヌタの栌玍先ずなるメモリの番地をオフセット情報、に基づき、任意に蚭定するこずができ、その蚭定に埓っおチャンネルに栌玍されおいるデヌタをメむンメモリに栌玍する。   The first LDMAC has a data storage area for each of the areas indicated as the first R area (1100a), the first G area (1200a), and the first B area (1300a) in FIG. The memory address can be arbitrarily set based on the offset information (C, D), and the data stored in the channel (ch0) is stored in the main memory 100 according to the setting.

第は、チャンネルのデヌタ(chip1_data)を、図のの第領域、第領域、第領域ずしお瀺される領域に栌玍する。   The second LDMAC stores the data (chip1_data) of the channel (ch1) in the areas indicated as the second R area (1100b), the second G area (1200b), and the second B area (1300b) in FIG.

図のにおいお、第は、から入力された、、デヌタのうち、デヌタ〜をメむンメモリの第領域に曞き蟌み、次の曞き蟌み領域である第領域の先頭アドレスに曞き蟌みアドレスを切り替えるオフセット情報。   In FIG. 13A, the second LDMAC writes R data (RB1 to RB2) among the R, G, and B data input from chip1 to the second R area (1100b) of the main memory, and the next writing area. The write address is switched to the start address (GB1) of the second G area (1200b) (offset information E).

第は、、、デヌタのうち、デヌタ〜をメむンメモリの第領域に曞き蟌み、次の曞き蟌み領域である第領域の先頭アドレスに曞き蟌みアドレスを切り替えるオフセット情報。   The second LDMAC writes G data (GB1 to GB2) among the R, G, and B data to the second G area (1200b) of the main memory 100, and the first address of the second B area (1300b) that is the next writing area ( The write address is switched to BB1) (offset information E).

そしお、第は、、、デヌタのうち、デヌタ〜をメむンメモリの第領域に曞き蟌み、凊理の終了埌、アドレスを第領域の副走査方向のラむン目の先頭アドレスに切り替えるオフセット情報。以䞋、デヌタ、デヌタも同様にデヌタの曞き蟌みアドレスを副走査方向のラむン目にシフトさせおデヌタの曞き蟌みを行う。   Then, the second LDMAC writes the B data (BB1 to BB2) among the R, G, and B data to the second B area (1300b) of the main memory 100, and after the processing is completed, the address is stored in the second R area (1100b). Switch to the first address (RA2) of the second line in the sub-scanning direction (offset information F). Thereafter, the G data and B data are similarly written by shifting the data write address to the second line in the sub-scanning direction.

第及び第がデヌタを曞き蟌む制埡においお、デヌタ、デヌタ、デヌタに察応したデヌタの栌玍先ずなるメモリの番地をオフセット情報、、、ずしお䞎え、各色デヌタ毎の栌玍領域を切り替えるこずで、ラむン順䜍の、、デヌタを、デヌタ、デヌタ、デヌタず分離しおメむンメモリに栌玍するこずが可胜になる。   In the DMA control in which the first and second LDMACs write data, the address of the memory serving as the data storage destination corresponding to the R data, G data, and B data is given as offset information (C, D, E, F), and each color data By switching the storage area for each line, the R, G, and B data in the line order can be separated from the R data, the G data, and the B data and stored in the main memory 100.

転送を開始するスタヌトアドレス図の堎合、オフセット情報、、、等は䞊述のの生成によるものである。   The start address for starting DMA transfer (RA1, RB1 in the case of FIG. 12A), offset information (C, D, E, F), and the like are due to the generation of the DMAC 90 described above.

バッファ調停郚はこの堎合、第ず第のWite_end信号のみ曞き蟌み曎新怜出郚ぞの入力を有効ずしお䜿甚する。各ラむン転送毎に第、第のWrite_end信号が発生し滞留カりンタはカりントアップするのでカラヌラむンの入力に察しお、滞留カりンタはカりントアップする。埓っお、制埡レゞスタにはRING_LINE倀ずしお、、デヌタ栌玍にそれぞれに割り圓おられるラむン数の合蚈を蚭定する。   In this case, the buffer arbitration unit 77 uses the input to the write update detection unit 772 as valid only for the Wite_end signals of the first LDMAC (ch0) and the second LDMAC (ch1). The first LDMAC and second LDMAC Write_end signals are generated for each R, G, B line transfer, and the stay counter 774 counts up by 1. Therefore, the stay counter 774 counts up by 3 for the input of one color line. Therefore, the total number of lines allocated to each of R, G, and B data storage is set in the control register 771 as the RING_LINE value.

以䞋、図で瀺したの点灯タむミングで埗られるチャンネルのによるモノクロ画像デヌタの曞き蟌み凊理を説明する。   In the following, the writing process of monochrome image data by the 2-channel CIS obtained at the LED lighting timing shown in FIG. 6 will be described.

図のに瀺すように、モノクロ画像デヌタの堎合は、䞊述のカラヌ画像デヌタの堎合ず異なり、、、ごずにデヌタを分離する必芁がないので、ラむン順䜍のモノクロ画像デヌタを、メむンメモリの䞻走査方向にラむン分〜、〜のデヌタを曞き蟌みし、同領域の副走査方向に曞き蟌みアドレスをシフトさせお、次のラむン目〜〜のデヌタの曞き蟌みをする。以䞋、順次同様の凊理をしおいくこずにより、モノクロ画像デヌタをメむンメモリの領域に栌玍するこずができる。   As shown in FIG. 13B, in the case of monochrome image data, unlike the case of the color image data described above, it is not necessary to separate the data for each of R, G, and B. Is written for one line (MA1 to MA2, MB1 to MB2) in the main scanning direction of the main memory 100, and the write address is shifted in the subscanning direction of the same area (1400a, 1400b). Data of the line (MA3 to MA4, MB3 to MB4) is written. Thereafter, monochrome image data can be stored in the main memory area (1400a, 1400b) by sequentially performing the same processing.

バッファ調停郚はこの堎合、第ず第のWite_end信号のみ曞き蟌み曎新怜出郚ぞの入力を有効ずしお䜿甚する。モノクロ各ラむン転送毎に第、第のWrite_end信号が発生し滞留カりンタはカりントアップするのでモノクロラむンの入力に察しお、滞留カりンタはカりントアップする。埓っお、制埡レゞスタにはRING_LINE倀ずしおモノクロデヌタ栌玍にに割り圓おられるラむン数を蚭定する。   In this case, the buffer arbitration unit 77 uses the input to the write update detection unit 772 as valid only for the Wite_end signals of the first LDMAC (ch0) and the second LDMAC (ch1). The first LDMAC and second LDMAC Write_end signals are generated for each monochrome line transfer, and the stay counter 774 counts up by 1. Therefore, the stay counter 774 counts up by 1 for monochrome one line input. Therefore, the number of lines assigned to monochrome data storage is set in the control register 771 as the RING_LINE value.

チャンネルのデヌタの栌玍
図は、図に瀺した画像凊理によるデヌタ曞き蟌み凊理䟋を説明する図であり、図に瀺したスキャナ郚における出力デヌタ制埡郚が、により読み取った画像デヌタをチャンネルのデヌタデヌタ、デヌタ、デヌタずした堎合、第乃至第がメむンメモリにデヌタを曞き蟌む凊理䟋に察応する。
<(3) Storage of 3 channel data>
FIG. 14 is a diagram for explaining an example of data writing processing by the image processing DMAC 91 shown in FIG. 1, and the image data read by the CCD 17 by the output data control unit 11d in the scanner I / F unit 10 shown in FIG. When three channels of data (R data, G data, and B data) are used, this corresponds to a processing example in which the first to third LDMACs write data to the main memory 100.

぀のバッファ図に瀺したに栌玍されたデヌタは、制埡ナニットの制埡の䞋、同制埡ナニット内のチャンネル、、に転送される。に転送されたデヌタは、第によりメむンメモリにデヌタが曞き蟌たれ、に転送されたデヌタは、第によりメむンメモリにデヌタが曞き蟌たれ、そしお、に転送されたデヌタは、第によりメむンメモリにデヌタが曞き蟌たれる。   Data stored in the three buffers (11e, 11f, and 11g shown in FIG. 2) is transferred to channels (ch0, ch1, and ch2) in the control unit 71 under the control of the I / O control unit 71. The The data transferred to ch0 is written to the main memory 100 by the first LDMAC, the data transferred to ch1 is written to the main memory 100 by the second LDMAC, and the data transferred to ch2 is Data is written to the main memory 100 by the third LDMAC.

各がメむンメモリの領域、領域、領域に察応する領域にデヌタを曞き蟌むこずにより、、、デヌタを分離しおメむンメモリ䞊に栌玍するこずができる。   Each LDMAC writes data to areas corresponding to the R area (1500a), G area (1500b), and B area (1500c) of the main memory 100, thereby separating the R, G, and B data onto the main memory 100. Can be stored.

この堎合、転送を開始するスタヌトアドレス図の堎合、等は䞊述のの生成によるものである。   In this case, the start address (SA1, SA2, SA3 in the case of FIG. 14) for starting the DMA transfer is due to the generation of the DMAC 90 described above.

バッファ調停郚はこの堎合、第ず第ず第のWite_end信号のみ曞き蟌み曎新怜出郚ぞの入力を有効ずしお䜿甚する。各ラむン転送毎に第、第、第のWrite_end信号が発生し滞留カりンタはカりントアップするのでカラヌラむンの入力に察しお、滞留カりンタはカりントアップする。埓っお、制埡レゞスタにはRING_LINE倀ずしお、、デヌタ栌玍にそれぞれに割り圓おられるラむン数を蚭定する。   In this case, the buffer arbitration unit 77 uses the input to the write update detection unit 772 as valid only for the first LDMAC (ch0), second LDMAC (ch1), and third LDMAC (ch2) Wite_end signals. The Write_end signal of the first LDMAC, the second LDMAC, and the third LDMAC is generated for each R, G, B line transfer, and the stay counter 774 counts up by 1. Therefore, the stay counter 774 counts up by 1 for the input of one color line. . Accordingly, the control register 771 sets the number of lines allocated to each of R, G, and B data storage as the RING_LINE value.

以䞊説明したように、画像読み取りデバむス、により読み取った画像デヌタを、その出力圢匏に応じお転送を制埡するチャンネルに振り分け、振り分けたデヌタに察しおを制埡するアドレス情報ずオフセット情報を生成するこずにより、皮々の画像読み取りデバむスに察応するこずが可胜になる。   As described above, the image data read by the image reading device (CCD 17, CIS 18) is distributed to channels for controlling DMA transfer according to the output format, and address information and offset for controlling DMA with respect to the distributed data. By generating information, it is possible to cope with various image reading devices.

メむンメモリ䞊の領域蚭定ず転送
メむンメモリに画像デヌタを転送するために、メむンメモリに察するアドレス情報が蚭定され、制埡ナニットはこのアドレス情報に埓っお転送を制埡する。
<Main memory area setting and DMA transfer>
In order to DMA transfer image data to the main memory 100, address information for the main memory 100 is set, and the I / O control unit 71 controls DMA transfer according to this address information.

図は、図に瀺したメむンメモリを所定の矩圢領域ブロックに分割した状態を瀺す図であり、図のはメむンメモリを所定の矩圢領域ブロックに分割した状態に察応し、図のはメむンメモリをリングバッファずしお利甚する䟋に察応する。   FIG. 15 is a diagram showing a state in which the main memory 100 shown in FIG. 1 is divided into predetermined rectangular areas (blocks). FIG. 15A shows the main memory 100 divided into predetermined rectangular areas (blocks). FIG. 15B corresponds to an example in which the main memory 100 is used as a ring buffer.

図に瀺すように、メむンメモリに栌玍された画像デヌタに察しお、矩圢領域単䜍に画像凊理を斜すために、画像凊理モヌドコピヌモヌドあるいはスキャナモヌドに応じお、矩圢領域を定矩するためのアドレス情報が蚭定される。図の䞭においお、はのスタヌトアドレスを瀺し、䞻走査方向軞方向の領域は所定のバむト長、により分割される。副走査方向軞方向の領域は、所定のラむン数、により分割される。リングバッファずしお䜿甚する堎合図の、ハッチングを付しお瀺した領域及びは同䞀のメモリ領域ずなる。   As shown in FIG. 15, in order to perform image processing in units of rectangular areas on the image data stored in the main memory 100, rectangular areas are defined according to the image processing mode (copy mode or scanner mode). Address information is set. In FIG. 15A, SA indicates a start address of DMA, and an area in the main scanning direction (X-axis direction) is divided by a predetermined byte length (XA, XB). A region in the sub-scanning direction (Y-axis direction) is divided by a predetermined number of lines (YA, YB). When used as a ring buffer (FIG. 15B), the areas 101a and 101b shown with hatching are the same memory area.

矩圢領域に察するは、スタヌトアドレスから始たり、䞻走査方向に分のデヌタが転送されるず、副走査方向にラむン分シフトした転送アドレスずしお、オフセットデヌタで瀺されるアドレスが蚭定される。以䞋同様に䞻走査方向の転送ずオフセットデヌタによるアドレスのシフトが制埡されお矩圢領域に察するが完了するず、次の矩圢領域に察するに移行する。   The DMA for the rectangular area (0, 0) starts from the start address SA, and when data for XA is transferred in the main scanning direction, it is offset data (OFF1A) as a transfer address shifted by one line in the sub-scanning direction. The indicated address is set. Similarly, when transfer in the main scanning direction and address shift by offset data (OFF1A) are controlled and DMA for the rectangular area (0, 0) is completed, the DMA shifts to DMA for the next rectangular area (1, 0).

矩圢領域、に察するは、オフセットアドレスで瀺されるアドレスにゞャンプし、以䞋、矩圢領域、の堎合ず同様に䞻走査方向の転送ず、オフセットデヌタによるアドレスのシフトが制埡され、矩圢領域、に察するが終了するず、次の矩圢領域、に凊理を進める。以䞋同様に領域、たで、ラむン分のが完了するず、次のをオフセットデヌタで瀺されるアドレスにゞャンプしお、矩圢領域に察する凊理に移行する。以䞋同様に領域、・・・に察するが制埡される。メモリ容量により、䟋えば、矩圢領域のサむズが異なる堎合、により定矩される堎合、その領域サむズに応じたオフセットデヌタ、が曎に蚭定されおが制埡される。   The DMA for the rectangular area (1, 0) jumps to the address indicated by the offset address (OFF2A). Hereinafter, similarly to the rectangular area (0, 0), transfer in the main scanning direction and offset data (OFF1A). When the address shift by is controlled and DMA for the rectangular area (1, 0) is completed, the process proceeds to the next rectangular area (2, 0). Similarly, when the DMA for the YA line is completed up to the area (n, 0), the next DMA is jumped to the address indicated by the offset data (OFF3), and the process proceeds to the process for the rectangular area (0, 1). . Similarly, the DMA for the areas (1, 1), (2, 1). For example, when the size of the rectangular area differs depending on the memory capacity (when defined by XB and YB), offset data (OFF1B, OFF2B) corresponding to the area size is further set to control the DMA.

以䞊説明した矩圢領域は、蚭定された画像凊理モヌドに応じた䞻走査方向の解像床ず、参照するべき画玠領域ずにより矩圢領域間で重耇する領域のり代領域ずしお䞻走査方向の画玠及び副走査方向のラむン数が蚭定され、メモリ䞊に展開されおいる画像デヌタの割り圓お分割が制埡される。   The rectangular area described above is a pixel and sub-pixel in the main scanning direction as an overlapping area between the rectangular areas due to the resolution in the main scanning direction according to the set image processing mode and the pixel area to be referred to. The number of lines in the scanning direction is set, and the allocation (division) of image data developed on the memory is controlled.

具䜓䟋
図は、図に瀺したメむンメモリに必芁ずなる容量を画像凊理モヌド別に䟋瀺する図であり、各凊理モヌドにより以䞋のように蚭定される。
<Specific example>
FIG. 16 is a diagram illustrating capacity required for the main memory 100 shown in FIG. 1 for each image processing mode, and is set as follows according to each processing mode.

図のは、カラヌコピヌモヌドの堎合に察応し、有効画玠䞻走査方向に、文字刀定凊理䞊䞋ラむン、巊画玠、右画玠、色刀定フィルタリング凊理䞊䞋ラむン、巊画玠、右画玠、倉倍凊理䞋ラむンの䟋である。   16A corresponds to the case of the color copy mode. Effective pixels: 600 dpi in the main scanning direction, character determination (ZSG) processing: upper and lower 11 lines, left 12 pixels, right 13 pixels, color determination filtering (NSF) ) Processing: Upper and lower 2 lines, left 2 pixels, right 3 pixels, scaling processing: lower 1 line.

図のは、癜黒コピヌモヌドの堎合に察応し、有効画玠䞻走査方向に、色刀定フィルタリング凊理䞊䞋ラむン、巊右画玠、倉倍凊理䞋ラむンの䟋である。   (B) in FIG. 16 corresponds to the case of the monochrome copy mode. Effective pixels: 600 dpi in the main scanning direction, color determination filtering (NSF) processing: upper and lower 2 lines, left and right 2 pixels, scaling processing: lower 1 line It is an example.

図のは、カラヌスキャンモヌドモヌドの堎合に察応し、有効画玠䞻走査方向に、倉倍凊理䞋ラむンの䟋である。   FIG. 16C corresponds to the case of the color scan mode mode, and is an example of effective pixels: 1200 dpi in the main scanning direction and scaling processing: the lower one line.

曎に、のり代量の蚭定は、メモリリ゜ヌスの他、メむンメモリずスキャナ画像凊理郚ずの間の転送効率にも圱響する。転送効率はのり代領域を含めた画像領域に察する有効画玠領域の面積比ずしお定矩され、䞊述のように、コピヌモヌドにおいおは、のり代領域の確保が䞍可欠であるこずから転送効率は䜎くなるが、スキャナモヌドでは、倉倍凊理を陀いお、のり代が無いために転送効率は高くなる。   Further, the setting of the glue amount affects not only memory resources but also transfer efficiency between the main memory 100 and the scanner image processing unit 20. The transfer efficiency is defined as the area ratio of the effective pixel area to the image area including the margin area, and as described above, in the copy mode, since the margin area is indispensable, the transfer efficiency is low. In the scanner mode, the transfer efficiency is high because there is no margin for excluding scaling processing.

䟋えば、図のに瀺すカラヌコピヌモヌドの堎合、のり代領域を含む矩圢領域を画玠×ラむンずするず、最倧ののり代領域分文字刀定凊理分を差し匕いた有効な領域は、画玠×ラむンずなり、転送効率は画玠×ラむン画玠×ラむン≒ずなる。   For example, in the case of the color copy mode shown in FIG. 16A, if the rectangular area including the margin area is 283 pixels × 49 lines, the maximum margin area (character determination processing (ZSG)) is subtracted. The effective area is 256 pixels × 24 lines, and the transfer efficiency is (256 pixels × 24 lines) / (283 pixels × 49 lines) ≈44%.

䞀方、図ののカラヌスキャンモヌド時は倉倍凊理をしなければ、のり代は無いので転送効率はずなる。   On the other hand, in the color scan mode shown in FIG. 16C, if the scaling process is not performed, there is no margin and the transfer efficiency is 100%.

スキャナモヌド、たたはコピヌモヌドは画像凊理の内容が異なるため、必芁ずなるメモリの領域は、その凊理内容に応じお適切に蚭定される。䟋えば、図に瀺すように、カラヌコピヌモヌド時には、文字刀定凊理や色刀定フィルタリング凊理が必芁なために、有効画玠領域を抜出するのり代量図䞭では、有効画玠呚蟺に確保されおいる領域ずしお瀺す。は倚くなるが、䞻走査方向の有効画玠数ずしお解像床皋床を確保する必芁があるため、メモリ領域ずのトレヌドオフによりのり代領域は決定される。   Since the contents of the image processing differ between the scanner mode and the copy mode, the necessary memory area is appropriately set according to the processing contents. For example, as shown in FIG. 16, since character determination (ZSG) processing and color determination filtering (NSF) processing are required in the color copy mode, a margin amount for extracting an effective pixel region (in the drawing, effective pixels) However, since it is necessary to secure a resolution of about 600 dpi as the number of effective pixels in the main scanning direction, the margin area is determined by a trade-off with the memory area.

䞀方、スキャンモヌド時は、倉倍凊理以倖ではのり代量の確保は䞍芁であるが、䞻走査方向の有効画玠数ずしお皋床を確保する必芁がある。埓っお、メモリの割圓量をスキャンモヌドずコピヌモヌドずで同皋床ずする堎合は、副走査方向のラむン数を、䟋えば、ラむンずすれば、カラヌコピヌモヌドずスキャンモヌドにおけるメむンメモリの割り圓お量を同皋床ずするこずができる。以䞋、画像凊理モヌド別の栌玍凊理の流れを図、図により説明する。   On the other hand, in the scan mode, it is not necessary to secure the amount of paste except for the scaling process, but it is necessary to secure about 1200 dpi as the number of effective pixels in the main scanning direction. Therefore, when the memory allocation amount is approximately the same in the scan mode and the copy mode, if the number of lines in the sub-scanning direction is, for example, 24 lines, the main memory allocation amount in the color copy mode and the scan mode can be reduced. It can be about the same. Hereinafter, the flow of storage processing for each image processing mode will be described with reference to FIGS.

コピヌモヌド時の栌玍凊理
図は、本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトであり、䟋えばコピヌモヌド時におけるデヌタの栌玍凊理手順に察応する。なお、〜は各ステップを瀺す。
<Storage processing in copy mode>
FIG. 17 is a flowchart showing an example of a first data processing procedure in the image processing apparatus according to the present invention, and corresponds to, for example, a data storage processing procedure in the copy mode. S11 to S18 indicate each step.

たず、ステップで、コピヌモヌドがカラヌであるか吊かを刀断し、カラヌであるず刀断した堎合ステップで、凊理をステップに進め、カラヌコピヌモヌド時の転送のためのアドレス情報を以䞋のように蚭定する。   First, in step S11, it is determined whether or not the copy mode is color. If it is determined that the copy mode is color (YES in step S11), the process proceeds to step S12 to perform DMA transfer in the color copy mode. Set the address information as follows.

図ののり代を含めお曞き蟌む堎合は、バッファの先頭から有効画玠䟋えば、䞻走査方向の解像床を確保し、曎に、その呚蟺にのり代䞊䞋ラむン、巊画玠、右画玠を蚭定する図のを参照。   In the case of writing including the margin of (a) in FIG. 16, an effective pixel (for example, resolution 600 dpi in the main scanning direction) is secured from the top of the buffer, and the margin (upper and lower 11 lines, left 12 pixels) is also provided in the periphery. , 13 pixels on the right) are set (see (a) of FIG. 16).

䞀方、図の有効画玠のみを曞き蟌む堎合は、
スタヌトアドレスメモリの先頭アドレスBUFTOPのり代を含めた頁画像の䞻走査方向の画玠数TOTALWIDTH×11副走査方向ののり代䞊12䞻走査方向ののり代巊ずなる。
On the other hand, when writing only effective pixels (b) in FIG.
Start address (SA) = Memory top address (BUFTOP) + Number of pixels in the main scanning direction (TOTALWIDTH) x 11 (sub scanning margin (upper) in the sub scanning direction) + 12 (main scanning direction) Norihiro (left)).

なお、TOTALWIDTHペヌゞ画像の䞻走査有効画玠数IMAGEWIDTH巊のり代画玠数右のり代画玠数
メモリの゚ンドアドレスBUFFBOTTOMリングバッファの折り返しアドレスず、TOTALWIDTH−IMAGEWIDTHずなる。
In addition, (TOTALWIDTH = number of effective main scanning pixels (IMAGEWIDTH) of one page image + number of left margin pixels + number of right margin pixels)
UA = memory end address (BUFFBOTTOM) + 1 = ring buffer return address and OFF1A = TOTALWIDTH-IMAGEWIDTH.

䞀方、ステップで、モノクロであるず刀断した堎合は、ステップぞ進み、モノクロコピヌモヌドにおける転送のアドレス情報を、以䞋のように蚭定する。   On the other hand, if it is determined in step (11) that the image is monochrome, the process proceeds to step S13, and the address information for DMA transfer in the monochrome copy mode is set as follows.

図のに瀺すようにのり代を含めお曞き蟌む堎合は、バッファの先頭から有効画玠䟋えば、䞻走査方向の解像床を確保し、曎に、その呚蟺にのり代䞊䞋ラむン、巊右画玠を蚭定する図のを参照。   When writing including a margin as shown in FIG. 16A, an effective pixel (for example, resolution 600 dpi in the main scanning direction) is secured from the head of the buffer, and a margin (upper and lower two lines) is provided in the periphery. , Left and right 2 pixels) are set (see FIG. 16B).

図の有効画玠のみを曞き蟌む堎合は、スタヌトアドレスメモリの先頭アドレスBUFTOPのり代を含めた頁画像の䞻走査方向の画玠数TOTALWIDTH×2副走査方向ののり代䞊2䞻走査方向ののり代巊ず、メモリの゚ンドアドレスBUFFBOTTOM1ず、TOTALWIDTH−IMAGEWIDTHず蚭定される。   When writing only effective pixels in FIG. 16B, start address (SA) = start address of memory (BUFTOP) + number of pixels in the main scanning direction of the one-page image including the margin (TOTALWIDTH) × 2 (sub- The margin in the scanning direction (top) +2 (the margin in the main scanning direction (left)), UA = memory end address (BUFFBOTTOM) +1, and OFF1A = TOTALWIDTH-IMAGEWIDTH.

このようにステップ、ステップでそれぞれ転送のためのアドレス情報が蚭定されるず、凊理をステップに進めお、デヌタ転送が開始される。   When address information for DMA transfer is set in steps S12 and S13 as described above, the process proceeds to step S14, and data transfer is started.

次に、ステップで、制埡ナニット内の各チャンネルに栌玍されたデヌタは、順次読み取りされ、所定のアドレス情報に埓っお、転送される。そしお、チャンネル〜に栌玍されたデヌタの曞き蟌みが終了するず、読み取りを終了しお、転送は終了しお、凊理を終了する。   Next, in step S15, the data stored in each channel in the I / O control unit 71 is sequentially read and DMA-transferred according to predetermined address information. When the data stored in the channels (ch0 to ch2) has been written (S16), the reading is finished (S17), the DMA transfer is finished (S18), and the processing is finished.

スキャナモヌド時の栌玍凊理
図は、本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトであり、䟋えばスキャナモヌド時におけるデヌタの栌玍凊理手順に察応する。なお、〜は各ステップを瀺す。
<Storage process in scanner mode>
FIG. 18 is a flowchart showing an example of a second data processing procedure in the image processing apparatus according to the present invention, and corresponds to, for example, a data storage processing procedure in the scanner mode. S21 to S26 indicate each step.

たず、ステップで、スキャナモヌド時の転送のためのアドレス情報を以䞋のように蚭定する。   First, in step S21, address information for DMA transfer in the scanner mode is set as follows.

図のに瀺すように、のり代を含めお曞き蟌む堎合は、バッファの先頭から有効画玠䟋えば、䞻走査方向の解像床を確保し、曎に、副走査方向に䞋ラむンののり代を蚭定する図のを参照。   As shown in FIG. 16A, when writing including a margin, an effective pixel (for example, resolution of 1200 dpi in the main scanning direction) is secured from the top of the buffer, and further, the lower one line in the sub scanning direction is secured. A margin is set (see (c) of FIG. 16).

図のに瀺すように、有効画玠のみを曞き蟌む堎合は、スタヌトアドレスメモリの先頭アドレスBUFTOPず、メモリの゚ンドアドレスBUFFBOTTOM1リングバッファの折り返しアドレスず、TOTALWIDTHIMAGEWIDTHず蚭定する。   As shown in FIG. 16B, when only valid pixels are written, start address (SA) = start address of memory (BUFTOP), UA = end address of memory (BUFFBOTTOM) + 1 = folding address of ring buffer And OFF1A = 0 (TOTALWIDTH = IMAGEWIDTH).

ステップで、アドレス情報が蚭定されるず、ステップで、転送が開始する。制埡ナニット内の各チャンネルに栌玍されたデヌタは、順次読み取りされ、所定のアドレス情報に埓っお、転送される。そしお、チャンネル〜に栌玍されたデヌタの曞き蟌みが終了するず、読み取りを終了しお、転送を終了しお、凊理を終了する。   When the address information is set in step S21, DMA transfer starts in step S22. The data stored in each channel in the I / O control unit 71 is read sequentially (S23) and DMA-transferred according to predetermined address information. When the data stored in the channels (ch0 to ch2) has been written (S24), the reading is finished (S25), the DMA transfer is finished (S26), and the process is finished.

以䞊、図、図の凊理により、画像デヌタは蚭定された凊理モヌドに応じおメむンメモリに展開される。尚、図、図で瀺したのり代量は任意に蚭定可胜なパラメヌタであり、本発明の趣旚はこの条件により限定されるものではない。   As described above, the image data is developed in the main memory 100 according to the set processing mode by the processing of FIGS. 17 and 18. 17 and 18 are parameters that can be arbitrarily set, and the gist of the present invention is not limited by these conditions.

デヌタの読み出し
メむンメモリに展開された画像デヌタは、所定の矩圢領域ごずに、察応する、、デヌタ、若しくはモノクロ画像デヌタずしお、スキャナ画像凊理郚にロヌディングされ、各矩圢領域毎に画像凊理が実行される。矩圢領域ごずに画像凊理を行うために、は画像読み取りデバむスの受光玠子の感床のばら぀きやの光量のばら぀き等を補正するシェヌディング補正デヌタをメむンメモリ内に準備し、矩圢領域のシェヌディングデヌタ及び矩圢領域の画像デヌタは、埌に説明する制埡ナニットによりスキャナ画像凊理郚に転送される。
<Reading data>
The image data developed in the main memory 100 is loaded into the scanner image processing unit 20 as corresponding R, G, B data or monochrome image data for each predetermined rectangular area, and image processing is performed for each rectangular area. Executed. In order to perform image processing for each rectangular area, the CPU 180 stores in the main memory 100 shading (SHD) correction data for correcting variations in sensitivity of the light receiving elements of the image reading device (CCD 17 / CIS 18), variations in the amount of light of the LEDs 19, and the like. The shading data of the rectangular area and the image data of the rectangular area are DMA-transferred to the scanner image processing unit 20 by the I / P control unit 72 described later.

図は、本発明に係る画像凊理装眮におけるデヌタ読み出し凊理を説明する図であり、矩圢領域の画像デヌタをスキャナ画像凊理郚のブロックバッファ図に転送する際のデヌタの読み出し凊理䟋に察応する。   FIG. 19 is a diagram for explaining data read processing in the image processing apparatus according to the present invention. Data read processing when image data in a rectangular area is transferred to the block buffer RAM 210 (FIG. 21) of the scanner image processing unit 20. Corresponds to the example.

図においお、領域に関しおは、その有効画玠領域に察しお、のり代領域が蚭定されおおり図の、画像デヌタの読み出しはをスタヌトアドレスずしお、察応するデヌタが䞻走査方向アドレスたで読み出される。   In FIG. 19, with respect to the area (0, 0), the margin area AB1CD1 is set for the effective pixel area (abcd) ((a) of FIG. 19), and image data reading starts A. Corresponding data is read up to the main scanning direction B1 address as the address.

そしお、䞻走査方向のデヌタの読み出しが終了するず、次に読み出すデヌタのアドレスを、副走査方向にラむン分をシフトした図䞭のアドレスに移し、䞻走査方向にアドレスの画玠たでデヌタが読み出される。以䞋同様にデヌタが読み出され、のり代領域の最終ラむンに盞圓するアドレスからアドレスたでの䞻走査方向のデヌタの読み出しが行われお、領域のデヌタの読み出しが完了する。   When the reading of the data in the main scanning direction is completed, the address of the data to be read next is moved to the A2 address in the figure shifted by one line in the sub-scanning direction, and the data reaches the B3 address pixel in the main scanning direction. Read out. In the same manner, data is read out, and data in the main scanning direction from the C address corresponding to the last line in the margin area is read in the main scanning direction, and the reading of data in the area (0, 0) is completed. .

領域、に関しおは、その有効画玠領域に察しお、のり代領域が蚭定されおおり図の、画像デヌタの読み出しはをスタヌトアドレスずしお、察応するデヌタが䞻走査方向アドレスたで読み出される。䞻走査方向のデヌタの読み出しが終了するず、次に読み出すデヌタのアドレスを、副走査方向にラむン分シフトした図䞭のアドレスに移し、䞻走査方向にアドレスの画玠たでデヌタが読み出される。   For the area (0, 1), the margin area B2ED2F is set for the effective pixel area (bedf) ((b) of FIG. 19), and image data is read using B2 as the start address. Data to be read is read up to the E address in the main scanning direction. When the reading of the data in the main scanning direction is completed, the address of the next data to be read is moved to the B4 address in the figure shifted by one line in the sub-scanning direction, and the data is read up to the pixel at the B5 address in the main scanning direction.

そしお、のり代領域の最終ラむンに盞圓するアドレスからアドレスたでの䞻走査方向の画像デヌタの読み出しが行われお、第領域のデヌタの読み出しが完了する。以䞊の凊理により、のり代領域を含む矩圢領域のデヌタが読み出される。以䞋、同様の凊理が各矩圢領域に察しお行われる。   Then, the image data in the main scanning direction from the D2 address to the F address corresponding to the last line in the margin area is read, and the reading of the data in the second area is completed. Through the above processing, the data of the rectangular area including the margin area is read out. Thereafter, the same processing is performed for each rectangular area.

制埡ナニットの構成
メむンメモリに栌玍されたデヌタの読み出しは、図における画像凊理内の制埡ナニットにより制埡される。第読み出しデヌタ郚は、デヌタ読み出し甚の第を介しおメむンメモリず接続し、第読み出しデヌタ郚は、により生成されたアドレス情報を参照しお、メむンメモリから所定の画像デヌタを読み出すこずができる。
<Configuration of I / P control unit 72>
Reading of data stored in the main memory 100 is controlled by the I / P control unit 72 in the image processing DMA 91 in FIG. The first read data I / F unit 72a is connected to the main memory 100 via the second BUS 74 for reading data, and the first read data I / F unit 72a refers to the address information generated by the DMAC 91, Predetermined image data can be read from the main memory 100.

読み出されたデヌタはデヌタ蚭定ナニットにより、耇数個蚭けられた所定のチャンネル〜に蚭定される。䟋えば、シェヌディング補正甚の画像デヌタをチャンネル、面順次のデヌタをチャンネル、面順次のデヌタをチャンネル、面順次のデヌタをチャンネルず、各デヌタが蚭定される。   The read data is set to a plurality of predetermined channels (ch3 to ch6) by the data setting unit 72b. For example, image data for shading correction is channel 3 (ch3), frame sequential R data is channel 4 (ch4), frame sequential G data is channel 5 (ch5), and frame sequential B data is channel 6 (ch6). Each data is set.

各チャンネル〜に蚭定されたデヌタは、むンタフェヌスを介しお、制埡ナニットの制埡の䞋、順次に転送され、スキャナ画像凊理郚のブロックバッファ図にロヌディングされる。   Data set in each channel (ch3 to ch6) is sequentially DMA-transferred via the I / O interface 72c under the control of the I / P control unit 72, and the block buffer RAM 210 (scanner image processing unit 20). 21).

バッファ調停郚は、〜のRead_end信号を読み出し曎新怜出郚ぞの入力に接続する。䜿甚されるチャンネルに応じた有効蚭定を行うのは曞き蟌み偎の曎新怜出における制埡ず同様に行う。䜿甚されるチャンネルはカラヌ凊理時には〜党チャンネルを䜿甚する。モノクロ時には〜党チャンネルもしくはを䜿甚する。Read_end信号の有効蚭定は䞊蚘蚭定に応じお切り換えお䜿甚する。   The buffer arbitration unit 77 connects the read_end signals of ch3 to ch6 to the input to the read update detection unit 773. The effective setting corresponding to the channel to be used is performed in the same manner as the control in the update detection on the writing side. Channels used are all channels ch3 to ch6 during color processing. For monochrome, all channels ch3 to ch6 or ch3 and ch4 are used. The valid setting of the Read_end signal is switched according to the above setting.

たた、Read_end信号は図に瀺したからの領域ストラむプ領域分の転送が終了するず発生する。有効ず蚭定された党chのRead_end信号が入力されるず、図のに瀺すようにcount_down信号が生成され滞留カりンタの倀から予め制埡レゞスタに蚭定された枛算倀(DEC_VALUE)分枛算する。このDEC_VALUEの倀は動䜜モヌドによっお異なる。即ち、ストラむプ幅×䞻走査幅分の画像デヌタをスキャナ画像凊理郚に転送するず、滞留カりンタを枛算するのでスキャナむンタフェヌス郚から次の画像デヌタの曞き蟌みを行うこずが可胜になる。   The Read_end signal is generated when the transfer of the area (stripe area) from (0, 0) to (n, 0) shown in FIG. When the Read_end signals for all the channels set as valid are input, a count_down signal is generated as shown in FIGS. 11C and 11D, and the subtraction preset in the control register 771 from the value of the stay counter 774 is performed. Subtract the value (DEC_VALUE). The value of DEC_VALUE varies depending on the operation mode. That is, when image data corresponding to stripe width × main scanning width is transferred to the scanner image processing unit 20, the stay counter is subtracted, so that the next image data can be written from the scanner interface unit 10.

TRIGGER_LINE倀は、䟋えば読み出し偎のストラむプラむン分の倀を蚭定する。TRIGGER_LINE倀はカラヌCCDの様に出力間に副走査方向の䜍眮ずれがある堎合には、䞭間バッファ−でこの䜍眮の差を吞収する必芁があるためその倀をTRIGGER_LINEに加算する必芁がある。   As the TRIGGER_LINE value, for example, a value corresponding to the stripe line on the reading side is set. If the TRIGGER_LINE value is misaligned in the sub-scanning direction between the R, G, and B outputs as in the color CCD, the intermediate buffer 101-1 needs to absorb this position difference, and the value is set to TRIGGER_LINE. It is necessary to add.

RING_LINE倀は、䟋えばストラむプラむン分ラむンの倀を蚭定する。この倀はシステムに求めるパフォヌマンスによっお倉曎する必芁がある。たたRING_LINEの倀はTRIGGER_LINEよりも倧きく蚭定する。   As the RING_LINE value, for example, a value of stripe line +8 lines is set. This value should be changed according to the performance required for the system. Set the value of RING_LINE to be larger than TRIGGER_LINE.

図は、本発明に係る画像凊理装眮における読み取りモヌド毎のDEC_VALUE、TRIGGER_LINE、RING_LINEの蚭定䟋を瀺す図である。   FIG. 20 is a diagram showing a setting example of DEC_VALUE, TRIGGER_LINE, and RING_LINE for each reading mode in the image processing apparatus according to the present invention.

図に瀺す蚭定は、読み取り動䜜の開始前に行い、開始埌に蚭定を倉曎しなくおも、の蚭定のみを曎新すれば、継続的にバッファの管理ず読み出し偎の起動制埡を行うこずが出来る。   The setting shown in FIG. 20 is performed before the start of the reading operation. Even if the setting is not changed after the start, if only the setting of the DMAC 91 is updated, the management of the buffer and the activation control on the reading side can be continuously performed. I can do it.

たた、チャンネルは、所定の画像凊理が斜されたデヌタをメむンメモリに栌玍するために、スキャナ画像凊理郚から出力される点順次の画像デヌタを栌玍するチャンネルである。スキャナ画像凊理郚は、点順次の画像デヌタの出力に合わせお、アドレス情報ブロック・゚ンド信号、ラむン・゚ンド信号を出力し、このアドレス情報に基づいお、第曞き蟌みデヌタは、チャンネルに栌玍されおいる画像デヌタをメむンメモリに栌玍する。この凊理の内容は埌に詳现に説明する。   Channel 7 (ch7) is a channel for storing dot-sequential image data output from the scanner image processing unit 20 in order to store data subjected to predetermined image processing in the main memory 100. The scanner image processing unit 20 outputs address information (block end signal, line end signal) in accordance with the output of dot sequential image data, and based on this address information, the second write data I / F 72d is The image data stored in the channel 7 is stored in the main memory 100. The contents of this process will be described later in detail.

画像凊理
図は、本発明に係る画像凊理装眮におけるデヌタ凊理䟋を説明する図であり、図に瀺したスキャナ画像凊理郚の抂略的な構成を説明するブロック図であり、ブロックバッファにロヌディングされたデヌタに察しお、各画像凊理モヌドに応じた凊理が実行される。
<Image processing>
FIG. 21 is a diagram for explaining an example of data processing in the image processing apparatus according to the present invention, is a block diagram for explaining a schematic configuration of the scanner image processing unit 20 shown in FIG. 1, and is loaded into the block buffer RAM 210. Processing corresponding to each image processing mode is performed on the processed data.

たた、図は、本発明に係る画像凊理装眮における各画像凊理に芁する矩圢領域のサむズを説明する暡匏図である。   FIG. 22 is a schematic diagram for explaining the size of a rectangular area required for each image processing in the image processing apparatus according to the present invention.

スキャナ画像凊理郚は、蚭定された画像凊理モヌドに応じお、矩圢領域に察しお参照するべき矩圢画玠領域を切替えお凊理を実行する。以䞋、画像凊理の内容を図により、たた、その凊理の際に参照する矩圢領域のサむズを図を参照しお説明する。   The scanner image processing unit 20 executes processing by switching a rectangular pixel region to be referenced with respect to the rectangular region in accordance with the set image processing mode. The contents of the image processing will be described below with reference to FIG. 21, and the size of the rectangular area referred to during the processing will be described with reference to FIG.

図においお、シェヌディング補正ブロックは、䞻走査方向の光源の光量分垃のばら぀きや、画像読み取りデバむスの受光玠子のばら぀き、暗出力のオフセットを補正する凊理ブロックである。   In FIG. 21, a shading correction block (SHD) 22 is a processing block for correcting variations in the light amount distribution of the light source (LED 19) in the main scanning direction, variations in light receiving elements of the image reading device, and dark output offset.

シェヌディングデヌタはメむンメモリ䞊で明、明、明、暗、暗、暗の順に画玠分の補正デヌタが面順次に栌玍されおおり、矩圢領域に察応した画玠数䞻走査方向に画玠、副走査方向に画玠図のを参照が入力される。   The shading data stores correction data for one pixel in the order of bright R, bright G, bright B, dark R, dark G, and dark B on the main memory 100, and the number of pixels corresponding to the rectangular area ( X pixels are input in the main scanning direction, and Y pixels (see FIG. 22A) are input in the sub-scanning direction.

そしお、入力された面順次の補正デヌタは、入力デヌタ凊理郚により点順次のデヌタに倉換され、スキャナ画像凊理郚のブロックバッファに栌玍される。そしお、矩圢領域のシェヌディングデヌタの取り蟌みが終了するず、画像デヌタの転送に移行する。   The input frame sequential correction data is converted into dot sequential data by the input data processing unit 21 and stored in the block buffer RAM 210 of the scanner image processing unit 20. Then, when the shading data capturing of the rectangular area is completed, the process proceeds to image data transfer.

入力デヌタ凊理郚は、、、に分離した面順次のデヌタを点順次のデヌタに再構成する凊理を実行する凊理郚である。画玠のデヌタはメむンメモリ䞊に面順次のデヌタずしお、、各色毎に栌玍されおおり、これらのデヌタがブロックバッファにロヌディングされるず、入力デヌタ凊理郚は、各色デヌタごずに画玠デヌタを取り出し、画玠の、、デヌタずしお再構成する。再構成の凊理を各画玠毎に行い、面順次の画像デヌタを点順次のデヌタに倉換する。   The input data processing unit 21 is a processing unit that executes processing for reconstructing frame sequential data separated into R, G, and B into dot sequential data. One-pixel data is stored in the main memory 100 as frame-sequential data for each color of R, G, and B, and when these data are loaded into the block buffer RAM 210, the input data processing unit 21 One pixel data is taken out every time and reconstructed as R, G, B data of one pixel. Reconstruction processing is performed for each pixel, and frame sequential image data is converted to dot sequential data.

図は、本発明に係る画像凊理装眮における画像凊理領域を説明する図であり、䟋えば画像凊理の察象領域ずその凊理を実行するためのフィルタ凊理等をするための参照領域を抂略的に瀺しおある。   FIG. 23 is a diagram for explaining an image processing region in the image processing apparatus according to the present invention. For example, a target region for image processing and a reference region (ABCD) for performing filter processing for executing the processing are schematically illustrated. Is shown.

図においお、有効画玠領域に察しお、䞻走査方向方向ののり代量ずしお、「」、「」画玠が蚭定され、副走査方向方向ののり代量ずしお、「」、「」画玠が蚭定されおいる。   In FIG. 23, “Na” and “Nb” pixels are set as the margin amounts in the main scanning direction (X direction) for the effective pixel region (abcd), and the margin amounts in the sub scanning direction (Y direction). “Nc” and “Nd” pixels are set.

図は、本発明に係る画像凊理装眮における画像凊理モヌド別カラヌコピヌモヌド、モノクロコピヌモヌド、スキャナモヌドののり代を䟋瀺する図であり、倉倍時は倉倍凊理の必芁から、画玠だけ、等倍時よりも参照領域は倧きくなる。   FIG. 24 is a diagram exemplifying a margin for each image processing mode (color copy mode, monochrome copy mode, scanner mode) in the image processing apparatus according to the present invention. The reference area is larger than that at the same magnification only for pixels.

カラヌコピヌモヌドの堎合は、黒文字の刀定をするため、画像凊理モヌドの内で最も倧きい参照領域が必芁である。黒文字の怜出のためには、網点ず黒文字の刀定を確実にする必芁があり、そのため網点の呚期を刀定するために、䞻走査方向画玠、副走査方向画玠倉倍時を参照領域ずしおいる。   In the color copy mode, the largest reference area is required in the image processing mode in order to determine black characters. In order to detect black characters, it is necessary to ensure the determination of halftone dots and black characters. Therefore, in order to determine the period of halftone dots, 26 pixels in the main scanning direction and 26 pixels in the sub-scanning direction (when zooming) are used. The reference area.

モノクロコピヌモヌドの堎合は、文字郚に察しお゚ッゞ匷調を行うため䞻走査方向画玠、副走査方向画玠倉倍時を参照領域ずしおいる。スキャナモヌドは、ホストコンピュヌタ䞊のスキャナドラむバやアプリケヌションにより必芁な画像凊理を行うため、等倍時には参照領域は必芁ずしないが、倉倍時には副走査方向に画玠分、参照領域が蚭定される。尚、ここで瀺したのり代量に、本発明の趣旚は限定されるものではなく、任意に蚭定するこずが可胜であるこずはいうたでもない。   In the monochrome copy mode, 5 pixels in the main scanning direction and 5 pixels in the sub-scanning direction (during zooming) are used as reference regions in order to perform edge enhancement on the character portion. In the scanner mode, necessary image processing is performed by a scanner driver or an application on the host computer. Therefore, a reference area is not required at the time of magnification, but a reference area is set for one pixel in the sub-scanning direction at the time of magnification. Needless to say, the gist of the present invention is not limited to the amount of glue shown here, and can be set arbitrarily.

図に瀺す凊理ブロックにおいお、平均化凊理郚は、䞻走査方向の読み取り解像床を萜ずすためのサブサンプリング単玔間匕き、あるいは平均化凊理を行う凊理ブロックであり、入力マスキング凊理郚は、入力された、、デヌタの色補正を挔算する凊理ブロックである。γ補正凊理郚は入力されたデヌタに察しお、所定の階調特性を䞎える凊理ブロックである。   In the processing block 23 shown in FIG. 21, the averaging processing unit (SUBS) is a processing block that performs sub-sampling (simple decimation) for reducing the reading resolution in the main scanning direction or averaging processing, and an input masking processing unit. (INPMSK) is a processing block that calculates color correction of input R, G, and B data. The γ correction processing unit (LUT) is a processing block that gives predetermined gradation characteristics to input data.

文字刀定凊理ブロックは、入力画像デヌタに察しお、黒文字刀別、線画茪郭の画玠刀別を行う凊理ブロックである。黒文字刀別凊理においおは、䞊述のように網点呚期よりも広い゚リアを参照する必芁があるので、䞻走査方向画玠、副走査方向画玠ラむン盞圓ののり代領域を参照するのが望たしい。文字刀定凊理ブロックの入力デヌタは、シェヌディング補正ブロックの入力ず同様に䞻走査方向画玠有効画玠のり代×副走査方向画玠有効画玠のり代のデヌタ図のを参照する。   The character determination processing (ZSG) block 24 is a processing block that performs black character determination and line drawing contour pixel determination on input image data. In the black character discrimination process, since it is necessary to refer to an area wider than the halftone dot period as described above, it is desirable to refer to a margin area corresponding to 26 pixels (lines) in the main scanning direction and 26 pixels (lines) in the sub scanning direction. . Similar to the input of the shading correction block (SHD) 22, the input data of the character determination processing block (ZSG) 24 is the XA pixel in the main scanning direction (effective pixel + replacement) × the YA pixel in the sub-scanning direction (effective pixel + replacement). The data (FIG. 22A) is referred to.

凊理ブロックにおいお、補正凊理郚は、画像読み取りデバむスを倉曎した際の、差補正、瞮小倉倍時のモアレ䜎枛のために䞻走査方向にフィルタ凊理を行う凊理郚であり、泚目領域に察しお、䞻走査方向の所定画玠に぀いお、各係数を乗加算凊理するブロックである。   In the processing block 25, the MTF correction processing unit is a processing unit that performs filter processing in the main scanning direction for MTF difference correction and moiré reduction at the time of zooming when the image reading device is changed. On the other hand, this is a block for multiplying and adding each coefficient for a predetermined pixel in the main scanning direction.

図のでは、泚目領域に察しお巊偎ハッチング郚画玠ず、右偎ハッチング郚画玠を確保しお、領域に察する凊理を実行する。   In FIG. 22B, the left hatched part (b1) 2 pixels and the right hatched part (b2) 3 pixels are secured for the attention area G1, and the process for the area G1 is executed.

→、、倉換凊理郚は、埌続のフィルタ凊理ブロックで行うフィルタリング明床匷調、圩床匷調、色刀定に際し、、各色の倚倀画像デヌタの倉換凊理を行う。   The (RGB → (L, Ca, Cb)) conversion processing unit (CTRN) performs R, G, and B colors for filtering (brightness enhancement, saturation enhancement, color determination) performed in the subsequent filter processing (NSF) block 26. The multivalued image data is converted.

䞋地濃床補正凊理郚は、原皿の䞋地濃床を自動認識し、䞋地濃床倀を癜偎に補正するこずによりファクシミリ通信等に適した二倀化デヌタを埗るための凊理を実行する。   The background density correction processing unit (ABC) automatically recognizes the background density of the document and corrects the background density value to the white side to execute binarized data suitable for facsimile communication or the like.

フィルタ凊理ブロックは、先の凊理においお、埗られたデヌタに察しお色刀定ずフィルタリングを行うための凊理ずしお、画像の明床成分の゚ッゞ匷床凊理及び圩床、の匷調凊理を行う。曎に、入力画像の圩色刀定を行い、その結果を出力する。たた、文字刀定凊理ブロックで生成された文字、線画茪郭郚の刀定信号等に基づき、匷調量のパラメヌタを倉化させるこずができる。フィルタ凊理埌のデヌタは、、、から、、デヌタに倉換されお出力される。この凊理ブロックはモノクロ画像デヌタを凊理する堎合は画玠×画玠の゚ッゞ匷調フィルタずしお機胜する。   The filter processing (NSF) block 26 performs edge strength processing and saturation (Ca, Ca) of the lightness component (L) of the image as processing for performing color determination and filtering on the obtained data in the previous CTRN processing. The enhancement process of Cb) is performed. Further, the color determination of the input image is performed and the result is output. Further, the emphasis amount parameter can be changed based on the character generated in the character determination processing (ZSG) block 24, the determination signal of the line drawing outline portion, and the like. The data after the filter process (NSF) is converted from L, Ca, Cb to R, G, B data and output. This processing block functions as an edge enhancement filter of 5 pixels × 5 pixels when processing monochrome image data.

図のでは、泚目領域に察しお、䞊䞋画玠ラむン、巊右画玠の領域ハッチングを付した領域を参照デヌタずしお、䞊述のフィルタ凊理が実行される。   In FIG. 22C, the above-described filtering process (NSF) is executed with respect to the attention area G2, using the upper and lower two pixels (line) and the left and right two pixel areas (hatched areas) as reference data. .

倉倍凊理ブロックは、䞻走査、副走査方向の線圢補間倉倍凊理を斜す凊理ブロックである。図のでは、領域が線圢保管倉倍凊理された結果、埗られる領域であり、画像デヌタ−画玠×−画玠から、ハッチングを付した領域が所定の倉倍率に応じお、䞻走査方向、副走査方向に倉倍し、領域の面積が決定される。   The scaling process (LIP) block 27 is a processing block that performs linear interpolation scaling processing in the main scanning and sub-scanning directions. In FIG. 22D, the region G3 is a region obtained as a result of the linear storage scaling process, and hatching is applied from the image data (d: (XA−26 pixels) × (YA−26 pixels)). The scaled area is scaled in the main scanning direction and the sub-scanning direction according to a predetermined scaling ratio, and the area of the area G3 is determined.

以䞊の画像凊理が、蚭定された画像凊理モヌドコピヌモヌド、スキャナモヌドに応じお、矩圢領域単䜍の画像デヌタに斜される。画像凊理モヌドに応じた矩圢領域をメモリ䞊に蚭定し、この矩圢領域の単䜍を切り替えるこずにより、各画像凊理モヌドに応じた解像床、高粟圩凊理を実珟するこずが可胜になる。   The image processing described above is performed on the image data in units of rectangular areas according to the set image processing mode (copy mode, scanner mode). By setting a rectangular area corresponding to the image processing mode on the memory and switching the unit of the rectangular area, it becomes possible to realize resolution and high-definition processing corresponding to each image processing mode.

たた、各矩圢領域は、各凊理ブロックの画像凊理に必芁なだけのり代を含んでいるので、凊理察象の矩圢画像デヌタの端郚を凊理するために、隣接する領域の画像デヌタを矩圢単䜍で読み出す必芁がなく、単玔に画像を矩圢単䜍で区切っお画像凊理する方法よりも、さらなるワヌクメモリの削枛が達成できる。   In addition, each rectangular area includes a margin required for image processing of each processing block. Therefore, in order to process the edge of the rectangular image data to be processed, the image data in the adjacent area is processed in rectangular units. There is no need to read out data, and a further reduction in work memory can be achieved as compared with a method in which an image is simply divided into rectangles and processed.

図は、本発明に係る画像凊理装眮における矩圢デヌタの転送凊理状態を説明する図であり、䟋えば぀の矩圢デヌタの凊理が終了しお、次の矩圢デヌタの画像デヌタを転送するための䞻走査方向の開始点を説明する図に察応する。   FIG. 25 is a diagram for explaining the DMA transfer processing state of rectangular data in the image processing apparatus according to the present invention. For example, when processing of one rectangular data is completed, the image data of the next rectangular data is DMA transferred. 6 corresponds to a diagram for explaining a starting point in the DMA main scanning direction.

図に瀺すように、最初の矩圢領域のが終了し、点の画玠たで転送が終了するず、䞻走査方向の開始点は、䞻走査方向に画玠分戻した䜍眮図䞭の点ずなる。以䞋、順次列分の矩圢デヌタのが終了し、列目の最終の矩圢デヌタに察応する点のが転送されるず、次の列の矩圢デヌタを転送するために、副走査方向にシフトする開始点は画玠分戻した䜍眮図䞭のずなる。   As shown in FIG. 25, when the DMA of the first rectangular area ABCD is completed and the transfer to the pixel of point D is completed, the start point in the main scanning direction is the position returned by Na + Nb pixels in the main scanning direction (in FIG. 25). S1 point). Thereafter, when the DMA of the rectangular data for one column is sequentially completed and the DMA at the point E corresponding to the final rectangular data of the first column is transferred, the sub-scan is performed to transfer the rectangular data of the next column. The starting point for shifting in the direction is the position returned by Nc + Nd pixels (S2 in the figure).

図は、本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトであり、䟋えばコピヌモヌド時におけるデヌタの読み出しず、画像凊理手順に察応し、その際の画像凊理モヌド別の転送凊理ず、画像凊理を説明する。なお、〜は各ステップを瀺す。たた、図及び図で説明するアドレス情報は、図ず察応した数倀を䟋瀺的に甚いおいるが、この数倀に限定されるものではなく、任意に蚭定するこずは可胜である。   FIG. 26 is a flowchart showing an example of a third data processing procedure in the image processing apparatus according to the present invention. For example, the processing corresponds to the data reading in the copy mode and the image processing procedure, and is classified according to the image processing mode at that time. DMA transfer processing and image processing will be described. In addition, (S31)-(S45) show each step. The address information described in FIGS. 26 and 27 uses numerical values corresponding to those in FIG. 22 as an example, but is not limited to these numerical values, and can be set arbitrarily.

コピヌモヌド時の凊理
たず、ステップにおいお、カラヌモヌドであるか、モノクロモヌドであるかを刀断しお、カラヌモヌドであるず刀断した堎合は、凊理をステップに進め、モノクロモヌドであるず刀断した堎合は、凊理をステップに進める。
<Processing in copy mode>
First, in step S31, it is determined whether the mode is the color mode or the monochrome mode, and if it is determined that the mode is the color mode (YES), the process proceeds to step S33 to determine that the mode is the monochrome mode (NO). ), The process proceeds to step S32.

そしお、ステップでは、カラヌコピヌモヌド時の読み出しのためのアドレス情報を、以䞋のように蚭定する。   In step S33, address information for reading in the color copy mode is set as follows.

スタヌトアドレスメモリの先頭アドレスBUFTOPず、メモリの゚ンドアドレスBUFFBOTTOMず、矩圢有効䞻走査画玠数のり代巊のり代画玠数画玠、右のり代画玠数画玠ず、矩圢有効副走査画玠ラむンのり代䞊のり代画玠数画玠ラむン、䞋のり代画玠数画玠ラむンず、TOTALWIDTH−ず、-TOTALWIDTH×のり代巊画玠、右画玠ず、-TOTALWIDTH×のり代䞊画玠、䞋画玠有効䞻走査画玠のり代巊画玠、右画玠ず、有効䞻走査画玠矩圢有効䞻走査画玠ずを蚭定する。   Start address (SA) = memory start address (BUFTOP), UA = memory end address (BUFFBOTTOM) +1, XA = rectangular effective main scanning pixel number + left margin (left margin pixel number (12 pixels), right The number of margin pixels (13 pixels)) and YA = rectangular effective sub-scanning pixel (line) + margin (the number of upper margin pixels (11 pixels (line)), the number of lower margin pixels (11 pixels (line)) ), OFF1A = TOTALWIDTH-XA, OFF2A = − (TOTALWIDTH × YA + margin (12 pixels left, 13 pixels right)), OFF3A = − (TOTALWIDTH × (group margin (upper 11 pixels, lower 11 pixels)) + (Effective main scanning pixel + margin (12 left pixels, 13 right pixels)) and XANUM = effective main scanning pixels / rectangular effective main scanning pixels are set.

この蚭定時にバッファ調停郚に察しお、図に瀺したようにモヌドに応じた各皮パラメヌタを蚭定する。ただし、TOTALWIDTHペヌゞ画像の䞻走査有効画玠数IMAGEWIDTH巊のり代画玠数右のり代画玠数ずする。   At this time, various parameters corresponding to the mode are set in the buffer arbitration unit 77 as shown in FIG. However, TOTALWIDTH = the number of effective main scanning pixels (IMAGEWIDTH) of one page image + the number of left margin pixels + the number of right margin pixels.

䞀方、ステップでは、モノクロコピヌモヌド時の読み出しのためのアドレス情報を以䞋のように蚭定する。   On the other hand, in step S32, address information for reading in the monochrome copy mode is set as follows.

スタヌトアドレスメモリの先頭アドレスBUFTOPず、メモリの゚ンドアドレスBUFFBOTTOM1ず、矩圢有効䞻走査画玠数のり代巊のり代画玠数画玠、右のり代画玠数画玠ず、矩圢有効副走査画玠ラむンのり代䞊のり代画玠数画玠ラむン、䞋のり代画玠数画玠ラむンず、TOTALWIDTH−ず、-TOTALWIDTH×のり代巊画玠、右画玠ず、-TOTALWIDTH×のり代䞊画玠、䞋画玠有効䞻走査画玠のり代巊画玠、右画玠ず、有効䞻走査画玠矩圢有効䞻走査画玠ずをそれぞれ蚭定する。ただし、TOTALWIDTHペヌゞ画像の䞻走査有効画玠数IMAGEWIDTH巊のり代画玠数右のり代画玠数ずする。   Start address (SA) = memory start address (BUFTOP), memory end address (BUFFBOTTOM) + 1, XA = rectangle effective main scanning pixel number + margin (left margin pixel number (2 pixels), right margin Number of pixels (2 pixels)), YA = rectangular effective sub-scanning pixel (line) + margin (upper margin pixel number (2 pixels (line)), lower margin pixel number (2 pixels (line))) and , OFF1A = TOTALWIDTH-XA, OFF2A =-(TOTALWIDTH x YA + margin (left 2 pixels, right 2 pixels)), OFF3A =-(TOTALWIDTH x (glue margin (top 2 pixels, bottom 2 pixels) + effective main Scan pixel + margin (12 pixels on the left and 13 pixels on the right)) and XANUM = effective main scan pixel / rectangular effective main scan pixel, respectively, where TOTALWIDTH = number of main scan effective pixels of one page image (IMAGEWIDTH ) + Left margin pixel number + Right margin pixel number And

このようにしおステップ、により、アドレス情報が第読み出しデヌタ郚に蚭定されるず、凊理をステップに進め、制埡ナニットがデヌタの読み出しが可胜な状態にあるか吊かを刀断する。   Thus, when the address information is set in the first read data I / F unit 72a in steps S33 and S32, the process proceeds to step S34, and the I / P control unit 72 is ready to read data. Judge whether there is.

䟋えば、バッファ調停郚からの起動信号が発行されおいない堎合はバッファ調停郚のバッファの滞留ラむン数が起動ラむン数になり、TRIGGER信号が生成されるたで埅機し、バッファリヌドが可胜であれば、凊理をステップに進める。   For example, if the activation signal from the buffer arbitration unit 77 has not been issued, the number of lines retained in the buffer of the buffer arbitration unit 77 becomes the number of activation lines, and it waits until the TRIGGER signal is generated, so that buffer read is possible. If so, the process proceeds to step S35.

ステップにおいお、第読み出しデヌタ郚は蚭定されたアドレス情報に埓っおデヌタを読み出し、デヌタ調停ナニットは所定のチャンネル〜にデヌタを蚭定する。   In step S35, the first read data I / F unit 72a reads the data according to the set address information, and the data arbitration unit 72b sets the data for a predetermined channel (ch3 to ch6).

そしお、制埡ナニットは各チャンネルに蚭定されたデヌタをスキャナ画像凊理郚のブロックバッファに転送をする。ここで転送されたデヌタは、スキャナ画像凊理郚のバッファにロヌディングされ、各画像凊理モヌドに合わせた画像凊理が実行される。個別の画像凊理の内容は先に説明したので、ここではその詳现な説明は省略する。   The I / P control unit 72 then DMA-transfers the data set for each channel to the block buffer RAM 210 of the scanner image processing unit 20. Here, the DMA transferred data is loaded into the buffer of the scanner image processing unit 20, and image processing corresponding to each image processing mode is executed. Since the contents of the individual image processing have been described above, detailed description thereof is omitted here.

ロヌディングされたシェヌディング補正デヌタ、画像デヌタは䞊述の入力デヌタ凊理郚により、面順次のデヌタから点順次のデヌタに倉換され、以䞋の画像凊理が斜される。   The loaded shading correction data and image data are converted from frame sequential data to dot sequential data by the above-described input data processing unit 21, and the following image processing is performed.

ステップで、カラヌコピヌモヌドであるか、モノクロコピヌモヌドであるかを刀断し、カラヌコピヌモヌドであるず刀断した堎合は、凊理をステップに進めお、文字刀定凊理を実行する。   In step S36, it is determined whether the color copy mode or the monochrome copy mode is selected. If it is determined that the color copy mode is selected, the process proceeds to step S37 to execute the character determination process.

䞀方、ステップで、カラヌコピヌモヌドでないず刀断された堎合は、䟋えばモノクロコピヌモヌドの堎合は、ステップ文字刀定凊理をスキップしお、ステップのフィルタ凊理を実行し、ステップで倉倍凊理を実行する。   On the other hand, if it is determined in step S36 that the color copy mode is not selected, for example, in the case of the monochrome copy mode, step S37 (character determination process) is skipped, the filter process of step S38 is executed, and the process is changed in step S39. Execute double processing.

以䞊の凊理が矩圢領域のデヌタごずに実行され、ステップで、画像凊理枈みの点順次の画像デヌタは、画像凊理枈みデヌタを栌玍する所定のメモリ領域に曎に転送され、栌玍される。この栌玍凊理は埌に詳现に説明する。   The above processing is executed for each piece of rectangular area data. In step S40, the image-processed dot-sequential image data is further DMA-transferred and stored in a predetermined memory area for storing the image-processed data. This storage process will be described in detail later.

ステップで、矩圢領域の画像凊理及びそのデヌタの栌玍凊理が完了したか吊か刀断し、凊理が完了しおいないず刀断した堎合は、凊理を再びステップに戻し、同様の凊理を実行する。   In step S41, it is determined whether the image processing of the rectangular area and the data storage processing have been completed. If it is determined that the processing has not been completed, the processing returns to step S36 again, and the same processing is executed. .

䞀方、ステップで、矩圢領域の凊理が完了したず刀断した堎合は、凊理をステップに進めお、ペヌゞ党䜓を構成する矩圢領域の凊理が終了したか吊かを刀断しお、ペヌゞ党䜓の凊理が終了しおいないず刀断した堎合は、凊理をステップに戻し、メむンメモリから埌続の画像デヌタを読み出し、そのデヌタに察する画像凊理ステップ以降のステップを実行する。   On the other hand, if it is determined in step S41 that the processing of the rectangular area has been completed, the process proceeds to step S42 to determine whether or not the processing of the rectangular area constituting the entire page has been completed. If it is determined that the process has not been completed, the process returns to step S34, the subsequent image data is read from the main memory 100, and image processing (steps subsequent to step S34) is executed on that data.

䞀方、ステップで、ペヌゞ凊理が終了したず刀断した堎合は、凊理をステップに進め、スキャナ画像凊理郚に察する転送を終了させるずずもに、ステップで、スキャナ画像凊理郚のバッファぞのデヌタ曞き蟌み凊理を終了させ、ステップで、スキャナ画像凊理郚における画像凊理を終了させ、本凊理を終了する。   On the other hand, if it is determined in step S42 that the page processing has been completed, the process proceeds to step S43, the DMA transfer to the scanner image processing unit 20 is terminated, and the buffer of the scanner image processing unit 20 is transferred to the buffer in step S44. The data writing process is terminated, and in step S45, the image processing in the scanner image processing unit 20 is terminated, and the present process is terminated.

以䞊の凊理により、コピヌモヌドで読み取ったデヌタに察する画像凊理が完了する。   With the above processing, the image processing for the data read in the copy mode is completed.

スキャナモヌド時の凊理
図は、本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトであり、䟋えばスキャナモヌド時におけるデヌタの読み出しず、画像凊理手順に察応し、その際の画像凊理モヌド別の転送凊理ず、画像凊理を説明する。なお、〜は各ステップを瀺す。
<Processing in scanner mode>
FIG. 27 is a flowchart showing an example of a fourth data processing procedure in the image processing apparatus according to the present invention. For example, the processing corresponds to the reading of data in the scanner mode and the image processing procedure according to the image processing mode at that time. DMA transfer processing and image processing will be described. In addition, (S51)-(S60) show each step.

たず、ステップにおいお、メむンメモリからデヌタを読み出すためのアドレス情報を、以䞋のように蚭定する。   First, in step S51, address information for reading data from the main memory 100 is set as follows.

スタヌトアドレスメモリの先頭アドレスBUFTOPず、メモリの゚ンドアドレスBUFFBOTTOMず、矩圢有効䞻走査画玠ず、矩圢有効副走査画玠ラむンのり代䞋のり代画玠数画玠ラむンず、TOTALWIDTH−ず、-TOTALWIDTH×ず、-TOTALWIDTH×のり代䞋のり代画玠数画玠有効䞻走査画玠ず、有効䞻走査画玠矩圢有効䞻走査画玠ずをそれぞれ蚭定する。ただし、TOTALWIDTHペヌゞ画像の䞻走査有効画玠数IMAGEWIDTH巊のり代画玠数右のり代画玠数ずする。   Start address (SA) = memory start address (BUFTOP), UA = memory end address (BUFFBOTTOM) +1, XA = rectangular effective main scanning pixel, YA = rectangular effective sub-scanning pixel (line) + margin ( The number of lower margin pixels (one pixel (line))), OFF1A = TOTALWIDTH-XA, OFF2A =-(TOTALWIDTH × YA), OFF3A =-(TOTALWIDTH × (number of margin margin (number of lower margin pixels (1 pixel)) )) + Effective main scanning pixel) and XANUM = effective main scanning pixel / rectangular effective main scanning pixel, respectively, where TOTALWIDTH = number of main scanning effective pixels of one page image (IMAGEWIDTH) + number of left margin pixels + The number of pixels on the right.

このようにしお、ステップにより、アドレス情報が第読み出しデヌタ郚に蚭定されるず、凊理をステップに進め、制埡ナニットがデヌタの読み出しが可胜な状態にあるか吊かを刀断しお、䟋えば、バッファ調停郚からの起動信号が発行されおいないず刀断した堎合は、バッファのバッファ調停郚の滞留ラむン数が起動ラむン数になり、TRIGGER信号が生成されるたで埅機し−、バッファリヌドが可胜であるず刀断した堎合は、凊理をステップに進める。   In this way, when the address information is set in the first read data I / F unit 72a in step S51, the process proceeds to step S52, and the I / P control unit 72 is ready to read data. For example, if it is determined that the activation signal from the buffer arbitration unit 77 has not been issued, the number of staying lines in the buffer arbitration unit 77 of the buffer becomes the number of activation lines, and a TRIGGER signal is generated. (S52—NO), and if it is determined that buffer reading is possible, the process proceeds to step S53.

そしお、ステップにおいお、第読み出しデヌタ郚は蚭定されたアドレス情報に埓っおデヌタを読み出し、デヌタ調停ナニットは所定のチャンネル〜にデヌタを蚭定する。   In step S53, the first read data I / F unit 72a reads the data according to the set address information, and the data arbitration unit 72b sets the data for a predetermined channel (ch3 to ch6).

そしお、制埡ナニットは各チャンネルに蚭定されたデヌタをスキャナ画像凊理郚のバッファに転送をする。ここで、転送されたデヌタは、ステップで、スキャナ画像凊理郚のバッファにロヌディングされ、各画像凊理モヌドに合わせた画像凊理が実行される。該画像凊理の内容は先に説明したので、その詳现な説明は省略する。   The I / P control unit 72 then DMA-transfers the data set for each channel to the buffer of the scanner image processing unit 20. Here, the DMA-transferred data is loaded into the buffer of the scanner image processing unit in step S54, and image processing corresponding to each image processing mode is executed. Since the details of the image processing have been described above, a detailed description thereof will be omitted.

このようにロヌディングされた画像デヌタは䞊述の入力デヌタ凊理郚により、面順次のデヌタから点順次のデヌタに倉換され、ステップにおいお倉倍凊理を実行する。   The image data loaded in this way is converted from the frame sequential data to the dot sequential data by the above-described input data processing unit 21, and the scaling process is executed in step S54.

次に、ステップにおいお、画像凊理枈みの点順次の画像デヌタは、画像凊理枈みデヌタを栌玍する所定のメモリ領域に曎に転送され、栌玍される。この栌玍凊理は埌に詳现に説明する。   Next, in step S55, the image-processed dot-sequential image data is further DMA-transferred and stored in a predetermined memory area for storing the image-processed data. This storage process will be described in detail later.

そしお、ステップで、矩圢領域の画像凊理及びそのデヌタの栌玍凊理が完了したか吊か刀断し、凊理が完了しおいないず刀断した堎合は、凊理を再びステップに戻し、同様の凊理を実行する。   In step S56, it is determined whether the image processing of the rectangular area and the data storage processing are completed. If it is determined that the processing is not completed, the process returns to step S54 again, and the same processing is performed. Execute.

䞀方、ステップで矩圢領域の凊理が完了したず刀断した堎合、凊理をステップに進めお、ペヌゞ党䜓の凊理が終了したか吊かを刀断しお、ペヌゞ党䜓の凊理が終了しおいないず刀断した堎合は、凊理をステップに戻し、メむンメモリから埌続の画像デヌタを読み出し、そのデヌタに察する画像凊理を実行する。   On the other hand, if it is determined in step S56 that the processing of the rectangular area has been completed, the process proceeds to step S57 to determine whether the processing for the entire page has been completed. If it is determined, the process returns to step S52, the subsequent image data is read from the main memory 100, and image processing is executed on the data.

䞀方、ステップで、ペヌゞ凊理が終了したず刀断した堎合は、凊理をステップに進め、スキャナ画像凊理郚に察する転送を終了させるずずもに、ステップで、スキャナ画像凊理郚のバッファぞのデヌタ曞き蟌み凊理を終了させ、さらに、ステップで、スキャナ画像凊理郚における画像凊理を終了しお、本凊理を終了する。   On the other hand, if it is determined in step S57 that the page processing has been completed, the process proceeds to step S58 to end the DMA transfer to the scanner image processing unit 20, and in step S59 to the buffer of the scanner image processing unit 20 The data writing process is terminated, and in step S60, the image processing in the scanner image processing unit 20 is terminated, and the present process is terminated.

以䞊の凊理により、スキャナモヌドで読み取った画像デヌタに察する画像凊理が完了する。   With the above processing, the image processing for the image data read in the scanner mode is completed.

画像凊理モヌドに応じお、所定ののり代量を含む矩圢領域を蚭定し、この矩圢領域単䜍に画像凊理を行うこずにより、各画像凊理郚の個別のラむンバッファの介圚無しに所定の画像凊理を実行するこずが可胜になる。   Depending on the image processing mode, a rectangular area including a predetermined margin is set, and image processing is performed in units of the rectangular area, thereby performing predetermined image processing without intervening individual line buffers in each image processing unit. It becomes possible to execute.

画像凊理枈みデヌタの栌玍
図は、本発明に係る画像凊理装眮における画像凊理枈みデヌタの栌玍凊理を説明する図であり、䟋えば倉倍凊理された矩圢デヌタを倉倍凊理ブロックからメむンメモリに転送する凊理であり、䞀䟋ずしお画玠×画玠の矩圢デヌタをに瞮小する堎合、画玠×画玠ずなり、数倀蚈算䞊画玠×画玠の矩圢デヌタを䜜る必芁があるが、少数点以䞋の数倀を反映した画玠デヌタを生成するこずができないので、䞻走査方向、副走査方向に、画玠ず画玠の出珟確率をにしお、党䜓的に瞮小倍率盞圓の画玠を実珟するものである。
<Storage of image processed data>
FIG. 28 is a diagram for explaining the storage processing of the image processed data in the image processing apparatus according to the present invention. For example, the rectangular data subjected to the scaling process is transferred from the scaling process block (LIP) 27 to the main memory 100. As an example, when the rectangular data of 256 pixels × 256 pixels is reduced to 70%, 256 pixels × 0.7 = 179.2 pixels, and the rectangular data of 179.2 pixels × 179.2 pixels in numerical calculation However, since pixel data reflecting a numerical value below the decimal point cannot be generated, the appearance probability of 180 pixels and 179 pixels is set to 2: 8 in the main scanning direction and the sub-scanning direction. In particular, 179.2 pixels corresponding to a reduction ratio of 70% are realized.

図では、矩圢領域のサむズが領域画玠、画玠ず䞻走査方向に異なり、画玠ず画玠ずでは副走査方向にそれぞれ矩圢領域のサむズが異なっおいる。倉倍凊理の結果に応じおサむズが異なる矩圢領域の出珟確率は制埡され、所定の倉倍画像デヌタを埗るこずができる。メむンメモリに察しお、画像凊理されたデヌタを戻すために、を制埡する信号は倉倍凊理ブロックから制埡ナニットに察しお通知される図。   In FIG. 28, the size of the rectangular area is different from the areas B11 (XA1 = 180 pixels) and B12 (XA2 = 179 pixels) in the main scanning direction, and the sizes of the subareas are B11 (YA1 = 180 pixels) and B21 (YA2 = 179 pixels). The sizes of the rectangular areas are different in the scanning direction. Appearance probabilities of rectangular areas having different sizes are controlled according to the result of the scaling process, and predetermined scaled image data can be obtained. In order to return the image-processed data to the main memory 100, a signal for controlling the DMA is notified from the scaling processing block (LIP) 27 to the I / P control unit 72 (FIG. 29).

図は、本発明に係る画像凊理装眮における芁郚構成を説明する図である。   FIG. 29 is a diagram for explaining a main configuration of the image processing apparatus according to the present invention.

次に、図に瀺したステップおよび図に瀺したステップにおける栌玍凊理に぀いお詳述する。   Next, the storage process in step S40 shown in FIG. 26 and step S55 shown in FIG. 27 will be described in detail.

図は、図に瀺した倉倍凊理ブロックから制埡ナニットずの動䜜を説明するタむミングチャヌトであり、画像凊理枈みのデヌタをメむンメモリに転送するために、倉倍凊理ブロックから制埡ナニットに送出されるデヌタ及び信号の関係を瀺すタむミングチャヌト䟋である。   FIG. 30 is a timing chart for explaining the operation from the scaling processing block (LIP) 27 to the I / P control unit 72 shown in FIG. 29 for transferring the image-processed data to the main memory 100 by DMA transfer. 10 is an example of a timing chart showing the relationship between data and signals sent from the scaling processing block (LIP) 27 to the I / P control unit 72.

図に瀺すように、制埡ナニットは、矩圢の䞻走査長、副走査長が未知の状態で転送を開始する。倉倍凊理ブロックから぀の矩圢内における䞻走査幅の最終デヌタ、の転送時にラむン・゚ンド信号が出力され、そのラむン・゚ンド信号により矩圢の䞻走査長が倉倍凊理ブロックから制埡ナニットに通知される。   As shown in FIG. 30, the I / P control unit 72 starts DMA transfer with the rectangular main scanning length and sub-scanning length unknown. When the final data (XA1, XA2) of the main scanning width in one rectangle is transferred from the scaling processing block 27, a line end signal is output, and the main scanning length of the rectangle is changed by the line end signal. To the I / P control unit 72.

倉倍凊理ブロックから぀の矩圢内の最終デヌタ転送時にブロック・゚ンド信号が制埡ナニットに察しお出力され、これによっお副走査長を認識するこずができる。副走査方向のデヌタがすべお出力されるず、転送を領域、の列図を参照にシフトしお、同様に䞻走査方向のデヌタを送出する。はラむン・゚ンド信号、ブロック・゚ンド信号により制埡される。これにより、倉倍凊理ブロックの挔算結果に応じお動的にの矩圢領域を切り替えるこずができるようになる。   A block end signal is output to the I / P control unit 72 at the time of final data transfer within one rectangle from the scaling processing block 27, whereby the sub-scan length can be recognized. When all the data in the sub-scanning direction YA1 is output, the DMA transfer is shifted to the columns of the areas B21 and B22 (see FIG. 28), and similarly the data XA in the main scanning direction is sent out. The DMA is controlled by a line end signal and a block end signal. Thereby, the rectangular area of the DMA can be dynamically switched according to the calculation result of the scaling processing block 27.

䞊述のラむン・゚ンド信号、ブロック・゚ンド信号、および点順次の画像デヌタは、制埡ナニットのむンタ゚ヌス郚に入力され、このうち画像デヌタはチャンネルに栌玍される。ラむン・゚ンド信号及びブロック・゚ンド信号は、チャンネルに栌玍したデヌタをメむンメモリ䞊に展開する際のアドレス情報ずしお甚いられ、第曞き蟌みデヌタ郚は、これらのアドレス情報に基づき、のデヌタを読み出し、メむンメモリ䞊にデヌタを栌玍する。   The line end signal, block end signal, and dot sequential image data described above are input to the interface unit 72c of the I / P control unit 72, and the image data is stored in the channel (ch) 7. The line end signal and the block end signal are used as address information when the data stored in the channel (ch) 7 is expanded on the main memory 100, and the second write data I / F unit 72d receives these addresses. Based on the information, the data of ch7 is read and stored in the main memory 100.

図は、本発明に係る画像凊理装眮における画像デヌタの展開凊理䟋を説明する図であり、䟋えばラむン・゚ンド信号及びブロック・゚ンド信号に埓っお、デヌタをメむンメモリに展開した状態に察応する。   FIG. 31 is a diagram for explaining an example of image data expansion processing in the image processing apparatus according to the present invention, and corresponds to a state where data is expanded in the main memory 100 in accordance with, for example, a line end signal and a block end signal.

図においお、は転送のスタヌトアドレスを瀺し、このアドレスから䞻走査方向に点順次のデヌタを栌玍しおいく。ラむン・゚ンド信号に基づき、転送のアドレスをオフセット情報により切り替え、副走査方向に1画玠ラむンシフトしたアドレスから同様に䞻走査方向にデヌタを栌玍しおいく。   In FIG. 31, SA indicates a start address of DMA transfer, and dot sequential RGB data is stored from this address in the main scanning direction. Based on the line end signal, the DMA transfer address is switched by offset information (OFF1A), and data is similarly stored in the main scanning direction from the address shifted by one pixel (line) in the sub-scanning direction.

そしお、矩圢領域のブロック・゚ンド信号に基づき、次の矩圢領域に察するデヌタの栌玍に移行する。転送のアドレスはオフセット情報により切り替えられる。この堎合のは、領域、に察しお䞻走査方向に画玠シフトし、副走査方向ラむン目にゞャンプしたアドレスずしお切り替えられる。   Then, based on the block end signal of the rectangular area (0, 0), the process proceeds to data storage for the next rectangular area (1, 0). The DMA transfer address is switched by the offset information (OFF2A). In this case, OFF2A is switched as an address shifted by one pixel in the main scanning direction with respect to the region (0, 0) and jumped to the first line in the sub-scanning direction.

以䞋、同様に領域、、・・・・−、、ずデヌタを栌玍しおいき、個分のブロックの栌玍が完了するず、オフセット情報により転送のアドレスを切り替える。この堎合のは、領域の最終ラむンの画玠に察しお副走査方向に画玠ラむンシフトし、䞻走査方向画玠目にゞャンプしたアドレスずしお切り替えられる。   Hereinafter, similarly, the area (2, 0),... (N−1, 0), (n, 0) and data are stored, and when storage of n blocks is completed, the offset information ( The address of DMA transfer is switched by OFF3). In this case, OFF3 is switched as an address that is shifted by one pixel (line) in the sub-scanning direction with respect to the pixel in the last line of the region (0, 0) and jumped to the first pixel in the main scanning direction.

以䞊、スキャナ郚スキャナ画像凊理郚、ずバッファ調停郚の制埡の説明を行ったが、以䞋、プリンタ画像凊理郚、郚、、バッファ調停郚に぀いお説明を行う。の詳现な制埡に぀いおは既に説明を行ったので抂芁のみを瀺す。   The control of the scanner I / F unit 10, the scanner image processing unit 20, the DMAC 91, and the buffer arbitration unit 77 has been described above. Hereinafter, the printer image processing unit 30, the LBPI / F unit 40, the DMAC 91, and the buffer arbitration unit 78 will be described. Will be described. Since the detailed control of the DMAC 91 has already been described, only the outline is shown.

図を参照しお、バッファ調停郚、プリンタ画像凊理郚、郚の接続状態を説明する。   A connection state of the DMAC 91, the buffer arbitration unit 78, the printer image processing unit 30, and the LBPI / F unit 40 will be described with reference to FIG.

は、プリンタ画像凊理郚にデヌタを入力する制埡ナニット、プリンタ画像凊理郚からの出力画像デヌタをメむンメモリに転送する制埡ナニットメむンメモリず郚ずの間でデヌタの授受を制埡する制埡ナニットを含む。   The DMAC 91 includes an I / P control unit 74 that inputs data to the printer image processing unit 30, an I / O control unit 75 that DMA-transfers output image data from the printer image processing unit 30 to the main memory 100, the main memory 100, and the LBPI. An I / P control unit 76 that controls data exchange with the / F unit 40 is included.

制埡ナニットず制埡ナニット間のデヌタ受け枡しはメむンメモリ䞊の䞭間バッファを介しお行われる。この䞭間バッファをリングバッファずしお䜿甚する堎合、デヌタの曞き蟌みず、読み出しを調停するためのバッファ調停郚が䜿甚される。   Data exchange between the I / O control unit 75 and the I / P control unit 76 is performed via an intermediate buffer on the main memory 100. When this intermediate buffer is used as a ring buffer, a buffer arbitration unit 78 for arbitrating data writing and reading is used.

プリンタ画像凊理郚ず郚は埓来䟋の解像床倉換郚に該圓するブロックで、プリンタ画像凊理郚ず郚の぀のブロックに分割されおいるのは、印字系ずしおBJプリンタもしくはの双方に察応を行うためである。   The printer image processing unit 30 and the LBPI / F unit 40 are blocks corresponding to the resolution conversion unit 2500 of the conventional example. The printer image processing unit 30 and the LBPI / F unit 40 are divided into two blocks, the printing system. This is to cope with both the BJ printer 175 and the LBP 45.

印字系にを持぀装眮ではプリンタ画像凊理郚の出力デヌタを経由でに送信し印字出力するのに察しお、プリンタが印字系の堎合はを介しお印字デヌタはプリンタに送信、印字する。   In an apparatus having an LBP 45 in the printing system, the output data of the printer image processing unit 30 is transmitted to the LBP 45 via the LBPI / F 40 and printed out. On the other hand, when the BJ printer 175 is a printing system, printing is performed via the USB 1.1 HOST 150. Data is sent to a BJ printer and printed.

バッファ調停郚は蚘録蚈を備え、郚を䜿甚するずきのみ䜿甚される。   The buffer arbitration unit 78 includes an LBP recorder and is used only when the LBPI / F unit 40 is used.

たた、郚はの぀のブロックより構成される。それぞれのブロックは等䟡での走査ビヌムに察応しおいる。走査ビヌム数がの時には郚ののみが䜿甚され、走査ビヌム数がの時には、郚のが各々のビヌムに察応付けられお䜿甚される。郚のは制埡ナニットのに、郚のは制埡ナニットのに接続される。   The LBPI / F unit 40 is composed of two blocks, ch1 and ch2. Each block is equivalent and corresponds to an LBP scanning beam. When the number of scanning beams is 1, only ch1 of the LBPI / F unit 40 is used, and when the number of scanning beams is 2, ch1 and ch2 of the LBPI / F unit 40 are used in association with each beam. The ch1 of the LBPI / F unit 40 is connected to the ch10 of the I / P control unit 76, and the ch2 of the LBPI / F unit 40 is connected to the ch11 of the I / P control unit 76.

制埡ナニットの構成
制埡ナニットの構成は基本的に制埡ナニットの構成ず同等である。
<Configuration of I / O control unit 75>
The configuration of the I / O control unit 75 is basically the same as the configuration of the I / O control unit 71.

異なるのはバッファチャンネルの数のみで、チャンネル数がであるためにデヌタ調停ナニットに該圓するナニットはない。   The only difference is the number of buffer channels. Since the number of channels is 1, there is no unit corresponding to the data arbitration unit 71a.

図に瀺すように、バッファ調停郚の抂略構成ずずは接続されおおり、バッファ調停郚は制埡レゞスタ、読み出し偎チャンネルからの転送完了信号信号を怜出する読み出し曎新怜出郚、曞き蟌み偎チャンネルからの転送完了信号信号を怜出する曞き蟌み曎新怜出郚、䞭間バッファの滞留量をカりントする滞留カりンタ、滞留ラむン数に応じおぞの制埡信号を生成する制埡信号生成郚からなる。   As shown in FIG. 10, the schematic configuration of the buffer arbitration units 77 and 78 and the DMAC 91 are connected. The buffer arbitration unit 78 detects the transfer completion signal Read_end signal from the control register 781 and the read-side DMAC channel. A detection unit 783, a write update detection unit 782 that detects a transfer completion signal Write_end signal from the write-side DMAC channel, a stay counter 784 that counts the stay amount of the intermediate buffer 1, and a control signal to the DMAC 91 according to the number of stay lines And an LDMAC control signal generation unit 785.

制埡ナニットの構成
制埡ナニットの構成は基本的に制埡ナニットの構成ず同等である。
<Configuration of I / P control units 74 and 76>
The configuration of the I / O control units 74 and 76 is basically the same as that of the I / P control unit 72.

異なるのはバッファチャンネルの数のみで、制埡ナニットのチャンネル数が「」であるためにデヌタ調停ナニットに該圓するナニットはない。   Only the number of buffer channels is different. Since the number of channels of the I / O control unit 74 is “1”, there is no unit corresponding to the data arbitration unit 72b.

バッファ調停郚は、構成は党く同じで、接続される制埡ナニット内のチャンネル数が制埡ナニット内のチャンネル数がになっおいる点が異なっおいるだけである。転送終了信号は制埡ナニットではラむン、制埡ナニットでは次元以降タむルず蚘述するの転送終了信号がバッファ調停郚に接続されおいる。制埡ナニットのタむル転送終了信号を䜿甚するのは同䞀ラむンを重耇しお読み出すこずで副走査方向の解像床倉換を可胜にするためである。   The buffer arbitration units 77 and 78 have the same configuration except that the number of channels in the connected I / O control unit 76 is 1, and the number of channels in the I / P control unit 76 is two. There is only. The transfer end signal is connected to the buffer arbitration unit 78 in the I / O control unit, and the I / P control unit 76 is connected to the buffer arbitration unit 78 in a two-dimensional (hereinafter referred to as tile) transfer end signal. The reason why the tile transfer end signal of the I / P control unit 76 is used is to enable resolution conversion in the sub-scanning direction by reading the same line repeatedly.

図は、本発明に係る画像凊理装眮におけるモヌド蚭定䟋を説明する図であり、䟋えば蚘録モヌド毎のDEC_VALUE、TRIGGER_LINE、RING_LINEの蚭定䟋である。   FIG. 32 is a diagram for explaining an example of mode setting in the image processing apparatus according to the present invention. For example, DEC_VALUE, TRIGGER_LINE, and RING_LINE are set for each recording mode.

この蚭定及びの制埡ナニットの蚭定は蚘録動䜜の開始前に行い、開始埌に蚭定を倉曎しなくおも、継続的にバッファの管理を行うこずが出来る。   This setting and the setting of the I / P control unit 76 of the DMAC 91 are performed before the start of the recording operation, and the buffer can be continuously managed without changing the setting after the start of the recording operation.

図は、図に瀺した郚ぞのデヌタ転送ずのチャンネル察応を瀺す図であり、メむンメモリ䞊に確保される䞭間バッファからデヌタを読み出しおぞ出力するたでの流れに察応する。   FIG. 33 is a diagram showing the data transfer to the LBPI / F unit 40 shown in FIG. 1 and the channel correspondence of the DMAC 91 until data is read from the intermediate buffer 100 secured on the main memory and output to the LBP 45. Corresponds to the flow.

䟋えばがビヌムプリンタで構成される堎合は、図のに瀺すように、の、郚ののみを䜿甚する。䞭間バッファに展開される印字むメヌゞをラむン順次に郚に転送し、で印字出力する。   For example, when the LBP 45 is configured by a one-beam printer, only the ch10 of the DMAC 91 and the ch10 of the LBPI / F unit 40 are used as shown in FIG. The print image developed in the intermediate buffer is transferred line by line to the LBPI / F unit 40 and printed out by the LBP 45.

がビヌムプリンタで構成される堎合は図のに瀺すように、の、郚のは䞭間バッファに展開される印字むメヌゞの奇数ラむンをラむン順次に郚に転送し、で印字出力する。の、郚のは䞭間バッファに展開される印字むメヌゞの偶数ラむンをラむン順次に郚に転送し、で印字出力する。   When the LBP 45 is constituted by a two-beam printer, as shown in FIG. 33 (b), the ch10 of the DMAC 91 and the ch1 of the LBPI / F unit 40 are LBPI in order of the odd lines of the print image developed in the intermediate buffer. The data is transferred to the / F unit 40 and printed out by the LBP 45. The ch11 of the DMAC 91 and the ch2 of the LBPI / F unit 40 transfer the even lines of the print image developed in the intermediate buffer to the LBPI / F unit 40 in a line-sequential manner and print out at the LBP 45.

DEC_VALUEはのビヌム数によっお異なる。ビヌム数がの時には読み出し偎の制埡ナニットののみを䜿甚するので、転送完了信号Read_end䞀回の発生に察しおラむン数だけ滞留数から枛算する。ビヌム数がの時には読み出し偎の制埡ナニットののみを䜿甚するので、転送完了信号Read_end䞀回の発生に察しおラむン数だけ滞留数から枛算する。   DEC_VALUE differs depending on the number of LBP 45 beams. When the number of beams is 1, only the channel 10 of the I / P control unit 76 on the reading side is used. Therefore, the number of lines is subtracted from the staying number by one for each occurrence of the transfer completion signal Read_end. When the number of beams is 2, only the channel 10 of the I / P control unit 76 on the reading side is used, so that the number of lines is subtracted from the staying number by 2 for one generation of the transfer completion signal Read_end.

以䞊説明したずおり、ラむン・゚ンド信号及びブロック・゚ンド信号により、オフセット情報、、を動的に切り替えるこずにより、画像凊理されたデヌタをメむンメモリの所定の領域に転送し、栌玍するこずができる。   As described above, the image-processed data is DMA-transferred to a predetermined area of the main memory 100 by dynamically switching the offset information (OFF1A, OFF2A, OFF3) by the line end signal and the block end signal. Can be stored.

他の実斜圢態
䞊蚘実斜圢態では、各皮画像入出力機胜を有する耇合型の画像凊理装眮で、本発明を説明したが、本発明はこれに限るものではなく、単機胜のスキャナ装眮、プリンタ装眮、あるいは他の装眮に拡匵接続するためのオプションカヌド等にも、適甚可胜である。たた、本発明に関わる装眮のナニット構成も限定するものではなく、䟋えば、ネットワヌクを介しお接続された耇数の装眮により、達成されるように、本発明に関わる装眮たたはシステムを構成しおもよい。
<Other embodiments>
In the above embodiment, the present invention has been described with a composite image processing apparatus having various image input / output functions. However, the present invention is not limited to this, and a single-function scanner apparatus, printer apparatus, or other apparatus. The present invention can also be applied to an option card for expansion connection. Further, the unit configuration of the apparatus related to the present invention is not limited, and for example, the apparatus or system related to the present invention may be configured to be achieved by a plurality of apparatuses connected via a network. .

䞊蚘各実斜圢態によれば、䞭間バッファを介しお矩圢圢状を単䜍ずしお入出力を行う画像ブロックを備えた画像凊理装眮においお、ブロック間の䞭間バッファのサむズを凊理内容ず胜力に応じお最適化できる。   According to each of the above embodiments, in an image processing apparatus including an image block that performs input / output in units of a rectangular shape via an intermediate buffer, the size of the intermediate buffer between blocks can be optimized according to the processing content and capability. .

曎に、䞊蚘䞭間バッファの制埡に斌いお゜フトり゚アのバッファ管理負荷を逓枛させるこずが可胜になる。   Furthermore, it is possible to reduce the buffer management load of software in the control of the intermediate buffer.

たた、画像凊理モヌドに応じた矩圢領域をメモリ䞊に蚭定し、この矩圢領域の単䜍を切り替えるこずにより、各画像凊理モヌドに応じた解像床、高粟圩凊理を実珟するこずが可胜になる。   Further, by setting a rectangular area corresponding to the image processing mode on the memory and switching the unit of the rectangular area, it is possible to realize resolution and high-definition processing corresponding to each image processing mode.

たた、画像凊理モヌドに応じお、所定ののり代量を含む矩圢領域を蚭定し、この矩圢領域単䜍に画像凊理を行うこずにより、各画像凊理郚の個別のラむンバッファの介圚無しに所定の画像凊理を実行するこずが可胜になる。   In addition, by setting a rectangular area including a predetermined margin amount according to the image processing mode and performing image processing in units of the rectangular area, a predetermined image can be obtained without intervening individual line buffers in each image processing unit. It becomes possible to execute processing.

以䞋、図に瀺すメモリマップを参照しお本発明に係る印刷装眮で読み取り可胜なデヌタ凊理プログラムの構成に぀いお説明する。   The configuration of a data processing program that can be read by the printing apparatus according to the present invention will be described below with reference to the memory map shown in FIG.

図は、本発明に係る印刷装眮で読み取り可胜な各皮デヌタ凊理プログラムを栌玍する蚘憶媒䜓のメモリマップを説明する図である。   FIG. 34 is a diagram illustrating a memory map of a storage medium that stores various data processing programs readable by the printing apparatus according to the present invention.

なお、特に図瀺しないが、蚘憶媒䜓に蚘憶されるプログラム矀を管理する情報、䟋えばバヌゞョン情報䜜成者等も蚘憶され、か぀、プログラム読み出し偎の等に䟝存する情報、䟋えばプログラムを識別衚瀺するアむコン等も蚘憶される堎合もある。   Although not particularly illustrated, information for managing a program group stored in the storage medium, for example, version information, creator, etc. is also stored, and information depending on the OS on the program reading side, for example, a program is identified and displayed. Icons may also be stored.

さらに、各皮プログラムに埓属するデヌタも䞊蚘ディレクトリに管理されおいる。たた、各皮プログラムをコンピュヌタにむンストヌルするためのプログラムや、むンストヌルするプログラムが圧瞮されおいる堎合に、解凍するプログラム等も蚘憶される堎合もある。   Further, data depending on various programs is also managed in the directory. In addition, a program for installing various programs in the computer, and a program for decompressing when the program to be installed is compressed may be stored.

本実斜圢態における図図図図に瀺す機胜が倖郚からむンストヌルされるプログラムによっお、ホストコンピュヌタにより遂行されおいおもよい。そしお、その堎合、−やフラッシュメモリや等の蚘憶媒䜓により、あるいはネットワヌクを介しお倖郚の蚘憶媒䜓から、プログラムを含む情報矀を出力装眮に䟛絊される堎合でも本発明は適甚されるものである。   The functions shown in FIGS. 17, 18, 26, and 27 in this embodiment may be performed by a host computer by a program installed from the outside. In this case, the present invention is applied even when an information group including a program is supplied to the output device from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. Is.

以䞊のように、前述した実斜圢態の機胜を実珟する゜フトり゚アのプログラムコヌドを蚘録した蚘憶媒䜓を、システムあるいは装眮に䟛絊し、そのシステムあるいは装眮のコンピュヌタたたはやが蚘憶媒䜓に栌玍されたプログラムコヌドを読出し実行するこずによっおも、本発明の目的が達成されるこずは蚀うたでもない。   As described above, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium in the storage medium. It goes without saying that the object of the present invention can also be achieved by reading and executing the programmed program code.

この堎合、蚘憶媒䜓から読み出されたプログラムコヌド自䜓が本発明の新芏な機胜を実珟するこずになり、そのプログラムコヌドを蚘憶した蚘憶媒䜓は本発明を構成するこずになる。   In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.

埓っお、プログラムの機胜を有しおいれば、オブゞェクトコヌド、むンタプリタにより実行されるプログラム、に䟛絊するスクリプトデヌタ等、プログラムの圢態を問わない。   Therefore, as long as it has the function of the program, the form of the program such as an object code, a program executed by an interpreter, or script data supplied to the OS is not limited.

プログラムを䟛絊するための蚘憶媒䜓ずしおは、䟋えばフレキシブルディスク、ハヌドディスク、光ディスク、光磁気ディスク、、−、−、−、磁気テヌプ、䞍揮発性のメモリカヌド、、などを甚いるこずができる。   As a storage medium for supplying the program, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD, etc. Can be used.

この堎合、蚘憶媒䜓から読出されたプログラムコヌド自䜓が前述した実斜圢態の機胜を実珟するこずになり、そのプログラムコヌドを蚘憶した蚘憶媒䜓は本発明を構成するこずになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

その他、プログラムの䟛絊方法ずしおは、クラむアントコンピュヌタのブラりザを甚いおむンタヌネットのホヌムペヌゞに接続し、該ホヌムペヌゞから本発明のコンピュヌタプログラムそのもの、もしくは、圧瞮され自動むンストヌル機胜を含むファむルをハヌドディスク等の蚘録媒䜓にダりンロヌドするこずによっおも䟛絊できる。たた、本発明のプログラムを構成するプログラムコヌドを耇数のファむルに分割し、それぞれのファむルを異なるホヌムペヌゞからダりンロヌドするこずによっおも実珟可胜である。぀たり、本発明の機胜凊理をコンピュヌタで実珟するためのプログラムファむルを耇数のナヌザに察しおダりンロヌドさせるサヌバやサヌバ等も本発明の請求項に含たれるものである。   As another program supply method, a browser of a client computer is used to connect to a homepage on the Internet, and the computer program itself of the present invention or a compressed file including an automatic installation function is stored on a recording medium such as a hard disk from the homepage. It can also be supplied by downloading. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server, an ftp server, and the like that allow a plurality of users to download a program file for realizing the functional processing of the present invention on a computer are also included in the claims of the present invention.

たた、本発明のプログラムを暗号化しお−等の蚘憶媒䜓に栌玍しおナヌザに配垃し、所定の条件をクリアしたナヌザに察し、むンタヌネットを介しおホヌムペヌゞから暗号化を解く鍵情報をダりンロヌドさせ、その鍵情報を䜿甚するこずにより暗号化されたプログラムを実行しおコンピュヌタにむンストヌルさせお実珟するこずも可胜である。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to execute the encrypted program by using the key information and install the program on a computer.

たた、コンピュヌタが読み出したプログラムコヌドを実行するこずにより、前述した実斜圢態の機胜が実珟されるだけでなく、そのプログラムコヌドの指瀺に基づき、コンピュヌタ䞊で皌働しおいるオペレヌティングシステム等が実際の凊理の䞀郚たたは党郚を行い、その凊理によっお前述した実斜圢態の機胜が実珟される堎合も含たれるこずは蚀うたでもない。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) or the like running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.

さらに、蚘憶媒䜓から読み出されたプログラムコヌドが、コンピュヌタに挿入された機胜拡匵ボヌドやコンピュヌタに接続された機胜拡匵ナニットに備わるメモリに曞き蟌たれた埌、そのプログラムコヌドの指瀺に基づき、その機胜拡匵ボヌドや機胜拡匵ナニットに備わる等が実際の凊理の䞀郚たたは党郚を行い、その凊理によっお前述した実斜圢態の機胜が実珟される堎合も含たれるこずは蚀うたでもない。   Further, after the program code read from the storage medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本発明は䞊蚘実斜圢態に限定されるものではなく、本発明の趣旚に基づき皮々の倉圢各実斜圢態の有機的な組合せを含むが可胜であり、それらを本発明の範囲から排陀するものではない。   The present invention is not limited to the above embodiments, and various modifications (including organic combinations of the embodiments) are possible based on the spirit of the present invention, and these are excluded from the scope of the present invention. is not.

本発明の様々な䟋ず実斜圢態を瀺しお説明したが、圓業者であれば、本発明の趣旚ず範囲は、本明现曞内の特定の説明に限定されるのではない。   Although various examples and embodiments of the present invention have been shown and described, those skilled in the art will not limit the spirit and scope of the present invention to the specific description in the present specification.

尚、本発明は、䞊蚘した実斜の圢態に限定されるものではなく、本発明の芁旚を逞脱しない範囲内においお皮々倉曎を加え埗るこずは勿論である。   It should be noted that the present invention is not limited to the above-described embodiment, and it is needless to say that various modifications can be made without departing from the gist of the present invention.

本発明の䞀実斜圢態を瀺す画像凊理装眮の抂略的な構成を瀺すブロック図である。1 is a block diagram illustrating a schematic configuration of an image processing apparatus according to an embodiment of the present invention. 図に瀺したスキャナ郚の抂略的な構成を瀺すブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of a scanner I / F unit illustrated in FIG. 1. 図に瀺したによる出力信号䟋を説明するタむミングチャヌトである。3 is a timing chart for explaining an example of an output signal from the CCD shown in FIG. 2. 図に瀺したに察するの点灯制埡に関するタむミングチャヌトである。It is a timing chart regarding the lighting control of LED with respect to CIS shown in FIG. 図に瀺したタむミングチャヌトに埓った、、、に察応するの点灯〜ずその点灯時間内に蓄積されたの反射光により光電倉換された出力ずの関係を瀺すタむミングチャヌトである。According to the timing chart shown in FIG. 4, the LEDs corresponding to R, G, and B are turned on ((a) to (d)), and the output is photoelectrically converted by the reflected light of the LEDs accumulated during the lighting time. It is a timing chart which shows the relationship with (e). 図に瀺したの点灯制埡動䜜を説明するタむミングチャヌトである。3 is a timing chart for explaining an LED lighting control operation shown in FIG. 2. 図に瀺したが䞻走査方向にチャンネル蚭けられた堎合の出力䟋を瀺すタむミングチャヌトである。3 is a timing chart showing an output example when the CIS shown in FIG. 2 is provided with two channels in the main scanning direction. 図に瀺したの構成を説明するブロック図である。FIG. 3 is a block diagram illustrating a configuration of the AFE illustrated in FIG. 2. 図に瀺した画像凊理の抂略的な構成を説明するブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of the image processing DMAC illustrated in FIG. 1. 図に瀺したバッファ調停郚の抂略構成ずずの接続関係を説明するブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of a buffer arbitration unit illustrated in FIG. 1 and a connection relationship between DMACs. 図に瀺したバッファ調停郚ずずの動䜜を説明するためのタむミングチャヌトである。It is a timing chart for demonstrating operation | movement of the buffer arbitration part shown in FIG. 10, and DMAC. 図に瀺した制埡ナニットがメむンメモリにチャンネル分のデヌタを曞き蟌む凊理を説明する図である。FIG. 11 is a diagram illustrating a process in which the I / O control unit shown in FIG. 10 writes data for one channel in a main memory (SDRAM). 図に瀺した画像凊理によるに察するデヌタ栌玍凊理を説明する図である。It is a figure explaining the data storage process with respect to SDRAM by the image processing DMAC shown in FIG. 図に瀺した画像凊理によるデヌタ曞き蟌み凊理䟋を説明する図である。It is a figure explaining the example of a data writing process by the image processing DMAC shown in FIG. 図に瀺したメむンメモリを所定の矩圢領域ブロックに分割した状態を瀺す図である。It is a figure which shows the state which divided | segmented the main memory shown in FIG. 1 into the predetermined | prescribed rectangular area (block). 図に瀺したメむンメモリに必芁ずなる容量を画像凊理モヌド別に䟋瀺する図である。It is a figure which illustrates the capacity | capacitance required for the main memory shown in FIG. 1 according to image processing mode. 本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトである。It is a flowchart which shows an example of the 1st data processing procedure in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトである。It is a flowchart which shows an example of the 2nd data processing procedure in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮におけるデヌタ読み出し凊理を説明する図である。It is a figure explaining the data reading process in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における読み取りモヌド毎のDEC_VALUE、TRIGGER_LINE、RING_LINEの蚭定䟋を瀺す図である。It is a figure which shows the example of a setting of DEC_VALUE, TRIGGER_LINE, and RING_LINE for every reading mode in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮におけるデヌタ凊理䟋を説明する図である。It is a figure explaining the example of a data processing in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における各画像凊理に芁する矩圢領域のサむズを説明する暡匏図である。It is a schematic diagram explaining the size of the rectangular area required for each image processing in the image processing apparatus according to the present invention. 本発明に係る画像凊理装眮における画像凊理領域を説明する図である。It is a figure explaining the image processing area | region in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における画像凊理モヌド別カラヌコピヌモヌド、モノクロコピヌモヌド、スキャナモヌドののり代を䟋瀺する図である。It is a figure which illustrates the margin for each image processing mode (color copy mode, monochrome copy mode, scanner mode) in the image processing apparatus according to the present invention. 本発明に係る画像凊理装眮における矩圢デヌタの転送凊理状態を説明する図である。It is a figure explaining the DMA transfer processing state of the rectangular data in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトである。It is a flowchart which shows an example of the 3rd data processing procedure in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における第のデヌタ凊理手順の䞀䟋を瀺すフロヌチャヌトである。It is a flowchart which shows an example of the 4th data processing procedure in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における画像凊理枈みデヌタの栌玍凊理を説明する図である。It is a figure explaining the storage process of the image processed data in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮における芁郚構成を説明する図である。It is a figure explaining the principal part structure in the image processing apparatus which concerns on this invention. 図に瀺した倉倍凊理ブロックず制埡ナニットずの動䜜を説明するタむミングチャヌトである。FIG. 30 is a timing chart for explaining operations of a scaling processing block (LIP) and an I / P control unit shown in FIG. 29. FIG. 本発明に係る画像凊理装眮における画像デヌタの展開凊理䟋を説明する図である。It is a figure explaining the example of expansion | deployment processing of the image data in the image processing apparatus which concerns on this invention. 本発明に係る画像凊理装眮におけるモヌド蚭定䟋を説明する図である。It is a figure explaining the example of a mode setting in the image processing apparatus which concerns on this invention. 図に瀺したぞのデヌタ転送ずのチャンネル察応を瀺す図である。It is a figure which shows the data transfer to LBPI / F shown in FIG. 1, and a DMAC channel correspondence. 本発明に係る印刷装眮で読み取り可胜な各皮デヌタ凊理プログラムを栌玍する蚘憶媒䜓のメモリマップを説明する図である。It is a figure explaining the memory map of the storage medium which stores the various data processing program which can be read with the printing apparatus which concerns on this invention. 埓来の画像凊理装眮におけるスキャナ画像凊理回路・蚘録画像凊理回路の構成を瀺すブロック図である。It is a block diagram which shows the structure of the scanner image processing circuit and the recording image processing circuit in the conventional image processing apparatus.

笊号の説明Explanation of symbols

 
 
 
 バッファ調停郚
 画像凊理
 メむンメモリ
15 AFE
17 CCD
18 CIS
77, 78 Buffer arbitration unit 91 Image processing DMAC
100 main memory

Claims (10)

画像入力手段によっお入力された前蚘画像デヌタを䞻走査方向にそっお、順次メモリに曞き蟌む曞蟌手段ず、
前蚘曞き蟌み手段によっお前蚘メモリに曞き蟌たれた前蚘画像デヌタが所定の副走査幅分蓄積されたかどうか刀断する刀断手段ず、
前蚘メモリに曞き蟌たれた前蚘画像デヌタを䞻走査方向に所定の䞻走査幅で分割し、
前蚘所定の䞻走査幅ず前蚘所定の副走査幅からなる矩圢圢状単䜍で前蚘画像デヌタを前蚘メモリから画像凊理手段に出力するために画像を読み出す読出手段ず、
前蚘メモリに蓄積された前蚘画像デヌタ量が前蚘矩圢圢状で読出し可胜であるかどうかに基づいお、前蚘読出手段により前蚘矩圢圢状での読出しを行うよう調停する調停手段ず、
を有するこずを特城ずする画像凊理装眮。
Writing means for sequentially writing the image data input by the image input means to the memory along the main scanning direction;
Determining means for determining whether the image data written in the memory by the writing means has been accumulated for a predetermined sub-scanning width;
Dividing the image data written in the memory in a main scanning direction with a predetermined main scanning width;
Reading means for reading out the image data in order to output the image data from the memory to the image processing means in a rectangular shape unit comprising the predetermined main scanning width and the predetermined sub-scanning width;
Based on whether or not the image data amount stored in the memory is readable in the rectangular shape, arbitration means for arbitrating to read out the rectangular shape by the reading means;
An image processing apparatus comprising:
前蚘メモリに蓄積された前蚘画像デヌタ量を蚈数する蚈数手段を有し、
前蚘曞蟌手段が䞻走査方向にラむンの前蚘画像デヌタが曞き蟌たれるごずに前蚘蚈数手段をカりントアップし、前蚘読出手段が、前蚘矩圢圢状単䜍ごずに䞻走査方向に前蚘ラむン分読み出すごずに所定数枛算するこずを特城ずする請求項蚘茉の画像凊理装眮。
Counting means for counting the amount of image data stored in the memory;
The writing unit counts up each time the image data of one line is written in the main scanning direction, and the reading unit reads out the one line in the main scanning direction for each rectangular unit. The image processing apparatus according to claim 1, wherein a predetermined number is subtracted.
前蚘画像入力手段によっお入力された画像デヌタを前蚘画像入力手段の入力方匏に埓っお䞀時的に蓄積する蓄積手段を有し、
前蚘曞蟌手段は、前蚘蓄積手段に蓄積された画像デヌタを前蚘画像入力手段の入力方匏にしたがっお前蚘メモリに曞き蟌み動䜜を行い、前蚘読出手段は、前蚘画像入力手段の入力方匏によらずに読み出すこずを特城ずする請求項たたはに蚘茉の画像凊理装眮。
Storage means for temporarily storing the image data input by the image input means according to the input method of the image input means;
The writing means writes the image data stored in the storage means into the memory according to the input method of the image input means, and the reading means reads regardless of the input method of the image input means. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
前蚘調停手段は、残量怜出郚を備え、前蚘メモリのフル状態が発生するず、前蚘曞蟌手段に察しお停止信号を出力し、曞き蟌み偎の動䜜を停止させるこず特城ずする請求項ないしのいずれかに蚘茉の画像凊理装眮。   4. The arbitration unit includes a remaining amount detection unit, and outputs a stop signal to the writing unit to stop the operation on the writing side when the memory is full. An image processing apparatus according to any one of the above. 前蚘調停手段は、トリガ発生手段を備え、予め決められた読み出し偎の凊理ラむン単䜍分の所定ラむン数のデヌタが前蚘メモリに蓄積されるず、前蚘読出手段に起動信号を出力し、読み出し制埡を開始させるこず特城ずする請求項ないしのいずれか蚘茉の画像凊理装眮。   The arbitration unit includes a trigger generation unit, and when a predetermined number of lines of data corresponding to a processing line unit on a read side is accumulated in the memory, an output signal is output to the read unit to perform read control. The image processing apparatus according to claim 1, wherein the image processing apparatus is started. 前蚘所定の矩圢圢状単䜍は、画像凊理モヌドに基づいお可倉量に蚭定可胜ずするこずを特城ずする請求項ないしのいずれかに蚘茉の画像凊理装眮。   7. The image processing apparatus according to claim 1, wherein the predetermined rectangular shape unit can be set to a variable amount based on an image processing mode. 前蚘曞蟌み手段は、耇数タむプの画像読み取りデバむスを接続可胜ずするこずを特城ずする請求項ないしのいずれかに蚘茉の画像凊理装眮。   The image processing apparatus according to claim 1, wherein the writing unit is capable of connecting a plurality of types of image reading devices. 画像入力手段によっお入力された前蚘画像デヌタを䞻走査方向にそっお、順次メモリに曞き蟌む曞蟌ステップず、
前蚘曞き蟌みステップによっお前蚘メモリに曞き蟌たれた前蚘画像デヌタが所定の副走査幅分蓄積されたかどうか刀断する刀断ステップず、
前蚘メモリに曞き蟌たれた前蚘画像デヌタを䞻走査方向に所定の䞻走査幅で分割し、前蚘所定の䞻走査幅ず前蚘所定の副走査幅からなる矩圢圢状単䜍で前蚘画像デヌタを前蚘メモリから画像凊理手段に出力するために画像を読み出す読出ステップず、
前蚘メモリに蓄積された前蚘画像デヌタ量が前蚘矩圢圢状での読出し可胜であるかどうかに基づいお、前蚘読出手段により前蚘矩圢圢状での読出しを行うよう調停する調停ステップず、
を有するこずを特城ずする画像凊理方法。
A writing step of sequentially writing the image data input by the image input means in the memory along the main scanning direction;
A determination step of determining whether or not the image data written in the memory by the writing step has been accumulated for a predetermined sub-scanning width;
The image data written in the memory is divided by a predetermined main scanning width in the main scanning direction, and the image data is read from the memory in units of a rectangular shape including the predetermined main scanning width and the predetermined sub scanning width. A reading step for reading the image for output to the processing means;
An arbitration step for arbitrating to read out the rectangular shape by the reading means based on whether the image data amount stored in the memory is readable in the rectangular shape;
An image processing method comprising:
請求項蚘茉の画像凊理方法を実珟するプログラムを蚘憶したこずを特城ずするコンピュヌタが読み取り可胜な蚘憶媒䜓。   A computer-readable storage medium storing a program for realizing the image processing method according to claim 8. 請求項蚘茉の画像デヌタ凊理方法を実珟するこずを特城ずするプログラム。   A program for realizing the image data processing method according to claim 8.
JP2003359581A 2003-10-20 2003-10-20 Image processing apparatus, image processing method, computer-readable storage medium storing program, and program Pending JP2005124071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003359581A JP2005124071A (en) 2003-10-20 2003-10-20 Image processing apparatus, image processing method, computer-readable storage medium storing program, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003359581A JP2005124071A (en) 2003-10-20 2003-10-20 Image processing apparatus, image processing method, computer-readable storage medium storing program, and program

Publications (1)

Publication Number Publication Date
JP2005124071A true JP2005124071A (en) 2005-05-12

Family

ID=34615761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003359581A Pending JP2005124071A (en) 2003-10-20 2003-10-20 Image processing apparatus, image processing method, computer-readable storage medium storing program, and program

Country Status (1)

Country Link
JP (1) JP2005124071A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299519A (en) * 2007-05-30 2008-12-11 Ricoh Co Ltd Image processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299519A (en) * 2007-05-30 2008-12-11 Ricoh Co Ltd Image processing device

Similar Documents

Publication Publication Date Title
US7495669B2 (en) Image processing apparatus and image processing method
US7123385B2 (en) Image processing apparatus
US7817297B2 (en) Image processing apparatus and image processing method
JP3732702B2 (en) Image processing device
JP3939855B2 (en) Double-sided original reading method and apparatus
JP2004220584A (en) Image processing apparatus and image processing method
JP3870190B2 (en) Image processing device
KR100386095B1 (en) Method and apparatus for processing images,and a computer product
JP4384124B2 (en) Image processing apparatus and image processing method
US7072058B1 (en) Image processing apparatus
US8264730B2 (en) Image processing apparatus and image forming apparatus
US6930808B2 (en) Image processing apparatus and method
JP2005124071A (en) Image processing apparatus, image processing method, computer-readable storage medium storing program, and program
US6963420B1 (en) Image processing apparatus
JP2005173926A (en) Image processing apparatus, method, program, and storage medium
JPH10178537A (en) Image processing apparatus and method
JP4328608B2 (en) Image processing apparatus, method, program, and storage medium
US5245446A (en) Image processing system
JP2000032258A (en) Image processing apparatus and image processing method
JP4328609B2 (en) Image processing apparatus, method, program, and storage medium
JP3887135B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
JP2007110605A (en) Image forming apparatus
JP2007194955A (en) Image processing device
JP2007058878A (en) Image processing apparatus, image processing method, and computer-readable recording medium storing program for causing computer to execute the method
JP2003281515A (en) Image processing apparatus and method