JP2013138275A - Image scanning apparatus - Google Patents

Image scanning apparatus Download PDF

Info

Publication number
JP2013138275A
JP2013138275A JP2011287056A JP2011287056A JP2013138275A JP 2013138275 A JP2013138275 A JP 2013138275A JP 2011287056 A JP2011287056 A JP 2011287056A JP 2011287056 A JP2011287056 A JP 2011287056A JP 2013138275 A JP2013138275 A JP 2013138275A
Authority
JP
Japan
Prior art keywords
image data
area
memory area
page
buffer
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.)
Granted
Application number
JP2011287056A
Other languages
Japanese (ja)
Other versions
JP5705104B2 (en
Inventor
Hironari Tagami
裕也 田上
Kunihiko Shimamoto
邦彦 島本
Masaki Baba
政樹 馬場
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2011287056A priority Critical patent/JP5705104B2/en
Publication of JP2013138275A publication Critical patent/JP2013138275A/en
Application granted granted Critical
Publication of JP5705104B2 publication Critical patent/JP5705104B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To execute processing without degrading image quality when the size of image data is larger than the size of a page memory area.SOLUTION: A main control unit, when a position of writing of image data by an ASIC 14 reaches the end of a page memory area 15 before image data for one page is written in the page memory area 15, if the use of at least one of a plurality of buffer areas is ended for the image data for one page in a work memory area 13, causes the ASIC 14 to continue processing using the page memory area 15 and the buffer area whose use is ended, and if the use of none of the plurality of buffer areas is ended, causes the ASIC 14 to execute processing using an additional area secured from all or part of an area secured for another purpose in a memory 3 and the page memory area 15.

Description

本発明は、画像読取装置に関するものである。   The present invention relates to an image reading apparatus.

画像読取装置は、ページ画像を光学的に読み取り、そのページ画像の画像データを生成し、その画像データに対して所定の処理を施す。処理の途中、前段、または後段において画像データは所定のメモリー領域に一時的に記憶される。   The image reading device optically reads a page image, generates image data of the page image, and performs predetermined processing on the image data. Image data is temporarily stored in a predetermined memory area in the middle of the process, in the preceding stage, or in the subsequent stage.

その際、所定のメモリー領域のサイズより画像データのサイズが大きい場合、通常、処理が中断するが、処理を続行するための方法が提案されている(例えば特許文献1,2参照)。   At this time, if the size of the image data is larger than the size of a predetermined memory area, the processing is usually interrupted, but a method for continuing the processing has been proposed (see, for example, Patent Documents 1 and 2).

特許文献1に記載の技術は、メモリー領域のサイズより画像データのサイズが大きい場合、画像データの圧縮率を増加して、画像データのサイズを減らしている。   In the technique described in Patent Document 1, when the size of the image data is larger than the size of the memory area, the size of the image data is reduced by increasing the compression rate of the image data.

また、特許文献2に記載の技術は、メモリー領域のサイズより画像データのサイズが大きい場合、画像データの解像度を低下させて画像データのサイズを減らしている。   In the technique described in Patent Document 2, when the size of the image data is larger than the size of the memory area, the resolution of the image data is reduced to reduce the size of the image data.

特開平5−14562号公報JP-A-5-14562 特開2007−174177号公報JP 2007-174177 A

しかしながら、上述のように画像データのサイズを減らすと、画質が低下するため、好ましくない。   However, reducing the size of the image data as described above is not preferable because the image quality is degraded.

本発明は、上記の問題に鑑みてなされたものであり、画像データのサイズがページメモリー領域のサイズより大きい場合に、画質を低下させずに、処理を実行することができる画像読取装置を得ることを目的とする。   The present invention has been made in view of the above problems, and provides an image reading apparatus capable of executing processing without degrading image quality when the size of image data is larger than the size of a page memory area. For the purpose.

上記の課題を解決するために、本発明では以下のようにした。   In order to solve the above problems, the present invention is configured as follows.

本発明に係る画像読取装置は、画像読取により画像データを生成し出力するスキャナー部と、複数のデータ処理部と、ワークメモリー領域およびページメモリー領域を確保されるメモリーと、制御部とを備える。そして、ワークメモリー領域は、複数のバッファー領域を有する。複数のバッファー領域は、スキャナー部により出力された画像データ、またはスキャナー部により出力された画像データに対して所定の処理が施された画像データを、複数のデータ処理部のうちの2つのデータ処理部間で受け渡す際に順番に使用される。ページメモリー領域は、ワークメモリー領域より後段の、複数のデータ処理部のうちの所定のデータ処理部が処理後の画像データを書き込む領域である。制御部は、1ページ分の画像データがページメモリー領域に書き込まれる前に所定のデータ処理部による画像データの書込位置がページメモリー領域の終端に到達した場合、1ページ分の画像データについて複数のバッファー領域のうちの少なくとも1つが使用終了しているときには、ページメモリー領域および使用終了しているバッファー領域を使用して所定のデータ処理部による処理を継続させ、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、メモリーにおいて別の用途に確保されている領域の一部または全部から確保した追加領域およびページメモリー領域を使用して所定のデータ処理部による処理を実行させる。   An image reading apparatus according to the present invention includes a scanner unit that generates and outputs image data by image reading, a plurality of data processing units, a memory that secures a work memory area and a page memory area, and a control unit. The work memory area has a plurality of buffer areas. The plurality of buffer areas are obtained by processing image data output by the scanner unit or image data obtained by performing predetermined processing on the image data output by the scanner unit, using two data processing units of the plurality of data processing units. Used in turn when handing over between departments. The page memory area is an area in which a predetermined data processing unit out of a plurality of data processing units writes image data after processing after the work memory region. When the image data writing position by the predetermined data processing unit has reached the end of the page memory area before the image data for one page is written in the page memory area, the control section can perform a plurality of image data for one page. When at least one of the buffer areas has been used, the processing by the predetermined data processing unit is continued using the page memory area and the buffer area that has been used, and a plurality of pieces of image data for one page are stored. When none of the buffer areas have been used, processing by the specified data processing unit using the additional area and page memory area secured from a part or all of the area reserved for another purpose in the memory Let it run.

これにより、画像データのサイズがページメモリー領域のサイズより大きい場合、ページメモリー領域に加えて別のメモリー領域(ワークメモリー領域または上述の追加領域)が使用されるため、画像データのサイズがページメモリー領域のサイズより大きい場合に、画質を低下させずに、処理を実行することができる。また、使用終了しているバッファー領域が優先的に追加使用されるため、別のジョブに影響が出にくい。   As a result, if the size of the image data is larger than the size of the page memory area, another memory area (work memory area or the above-mentioned additional area) is used in addition to the page memory area. If it is larger than the size of the area, the process can be executed without degrading the image quality. In addition, since the buffer area that has been used is preferentially additionally used, it is difficult to affect other jobs.

また、本発明に係る画像読取装置は、上記の画像読取装置に加え、次のようにしてもよい。この場合、ワークメモリー領域は、メモリーにおいてページメモリー領域に連続して確保されている。   In addition to the above image reading apparatus, the image reading apparatus according to the present invention may be as follows. In this case, the work memory area is continuously secured in the page memory area in the memory.

また、本発明に係る画像読取装置は、上記の画像読取装置のいずれかに加え、次のようにしてもよい。この場合、制御部は、複数のバッファー領域のうちの使用終了していないバッファー領域内の画像データを、それぞれ1つ次のバッファー領域にコピーし、所定のデータ処理部は、ページメモリー領域からワークメモリー領域へ連続して画像データを書き込んでいく。   The image reading apparatus according to the present invention may be as follows in addition to any of the image reading apparatuses described above. In this case, the control unit copies the image data in the buffer area that has not been used among the plurality of buffer areas to the next buffer area, and the predetermined data processing unit performs the work from the page memory area. Image data is continuously written to the memory area.

これにより、ページメモリー領域からワークメモリー領域に書込位置が切り換わるときに処理を中断せずに連続的に行うことができる。   As a result, when the writing position is switched from the page memory area to the work memory area, the processing can be continuously performed without interruption.

また、本発明に係る画像読取装置は、上記の画像読取装置のいずれかに加え、次のようにしてもよい。この場合、制御部は、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、複数ページの画像データのソートに使用されるソートメモリー領域のサイズを減少させ、ソートメモリー領域の減少分を上述の追加領域とする。   The image reading apparatus according to the present invention may be as follows in addition to any of the image reading apparatuses described above. In this case, the control unit reduces the size of the sort memory area used for sorting the image data of the plurality of pages when the use of any of the plurality of buffer areas for the image data for one page has not been completed. The reduced area is set as the additional area described above.

また、本発明に係る画像読取装置は、上記の画像読取装置のいずれかに加え、次のようにしてもよい。この場合、制御部は、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、マルチジョブ用の予備メモリー領域のサイズを減少させ、マルチジョブ用の予備メモリー領域の減少分を、上述の追加領域とする。   The image reading apparatus according to the present invention may be as follows in addition to any of the image reading apparatuses described above. In this case, the control unit reduces the size of the spare memory area for multi-jobs and reduces the spare memory area for multi-jobs when none of the plurality of buffer areas has been used for one page of image data. Minute is the above-mentioned additional area.

また、本発明に係る画像読取装置は、上記の画像読取装置のいずれかに加え、次のようにしてもよい。この場合、制御部は、上述の追加領域を確保した場合、画像読取のジョブの終了時に追加領域を解放し、解放した領域を、上述の別の用途に確保されている領域に戻す。   The image reading apparatus according to the present invention may be as follows in addition to any of the image reading apparatuses described above. In this case, when the above-described additional area is secured, the control unit releases the additional area at the end of the image reading job, and returns the released area to the area secured for the above-described another use.

これにより、上述の別の用途において領域が不足しなくて済む。   This eliminates the need for a shortage of areas for the other applications described above.

また、本発明に係る画像読取装置は、上記の画像読取装置のいずれかに加え、次のようにしてもよい。この場合、上述の複数のバッファー領域は、ダブルバッファーまたはリングバッファーとして使用され、複数のバッファー領域のそれぞれは、1バンド分の画像データを格納可能なサイズを有する。   The image reading apparatus according to the present invention may be as follows in addition to any of the image reading apparatuses described above. In this case, the plurality of buffer areas described above are used as a double buffer or a ring buffer, and each of the plurality of buffer areas has a size capable of storing image data for one band.

また、本発明に係る画像読取装置は、上記の画像読取装置のいずれかに加え、次のようにしてもよい。この場合、上述のワークメモリー領域は、所定のデータ処理部の入力バッファーとして使用される。   The image reading apparatus according to the present invention may be as follows in addition to any of the image reading apparatuses described above. In this case, the above-described work memory area is used as an input buffer for a predetermined data processing unit.

また、本発明に係る画像読取装置は、上記の画像読取装置のいずれかに加え、次のようにしてもよい。この場合、上述の所定のデータ処理部は、圧縮処理を行い、圧縮処理後の画像データをページメモリー領域に書き込んでいく。   The image reading apparatus according to the present invention may be as follows in addition to any of the image reading apparatuses described above. In this case, the predetermined data processing unit described above performs compression processing, and writes the compressed image data in the page memory area.

圧縮処理の場合、画像データの内容によって圧縮処理後の画像データのサイズが変化するため、圧縮処理後の画像データを記憶するページメモリー領域のサイズを最低圧縮率に合わせて設定すると、ページメモリー領域の使用効率が悪くなるが、これにより、ページメモリー領域のサイズを最低圧縮率に対応するサイズより小さくしてページメモリー領域の使用効率を向上することができる。   In the case of compression processing, the size of the image data after the compression processing changes depending on the content of the image data. Therefore, if the size of the page memory area for storing the image data after the compression processing is set according to the minimum compression ratio, the page memory area As a result, the page memory area size can be made smaller than the size corresponding to the minimum compression ratio, thereby improving the page memory area usage efficiency.

本発明によれば、画像読取装置において、画像データのサイズがページメモリー領域のサイズより大きい場合に、画質を低下させずに、処理を実行することができる。   According to the present invention, in the image reading apparatus, when the size of the image data is larger than the size of the page memory area, the processing can be executed without degrading the image quality.

図1は、本発明の実施の形態に係る画像読取装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an image reading apparatus according to an embodiment of the present invention. 図2は、図1に示す画像読取装置における各種メモリー領域およびデータフローについて説明するブロック図である。FIG. 2 is a block diagram for explaining various memory areas and data flow in the image reading apparatus shown in FIG. 図3は、図1に示す画像読取装置における圧縮処理について説明するフローチャートである。FIG. 3 is a flowchart for explaining compression processing in the image reading apparatus shown in FIG. 図4は、図1に示す画像読取装置におけるページメモリー領域が不足した場合にワークメモリー領域を使用して圧縮処理を続行する際の処理について説明する図である。FIG. 4 is a diagram illustrating processing when the compression processing is continued using the work memory area when the page memory area in the image reading apparatus shown in FIG. 1 is insufficient.

以下、図に基づいて本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態に係る画像読取装置の構成を示すブロック図である。図1に示す画像読取装置は、互いに接続された、スキャナー部1、画像処理部2、メモリー3、主制御部4、および出力部5を有する。   FIG. 1 is a block diagram showing a configuration of an image reading apparatus according to an embodiment of the present invention. The image reading apparatus shown in FIG. 1 includes a scanner unit 1, an image processing unit 2, a memory 3, a main control unit 4, and an output unit 5, which are connected to one another.

スキャナー部1は、原稿のページ画像を光学的に読み取り、そのページ画像の画像データを生成し出力する。   The scanner unit 1 optically reads a page image of a document, generates image data of the page image, and outputs it.

また、画像処理部2は、画像データに対して所定の処理を施す。画像処理部2は、スキャナー部1により出力された画像データ、またはスキャナー部1により出力された画像データに対して前段の処理が施された画像データに対して所定の処理を施す。画像処理部2は、その所定の処理後の画像データをメモリー3内の所定のメモリー領域に書き込んでいく。例えば、画像処理部2は、1または複数のASIC(Application Specific Integrated Circuit)で構成される。   The image processing unit 2 performs predetermined processing on the image data. The image processing unit 2 performs predetermined processing on the image data output from the scanner unit 1 or image data obtained by performing the previous processing on the image data output by the scanner unit 1. The image processing unit 2 writes the image data after the predetermined processing into a predetermined memory area in the memory 3. For example, the image processing unit 2 includes one or a plurality of ASICs (Application Specific Integrated Circuits).

また、メモリー3は、DRAM(Dynamic Random Access Memory)などの揮発性メモリーである。メモリー3において、画像処理部2による処理に要求されるメモリー領域が適宜確保される。   The memory 3 is a volatile memory such as a DRAM (Dynamic Random Access Memory). In the memory 3, a memory area required for processing by the image processing unit 2 is appropriately secured.

図2は、図1に示す画像読取装置における各種メモリー領域およびデータフローについて説明するブロック図である。   FIG. 2 is a block diagram for explaining various memory areas and data flow in the image reading apparatus shown in FIG.

図2において、CCD(Charge Coupled Device)11は、光学的に得られたページ画像を電気信号として出力する撮像素子である。読込用ASIC12は、CCD11からの電気信号を画像データに変換し出力する回路である。CCD11および読込用ASIC12は、スキャナー部1に含まれる。   In FIG. 2, a CCD (Charge Coupled Device) 11 is an image sensor that outputs an optically obtained page image as an electrical signal. The reading ASIC 12 is a circuit that converts an electrical signal from the CCD 11 into image data and outputs the image data. The CCD 11 and the reading ASIC 12 are included in the scanner unit 1.

ワークメモリー領域13は、メモリー3において確保され、読込用ASIC12の出力バッファーおよびコーデック用ASIC14の入力バッファーとして使用される。   The work memory area 13 is secured in the memory 3 and is used as an output buffer for the read ASIC 12 and an input buffer for the codec ASIC 14.

コーデック用ASIC14,20は、画像データの圧縮を行う回路である。コーデック用ASIC14,20は、例えばJPEG(Joint Photographic Experts Group)などの圧縮方式で画像データの圧縮を行う。   The codec ASICs 14 and 20 are circuits that compress image data. The codec ASICs 14 and 20 compress image data by a compression method such as JPEG (Joint Photographic Experts Group).

一次ページメモリー領域15は、メモリー3において確保され、読込用ASIC12により変換された画像データ(圧縮済み画像データ)、すなわち、画像処理用ASIC18による画像処理前の画像データ(圧縮済み画像データ)を、記憶するためのメモリー領域である。つまり、一次ページメモリー領域15は、ワークメモリー領域13より後段(下流側)の領域であって、コーデック用ASIC14が処理後の画像データを書き込む領域である。   The primary page memory area 15 is secured in the memory 3, and the image data (compressed image data) converted by the reading ASIC 12, that is, the image data before being processed by the image processing ASIC 18 (compressed image data), It is a memory area for storing. That is, the primary page memory area 15 is an area downstream (downstream) from the work memory area 13 and is an area in which the codec ASIC 14 writes processed image data.

コーデック用ASIC16は、コーデック用ASIC14の圧縮方式に対応した伸張方式で、圧縮された画像データの伸張を行う回路である。   The codec ASIC 16 is a circuit that decompresses the compressed image data by a decompression method corresponding to the compression method of the codec ASIC 14.

ワークメモリー領域17は、メモリー3において確保され、コーデック用ASIC16の出力バッファーおよび画像処理用ASIC18の入力バッファーとして使用される。   The work memory area 17 is secured in the memory 3 and is used as an output buffer of the codec ASIC 16 and an input buffer of the image processing ASIC 18.

画像処理用ASIC18は、画像データに所定の画像処理(解像度変換、回転、データ形式の変換など)を施す回路である。   The image processing ASIC 18 is a circuit that performs predetermined image processing (resolution conversion, rotation, data format conversion, etc.) on the image data.

ワークメモリー領域19は、メモリー3において確保され、画像処理用ASIC18の出力バッファーおよびコーデック用ASIC20の入力バッファーとして使用される。   The work memory area 19 is secured in the memory 3 and is used as an output buffer for the image processing ASIC 18 and an input buffer for the codec ASIC 20.

二次ページメモリー領域21は、メモリー3において確保され、画像処理用ASIC18による画像処理後の画像データ(圧縮済み画像データ)を記憶するためのメモリー領域である。つまり、二次ページメモリー領域21は、ワークメモリー領域19より後段(下流側)の領域であって、コーデック用ASIC20が処理後の画像データを書き込む領域である。   The secondary page memory area 21 is secured in the memory 3 and is a memory area for storing image data (compressed image data) after image processing by the image processing ASIC 18. That is, the secondary page memory area 21 is an area downstream (downstream) from the work memory area 19 and is an area in which the codec ASIC 20 writes processed image data.

なお、コーデック用ASIC14,16,20および画像処理用ASIC18は、画像処理部2に含まれる。   The codec ASICs 14, 16, and 20 and the image processing ASIC 18 are included in the image processing unit 2.

図2に示すように、読込用ASIC12から出力された画像データは、ワークメモリー領域13を介してコーデック用ASIC14に渡され、コーデック用ASIC14により圧縮された画像データが1バンド(所定数のライン)ずつ順番に一次ページメモリー領域15に記憶されていく。そして、コーデック用ASIC16は、一次ページメモリー領域15に蓄積された圧縮済み画像データを順番に読み出して伸張し、伸張した画像データをワークメモリー領域17を介して画像処理用ASIC18に渡す。画像処理用ASIC18により画像処理を施された画像データは、ワークメモリー領域19を介してコーデック用ASIC20に渡され、コーデック用ASIC20により圧縮された画像データが順番に二次ページメモリー領域21に記憶されていく。   As shown in FIG. 2, the image data output from the reading ASIC 12 is transferred to the codec ASIC 14 via the work memory area 13, and the image data compressed by the codec ASIC 14 is one band (a predetermined number of lines). They are stored in the primary page memory area 15 one by one. The codec ASIC 16 sequentially reads and expands the compressed image data stored in the primary page memory area 15 and passes the expanded image data to the image processing ASIC 18 via the work memory area 17. The image data subjected to the image processing by the image processing ASIC 18 is transferred to the codec ASIC 20 via the work memory area 19, and the image data compressed by the codec ASIC 20 is sequentially stored in the secondary page memory area 21. To go.

図1に戻り、主制御部4は、スキャナー部1、画像処理部2、メモリー3、および出力部5を制御する。また、主制御部4は、メモリー3において画像処理部2に要求されるメモリー領域(ワークメモリー領域13,17,19、一次ページメモリー領域15、二次ページメモリー領域21など)を確保する。   Returning to FIG. 1, the main control unit 4 controls the scanner unit 1, the image processing unit 2, the memory 3, and the output unit 5. In addition, the main control unit 4 secures memory areas (work memory areas 13, 17, 19, primary page memory area 15, secondary page memory area 21 and the like) required for the image processing unit 2 in the memory 3.

このワークメモリー領域13,17,19は、スキャナー部1により出力された画像データ、またはスキャナー部1により出力された画像データに対して所定の処理が施された画像データをASIC間で受け渡す際に使用される。ワークメモリー領域13,17,19は、複数のバッファー領域を有する。この複数のバッファー領域は、ダブルバッファーまたはリングバッファーとして使用される。つまり、複数のバッファー領域に、先頭のバッファー領域から最後のバッファー領域まで順番にデータが書き込まれ、最後のバッファー領域の次に先頭のバッファー領域にデータが書き込まれる。1つのバッファー領域は、1バンド分の画像データ(圧縮されておらずサイズが固定の画像データ)を記憶可能なサイズを有する。   The work memory areas 13, 17, and 19 are used for transferring image data output from the scanner unit 1 or image data obtained by performing predetermined processing on the image data output from the scanner unit 1 between ASICs. Used for. The work memory areas 13, 17, and 19 have a plurality of buffer areas. The plurality of buffer areas are used as a double buffer or a ring buffer. That is, data is sequentially written in a plurality of buffer areas from the first buffer area to the last buffer area, and data is written in the first buffer area after the last buffer area. One buffer area has a size capable of storing image data for one band (image data that is not compressed and has a fixed size).

この実施の形態では、ワークメモリー領域13,19は、メモリー3においてページメモリー領域15,21にそれぞれ連続して確保されている。   In this embodiment, the work memory areas 13 and 19 are continuously secured in the page memory areas 15 and 21 in the memory 3, respectively.

また、主制御部4は、1ページ分の画像データが一次ページメモリー領域15に書き込まれる前にコーデック用ASIC14による画像データの書込位置が一次ページメモリー領域15の終端に到達した場合、1ページ分の画像データについて、ワークメモリー領域13の複数のバッファー領域のうちの少なくとも1つが使用終了しているときには、一次ページメモリー領域15および使用終了しているバッファー領域を使用してコーデック用ASIC14による処理を継続させ、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、メモリー3において別の用途に確保されている領域の一部または全部から確保した追加領域および一次ページメモリー領域15を使用してコーデック用ASIC14による処理を実行させる。   Further, the main control unit 4 determines that one page if the writing position of the image data by the codec ASIC 14 reaches the end of the primary page memory area 15 before the image data for one page is written in the primary page memory area 15. When at least one of the plurality of buffer areas in the work memory area 13 has been used, the processing by the codec ASIC 14 using the primary page memory area 15 and the buffer area that has been used. When one of the plurality of buffer areas has not been used for one page of image data, an additional area and a primary page secured from a part or all of the area secured for another use in the memory 3 ASIC 1 for codec using memory area 15 To perform the processing by.

同様に、主制御部4は、1ページ分の画像データが二次ページメモリー領域21に書き込まれる前にコーデック用ASIC20による画像データの書込位置が二次ページメモリー領域21の終端に到達した場合、1ページ分の画像データについて、ワークメモリー領域19の複数のバッファー領域のうちの少なくとも1つが使用終了しているときには、二次ページメモリー領域21および使用終了しているバッファー領域を使用してコーデック用ASIC20による処理を継続させ、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、メモリー3において別の用途に確保されている領域の一部または全部から確保した追加領域および二次ページメモリー領域21を使用してコーデック用ASIC20による処理を実行させる。   Similarly, when the image data writing position by the codec ASIC 20 reaches the end of the secondary page memory area 21 before the image data for one page is written in the secondary page memory area 21, the main control unit 4. When at least one of the plurality of buffer areas in the work memory area 19 has been used for one page of image data, the codec is used using the secondary page memory area 21 and the buffer area that has been used. If the processing by the ASIC 20 is continued and none of the plurality of buffer areas has been used for one page of image data, an addition secured from a part or all of the area reserved for another use in the memory 3 ASIC for codec using area and secondary page memory area 21 0 by executing a process.

例えば、主制御部4は、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、複数ページの画像データのソートに使用されるソートメモリー領域のサイズを減少させ、ソートメモリー領域の減少分を上述の追加領域とする。   For example, the main control unit 4 reduces the size of the sort memory area used for sorting the image data of a plurality of pages when the use of any of the plurality of buffer areas for the image data for one page has not been completed. The decrease in the memory area is defined as the additional area described above.

また、例えば、主制御部4は、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、マルチジョブ用の予備メモリー領域(複数のジョブを並行して実行する際に使用されるメモリー領域)のサイズを減少させ、マルチジョブ用の予備メモリー領域の減少分を、上述の追加領域とする。   Further, for example, when the use of any of the plurality of buffer areas for one page of image data is not completed, the main control unit 4 reserves a multi-job spare memory area (when executing a plurality of jobs in parallel). The size of the memory area used) is reduced, and the reduced amount of the spare memory area for multi-jobs is set as the additional area described above.

なお、主制御部4は、上述の追加領域を確保した場合、画像読取のジョブの終了時に追加領域を解放し、解放した領域を、上述の別の用途に確保されている領域に戻す。   When the above-described additional area is secured, the main control unit 4 releases the additional area at the end of the image reading job, and returns the released area to the area secured for the above-described another use.

また、ワークメモリー領域13,19がメモリー3においてページメモリー領域15,21に連続して確保されている場合、主制御部4は、ワークメモリー領域13,19の複数のバッファー領域のうちの使用終了していないバッファー領域内の画像データを、それぞれ1つ次のバッファー領域にコピーし、バッファー領域1つ分の「空き」をページメモリー領域15,21に隣接して作成し、コーデック用ASIC14,20は、その「空き」を利用してページメモリー領域15,21からワークメモリー領域13,19へ連続して画像データを書き込んでいく。   When the work memory areas 13 and 19 are continuously reserved in the memory 3 in the page memory areas 15 and 21, the main control unit 4 terminates use of the buffer areas of the work memory areas 13 and 19. The image data in the buffer area that has not been copied is copied to the next buffer area, and "empty" for one buffer area is created adjacent to the page memory areas 15 and 21, and the ASICs for codecs 14 and 20 The image data is continuously written from the page memory areas 15 and 21 to the work memory areas 13 and 19 using the “vacant” space.

また、出力部5は、画像処理部2による画像処理後の画像データを出力する。   The output unit 5 outputs the image data after the image processing by the image processing unit 2.

次に、上記画像読取装置の動作(主に画像処理部2および主制御部4)について説明する。   Next, operations of the image reading apparatus (mainly the image processing unit 2 and the main control unit 4) will be described.

ここでは、コーデック用ASIC14,20による圧縮処理、およびページメモリー領域15,21への圧縮済み画像データの書き込みについて説明する。図3は、図1に示す画像読取装置における圧縮処理について説明するフローチャートである。図4は、図1に示す画像読取装置におけるページメモリー領域15,21が不足した場合にワークメモリー領域13,19を使用して圧縮処理を続行する際の処理について説明する図である。   Here, compression processing by the codec ASICs 14 and 20 and writing of compressed image data into the page memory areas 15 and 21 will be described. FIG. 3 is a flowchart for explaining compression processing in the image reading apparatus shown in FIG. FIG. 4 is a diagram for explaining processing when the compression processing is continued using the work memory areas 13 and 19 when the page memory areas 15 and 21 in the image reading apparatus shown in FIG. 1 are insufficient.

主制御部4は、一次ページメモリー領域15を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)をコーデック用ASIC14,16にセットし、さらに、図4(A)に示すように、一次ページメモリー領域15に連続させてワークメモリー領域13を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)を読込用ASIC12およびコーデック用ASIC14にセットする。同様に、主制御部4は、二次ページメモリー領域21を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)を画像処理用ASIC18にセットし、さらに、二次ページメモリー領域21に連続させてワークメモリー領域19を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)を画像処理用ASIC18およびコーデック用ASIC20にセットする。また、主制御部4は、ワークメモリー領域17を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)をコーデック用ASIC16および画像処理用ASIC18にセットする。   The main control unit 4 secures the primary page memory area 15, sets its address information (start address and size, or start address and end address) in the codec ASICs 14 and 16, and further, as shown in FIG. As described above, the work memory area 13 is secured in succession to the primary page memory area 15, and the address information (start address and size, or start address and end address) is set in the read ASIC 12 and the codec ASIC 14. Similarly, the main control unit 4 secures the secondary page memory area 21, sets its address information (start address and size, or start address and end address) in the image processing ASIC 18, and further stores the secondary page memory. The work memory area 19 is secured continuously to the area 21 and its address information (start address and size, or start address and end address) is set in the image processing ASIC 18 and codec ASIC 20. Further, the main control unit 4 secures the work memory area 17 and sets its address information (start address and size, or start address and end address) in the codec ASIC 16 and the image processing ASIC 18.

図4(A)の場合、読込用ASIC12は、ワークメモリー領域13における4つのバッファー領域13a〜13dを順番に出力バッファーとして使用し、コーデック用ASIC14は、そのバッファー領域13a〜13dを順番に入力バッファーとして使用する。つまり、読込用ASIC12は、バッファー領域13aに1バンド分の画像データを書き込んだ後、次のバンドの画像データをバッファー領域13bに書き込み、その次のバンドの画像データをバッファー領域13cに書き込み、さらにその次のバンドの画像データをバッファー領域13dに書き込む。そして、読込用ASIC12は、その次のバンドの画像データをバッファー領域13aに書き込む。一方、コーデック用ASIC14は、バッファー領域13aから1バンド分の画像データを読み込んだ後、次のバンドの画像データをバッファー領域13bから読み込み、その次のバンドの画像データをバッファー領域13cから読み込み、さらにその次のバンドの画像データをバッファー領域13dから読み込む。そして、コーデック用ASIC14は、その次のバンドの画像データをバッファー領域13aから読み込む。このように、ワークメモリー領域13は、読込用ASIC12およびコーデック用ASIC14によりリングバッファーとして使用される。なお、ワークメモリー領域19も、同様に、画像処理用ASIC18およびコーデック用ASIC20によりリングバッファーとして使用される。   In the case of FIG. 4A, the read ASIC 12 uses the four buffer areas 13a to 13d in the work memory area 13 as output buffers in order, and the codec ASIC 14 uses the buffer areas 13a to 13d in order as input buffers. Use as That is, the reading ASIC 12 writes the image data for one band to the buffer area 13a, then writes the image data of the next band to the buffer area 13b, writes the image data of the next band to the buffer area 13c, and The image data of the next band is written in the buffer area 13d. Then, the reading ASIC 12 writes the image data of the next band in the buffer area 13a. On the other hand, the codec ASIC 14 reads the image data for one band from the buffer area 13a, reads the image data of the next band from the buffer area 13b, reads the image data of the next band from the buffer area 13c, and The next band of image data is read from the buffer area 13d. Then, the codec ASIC 14 reads the image data of the next band from the buffer area 13a. In this way, the work memory area 13 is used as a ring buffer by the reading ASIC 12 and the codec ASIC 14. The work memory area 19 is similarly used as a ring buffer by the image processing ASIC 18 and the codec ASIC 20.

