JP2007280194A - Image processor, image forming apparatus, and image processing method - Google Patents

Image processor, image forming apparatus, and image processing method Download PDF

Info

Publication number
JP2007280194A
JP2007280194A JP2006107682A JP2006107682A JP2007280194A JP 2007280194 A JP2007280194 A JP 2007280194A JP 2006107682 A JP2006107682 A JP 2006107682A JP 2006107682 A JP2006107682 A JP 2006107682A JP 2007280194 A JP2007280194 A JP 2007280194A
Authority
JP
Japan
Prior art keywords
data
image data
image
storage area
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006107682A
Other languages
Japanese (ja)
Inventor
Kosuke Harada
浩介 原田
Tokiyuki Okano
時行 岡野
Makoto Higuchi
誠 樋口
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2006107682A priority Critical patent/JP2007280194A/en
Publication of JP2007280194A publication Critical patent/JP2007280194A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of improving throughput by preventing processing interruption caused by no presence of an empty area in which memory addresses continue, which are necessary to store processed image data when the arrangement of image data in a storage area is not appropriate, and to provide an image forming apparatus provided with the image processor, and an image processing method. <P>SOLUTION: An image memory control part transfers compressed data of (N+1)th page from a storage part to an image memory before the processing of N-th page is finished (image memory clearance) when it is determined that determination processing satisfies a relation of (M-S1)/2≥S2. The image memory control part reads the stored compressed data, decompresses the compressed data and stores (arranges) the decompressed data in the image memory when the processing of the N-th page is finished (image memory clearance). The stored decompressed data are read, and the read decompressed data are transferred from the image memory to a printing processing part. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、画像データ及び該画像データに所定の処理をして得られた処理後画像データを所定の記憶領域に共に記憶する画像処理装置、該画像処理装置を備えた画像形成装置及び画像処理方法に関する。   The present invention relates to an image processing device that stores together image data and post-processing image data obtained by performing predetermined processing on the image data in a predetermined storage area, an image forming apparatus including the image processing device, and image processing Regarding the method.

近年、インターネットに代表される情報処理の高速化又は情報量の増大化に伴って、オフィスに設置されたデジタル複合機は、ファックス、プリント、コピーなどの処理に加えて、作成された文書、図面などをデータベース化してファイルするドキュメントファイル処理などの機能も備えており、多くのユーザによって共用されるととともに、大量の画像データを高速に処理するようになってきている。   In recent years, with the speeding up of information processing represented by the Internet or the increase in the amount of information, digital multifunction devices installed in offices have created documents and drawings in addition to processing such as faxing, printing, and copying. It is also equipped with a function such as a document file processing for filed in a database and is shared by many users, and a large amount of image data is processed at high speed.

従来、デジタル複合機では、高速アクセスが可能な半導体メモリを1次記憶装置(画像メモリ)とし、比較的アクセス時間が低速なハードディスクドライブ(HDD)を2次記憶装置として構成し、例えば、原稿を読込んで取得した画像データを圧縮し、圧縮した画像データをHDDに記憶しておき、画像形成(印刷処理)を行う場合、HDDに記憶した圧縮された画像データを画像メモリの所定の記憶領域に記憶(バッファリング)するとともに、圧縮された画像データを伸張処理し、伸張された画像データを前記記憶領域に記憶(バッファリング)しつつ、印刷処理部へ転送することにより、記憶領域を共有して所要の処理が並行に行われていた。   Conventionally, in a digital multi-function peripheral, a semiconductor memory that can be accessed at high speed is used as a primary storage device (image memory), and a hard disk drive (HDD) that has a relatively low access time is configured as a secondary storage device. When the image data acquired by reading is compressed and the compressed image data is stored in the HDD and image formation (printing processing) is performed, the compressed image data stored in the HDD is stored in a predetermined storage area of the image memory. In addition to storing (buffering), the compressed image data is decompressed, and the decompressed image data is stored (buffered) in the storage area and transferred to the print processing unit, thereby sharing the storage area. The required processing was performed in parallel.

圧縮した画像データと伸張した画像データのように異なるデータを共通の記憶領域で共用する場合、異なるデータ毎にメモリ領域を割当てる必要があり、割当てたメモリ領域がデータで占有されないときは、記憶領域内に不連続な空き領域(フラグメンテーション)が発生し、メモリの使用効率が低下するとともに、メモリ不足により処理が中断する虞がある。また、記憶領域を異なるデータで共有する場合、記憶領域へのデータの配置如何によって、いわゆるデッドロックが生じ、処理が中断する虞もある。   When sharing different data such as compressed image data and decompressed image data in a common storage area, it is necessary to allocate a memory area for each different data, and if the allocated memory area is not occupied by data, the storage area There is a possibility that a discontinuous empty area (fragmentation) occurs in the memory, and the use efficiency of the memory is lowered, and the processing may be interrupted due to a memory shortage. When the storage area is shared by different data, a so-called deadlock may occur depending on the arrangement of the data in the storage area, and the processing may be interrupted.

フラグメンテーションを防止する例として、メモリ上の連続する領域を第1のパーティションと第2のパーティションとに予め分割しておき、データを格納するために第2のパーティション内の空き領域のうち第1のパーティションに最も近い側のメモリ領域を割り当て、データ処理が完了してそのメモリ領域が不要になった場合、割り当てられたメモリ領域を解放し、解放されたメモリ領域が第1のパーティションに含まれるように第1のパーティションと第2のパーティションとの分割を変更することにより、フラグメンテーションを発生させないデータ処理装置が提案されている(特許文献1参照)。   As an example of preventing fragmentation, a continuous area on the memory is divided in advance into a first partition and a second partition, and the first of the free areas in the second partition is used to store data. When the memory area closest to the partition is allocated and the data processing is completed and the memory area becomes unnecessary, the allocated memory area is released, and the released memory area is included in the first partition. In addition, a data processing apparatus that does not generate fragmentation by changing the division between the first partition and the second partition has been proposed (see Patent Document 1).

また、デッドロックを防止する例として、画像形成(印刷処理)を行う場合、圧縮された画像データ及び伸張された画像データを記憶領域にバッファリングして処理を行うときに、1頁分の処理が完了した時点で記憶領域を解放(クリア)した後に、次の頁の処理を行うことにより、デッドロックを防止するデジタル複合機がある。   As an example of preventing deadlock, when image formation (printing processing) is performed, when processing is performed by buffering compressed image data and decompressed image data in a storage area, processing for one page is performed. There is a digital multi-function peripheral that prevents deadlock by releasing (clearing) the storage area when the process is completed and then processing the next page.

図11は従来のデジタル複合機の処理手順を示すタイムチャートであり、図12は従来のデジタル複合機の画像メモリのデータ配置を示すタイムチャートである。図11に示すように、デジタル複合機は、例えば、N頁目の印刷を行う場合、記憶部(HDD)から画像メモリへ圧縮データを転送する。これにより、画像メモリに圧縮データが記憶(配置)される。次に、記憶された圧縮データを読み出して、圧縮データの伸張処理を行い、伸張データを画像メモリに記憶(配置)する。記憶された伸張データを読み出し、読み出した伸張データを画像メモリから印字処理部へ転送する。転送処理が終了した時点で、記憶された圧縮データ及び伸張データをクリアして画像メモリを解放する。画像メモリが解放された後、次の頁(N+1頁目)の処理を同様に続ける。   FIG. 11 is a time chart showing the processing procedure of the conventional digital multifunction peripheral, and FIG. 12 is a time chart showing the data arrangement of the image memory of the conventional digital multifunction peripheral. As illustrated in FIG. 11, for example, when printing the Nth page, the digital multifunction peripheral transfers the compressed data from the storage unit (HDD) to the image memory. Thereby, the compressed data is stored (arranged) in the image memory. Next, the stored compressed data is read out, the compressed data is decompressed, and the decompressed data is stored (arranged) in the image memory. The stored decompressed data is read, and the read decompressed data is transferred from the image memory to the print processing unit. When the transfer process ends, the stored compressed data and decompressed data are cleared and the image memory is released. After the image memory is released, the processing for the next page (N + 1 page) is continued in the same manner.

また、図12に示すように、画像メモリの共有領域(共有メモリ)には、まずN頁目の圧縮データS1(N)が記憶される。次に圧縮データS1(N)を伸張処理して得られたN頁目の伸張データS2(N)が記憶される。伸張データS2(N)が画像メモリから印字処理部へ転送された後、共有メモリはクリア(解放)される。その後、同様にN+1頁目の圧縮データS1(N+1)が記憶され、圧縮データS1(N+1)を伸張処理して得られたN+1頁目の伸張データS2(N+1)が記憶される。
特開2002−351739号公報
As shown in FIG. 12, the N page compressed data S1 (N) is first stored in the shared area (shared memory) of the image memory. Next, decompressed data S2 (N) of the Nth page obtained by decompressing the compressed data S1 (N) is stored. After the decompressed data S2 (N) is transferred from the image memory to the print processing unit, the shared memory is cleared (released). Thereafter, similarly, the compressed data S1 (N + 1) of the (N + 1) th page is stored, and the expanded data S2 (N + 1) of the (N + 1) th page obtained by expanding the compressed data S1 (N + 1) is stored.
JP 2002-351739 A

しかしながら、特許文献1の例にあっては、要求に応じてメモリを確保する処理及び不要となったメモリを解放する処理に応じてパーティションを再分割する処理を行うため、複雑なメモリ管理が必要となる。このため、簡便な手段によって、メモリ不足により処理が中断することを防止することができるデジタル複合機が望まれていた。   However, in the example of Patent Document 1, complicated memory management is necessary because a process of reallocating a partition according to a process of securing a memory according to a request and a process of releasing a memory that becomes unnecessary is performed. It becomes. For this reason, there has been a demand for a digital multi-function peripheral that can prevent processing from being interrupted due to insufficient memory by simple means.

