JP2013138275A - Image scanning apparatus - Google Patents
Image scanning apparatus Download PDFInfo
- 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
Links
Images
Abstract
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,
特許文献1に記載の技術は、メモリー領域のサイズより画像データのサイズが大きい場合、画像データの圧縮率を増加して、画像データのサイズを減らしている。
In the technique described in
また、特許文献2に記載の技術は、メモリー領域のサイズより画像データのサイズが大きい場合、画像データの解像度を低下させて画像データのサイズを減らしている。
In the technique described in
しかしながら、上述のように画像データのサイズを減らすと、画質が低下するため、好ましくない。 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.
以下、図に基づいて本発明の実施の形態を説明する。 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
スキャナー部1は、原稿のページ画像を光学的に読み取り、そのページ画像の画像データを生成し出力する。
The
また、画像処理部2は、画像データに対して所定の処理を施す。画像処理部2は、スキャナー部1により出力された画像データ、またはスキャナー部1により出力された画像データに対して前段の処理が施された画像データに対して所定の処理を施す。画像処理部2は、その所定の処理後の画像データをメモリー3内の所定のメモリー領域に書き込んでいく。例えば、画像処理部2は、1または複数のASIC(Application Specific Integrated Circuit)で構成される。
The
また、メモリー3は、DRAM(Dynamic Random Access Memory)などの揮発性メモリーである。メモリー3において、画像処理部2による処理に要求されるメモリー領域が適宜確保される。
The
図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
ワークメモリー領域13は、メモリー3において確保され、読込用ASIC12の出力バッファーおよびコーデック用ASIC14の入力バッファーとして使用される。
The
コーデック用ASIC14,20は、画像データの圧縮を行う回路である。コーデック用ASIC14,20は、例えばJPEG(Joint Photographic Experts Group)などの圧縮方式で画像データの圧縮を行う。
The
一次ページメモリー領域15は、メモリー3において確保され、読込用ASIC12により変換された画像データ(圧縮済み画像データ)、すなわち、画像処理用ASIC18による画像処理前の画像データ(圧縮済み画像データ)を、記憶するためのメモリー領域である。つまり、一次ページメモリー領域15は、ワークメモリー領域13より後段(下流側)の領域であって、コーデック用ASIC14が処理後の画像データを書き込む領域である。
The primary
コーデック用ASIC16は、コーデック用ASIC14の圧縮方式に対応した伸張方式で、圧縮された画像データの伸張を行う回路である。
The
ワークメモリー領域17は、メモリー3において確保され、コーデック用ASIC16の出力バッファーおよび画像処理用ASIC18の入力バッファーとして使用される。
The
画像処理用ASIC18は、画像データに所定の画像処理(解像度変換、回転、データ形式の変換など)を施す回路である。
The
ワークメモリー領域19は、メモリー3において確保され、画像処理用ASIC18の出力バッファーおよびコーデック用ASIC20の入力バッファーとして使用される。
The
二次ページメモリー領域21は、メモリー3において確保され、画像処理用ASIC18による画像処理後の画像データ(圧縮済み画像データ)を記憶するためのメモリー領域である。つまり、二次ページメモリー領域21は、ワークメモリー領域19より後段(下流側)の領域であって、コーデック用ASIC20が処理後の画像データを書き込む領域である。
The secondary
なお、コーデック用ASIC14,16,20および画像処理用ASIC18は、画像処理部2に含まれる。
The
図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
図1に戻り、主制御部4は、スキャナー部1、画像処理部2、メモリー3、および出力部5を制御する。また、主制御部4は、メモリー3において画像処理部2に要求されるメモリー領域(ワークメモリー領域13,17,19、一次ページメモリー領域15、二次ページメモリー領域21など)を確保する。
Returning to FIG. 1, the
このワークメモリー領域13,17,19は、スキャナー部1により出力された画像データ、またはスキャナー部1により出力された画像データに対して所定の処理が施された画像データをASIC間で受け渡す際に使用される。ワークメモリー領域13,17,19は、複数のバッファー領域を有する。この複数のバッファー領域は、ダブルバッファーまたはリングバッファーとして使用される。つまり、複数のバッファー領域に、先頭のバッファー領域から最後のバッファー領域まで順番にデータが書き込まれ、最後のバッファー領域の次に先頭のバッファー領域にデータが書き込まれる。1つのバッファー領域は、1バンド分の画像データ(圧縮されておらずサイズが固定の画像データ)を記憶可能なサイズを有する。
The
この実施の形態では、ワークメモリー領域13,19は、メモリー3においてページメモリー領域15,21にそれぞれ連続して確保されている。
In this embodiment, the
また、主制御部4は、1ページ分の画像データが一次ページメモリー領域15に書き込まれる前にコーデック用ASIC14による画像データの書込位置が一次ページメモリー領域15の終端に到達した場合、1ページ分の画像データについて、ワークメモリー領域13の複数のバッファー領域のうちの少なくとも1つが使用終了しているときには、一次ページメモリー領域15および使用終了しているバッファー領域を使用してコーデック用ASIC14による処理を継続させ、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、メモリー3において別の用途に確保されている領域の一部または全部から確保した追加領域および一次ページメモリー領域15を使用してコーデック用ASIC14による処理を実行させる。
Further, the
同様に、主制御部4は、1ページ分の画像データが二次ページメモリー領域21に書き込まれる前にコーデック用ASIC20による画像データの書込位置が二次ページメモリー領域21の終端に到達した場合、1ページ分の画像データについて、ワークメモリー領域19の複数のバッファー領域のうちの少なくとも1つが使用終了しているときには、二次ページメモリー領域21および使用終了しているバッファー領域を使用してコーデック用ASIC20による処理を継続させ、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、メモリー3において別の用途に確保されている領域の一部または全部から確保した追加領域および二次ページメモリー領域21を使用してコーデック用ASIC20による処理を実行させる。
Similarly, when the image data writing position by the
例えば、主制御部4は、1ページ分の画像データについて複数のバッファー領域のいずれも使用終了していないときには、複数ページの画像データのソートに使用されるソートメモリー領域のサイズを減少させ、ソートメモリー領域の減少分を上述の追加領域とする。
For example, the
また、例えば、主制御部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
なお、主制御部4は、上述の追加領域を確保した場合、画像読取のジョブの終了時に追加領域を解放し、解放した領域を、上述の別の用途に確保されている領域に戻す。
When the above-described additional area is secured, the
また、ワークメモリー領域13,19がメモリー3においてページメモリー領域15,21に連続して確保されている場合、主制御部4は、ワークメモリー領域13,19の複数のバッファー領域のうちの使用終了していないバッファー領域内の画像データを、それぞれ1つ次のバッファー領域にコピーし、バッファー領域1つ分の「空き」をページメモリー領域15,21に隣接して作成し、コーデック用ASIC14,20は、その「空き」を利用してページメモリー領域15,21からワークメモリー領域13,19へ連続して画像データを書き込んでいく。
When the
また、出力部5は、画像処理部2による画像処理後の画像データを出力する。
The
次に、上記画像読取装置の動作(主に画像処理部2および主制御部4)について説明する。
Next, operations of the image reading apparatus (mainly the
ここでは、コーデック用ASIC14,20による圧縮処理、およびページメモリー領域15,21への圧縮済み画像データの書き込みについて説明する。図3は、図1に示す画像読取装置における圧縮処理について説明するフローチャートである。図4は、図1に示す画像読取装置におけるページメモリー領域15,21が不足した場合にワークメモリー領域13,19を使用して圧縮処理を続行する際の処理について説明する図である。
Here, compression processing by the
主制御部4は、一次ページメモリー領域15を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)をコーデック用ASIC14,16にセットし、さらに、図4(A)に示すように、一次ページメモリー領域15に連続させてワークメモリー領域13を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)を読込用ASIC12およびコーデック用ASIC14にセットする。同様に、主制御部4は、二次ページメモリー領域21を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)を画像処理用ASIC18にセットし、さらに、二次ページメモリー領域21に連続させてワークメモリー領域19を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)を画像処理用ASIC18およびコーデック用ASIC20にセットする。また、主制御部4は、ワークメモリー領域17を確保し、そのアドレス情報(先頭アドレスおよびサイズ、あるいは先頭アドレスおよび終端アドレス)をコーデック用ASIC16および画像処理用ASIC18にセットする。
The
図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
次に、コーデック用ASIC14による圧縮処理について説明する。
Next, compression processing by the
コーデック用ASIC14は、1バンド分の画像データをワークメモリー領域13から読み出して圧縮し、1バンド分の圧縮済みの画像データを一次ページメモリー領域15に書き込んでいく(ステップS1)。その際、主制御部4は、各ページについて、コーデック用ASIC14による処理済みのバンドの数をカウントする。なお、このとき、1バンド分の圧縮前の画像データのサイズは一定であるが、1バンド分の圧縮済みの画像データのサイズは一定ではない。各バンドの圧縮済み画像データは、1つ前のバンドの圧縮済み画像データに隙間なく連続して書き込まれる。各バンドの圧縮済み画像データの先頭記憶位置および終端記憶位置(またはサイズ)は、主制御部4により管理されて、一次ページメモリー領域15から各バンドの圧縮済み画像データを読み出すときには、主制御部4により管理されている先頭記憶位置および終端記憶位置(またはサイズ)から、各バンドの圧縮済み画像データの読出位置が特定される。
The
コーデック用ASIC14は、その画像データの書込位置が一次ページメモリー領域15の終端アドレスに到達したか否かを監視している(ステップS2)。
The
1バンド分の圧縮済みの画像データの書き込みが完了すると、コーデック用ASIC14は、1ページ分のバンドの処理が完了したか否かを判定し(ステップS3)、1ページ分のバンドの処理が完了していなければ、ステップS1に戻り、次のバンドの処理を同様に行う。
When the writing of the compressed image data for one band is completed, the
コーデック用ASIC14が、画像データの書込位置が一次ページメモリー領域15の終端アドレスに到達したことを検出すると、主制御部4は、コーデック用ASIC14による処理済みバンド数のカウント値から、1ページにおける未処理の残りバンド数を特定する(ステップS4)。例えば、1ページのバンド数が75であり、カウント値が72である場合、残りバンド数は3である。なお、1ページのバンド数は既知でありかつ一定である。
When the
次に、主制御部4は、その残りバンド数およびワークメモリー領域13におけるバッファー領域の数から、使用終了したバッファー領域がワークメモリー領域13にあるか否かを判定する(ステップS5)。
Next, the
残りバンド数がワークメモリー領域13におけるバッファー領域の数より少ない場合には、使用終了したバッファー領域がワークメモリー領域13にあると判定される。また、ワークメモリー領域13におけるバッファー領域の数から残りバンド数を減算して得られる値が、使用終了したバッファー領域の数となる。
If the number of remaining bands is smaller than the number of buffer areas in the
例えば、図4(B)に示すように、ワークメモリー領域13におけるバッファー領域13a〜13dの数が4であり、残りバンド数が3である場合、1つの使用終了したバッファー領域13dが存在する。
For example, as shown in FIG. 4B, when the number of
使用終了したバッファー領域がワークメモリー領域13にあると判定した場合、主制御部4は、コーデック用ASIC14に、ワークメモリー領域13を使用して圧縮処理を続行させる(ステップS6)。つまり、コーデック用ASIC14は、コーデック用ASIC14は、画像データの書込位置が一次ページメモリー領域15の終端アドレスに到達したことを検出したときのバンドについての圧縮処理後の画像データの一部または全部、並びにそれ以降のバンドを、ワークメモリー領域13において未処理のバンドの画像データが存在しない領域に、未処理のバンドの画像データを上書きしないように書き込む。
When it is determined that the buffer area that has been used is in the
このとき、主制御部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
コーデック用ASIC14は、コピー先のバッファー領域13b〜13dから、後続のバンドを順番に読み込む。そして、ワークメモリー領域13のバッファー領域13bに記憶されている1バンド分の画像データから生成される1バンド分の圧縮済み画像データは、一次ページメモリー領域15から連続してバッファー領域13aに記憶される。そして、バッファー領域13bに記憶されている画像データの圧縮処理がコーデック用ASIC14により完了すると、バッファー領域13bは、空きとなるため、以降のバンドの画像データ(バッファー領域13c,13dに記憶されている画像データ)から生成される圧縮済み画像データを記憶される。同様に、バッファー領域13cに記憶されている画像データの圧縮処理がコーデック用ASIC14により完了すると、バッファー領域13cは、空きとなるため、以降のバンドの画像データ(バッファー領域13dに記憶されている画像データ)から生成される圧縮済み画像データを記憶される。
The
なお、ステップS6の処理の後、ステップS2では、コーデック用ASIC14は、画像データの書込位置が、未処理のバンドの画像データが存在しない領域(上述の「空き」となったバッファー領域)の終端に到達したか否かを監視し、画像データの書込位置が、未処理のバンドの画像データが存在しない領域の終端に到達した場合、ステップS4以降の処理が再度実行される。
After step S6, in step S2, the
一方、使用終了したバッファー領域がワークメモリー領域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
残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能ではない場合、主制御部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
残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能である場合、主制御部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
そして、コーデック用ASIC14の場合、主制御部4は、コーデック用ASIC14の前段(上流側)にページメモリー領域がないため、圧縮処理前の1ページ分の画像データが残っていないと判断し(ステップS10)、主制御部4は、リトライ通知を行い(ステップS11)、この圧縮処理を中止する。主制御部4は、リトライ通知として、例えば図示せぬ操作パネルに、再度の画像スキャン操作をユーザーに促すメッセージを表示させる。これにより、ユーザーは、画像スキャン操作を再度行い、スキャナー部1は、再度、画像読取を実行する。
In the case of the
次に、コーデック用ASIC20による圧縮処理について説明する。
Next, compression processing by the
コーデック用ASIC20は、1バンド分の画像データをワークメモリー領域19から読み出して圧縮し、1バンド分の圧縮済みの画像データを二次ページメモリー領域21に書き込んでいく(ステップS1)。その際、主制御部4は、コーデック用ASIC20による処理済みのバンドの数をカウントする。なお、このとき、1バンド分の圧縮前の画像データのサイズは一定であるが、1バンド分の圧縮済みの画像データのサイズは一定ではない。各バンドの圧縮済み画像データは、1つ前のバンドの圧縮済み画像データに隙間なく連続して書き込まれる。各バンドの圧縮済み画像データの先頭記憶位置および終端記憶位置(またはサイズ)は、主制御部4により管理されて、二次ページメモリー領域21から各バンドの圧縮済み画像データを読み出すときには、主制御部4により管理されている先頭記憶位置および終端記憶位置(またはサイズ)から、各バンドの圧縮済み画像データの読出位置が特定される。
The
コーデック用ASIC20は、その画像データの書込位置が二次ページメモリー領域21の終端アドレスに到達したか否かを監視している(ステップS2)。
The
1バンド分の圧縮済みの画像データの書き込みが完了すると、コーデック用ASIC20は、1ページ分のバンドの処理が完了したか否かを判定し(ステップS3)、1ページ分のバンドの処理が完了していなければ、ステップS1に戻り、次のバンドの処理を同様に行う。
When the writing of the compressed image data for one band is completed, the
コーデック用ASIC20が、画像データの書込位置が二次ページメモリー領域21の終端アドレスに到達したことを検出すると、主制御部4は、コーデック用ASIC20による処理済みバンド数のカウント値から、1ページにおける未処理の残りバンド数を特定する(ステップS4)。
When the
次に、主制御部4は、その残りバンド数およびワークメモリー領域19におけるバッファー領域の数から、使用終了したバッファー領域がワークメモリー領域19にあるか否かを判定する(ステップS5)。
Next, the
残りバンド数がワークメモリー領域19におけるバッファー領域の数より少ない場合には、使用終了したバッファー領域がワークメモリー領域19にあると判定される。また、ワークメモリー領域19におけるバッファー領域の数から残りバンド数を減算して得られる値が、使用終了したバッファー領域の数となる。
If the number of remaining bands is smaller than the number of buffer areas in the
使用終了したバッファー領域がワークメモリー領域19にあると判定した場合、主制御部4は、コーデック用ASIC20に、ワークメモリー領域19を使用して圧縮処理を続行させる(ステップS6)。
If it is determined that the buffer area that has been used is in the
なお、ステップS6の処理の後、ステップS2では、コーデック用ASIC20は、画像データの書込位置が、未処理のバンドの画像データが存在しない領域の終端に到達したか否かを監視し、画像データの書込位置が、未処理のバンドの画像データが存在しない領域の終端に到達した場合、ステップS4以降の処理が再度実行される。
After step S6, in step S2, the
一方、使用終了したバッファー領域がワークメモリー領域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
残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能ではない場合、主制御部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
残りバンド数分の圧縮処理後の画像データのためのメモリー領域を、上述のような別の用途に確保している領域から調達可能である場合、主制御部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
そして、コーデック用ASIC20の場合、主制御部4は、コーデック用ASIC20の前段(上流側)に一次ページメモリー領域15が存在するため、圧縮処理前の1ページ分の画像データが残っていると判断し(ステップS10)、主制御部4は、内部リトライを行い(ステップS12)、1ページ分の圧縮処理を再実行する。主制御部4は、内部リトライの際、コーデック用ASIC16および画像処理用ASIC18を再度動作させて、コーデック用ASIC20に画像データを再度供給し、ステップS1から同様の処理をコーデック用ASIC20に実行させる。
In the case of the
以上のように、上記実施の形態によれば、主制御部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
これにより、画像データのサイズがページメモリー領域15のサイズより大きい場合、ページメモリー領域15に加えて別のメモリー領域(ワークメモリー領域13の一部または上述の追加領域)が追加されるため、画像データのサイズがページメモリー領域15のサイズより大きい場合に、画質を低下させずに、処理を実行することができる。また、使用終了しているバッファー領域が優先的に追加使用されるため、別の用途のメモリー領域が追加使用されにくくなり、別のジョブに影響が出にくい。
As a result, when the size of the image data is larger than the size of the
なお、上述の実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。 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
また、上記実施の形態では、ワークメモリー領域13において使用終了したバッファー領域をそのままページメモリー領域15に追加せずに、使用終了したバッファー領域を使用してページメモリー領域15に連続する「空き」領域を確保しているが、その代わりに、使用終了したバッファー領域を、上述の追加領域と同様に、そのままページメモリー領域15に追加して使用するようにしてもよい。
In the above embodiment, the buffer area that has been used in the
本発明は、例えば、画像読取機能を有するスキャナー、複写機、複合機などに適用可能である。 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
12 ASIC for reading (part of an example of multiple data processing units)
13, 19
15,21
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:
前記所定のデータ処理部は、前記ページメモリー領域から前記ワークメモリー領域へ連続して画像データを書き込んでいくこと、
を特徴とする請求項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.
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)
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 |
-
2011
- 2011-12-28 JP JP2011287056A patent/JP5705104B2/en not_active Expired - Fee Related
Patent Citations (4)
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 |