次に、コーデック用ASIC14による圧縮処理について説明する。   Next, compression processing by the codec ASIC 14 will be described.

コーデック用ASIC14は、1バンド分の画像データをワークメモリー領域13から読み出して圧縮し、1バンド分の圧縮済みの画像データを一次ページメモリー領域15に書き込んでいく(ステップS1)。その際、主制御部4は、各ページについて、コーデック用ASIC14による処理済みのバンドの数をカウントする。なお、このとき、1バンド分の圧縮前の画像データのサイズは一定であるが、1バンド分の圧縮済みの画像データのサイズは一定ではない。各バンドの圧縮済み画像データは、1つ前のバンドの圧縮済み画像データに隙間なく連続して書き込まれる。各バンドの圧縮済み画像データの先頭記憶位置および終端記憶位置(またはサイズ)は、主制御部4により管理されて、一次ページメモリー領域15から各バンドの圧縮済み画像データを読み出すときには、主制御部4により管理されている先頭記憶位置および終端記憶位置(またはサイズ)から、各バンドの圧縮済み画像データの読出位置が特定される。   The codec ASIC 14 reads the image data for one band from the work memory area 13 and compresses it, and writes the compressed image data for one band in the primary page memory area 15 (step S1). At that time, the main control unit 4 counts the number of bands processed by the codec ASIC 14 for each page. At this time, the size of the image data before compression for one band is constant, but the size of the compressed image data for one band is not constant. The compressed image data of each band is continuously written in the compressed image data of the previous band without a gap. The head storage position and the end storage position (or size) of the compressed image data of each band are managed by the main control unit 4, and when the compressed image data of each band is read from the primary page memory area 15, the main control unit The read position of the compressed image data of each band is specified from the start storage position and the end storage position (or size) managed by 4.

コーデック用ASIC14は、その画像データの書込位置が一次ページメモリー領域15の終端アドレスに到達したか否かを監視している(ステップS2)。   The codec ASIC 14 monitors whether or not the writing position of the image data has reached the end address of the primary page memory area 15 (step S2).

1バンド分の圧縮済みの画像データの書き込みが完了すると、コーデック用ASIC14は、1ページ分のバンドの処理が完了したか否かを判定し(ステップS3)、1ページ分のバンドの処理が完了していなければ、ステップS1に戻り、次のバンドの処理を同様に行う。   When the writing of the compressed image data for one band is completed, the codec ASIC 14 determines whether or not the processing for the band for one page is completed (step S3), and the processing for the band for one page is completed. If not, the process returns to step S1 and the next band is similarly processed.

コーデック用ASIC14が、画像データの書込位置が一次ページメモリー領域15の終端アドレスに到達したことを検出すると、主制御部4は、コーデック用ASIC14による処理済みバンド数のカウント値から、1ページにおける未処理の残りバンド数を特定する(ステップS4)。例えば、1ページのバンド数が75であり、カウント値が72である場合、残りバンド数は3である。なお、1ページのバンド数は既知でありかつ一定である。   When the codec ASIC 14 detects that the writing position of the image data has reached the end address of the primary page memory area 15, the main control unit 4 determines the number of bands processed by the codec ASIC 14 in one page. The number of remaining unprocessed bands is specified (step S4). For example, when the number of bands for one page is 75 and the count value is 72, the number of remaining bands is 3. Note that the number of bands per page is known and constant.

次に、主制御部4は、その残りバンド数およびワークメモリー領域13におけるバッファー領域の数から、使用終了したバッファー領域がワークメモリー領域13にあるか否かを判定する(ステップS5)。   Next, the main control unit 4 determines from the number of remaining bands and the number of buffer areas in the work memory area 13 whether there is a buffer area that has been used in the work memory area 13 (step S5).

残りバンド数がワークメモリー領域13におけるバッファー領域の数より少ない場合には、使用終了したバッファー領域がワークメモリー領域13にあると判定される。また、ワークメモリー領域13におけるバッファー領域の数から残りバンド数を減算して得られる値が、使用終了したバッファー領域の数となる。   If the number of remaining bands is smaller than the number of buffer areas in the work memory area 13, it is determined that the buffer area that has been used is in the work memory area 13. Further, the value obtained by subtracting the remaining number of bands from the number of buffer areas in the work memory area 13 is the number of buffer areas that have been used.

例えば、図4(B)に示すように、ワークメモリー領域13におけるバッファー領域13a〜13dの数が4であり、残りバンド数が3である場合、1つの使用終了したバッファー領域13dが存在する。   For example, as shown in FIG. 4B, when the number of buffer areas 13a to 13d in the work memory area 13 is 4 and the remaining number of bands is 3, there is one buffer area 13d that has been used.

使用終了したバッファー領域がワークメモリー領域13にあると判定した場合、主制御部4は、コーデック用ASIC14に、ワークメモリー領域13を使用して圧縮処理を続行させる(ステップS6)。つまり、コーデック用ASIC14は、コーデック用ASIC14は、画像データの書込位置が一次ページメモリー領域15の終端アドレスに到達したことを検出したときのバンドについての圧縮処理後の画像データの一部または全部、並びにそれ以降のバンドを、ワークメモリー領域13において未処理のバンドの画像データが存在しない領域に、未処理のバンドの画像データを上書きしないように書き込む。   When it is determined that the buffer area that has been used is in the work memory area 13, the main control unit 4 causes the codec ASIC 14 to continue the compression process using the work memory area 13 (step S6). That is, the codec ASIC 14 is a part or all of the image data after compression processing for the band when the codec ASIC 14 detects that the writing position of the image data has reached the end address of the primary page memory area 15. In addition, the subsequent bands are written in the work memory area 13 in an area where there is no unprocessed band image data so as not to overwrite the unprocessed band image data.

このとき、主制御部4は、図4(C)に示すように、まず、一次ページメモリー領域15に隣接するバッファー領域13aが空きとなるように、使用中のバッファー領域13a〜13c内の画像データ(圧縮処理前の画像データ)を1つ次のバッファー領域13b〜13dへ移動する。つまり、最初に、バッファー領域13c内の画像データを、使用終了したバッファー領域13dへコピーし、次に、バッファー領域13b内の画像データをバッファー領域13cへコピーし、次に、バッファー領域13a内の画像データをバッファー領域13bへコピーする。これにより、バッファー領域13aは空きとなる。   At this time, as shown in FIG. 4 (C), the main control unit 4 first images in the buffer areas 13a to 13c in use so that the buffer area 13a adjacent to the primary page memory area 15 becomes empty. Data (image data before compression processing) is moved to the next buffer area 13b-13d. That is, first, the image data in the buffer area 13c is copied to the buffer area 13d that has been used, then the image data in the buffer area 13b is copied to the buffer area 13c, and then the buffer area 13a. The image data is copied to the buffer area 13b. As a result, the buffer area 13a becomes empty.

コーデック用ASIC14は、コピー先のバッファー領域13b〜13dから、後続のバンドを順番に読み込む。そして、ワークメモリー領域13のバッファー領域13bに記憶されている1バンド分の画像データから生成される1バンド分の圧縮済み画像データは、一次ページメモリー領域15から連続してバッファー領域13aに記憶される。そして、バッファー領域13bに記憶されている画像データの圧縮処理がコーデック用ASIC14により完了すると、バッファー領域13bは、空きとなるため、以降のバンドの画像データ(バッファー領域13c,13dに記憶されている画像データ)から生成される圧縮済み画像データを記憶される。同様に、バッファー領域13cに記憶されている画像データの圧縮処理がコーデック用ASIC14により完了すると、バッファー領域13cは、空きとなるため、以降のバンドの画像データ(バッファー領域13dに記憶されている画像データ)から生成される圧縮済み画像データを記憶される。   The codec ASIC 14 reads the subsequent bands in order from the copy destination buffer areas 13b to 13d. The compressed image data for one band generated from the image data for one band stored in the buffer area 13b of the work memory area 13 is continuously stored in the buffer area 13a from the primary page memory area 15. The When the compression processing of the image data stored in the buffer area 13b is completed by the codec ASIC 14, the buffer area 13b becomes empty, so that image data of the subsequent bands (stored in the buffer areas 13c and 13d). Compressed image data generated from (image data) is stored. Similarly, when the compression processing of the image data stored in the buffer area 13c is completed by the codec ASIC 14, the buffer area 13c becomes empty, so that image data of the subsequent bands (images stored in the buffer area 13d) Compressed image data generated from (data) is stored.

