JP4962359B2 - Print control apparatus, print control method, and print control program - Google Patents

Print control apparatus, print control method, and print control program Download PDF

Info

Publication number
JP4962359B2
JP4962359B2 JP2008055895A JP2008055895A JP4962359B2 JP 4962359 B2 JP4962359 B2 JP 4962359B2 JP 2008055895 A JP2008055895 A JP 2008055895A JP 2008055895 A JP2008055895 A JP 2008055895A JP 4962359 B2 JP4962359 B2 JP 4962359B2
Authority
JP
Japan
Prior art keywords
size
conversion data
memory area
memory
data
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.)
Expired - Fee Related
Application number
JP2008055895A
Other languages
Japanese (ja)
Other versions
JP2009213006A (en
Inventor
アリエサント ハルタマン
朋裕 高橋
彰 斉藤
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2008055895A priority Critical patent/JP4962359B2/en
Publication of JP2009213006A publication Critical patent/JP2009213006A/en
Application granted granted Critical
Publication of JP4962359B2 publication Critical patent/JP4962359B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Input (AREA)
  • Storing Facsimile Image Data (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は、ADFを備える印刷装置を制御する印刷制御装置、印刷制御方法および印刷
制御プログラムに関する。
The present invention relates to a print control apparatus, a print control method, and a print control program for controlling a printing apparatus including an ADF.

従来、1頁の原稿を複数部複写する場合、原稿を読み取って当該原稿を示す画像データ
をメモリに蓄積し当該メモリに蓄積されている画像データを用いて印刷を実行する印刷装
置が知られている(例えば特許文献1)。また、ADF(Auto Document Feeder)機構を
備え、複数頁の原稿を読み取り複数部に複写する(ソートコピー)機能を備える印刷装置
も知られている。
特開2004−128895号公報
2. Description of the Related Art Conventionally, when copying a single page of a plurality of copies, there is known a printing apparatus that reads a document, stores image data indicating the document in a memory, and executes printing using the image data stored in the memory. (For example, Patent Document 1). There is also known a printing apparatus that includes an ADF (Auto Document Feeder) mechanism and has a function of reading a document of a plurality of pages and copying it to a plurality of copies (sort copy).
JP 2004-128895 A

従来の技術においては、ADF機構を用いてソートコピー機能を実現する場合に、限ら
れたサイズのメモリ内に、読み取った複数頁に対応する画像データを効率よく蓄積するこ
とができなかった。そのため画像データ蓄積のためのメモリのサイズを増大させることな
く、一度にソートコピーすることができる最大頁数を増やすことができなかった。
画像データをなんらかの圧縮変換方式で変換してメモリに蓄積すれば、変換せずにメモ
リに蓄積する場合よりも蓄積可能頁数は増加する。しかし、同一の画像データであっても
異なる方式で変換すれば変換後のサイズは異なり、また、どの方式で変換すると変換後の
データサイズが最も小さくなるかは画像の特徴に依存する。原稿載置部に置かれた任意の
原稿画像の特徴を印刷装置が認識するために一旦画像全体を読み取り、画像の特徴を把握
した上で適切な変換方式で変換するという手法が考えられるが、それでは原稿読み取りか
ら印刷完了までの時間が長くなる。
本発明は、上記課題にかんがみてなされたもので、ADF機構を備えたメモリ資源が乏
しい印刷装置において、原稿画像の読み取りから印刷完了までの時間を長くすることなく
、読み取った複数頁の画像に対応するデータを効率よくメモリに蓄積することを目的とす
る。
In the conventional technique, when the sort copy function is realized using the ADF mechanism, the image data corresponding to a plurality of read pages cannot be efficiently stored in a limited size memory. Therefore, the maximum number of pages that can be sorted and copied at one time cannot be increased without increasing the size of the memory for storing image data.
If the image data is converted by some compression conversion method and stored in the memory, the number of pages that can be stored increases as compared with the case of storing in the memory without conversion. However, even if the same image data is converted by a different method, the size after conversion is different, and which method is used to convert the data size after conversion is the smallest depends on the characteristics of the image. In order for the printing apparatus to recognize the characteristics of an arbitrary document image placed on the document placement section, a method of reading the entire image once and grasping the characteristics of the image and converting it with an appropriate conversion method can be considered. As a result, the time from reading the original to completion of printing becomes longer.
The present invention has been made in view of the above problems. In a printing apparatus having an ADF mechanism and lacking memory resources, an image of a plurality of pages read can be obtained without increasing the time from reading of a document image to completion of printing. The object is to efficiently store corresponding data in a memory.

上記の目的を達成するため、本発明においては、複数の頁の画像を示す画像データを前
記頁毎に第一方式および第二方式で変換した第一変換データおよび第二変換データのそれ
ぞれを、前記第一変換データの最大サイズとして予め決められている第一サイズの第一メ
モリ領域と、前記第一サイズより小さいサイズとして予め決められている第二サイズの第
二メモリ領域とのそれぞれに蓄積させる。そして前記第二変換データのサイズが前記第二
サイズを超える場合は前記第二変換データを破棄して少なくとも残り1個以上の前記第一
メモリ領域を前記メモリに確保し、前記第二変換データのサイズが前記第二サイズを超え
ない場合は前記第一変換データを破棄して少なくとも残り1個以上の前記第二メモリ領域
を前記メモリに確保する。その後、前記メモリに蓄積されている第一変換データまたは/
および第二変換データに基づいて印刷部に印刷を実行させる。
In order to achieve the above object, in the present invention, each of the first converted data and the second converted data obtained by converting the image data indicating the images of a plurality of pages by the first method and the second method for each page, Accumulated in each of a first memory area of a first size predetermined as the maximum size of the first conversion data and a second memory area of a second size predetermined as a size smaller than the first size Let When the size of the second conversion data exceeds the second size, the second conversion data is discarded and at least one remaining first memory area is secured in the memory, and the second conversion data When the size does not exceed the second size, the first conversion data is discarded and at least one remaining second memory area is secured in the memory. Thereafter, the first conversion data stored in the memory or /
The printing unit is caused to execute printing based on the second conversion data.

この方法を複数回繰り返すことにより、メモリ内に複数頁の画像データに対応する変換
データを効率よく蓄積することができる。すなわち、1頁目の画像を示す画像データを第
一方式で変換した第一変換データと第二方式で変換した第二変換データとを取得してそれ
ぞれメモリ内の別々の領域に蓄積する。第二変換データを破棄するか否かを規定する閾値
としての第二サイズを第二変換データが超える場合は、第二変換データを破棄し、第一変
換データをメモリに残存させ、2頁目の第一変換データと第二変換データを蓄積するため
のメモリ領域を確保する。そして2頁目の第一変換データと第二変換データも同様に上述
で確保されたメモリ領域に蓄積し、例えば2頁目の第二変換データが第二サイズを超えな
い場合は、今度は2頁目の第一変換データを破棄して第二変換データをメモリに残存させ
る。残存する第二変換データは第二サイズを超えないサイズであり、第二サイズは第一サ
イズより小さいので、この例の場合、この時点でメモリに残存している2頁分の画像を示
すデータ(1頁目の第一変換データと2頁目の第二変換データ)の蓄積に使用されるメモ
リ領域のサイズは、1頁目2頁目とも第一変換データで蓄積することによって使用される
メモリ領域のサイズと比較して小さい。なお、ここで「確保」とは、第一変換データまた
は第二変換データを蓄積するためのメモリ領域を割り当てることを意味し、後述する「解
放」とはその割り当てを解くことを意味する。また「破棄」とは、次頁の変換データで上
書きしてもよい領域にすることを意味する。
By repeating this method a plurality of times, conversion data corresponding to a plurality of pages of image data can be efficiently stored in the memory. That is, the first conversion data obtained by converting the image data indicating the image of the first page by the first method and the second conversion data converted by the second method are acquired and stored in different areas in the memory. If the second conversion data exceeds the second size as a threshold for determining whether or not to discard the second conversion data, the second conversion data is discarded and the first conversion data is left in the memory. A memory area for storing the first conversion data and the second conversion data is secured. Similarly, the first conversion data and the second conversion data on the second page are also stored in the memory area secured as described above. For example, if the second conversion data on the second page does not exceed the second size, this time, The first conversion data of the page is discarded and the second conversion data remains in the memory. The remaining second conversion data is a size that does not exceed the second size, and the second size is smaller than the first size. In this example, data indicating the image of two pages remaining in the memory at this time The size of the memory area used for storing (first conversion data on the first page and second conversion data on the second page) is used by storing the first conversion data on both the first page and the second page. Small compared to the size of the memory area. Here, “reservation” means that a memory area for storing the first conversion data or the second conversion data is allocated, and “release” described later means that the allocation is released. “Discard” means to make an area that can be overwritten with the conversion data of the next page.

ところで、第一サイズは第一方式によって画像データを変換する場合の最大サイズであ
り、第一変換データは第一サイズ(第二サイズより大きい)を超えない。一方、第二変換
データは第二サイズを超えることもあれば超えないこともある。すなわち、第二変換デー
タは第二サイズを超えない可能性と、第二サイズを超えてかつ第一サイズを超えない可能
性と、さらに、第一サイズをも超える可能性とがある(第二変換データがとりうる最大サ
イズが第一サイズより大きいという前提があるため)。そのため、前述の例においてメモ
リに残存している2頁分の画像を示すデータ(1頁目の第一変換データと2頁目の第二変
換データ)のサイズは、1頁目2頁目とも第二変換データで残存する場合と比較して小さ
くなる可能性もあれば大きくなる可能性もある。1頁目の画像データを第二方式で変換し
た場合に第一サイズをも超える可能性があるのであれば、確実に第一サイズに収まる第一
方式で変換した第一変換データを蓄積しておく方が、少ないメモリ領域でデータを蓄積で
きる。
以上説明したように、変換データを確実に第一サイズ以下で、なおかつ、第二サイズ以
下に変換出来る場合は第二サイズ以下の変換データとしてメモリに蓄積しておくことがで
きるので、本発明の方法によるデータの蓄積および破棄を繰り返すことにより、より多く
の画像データに対応する変換データを蓄積することができる。
By the way, the first size is the maximum size when image data is converted by the first method, and the first converted data does not exceed the first size (larger than the second size). On the other hand, the second conversion data may or may not exceed the second size. That is, the second conversion data may not exceed the second size, may exceed the second size and may not exceed the first size, and may further exceed the first size (second (Because there is a premise that the maximum size that conversion data can take is larger than the first size). Therefore, the size of the data (the first conversion data on the first page and the second conversion data on the second page) indicating the image of two pages remaining in the memory in the above example is the same for both the first page and the second page. There is a possibility that it will be smaller or larger than the case where it remains in the second conversion data. If there is a possibility of exceeding the first size when the image data of the first page is converted by the second method, the first conversion data converted by the first method that surely fits in the first size is stored. The data can be stored in a smaller memory area.
As described above, the conversion data can be reliably stored in the memory as conversion data of the second size or less when the conversion data can be reliably converted to the first size or less and also to the second size or less. By repeatedly accumulating and discarding data according to the method, it is possible to accumulate conversion data corresponding to more image data.

変換データ取得手段においては、原稿載置部に置かれた複数の頁からなる原稿が画像読
取部によって頁毎に順に読み取られ、読み取られた画像データが画像データ変換部によっ
て第一方式および第二方式で変換した変換データである第一変換データおよび第二変換デ
ータを、頁毎に取得することができればよい。なお、頁毎に取得するとは、頁に対応する
変換データを取得するという意味であり、1頁分の変換が完了してから当該変換データを
取得するという意味ではない。画像データ変換部において、1頁分の画像データに対して
二種類の変換方式にて並列的に変換され、画像データ取得手段において、そのうち変換が
完了した分の第一変換データと第二変換データとが逐次取得されることを意味している。
すなわち少なくともいずれか一方の変換データの取得が完了する前に他方の変換データの
取得が開始される。これは画像読み取りから印刷完了までの時間を短縮するためである。
In the conversion data acquisition means, a document composed of a plurality of pages placed on the document placement unit is sequentially read page by page by the image reading unit, and the read image data is read by the image data conversion unit by the first method and the second method. It is only necessary that the first conversion data and the second conversion data, which are conversion data converted by the method, can be acquired for each page. The acquisition for each page means that conversion data corresponding to the page is acquired, and does not mean that the conversion data is acquired after conversion for one page is completed. In the image data converter, the image data for one page is converted in parallel by two types of conversion methods, and the image data acquisition means first conversion data and second conversion data corresponding to the conversion completed. And are acquired sequentially.
That is, the acquisition of the other conversion data is started before the acquisition of at least one of the conversion data is completed. This is to shorten the time from image reading to printing completion.

本発明におけるメモリは、少なくとも第一サイズと第二サイズを加えたサイズ以上の容
量を有している。ソートコピーによる印刷制御処理を開始させる前の状態において少なく
ともそれぞれ1個以上の第一メモリ領域(第一サイズ)および第二メモリ領域(第二サイ
ズ)が確保される。
The memory according to the present invention has a capacity that is at least the size of the first size plus the second size. At least one first memory area (first size) and second memory area (second size) are secured in a state before starting the print control process by sort copy.

変換データ蓄積制御手段は、変換データ取得手段において取得された第一変換データお
よび第二変換データのそれぞれを第一メモリ領域および第二メモリ領域のそれぞれに蓄積
させることができればよい。すなわち、第一メモリ領域あるいは第二メモリ領域に、それ
ぞれに対応する変換データを蓄積させる。なお、第二変換データを取得しつつ蓄積してい
るときに、第二変換データのサイズが第二サイズを超えることが判明した場合は、第二変
換データの蓄積を終了する。すなわち現在蓄積対象としている第二メモリ領域を超えて第
二変換データを蓄積させることはしない。変換データ蓄積制御手段においても変換データ
取得手段と同様に少なくともいずれか一方の変換データの取得が完了する前に他方の変換
データの蓄積を開始する。これは、一方の変換データの蓄積が終了してから他方の変換デ
ータの蓄積を実施する場合に比べて、二種類の蓄積データをメモリに蓄積するのに要する
時間を短縮できるからである。
The conversion data accumulation control means only needs to be able to accumulate the first conversion data and the second conversion data acquired by the conversion data acquisition means in the first memory area and the second memory area, respectively. That is, the corresponding conversion data is accumulated in the first memory area or the second memory area. In addition, when it is found that the size of the second conversion data exceeds the second size while acquiring the second conversion data, the storage of the second conversion data is ended. That is, the second conversion data is not accumulated beyond the second memory area currently being accumulated. Similarly to the conversion data acquisition unit, the conversion data storage control unit starts to store the other conversion data before the acquisition of at least one conversion data is completed. This is because the time required to store the two types of stored data in the memory can be shortened as compared with the case where the storage of the other converted data is performed after the storage of one converted data is completed.

メモリ領域管理手段は、第二変換データのサイズが第二サイズを超える場合は、第二メ
モリ領域に蓄積された第二変換データを破棄して、少なくとも残り1個以上の第一メモリ
領域を確保して、次頁分の第一変換データおよび第二変換データの蓄積に備える。また、
第二変換データのサイズが第二サイズを超えない場合は、第一メモリ領域に蓄積された第
一変換データを破棄して、少なくとも残り1個以上の第二メモリ領域を確保して、次頁分
の第一変換データおよび第二変換データの蓄積に備える。
If the size of the second conversion data exceeds the second size, the memory area management means discards the second conversion data stored in the second memory area and secures at least one remaining first memory area In preparation for the accumulation of the first conversion data and the second conversion data for the next page. Also,
If the size of the second conversion data does not exceed the second size, discard the first conversion data stored in the first memory area, secure at least one remaining second memory area, and To prepare for the accumulation of the first conversion data and the second conversion data.

印刷指示手段は、メモリに蓄積されている第一変換データまたは/および第二変換デー
タに基づいて印刷部に印刷を実行させることができればよい。すなわち、上述の変換デー
タ取得手段、変換データ蓄積制御手段およびメモリ領域管理手段による、変換データの取
得、蓄積および破棄を繰り返すことによってメモリに残存している変換データを用いて印
刷を実行させる。取得した複数頁分の第二変換データのそれぞれが全て第二サイズを超え
るのであれば、メモリに残存し印刷に使用されるのは全て第一変換データである。また、
取得した複数頁分の第二変換データのそれぞれが全て第二サイズを超えないのであれば、
メモリに残存し印刷に使用されるのは全て第二変換データである。複数頁分の第二変換デ
ータのそれぞれが第二サイズを超える頁もあれば超えない頁もある場合は、メモリには第
一変換データとして蓄積される頁と第二変換データとして蓄積される頁とが存在すること
を意味している。
The print instructing unit only needs to allow the printing unit to perform printing based on the first conversion data and / or the second conversion data stored in the memory. That is, printing is executed using the conversion data remaining in the memory by repeatedly acquiring, storing, and discarding the conversion data by the conversion data acquisition means, the conversion data accumulation control means, and the memory area management means. If each of the acquired second conversion data for a plurality of pages exceeds the second size, the first conversion data remains in the memory and is used for printing. Also,
If each of the acquired second conversion data for multiple pages does not exceed the second size,
It is the second conversion data that remains in the memory and is used for printing. If some of the second conversion data for a plurality of pages has a page exceeding the second size and some pages do not exceed the page, pages stored as first conversion data and pages stored as second conversion data in the memory It means that and exist.

さらに、本発明において、前記メモリは、予め確保されているN(Nは2以上)個の第
一メモリ領域と1個の第二メモリ領域とから構成されていてもよい。その場合、メモリ領
域管理手段は、第二変換データが第二サイズを超えない場合であって第一メモリ領域が残
り2個以上確保されていればそのうち1個の第一メモリ領域を解放し解放されたメモリ領
域に第二メモリ領域を1個確保してもよい。また、第二変換データが第二サイズを超える
場合であって第一メモリ領域が1個も確保されておらずかつメモリに第一サイズの解放さ
れたメモリ領域が存在すれば第一メモリ領域を1個確保してもよい。
このようにすると、頁毎の画像データが第一変換データまたは第二変換データのいずれ
で蓄積されてもN枚以上の頁に対応する変換データをメモリに蓄積することができる。そ
の結果、一度にソートコピーできる原稿の最大頁数は少なくともN頁であることを保証す
ることができ、かつなるべく多くの頁に対応する変換データを蓄積することができる。
Furthermore, in the present invention, the memory may be composed of N (N is 2 or more) first memory areas and one second memory area reserved in advance. In that case, if the second conversion data does not exceed the second size and the remaining two or more first memory areas are secured, the memory area management means releases and releases one of the first memory areas. One second memory area may be secured in the allocated memory area. In addition, if the second conversion data exceeds the second size and no first memory area is secured and the memory area having the released first size exists in the memory, the first memory area is changed. One may be secured.
In this way, conversion data corresponding to N or more pages can be stored in the memory regardless of whether the image data for each page is stored as the first conversion data or the second conversion data. As a result, it is possible to ensure that the maximum number of original pages that can be sorted and copied at the same time is at least N, and it is possible to accumulate conversion data corresponding to as many pages as possible.

さらに、本発明において、前記印刷指示手段は、第一メモリ領域または第二メモリ領域
のいずれかが確保できなくなったとき、印刷部に印刷を実行させてもよい。
このようにすると、より多くの頁からなる原稿をソートコピーすることができうる。例
えば、前述のようにメモリがN個の第一メモリ領域と1個の第二メモリ領域とからなると
き、全ての頁が第一変換データとして蓄積される場合を除けば、N+1頁以上の原稿を一
度にメモリに蓄積し、そして蓄積された頁の印刷を行うことができる。
Furthermore, in the present invention, the print instructing unit may cause the printing unit to perform printing when either the first memory area or the second memory area cannot be secured.
In this way, it is possible to sort and copy a document composed of more pages. For example, when the memory is composed of N first memory areas and one second memory area as described above, an original of N + 1 pages or more is provided except that all pages are stored as first conversion data. Can be stored in memory at once and the stored pages can be printed.

さらに本発明において、第一変換データは、JPEG符号化されたデータであってもよ
い。第一方式は、変換後のデータの最大サイズを特定可能であれば、JPEG符号化以外
の変換方式でもよい。
Further, in the present invention, the first conversion data may be JPEG encoded data. The first method may be a conversion method other than JPEG encoding as long as the maximum size of the converted data can be specified.

さらに本発明において、第二変換データは、ランレングス符号化されたデータであって
もよい。第二方式は、同じ解像度の画像を変換した場合の変換後のデータの最大サイズが
第一方式による変換の最大サイズより大きくなりうるものであれば、ランレングス符号化
以外の変換方式でもよい。
Furthermore, in the present invention, the second conversion data may be run-length encoded data. The second method may be a conversion method other than run-length encoding as long as the maximum size of the converted data when images of the same resolution are converted can be larger than the maximum size of conversion by the first method.

さらに本発明において、前記第二メモリ領域は、前記メモリ内においてより小さいアド
レスから順に確保されてもよく、また、前記第一メモリ領域は、前記メモリ内においてよ
り大きいアドレスから順に確保されてもよい。この構成において、メモリ領域管理手段は
、第二メモリ領域に蓄積が完了した第二変換データのサイズが第二サイズに満たない場合
、第二メモリ領域内の未使用領域を含む第二メモリ領域を確保するようにしてもよい。
すなわち、n頁目の第二変換データを保存するために確保されていた第二メモリ領域の
未使用領域を含んだ第二サイズのメモリ領域をn+1頁目以降の第二変換データを蓄積す
るために確保するので、より多くの頁に対応する第二変換データをメモリのアドレスの小
さい方から順に格納することができる。この効果は、第二メモリ領域内の未使用領域が第
一メモリ領域内の未使用領域よりも統計的に多くなる場合に、より効果を奏する。
Further, in the present invention, the second memory area may be secured in order from a smaller address in the memory, and the first memory area may be secured in order from a larger address in the memory. . In this configuration, when the size of the second conversion data that has been accumulated in the second memory area is less than the second size, the memory area management means creates a second memory area including an unused area in the second memory area. It may be ensured.
That is, in order to store the second conversion data from the (n + 1) th page in the second size memory area including the unused area of the second memory area reserved for storing the second conversion data of the nth page. Therefore, the second conversion data corresponding to more pages can be stored in order from the smallest memory address. This effect is more effective when the unused area in the second memory area is statistically larger than the unused area in the first memory area.

さらに、本発明のように、頁の画像に対応する第一変換データおよび第二変換データの
それぞれを第一メモリ領域および第二メモリ領域のそれぞれに蓄積させ、第二変換データ
のサイズが第二サイズを超える場合は第二変換データを破棄して少なくとも残り1個以上
の第一メモリ領域を前記メモリに確保し、第二変換データのサイズが第二サイズを超えな
い場合は第一変換データを破棄して少なくとも残り1個以上の第二メモリ領域をメモリに
確保し、メモリに蓄積されている第一変換データまたは/および第二変換データに基づい
て印刷部に印刷を実行させる手法は、プログラムや方法としても適用可能である。また、
以上のような印刷装置、プログラム、方法は、単独の印刷装置として実現される場合もあ
れば、複数の装置を組み合わせることによって実現される場合もあり、各種の態様を含む
ものである。例えば、コンピュータと印刷装置が共同することによって本発明にかかる印
刷装置や方法、プログラムを提供することが可能である。また、一部がソフトウェアであ
り一部がハードウェアであったりするなど、適宜、変更可能である。さらに、印刷装置を
制御するプログラムの記録媒体としても発明は成立する。むろん、そのソフトウェアの記
録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発さ
れるいかなる記録媒体においても全く同様に考えることができる。
Further, as in the present invention, the first conversion data and the second conversion data corresponding to the image of the page are accumulated in the first memory area and the second memory area, respectively, and the size of the second conversion data is the second size. If it exceeds the size, the second conversion data is discarded and at least one remaining first memory area is secured in the memory. If the size of the second conversion data does not exceed the second size, the first conversion data is stored. A method for discarding and securing at least one remaining second memory area in the memory and causing the printing unit to execute printing based on the first conversion data and / or the second conversion data stored in the memory is a program. It is also applicable as a method. Also,
The printing apparatus, program, and method as described above may be implemented as a single printing apparatus or may be implemented by combining a plurality of apparatuses, and include various aspects. For example, it is possible to provide a printing apparatus, method, and program according to the present invention by cooperating a computer and a printing apparatus. Further, some changes may be made as appropriate, such as a part of software and a part of hardware. Furthermore, the invention is also established as a recording medium for a program for controlling the printing apparatus. Of course, the software recording medium may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium to be developed in the future.

ここでは、下記の順序に従って本発明の実施の形態について説明する。
(1)マルチファンクションプリンタの構成:
(2)印刷制御処理:
(2−1)動作例:
(3)他の実施形態:
Here, embodiments of the present invention will be described in the following order.
(1) Multifunction printer configuration:
(2) Print control processing:
(2-1) Example of operation:
(3) Other embodiments:

(1)マルチファンクションプリンタの構成:
図1は、本発明にかかる印刷制御装置を含むマルチファンクションプリンタ10の概略
構成を示すブロック図である。マルチファンクションプリンタ10は、RAM,ROM,
CPU等を備える制御部20を備えており、ROMに記録されたプログラムを制御部20
で実行することができる。本実施形態においては、このプログラムの一つとして印刷制御
プログラム21を実行可能であり、当該印刷制御プログラム21はその機能の一つとして
複数頁からなる原稿を読み取って複数部印刷するための制御を行う機能(ソートコピー機
能)を備えている。
(1) Multifunction printer configuration:
FIG. 1 is a block diagram showing a schematic configuration of a multifunction printer 10 including a print control apparatus according to the present invention. The multifunction printer 10 includes a RAM, a ROM,
A control unit 20 including a CPU or the like is provided, and a program recorded in the ROM is transferred to the control unit 20.
Can be done with. In this embodiment, the print control program 21 can be executed as one of the programs, and the print control program 21 performs control for reading a plurality of pages and printing a plurality of copies as one of the functions. A function to perform (sort copy function) is provided.

マルチファンクションプリンタ10には、ソートコピーの部数を入力するためのボタン
や、スタートボタンなどを含む各種のボタンが供えられており、それらボタンに対してユ
ーザが行った操作内容に応じた処理が実行される。画像読取部40は、図示しない原稿載
置部に積載された複数頁からなる原稿を1頁ずつ搬送するADF部、ADF部により搬送
された原稿を光学的に読み取るラインイメージセンサなどを備える。ラインイメージセン
サが出力した画像データは、ラインバッファ41に一時的に蓄積される。ラインバッファ
41に蓄積される画像データは例えばRGB表色系で表されるデータである。
The multi-function printer 10 is provided with various buttons including a button for inputting the number of copies for sorting and a start button, and processing corresponding to the operation performed by the user is executed for these buttons. Is done. The image reading unit 40 includes an ADF unit that conveys a plurality of pages of documents stacked on a document placing unit (not shown) one page at a time, a line image sensor that optically reads the document conveyed by the ADF unit, and the like. The image data output from the line image sensor is temporarily stored in the line buffer 41. The image data stored in the line buffer 41 is, for example, data expressed in the RGB color system.

画像データ変換部42は、ラインバッファ41に蓄積された画像データを、JPEGお
よびランレングスの二種類の変換方式により変換する。JPEG符号化は請求項に記載の
第一方式に相当し、ランレングス符号化は請求項に記載に第二方式に相当する。したがっ
てこの場合、請求項に記載の第一変換データはJPEG符号化データであり、第二変換デ
ータはランレングス符号化データである。画像データ変換部42による二種類の変換方式
での画像データの変換は、1頁分の画像データがラインバッファ41へ蓄積完了するまで
にそれぞれ少なくとも開始される。すなわち、画像読取部40による画像データの蓄積と
画像データ変換部42による画像データの変換は、逐次的に行われるのではなくて一部並
列的に行われる。
The image data conversion unit 42 converts the image data stored in the line buffer 41 using two types of conversion methods, JPEG and run length. JPEG encoding corresponds to the first method described in the claims, and run-length encoding corresponds to the second method described in the claims. Therefore, in this case, the first conversion data described in the claims is JPEG encoded data, and the second conversion data is run-length encoded data. The conversion of the image data by the two types of conversion methods by the image data conversion unit 42 is started at least before the image data for one page is completely stored in the line buffer 41. That is, the accumulation of the image data by the image reading unit 40 and the conversion of the image data by the image data conversion unit 42 are not performed sequentially but partially in parallel.

印刷制御プログラム21は、ソートコピー機能を実現するために、変換データ取得部2
1aと変換データバッファ22と変換データ蓄積制御部21bとメモリ領域管理部21c
と印刷指示部21dとを備える。変換データバッファ22は、請求項に記載のメモリに相
当する。変換データ取得部21aは、画像データ変換部42によって変換されたJPEG
符号化データと、ランレングス符号化データとを取得する機能を制御部20に実現させる
The print control program 21 uses the conversion data acquisition unit 2 to realize the sort copy function.
1a, conversion data buffer 22, conversion data accumulation control unit 21b, and memory area management unit 21c
And a print instruction unit 21d. The conversion data buffer 22 corresponds to the memory described in the claims. The conversion data acquisition unit 21a uses the JPEG converted by the image data conversion unit 42.
The control unit 20 is made to realize a function of acquiring encoded data and run-length encoded data.

図2は、変換データバッファ22を示す模式図である。図2においてFIXで表される
領域はそれぞれ第一メモリ領域を、RNLで表される領域は第二メモリ領域を示している
。1個の第一メモリ領域のサイズ(第一サイズ)は、1頁分の画像をJPEG符号化した
場合のJPEG符号化データの最大サイズとして設計されている。1個の第二メモリ領域
のサイズ(第二サイズ)は、1頁分の画像をランレングス符号化した場合に、ランレング
ス符号化データがとりうる最大サイズより小さく、なおかつ第一サイズよりも小さいサイ
ズとして予め設計されている。なお、ランレングス符号化データのサイズは、第二サイズ
以内となる場合もある。
FIG. 2 is a schematic diagram showing the conversion data buffer 22. In FIG. 2, the area indicated by FIX indicates the first memory area, and the area indicated by RNL indicates the second memory area. The size (first size) of one first memory area is designed as the maximum size of JPEG encoded data when an image for one page is JPEG encoded. The size (second size) of one second memory area is smaller than the maximum size that run-length encoded data can take when an image for one page is run-length encoded, and smaller than the first size. Pre-designed as a size. Note that the run-length encoded data size may be within the second size.

なお、第一サイズおよび第二サイズは、選択されている印刷品質を実現するための読み
取り解像度や圧縮率などの条件に応じて異なるが、同一条件において第一サイズおよび第
二サイズはそれぞれ一意に設定される。例えばある条件において第一サイズが5メガバイ
トであるとき、第二サイズは1メガバイトに設定される。
The first size and the second size differ depending on the conditions such as the reading resolution and the compression rate for realizing the selected print quality, but the first size and the second size are uniquely determined under the same conditions. Is set. For example, when the first size is 5 megabytes under certain conditions, the second size is set to 1 megabyte.

変換データ蓄積制御部21bは、変換データ取得部21aにおいて取得されたJPEG
符号化データとランレングス符号化データのそれぞれを第一メモリ領域および第二メモリ
領域のそれぞれに蓄積させる機能を制御部20に実現させるモジュールである。ランレン
グス符号化データを取得しつつ第二メモリ領域に蓄積しているときに、ランレングス符号
化データのサイズが第二サイズを超えることが判明した場合は、蓄積を終了する。すなわ
ち現在蓄積対象としている第二メモリ領域を超えてランレングス符号化データを蓄積させ
ることはせず、第二サイズを超える分のランレングス符号化データはメモリに蓄積しない
The conversion data accumulation control unit 21b receives the JPEG acquired by the conversion data acquisition unit 21a.
This is a module that causes the control unit 20 to realize the function of storing the encoded data and the run-length encoded data in the first memory area and the second memory area, respectively. If the run-length encoded data is stored in the second memory area while being acquired, and if it is found that the run-length encoded data exceeds the second size, the storage ends. In other words, the run-length encoded data is not accumulated beyond the second memory area that is currently being accumulated, and the run-length encoded data that exceeds the second size is not accumulated in the memory.

変換データ取得部21aおよび変換データ蓄積制御部21bにおいては、画像データ変
換部42が出力するJPEG符号化データとランレングス符号化データを逐次取得し、蓄
積する。少なくともいずれか一方の取得および蓄積が完了する前に他方の取得および蓄積
が開始される。これは、一方の変換データの蓄積が終了してから他方の変換データの蓄積
を実施する場合に比べて、二種類の蓄積データをメモリに蓄積するのに要する時間を短縮
できるからである。
In the conversion data acquisition unit 21a and the conversion data accumulation control unit 21b, JPEG encoded data and run-length encoded data output from the image data conversion unit 42 are sequentially acquired and stored. The acquisition and storage of the other is started before at least one of the acquisition and storage is completed. This is because the time required to store the two types of stored data in the memory can be shortened as compared with the case where the storage of the other converted data is performed after the storage of one converted data is completed.

メモリ領域管理部21cは、ランレングス符号化データのサイズが第二サイズを超える
場合は、第二メモリ領域に蓄積されたランレングス符号化データを破棄して、少なくとも
残り1個以上の第一メモリ領域を確保して、次頁分のJPEG符号化データおよびランレ
ングス符号化データの蓄積に備える機能を制御部20に実現させるモジュールである。ま
た、ランレングス符号化データのサイズが第二サイズを超えない場合は、第一メモリ領域
に蓄積されたJPEG符号化データを破棄して、少なくとも残り1個以上の第二メモリ領
域を確保して、次頁分のJPEG符号化データおよびランレングス符号化データの蓄積に
備える機能を制御部20に実現させるモジュールである。なお、ここで「確保」とは、第
一変換データまたは第二変換データを蓄積するためのメモリ領域を割り当てることを意味
し、後述する「解放」とはその割り当てを解くことを意味する。また「破棄」とは、次頁
の変換データで上書きしてもよい領域にすることを意味する。
If the size of the run-length encoded data exceeds the second size, the memory area management unit 21c discards the run-length encoded data stored in the second memory area, and at least the remaining one or more first memories This is a module that secures an area and causes the control unit 20 to realize a function for storing JPEG encoded data and run-length encoded data for the next page. If the run-length encoded data size does not exceed the second size, discard the JPEG encoded data stored in the first memory area and secure at least one remaining second memory area. This is a module for causing the control unit 20 to realize a function for storing JPEG encoded data and run length encoded data for the next page. Here, “reservation” means that a memory area for storing the first conversion data or the second conversion data is allocated, and “release” described later means that the allocation is released. “Discard” means to make an area that can be overwritten with the conversion data of the next page.

印刷指示部21dは、メモリに蓄積されているJPEG符号化データまたは/およびラ
ンレングス符号化データに基づいて印刷部43に印刷を実行させる機能を制御部20に実
現させるモジュールである。すなわち、上述の変換データ取得部21a、変換データ蓄積
制御部21bおよびメモリ領域管理部21cによる、変換データの取得、蓄積および破棄
を繰り返すことによって変換データバッファ22に残存しているJPEG符号化データま
たは/およびランレングス符号化データを用いて印刷部43に印刷を実行させる。
The print instruction unit 21d is a module that causes the control unit 20 to realize a function of causing the printing unit 43 to execute printing based on JPEG encoded data or / and run-length encoded data stored in the memory. That is, the JPEG encoded data remaining in the conversion data buffer 22 by repeating the acquisition, storage, and discarding of the conversion data by the conversion data acquisition unit 21a, the conversion data accumulation control unit 21b, and the memory area management unit 21c. / And causes the printing unit 43 to perform printing using the run-length encoded data.

印刷部43は、印刷媒体を搬送するための機構を備えた搬送部と、搬送方向と直行する
方向に往復動するキャリッジと、キャリッジに搭載され各色のインクを内包するインクカ
ートリッジと印刷ヘッドと、を備えるインクジェット式のプリンタとして構成されている
。印刷部43は、印刷指示部21dから印刷指示を受けると、変換データバッファ22に
蓄積されているJPEG符号化データまたは/およびランレングス符号化データをそれぞ
れ復号化し、復号化した画像データからCMYK等のインク表色系への色変換処理、ハー
フトーン処理、並べ替え処理等を経て生成された印刷データに基づいて印刷が実行される

以上、マルチファンクションプリンタ10の構成を説明した。
The printing unit 43 includes a transport unit having a mechanism for transporting a print medium, a carriage that reciprocates in a direction perpendicular to the transport direction, an ink cartridge that is mounted on the carriage and contains ink of each color, and a print head. It is comprised as an ink-jet printer provided with. When receiving the print instruction from the print instruction unit 21d, the printing unit 43 decodes the JPEG encoded data and / or run-length encoded data stored in the converted data buffer 22, respectively, and CMYK or the like from the decoded image data. The printing is executed based on the print data generated through the color conversion process to the ink color system, the halftone process, the rearrangement process, and the like.
The configuration of the multifunction printer 10 has been described above.

(2)印刷制御処理:
次に、上述の構成における印刷制御処理を説明する。図3は印刷制御処理の流れを示す
フローチャートである。まず、マルチファンクションプリンタ10に設けられたボタン等
によってユーザがソートコピーの部数設定および開始指示を行うと、画像読取部40がA
DFに積載された原稿の読み取りを開始し、制御部20は印刷制御プログラム21の処理
を実行する前の初期化処理を行う。具体的には本実施形態では請求項に記載のNを5とし
て以降の説明を行う。なお、Nは2以上の整数であればよく、もちろん5に限定されない
。制御部20は初期化処理を実施することにより、図2Aに示すように5個の第一メモリ
領域と1個の第二メモリ領域を変換データバッファ22に確保する。図2においては、上
部ほどアドレスが小さく下部ほどアドレスが大きい。5個の第一メモリ領域はアドレスの
小さい方から順に確保され、1個の第二メモリ領域は、変換データバッファ22の全体サ
イズから第二サイズを引いたアドレスから確保される。また、初期化処理を行うことによ
り、制御部20は、1頁目の画像に対応するJPEG符号化データを蓄積する領域の先頭
アドレスと、同じく1頁目の画像に対応するランレングス符号化データを蓄積する領域の
先頭アドレスとを設定する。図2AにおいてpFおよびpRは、それぞれ、当該先頭アド
レスを指し示すポインタを意味している。
(2) Print control processing:
Next, the print control process in the above configuration will be described. FIG. 3 is a flowchart showing the flow of the print control process. First, when a user sets the number of sort copies and gives a start instruction using a button or the like provided on the multi-function printer 10, the image reading unit 40 displays A.
Reading of the originals loaded on the DF is started, and the control unit 20 performs an initialization process before executing the process of the print control program 21. Specifically, in the present embodiment, the following description will be made assuming that N described in the claims is 5. Note that N may be an integer greater than or equal to 2, and of course is not limited to 5. The control unit 20 secures five first memory areas and one second memory area in the conversion data buffer 22 as shown in FIG. In FIG. 2, the upper address is smaller and the lower address is larger. Five first memory areas are secured in order from the smallest address, and one second memory area is secured from an address obtained by subtracting the second size from the entire size of the conversion data buffer 22. Also, by performing the initialization process, the control unit 20 causes the start address of the area for storing the JPEG encoded data corresponding to the first page image and the run-length encoded data corresponding to the first page image. Is set to the start address of the area for storing the. In FIG. 2A, pF and pR each mean a pointer that points to the head address.

画像読取部40によってラインバッファ41に画像データが蓄積され始めると、画像デ
ータ変換部42は、当該画像データに基づいてJPEG符号化とランレングス符号化を順
次開始する。続いて制御部20は変換データ取得部21aの処理により、画像データ変換
部42によって生成されたJPEG符号化データおよびランレングス符号化データの取得
を開始する(ステップS100)。
When image data starts to be accumulated in the line buffer 41 by the image reading unit 40, the image data conversion unit 42 sequentially starts JPEG encoding and run-length encoding based on the image data. Subsequently, the control unit 20 starts acquisition of JPEG encoded data and run-length encoded data generated by the image data conversion unit 42 by processing of the conversion data acquisition unit 21a (step S100).

続いて制御部20は、変換データ蓄積制御部21bの処理により、JPEG符号化デー
タの第一メモリ領域への蓄積を開始し(ステップS105)、ランレングス符号化データ
の第二メモリ領域への蓄積を開始する(ステップS110)。具体的には、ポインタpF
が指し示すアドレスからJPEG符号化データを、ポインタpRが指し示すアドレスから
ランレングス符号化データを蓄積し始める。
Subsequently, the control unit 20 starts accumulation of JPEG encoded data in the first memory area by the process of the conversion data accumulation control unit 21b (step S105), and accumulation of run-length encoded data in the second memory area. Is started (step S110). Specifically, the pointer pF
JPEG encoded data starts to be accumulated from the address indicated by, and run-length encoded data starts to accumulate from the address indicated by the pointer pR.

続いて制御部20は、メモリ領域管理部21cの処理により、ランレングス符号化デー
タのサイズが第二サイズを超えるか否かを判定する(ステップS115)。具体的には制
御部20は、対象頁に対応するランレングス符号化データを取得する度に対象頁内でこれ
まで蓄積済みのデータサイズを加算し、第二メモリ領域が当該ランレングス符号化データ
で満たされた後もなお、対象頁のランレングス符号化データが取得されたかどうかを判定
する。第二メモリ領域がいっぱいになった、すなわち第二サイズを超えた場合、それ以上
ランレングス符号化データを取得および蓄積することを停止する。制御部20は画像デー
タ変換部42に当該頁のランレングス符号化を中断させてもよい。ステップS115でラ
ンレングス符号化データのサイズが第二サイズを超えると判定された場合、メモリ領域管
理部21cの処理により制御部20は第二メモリ領域に蓄積されたランレングス符号化デ
ータを破棄する(ステップS120)。なお、この場合、第一メモリ領域に蓄積されたJ
PEG符号化データは破棄されずに残される。
Subsequently, the control unit 20 determines whether or not the size of the run-length encoded data exceeds the second size by the processing of the memory area management unit 21c (Step S115). Specifically, every time the run-length encoded data corresponding to the target page is acquired, the control unit 20 adds the data size already accumulated in the target page, and the second memory area stores the run-length encoded data. It is determined whether or not the run-length encoded data of the target page has been acquired even after the condition is satisfied. When the second memory area is full, that is, when the second size is exceeded, further acquisition and accumulation of run-length encoded data is stopped. The control unit 20 may cause the image data conversion unit 42 to interrupt the run-length encoding of the page. When it is determined in step S115 that the size of the run-length encoded data exceeds the second size, the control unit 20 discards the run-length encoded data stored in the second memory area by the processing of the memory area management unit 21c. (Step S120). In this case, J stored in the first memory area
The PEG encoded data is left without being discarded.

続いて制御部20は、メモリ領域管理部21cの処理により、第一メモリ領域は少なく
とも残り1個以上確保可能であるかを判定する(ステップS125)。確保可能である場
合は、次頁のJPEG符号化データおよびランレングス符号化データを蓄積するための第
一メモリ領域および第二メモリ領域をそれぞれ確保する(ステップS130)。具体的に
は、ステップS125にて既に残り1個以上の第一メモリ領域が確保されている場合は、
ステップS130では、次頁のJPEG符号化データを蓄積するための領域を指し示すポ
インタpFを当該確保済みの第一メモリ領域の先頭アドレスに設定し、次頁のランレング
ス符号化データを蓄積するための領域を指し示すポインタpRをステップS120で破棄
したランレングス符号化データが格納されていた第二メモリ領域の先頭アドレスに設定す
る。なお、ステップS125において、残り1個以上の第一メモリ領域が確保されていな
ければ、確保することが可能かどうか(変換データバッファ22に第一サイズ分の解放領
域が存在するかどうか)を判定し、確保可能であればステップS130にて新たに第一メ
モリ領域を確保し、当該第一メモリ領域の先頭アドレスにポインタpFを設定し、ポイン
タpRについては上記同様に設定する。
Subsequently, the control unit 20 determines whether at least one remaining first memory area can be secured by the processing of the memory area management unit 21c (step S125). If it can be secured, a first memory area and a second memory area for storing JPEG encoded data and run-length encoded data of the next page are respectively secured (step S130). Specifically, if one or more remaining first memory areas are already secured in step S125,
In step S130, the pointer pF indicating the area for storing the JPEG encoded data of the next page is set to the start address of the reserved first memory area, and the run-length encoded data of the next page is stored. The pointer pR indicating the area is set to the start address of the second memory area in which the run-length encoded data discarded in step S120 is stored. In step S125, if at least one remaining first memory area is not secured, it is determined whether it can be secured (whether there is a release area for the first size in the conversion data buffer 22). If it can be secured, a new first memory area is secured in step S130, the pointer pF is set at the head address of the first memory area, and the pointer pR is set in the same manner as described above.

ステップS115にてランレングス符号化データは第二サイズを超えないと判定された
場合は、メモリ領域管理部21cの処理により制御部20は第一メモリ領域に蓄積された
JPEG符号化データを破棄する(ステップS135)。なお、この場合、第二メモリ領
域に蓄積されたランレングス符号化データは破棄されずに残される。続いて制御部20は
、メモリ領域管理部21cの処理により、第二メモリ領域は少なくとも残り1個以上確保
可能であるか否かを判定する(ステップS140)。確保可能である場合は、次頁のJP
EG符号化データおよびランレングス符号化データを蓄積するための第一メモリ領域およ
び第二メモリ領域をそれぞれ確保する(ステップS145)。具体的には、ステップS1
40にて確保可能と判定される場合とは、例えば、残り1個以上の第二メモリ領域が確保
されていないが残り2個以上の第一メモリ領域が確保されている場合である。その場合ス
テップS145ではそのうち1個の第一メモリ領域を解放し、解放されたメモリ領域に第
二メモリ領域を1個確保する。そして、ポインタpRを新たに確保された第二メモリ領域
の先頭アドレスに設定し、ポインタpFをステップS135で破棄したJPEG符号化デ
ータが格納されていた第一メモリ領域の先頭アドレスに設定する。第一メモリ領域は新た
に1個の第二メモリ領域を確保するために1個解放されたが、ステップS135で破棄さ
れたJPEG符号化データが格納されていた第一メモリ領域を含め残り1個以上確保され
た状態のままである。
If it is determined in step S115 that the run-length encoded data does not exceed the second size, the control unit 20 discards the JPEG encoded data stored in the first memory area by the processing of the memory area management unit 21c. (Step S135). In this case, the run-length encoded data stored in the second memory area is left without being discarded. Subsequently, the control unit 20 determines whether or not at least one remaining second memory area can be secured by the processing of the memory area management unit 21c (step S140). If it is possible to secure, JP on the next page
A first memory area and a second memory area for storing the EG encoded data and the run length encoded data are respectively secured (step S145). Specifically, step S1
The case where it is determined that it can be secured at 40 is, for example, a case where one or more remaining second memory areas are not secured but two or more remaining first memory areas are secured. In that case, in step S145, one of the first memory areas is released, and one second memory area is secured in the released memory area. Then, the pointer pR is set to the head address of the newly secured second memory area, and the pointer pF is set to the head address of the first memory area where the JPEG encoded data discarded in step S135 is stored. One first memory area was released to secure a new second memory area, but the remaining one including the first memory area where the JPEG encoded data discarded in step S135 was stored. The state secured above is still maintained.

また、ステップS140にて確保可能と判定される場合とは、残り1個以上の第二メモ
リ領域が確保されていないが、残り1個のみ第一メモリ領域が確保されており、かつ第二
サイズ以上の解放領域が変換データバッファ22に存在する場合である。その場合ステッ
プS145では、当該解放領域に第二メモリ領域を1個確保する。そして、ポインタpR
を新たに確保された第二メモリ領域の先頭アドレスに設定し、ポインタpFをステップS
135で破棄したJPEG符号化データが格納されていた第一メモリ領域の先頭アドレス
に設定する。
上述のステップS100からステップS115を経てステップS130まで、あるいは
ステップS100からステップS115を経てステップS145まで、またはこれらの双
方を繰り返すことにより、変換データバッファ22には、頁毎の画像データがJPEG符
号化データあるいはランレングス符号化データのいずれかで蓄積されていく。ステップS
125にて第一メモリ領域が少なくとも残り1個以上確保可能でないと判定された場合、
およびステップS140にて第二メモリ領域が少なくとも残り1個以上確保可能でないと
判定された場合は、請求項に記載の「第一メモリ領域または第二メモリ領域のいずれかが
確保できなくなったとき」に相当する。したがってステップS125またはステップS1
40で確保可能でないと判定された場合、制御部20は印刷指示部21dの処理により変
換データバッファ22に蓄積されているJPEG符号化データまたは/およびランレング
ス符号化データを頁順に、ユーザに指定された部数分、印刷部に印刷させる。
Further, in the case where it is determined in step S140 that it can be secured, the remaining one or more second memory areas are not secured, but only the remaining one first memory area is secured and the second size. This is a case where the above release area exists in the conversion data buffer 22. In that case, in step S145, one second memory area is secured in the release area. And pointer pR
Is set to the start address of the newly secured second memory area, and the pointer pF is set to step S
In 135, the first address of the first memory area in which the JPEG encoded data discarded is set.
By repeating the above steps S100 to S115 through step S130, or from step S100 through step S115 to step S145, or both, the converted data buffer 22 stores the image data for each page in JPEG encoding. The data is accumulated as either data or run-length encoded data. Step S
If it is determined in 125 that at least one remaining memory area cannot be secured,
And when it is determined in step S140 that at least one remaining second memory area cannot be secured, "when either the first memory area or the second memory area cannot be secured" It corresponds to. Therefore, step S125 or step S1
If it is determined that the data cannot be secured at 40, the control unit 20 designates the JPEG encoded data and / or run-length encoded data stored in the converted data buffer 22 by the processing of the print instruction unit 21d to the user in page order. The number of copies is printed on the printing section.

(2−1)動作例:
図2を用いて、蓄積および破棄の様子の具体例を説明する。前述のように図2Aは1頁
目の変換データを取得する前に初期化処理が行われた状態を示している。まず、1頁目の
JPEG符号化データはポインタpFが指し示すメモリ領域FIX[0]に蓄積され始め、
同じく1頁目のランレングス符号化データはポインタpRが指し示すメモリ領域RNL[
0]に蓄積され始める。そして、例えば1頁目のランレングス符号化データが第二サイズ
を超えるとすると(図2B参照、S115:Y)、1頁目のJPEG符号化データは破棄
されることなくFIX[0]に残され、RNL[0]に蓄積されたランレングス符号化データ
が破棄される(S120)。このとき、少なくとも残り1個以上の第一メモリ領域は既に
確保されている(S125:Y)ので、2頁目のJPEG符号化データを蓄積するための
第一メモリ領域FIX[1]の開始アドレスにポインタpFが設定される(S130)。ポ
インタpRは再度RNL[0]に設定される。図2Cはこの状態を示している。
(2-1) Example of operation:
A specific example of accumulation and destruction will be described with reference to FIG. As described above, FIG. 2A shows a state where the initialization process is performed before the conversion data of the first page is acquired. First, the JPEG encoded data of the first page starts to be accumulated in the memory area FIX [0] indicated by the pointer pF.
Similarly, the run-length encoded data of the first page is stored in the memory area RNL [
0] begins to accumulate. For example, if the run-length encoded data of the first page exceeds the second size (see FIG. 2B, S115: Y), the JPEG encoded data of the first page remains in FIX [0] without being discarded. The run-length encoded data stored in RNL [0] is discarded (S120). At this time, since at least one remaining first memory area has already been secured (S125: Y), the start address of the first memory area FIX [1] for storing the JPEG encoded data of the second page The pointer pF is set to (S130). The pointer pR is set to RNL [0] again. FIG. 2C shows this state.

続いて図2Cの状態において、2頁目のJPEG符号化データとランレングス符号化デ
ータの取得および蓄積が開始される。すなわち、FIX[1]に2頁目のJPEG符号化デ
ータが蓄積され始め、RNL[0]に2頁目のランレングス符号化データが蓄積され始める
。2頁目のランレングス符号化データが第二サイズを超えないとすると(図2D参照、S
115:N)、RNL[0]に2頁目のランレングス符号化データが蓄積されたまま残り、
FIX[1]に蓄積されたJPEG符号化データが破棄される(S135)。このとき、残
り1個以上の第二メモリ領域は確保されていないが少なくとも2個以上の第一メモリ領域
が確保されているので、第二メモリ領域は少なくとも残り1個以上確保可能であると判定
される(S140:Y)。したがって残り2個以上の第一メモリ領域のうちの1個であっ
て最もアドレスの大きい位置に確保されているFIX[4]を解放し、解放することによっ
て発生した解放状態のメモリ領域に新たに1個第二メモリ領域RNL[1]を確保する。そ
して3頁目のランレングス符号化データを蓄積するためのRNL[1]の開始アドレスにポ
インタpRが設定される。ポインタpFは再度FIX[1]に設定される(S145)。図
4Aはこの状態を示している。
Subsequently, in the state of FIG. 2C, acquisition and accumulation of JPEG encoded data and run length encoded data for the second page are started. That is, JPEG encoded data of the second page starts to be accumulated in FIX [1], and run-length encoded data of the second page starts to be accumulated in RNL [0]. If the run-length encoded data of the second page does not exceed the second size (see FIG. 2D, S
115: N), the run-length encoded data of the second page remains in RNL [0],
The JPEG encoded data stored in FIX [1] is discarded (S135). At this time, at least one second memory area is not secured, but at least two first memory areas are secured, so it is determined that at least one second memory area can be secured. (S140: Y). Therefore, FIX [4], which is one of the remaining two or more first memory areas and is secured at the position with the highest address, is released and newly released into the released memory area. One second memory area RNL [1] is secured. Then, the pointer pR is set to the start address of RNL [1] for storing the run-length encoded data of the third page. The pointer pF is set to FIX [1] again (S145). FIG. 4A shows this state.

続いて3頁目のランレングス符号化データが第二サイズを超えないとすると、上述と同
様の処理をして、ステップS145の処理を終えた時点で変換データバッファ22は図4
Bに示す状態となる。続いて4頁目のランレングス符号化データは第二サイズを超えると
すると、上述と同様の処理をしてステップS130の処理を終えた時点で変換データバッ
ファ22は図4Cに示す状態となる。5頁目のランレングス符号化データが第二サイズを
超えるとすると、ステップS130において変換データバッファ22に第一サイズ分の解
放領域が存在するかどうかが判定され、この場合は存在するので、再び第一メモリ領域F
IX[3]が確保される。図4Dはこのときの状態を示している。
Subsequently, assuming that the run-length encoded data on the third page does not exceed the second size, the converted data buffer 22 performs the same process as described above and the converted data buffer 22 at the time when the process of step S145 is completed.
The state shown in B is obtained. Subsequently, assuming that the run-length encoded data of the fourth page exceeds the second size, the converted data buffer 22 is in the state shown in FIG. 4C when the same processing as described above is performed and the processing in step S130 is completed. If the run-length encoded data of the fifth page exceeds the second size, it is determined in step S130 whether or not there is a release area for the first size in the converted data buffer 22, and in this case, it exists again. First memory area F
IX [3] is secured. FIG. 4D shows the state at this time.

続いて6頁目のランレングス符号化データが第二サイズを超えるとすると、ステップS
120を終了した時点で図5Aに示す状態となる。すなわち、解放領域のサイズは第一サ
イズより小さいので、ステップS125において第一メモリ領域は少なくとも残り1個以
上確保可能でないと判定される。そして、ステップS150にて変換データバッファ22
に蓄積されているJPEG符号化データおよびランレングス符号化データが頁順に、ユー
ザに指定された部数分、印刷を実行するように印刷部43に指示され、印刷部43によっ
て印刷が実行される。
Subsequently, assuming that the run-length encoded data of the sixth page exceeds the second size, step S
When 120 is completed, the state shown in FIG. 5A is obtained. That is, since the size of the release area is smaller than the first size, it is determined in step S125 that at least one remaining memory area cannot be secured. In step S150, the converted data buffer 22
The printing unit 43 is instructed to print the JPEG encoded data and run-length encoded data stored in the page in the page order for the number of copies designated by the user, and the printing unit 43 performs printing.

以上説明したように、頁毎の画像データがJPEG符号化データまたはランレングス符
号化データのいずれで蓄積されたとしても、5頁以上の頁に対応するデータをメモリに蓄
積することができる。その結果、一度にソートコピーできる原稿の最大頁数は少なくとも
5頁であることを保証することができる。また、例えば写真画像が広く含まれている頁を
ランレングス符号化した場合、JPEG符号化した場合と比較してサイズが大きくなる可
能性が高い。また、写真画像が含まれず空白領域が多い頁では、ランレングス符号化した
場合の方がJPEG符号化した場合よりサイズが小さくなる可能性が高い。また、ランレ
ングス符号化および復号化は、JPEG符号化および復号化に要する時間より処理時間が
短い(但し処理装置が同等の性能である場合)。また、ランレングス符号化は可逆圧縮で
あるので画質の劣化が発生しない。したがって、ランレングス符号化によって第二サイズ
以下となる場合はランレングス符号化データで変換データバッファ22に蓄積した方が、
処理時間および蓄積に要するサイズおよび画質の面からも望ましい。しかし、ランレング
ス符号化データは必ず第二サイズ以下になるとは限らない。第二サイズを超えさらに第一
サイズを超える場合もある。本実施形態においては、画像読み取りから印刷完了までの時
間をできるだけ短縮するために、画像読み取り、画像データ蓄積、画像データ変換、変換
データ蓄積をできるだけ並列的に行い、画像読み取りを同一頁に対して繰り返すことは行
わないので、ランレングス符号化データが第二サイズを超えるか否かを蓄積前に制御部2
0が把握することはできない。そのため、二種類の変換データの蓄積を行い、ランレング
ス符号化データが第二サイズを超えた場合は、並列的に蓄積していたJPEG符号化デー
タを残すようにする。ランレングス符号化データが第二サイズ以下ならランレングス符号
化データを残すようにする。このような処理を繰り返すことにより、無駄なく効率的に画
像データに対応する変換データを変換データバッファ22に蓄積することができる。
As described above, even if image data for each page is stored as either JPEG encoded data or run-length encoded data, data corresponding to five or more pages can be stored in the memory. As a result, it can be ensured that the maximum number of original pages that can be sorted and copied at a time is at least five. Further, for example, when a page containing a wide range of photographic images is run-length encoded, there is a high possibility that the size will be larger than when JPEG encoding is performed. Also, for pages that do not contain photographic images and have many blank areas, it is more likely that the run-length encoding will be smaller than the JPEG encoding. In addition, the run length encoding and decoding has a shorter processing time than the time required for JPEG encoding and decoding (provided that the processing device has equivalent performance). In addition, since run-length encoding is lossless compression, image quality does not deteriorate. Therefore, when the length is equal to or smaller than the second size by the run length encoding, it is better to accumulate the run length encoded data in the converted data buffer 22.
It is also desirable from the viewpoint of processing time, size required for accumulation, and image quality. However, run-length encoded data is not always smaller than the second size. It may exceed the second size and further exceed the first size. In this embodiment, in order to shorten the time from image reading to printing completion as much as possible, image reading, image data accumulation, image data conversion, and conversion data accumulation are performed in parallel as much as possible, and image reading is performed on the same page. Since it is not repeated, the controller 2 determines whether or not the run-length encoded data exceeds the second size before accumulation.
0 can not grasp. For this reason, two types of conversion data are accumulated, and if the run-length encoded data exceeds the second size, the JPEG encoded data stored in parallel is left. If the run-length encoded data is equal to or smaller than the second size, the run-length encoded data is left. By repeating such processing, conversion data corresponding to image data can be efficiently stored in the conversion data buffer 22 without waste.

なお、6頁目のランレングス符号化データが第二サイズを超えない場合は、ステップS
135の処理を終えた時点で図5Bに示す状態となる。ステップS140では、第二メモ
リ領域が確保可能と判定され、ステップS145では解放領域にRNL[3]が確保される
。残り1個以上の第二メモリ領域が確保されていないが、残り1個のみ第一メモリ領域が
確保されており、かつ第二サイズ以上の解放されたメモリ領域が変換データバッファ22
に存在するからである。図5CはステップS145の処理を終了した状態を示している。
7頁目、8頁目もランレングス符号化データが第二サイズを超えないとすると、9頁分の
変換データを蓄積することが可能である。
If the run-length encoded data of the sixth page does not exceed the second size, step S
When the processing of 135 is finished, the state shown in FIG. 5B is obtained. In step S140, it is determined that the second memory area can be secured, and in step S145, RNL [3] is secured in the release area. The remaining one or more second memory areas are not secured, but only the remaining one first memory area is secured, and the released memory area of the second size or larger is the converted data buffer 22.
It is because it exists. FIG. 5C shows a state in which the process of step S145 is finished.
If the run-length encoded data on the seventh and eighth pages does not exceed the second size, conversion data for nine pages can be stored.

(3)他の実施形態:
以上の実施形態は本発明を実施するための一例であり、本発明の趣旨を逸脱しない限り
において、他にも種々の実施形態を採用可能である。例えば、初期化処理において、N(
Nは2以上)個の第一メモリ領域と1個の第二メモリ領域とを確保しなくてもよく、図6
Aに示すように、第一メモリ領域と第二メモリ領域とが少なくとも一つずつ確保されてい
ればよい。そして、解放領域のサイズに応じて、次頁分の第一メモリ領域および第二メモ
リ領域を確保してもよい。
(3) Other embodiments:
The above embodiment is an example for carrying out the present invention, and various other embodiments can be adopted without departing from the gist of the present invention. For example, in the initialization process, N (
N is not less than 2) and it is not necessary to secure one first memory area and one second memory area.
As shown in A, it is only necessary to secure at least one first memory area and one second memory area. Then, the first memory area and the second memory area for the next page may be secured according to the size of the release area.

さらに本発明においては、図6Bに示すように、第二メモリ領域は変換データバッファ
22内においてより小さいアドレスから順に確保されてもよく、また、第一メモリ領域は
変換データバッファ22内においてより大きいアドレスから順に確保されてもよい。この
構成において、メモリ領域管理手段は、第二メモリ領域に蓄積が完了した第二変換データ
のサイズが第二サイズに満たない場合、第二メモリ領域内の未使用領域を含む第二メモリ
領域を確保するようにしてもよい。
すなわち、n頁目のランレングス符号化データを保存するために確保されていた第二メ
モリ領域の未使用領域を含んだ第二サイズのメモリ領域をn+1頁目以降のランレングス
符号化データを蓄積するための第二メモリ領域として確保する(図6Cはn=1である場
合の一例)。このため、より多くの頁に対応するランレングス符号化データをメモリのア
ドレスの小さい方から順に格納することができる。この効果は、第二メモリ領域内の未使
用領域が第一メモリ領域内の未使用領域よりも統計的に多くなる場合に、より効果を奏す
る。なお、図6Aの場合に、n頁目のJPEG符号化データを保存するために確保されて
いた第一メモリ領域の未使用領域を含んだ第一サイズのメモリ領域をn+1頁目以降のJ
PEG符号化データを蓄積するための第一メモリ領域として確保するようにしてもよい。
Further, in the present invention, as shown in FIG. 6B, the second memory area may be allocated in order from the smaller address in the converted data buffer 22, and the first memory area is larger in the converted data buffer 22. The addresses may be secured in order. In this configuration, when the size of the second conversion data that has been accumulated in the second memory area is less than the second size, the memory area management means creates a second memory area including an unused area in the second memory area. It may be ensured.
That is, the run-length encoded data for the (n + 1) th and subsequent pages is stored in the second size memory area including the unused area of the second memory area reserved for storing the n-th page run-length encoded data. Is secured as a second memory area (FIG. 6C shows an example where n = 1). For this reason, run-length encoded data corresponding to more pages can be stored in order from the smallest memory address. This effect is more effective when the unused area in the second memory area is statistically larger than the unused area in the first memory area. In the case of FIG. 6A, the memory area of the first size including the unused area of the first memory area reserved for storing the JPEG encoded data of the n-th page is represented as J + 1 and the following pages.
You may make it ensure as a 1st memory area for accumulating PEG encoding data.

なお、印刷部43はレーザプリンタで構成されていてもよい。
さらに、上記実施形態では、第一メモリ領域または第二メモリ領域のいずれかが確保で
きなくなったときに、印刷を実行させる構成を説明したが、頁ごとにランレングス符号化
データかJPEG符号化データのいずれを残すかが決定した時点で頁ごとに指定部数印刷
するようにしてもよい。
さらに、上記実施形態では、2種類の変換方式にて変換した変換データをメモリに蓄積
する例を説明したが、3種類以上の変換データをメモリに蓄積し、そのうち1種類の変換
データをメモリに蓄積するようにしてもよい。
The printing unit 43 may be configured with a laser printer.
Furthermore, in the above-described embodiment, the configuration in which printing is executed when either the first memory area or the second memory area cannot be secured has been described. However, run-length encoded data or JPEG encoded data is provided for each page. The designated number of copies may be printed for each page when it is determined which one to leave.
Furthermore, in the above-described embodiment, the example in which the conversion data converted by the two types of conversion methods is stored in the memory has been described. However, three or more types of conversion data are stored in the memory, and one type of the conversion data is stored in the memory. You may make it accumulate | store.

マルチファンクションプリンタの構成を示すブロック図である。It is a block diagram which shows the structure of a multifunction printer. (2A)〜(2D)は変換データバッファの概念的内部構造を示す模式図である。(2A) to (2D) are schematic diagrams showing a conceptual internal structure of a conversion data buffer. 印刷制御処理を示すフローチャートである。6 is a flowchart illustrating print control processing. (4A)〜(4D)は変換データバッファの概念的内部構造を示す模式図である。(4A) to (4D) are schematic diagrams showing the conceptual internal structure of the converted data buffer. (5A)〜(5C)は変換データバッファの概念的内部構造を示す模式図である。(5A) to (5C) are schematic diagrams showing the conceptual internal structure of the converted data buffer. (6A)〜(6C)は変換データバッファの概念的内部構造を示す模式図である。(6A)-(6C) are schematic diagrams showing the conceptual internal structure of the converted data buffer.

符号の説明Explanation of symbols

10:マルチファンクションプリンタ、20:制御部、21:印刷制御プログラム、2
1a:変換データ取得部、21b:変換データ蓄積制御部、21c:メモリ領域管理部、
21d:印刷指示部、22:変換データバッファ、40:画像読取部、41:ラインバッ
ファ、42:画像データ変換部、43:印刷部、FIX:第一メモリ領域、RNL:第二
メモリ領域。
10: Multi-function printer, 20: Control unit, 21: Print control program, 2
1a: conversion data acquisition unit, 21b: conversion data accumulation control unit, 21c: memory area management unit,
21d: print instruction section, 22: conversion data buffer, 40: image reading section, 41: line buffer, 42: image data conversion section, 43: printing section, FIX: first memory area, RNL: second memory area.

Claims (8)

複数の頁の画像を示す画像データを前記頁毎に第一方式および第二方式で変換した第一
変換データおよび第二変換データのそれぞれを取得する変換データ取得手段と、
前記第一変換データの最大サイズとして予め決められている第一サイズの第一メモリ領
域と、前記第一サイズより小さいサイズとして予め決められている第二サイズの第二メモ
リ領域と、が少なくともそれぞれ1個以上確保されているメモリと、
前記第一変換データおよび前記第二変換データのそれぞれを前記第一メモリ領域および
前記第二メモリ領域のそれぞれに蓄積させる変換データ蓄積制御手段と、
前記第二変換データのサイズが前記第二サイズを超える場合は前記第二変換データを破
棄して少なくとも残り1個以上の前記第一メモリ領域を前記メモリに確保し、前記第二変
換データのサイズが前記第二サイズを超えない場合は前記第一変換データを破棄して少な
くとも残り1個以上の前記第二メモリ領域を前記メモリに確保するメモリ領域管理手段と

前記メモリに蓄積されている第一変換データまた第二変換データに基づいて印刷部に印刷を実行させる印刷指示手段と、
を備える印刷制御装置。
Conversion data acquisition means for acquiring each of the first conversion data and the second conversion data obtained by converting image data indicating images of a plurality of pages for each page by the first method and the second method;
At least a first memory area of a first size that is predetermined as the maximum size of the first conversion data and a second memory area of a second size that is predetermined as a size smaller than the first size, respectively. One or more reserved memory,
Conversion data storage control means for storing each of the first conversion data and the second conversion data in each of the first memory area and the second memory area;
When the size of the second conversion data exceeds the second size, the second conversion data is discarded and at least one remaining first memory area is secured in the memory, and the size of the second conversion data Memory area management means for discarding the first conversion data and securing at least one remaining second memory area in the memory if the second size does not exceed the second size,
The first conversion data also stored in the memory and print instruction means to execute printing on a printing unit based on the second converted data,
A printing control apparatus comprising:
前記メモリは、予め確保されているN(Nは2以上)個の前記第一メモリ領域と1個の
前記第二メモリ領域とからなり、
前記メモリ領域管理手段は、前記第二変換データが前記第二サイズを超えない場合は前
記第一変換データを破棄し前記第一メモリ領域が残り2個以上確保されていればそのうち
1個の前記第一メモリ領域を解放し、解放状態のメモリ領域に第二メモリ領域を1個確保
し、前記第二変換データが前記第二サイズを超える場合は前記第二変換データを破棄し前
記第一メモリ領域が残り1個も確保されておらずかつ前記メモリに第一サイズの解放され
たメモリ領域が存在すれば前記第一メモリ領域を1個確保する、
請求項1に記載の印刷制御装置。
The memory is composed of N (N is 2 or more) first memory areas and one second memory area reserved in advance.
The memory area management means discards the first conversion data when the second conversion data does not exceed the second size, and if one or more of the remaining first memory areas are secured, The first memory area is released, one second memory area is secured in the released memory area, and when the second conversion data exceeds the second size, the second conversion data is discarded and the first memory is discarded. If no remaining area is secured and there is a memory area of the first size released in the memory, the first memory area is secured.
The print control apparatus according to claim 1.
前記印刷指示手段は、前記第一メモリ領域または前記第二メモリ領域のいずれかが確保
できなくなったとき、前記印刷部に印刷を実行させる、
請求項1または請求項2のいずれかに記載の印刷制御装置。
The print instructing unit causes the printing unit to perform printing when either the first memory area or the second memory area cannot be secured;
The print control apparatus according to claim 1.
前記第一変換データは、JPEG符号化されたデータである、
請求項1〜請求項3のいずれかに記載の印刷制御装置。
The first conversion data is JPEG encoded data.
The printing control apparatus according to any one of claims 1 to 3.
前記第二変換データは、ランレングス符号化されたデータである、
請求項1〜請求項4のいずれかに記載の印刷制御装置。
The second transformed data is run-length encoded data.
The printing control apparatus in any one of Claims 1-4.
前記第二メモリ領域は、前記メモリ内においてより小さいアドレスから順に確保され、
前記第一メモリ領域は、前記メモリ内においてより大きいアドレスから順に確保され、
前記メモリ領域管理手段は、前記第二メモリ領域に蓄積が完了した前記第二変換データ
のサイズが前記第二サイズに満たない場合、前記第二メモリ領域内の未使用領域を含む前
記第二メモリ領域を確保する、
請求項1〜請求項5のいずれかに記載の印刷制御装置。
The second memory area is secured in order from a smaller address in the memory,
The first memory area is secured in order from a larger address in the memory,
The memory area management means includes the second memory including an unused area in the second memory area when the size of the second conversion data accumulated in the second memory area is less than the second size. Secure space,
The printing control apparatus according to claim 1.
複数の頁の画像を示す画像データを前記頁毎に第一方式および第二方式で変換した第一
変換データおよび第二変換データのそれぞれを取得する変換データ取得工程と、
前記第一変換データの最大サイズとして予め決められている第一サイズの第一メモリ領
域と、前記第一サイズより小さいサイズとして予め決められている第二サイズの第二メモ
リ領域と、が少なくともそれぞれ1個以上確保されているメモリであって前記メモリ内に
おいてより大きいアドレスから順に確保される前記第一メモリ領域と前記メモリ内におい
てより小さいアドレスから順に確保される前記第二メモリ領域とのそれぞれに、前記第一
変換データおよび前記第二変換データのそれぞれを蓄積させる変換データ蓄積制御工程と

前記第二変換データのサイズが前記第二サイズを超える場合は前記第二変換データを破
棄して少なくとも残り1個以上の前記第一メモリ領域を前記メモリに確保し、前記第二変
換データのサイズが前記第二サイズに満たない場合は前記第一変換データを破棄し前記第
二メモリ領域内の未使用領域を含む前記第二メモリ領域を少なくとも残り1個以上前記メ
モリに確保するメモリ領域管理工程と、
前記第一メモリ領域または前記第二メモリ領域のいずれかが確保できないとき、前記メ
モリに蓄積されている第一変換データまた第二変換データに基づいて印刷部に印刷を実行させる印刷指示工程と、
を含む印刷制御方法。
A conversion data acquisition step of acquiring each of the first conversion data and the second conversion data obtained by converting the image data indicating the images of a plurality of pages by the first method and the second method for each page;
At least a first memory area of a first size that is predetermined as the maximum size of the first conversion data and a second memory area of a second size that is predetermined as a size smaller than the first size, respectively. Each of the first and second memory areas secured in order from a larger address in the memory and the second memory area secured in order from a smaller address in the memory. A conversion data accumulation control step of accumulating each of the first conversion data and the second conversion data;
When the size of the second conversion data exceeds the second size, the second conversion data is discarded and at least one remaining first memory area is secured in the memory, and the size of the second conversion data A memory area management step of discarding the first conversion data and securing at least one second memory area including an unused area in the second memory area in the memory when the second size is less than the second size When,
When either of the first memory area or the second memory area can not be secured, the first conversion data also stored in the memory and print instruction step to execute the printing on the printing unit based on the second converted data ,
A printing control method.
複数の頁の画像を示す画像データを前記頁毎に第一方式および第二方式で変換した第一
変換データおよび第二変換データのそれぞれを取得する変換データ取得機能と、
前記第一変換データの最大サイズとして予め決められている第一サイズの第一メモリ領
域と、前記第一サイズより小さいサイズとして予め決められている第二サイズの第二メモ
リ領域と、が少なくともそれぞれ1個以上確保されているメモリであって前記メモリ内に
おいてより大きいアドレスから順に確保される前記第一メモリ領域と前記メモリ内におい
てより小さいアドレスから順に確保される前記第二メモリ領域とのそれぞれに、前記第一
変換データおよび前記第二変換データのそれぞれを蓄積させる変換データ蓄積制御機能と

前記第二変換データのサイズが前記第二サイズを超える場合は前記第二変換データを破
棄して少なくとも残り1個以上の前記第一メモリ領域を前記メモリに確保し、前記第二変
換データのサイズが前記第二サイズに満たない場合は前記第一変換データを破棄し前記第
二メモリ領域内の未使用領域を含む前記第二メモリ領域を少なくとも残り1個以上前記メ
モリに確保するメモリ領域管理機能と、
前記第一メモリ領域または前記第二メモリ領域のいずれかが確保できないとき、前記メ
モリに蓄積されている第一変換データまた第二変換データに基づいて印刷部に印刷を実行させる印刷指示機能と、
をコンピュータに実現させる印刷制御プログラム。
A conversion data acquisition function for acquiring each of the first conversion data and the second conversion data obtained by converting the image data indicating the images of a plurality of pages by the first method and the second method for each page;
At least a first memory area of a first size that is predetermined as the maximum size of the first conversion data and a second memory area of a second size that is predetermined as a size smaller than the first size, respectively. Each of the first and second memory areas secured in order from a larger address in the memory and the second memory area secured in order from a smaller address in the memory. A conversion data accumulation control function for accumulating each of the first conversion data and the second conversion data;
When the size of the second conversion data exceeds the second size, the second conversion data is discarded and at least one remaining first memory area is secured in the memory, and the size of the second conversion data If the memory size is less than the second size, the first conversion data is discarded, and at least one remaining second memory area including an unused area in the second memory area is secured in the memory. When,
When either of the first memory area or the second memory area can not be secured, the first conversion data also stored in the memory and the print instruction function to execute printing in the printing section based on the second conversion data ,
A print control program that causes a computer to realize
JP2008055895A 2008-03-06 2008-03-06 Print control apparatus, print control method, and print control program Expired - Fee Related JP4962359B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008055895A JP4962359B2 (en) 2008-03-06 2008-03-06 Print control apparatus, print control method, and print control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008055895A JP4962359B2 (en) 2008-03-06 2008-03-06 Print control apparatus, print control method, and print control program

Publications (2)

Publication Number Publication Date
JP2009213006A JP2009213006A (en) 2009-09-17
JP4962359B2 true JP4962359B2 (en) 2012-06-27

Family

ID=41185693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008055895A Expired - Fee Related JP4962359B2 (en) 2008-03-06 2008-03-06 Print control apparatus, print control method, and print control program

Country Status (1)

Country Link
JP (1) JP4962359B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4080658B2 (en) * 2000-01-25 2008-04-23 株式会社リコー Encoding / decoding device

Also Published As

Publication number Publication date
JP2009213006A (en) 2009-09-17

Similar Documents

Publication Publication Date Title
US8059299B2 (en) Apparatus and method for controlling an image-data imput/output process performed by an image forming apparatus connected to an image data input unit and an image data output unit
JP4589896B2 (en) Image processing apparatus, image processing method, and program
US8687223B2 (en) Image processing apparatus and image processing method utilizing efficient memory regions
JP4560490B2 (en) Image forming apparatus control method, image forming apparatus control program, and image forming apparatus
US8405873B2 (en) Image processing apparatus and image forming apparatus using same
JP4962359B2 (en) Print control apparatus, print control method, and print control program
JP3384553B2 (en) Printing system
JP2017098918A (en) Image processing apparatus and method of controlling the same
JP4901692B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
US7933039B2 (en) Apparatus, method, and computer program product for forming image
JP4748734B2 (en) Document reader
JP2011018157A (en) Image forming system and image forming method
JP5084688B2 (en) Image forming apparatus
US20120075666A1 (en) Image processing apparatus, data processing method of image processing apparatus, and storage medium
US8482784B2 (en) Retrieving substitute image data from a file when image data from the file cannot be processed
JP4873315B2 (en) Image processing device
JP2005159705A (en) Image formation system
JP5867566B1 (en) Printing control device, printing system
JP2003259097A (en) Image processing apparatus and image processing method
JP5742320B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP5132696B2 (en) MEMORY CONTROL DEVICE, IMAGE FORMING DEVICE, AND MEMORY CONTROL METHOD
JP2004148695A (en) Printer performing automatic printing according to print information file
JP2021100168A (en) Image forming apparatus and image forming method
JP2009177255A (en) Image processing system and image processing device
JP2004112692A (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120213

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: 20120228

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120312

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150406

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees