JP2005231374A - Printer, method for managing memory of the printer and record medium recording program - Google Patents
Printer, method for managing memory of the printer and record medium recording program Download PDFInfo
- Publication number
- JP2005231374A JP2005231374A JP2005113052A JP2005113052A JP2005231374A JP 2005231374 A JP2005231374 A JP 2005231374A JP 2005113052 A JP2005113052 A JP 2005113052A JP 2005113052 A JP2005113052 A JP 2005113052A JP 2005231374 A JP2005231374 A JP 2005231374A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- data memory
- virtual storage
- memory
- printer
- 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
Links
Images
Landscapes
- Storing Facsimile Image Data (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Description
本発明は、受信したジョブデータに基づいて生成されるイメージデータをイメージデータメモリに展開した後、印刷を行うページプリンタの技術に関する。 The present invention relates to a technology of a page printer that performs printing after developing image data generated based on received job data in an image data memory.
プリンタは、コンピュータから送信される印刷ジョブデータを受信すると、イメージデータメモリ上にこの印刷ジョブデータに従って生成したイメージデータを展開する。そして、プリンタは、用紙1ページ分のイメージデータを展開した後、順次、イメージデータを印刷エンジンに転送して、印刷を行う。 When receiving the print job data transmitted from the computer, the printer expands the image data generated according to the print job data on the image data memory. The printer develops image data for one page of paper, and then sequentially transfers the image data to the print engine to perform printing.
このように、プリンタは、1ページ分のイメージデータを記憶することができるイメージデータメモリが必要となる。例えば、A4の用紙に600dpi、モノクロで印刷するためには、約4MBのイメージデータメモリが必要となる。このようなイメージデータメモリは、一般に、DRAM等の半導体記憶装置によって構成されている。 As described above, the printer needs an image data memory capable of storing image data for one page. For example, in order to print on A4 paper at 600 dpi and monochrome, an image data memory of about 4 MB is required. Such an image data memory is generally constituted by a semiconductor storage device such as a DRAM.
近年は、コンピュータの発達に伴い、高速、高解像度、フルカラーを実現するプリンタが要求されている。このような要求を実現するためには、大容量のイメージデータメモリを搭載する必要があるが、コスト面を考慮すると、実現が困難であるという課題があった。 In recent years, with the development of computers, printers that realize high speed, high resolution, and full color have been required. In order to realize such a demand, it is necessary to mount a large-capacity image data memory, but there is a problem that it is difficult to realize in consideration of cost.
また、イメージデータメモリは、1ページ分のイメージデータを記憶できるように、コスト面を考慮しつつ、余裕を持ったサイズで構成されている。しかしながら、ドキュメントの内容によっては、イメージデータの生成中に、メモリ不足の状態に陥る場合がある。このようなメモリ不足の状態に対処するため、プリンタは、メモリ不足の状態に陥ると、解像度を低下させる等の画像最適化処理を行う。このため、ユーザが望む本来の印刷状態に比べて印刷品質が低下した印刷結果を招いてしまうという課題があった。
そこで、本発明の課題は、少ないイメージデータメモリにより高品質印刷を行うことができるプリンタを提供することである。
In addition, the image data memory is configured with a sufficient size in consideration of cost so that image data for one page can be stored. However, depending on the contents of the document, there may be a memory shortage state during image data generation. In order to deal with such a memory shortage state, the printer performs an image optimization process such as reducing the resolution when the memory shortage state occurs. For this reason, there has been a problem in that a printing result in which the printing quality is deteriorated as compared with the original printing state desired by the user is caused.
Accordingly, an object of the present invention is to provide a printer capable of performing high quality printing with a small amount of image data memory.
上記課題を解決するために、本発明は以下のように特定される。
すなわち、本発明は、受信したジョブデータに基づいてイメージデータを生成する生成手段と、前記生成手段によって生成されたイメージデータを単位領域ごとに記憶するイメージデータメモリと、連続する単位領域からなる仮想記憶領域が形成される二次記憶装置と、前記イメージデータメモリと前記二次記憶装置との間の仮想記憶に関する処理を管理する記憶管理手段と、前記イメージデータメモリに記憶されたイメージデータを印刷エンジンに供給する供給手段とを備えたことを特徴とするプリンタである。
In order to solve the above problems, the present invention is specified as follows.
That is, the present invention provides a generation unit that generates image data based on received job data, an image data memory that stores the image data generated by the generation unit for each unit region, and a virtual unit that includes continuous unit regions. A secondary storage device in which a storage area is formed; storage management means for managing processing relating to virtual storage between the image data memory and the secondary storage device; and printing image data stored in the image data memory And a supply unit that supplies the engine.
ここで、前記記憶管理手段は、前記供給手段が前記生成したイメージデータの先頭部分から順に供給できるように、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリにおける単位領域に順に出力することを特徴とする。 Here, the storage management means sequentially outputs the contents of the unit area in the virtual storage area to the unit area in the image data memory so that the supply means can supply the generated image data in order from the beginning. It is characterized by.
また、前記記憶管理手段は、前記供給手段によって供給が完了した前記イメージデータメモリにおける単位領域に、前記仮想記憶領域における単位領域の内容を順に出力することを特徴とする。 Further, the storage management means sequentially outputs the contents of the unit areas in the virtual storage area to the unit areas in the image data memory that have been supplied by the supply means.
さらに、前記記憶管理手段は、前記仮想記憶領域における単位領域が前記イメージデータメモリにおける単位領域のいずれかに割り当てられているか否かを判断する判断手段をさらに備え、前記生成手段が前記イメージデータを生成している間は、前記判断手段による判断に基づいて、前記イメージデータメモリにおける単位領域の内容を前記仮想記憶領域における単位領域に出力するとともに、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリにおける単位領域に出力し、前記供給手段が前記イメージデータを供給している間は、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリにおける単位領域に順に出力することを特徴とする。 Furthermore, the storage management means further comprises determination means for determining whether a unit area in the virtual storage area is assigned to any of the unit areas in the image data memory, and the generation means stores the image data. During generation, based on the determination by the determination means, the contents of the unit area in the image data memory are output to the unit area in the virtual storage area, and the contents of the unit area in the virtual storage area are output to the image. Output to the unit area in the data memory, and while the supplying means supplies the image data, the contents of the unit area in the virtual storage area are sequentially output to the unit area in the image data memory. .
なお、前記単位領域のメモリサイズは、印刷のバンド幅に基づくメモリサイズに対応するように構成することが望ましい。 It is desirable that the memory size of the unit area corresponds to the memory size based on the printing bandwidth.
一方、上記物の発明は方法の発明として把握することもできる。具体的には、本発明は、受信した印刷ジョブデータに基づいて生成したイメージデータをイメージデータメモリに記憶し、前記記憶したイメージデータを前記イメージデータメモリから読み出して印刷エンジンに供給するプリンタのメモリ管理方法であって、連続する単位領域からなる仮想記憶領域を二次記憶装置上に形成し、前記イメージデータメモリにアクセスする際に、前記イメージデータメモリと前記二次記憶装置との間で仮想記憶に関する処理を行うことを特徴とするプリンタのメモリ管理方法である。 On the other hand, the invention of the above can be grasped as a method invention. Specifically, the present invention stores image data generated based on received print job data in an image data memory, reads out the stored image data from the image data memory, and supplies it to a print engine. A management method comprising: forming a virtual storage area composed of continuous unit areas on a secondary storage device, and accessing the image data memory between the image data memory and the secondary storage device. A memory management method for a printer, characterized in that processing relating to storage is performed.
ここで、前記仮想記憶に関する処理は、前記イメージデータの先頭部分から順に供給できるように、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリにおける単位領域に順に出力することを特徴とする。 Here, the processing relating to the virtual storage is characterized in that the contents of the unit area in the virtual storage area are sequentially output to the unit area in the image data memory so that the process can be sequentially supplied from the head portion of the image data.
また、前記仮想記憶に関する処理は、前記供給が完了した前記イメージデータメモリにおける単位領域に、前記仮想記憶領域における単位領域の内容を順に出力することを特徴とする。 The processing relating to the virtual storage is characterized in that the contents of the unit areas in the virtual storage area are sequentially output to the unit areas in the image data memory for which the supply has been completed.
さらに、前記仮想記憶に関する処理は、前記イメージデータを生成している間は、前記仮想記憶領域における単位領域が前記イメージデータメモリにおける単位領域のいずれかに割り当てられているか否かを判断し、割り当てられていると判断した場合に、前記イメージデータメモリにおける単位領域の内容を前記仮想記憶領域における単位領域に出力するとともに、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリの単位領域に出力し、前記イメージデータを供給している間は、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリにおける単位領域に順に出力することを特徴とする。 Further, the processing relating to the virtual storage determines whether or not a unit area in the virtual storage area is assigned to any of the unit areas in the image data memory while the image data is being generated. When it is determined that the content of the unit area in the image data memory is output to the unit area in the virtual storage area, the content of the unit area in the virtual storage area is output to the unit area of the image data memory. While the image data is being supplied, the contents of the unit area in the virtual storage area are sequentially output to the unit area in the image data memory.
また、本発明は、プログラムを実行することにより実現される所定の機能により構成することもできる。具体的には、本発明は、プリンタに所定の機能を実現させるプログラムを記録した記録媒体であって、前記プログラムは、論理アドレスに基づいて得られる物理アドレスに従って、イメージデータメモリに対してアクセスを行い、前記アクセスに際してページフォルトが発生した場合に、前記イメージデータメモリと二次記憶装置との間で仮想記憶に関する処理を行う記憶管理手段と、受信したジョブデータに基づいてイメージデータを生成し、前記生成したイメージデータを仮想記憶領域に展開するための論理アドレスに従って前記記憶手段にアクセスする生成手段と、論理アドレスに従って前記記憶管理手段にアクセスして前記仮想記憶領域に展開されたイメージデータを読み出し、印刷エンジンに供給する供給手段と、を備えたことを特徴とするプログラムを記録した記録媒体であってもよい。 The present invention can also be configured by a predetermined function realized by executing a program. Specifically, the present invention is a recording medium on which a program for causing a printer to realize a predetermined function is recorded. The program accesses the image data memory according to a physical address obtained based on a logical address. When a page fault occurs during the access, storage management means for performing processing related to virtual storage between the image data memory and the secondary storage device, and generating image data based on the received job data, Generation means for accessing the storage means in accordance with a logical address for expanding the generated image data in a virtual storage area, and reading out the image data expanded in the virtual storage area by accessing the storage management means in accordance with a logical address And a supply means for supplying to the print engine A program that symptoms may be recorded recording medium.
なお、前記記録媒体とは、例えば、ハードディスク(HD)、DVD−RAM、フレキシブルディスク(FD)やCD−ROM等のほかに、RAMやROM等のメモリを含む。また、前記プリンタとは、例えば、CPUやMPUといったいわゆる中央処理装置がプログラムを解釈することで所定の処理を行う、いわゆるマイクロコンピュータ等を備えたプリンタをいう。 The recording medium includes, for example, a memory such as a RAM and a ROM in addition to a hard disk (HD), a DVD-RAM, a flexible disk (FD), a CD-ROM, and the like. The printer refers to a printer including a so-called microcomputer or the like in which a so-called central processing unit such as a CPU or MPU performs predetermined processing by interpreting a program.
本発明によれば、少ないイメージデータメモリで高品質印刷を行うことができる安価なプリンタを提供できる。 According to the present invention, an inexpensive printer that can perform high-quality printing with a small amount of image data memory can be provided.
次に、本発明の実施の形態について、図面を参照しつつ説明する。
[第1の実施形態]本実施形態は、二次記憶装置であるハードディスク装置を用いてイメージデータメモリを仮想記憶管理することを特徴とする。
Next, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment] This embodiment is characterized in that image data memory is managed in a virtual storage using a hard disk device as a secondary storage device.
図1は、本実施形態に係るプリンタのハードウェア構成を示す図である。同図において、本実施形態に係るプリンタ1は、ネットワークインターフェース11(以下「ネットワークI/F」という。)、プロセッサ12、ROM13、RAM14、I/Oコントローラ15,16、印刷エンジン17およびハードディスク装置18を備える。また、プリンタ1は、LAN等のネットワークNを介して図示しないコンピュータに接続される。コンピュータは、エディタやワードプロセッサ等のアプリケーションの実行により作成された図形データやテキストデータ等から構成されるドキュメントデータを、印刷実行に際し、印刷ジョブデータに変換し、ネットワークNを介してプリンタ1に送信する。
FIG. 1 is a diagram illustrating a hardware configuration of a printer according to the present embodiment. In FIG. 1, a
ネットワークI/F11は、ネットワークNを介してコンピュータから送信される印刷ジョブデータを受信し、図示しない内部のバッファに保持する。プロセッサ12は、ROM13やRAM14に記憶された所定のプログラムに従って動作し、プリンタ1全体の制御を行う。プロセッサ12は、例えば、印刷ジョブデータに基づいてイメージデータを生成し、また、RAM14に対して割り当てられる仮想記憶領域(スワップ領域)を管理する。なお、これらの詳細については後述する。
The network I /
RAM14は、プログラム作業領域およびデータ作業領域を有する。さらに、このデータ作業領域は、印刷ジョブデータを保持する領域と、印刷ジョブデータに基づいて生成されるイメージデータを保持する領域とに分けられる。RAM14は、典型的には、DRAMによって構成される。これらの領域は、論理的に分割されていても、物理的に分割されていてもよい。
The
I/Oコントローラ15は、RAM14から転送されるイメージデータを、印刷エンジン17の処理状況を監視しながら、印刷エンジン17に送出する。印刷エンジン17は、例えば、紙送り機構やプリントヘッド等を含んで構成されており、紙等の印刷記録媒体に印刷を行うものである。
The I /
I/Oコントローラ16は、ハードディスク装置をアクセスするための制御を行う。I/Oコントローラ16は、例えば、DMA機能により、RAM14とハードディスク装置との間の入出力制御を行う。ハードディスク装置18は、RAM14に対する二次記憶装置として機能する。すなわち、ハードディスク装置18は、プロセッサ12によって実行される各種プログラムを記憶し、また、フォントやオーバーレイ等のデータを記憶する。これらのデータは、プロセッサ12の制御の下、必要に応じてRAM14にロードされる。さらに、本実施形態では、ハードディスク装置18は、RAM14に対する仮想記憶領域として使用される。
The I /
図2は、本実施形態に係るプリンタの機能構成を示す図である。本実施形態に係るプリンタの機能構成は、プロセッサが所定のプログラムを実行し、他のハードウェアと共働して動作することにより実現される。 FIG. 2 is a diagram illustrating a functional configuration of the printer according to the present embodiment. The functional configuration of the printer according to the present embodiment is realized by a processor executing a predetermined program and operating in cooperation with other hardware.
通信部21は、コンピュータとの間でネットワーク通信を行う。通信部21は、印刷ジョブデータに関する通信データを受信した場合には、これを論理的・物理的に変換して印刷ジョブデータを抽出し、ジョブデータメモリ22に出力する。
The
イメージデータ生成部23は、ジョブデータメモリ22に蓄積された印刷ジョブデータを読み出して、これを解釈し、イメージデータを生成する。イメージデータは、紙等の印刷記録媒体に対する印刷イメージに対応したラスタデータである。生成されたイメージデータは、イメージデータメモリ24に展開(記憶)される。本実施形態においては、イメージデータ生成部23が、イメージデータメモリ24の物理空間を超えるサイズを持つイメージデータを展開できるようにするため、仮想記憶に関する処理を管理する記憶管理部25を介して、イメージデータメモリ24にアクセスする。
The image
すなわち、記憶管理部25は、イメージデータメモリ24に対して割り当てられる仮想記憶領域を管理する。換言すれば、記憶管理部25は、イメージデータメモリ24の物理空間を超えるイメージデータをあたかもイメージデータメモリ24に記憶されているかのように仮想的に見せかけるものである。
That is, the
より具体的には、記憶管理部25は、メモリアクセス部251、アドレス変換部252およびページングテーブル部253を備える。メモリアクセス部251は、イメージデータメモリ24をページと呼ばれる固定長の領域(所定の単位領域)に分割して管理して、この所定の単位領域ごとにハードディスク26上の割り当てられた仮想記憶領域との間でページイン(スワップイン)およびページアウト(スワップアウト)を行う。本実施形態においては、この単位領域のサイズを1バンド幅分に合わせるとともに、その数を3ページ(すなわち3バンド分)として構成している。ここで、バンドとは、主走査方向のドット数と副走査方向のドット数とによって決定される印刷領域である。アドレス変換部252は、入力される論理アドレスを物理アドレスに変換する。ページングテーブル部253は、論理アドレスで示される所定の単位領域がイメージデータメモリ部24に存在するか否かに関する情報等から構成されるページングテーブルを記憶する。
More specifically, the
印刷制御部27は、イメージデータ生成部23によって印刷記録媒体(用紙)1ページ分のイメージデータの生成が完了すると、記憶管理部25を介して、イメージデータメモリ24からイメージデータを順次読み出し、印刷エンジン28の処理状態に応じて、イメージデータを印刷エンジン28に供給する。つまり、印刷エンジン28に対するイメージデータの供給のために、印刷制御部27がイメージデータメモリ24に対するアクセスを記憶管理部25に要求すると、記憶管理部25は、必要に応じてハードディスク装置26上の仮想記憶領域から所定の単位領域をイメージデータメモリ24上にページインして、印刷制御部27に出力する。
When the image
図3は、本実施形態に係る記憶管理部25による仮想記憶の原理を説明するための図である。イメージデータメモリ24に対するアクセスは、論理アドレスに従って行われる。論理アドレスは、論理ページ番号とページ内変位とにより構成される。論理ページ番号は、仮想記憶領域上で所定の単位領域ごとに分割された領域にそれぞれ与えられた番号である。また、ページ内変位は、所定の単位領域内における先頭位置からの変位量である。ページングテーブル253は、論理ページ番号に対応したエントリーに、そのページ(所定の単位領域)がイメージデータメモリ24上に存在するか否かを示すフラグ、書き込みがあったか否かを示すフラグ、物理ページ番号およびハードディスク装置上のファイル名等の情報を有する。
FIG. 3 is a diagram for explaining the principle of virtual storage by the
なお、本実施形態に係るプリンタ1は、イメージデータを生成して仮想記憶領域上に展開する際は、ページインおよびページアウトを考慮するように構成されるが、イメージデータを印刷エンジンに供給する際には、ページアウトを考慮せず、所定の単位領域を順にページインするように構成される。
Note that the
メモリアクセス部251は、論理アドレスに従ってイメージデータメモリ24に対するアクセスを受け付けると、ページングテーブル部253を参照し、論理アドレス中の論理ページ番号に対応するエントリーの存在フラグをチェックする。その結果、イメージデータメモリ24上に存在していると判断する場合には、アドレス変換部252は、その物理ページ番号および論理アドレス中のページ内変位に基づいて物理アドレスを算出し、メモリアクセス部251にこれを送出する。一方、存在しないと判断する場合には、メモリアクセス部251は、ページング処理を行う。つまり、メモリアクセス部251は、所定の追い出しアルゴリズムに従ってイメージデータメモリ24上の物理ページを決定し、そのページの書き込みフラグが真である(書き込みがあった)ならば、その内容を仮想記憶領域上に退避して、読み出すべき論理ページをその位置にページインする。
When the
次に、本実施形態に係るプリンタ1の動作について説明する。
Next, the operation of the
図4は、本実施形態に係るプリンタ1の動作を説明するための図である。同図において、プリンタ1は、ページングテーブル部253に記憶されたページングテーブルを初期化し(STEP41)、印刷待ち状態になる。プリンタ1は、コンピュータから印刷ジョブデータを受信すると(STEP42)、受信した印刷ジョブデータを逐次解釈して、イメージデータを生成し、論理空間上にイメージデータを展開する(STEP43およびSTEP44)。すなわち、プリンタ1は、論理アドレスに従って仮想記憶領域上に展開されるイメージデータを、イメージデータメモリ24の物理アドレスに展開する。この場合において、イメージデータメモリ24上に割り当てられていない単位領域をアクセスしようとする場合には、所定の仮想記憶処理を行う。プリンタ1は、印刷記録媒体の1ページ分のイメージデータを生成するまで、上記STEP42〜STEP44の処理を繰り返す。なお、印刷ジョブデータを2部以上の印刷を行うときは、印刷対象ページの2部目以降は、STEP46〜STEP49が該当部数分繰り返されることになる。
FIG. 4 is a diagram for explaining the operation of the
プリンタ1は、1ページ分のイメージデータを生成したと判断した場合には(STEP45)、イメージデータメモリ24からイメージデータメモリを読み出して、これを印刷エンジンに供給する(STEP46およびSTEP47)。すなわち、プリンタ1は、論理アドレスに従って仮想記憶領域上に展開されたイメージデータを、イメージデータメモリ24の物理アドレスに展開し、これを順次印刷エンジンに供給する。この場合において、イメージデータメモリ24上に割り当てられていない単位領域をアクセスしようとする場合には、所定の仮想記憶処理が行われる。プリンタ1は、1ページ分のイメージデータを印刷エンジンに供給するまで、上記STEP46〜STEP47の処理を繰り返す(STEP48)。また、プリンタ1は、受信した印刷ジョブデータをすべて処理するまで、つまり全ページ分印刷が完了するまで、上記処理を繰り返す(STEP49)。
When the
次に、図4に示した仮想記憶処理の詳細を図5〜図7に従って説明する。 Next, details of the virtual storage processing shown in FIG. 4 will be described with reference to FIGS.
上述したように、本実施形態に係るプリンタ1は、イメージデータを生成して仮想記憶領域上に展開する際(イメージデータ生成モード)は、ページインおよびページアウトを考慮した仮想記憶処理を行うが、イメージデータを印刷エンジンに供給する際(イメージデータ供給モード)は、ページアウトを考慮せず、ページインのみを考慮した仮想記憶処理を行う。
As described above, the
図5は、本実施形態に係るプリンタの仮想記憶処理を説明するための図である。同図において、記憶管理部25は、論理アドレスの中から論理ページ番号を抽出し(STEP51)、この論理ページ番号に従ってページングテーブルのエントリを参照する(STEP52)。記憶管理部25は、そのエントリの存在フラグが真であるか否か、つまり、イメージデータメモリ24上にその論理ページが存在するか否かをチェックする(STEP53)。STEP53において、存在フラグが真であると判断される場合には、記憶管理部25は、ページングテーブルのエントリから物理ページ番号を抽出する(STEP54)。記憶管理部25は、抽出した物理ページ番号および論理アドレスの中のページ内変位に基づいてイメージデータメモリ24上の物理アドレスを算出し(STEP55)、イメージデータメモリ24をアクセスする(STEP56)。なお、イメージデータメモリ24をアクセスした場合には、記憶管理部25は、ページングテーブルにおけるアクセスされた論理ページの書き込みフラグを真に変更する(STEP57)。
FIG. 5 is a diagram for explaining virtual storage processing of the printer according to the present embodiment. In the figure, the
一方、STEP53において、存在フラグが偽であると判断される場合には、ページング処理を行う(STEP58)。ページング処理が発生した場合、イメージデータメモリ24に対するアクセスは、ページ処理が完了するまでの間、待機状態になる。
On the other hand, if it is determined in
図6は、イメージデータ生成モードにおけるページング処理の動作を説明するための図である。すなわち、記憶管理部25は、イメージデータメモリ24上に、ページイン可能な空き物理ページ(所定の単位領域)があるか否かを判断する(STEP61)。記憶管理部25は、空き物理ページがないと判断する場合には、所定の追い出しアルゴリズムに従って、追い出すべき物理ページを決定し、この物理ページの内容をハードディスク装置26の仮想記憶領域上に退避する(STEP62)。この場合の追い出しアルゴリズムは、例えば、LRU(LeastRecently Used)法により実現される。一方、STEP61において空き物理ページがあると判断する場合、またはSTEP62においてページアウトが完了した後、記憶管理部25は、ハードディスク26の仮想記憶領域上の論理ページの内容をイメージデータメモリ24上の物理ページに書き込む(STEP63)。記憶管理部25は、イメージデータメモリ24上の物理ページに割り当てられた論理ページを管理するため、ページングテーブルの内容を変更する(STEP64)。
FIG. 6 is a diagram for explaining the operation of the paging process in the image data generation mode. That is, the
図7は、イメージデータ供給モードにおけるページング処理の動作を説明するための図である。イメージデータ供給モードにおけるページング処理は、イメージデータ生成モードにおけるページング処理に対して、ページアウトによるイメージデータメモリ24の物理ページの内容を、ハードウェア装置26の仮想記憶領域上に退避しない点が異なる。すなわち、記憶管理部25は、イメージデータメモリ24上に、ページイン可能な空き物理ページがないと判断する場合には(STEP71)、所定の追い出しアルゴリズムに従って、ページインされるべき物理ページを決定する(STEP72)。この場合、記憶管理部25は、ページインされるべき物理ページを決定するのみであり、その物理ページの内容をハードディスク26の仮想記憶領域上に退避することを行わない。ページインされるべき物理ページを決定すると、記憶管理部25は、ハードディスク26の仮想記憶領域上の論理ページの内容をイメージデータメモリ24上の物理ページに書き込み(STEP73)、ページングテーブルの内容の変更を行う(STEP75)。
FIG. 7 is a diagram for explaining the operation of the paging process in the image data supply mode. The paging process in the image data supply mode is different from the paging process in the image data generation mode in that the contents of the physical page of the
図6または図7に示したページング処理が完了すると、図5に示したSTEP54以降の処理を行う。
When the paging process shown in FIG. 6 or FIG. 7 is completed, the processes after
なお、本実施形態に係るプリンタの動作はシーケンシャルに構成されたが、これは説明の便宜のためであり、特にこれにこだわるものではない。すなわち、動作に矛盾が生じない限り、並行的に動作するように構成され、または順序を入れ替えて構成されてもよい。 Note that although the operation of the printer according to the present embodiment is configured sequentially, this is for the convenience of explanation and is not particularly limited. That is, as long as there is no contradiction in operation, the operation may be performed in parallel, or the order may be changed.
次に、本実施形態に係るプリンタの動作例を、図8〜図10を用いて説明する。例えば、プリンタ1が、図8に示すような印刷イメージを実現する印刷ジョブデータを受信したとする。印刷イメージは、複数のオブジェクト枠から構成される。各オブジェクト枠には、図形データやテキストデータが割り当てられる。コンピュータは、オブジェクト枠ごとに印刷ジョブデータを生成し、順次プリンタに送信する。図中、丸数字は、プリンタが印刷ジョブデータを受信した順番を示すものとする。
Next, an operation example of the printer according to the present embodiment will be described with reference to FIGS. For example, assume that the
まず、プリンタ1は、印刷ジョブデータ1を受信すると、これを解釈してイメージデータを生成し、仮想記憶領域上の所定の論理ページに展開する(図9(a))。つまり、記憶管理部25によって、イメージデータメモリ24上の物理ページ(物理ページ番号1および2)に展開されることになる。次に、印刷ジョブデータ2を受信すると、1ページ分を空きページ(物理ページ番号3)に展開し、残りのページについては所定の追い出しアルゴリズムに従って決定された、例えば、物理ページ番号2の内容をページアウトした後に、展開する(同図(b))。
First, when the
最後に、印刷ジョブデータ3を受信すると、所定の追い出しアルゴリズムに従って決定された物理ページ番号1の内容を仮想記憶領域上に退避する。そして、プリンタ1は、ページアウトしたページ(物理ページ番号1)に論理ページに割り当て、印刷ジョブデータ3に基づいてイメージデータを生成し、展開する(同図(c))。
Finally, when
イメージデータの生成が完了すると、プリンタ1は、図10に示すように、仮想記憶領域上の論理ページを順次イメージデータメモリ24上の物理ページに展開する(同図(a))。この場合、イメージデータメモリ24上の物理ページの内容をハードディスク26に退避させることなく、上書きするように順次展開する(同図(b))。
When the generation of the image data is completed, the
以上のように、本実施形態によれば、ハードディスク装置の仮想記憶領域に対して生成したイメージデータを展開することができるようになる。すなわち、イメージデータメモリの物理空間を超えるサイズのイメージデータを扱うことができるようになる。 As described above, according to the present embodiment, the generated image data can be expanded in the virtual storage area of the hard disk device. That is, image data having a size exceeding the physical space of the image data memory can be handled.
従って、メモリ不足の状態に陥ることがなく、解像度を低下させる等の画像最適化処理を行う必要がないため、ユーザが望む本来の印刷品質を提供することができるようになる。 Therefore, it does not fall into a memory shortage state, and it is not necessary to perform image optimization processing such as lowering the resolution, so that the original print quality desired by the user can be provided.
また、高解像度、フルカラーを実現する大容量のイメージデータを扱う場合であっても、それに応じたイメージデータメモリをプリンタに搭載する必要がなくなる。従って、イメージデータメモリに比較してビット単価の安いハードディスクを用いてプリンタを構成することができるので、高印刷品質のプリンタを安価に実現することができるようになる。 Further, even when dealing with a large amount of image data that realizes high resolution and full color, it is not necessary to install an image data memory corresponding to the image data memory in the printer. Therefore, since a printer can be configured using a hard disk having a lower cost per bit than the image data memory, a printer with high print quality can be realized at low cost.
さらに本実施形態によれば、イメージデータを印刷エンジンに供給する際には、すでにイメージデータメモリ上の内容をハードディスク装置上に退避することなく、ハードディスク装置から順次イメージデータメモリ上に読み出して印刷エンジンに供給するので、仮想記憶処理によるオーバーヘッドを可能な限り小さくすることができる。これにより、小さなイメージデータメモリで高速印刷、高品質印刷のプリンタを実現することができる。 Furthermore, according to the present embodiment, when supplying image data to the print engine, the contents in the image data memory are not saved in the hard disk device, but are sequentially read out from the hard disk device to the image data memory. Therefore, the overhead due to the virtual storage process can be reduced as much as possible. As a result, a printer capable of high-speed printing and high-quality printing can be realized with a small image data memory.
また、本実施形態によれば、イメージデータメモリ上の単位領域のサイズ(物理ページサイズ)と印刷のバンドの大きさとが対応するように構成しているため、1回のページインに対して1回の印刷エンジンへの供給が可能になる。このため、仮想記憶処理によるオーバーヘッドを可能な限りなくすことができ、効率的な動作を実現できる。 Further, according to the present embodiment, the unit area size (physical page size) on the image data memory and the print band size correspond to each other. Can be supplied to the printing engine twice. For this reason, the overhead due to the virtual storage process can be eliminated as much as possible, and an efficient operation can be realized.
[第2の実施形態]本実施形態は、二次記憶装置であるハードディスク装置を用いてジョブデータメモリおよびイメージデータメモリを仮想記憶管理することを特徴とする。 [Second Embodiment] This embodiment is characterized in that a job data memory and an image data memory are managed in a virtual storage by using a hard disk device as a secondary storage device.
図11は、本実施形態に係るプリンタ1の機能構成を示す図である。同図において、第1の実施形態と同じ機能実現手段には、同じ符号が付されている。すなわち、本実施形態に係るプリンタ1は、ジョブデータメモリおよびイメージデータメモリに対するアクセスを、常に記憶管理部25を介して行うように構成されている。
FIG. 11 is a diagram illustrating a functional configuration of the
通信部21は、印刷ジョブデータに関する通信データを受信した場合には、これを論理的・物理的に変換して印刷ジョブデータを抽出し、これを記憶管理部25に送出する。記憶管理部25は、上記実施形態と同様に、仮想記憶処理を管理する。すなわち、記憶管理部25は、論理アドレスに従って仮想記憶領域上に展開される印刷ジョブデータを、ジョブデータメモリ22の物理アドレスに変換し、展開する。この場合において、ジョブデータメモリ22上に割り当てられていない単位領域をアクセスしようとする場合には、所定の仮想記憶処理を行う。
When the
なお、その他の機能実現手段については、上記実施形態と同じであるため説明を省略する。 The other function realizing means is the same as that in the above embodiment, and the description thereof is omitted.
以上のように、本実施形態によれば、ジョブデータメモリの物理空間を超えるサイズの印刷ジョブデータを扱うことができるようになる。このことは、一度に複数の印刷ジョブデータを受信する場合に、特に有効である。 As described above, according to the present embodiment, print job data having a size exceeding the physical space of the job data memory can be handled. This is particularly effective when receiving a plurality of print job data at once.
1…プリンタ;21…通信部;22…ジョブデータメモリ;23…イメージデータ生成部;24…イメージデータメモリ;25…記憶管理部;26…ハードディスク装置;27…印刷制御部;28…印刷エンジン
DESCRIPTION OF
Claims (3)
前記生成手段によって生成されたイメージデータを単位領域ごとに記憶するイメージデータメモリと、
連続する単位領域からなる仮想記憶領域が形成される二次記憶装置と、
前記イメージデータメモリと前記二次記憶装置との間の仮想記憶に関する処理を管理する記憶管理手段と、
前記イメージデータメモリに記憶されたイメージデータを印刷エンジンに供給する供給手段とを備え、
前記記憶管理手段は、前記仮想記憶領域における単位領域が前記イメージデータメモリにおける単位領域のいずれかに割り当てられているか否かを判断する判断手段をさらに備え、前記生成手段が前記イメージデータを生成している間は、前記判断手段による判断に基づいて、前記イメージデータメモリにおける単位領域の内容を前記仮想記憶領域における単位領域に出力するとともに、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリにおける単位領域に出力する処理を実行可能に構成されていることを特徴とするプリンタ。 Generating means for generating image data based on the received job data;
An image data memory for storing the image data generated by the generating means for each unit area;
A secondary storage device in which a virtual storage area composed of continuous unit areas is formed;
Storage management means for managing processing related to virtual storage between the image data memory and the secondary storage device;
Supply means for supplying image data stored in the image data memory to a print engine;
The storage management means further comprises determination means for determining whether a unit area in the virtual storage area is allocated to any of the unit areas in the image data memory, and the generation means generates the image data. While the content of the unit area in the image data memory is output to the unit area in the virtual storage area based on the determination by the determination means, and the content of the unit area in the virtual storage area is output to the image data memory A printer configured to be capable of executing a process of outputting to a unit area.
連続する単位領域からなる仮想記憶領域を二次記憶装置上に形成し、前記イメージデータメモリにアクセスする際に、前記イメージデータメモリと前記二次記憶装置との間で仮想記憶に関する処理を行う工程を備え、
前記工程は、前記イメージデータを生成している間は、前記仮想記憶領域における単位領域が前記イメージデータメモリにおける単位領域のいずれかに割り当てられているか否かを判断し、割り当てられていると判断した場合に、前記イメージデータメモリにおける単位領域の内容を前記仮想記憶領域における単位領域に出力するとともに、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリの単位領域に出力する工程を含むことを特徴とするプリンタのメモリ管理方法。 A memory management method for a printer that stores image data generated based on received print job data in an image data memory, reads the stored image data from the image data memory, and supplies the image data to a print engine.
Forming a virtual storage area composed of continuous unit areas on a secondary storage device and performing a process related to virtual storage between the image data memory and the secondary storage device when accessing the image data memory; With
During the generation of the image data, the step determines whether a unit area in the virtual storage area is allocated to any of the unit areas in the image data memory, and determines that the unit area is allocated. And outputting the contents of the unit area in the image data memory to the unit area in the virtual storage area and outputting the contents of the unit area in the virtual storage area to the unit area of the image data memory. A memory management method for a printer.
前記記憶管理手段は、前記生成手段が前記記憶管理手段にアクセスする間に、前記イメージデータメモリにおける単位領域の内容を前記仮想記憶領域における単位領域に出力するとともに、前記仮想記憶領域における単位領域の内容を前記イメージデータメモリにおける単位領域に出力する処理を実行可能に構成されていることを特徴とするプログラムを記録した記録媒体。 A recording medium storing a program for causing a printer to realize a predetermined function, wherein the program accesses an image data memory according to a physical address obtained based on a logical address, and a page fault occurs during the access A storage management means for performing processing relating to virtual storage between the image data memory and the secondary storage device, generating image data based on the received job data, and storing the generated image data in a virtual storage area Generating means for accessing the storage management means in accordance with a logical address for developing the image data; and supplying means for accessing the storage management means in accordance with a logical address to read out image data developed in the virtual storage area and supplying the image data to the print engine The storage management means includes the raw While the generation means accesses the storage management means, the contents of the unit area in the image data memory are output to the unit area in the virtual storage area, and the contents of the unit area in the virtual storage area are output in the image data memory. A recording medium on which a program is recorded, which is configured to be capable of executing processing to be output to a unit area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005113052A JP2005231374A (en) | 2005-04-11 | 2005-04-11 | Printer, method for managing memory of the printer and record medium recording program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005113052A JP2005231374A (en) | 2005-04-11 | 2005-04-11 | Printer, method for managing memory of the printer and record medium recording program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11019331A Division JP2000222140A (en) | 1999-01-28 | 1999-01-28 | Printer, memory managing method for printer, and recording medium where program is recorded |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005231374A true JP2005231374A (en) | 2005-09-02 |
Family
ID=35014779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005113052A Pending JP2005231374A (en) | 2005-04-11 | 2005-04-11 | Printer, method for managing memory of the printer and record medium recording program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005231374A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011204052A (en) * | 2010-03-26 | 2011-10-13 | Seiko Epson Corp | Image processor and image processing program |
-
2005
- 2005-04-11 JP JP2005113052A patent/JP2005231374A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011204052A (en) * | 2010-03-26 | 2011-10-13 | Seiko Epson Corp | Image processor and image processing program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6345350B2 (en) | Information processing apparatus printer, method of controlling information processing apparatus and record medium | |
JP3797013B2 (en) | Image processing method, printing apparatus, image processing system, and recording medium | |
US6483604B1 (en) | Disk-based image storage system and method with prioritized loading and retrieval operations | |
JP2000335022A (en) | Printer control device | |
JP5849400B2 (en) | Image forming method and image forming apparatus | |
JP3575382B2 (en) | Print control method for generating and transmitting print commands, print control device, and recording medium storing program for the same | |
JP2005231374A (en) | Printer, method for managing memory of the printer and record medium recording program | |
JP2958229B2 (en) | Printing apparatus and control method thereof | |
JP2000222140A (en) | Printer, memory managing method for printer, and recording medium where program is recorded | |
US9667531B2 (en) | Image processing apparatus and control method | |
US6678804B1 (en) | Apparatus and method for memory access control | |
JP3230516B2 (en) | Printer, recording medium and printer memory management method | |
JP2008262439A (en) | Information processor, print document adjustment processing program and storage medium | |
JP2007067579A (en) | Image forming apparatus | |
JP5268283B2 (en) | Image forming apparatus | |
JP2000181644A (en) | Image processor, control method therefor, printer and recording medium | |
JP3622525B2 (en) | Printing apparatus, control method therefor, and recording medium | |
JP3359165B2 (en) | Printer control device and printer control method | |
JP4116997B2 (en) | Image processing device | |
KR100636817B1 (en) | The graphic execution device for reducing the transaction with the system bus | |
JP3001081B2 (en) | Printer | |
JP2003162199A (en) | Printer | |
JP2737880B2 (en) | Character processing apparatus and method | |
JPH0535733A (en) | Electronic equipment | |
JP2006159458A (en) | Image output device |