なお、ステップS6の処理の後、ステップS2では、コーデック用ASIC14は、画像データの書込位置が、未処理のバンドの画像データが存在しない領域(上述の「空き」となったバッファー領域)の終端に到達したか否かを監視し、画像データの書込位置が、未処理のバンドの画像データが存在しない領域の終端に到達した場合、ステップS4以降の処理が再度実行される。   After step S6, in step S2, the codec ASIC 14 has an image data write position in an area where there is no unprocessed band image data (the above-described “empty” buffer area). Whether or not the end has been reached is monitored, and if the writing position of the image data has reached the end of the area where there is no unprocessed band image data, the processing from step S4 onward is executed again.

一方、使用終了したバッファー領域がワークメモリー領域13にない場合(ステップS5)、主制御部4は、残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能か否かを判定する(ステップS7)。なお、1バンド分の圧縮処理後の画像データのためのメモリー領域のサイズは予め決められている。   On the other hand, if there is no buffer area that has been used in the work memory area 13 (step S5), the main control unit 4 assigns a memory area for image data after compression processing for the remaining number of bands to the other memory area as described above. It is determined whether or not procurement is possible from the area reserved for the application (step S7). Note that the size of the memory area for image data after compression processing for one band is determined in advance.

残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能ではない場合、主制御部4は、エラー通知を行い(ステップS8)、この圧縮処理を中止する。主制御部4は、エラー通知として、例えば図示せぬ操作パネルにエラーメッセージを表示させる。   If the memory area for the image data after the compression processing for the remaining number of bands cannot be procured from the area reserved for another use as described above, the main control unit 4 gives an error notification (step S8) The compression process is stopped. For example, the main control unit 4 displays an error message on an operation panel (not shown) as an error notification.

残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能である場合、主制御部4は、上述のようにして、特定した不足量の領域を確保し、確保した領域を一次ページメモリー領域15に追加する(ステップS9)。   When the memory area for the image data after the compression processing for the remaining number of bands can be procured from the area secured for another use as described above, the main control unit 4 The specified shortage area is secured, and the secured area is added to the primary page memory area 15 (step S9).

そして、コーデック用ASIC14の場合、主制御部4は、コーデック用ASIC14の前段(上流側)にページメモリー領域がないため、圧縮処理前の1ページ分の画像データが残っていないと判断し(ステップS10)、主制御部4は、リトライ通知を行い(ステップS11)、この圧縮処理を中止する。主制御部4は、リトライ通知として、例えば図示せぬ操作パネルに、再度の画像スキャン操作をユーザーに促すメッセージを表示させる。これにより、ユーザーは、画像スキャン操作を再度行い、スキャナー部1は、再度、画像読取を実行する。   In the case of the codec ASIC 14, the main control unit 4 determines that there is no page data area before the compression process because there is no page memory area in the upstream (upstream side) of the codec ASIC 14 (step S <b> 1). In step S10, the main control unit 4 issues a retry notification (step S11), and stops the compression process. As the retry notification, the main control unit 4 displays a message prompting the user to perform another image scanning operation, for example, on an operation panel (not shown). As a result, the user performs the image scanning operation again, and the scanner unit 1 executes the image reading again.

次に、コーデック用ASIC20による圧縮処理について説明する。   Next, compression processing by the codec ASIC 20 will be described.

コーデック用ASIC20は、1バンド分の画像データをワークメモリー領域19から読み出して圧縮し、1バンド分の圧縮済みの画像データを二次ページメモリー領域21に書き込んでいく(ステップS1)。その際、主制御部4は、コーデック用ASIC20による処理済みのバンドの数をカウントする。なお、このとき、1バンド分の圧縮前の画像データのサイズは一定であるが、1バンド分の圧縮済みの画像データのサイズは一定ではない。各バンドの圧縮済み画像データは、1つ前のバンドの圧縮済み画像データに隙間なく連続して書き込まれる。各バンドの圧縮済み画像データの先頭記憶位置および終端記憶位置(またはサイズ)は、主制御部4により管理されて、二次ページメモリー領域21から各バンドの圧縮済み画像データを読み出すときには、主制御部4により管理されている先頭記憶位置および終端記憶位置(またはサイズ)から、各バンドの圧縮済み画像データの読出位置が特定される。   The codec ASIC 20 reads the image data for one band from the work memory area 19 and compresses it, and writes the compressed image data for one band in the secondary page memory area 21 (step S1). At that time, the main control unit 4 counts the number of bands processed by the codec ASIC 20. At this time, the size of the image data before compression for one band is constant, but the size of the compressed image data for one band is not constant. The compressed image data of each band is continuously written in the compressed image data of the previous band without a gap. The head storage position and the end storage position (or size) of the compressed image data of each band are managed by the main control unit 4, and when the compressed image data of each band is read from the secondary page memory area 21, the main control is performed. From the head storage position and end storage position (or size) managed by the unit 4, the read position of the compressed image data of each band is specified.

コーデック用ASIC20は、その画像データの書込位置が二次ページメモリー領域21の終端アドレスに到達したか否かを監視している(ステップS2)。   The codec ASIC 20 monitors whether or not the writing position of the image data has reached the end address of the secondary page memory area 21 (step S2).

1バンド分の圧縮済みの画像データの書き込みが完了すると、コーデック用ASIC20は、1ページ分のバンドの処理が完了したか否かを判定し(ステップS3)、1ページ分のバンドの処理が完了していなければ、ステップS1に戻り、次のバンドの処理を同様に行う。   When the writing of the compressed image data for one band is completed, the codec ASIC 20 determines whether or not the processing for the band for one page is completed (step S3), and the processing for the band for one page is completed. If not, the process returns to step S1 and the next band is similarly processed.

コーデック用ASIC20が、画像データの書込位置が二次ページメモリー領域21の終端アドレスに到達したことを検出すると、主制御部4は、コーデック用ASIC20による処理済みバンド数のカウント値から、1ページにおける未処理の残りバンド数を特定する(ステップS4)。   When the codec ASIC 20 detects that the writing position of the image data has reached the end address of the secondary page memory area 21, the main control unit 4 determines one page from the count value of the number of bands processed by the codec ASIC 20. The number of unprocessed remaining bands at is specified (step S4).

次に、主制御部4は、その残りバンド数およびワークメモリー領域19におけるバッファー領域の数から、使用終了したバッファー領域がワークメモリー領域19にあるか否かを判定する(ステップS5)。   Next, the main control unit 4 determines from the number of remaining bands and the number of buffer areas in the work memory area 19 whether there is a buffer area that has been used in the work memory area 19 (step S5).

残りバンド数がワークメモリー領域19におけるバッファー領域の数より少ない場合には、使用終了したバッファー領域がワークメモリー領域19にあると判定される。また、ワークメモリー領域19におけるバッファー領域の数から残りバンド数を減算して得られる値が、使用終了したバッファー領域の数となる。   If the number of remaining bands is smaller than the number of buffer areas in the work memory area 19, it is determined that the buffer area that has been used is in the work memory area 19. Further, the value obtained by subtracting the remaining number of bands from the number of buffer areas in the work memory area 19 is the number of buffer areas that have been used.

使用終了したバッファー領域がワークメモリー領域19にあると判定した場合、主制御部4は、コーデック用ASIC20に、ワークメモリー領域19を使用して圧縮処理を続行させる(ステップS6)。   If it is determined that the buffer area that has been used is in the work memory area 19, the main control unit 4 causes the codec ASIC 20 to continue the compression process using the work memory area 19 (step S6).