また、図11及び図12に示すような従来の例にあっては、各頁の処理を直列に行うため、N+1頁目の圧縮データS1(N+1)及び伸張データS2(N+1)を記憶する場合、すでにN頁目の圧縮データS1(N)及び伸張データS2(N)を記憶していた記憶領域はクリアされており、記憶領域における画像データ、例えば、圧縮データS1(N+1)の記憶位置(配置)に拘わらず処理後画像データ、例えば、伸張データS2(N+1)を記憶することができ、デッドロックは防止することができる。しかしながら、装置全体の処理速度の低下を招く。このため、デッドロックによる処理の中断がなく、装置全体の処理能力を向上させることができるデジタル複合機が望まれていた。   Further, in the conventional example as shown in FIGS. 11 and 12, since the processing of each page is performed in series, the compressed data S1 (N + 1) and the decompressed data S2 (N + 1) of the (N + 1) th page are stored. The storage area that has already stored the compressed data S1 (N) and the decompressed data S2 (N) of the Nth page has been cleared, and the storage position (for example, compressed data S1 (N + 1)) in the storage area ( Regardless of the arrangement, post-processing image data, for example, decompressed data S2 (N + 1) can be stored, and deadlock can be prevented. However, the processing speed of the entire apparatus is reduced. For this reason, there has been a demand for a digital multi-function peripheral that can improve the processing capability of the entire apparatus without interruption of processing due to deadlock.

本発明は、斯かる事情に鑑みてなされたものであり、所定の記憶領域に共に記憶される画像データ及び該画像データに所定の処理をして得られた処理後画像データ夫々のデータ量を算出し、算出されたデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定し、設定されたアドレスに基づいて、前記画像データを記憶することにより、記憶領域における画像データの配置が不適切な場合に処理後画像データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止して、処理能力を向上させることができる画像処理装置、該画像処理装置を備える画像形成装置及び画像処理方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and the amount of data of each of image data stored together in a predetermined storage area and post-processing image data obtained by performing predetermined processing on the image data. By calculating, setting the address for storing the image data based on the calculated data amount and the storage capacity of the storage area, and storing the image data based on the set address, It is possible to improve processing performance by preventing interruption of processing due to the absence of an empty area with continuous memory addresses necessary for storing post-processing image data when the arrangement of image data in the storage area is inappropriate. An object is to provide an image processing apparatus, an image forming apparatus including the image processing apparatus, and an image processing method.

また、本発明の他の目的は、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、記憶領域のうち使用可能な領域に前記画像データのアドレスを設定することにより、記憶領域がすべてクリア(解放)されるまで待つことなく、画像データを記憶するためのアドレスを簡便な構成で設定することができ、処理能力を向上させることができる画像処理装置及び該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is to store the data in the storage area when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M satisfy the relationship of (M−S1) / 2 ≧ S2. By setting the address of the image data in the usable area, the address for storing the image data can be set with a simple configuration without waiting until the entire storage area is cleared (released). Another object of the present invention is to provide an image processing apparatus capable of improving the processing capability and an image forming apparatus including the image processing apparatus.

また、本発明の他の目的は、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たさない場合、解放された記憶領域の上位アドレス側又は下位アドレス側に前記画像データのアドレスを設定することにより、簡便な構成で処理の中断を防止することができる画像処理装置及び該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is released when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M do not satisfy the relationship of (M−S1) / 2 ≧ S2. An image processing apparatus capable of preventing interruption of processing with a simple configuration by setting an address of the image data on the upper address side or lower address side of the storage area, and an image forming apparatus including the image processing apparatus It is to provide.

また、本発明の他の目的は、所定の記憶領域に共に記憶される画像データのデータ量S1、該画像データに所定の処理をして得られた処理後画像データのデータ量S2、及び所定の記憶領域の記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、特定された使用可能な領域に画像データを記憶するためのアドレスを設定し、前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域が解放されたときに、処理後画像データを記憶するとともに、(M−S1)/2≧S2の関係を満たさない場合、所定の記憶領域が解放されたときに、記憶領域の上位アドレス側又は下位アドレス側に画像データを記憶するためのアドレスを設定し、前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域に処理後画像データを記憶することにより、簡便な構成で記憶領域における画像データの配置が不適切な場合に処理後画像データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止して、処理能力を向上させることができる画像処理装置及び該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is a data amount S1 of image data stored together in a predetermined storage area, a data amount S2 of post-processing image data obtained by performing predetermined processing on the image data, and a predetermined amount When the storage capacity M of the storage area satisfies the relationship (M−S1) / 2 ≧ S2, an address for storing image data is set in the specified usable area, and the image data is stored. If the storage area other than the storage area storing the image data is released, the processed image data is stored, and if the relationship of (M−S1) / 2 ≧ S2 is not satisfied, the predetermined storage is performed. When the area is released, an address for storing image data is set on the upper address side or lower address side of the storage area, and when the image data is stored, other than the storage area storing the image data By storing the processed image data in the storage area, there is no empty area with continuous memory addresses necessary for storing the processed image data when the arrangement of the image data in the storage area is inappropriate with a simple configuration. It is an object of the present invention to provide an image processing apparatus and an image forming apparatus including the image processing apparatus that can improve processing performance by preventing interruption of processing due to the above.

また、本発明の他の目的は、画像データは圧縮された画像データであり、処理後画像データは圧縮された画像データが伸張された画像データであることにより、記憶領域における圧縮された画像データの配置が不適切な場合に伸張された画像データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止して、処理能力を向上させることができる画像処理装置及び該画像処理装置を備える画像形成装置を提供することにある。   Another object of the present invention is that the image data is compressed image data, and the processed image data is image data obtained by decompressing the compressed image data. An image processing apparatus capable of preventing processing interruption due to the absence of a free area having continuous memory addresses, which is necessary for storing decompressed image data when the layout of the image data is inappropriate, and improving processing performance An object of the present invention is to provide an image forming apparatus including the image processing apparatus.

本発明に係る画像処理装置は、画像データ及び該画像データに所定の処理をして得られた処理後画像データを所定の記憶領域に共に記憶する画像処理装置において、画像データのデータ量を算出する第1算出手段と、処理後画像データのデータ量を算出する第2算出手段と、前記第1算出手段及び第2算出手段で算出されたデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定する設定手段とを備え、該設定手段で設定されたアドレスに基づいて、前記画像データを記憶するように構成してあることを特徴とする。   An image processing apparatus according to the present invention calculates a data amount of image data in an image processing apparatus that stores image data and processed image data obtained by performing predetermined processing on the image data together in a predetermined storage area. Based on the first calculation means, the second calculation means for calculating the data amount of the processed image data, the data amounts calculated by the first calculation means and the second calculation means, and the storage capacity of the storage area. And setting means for setting an address for storing the image data, and the image data is stored based on the address set by the setting means.

本発明に係る画像処理装置は、前記記憶領域のうち使用可能な領域を特定する手段を備え、前記設定手段は、画像データのデータ量S1、処理後画像データのデータ量S2、及び前記記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、前記手段で特定された領域にアドレスを設定するように構成してあることを特徴とする。   The image processing apparatus according to the present invention includes means for specifying a usable area among the storage areas, and the setting means includes a data amount S1 of image data, a data amount S2 of post-processing image data, and the storage capacity. When M satisfies the relationship of (M−S1) / 2 ≧ S2, an address is set in the area specified by the means.

本発明に係る画像処理装置は、前記記憶領域を解放する手段を備え、前記設定手段は、 (M−S1)/2≧S2の関係を満たさない場合、前記手段で解放された記憶領域の上位アドレス側又は下位アドレス側にアドレスを設定するように構成してあることを特徴とする。   The image processing apparatus according to the present invention further comprises means for releasing the storage area, and the setting means is a higher rank of the storage area released by the means when the relationship of (M−S1) / 2 ≧ S2 is not satisfied. An address is set on the address side or the lower address side.

本発明に係る画像処理装置は、画像データ及び該画像データに所定の処理をして得られた処理後画像データを所定の記憶領域に共に記憶する画像処理装置において、画像データのデータ量を算出する第1算出手段と、処理後画像データのデータ量を算出する第2算出手段と、前記第1算出手段及び第2算出手段で算出されたデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定する設定手段と、前記記憶領域のうち使用可能な領域を特定する手段と、前記記憶領域を解放する手段とを備え、前記設定手段は、画像データのデータ量S1、処理後画像データのデータ量S2、及び前記記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、特定された領域に画像データを記憶するためのアドレスを設定するように構成してあり、前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域が解放されたときに、処理後画像データを記憶するように構成してあり、さらに前記設定手段は、(M−S1)/2≧S2の関係を満たさない場合、所定の記憶領域が解放されたときに、記憶領域の上位アドレス側又は下位アドレス側に画像データを記憶するためのアドレスを設定するように構成してあり、前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域に処理後画像データを記憶するように構成してあることを特徴とする。   An image processing apparatus according to the present invention calculates a data amount of image data in an image processing apparatus that stores image data and processed image data obtained by performing predetermined processing on the image data together in a predetermined storage area. Based on the first calculation means, the second calculation means for calculating the data amount of the processed image data, the data amounts calculated by the first calculation means and the second calculation means, and the storage capacity of the storage area. , Setting means for setting an address for storing the image data, means for specifying an available area of the storage area, and means for releasing the storage area, wherein the setting means includes image data When the data amount S1, the data amount S2 of the processed image data, and the storage capacity M satisfy the relationship of (M−S1) / 2 ≧ S2, the image data is stored in the specified area. When the image data is stored, when the storage area other than the storage area storing the image data is released, the processed image data is stored. In addition, when the relationship of (M−S1) / 2 ≧ S2 is not satisfied, the setting means sends the image data to the upper address side or the lower address side of the storage area when the predetermined storage area is released. An address for storage is set, and when the image data is stored, the processed image data is stored in a storage area other than the storage area for storing the image data. It is characterized by that.

本発明に係る画像処理装置は、前記画像データは、圧縮された画像データであり、前記処理後画像データは、圧縮された画像データが伸張された画像データであることを特徴とする。   In the image processing apparatus according to the present invention, the image data is compressed image data, and the processed image data is image data obtained by decompressing the compressed image data.

本発明に係る画像形成装置は、前述の本発明のいずれか1つの画像処理装置と、該画像処理装置で処理された画像データに基づき、画像の形成を行う画像形成手段とを備えたことを特徴とする。   An image forming apparatus according to the present invention includes any one of the above-described image processing apparatuses of the present invention and an image forming unit that forms an image based on image data processed by the image processing apparatus. Features.

本発明に係る画像処理方法は、画像データ及び該画像データに所定の処理をして得られた処理後画像データを所定の記憶領域に共に記憶する画像処理方法において、画像データのデータ量を算出し、処理後画像データのデータ量を算出し、算出された画像データ及び処理後画像データのデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定し、設定されたアドレスに基づいて、前記画像データを記憶することを特徴とする。   An image processing method according to the present invention calculates an amount of image data in an image processing method in which image data and post-processing image data obtained by performing predetermined processing on the image data are stored together in a predetermined storage area. And calculating the data amount of the processed image data, and setting an address for storing the image data based on the calculated image data and the data amount of the processed image data, and the storage capacity of the storage area. The image data is stored based on the set address.

本発明にあっては、例えば、所定の記憶領域は、原稿の1頁分の画像データ及び該画像データに所定の処理をして得られた処理後画像データを記憶することができる程度の記憶容量を有する。N+1頁目の画像データ及び処理後画像データを記憶領域に記憶する場合、N+1頁目の画像データ及び処理後画像データのデータ量を算出し、算出したデータ量夫々及び記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定する。例えば、N頁目の画像データ及び処理後画像データが記憶領域に記憶された状態でN+1頁目の画像データを記憶領域の未使用領域に記憶する場合、算出したデータ量夫々及び記憶領域の記憶容量に基づいて、N+1頁目の画像データとともにN+1頁目の処理後画像データが記憶領域に配置できるか否かを判定する。N+1頁目の処理後画像データを記憶領域に配置できると判定した場合、N+1頁目の画像データを前記未使用領域に記憶するようにアドレスを設定する。これにより、N頁目の画像データ及び処理後画像データで占有された領域が解放されるまで待つことなくN+1頁目の画像データを記憶し、記憶した画像データに基づいて所定の処理を行う。   In the present invention, for example, the predetermined storage area is a storage that can store image data for one page of a document and post-processing image data obtained by performing predetermined processing on the image data. Have capacity. When storing the image data of the (N + 1) th page and the processed image data in the storage area, the data amounts of the (N + 1) th page of image data and the processed image data are calculated, and based on the calculated data amounts and the storage capacity of the storage area, respectively. Then, an address for storing the image data is set. For example, when the image data of the (N + 1) th page is stored in the unused area of the storage area in a state where the image data of the Nth page and the processed image data are stored in the storage area, the calculated data amount and the storage area are stored. Based on the capacity, it is determined whether the processed image data of the (N + 1) th page can be arranged in the storage area together with the image data of the (N + 1) th page. If it is determined that the processed image data of the (N + 1) th page can be arranged in the storage area, an address is set so that the image data of the (N + 1) th page is stored in the unused area. Thus, the image data of the (N + 1) th page is stored without waiting until the area occupied by the image data of the Nth page and the processed image data is released, and a predetermined process is performed based on the stored image data.

また、N+1頁目の処理後画像データを記憶領域に配置できないと判定した場合、N頁目の画像データ及び処理後画像データで占有された領域が解放(クリア)された後に、N+1頁目の画像データを記憶領域に記憶するようにアドレスを設定する。これにより、N+1頁目の画像データを記憶した場合において、N+1頁目の処理後画像データを記憶するときに、デッドロックを発生させることなく処理の中断を防止する。   Further, when it is determined that the processed image data of the (N + 1) th page cannot be arranged in the storage area, the area occupied by the Nth page of image data and the processed image data is released (cleared), and then the (N + 1) th page. An address is set so that the image data is stored in the storage area. Thus, when the image data of the (N + 1) th page is stored, the process is prevented from being interrupted without causing a deadlock when the processed image data of the (N + 1) th page is stored.

本発明にあっては、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、記憶領域のうち使用可能な領域に前記画像データのアドレスを設定する。例えば、N+1頁目の画像データのデータ量がS1、N+1頁目の処理後画像データのデータ量がS2である場合、(M−S1)/2≧S2の関係を満たすときには、N+1頁目の画像データの記憶領域における配置(記憶位置)の如何に拘わらず、N+1頁目の処理後画像データを記憶領域に配置することが可能である。これにより、N頁目の画像データ及び/又は処理後画像データで占有された領域が解放(クリア)されるのを待つまでもなく、N頁目の画像データ及び/又は処理後画像データで占有されていない未占有領域の任意のアドレスにN+1頁目の画像データを記憶する場合であっても、デッドロックを生じることなくN+1頁目の処理後画像データを記憶することができる。   In the present invention, when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M satisfy the relationship of (M−S1) / 2 ≧ S2, the storage area can be used. The address of the image data is set in a proper area. For example, when the data amount of the image data of the (N + 1) th page is S1 and the data amount of the processed image data of the (N + 1) th page is S2, when the relationship of (M−S1) / 2 ≧ S2 is satisfied, the N + 1th page Regardless of the arrangement (storage position) of the image data in the storage area, it is possible to arrange the processed image data of the (N + 1) th page in the storage area. As a result, it is not necessary to wait for the area occupied by the image data and / or processed image data of the Nth page to be released (cleared), but occupied by the image data and / or processed image data of the Nth page. Even when the image data of the (N + 1) th page is stored at an arbitrary address of the unoccupied area that has not been processed, the processed image data of the (N + 1) th page can be stored without causing a deadlock.

本発明にあっては、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たさない場合、解放された記憶領域の上位アドレス側又は下位アドレス側にアドレスを設定する。例えば、N+1頁目の画像データのデータ量がS1、N+1頁目の処理後画像データのデータ量がS2である場合、(M−S1)/2≧S2の関係を満たさないときには、N+1頁目の画像データの記憶領域における配置(記憶位置)の如何によっては、N+1頁目の処理後画像データを記憶領域に配置することができず、デッドロックを生ずる可能性がある。N頁目の画像データ及び/又は処理後画像データで占有された領域が解放(クリア)されるのを待って、N+1頁目の画像データを解放された記憶領域の上位アドレス側又は下位アドレス側に記憶することにより、デッドロックを生じることなくN+1頁目の処理後画像データを記憶することができる。   In the present invention, when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M do not satisfy the relationship of (M−S1) / 2 ≧ S2, the released storage area An address is set on the upper address side or the lower address side. For example, when the data amount of the image data of the (N + 1) th page is S1 and the data amount of the processed image data of the (N + 1) th page is S2, when the relationship of (M−S1) / 2 ≧ S2 is not satisfied, the N + 1th page Depending on the arrangement (storage position) of the image data in the storage area, the processed image data of the (N + 1) th page cannot be arranged in the storage area, which may cause a deadlock. Waiting for the area occupied by the image data of the Nth page and / or the processed image data to be released (cleared), the upper address side or the lower address side of the storage area where the image data of the (N + 1) th page is released The post-processing image data of the (N + 1) th page can be stored without causing a deadlock.

本発明にあっては、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、特定された領域に画像データを記憶するためのアドレスを設定する。設定されたアドレスに画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域が解放されたときに、処理後画像データを記憶する。例えば、N+1頁目の画像データのデータ量がS1、N+1頁目の処理後画像データのデータ量がS2である場合、(M−S1)/2≧S2の関係を満たすときには、N+1頁目の画像データの記憶領域における配置(記憶位置)の如何に拘わらず、デッドロックを生じることなくN+1頁目の処理後画像データを記憶領域に配置することが可能である。これにより、N頁目の画像データ及び/又は処理後画像データで占有された領域が解放(クリア)されるのを待つまでもなく、N頁目の画像データ及び/又は処理後画像データで占有されていない未占有領域の任意のアドレスにN+1頁目の画像データを記憶し、N+1頁目の画像データが記憶された場合において、N頁目の画像データ及び/又は処理後画像データで占有された領域が解放(クリア)されたときに、N+1頁目の属性データを記憶する。   In the present invention, when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M satisfy the relationship of (M−S1) / 2 ≧ S2, the image is displayed in the specified region. Set an address to store data. When the image data is stored at the set address, the processed image data is stored when the storage area other than the storage area storing the image data is released. For example, when the data amount of the image data of the (N + 1) th page is S1 and the data amount of the processed image data of the (N + 1) th page is S2, when the relationship of (M−S1) / 2 ≧ S2 is satisfied, the N + 1th page Regardless of the arrangement (storage position) of the image data in the storage area, it is possible to arrange the processed image data of the (N + 1) th page in the storage area without causing a deadlock. As a result, it is not necessary to wait for the area occupied by the image data and / or processed image data of the Nth page to be released (cleared), but occupied by the image data and / or processed image data of the Nth page. When the image data of the (N + 1) th page is stored in an arbitrary address of the unoccupied area that is not yet stored, and the image data of the (N + 1) th page is stored, it is occupied by the image data of the Nth page and / or the processed image data. When the area is released (cleared), the attribute data of the (N + 1) th page is stored.

また、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たさない場合、所定の記憶領域が解放されたときに、記憶領域の上位アドレス側又は下位アドレス側に画像データを記憶するためのアドレスを設定し、前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域に処理後画像データを記憶する。例えば、N+1頁目の画像データのデータ量がS1、N+1頁目の処理後画像データのデータ量がS2である場合、(M−S1)/2≧S2の関係を満たさないときには、N+1頁目の画像データの記憶領域における配置(記憶位置)の如何によっては、N+1頁目の処理後画像データを記憶領域に配置することができず、デッドロックを生ずる可能性がある。N頁目の画像データ及び/又は処理後画像データで占有された領域が解放(クリア)されるのを待って、N+1頁目の画像データを解放された記憶領域の上位アドレス側又は下位アドレス側に記憶し、該画像データを記憶した記憶領域以外の記憶領域に処理後画像データを記憶することにより、デッドロックを生じることなくN+1頁目の処理後画像データを記憶することができる。   Further, when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M do not satisfy the relationship of (M−S1) / 2 ≧ S2, when a predetermined storage area is released When an address for storing image data is set on the upper address side or lower address side of the storage area and the image data is stored, the processed image data is stored in a storage area other than the storage area storing the image data. Remember. For example, when the data amount of the image data of the (N + 1) th page is S1 and the data amount of the processed image data of the (N + 1) th page is S2, when the relationship of (M−S1) / 2 ≧ S2 is not satisfied, the N + 1th page Depending on the arrangement (storage position) of the image data in the storage area, the processed image data of the (N + 1) th page cannot be arranged in the storage area, which may cause a deadlock. Waiting for the area occupied by the image data of the Nth page and / or the processed image data to be released (cleared), the upper address side or the lower address side of the storage area where the image data of the (N + 1) th page is released The post-processing image data is stored in a storage area other than the storage area storing the image data, so that the post-processing image data of the (N + 1) th page can be stored without causing a deadlock.

本発明にあっては、画像データは圧縮された画像データであり、処理後画像データは圧縮された画像データが伸張された画像データであることにより、記憶領域における圧縮された画像データの配置が不適切な場合に伸張された画像データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止する。   In the present invention, the image data is compressed image data, and the post-processing image data is image data obtained by decompressing the compressed image data, so that the arrangement of the compressed image data in the storage area is reduced. The processing is prevented from being interrupted due to the fact that there is no free space with consecutive memory addresses necessary for storing the decompressed image data when it is inappropriate.

本発明にあっては、所定の記憶領域に共に記憶される画像データ及び該画像データに所定の処理をして得られた処理後画像データ夫々のデータ量を算出し、算出されたデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定し、設定されたアドレスに基づいて、前記画像データを記憶することにより、記憶領域における画像データの配置が不適切な場合に処理後画像データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止して、処理能力を向上させることができる。   In the present invention, the amount of image data stored together in a predetermined storage area and the amount of processed image data obtained by performing predetermined processing on the image data are calculated. In addition, an address for storing the image data is set on the basis of the storage capacity of the storage area, and the image data is stored on the basis of the set address. The processing capability can be improved by preventing the interruption of the processing due to the absence of the free space where the memory addresses are continuous, which is necessary for storing the processed image data when appropriate.

本発明にあっては、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、記憶領域のうち使用可能な領域に前記画像データのアドレスを設定することにより、記憶領域がすべてクリア(解放)されるまで待つことなく、画像データを記憶するためのアドレスを簡便な構成で設定することができ、処理の中断を防止するとともに、処理能力を向上させることができる。   In the present invention, when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M satisfy the relationship of (M−S1) / 2 ≧ S2, the storage area can be used. By setting the address of the image data in an area, it is possible to set the address for storing the image data with a simple configuration without waiting until the storage area is completely cleared (released). While preventing interruption, the processing capability can be improved.

本発明にあっては、画像データのデータ量S1、処理後画像データのデータ量S2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たさない場合、解放された記憶領域の上位アドレス側又は下位アドレス側に前記画像データのアドレスを設定することにより、簡便な構成で処理の中断を防止することができる。   In the present invention, when the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M do not satisfy the relationship of (M−S1) / 2 ≧ S2, the released storage area By setting the address of the image data on the higher address side or the lower address side, it is possible to prevent interruption of processing with a simple configuration.

本発明にあっては、所定の記憶領域に共に記憶される画像データのデータ量S1、該画像データに所定の処理をして得られた処理後画像データのデータ量S2、及び所定の記憶領域の記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、特定された使用可能な領域に画像データを記憶するためのアドレスを設定し、前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域が解放されたときに、処理後画像データを記憶するとともに、(M−S1)/2≧S2の関係を満たさない場合、所定の記憶領域が解放されたときに、記憶領域の上位アドレス側又は下位アドレス側に画像データを記憶するためのアドレスを設定し、前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域に処理後画像データを記憶することにより、簡便な構成で記憶領域における画像データの配置が不適切な場合に処理後画像データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止して、処理能力を向上させることができる。   In the present invention, the data amount S1 of the image data stored together in the predetermined storage area, the data amount S2 of the processed image data obtained by performing the predetermined process on the image data, and the predetermined storage area If the storage capacity M satisfies the relationship of (M−S1) / 2 ≧ S2, an address for storing image data is set in the specified usable area, and when the image data is stored, When a storage area other than the storage area storing the image data is released, the post-processing image data is stored, and if a relationship of (M−S1) / 2 ≧ S2 is not satisfied, a predetermined storage area is released When the image data is stored in the upper address side or the lower address side of the storage area when the image data is stored, a storage area other than the storage area storing the image data By storing post-processing image data, if the arrangement of the image data in the storage area is inappropriate with a simple configuration, there is no need for processing due to the fact that there is no empty area with continuous memory addresses necessary for storing post-processing image data. The interruption can be prevented and the processing capacity can be improved.

本発明にあっては、画像データは圧縮された画像データであり、処理後画像データは圧縮された画像データが伸張された画像データであることにより、記憶領域における圧縮された画像データの配置が不適切な場合に伸張された画像データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止して、処理能力を向上させることができる。   In the present invention, the image data is compressed image data, and the post-processing image data is image data obtained by decompressing the compressed image data, so that the arrangement of the compressed image data in the storage area is reduced. The processing capability can be improved by preventing the interruption of the processing due to the absence of the free space where the memory addresses are continuous, which is necessary for storing the decompressed image data when inappropriate.

以下、本発明に係る画像処理装置を備える画像形成装置の一例としてのデジタル複合機を実施の形態を示す図面に基づいて説明する。図1は本発明に係るデジタル複合機100の内部構成を示すブロック図である。デジタル複合機100は、画像処理装置10、画像読取部30、印字処理部40などを備えている。また、画像処理装置10は、画像入力部11、画像メモリ制御部12、画像処理部13、画像データ圧縮部14、画像メモリ15、記憶部16、制御部17、ROM18、RAM19、画像データ伸張部20、印字画像生成部21などを備えている。   Hereinafter, a digital multi-function peripheral as an example of an image forming apparatus including an image processing apparatus according to the present invention will be described with reference to the drawings illustrating an embodiment. FIG. 1 is a block diagram showing an internal configuration of a digital multifunction peripheral 100 according to the present invention. The digital multifunction peripheral 100 includes an image processing apparatus 10, an image reading unit 30, a print processing unit 40, and the like. The image processing apparatus 10 includes an image input unit 11, an image memory control unit 12, an image processing unit 13, an image data compression unit 14, an image memory 15, a storage unit 16, a control unit 17, a ROM 18, a RAM 19, and an image data expansion unit. 20, a print image generation unit 21 and the like.

画像読取部30は、例えば、自動原稿送り装置(ADF、Automatic Document Feeder)であり、トレイに載置された原稿を原稿センサ(不図示)で検知し、検知した原稿を搬送しつつ移動する原稿に光を照射し、原稿からの反射光をCCD(不図示)で光電変換してアナログ信号に変換し、得られたアナログ信号をA/D変換器(不図示)でデジタル信号に変換する。画像読取部30は、変換して得られたデジタル信号(画像データ)を画像処理装置10へ出力する。   The image reading unit 30 is, for example, an automatic document feeder (ADF), which detects a document placed on a tray by a document sensor (not shown), and moves while conveying the detected document. The reflected light from the document is photoelectrically converted into an analog signal by a CCD (not shown), and the obtained analog signal is converted into a digital signal by an A / D converter (not shown). The image reading unit 30 outputs a digital signal (image data) obtained by the conversion to the image processing apparatus 10.

画像入力部11は、画像読取部30から入力された画像データ(RGBデータ)を画像メモリ制御部12へ出力するためのインタフェース機能を備える。   The image input unit 11 has an interface function for outputting the image data (RGB data) input from the image reading unit 30 to the image memory control unit 12.

画像メモリ制御部12は、後述する圧縮データ(画像データを圧縮した圧縮画像データ)及び伸張データ(圧縮画像データを伸張して得られた伸張画像データ)を画像メモリ15の所定の記憶領域に記憶(バッファリング)するためのアドレスを指定するアドレス指定レジスタ、データの読み出し及び記憶を指示する信号生成部(いずれも不図示)などを備えている。   The image memory control unit 12 stores compressed data (compressed image data obtained by compressing image data) and expanded data (expanded image data obtained by expanding compressed image data), which will be described later, in a predetermined storage area of the image memory 15. An address designation register for designating an address for (buffering), a signal generation unit (not shown) for instructing reading and storing of data, and the like are provided.

また、画像メモリ制御部12は、画像メモリ15の所定の記憶領域に記憶されている圧縮データ及び/又は伸張データが処理待ち、処理中、及び処理済であるか否かを示すフラグを備え、処理済となった圧縮データ及び/又は伸張データが占有している占有領域をクリア(解放)する。これにより、前記占有領域を他のデータで使用することを可能にする。また、画像メモリ制御部12は、記憶領域のうち圧縮データ及び/又は伸張データで占有されていない空き領域(例えば、不連続な空き領域が存在する場合、最大空きブロック)のアドレス及びサイズなどを算出(特定)する。   Further, the image memory control unit 12 includes a flag indicating whether the compressed data and / or decompressed data stored in a predetermined storage area of the image memory 15 is waiting for processing, being processed, and processed. The occupied area occupied by the compressed data and / or decompressed data that has been processed is cleared (released). This makes it possible to use the occupied area for other data. In addition, the image memory control unit 12 determines the address and size of a free area that is not occupied by compressed data and / or decompressed data in the storage area (for example, if there is a discontinuous free area, the maximum free block). Calculate (specify).

また、画像メモリ制御部12は、画像形成処理時に記憶部16から圧縮データを画像メモリ15に転送して所定の記憶領域に記憶する場合、圧縮データのデータサイズ(例えば、S1)、圧縮データを伸張した伸張データのデータサイズ(例えば、S2)、及び記憶領域の記憶容量Mに基づいて、圧縮データを記憶領域の何処に記憶するか及びどのタイミングで記憶するかなどを設定する。   In addition, when the image memory control unit 12 transfers the compressed data from the storage unit 16 to the image memory 15 and stores the compressed data in a predetermined storage area at the time of image formation processing, the data size of the compressed data (for example, S1) and the compressed data are Based on the data size (for example, S2) of the decompressed decompressed data and the storage capacity M of the storage area, where the compressed data is stored and at what timing is set.

画像メモリ制御部12は、画像入力部11から入力された画像データを一旦画像メモリ15に記憶し、記憶した画像データを画像メモリ15から読み出して画像処理部13へ出力する。   The image memory control unit 12 temporarily stores the image data input from the image input unit 11 in the image memory 15, reads the stored image data from the image memory 15, and outputs it to the image processing unit 13.

画像処理部13は、入力された画像データに対して、画像読取部30の照明系、結像系、撮像系などで生じた各種の歪みを取り除く補正処理、画像データのカラーバランスを整える処理、濃度変換処理、倍率変換処理、濃度反転などの編集処理などを行い、処理後の画像データを画像データ圧縮部14へ出力する。   The image processing unit 13 performs a correction process for removing various distortions generated in the illumination system, the imaging system, the imaging system, and the like of the input image data, a process for adjusting the color balance of the image data, Editing processing such as density conversion processing, magnification conversion processing, and density inversion is performed, and the processed image data is output to the image data compression unit 14.

画像データ圧縮部14は、例えば、JPEG方式のデータ圧縮機能を備え、画像処理部13から入力された画像データに対して不可逆圧縮によるデータ圧縮を行う。画像データ圧縮部14は、圧縮した圧縮データ(圧縮画像データ)を画像メモリ制御部12へ出力する。なお、圧縮方式は、JPEG方式に限定されるものではなく、他の方式であってもよい。   The image data compression unit 14 includes, for example, a JPEG data compression function, and performs data compression by irreversible compression on the image data input from the image processing unit 13. The image data compression unit 14 outputs the compressed data (compressed image data) that has been compressed to the image memory control unit 12. Note that the compression method is not limited to the JPEG method, and may be another method.

画像メモリ制御部12は、画像データ圧縮部14から入力された圧縮データを記憶部16(例えば、HDDで構成される2次記憶装置)に記憶する。画像メモリ制御部12は、圧縮データ及び後述する伸張データのデータサイズ(データ量)を算出する算出部を備えている。画像メモリ制御部12は、画像データ圧縮部14から入力された圧縮データが画像メモリ15を占有するアドレス値に基づいて、圧縮データのデータサイズを算出することができる。また、画像メモリ制御部12は、画像入力部11から入力された画像データが画像メモリ15を占有するアドレス値及び圧縮データのデータサイズに基づいて、伸張後の伸張データのデータサイズを算出することができる。なお、データサイズを算出する構成に代えて、予め画像データの特性などに応じて、圧縮データ及び伸張データのデータサイズをテーブルとして記憶しておき、該テーブルを参照することにより、データサイズを決定する構成でもよい。   The image memory control unit 12 stores the compressed data input from the image data compression unit 14 in the storage unit 16 (for example, a secondary storage device configured with an HDD). The image memory control unit 12 includes a calculation unit that calculates the data size (data amount) of compressed data and decompressed data described later. The image memory control unit 12 can calculate the data size of the compressed data based on the address value that the compressed data input from the image data compression unit 14 occupies the image memory 15. Further, the image memory control unit 12 calculates the data size of the decompressed data after decompression based on the address value that the image data input from the image input unit 11 occupies the image memory 15 and the data size of the compressed data. Can do. Instead of the configuration for calculating the data size, the data size of the compressed data and the decompressed data is stored in advance as a table according to the characteristics of the image data, and the data size is determined by referring to the table. The structure to do may be sufficient.

画像メモリ制御部12は、記憶部16に記憶された圧縮データに基づいて、記録紙に画像を形成(印字)する場合、記憶部16から圧縮データを読込み、読込んだ圧縮データを画像メモリ15に記憶(バッファリング)する。   When forming (printing) an image on recording paper based on the compressed data stored in the storage unit 16, the image memory control unit 12 reads the compressed data from the storage unit 16 and stores the read compressed data in the image memory 15. (Buffering).

画像メモリ制御部12は、画像メモリ15に記憶した圧縮データを読込み、読込んだ圧縮データを画像データ伸張部20へ出力する。   The image memory control unit 12 reads the compressed data stored in the image memory 15 and outputs the read compressed data to the image data decompression unit 20.

画像データ伸張部20は、画像メモリ制御部12から入力された圧縮データを伸張処理して、伸張後の伸張データ(伸張画像データ)を印字画像生成部21へ出力する。   The image data decompression unit 20 decompresses the compressed data input from the image memory control unit 12 and outputs decompressed decompressed data (expanded image data) to the print image generation unit 21.

印字画像生成部21は、入力された伸張データに基づいて、RGBデータをYMCKデータに変換し、変換後のYMCKデータ(伸張データ)を画像メモリ制御部12へ出力する。より具体的には、印字画像生成部21は、RGBデータをCMYKの色空間に変換するとともに、色補正処理、階調補正処理、又は印字処理部40の特性に合わせた二値化処理若しくは所定の階調の画像生成などを行う。   The print image generation unit 21 converts RGB data into YMCK data based on the input decompressed data, and outputs the converted YMCK data (expanded data) to the image memory control unit 12. More specifically, the print image generation unit 21 converts the RGB data into a CMYK color space, and performs color correction processing, gradation correction processing, or binarization processing according to the characteristics of the print processing unit 40 or a predetermined process. The image generation of the gradation is performed.

画像メモリ制御部12は、印字画像生成部21から入力された伸張データを画像メモリ15に記憶することにより、伸張データを画像メモリ15でバッファリングし、画像メモリ15に記憶した伸張データを印字処理部40へ転送(出力)する。   The image memory control unit 12 stores the decompressed data input from the print image generating unit 21 in the image memory 15, thereby buffering the decompressed data in the image memory 15, and prints the decompressed data stored in the image memory 15. Transfer (output) to the unit 40.

画像メモリ15は、例えば、1枚の原稿(A4、A3、カラー、モノクロなど)の画像を形成するために必要な画像データ(例えば、圧縮データ)及び該画像データを処理して得られた画像形成用データ(例えば、伸張データ)を同時にバッファリングするのに十分な記憶領域(記憶容量M)が定められている。これにより、画像メモリ15の所定の記憶領域には、圧縮データと該圧縮データを伸張処理して得られた伸張データとが共に記憶される。   The image memory 15 is, for example, image data (for example, compressed data) necessary to form an image of one original (A4, A3, color, monochrome, etc.) and an image obtained by processing the image data. A storage area (storage capacity M) sufficient to simultaneously buffer formation data (for example, decompressed data) is determined. Thereby, both the compressed data and the decompressed data obtained by decompressing the compressed data are stored in a predetermined storage area of the image memory 15.

印字処理部40は、画像処理装置10から入力された伸張データに基づいて、用紙上に画像を形成し、画像が形成された用紙を排出する。印字処理部40は、例えば、感光体ドラム、感光体ドラムを所定の電位に帯電させる帯電器、感光体ドラム表面に静電潜像を形成するレーザ書込装置、感光体ドラム表面の静電潜像にトナーを供給して顕像化する現像装置、感光体ドラム表面のトナー像を用紙に転写する転写装置などを備えている(いずれも不図示)。なお、印字処理部40は、電子写真方式に限定されるものではなく、インクジェット方式、熱転写方式などいずれの方式のものでもよい。   The print processing unit 40 forms an image on a sheet based on the decompressed data input from the image processing apparatus 10, and discharges the sheet on which the image is formed. The print processing unit 40 includes, for example, a photosensitive drum, a charger that charges the photosensitive drum to a predetermined potential, a laser writing device that forms an electrostatic latent image on the surface of the photosensitive drum, and an electrostatic latent image on the surface of the photosensitive drum. The image forming apparatus includes a developing device that supplies toner to an image to make the image visible, and a transfer device that transfers the toner image on the surface of the photosensitive drum to a sheet (all not shown). The print processing unit 40 is not limited to the electrophotographic method, and may be any method such as an ink jet method or a thermal transfer method.

制御部17は、例えば、マイクロコンピュータで構成され、画像処理装置10全体の処理を制御する。すなわち、制御部17は、ROM18に記憶されている自身の制御手順を示す制御プログラムをRAM19にロードすることにより、制御プログラムで示された制御手順に従って画像処理装置10の動作を制御する。   The control unit 17 is composed of, for example, a microcomputer, and controls the entire processing of the image processing apparatus 10. That is, the control unit 17 loads the control program indicating its own control procedure stored in the ROM 18 into the RAM 19, thereby controlling the operation of the image processing apparatus 10 according to the control procedure indicated by the control program.

図2は圧縮データ及び伸張データを記憶するためのアドレス設定の概念図である。図中矩形状の枠は、画像メモリ15の所定の記憶領域を示し、例えば、図の上側が上位アドレス、下側が下位アドレスとなるように記憶アドレスが設定され、記憶領域の記憶容量をMとする。圧縮データ及び圧縮データサイズをS1、該圧縮データを伸張して得られる伸張データ及び伸張データサイズをS2とした場合、(M−S1)/2≧S2の関係を満たす場合、圧縮データS1が記憶領域のどの位置に配置されたとしても、伸張データS2を圧縮データS1と共に記憶領域に配置することができる(デッドロックが生じない)。すなわち、上記の関係を満たす場合、圧縮データを記憶するためのアドレスは、記憶領域の空き領域であれば、任意のアドレスに設定することができる。   FIG. 2 is a conceptual diagram of address setting for storing compressed data and decompressed data. A rectangular frame in the figure indicates a predetermined storage area of the image memory 15. For example, the storage address is set so that the upper side is the upper address and the lower side is the lower address, and the storage capacity of the storage area is M. To do. When the compressed data and the compressed data size are S1, and the decompressed data and the decompressed data size obtained by decompressing the compressed data are S2, the compressed data S1 is stored when the relationship of (M−S1) / 2 ≧ S2 is satisfied. Regardless of the location in the area, the decompressed data S2 can be placed in the storage area together with the compressed data S1 (no deadlock occurs). That is, if the above relationship is satisfied, the address for storing the compressed data can be set to an arbitrary address as long as it is a free area in the storage area.

一方、(M−S1)/2≧S2の関係を満たさない場合、圧縮データS1が記憶領域のどの位置に配置されるかに応じて、伸張データS2を圧縮データS1と共に記憶領域に配置することができない(デッドロックが生じる)ときがある。   On the other hand, when the relationship of (M−S1) / 2 ≧ S2 is not satisfied, the decompressed data S2 is arranged in the storage area together with the compressed data S1 in accordance with the position in the storage area where the compressed data S1 is arranged. Sometimes it is not possible (deadlock occurs).

図3はデッドロックが生じる場合の記憶領域の状態を示す説明図である。例えば、圧縮データS1が記憶領域の略中央部に配置され、略同サイズの2つの空き領域、すなわち、S1より上位の連続空き領域、及びS1より下位の連続空き領域の両者の連続空き領域が生ずるような場合、これらの連続空き領域夫々のサイズが伸張データサイズS2より小さく、伸張データS2を記憶領域に配置することができず、デッドロックが発生する。   FIG. 3 is an explanatory diagram showing the state of the storage area when deadlock occurs. For example, the compressed data S1 is arranged in a substantially central portion of the storage area, and two free areas of substantially the same size, that is, a continuous free area that is both a continuous free area that is higher than S1 and a continuous free area that is lower than S1. In such a case, the size of each of these continuous free areas is smaller than the decompressed data size S2, and the decompressed data S2 cannot be placed in the storage area, resulting in deadlock.

従って、(M−S1)/2≧S2の関係を満たさない場合、圧縮データS1を記憶するためのアドレスは、予め記憶領域をすべて空き領域にした後に設定する。この場合、記憶領域の上位アドレス側(又は下位アドレス側)にアドレスを設定することにより、伸張データS2を記憶する際のデッドロックを防止することができる。   Therefore, when the relationship of (M−S1) / 2 ≧ S2 is not satisfied, the address for storing the compressed data S1 is set after all the storage areas are made free in advance. In this case, setting an address on the upper address side (or lower address side) of the storage area can prevent deadlock when storing the decompressed data S2.

次に画像処理装置10の動作について説明する。図4は画像メモリ制御部12の処理手順を示すタイムチャートである。複数頁の画像を形成する場合、例えば、N頁目の処理では、画像メモリ制御部12は、N+1頁目の圧縮データのアドレスを設定するための判定処理を行う。画像メモリ制御部12は、N頁目の圧縮データを記憶部(HDD)16から画像メモリ15へ転送する。これにより、画像メモリ15に圧縮データが記憶(配置)される。次に、記憶された圧縮データを読み出して、圧縮データの伸張処理を行い、伸張データを画像メモリ15に記憶(配置)する。記憶された伸張データを読み出し、読み出した伸張データを画像メモリ15から印字処理部40へ転送する。転送処理が終了した時点で、記憶された圧縮データ及び伸張データで占有された占有領域をクリア(解放)する(画像メモリクリア)。   Next, the operation of the image processing apparatus 10 will be described. FIG. 4 is a time chart showing the processing procedure of the image memory control unit 12. When forming an image of a plurality of pages, for example, in the processing of the Nth page, the image memory control unit 12 performs a determination process for setting the address of the compressed data of the (N + 1) th page. The image memory control unit 12 transfers the compressed data of the Nth page from the storage unit (HDD) 16 to the image memory 15. As a result, the compressed data is stored (arranged) in the image memory 15. Next, the stored compressed data is read out, the compressed data is decompressed, and the decompressed data is stored (arranged) in the image memory 15. The stored decompressed data is read, and the read decompressed data is transferred from the image memory 15 to the print processing unit 40. When the transfer process ends, the occupied area occupied by the stored compressed data and decompressed data is cleared (released) (image memory clear).

画像メモリ制御部12は、判定処理で(M−S1)/2≧S2の関係を満たすと判定した場合、N+1頁目の処理を開始する時点で、N+2頁目の圧縮データのアドレスを設定するための判定処理を行うとともに、N頁目の処理が終了(画像メモリクリア)する前に、N+1頁目の圧縮データを記憶部(HDD)16から画像メモリ15へ転送する。画像メモリ制御部12は、N頁目の処理が終了(画像メモリクリア)した時点で、記憶された圧縮データを読み出して、圧縮データの伸張処理を行い、伸張データを画像メモリ15に記憶(配置)する。記憶された伸張データを読み出し、読み出した伸張データを画像メモリ15から印字処理部40へ転送する。転送処理が終了した時点で、記憶された圧縮データ及び伸張データで占有された占有領域をクリア(解放)する(画像メモリクリア)。これにより、従来の処理に比較して、1頁当り時間Td(図4参照)の処理時間を短縮して、処理能力を向上させることができる。なお、以降の頁についても、同様の処理を繰り返す。   When it is determined in the determination process that the relationship of (M−S1) / 2 ≧ S2 is satisfied, the image memory control unit 12 sets the address of the compressed data of the (N + 2) th page when starting the process of the (N + 1) th page. The compressed data of the (N + 1) th page is transferred from the storage unit (HDD) 16 to the image memory 15 before the process of the Nth page is completed (image memory clear). The image memory control unit 12 reads the stored compressed data when the processing of the Nth page is completed (image memory clear), decompresses the compressed data, and stores (arranges) the decompressed data in the image memory 15. ) The stored decompressed data is read, and the read decompressed data is transferred from the image memory 15 to the print processing unit 40. When the transfer process ends, the occupied area occupied by the stored compressed data and decompressed data is cleared (released) (image memory clear). Thereby, compared with the conventional processing, the processing time of the time Td per page (see FIG. 4) can be shortened and the processing capability can be improved. The same processing is repeated for the subsequent pages.

図5は画像メモリ15の記憶領域のデータ配置を示すタイムチャートである。図に示すように、画像メモリ15の所定の記憶領域(共有メモリ)には、まずN頁目の圧縮データS1(N)が記憶される。次に圧縮データS1(N)を伸張処理して得られたN頁目の伸張データS2(N)が記憶される。画像メモリ制御部12の判定処理で、(M−S1)/2≧S2の関係を満たすと判定した場合、N頁目の処理が終了(画像メモリクリア)する前に、N+1頁目の圧縮データが記憶部(HDD)16から画像メモリ15へ転送されるため、N+1頁目の圧縮データS1(N+1)が記憶される。   FIG. 5 is a time chart showing the data arrangement of the storage area of the image memory 15. As shown in the figure, in a predetermined storage area (shared memory) of the image memory 15, first, compressed data S1 (N) of the Nth page is stored. Next, decompressed data S2 (N) of the Nth page obtained by decompressing the compressed data S1 (N) is stored. When the determination process of the image memory control unit 12 determines that the relationship of (M−S1) / 2 ≧ S2 is satisfied, the compressed data of the (N + 1) th page is completed before the processing of the Nth page is completed (image memory clear). Is transferred from the storage unit (HDD) 16 to the image memory 15, so that the compressed data S1 (N + 1) of the (N + 1) th page is stored.

N頁目の伸張データS2(N)の転送処理が終了した時点で、記憶された圧縮データS1(N)及び伸張データS2(N)で占有された占有領域をクリア(解放)する(画像メモリクリア)。これにより、記憶領域には、N+1頁目の圧縮データS1(N+1)だけが残る。圧縮データS1(N+1)を伸張処理して得られたN+1頁目の伸張データS2(N+1)が記憶される。この場合、N+1頁目の圧縮データS1(N+1)を記憶領域のどの位置に配置しても、伸張データS2(N+1)を圧縮データS1(N+1)とともに配置することができるため、圧縮データS1(N)及び伸張データS2(N)で占有された占有領域をクリア(解放)する前に圧縮データS1(N+1)を記憶することができる。   When the transfer processing of the decompressed data S2 (N) of the Nth page is completed, the occupied area occupied by the stored compressed data S1 (N) and decompressed data S2 (N) is cleared (released) (image memory). clear). Thereby, only the compressed data S1 (N + 1) of the (N + 1) th page remains in the storage area. The decompressed data S2 (N + 1) of the (N + 1) th page obtained by decompressing the compressed data S1 (N + 1) is stored. In this case, the decompressed data S2 (N + 1) can be arranged together with the compressed data S1 (N + 1) regardless of the position in the storage area where the compressed data S1 (N + 1) of the (N + 1) th page is arranged. N) and the compressed data S1 (N + 1) can be stored before clearing (releasing) the occupied area occupied by the decompressed data S2 (N).

図6は画像メモリ制御部12の処理手順を示すタイムチャートである。図4の場合と同様に、画像メモリ制御部12は、N頁目の処理で、N+1頁目の圧縮データのアドレスを設定するための判定処理を行う。図4の場合との相違点は、判定処理で(M−S1)/2≧S2の関係を満たさないと判定した点である。この場合、画像メモリ制御部12は、N頁目の処理が終了(画像メモリクリア)した時点でN+1頁目の処理を開始する。これにより、デッドロックを生じることなくN+1頁目の伸張データを記憶することができる。なお、この場合の画像メモリ15の記憶領域のデータ配置を示すタイムチャートは、図11の場合と同様であるので、説明は省略する。   FIG. 6 is a time chart showing the processing procedure of the image memory control unit 12. As in the case of FIG. 4, the image memory control unit 12 performs a determination process for setting the address of the compressed data of the (N + 1) th page in the process of the Nth page. The difference from the case of FIG. 4 is that the determination process determines that the relationship of (M−S1) / 2 ≧ S2 is not satisfied. In this case, the image memory control unit 12 starts the process of the (N + 1) th page when the process of the Nth page is completed (image memory is cleared). Thereby, the decompressed data of the (N + 1) th page can be stored without causing a deadlock. Note that the time chart showing the data arrangement in the storage area of the image memory 15 in this case is the same as that in FIG.

図7は画像メモリ15の記憶領域のデータ配置を示すタイムチャートであり、図8は各データサイズの例を示す図表である。図7及び図8において、データ配置を時系列に状態1〜7に分けて説明する。なお、記憶領域の記憶容量Mは、例えば、256MBとする。また、伸張データは、画像形成用のYMCKデータであり、各色4ビットとする。   FIG. 7 is a time chart showing the data arrangement of the storage area of the image memory 15, and FIG. 8 is a chart showing an example of each data size. 7 and 8, the data arrangement will be described in time series divided into states 1-7. Note that the storage capacity M of the storage area is, for example, 256 MB. The decompressed data is YMCK data for image formation, and is 4 bits for each color.

状態1では、N−1頁目の圧縮データS1(N−1)及び伸張データS2(N−1)が共に記憶され、圧縮データS1(N−1)のデータサイズは45.1MB、伸張データS2(N−1)のデータサイズは66.4MBである。   In state 1, both the compressed data S1 (N-1) and the decompressed data S2 (N-1) of the N-1th page are stored, and the data size of the compressed data S1 (N-1) is 45.1 MB. The data size of S2 (N-1) is 66.4 MB.

N頁目の圧縮データS1(N)のデータサイズが32.7MB、伸張データS2(N)のデータサイズが99.6MBであり、(M−S1)/2が111.7MBとなり、(M−S1)/2≧S2の関係を満たすため、N頁目の圧縮データS1(N)が記憶領域のどの位置に配置されてもN頁目の伸張データS2(N)とデッドロックが生じない。このため、状態2では、N−1頁目の圧縮データS1(N−1)、伸張データS2(N−1)と共にN頁目の圧縮データS1(N)が記憶される。この場合、N頁目の圧縮データS1(N)は、空き領域の任意の位置に配置可能である。   The compressed data S1 (N) of page N has a data size of 32.7MB, the decompressed data S2 (N) has a data size of 99.6MB, and (M-S1) / 2 is 111.7MB. Since the relationship of S1) / 2 ≧ S2 is satisfied, no deadlock occurs with the Nth page of decompressed data S2 (N) regardless of the position in the storage area where the Nth page of compressed data S1 (N) is placed. For this reason, in state 2, the compressed data S1 (N) of the Nth page is stored together with the compressed data S1 (N-1) and the decompressed data S2 (N-1) of the N-1th page. In this case, the compressed data S1 (N) of the Nth page can be arranged at an arbitrary position in the empty area.

状態3では、N−1頁目の圧縮データS1(N−1)及び伸張データS2(N−1)で占有された占有領域がクリア(解放)された後、N頁目の伸張データS2(N)が記憶される。   In state 3, after the occupied area occupied by the compressed data S1 (N-1) and the decompressed data S2 (N-1) of the (N-1) th page is cleared (released), the decompressed data S2 (N2) of the Nth page N) is stored.

N+1頁目の圧縮データS1(N+1)のデータサイズが70.0MB、伸張データS2(N+1)のデータサイズが132.8MBであり、(M−S1)/2が93.0MBとなり、(M−S1)/2≧S2の関係を満たさないため、N+1頁目の圧縮データS1(N+1)の記憶位置如何によっては、N+1頁目の伸張データS2(N+1)とデッドロックが生じる可能性がある。このため、状態4では、N+1頁目の圧縮データS1(N+1)を記憶しない。   The data size of the compressed data S1 (N + 1) on page N + 1 is 70.0 MB, the data size of the decompressed data S2 (N + 1) is 132.8 MB, (M−S1) / 2 is 93.0 MB, and (M− Since the relationship of S1) / 2 ≧ S2 is not satisfied, deadlock may occur with the decompressed data S2 (N + 1) of the (N + 1) th page depending on the storage location of the compressed data S1 (N + 1) of the (N + 1) th page. For this reason, in state 4, the compressed data S1 (N + 1) of the (N + 1) th page is not stored.

状態5でN頁目の圧縮データS1(N)及び伸張データS2(N)で占有された占有領域がクリア(解放)された後、N+1頁目の圧縮データS1(N+1)及び伸張データS2(N+1)が記憶される。この場合、N+1頁目の圧縮データS1(N+1)は、記憶領域の上位アドレス側(又は下位アドレス側)に記憶されることが望ましい。これにより、伸張データS2(N+1)とのデッドロックを防止することができる。   After the occupied area occupied by the Nth page compressed data S1 (N) and the decompressed data S2 (N) is cleared (released) in the state 5, the N + 1th page compressed data S1 (N + 1) and the decompressed data S2 ( N + 1) is stored. In this case, the compressed data S1 (N + 1) of the (N + 1) th page is preferably stored on the upper address side (or lower address side) of the storage area. Thereby, deadlock with the decompressed data S2 (N + 1) can be prevented.

N+2頁目の圧縮データS1(N+2)のデータサイズが20.2MB、伸張データS2(N+2)のデータサイズが66.4MBであり、(M−S1)/2が117.9MBとなり、(M−S1)/2≧S2の関係を満たすため、N+2頁目の圧縮データS1(N+2)が記憶領域のどの位置に配置されてもN+2頁目の伸張データS2(N+2)とデッドロックが生じない。このため、状態6では、N+1頁目の圧縮データS1(N+1)、伸張データS2(N+1)と共にN+2頁目の圧縮データS1(N+2)が記憶される。   The data size of the compressed data S1 (N + 2) on page N + 2 is 20.2 MB, the data size of the decompressed data S2 (N + 2) is 66.4 MB, (M−S1) / 2 is 117.9 MB, and (M− Since the relationship of S1) / 2 ≧ S2 is satisfied, no deadlock occurs with the decompressed data S2 (N + 2) of the (N + 2) th page regardless of the position in the storage area where the compressed data S1 (N + 2) of the (N + 2) th page is arranged. Therefore, in state 6, the compressed data S1 (N + 2) of the (N + 2) th page is stored together with the compressed data S1 (N + 1) of the (N + 1) th page and the decompressed data S2 (N + 1).

状態7では、N+1頁目の圧縮データS1(N+1)及び伸張データS2(N+1)で占有された占有領域がクリア(解放)された後、N+2頁目の伸張データS2(N+2)が記憶される。   In state 7, after the occupied area occupied by the compressed data S1 (N + 1) and the decompressed data S2 (N + 1) of the (N + 1) th page is cleared (released), the decompressed data S2 (N + 2) of the (N + 2) th page is stored. .

図9及び図10は画像メモリ制御部12の処理手順を示すフローチャートである。画像メモリ制御部12は、処理要求の有無を判定し(S11)、処理要求がない場合(S11でNO)、ステップS11の処理を続け、処理要求があるまで待機する。   9 and 10 are flowcharts showing the processing procedure of the image memory control unit 12. The image memory control unit 12 determines whether or not there is a processing request (S11). If there is no processing request (NO in S11), the image memory control unit 12 continues the processing in step S11 and waits until there is a processing request.

処理要求がある場合(S11でYES)、画像メモリ制御部12は、圧縮データサイズS1を算出し(S12)、伸張データサイズS2を算出する(S13)。画像メモリ制御部12は、(M−S1)/2≧S2(以下、「判定式」という。ただし、Mは記憶領域の記憶容量)の関係を満たすか否かを判定する(S14)。   When there is a processing request (YES in S11), the image memory control unit 12 calculates the compressed data size S1 (S12), and calculates the decompressed data size S2 (S13). The image memory control unit 12 determines whether or not the relationship of (M−S1) / 2 ≧ S2 (hereinafter referred to as “determination formula”, where M is the storage capacity of the storage area) is satisfied (S14).

判定式の関係を満たす場合(S14でYES)、画像メモリ制御部12は、最大空きブロックサイズを算出し(S15)、最大空きブロックサイズが圧縮データサイズS1以上であるか否かを判定する(S16)。最大空きブロックサイズが圧縮データサイズS1以上でない場合(S16でNO)、画像メモリ制御部12は、ステップS16の処理を続け、最大空きブロックサイズが圧縮データサイズS1以上になるまで待機する。   When the relationship of the determination formula is satisfied (YES in S14), the image memory control unit 12 calculates the maximum free block size (S15) and determines whether the maximum free block size is equal to or larger than the compressed data size S1 (S15). S16). When the maximum free block size is not equal to or larger than the compressed data size S1 (NO in S16), the image memory control unit 12 continues the process of step S16 and waits until the maximum free block size becomes equal to or larger than the compressed data size S1.

最大空きブロックサイズが圧縮データサイズS1以上である場合(S16でYES)、画像メモリ制御部12は、圧縮データS1を記憶領域に配置し(S17)、最大空きブロックサイズを算出する(S18)。画像メモリ制御部12は、最大空きブロックサイズが伸張データサイズS2以上であるか否かを判定する(S19)。   When the maximum free block size is equal to or larger than the compressed data size S1 (YES in S16), the image memory control unit 12 places the compressed data S1 in the storage area (S17), and calculates the maximum free block size (S18). The image memory control unit 12 determines whether or not the maximum empty block size is equal to or larger than the decompressed data size S2 (S19).

最大空きブロックサイズが伸張データサイズS2以上でない場合(S19でNO)、画像メモリ制御部12は、ステップS19の処理を続け、最大空きブロックサイズが伸張データサイズS2以上になるまで待機する。   If the maximum free block size is not equal to or greater than the decompressed data size S2 (NO in S19), the image memory control unit 12 continues the process of step S19 and waits until the maximum free block size becomes equal to or greater than the decompressed data size S2.

最大空きブロックサイズが伸張データサイズS2以上である場合(S19でYES)、画像メモリ制御部12は、伸張データS2を記憶領域に配置し(S20)、伸張データS2の転送が終了したか否かを判定する(S21)。伸張データS2の転送が終了していない場合(S21でNO)、画像メモリ制御部12は、ステップS21の処理を続け、伸張データS2の転送が終了するまで待機する。   If the maximum empty block size is equal to or larger than the decompressed data size S2 (YES in S19), the image memory control unit 12 places the decompressed data S2 in the storage area (S20), and determines whether or not the transfer of the decompressed data S2 is completed. Is determined (S21). If the transfer of the decompressed data S2 has not been completed (NO in S21), the image memory control unit 12 continues the process of step S21 and waits until the transfer of the decompressed data S2 is completed.

伸張データS2の転送が終了した場合(S21でYES)、画像メモリ制御部12は、圧縮データS1及び伸張データS2で占有された占有領域をクリア(解放)し(S22)、すべての頁の処理が終了したか否かを判定する(S23)。すべての頁の処理が終了していない場合(S23でNO)、画像メモリ制御部12は、ステップS12以降の処理を続ける。   When the transfer of the decompressed data S2 is completed (YES in S21), the image memory control unit 12 clears (releases) the occupied area occupied by the compressed data S1 and the decompressed data S2 (S22), and processes all pages. It is determined whether or not (S23). If all the pages have not been processed (NO in S23), the image memory control unit 12 continues the processing from step S12.

ステップS14で、判定式の関係を満たさない場合(S14でNO)、画像メモリ制御部12は、記憶領域(共有メモリ)がすべて空き領域であるか否かを判定する(S24)。記憶領域がすべて空き領域でない場合(S24でNO)、画像メモリ制御部12は、ステップS24の処理を続け、記憶領域がすべて空き領域になるまで待機する。   If the determination formula relationship is not satisfied in step S14 (NO in S14), the image memory control unit 12 determines whether or not all the storage areas (shared memory) are free areas (S24). If all the storage areas are not free areas (NO in S24), the image memory control unit 12 continues the process of step S24 and waits until all the storage areas become free areas.

記憶領域がすべて空き領域である場合(S24でYES)、画像メモリ制御部12は、圧縮データS1を配置し(S25)、伸張データを配置し(S26)、ステップS21以降の処理を続ける。すべての頁の処理が終了した場合(S23でYES)、画像メモリ制御部12は、処理を終了する。   When all the storage areas are free areas (YES in S24), the image memory control unit 12 arranges the compressed data S1 (S25), arranges the decompressed data (S26), and continues the processing from step S21. If all pages have been processed (YES in S23), the image memory control unit 12 ends the process.

以上説明したように、本発明にあっては、所定の記憶領域に共に記憶される圧縮データ及び該圧縮データを伸張処理して得られた伸張データ夫々のデータサイズを算出し、算出されたデータサイズと記憶領域の記憶容量とに基づいて、圧縮データを記憶するためのアドレスを設定し、設定されたアドレスに基づいて、圧縮データを記憶することにより、記憶領域における圧縮データの配置が不適切な場合に伸張データの記憶に必要な、メモリアドレスが連続した空き領域がなくなることによる処理の中断を防止して、処理能力を向上させることができる。   As described above, in the present invention, the data size of the compressed data stored together in the predetermined storage area and the decompressed data obtained by decompressing the compressed data are calculated, and the calculated data Setting the address for storing the compressed data based on the size and the storage capacity of the storage area, and storing the compressed data based on the set address, the placement of the compressed data in the storage area is inappropriate In such a case, it is possible to prevent the interruption of the processing due to the absence of the empty area where the memory addresses are continuous, which is necessary for storing the decompressed data, and to improve the processing capability.

また、N+1頁目の圧縮データのデータサイズS1、伸張データのデータサイズS2、及び記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、N頁目の圧縮データ及び/又は伸張データで占有されていない未占有領域にN+1頁目の圧縮データのアドレスを設定することにより、記憶領域がすべてクリア(解放)されるまで待つことなく、N+1頁目の圧縮データを早いタイミングで記憶することができ、デッドロックの発生を抑止しつつ、処理の中断を防止し、処理能力を向上させることができる。また、デッドロックの発生を検出するための検出手段又はデッドロックの発生を抑止するための複雑なメモリ管理機構が不要であり、簡便な構成でデータの配置を設定することができる。   Further, when the data size S1 of the compressed data of the (N + 1) th page, the data size S2 of the decompressed data, and the storage capacity M satisfy the relationship of (M−S1) / 2 ≧ S2, the compressed data of the Nth page and / or By setting the address of the compressed data of the (N + 1) th page in the unoccupied area that is not occupied by the decompressed data, the compressed data of the (N + 1) th page is sent at an early timing without waiting until all the storage areas are cleared (released). It is possible to store the information, while preventing the occurrence of deadlock, preventing the interruption of the processing and improving the processing capability. In addition, a detection means for detecting the occurrence of a deadlock or a complicated memory management mechanism for suppressing the occurrence of a deadlock is not required, and the arrangement of data can be set with a simple configuration.

上述の実施の形態においては、圧縮データ及び伸張データを記憶領域(共有メモリ)で共有する場合について説明したが、取り扱うデータは、圧縮データ及び伸張データに限定されるものではなく、画像データ及び該画像データに所定の処理を施した処理後画像データの如く、異なる2種類のデータを共有して記憶する場合にも適用することができる。   In the above-described embodiment, the case where the compressed data and the decompressed data are shared in the storage area (shared memory) has been described. However, the data to be handled is not limited to the compressed data and the decompressed data. The present invention can also be applied to a case where two different types of data are shared and stored, such as post-processing image data obtained by performing predetermined processing on image data.

上述の実施の形態においては、圧縮データ及び伸張データを記憶する場合、上位アドレス側から下位アドレス側に向かって記憶する場合について説明したが、これに限定されるものではなく、下位アドレス側から上位アドレス側に向かって記憶するような構成であってもよい。   In the above-described embodiment, the case where the compressed data and the decompressed data are stored is described from the upper address side toward the lower address side. However, the present invention is not limited to this. The configuration may be such that data is stored toward the address side.

上述の実施の形態においては、例えば、画像メモリ制御部12は、N頁目の処理が開始される時点でN+1頁目の判定処理を行う構成であったが、画像メモリ制御部12の判定処理を行うタイミングは、これに限定されるものではない。また、前記判定処理は、画像メモリ制御部12で行うことに限定されるものではなく、画像処理装置の他の機構により行う構成であってもよい。   In the above-described embodiment, for example, the image memory control unit 12 is configured to perform the determination process for the (N + 1) th page when the process for the Nth page is started. The timing of performing is not limited to this. The determination process is not limited to being performed by the image memory control unit 12, and may be configured to be performed by another mechanism of the image processing apparatus.

上述の実施の形態においては、記憶領域(共有メモリ)をN頁目及びN+1頁目のデータで共有する場合について説明したが、これに限定されるものではなく、記憶領域の記憶容量をより大きくできる場合には、3頁以上のデータで共有する場合にも本発明を適用することができる。   In the above-described embodiment, the case where the storage area (shared memory) is shared by the data of the Nth page and the N + 1th page has been described. However, the present invention is not limited to this, and the storage capacity of the storage area is increased. If possible, the present invention can also be applied to the case of sharing data of three pages or more.

本発明に係るデジタル複合機の内部構成を示すブロック図である。1 is a block diagram illustrating an internal configuration of a digital multifunction peripheral according to the present invention. 圧縮データ及び伸張データを記憶するためのアドレス設定の概念図である。It is a conceptual diagram of an address setting for storing compressed data and decompressed data. デッドロックが生じる場合の記憶領域の状態を示す説明図である。It is explanatory drawing which shows the state of the storage area when a deadlock arises. 画像メモリ制御部の処理手順を示すタイムチャートである。It is a time chart which shows the process sequence of an image memory control part. 画像メモリの記憶領域のデータ配置を示すタイムチャートである。It is a time chart which shows the data arrangement | positioning of the storage area of an image memory. 画像メモリ制御部の処理手順を示すタイムチャートである。It is a time chart which shows the process sequence of an image memory control part. 画像メモリの記憶領域のデータ配置を示すタイムチャートである。It is a time chart which shows the data arrangement | positioning of the storage area of an image memory. 各データサイズの例を示す図表である。It is a chart which shows the example of each data size. 画像メモリ制御部の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of an image memory control part. 画像メモリ制御部の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of an image memory control part. 従来のデジタル複合機の処理手順を示すタイムチャートである。It is a time chart which shows the process sequence of the conventional digital multifunctional device. 従来のデジタル複合機の画像メモリのデータ配置を示すタイムチャートである。It is a time chart which shows the data arrangement | positioning of the image memory of the conventional digital compound machine.

符号の説明Explanation of symbols

10 画像処理装置
11 画像入力部
12 画像メモリ制御部
13 画像処理部
14 画像データ圧縮部
15 画像メモリ
16 記憶部
17 制御部
18 ROM
19 RAM
20 画像データ伸張部
21 印字画像生成部
30 画像読取部
40 印字処理部
DESCRIPTION OF SYMBOLS 10 Image processing apparatus 11 Image input part 12 Image memory control part 13 Image processing part 14 Image data compression part 15 Image memory 16 Storage part 17 Control part 18 ROM
19 RAM
20 Image Data Expansion Unit 21 Print Image Generation Unit 30 Image Reading Unit 40 Print Processing Unit

Claims (7)

画像データ及び該画像データに所定の処理をして得られた処理後画像データを所定の記憶領域に共に記憶する画像処理装置において、
画像データのデータ量を算出する第1算出手段と、
処理後画像データのデータ量を算出する第2算出手段と、
前記第1算出手段及び第2算出手段で算出されたデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定する設定手段と
を備え、
該設定手段で設定されたアドレスに基づいて、前記画像データを記憶するように構成してあることを特徴とする画像処理装置。
In an image processing apparatus that stores image data and processed image data obtained by performing predetermined processing on the image data together in a predetermined storage area,
First calculation means for calculating the amount of image data;
Second calculating means for calculating the data amount of the processed image data;
Setting means for setting an address for storing the image data based on the data amount calculated by the first calculation means and the second calculation means and the storage capacity of the storage area,
An image processing apparatus configured to store the image data based on an address set by the setting means.
前記記憶領域のうち使用可能な領域を特定する手段を備え、
前記設定手段は、
画像データのデータ量S1、処理後画像データのデータ量S2、及び前記記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、前記手段で特定された領域にアドレスを設定するように構成してあることを特徴とする請求項1に記載の画像処理装置。
Means for specifying an available area of the storage area;
The setting means includes
If the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M satisfy the relationship (M−S1) / 2 ≧ S2, an address is set in the area specified by the means. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured as described above.
前記記憶領域を解放する手段を備え、
前記設定手段は、
(M−S1)/2≧S2の関係を満たさない場合、前記手段で解放された記憶領域の上位アドレス側又は下位アドレス側にアドレスを設定するように構成してあることを特徴とする請求項2に記載の画像処理装置。
Means for releasing the storage area,
The setting means includes
The configuration is such that, when the relationship of (M-S1) / 2 ≧ S2 is not satisfied, an address is set on the upper address side or the lower address side of the storage area released by the means. 2. The image processing apparatus according to 2.
画像データ及び該画像データに所定の処理をして得られた処理後画像データを所定の記憶領域に共に記憶する画像処理装置において、
画像データのデータ量を算出する第1算出手段と、
処理後画像データのデータ量を算出する第2算出手段と、
前記第1算出手段及び第2算出手段で算出されたデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定する設定手段と、
前記記憶領域のうち使用可能な領域を特定する手段と、
前記記憶領域を解放する手段と
を備え、
前記設定手段は、
画像データのデータ量S1、処理後画像データのデータ量S2、及び前記記憶容量Mが、(M−S1)/2≧S2の関係を満たす場合、特定された領域に画像データを記憶するためのアドレスを設定するように構成してあり、
前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域が解放されたときに、処理後画像データを記憶するように構成してあり、
さらに前記設定手段は、
(M−S1)/2≧S2の関係を満たさない場合、所定の記憶領域が解放されたときに、記憶領域の上位アドレス側又は下位アドレス側に画像データを記憶するためのアドレスを設定するように構成してあり、
前記画像データが記憶された場合、該画像データを記憶した記憶領域以外の記憶領域に処理後画像データを記憶するように構成してあることを特徴とする画像処理装置。
In an image processing apparatus that stores image data and processed image data obtained by performing predetermined processing on the image data together in a predetermined storage area,
First calculation means for calculating the amount of image data;
Second calculating means for calculating the data amount of the processed image data;
Setting means for setting an address for storing the image data based on each of the data amounts calculated by the first calculation means and the second calculation means and the storage capacity of the storage area;
Means for identifying an available area of the storage area;
Means for releasing the storage area,
The setting means includes
When the data amount S1 of the image data, the data amount S2 of the processed image data, and the storage capacity M satisfy the relationship of (M−S1) / 2 ≧ S2, the image data is stored in the specified area. Configured to set the address,
When the image data is stored, it is configured to store the processed image data when a storage area other than the storage area storing the image data is released,
Further, the setting means includes
When the relationship of (M−S1) / 2 ≧ S2 is not satisfied, an address for storing image data is set on the upper address side or the lower address side of the storage area when the predetermined storage area is released. Configured
An image processing apparatus configured to store post-processing image data in a storage area other than the storage area in which the image data is stored when the image data is stored.
前記画像データは、
圧縮された画像データであり、
前記処理後画像データは、
圧縮された画像データが伸張された画像データであることを特徴とする請求項1乃至請求項4のいずれか1つに記載の画像処理装置。
The image data is
Compressed image data,
The processed image data is
5. The image processing apparatus according to claim 1, wherein the compressed image data is decompressed image data.
請求項1乃至請求項5のいずれか1つに記載された画像処理装置と、該画像処理装置で処理された画像データに基づき、画像の形成を行う画像形成手段とを備えたことを特徴とする画像形成装置。   An image processing apparatus according to claim 1, and image forming means for forming an image based on image data processed by the image processing apparatus. Image forming apparatus. 画像データ及び該画像データに所定の処理をして得られた処理後画像データを所定の記憶領域に共に記憶する画像処理方法において、
画像データのデータ量を算出し、
処理後画像データのデータ量を算出し、
算出された画像データ及び処理後画像データのデータ量夫々並びに前記記憶領域の記憶容量に基づいて、前記画像データを記憶するためのアドレスを設定し、
設定されたアドレスに基づいて、前記画像データを記憶することを特徴とする画像処理方法。
In an image processing method for storing together image data and post-processing image data obtained by performing predetermined processing on the image data in a predetermined storage area,
Calculate the amount of image data,
Calculate the amount of image data after processing,
Based on the calculated image data and the amount of processed image data, respectively, and the storage capacity of the storage area, an address for storing the image data is set,
An image processing method, wherein the image data is stored based on a set address.
JP2006107682A 2006-04-10 2006-04-10 Image processor, image forming apparatus, and image processing method Pending JP2007280194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006107682A JP2007280194A (en) 2006-04-10 2006-04-10 Image processor, image forming apparatus, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006107682A JP2007280194A (en) 2006-04-10 2006-04-10 Image processor, image forming apparatus, and image processing method

Publications (1)

Publication Number Publication Date
JP2007280194A true JP2007280194A (en) 2007-10-25

Family

ID=38681564

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006107682A Pending JP2007280194A (en) 2006-04-10 2006-04-10 Image processor, image forming apparatus, and image processing method

Country Status (1)

Country Link
JP (1) JP2007280194A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012015653A (en) * 2010-06-29 2012-01-19 Canon Inc Image processing apparatus, control method thereof, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012015653A (en) * 2010-06-29 2012-01-19 Canon Inc Image processing apparatus, control method thereof, and program

Similar Documents

Publication Publication Date Title
JP3581037B2 (en) Image processing device
US7813565B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP4378197B2 (en) Image information device
JP4450810B2 (en) Image processing apparatus and image forming apparatus
JP2007280194A (en) Image processor, image forming apparatus, and image processing method
JP2002140286A (en) Information processing device and dma transfer method
JP4223049B2 (en) Image processing apparatus and image forming apparatus
JP2009055226A (en) Image controller
JP2005065043A (en) Data processor
JP5084688B2 (en) Image forming apparatus
JP2002108584A (en) Image processing apparatus and image forming device
JP4359047B2 (en) Image forming apparatus
JP2005079646A (en) Image forming apparatus
JP4133394B2 (en) Image forming apparatus
JP5132696B2 (en) MEMORY CONTROL DEVICE, IMAGE FORMING DEVICE, AND MEMORY CONTROL METHOD
JP2003198815A (en) Image processing apparatus
JP4061200B2 (en) Image forming system and image forming apparatus
JP4076224B2 (en) Image forming apparatus
JP5867566B1 (en) Printing control device, printing system
JP2009038771A (en) Image processor and image processing method
JP2000069257A (en) Image processor
JP2009055205A (en) Image forming device, image data processing method, and program
JP2006001195A (en) Image formation device
JP2004222090A (en) Image forming apparatus
JP2002244994A (en) Image forming device