なお、ステップS6の処理の後、ステップS2では、コーデック用ASIC20は、画像データの書込位置が、未処理のバンドの画像データが存在しない領域の終端に到達したか否かを監視し、画像データの書込位置が、未処理のバンドの画像データが存在しない領域の終端に到達した場合、ステップS4以降の処理が再度実行される。   After step S6, in step S2, the codec ASIC 20 monitors whether the writing position of the image data has reached the end of the area where there is no unprocessed band image data. When the data writing position reaches the end of the area where there is no image data of an unprocessed band, the processes after step S4 are executed again.

一方、使用終了したバッファー領域がワークメモリー領域19にない場合(ステップS5)、主制御部4は、残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能か否かを判定する(ステップS7)。   On the other hand, when there is no buffer area that has been used up in the work memory area 19 (step S5), the main control unit 4 assigns a memory area for image data after compression processing for the remaining number of bands to another memory area as described above. It is determined whether or not procurement is possible from the area reserved for the application (step S7).

残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能ではない場合、主制御部4は、エラー通知を行い(ステップS8)、この圧縮処理を中止する。主制御部4は、エラー通知として、例えば図示せぬ操作パネルにエラーメッセージを表示させる。   If the memory area for the image data after the compression processing for the remaining number of bands cannot be procured from the area reserved for another use as described above, the main control unit 4 gives an error notification (step S8) The compression process is stopped. For example, the main control unit 4 displays an error message on an operation panel (not shown) as an error notification.

残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能である場合、主制御部4は、上述のようにして、特定した不足量の領域を確保し、確保した領域を二次ページメモリー領域21に追加する(ステップS9)。   When the memory area for the image data after the compression processing for the remaining number of bands can be procured from the area secured for another use as described above, the main control unit 4 The specified shortage area is secured, and the secured area is added to the secondary page memory area 21 (step S9).

そして、コーデック用ASIC20の場合、主制御部4は、コーデック用ASIC20の前段(上流側)に一次ページメモリー領域15が存在するため、圧縮処理前の1ページ分の画像データが残っていると判断し(ステップS10)、主制御部4は、内部リトライを行い(ステップS12)、1ページ分の圧縮処理を再実行する。主制御部4は、内部リトライの際、コーデック用ASIC16および画像処理用ASIC18を再度動作させて、コーデック用ASIC20に画像データを再度供給し、ステップS1から同様の処理をコーデック用ASIC20に実行させる。   In the case of the codec ASIC 20, the main control unit 4 determines that the image data for one page before the compression process remains because the primary page memory area 15 exists in the previous stage (upstream side) of the codec ASIC 20. Then (step S10), the main control unit 4 performs an internal retry (step S12) and re-executes compression processing for one page. During internal retry, the main control unit 4 operates the codec ASIC 16 and the image processing ASIC 18 again to supply image data to the codec ASIC 20 again, and causes the codec ASIC 20 to execute the same processing from step S1.

以上のように、上記実施の形態によれば、主制御部4は、1ページ分の画像データがページメモリー領域15に書き込まれる前にASIC14による画像データの書込位置がページメモリー領域15の終端に到達した場合、1ページ分の画像データについて複数のバッファー領域13a〜13dのうちの少なくとも1つが使用終了しているときには、ページメモリー領域15および使用終了しているバッファー領域を使用してASIC14による処理を継続させ、1ページ分の画像データについて複数のバッファー領域13a〜13dのいずれも使用終了していないときには、メモリー3において別の用途に確保されている領域の一部または全部から確保した追加領域およびページメモリー領域15を使用してASIC14による処理を実行させる。   As described above, according to the above embodiment, the main control unit 4 determines that the writing position of the image data by the ASIC 14 is the end of the page memory area 15 before the image data for one page is written in the page memory area 15. When at least one of the buffer areas 13a to 13d has been used for one page of image data, the ASIC 14 uses the page memory area 15 and the buffer area that has been used. If the processing is continued and none of the plurality of buffer areas 13a to 13d has been used for one page of image data, an addition secured from a part or all of the area reserved for another use in the memory 3 Execute processing by ASIC 14 using area and page memory area 15 To.

これにより、画像データのサイズがページメモリー領域15のサイズより大きい場合、ページメモリー領域15に加えて別のメモリー領域(ワークメモリー領域13の一部または上述の追加領域)が追加されるため、画像データのサイズがページメモリー領域15のサイズより大きい場合に、画質を低下させずに、処理を実行することができる。また、使用終了しているバッファー領域が優先的に追加使用されるため、別の用途のメモリー領域が追加使用されにくくなり、別のジョブに影響が出にくい。   As a result, when the size of the image data is larger than the size of the page memory area 15, another memory area (a part of the work memory area 13 or the above-described additional area) is added to the page memory area 15. When the size of the data is larger than the size of the page memory area 15, the processing can be executed without degrading the image quality. In addition, since the buffer area that has been used is preferentially additionally used, it is difficult to additionally use a memory area for another purpose, and it is difficult for another job to be affected.

なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。   The above-described embodiments are preferred examples of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. is there.

例えば、上記実施の形態では、ページメモリー領域15,21の前段の処理が圧縮処理であるが、別の種別の処理であってもよい。   For example, in the above-described embodiment, the preceding process of the page memory areas 15 and 21 is the compression process, but may be another type of process.

また、上記実施の形態では、ワークメモリー領域13において使用終了したバッファー領域をそのままページメモリー領域15に追加せずに、使用終了したバッファー領域を使用してページメモリー領域15に連続する「空き」領域を確保しているが、その代わりに、使用終了したバッファー領域を、上述の追加領域と同様に、そのままページメモリー領域15に追加して使用するようにしてもよい。   In the above embodiment, the buffer area that has been used in the work memory area 13 is not added to the page memory area 15 as it is, but the “free” area that continues to the page memory area 15 by using the buffer area that has been used. Instead, the buffer area that has been used may be added to the page memory area 15 and used as it is, as in the above-described additional area.

本発明は、例えば、画像読取機能を有するスキャナー、複写機、複合機などに適用可能である。   The present invention can be applied to, for example, a scanner, a copying machine, and a multifunction machine having an image reading function.

1 スキャナー部
3 メモリー
4 主制御部(制御部の一例)
12 読込用ASIC(複数のデータ処理部の一例の一部)
13,19 ワークメモリー領域
13a〜13d バッファー領域
14,20 コーデック用ASIC(複数のデータ処理部の一例の一部,所定のデータ処理部の例)
15,21 ページメモリー領域
16 コーデック用ASIC(複数のデータ処理部の一例の一部)
18 画像処理用ASIC(複数のデータ処理部の一例の一部)
1 Scanner unit 3 Memory 4 Main control unit (an example of control unit)
12 ASIC for reading (part of an example of multiple data processing units)
13, 19 Work memory area 13a to 13d Buffer area 14, 20 Codec ASIC (a part of an example of a plurality of data processing units, an example of a predetermined data processing unit)
15,21 page memory area 16 ASIC for codec (part of one example of multiple data processing units)
18 ASIC for image processing (part of an example of a plurality of data processing units)

Claims (9)

画像読取により画像データを生成し出力するスキャナー部と、
複数のデータ処理部と、
前記スキャナー部により出力された画像データ、または前記スキャナー部により出力された画像データに対して所定の処理が施された画像データを前記複数のデータ処理部のうちの2つのデータ処理部間で受け渡す際に順番に使用される複数のバッファー領域を有するワークメモリー領域、および前記ワークメモリー領域より後段の、前記複数のデータ処理部のうちの所定のデータ処理部が処理後の画像データを書き込むページメモリー領域を確保されるメモリーと、
1ページ分の画像データが前記ページメモリー領域に書き込まれる前に前記所定のデータ処理部による画像データの書込位置が前記ページメモリー領域の終端に到達した場合、前記1ページ分の画像データについて前記複数のバッファー領域のうちの少なくとも1つが使用終了しているときには、前記ページメモリー領域および前記使用終了しているバッファー領域を使用して前記所定のデータ処理部による処理を継続させ、前記1ページ分の画像データについて前記複数のバッファー領域のいずれも使用終了していないときには、前記メモリーにおいて別の用途に確保されている領域の一部または全部から確保した追加領域および前記ページメモリー領域を使用して前記所定のデータ処理部による処理を実行させる制御部と、
を備えることを特徴とする画像読取装置。
A scanner unit that generates and outputs image data by image reading;
A plurality of data processing units;
Image data output by the scanner unit or image data obtained by performing predetermined processing on the image data output by the scanner unit is received between two data processing units of the plurality of data processing units. A work memory area having a plurality of buffer areas that are used in order when handing over, and a page to which the predetermined data processing section of the plurality of data processing sections writes the processed image data after the work memory area A memory area is reserved, and
When the writing position of the image data by the predetermined data processing unit reaches the end of the page memory area before the image data for one page is written in the page memory area, the image data for the one page is When at least one of the plurality of buffer areas has been used, the processing by the predetermined data processing unit is continued using the page memory area and the buffer area that has been used, and the one page worth When none of the plurality of buffer areas has been used for the image data of the image data, an additional area secured from a part or all of the area secured for another use in the memory and the page memory area are used. A control unit that executes processing by the predetermined data processing unit;
An image reading apparatus comprising:
前記ワークメモリー領域は、前記メモリーにおいて前記ページメモリー領域に連続して確保されていることを特徴とする請求項1記載の画像読取装置。   The image reading apparatus according to claim 1, wherein the work memory area is continuously secured in the page memory area in the memory. 前記制御部は、前記複数のバッファー領域のうちの使用終了していないバッファー領域内の画像データを、それぞれ1つ次のバッファー領域にコピーし、
前記所定のデータ処理部は、前記ページメモリー領域から前記ワークメモリー領域へ連続して画像データを書き込んでいくこと、
を特徴とする請求項2記載の画像読取装置。
The control unit copies image data in a buffer area that has not been used among the plurality of buffer areas to the next buffer area,
The predetermined data processing unit continuously writes image data from the page memory area to the work memory area;
The image reading apparatus according to claim 2.
前記制御部は、前記1ページ分の画像データについて前記複数のバッファー領域のいずれも使用終了していないときには、複数ページの画像データのソートに使用されるソートメモリー領域のサイズを減少させ、前記ソートメモリー領域の減少分を前記追加領域とすることを特徴とする請求項1記載の画像読取装置。   The control unit reduces the size of the sort memory area used for sorting the image data of a plurality of pages when none of the plurality of buffer areas has been used for the image data for one page, and the sorting is performed. 2. The image reading apparatus according to claim 1, wherein a decrease in the memory area is set as the additional area. 前記制御部は、前記1ページ分の画像データについて前記複数のバッファー領域のいずれも使用終了していないときには、マルチジョブ用の予備メモリー領域のサイズを減少させ、前記マルチジョブ用の予備メモリー領域の減少分を、前記追加領域とすることを特徴とする請求項1記載の画像読取装置。   The control unit reduces the size of the multi-job spare memory area when the use of any of the plurality of buffer areas for the image data for one page is not finished, The image reading apparatus according to claim 1, wherein a decrease is set as the additional area. 前記制御部は、前記追加領域を確保した場合、前記画像読取のジョブの終了時に前記追加領域を解放し、解放した領域を前記別の用途に確保されている領域に戻すことを特徴とする請求項1から請求項5のうちのいずれか1項記載の画像読取装置。   When the additional area is secured, the control unit releases the additional area at the end of the image reading job, and returns the released area to an area secured for the other use. The image reading apparatus according to any one of claims 1 to 5. 前記複数のバッファー領域は、ダブルバッファーまたはリングバッファーとして使用され、前記複数のバッファー領域のそれぞれは、1バンド分の画像データを格納可能なサイズを有することを特徴とする請求項1から請求項6のうちのいずれか1項記載の画像読取装置。   The plurality of buffer areas are used as a double buffer or a ring buffer, and each of the plurality of buffer areas has a size capable of storing image data for one band. The image reading apparatus according to claim 1. 前記ワークメモリー領域は、前記所定のデータ処理部の入力バッファーとして使用されることを特徴とする請求項1から請求項7のうちのいずれか1項記載の画像読取装置。   The image reading apparatus according to claim 1, wherein the work memory area is used as an input buffer of the predetermined data processing unit. 前記所定のデータ処理部は、圧縮処理を行い、圧縮処理後の画像データを前記ページメモリー領域に書き込んでいくことを特徴とする請求項1から請求項8のうちのいずれか1項記載の画像読取装置。   The image according to any one of claims 1 to 8, wherein the predetermined data processing unit performs a compression process and writes the image data after the compression process in the page memory area. Reader.
JP2011287056A 2011-12-28 2011-12-28 Image reading device Expired - Fee Related JP5705104B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011287056A JP5705104B2 (en) 2011-12-28 2011-12-28 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011287056A JP5705104B2 (en) 2011-12-28 2011-12-28 Image reading device

Publications (2)

Publication Number Publication Date
JP2013138275A true JP2013138275A (en) 2013-07-11
JP5705104B2 JP5705104B2 (en) 2015-04-22

Family

ID=48913676

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011287056A Expired - Fee Related JP5705104B2 (en) 2011-12-28 2011-12-28 Image reading device

Country Status (1)

Country Link
JP (1) JP5705104B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02170767A (en) * 1988-12-23 1990-07-02 Ricoh Co Ltd Memory extending system
JPH11188932A (en) * 1997-12-26 1999-07-13 Canon Inc Print controller, band processing method therefor and storage medium storing computer readable program
JP2002052763A (en) * 2000-08-08 2002-02-19 Ricoh Co Ltd Printer
JP2010187169A (en) * 2009-02-12 2010-08-26 Panasonic Corp Image processing apparatus, and image processing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02170767A (en) * 1988-12-23 1990-07-02 Ricoh Co Ltd Memory extending system
JPH11188932A (en) * 1997-12-26 1999-07-13 Canon Inc Print controller, band processing method therefor and storage medium storing computer readable program
JP2002052763A (en) * 2000-08-08 2002-02-19 Ricoh Co Ltd Printer
JP2010187169A (en) * 2009-02-12 2010-08-26 Panasonic Corp Image processing apparatus, and image processing method thereof

Also Published As

Publication number Publication date
JP5705104B2 (en) 2015-04-22

Similar Documents

Publication Publication Date Title
JP3161031B2 (en) Image processing device
JP5422640B2 (en) Image reading device
JP5697588B2 (en) Image reading device
JP5705104B2 (en) Image reading device
JP5635551B2 (en) Image processing apparatus and image forming apparatus
JP5298154B2 (en) Data processing apparatus and data processing program
JP5232728B2 (en) Image forming apparatus
JP2015029239A (en) Information processing apparatus, control method of information processing apparatus, and program
JP5145278B2 (en) Image processing device
JP5705142B2 (en) Image reading device
JP5705143B2 (en) Image reading device
JP5084688B2 (en) Image forming apparatus
JP2011193297A (en) Data processing apparatus, and data processing program
JP6163937B2 (en) Data output apparatus, image forming apparatus, computer program, and storage control method
JP2007088823A (en) Image forming apparatus and image forming method
JP5205317B2 (en) Image processing device
JP3915502B2 (en) Image storage device
JP6278245B2 (en) Image processing device
JP3901869B2 (en) Memory device
JP2012070304A (en) Image processor, data processing method for image processor, and program
JP2001255783A (en) Image forming device and image forming method
JP2011237972A (en) Data processing device and data processing program
JP5145277B2 (en) Image processing device
JP5132696B2 (en) MEMORY CONTROL DEVICE, IMAGE FORMING DEVICE, AND MEMORY CONTROL METHOD
JP5952306B2 (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141127

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150108

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150224

R150 Certificate of patent or registration of utility model

Ref document number: 5705104

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees