JP7626972B2 - Computer program and image processing device - Google Patents
Computer program and image processing device Download PDFInfo
- Publication number
- JP7626972B2 JP7626972B2 JP2021034857A JP2021034857A JP7626972B2 JP 7626972 B2 JP7626972 B2 JP 7626972B2 JP 2021034857 A JP2021034857 A JP 2021034857A JP 2021034857 A JP2021034857 A JP 2021034857A JP 7626972 B2 JP7626972 B2 JP 7626972B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- data
- processing
- instruction
- 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.)
- Active
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Facsimiles In General (AREA)
Description
本明細書は、印刷データを生成し、印刷実行部に供給する技術に関する。 This specification relates to a technology for generating print data and supplying it to a print execution unit.
特許文献1に開示されたプリンタのコントローラは、ユーザが画像ファイルと印刷設定(用紙のサイズやレイアウトなど)とを選択した後に印刷ボタンを押下したときに、JPEG処理、リサイズ処理、画質補正処理などを実行して、展開画像データを生成する。コントローラは、展開画像データから印刷機構が印刷可能な印刷データを生成し、該印刷データに基づいて印刷機構を制御する。これによって、画像の印刷が実現される。
The controller of the printer disclosed in
しかしながら、上記技術では、印刷データの生成処理が開始された後に、生成処理の処理条件が変更されることは考慮されていない。このために、印刷データの生成処理が開始された後に、生成処理の処理条件が変更される場合に、印刷データの生成処理に要する時間が長くなる場合があった。 However, the above technology does not take into consideration that the processing conditions for the print data generation process may be changed after the print data generation process has started. As a result, if the processing conditions for the print data generation process are changed after the print data generation process has started, the time required for the print data generation process may be longer.
本明細書は、印刷データの生成処理が開始された後に、生成処理の処理条件が変更される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる技術を開示する。 This specification discloses a technology that can prevent the time required for print data generation processing from increasing when the processing conditions for the generation processing are changed after the print data generation processing has started.
本明細書に開示された技術は、以下の適用例として実現することが可能である。 The technology disclosed in this specification can be realized as the following application examples:
[適用例1]コンピュータプログラムであって、ユーザによって入力されるデータ選択指示を取得し、印刷条件を変更する印刷条件変更指示であって前記データ選択指示の入力後にユーザによって入力される前記印刷条件変更指示を取得する指示取得機能と、前記データ選択指示に基づいて選択された対象画像データを用いて印刷データを生成する生成処理であって複数個の処理を含む前記生成処理を実行する生成機能と、前記印刷条件変更指示が取得される場合に、前記複数個の処理のそれぞれについて、前記印刷条件変更指示に基づく前記印刷条件の変更に応じて前記印刷条件の変更前とは異なる出力データを出力すべき処理である変更対象処理であるか否かを判断する判断機能と、をコンピュータに実現させ、前記生成機能は、前記データ選択指示が取得された後に前記印刷データの生成を開始し、前記生成機能は、前記印刷データの生成の開始後に、前記印刷条件変更指示が取得される場合に、前記複数個の処理のうちの開始済みの処理のうち、前記変更対象処理の再処理を実行し、前記開始済みの処理のうち、前記変更対象処理とは異なる処理の前記再処理を実行せず、前記再処理は、入力データの少なくとも一部を変更して処理を実行し直すことである、コンピュータプログラム。 [Application Example 1] A computer program that causes a computer to realize the following: an instruction acquisition function that acquires a data selection instruction input by a user, and acquires a printing condition change instruction that changes printing conditions and is input by the user after the input of the data selection instruction; a generation function that executes a generation process that generates print data using target image data selected based on the data selection instruction, the generation process including a plurality of processes; and a judgment function that, when the printing condition change instruction is acquired, judges whether each of the plurality of processes is a process to be changed, which is a process that should output output data different from before the printing conditions were changed in response to the change of the printing conditions based on the printing condition change instruction, and the generation function starts generating the print data after the data selection instruction is acquired, and when the printing condition change instruction is acquired after the start of generation of the print data, the generation function re-processes the process to be changed among the processes that have been started among the plurality of processes, does not re-process a process that is different from the process to be changed among the processes that have been started, and the re-processing changes at least a part of the input data and re-executes the process.
上記構成によれば、印刷データの生成の開始後に、印刷条件変更指示が取得される場合に、複数種類の処理のうちの開始済みの処理のうち、変更対象処理であると判断される処理を再度実行し、開始済みの処理のうち、前記変更対象処理でないと判断される処理を再度実行しない。この結果、印刷データの生成処理が開始された後に、生成処理の処理条件が変更される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる。さらに、印刷データの生成処理が開始された後に、生成処理の処理条件が変更される場合に、適切な印刷データを生成できる。 According to the above configuration, when a print condition change instruction is acquired after the start of print data generation, among the multiple types of processes, a process that has already started and is determined to be a process to be changed is re-executed, and among the processes that have already started and are determined not to be a process to be changed, is not re-executed. As a result, when the processing conditions of the generation process are changed after the print data generation process has started, it is possible to prevent the time required for the print data generation process from becoming longer. Furthermore, when the processing conditions of the generation process are changed after the print data generation process has started, appropriate print data can be generated.
なお、本明細書に開示の技術は、種々の態様で実現することが可能であり、例えば、画像処理方法および画像処理装置、印刷方法および印刷装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体(例えば、一時的ではない記録媒体)、等の形態で実現することができる。 The technology disclosed in this specification can be realized in various forms, such as an image processing method and image processing device, a printing method and printing device, a computer program for realizing the functions of those methods or devices, a recording medium on which that computer program is recorded (e.g., a non-transitory recording medium), etc.
A.実施例:
A-1: 印刷システム1000の構成
次に、実施の形態を実施例に基づき説明する。図1は、実施例の印刷システム1000の構成を示すブロック図である。
A. Example:
A-1: Configuration of the
印刷システム1000は、プリンタ200と、本実施例の画像処理装置としての端末装置300と、を含んでいる。プリンタ200と、端末装置300と、は、ネットワークNWを介して、通信可能に接続されている。本実施例では、ネットワークNWは、Wi-fi規格に準拠した無線通信が行われる無線ネットワークである。
The
端末装置300は、プリンタ200のユーザが使用する計算機であり、例えば、スマートフォンである。端末装置300は、端末装置300のコントローラとしてのCPU310と、ハードディスクドライブやSSD(Solid State Drive)などの不揮発性記憶装置320と、RAMなどの揮発性記憶装置330と、ユーザによる操作を取得するためのボタンやタッチパネルなどの操作部360と、液晶ディスプレイなどの表示部370と、通信部380と、を備えている。通信部380は、ネットワークNWに接続するためのインタフェース(本実施例では無線インタフェース)を含む。
The
揮発性記憶装置330は、CPU310のためのバッファ領域331を提供する。不揮発性記憶装置320には、複数個のコンピュータプログラム、具体的には、アプリケーションプログラムAPと、OSプログラムOPと、が格納されている。
The
アプリケーションプログラムAPは、プリンタ200に画像を印刷させる機能をCPU310に実現させるプログラムである。CPU310がアプリケーションプログラムAPを実行することによって実現される具体的な処理については後述する。アプリケーションプログラムAPは、例えば、サーバからダウンロードされる形態にて、プリンタ200の製造者によって提供される。
The application program AP is a program that causes the
OSプログラムOPは、オペレーティングシステム(OS)としての機能をCPU310に実現させるプログラムである。OSプログラムOPは、Android(登録商標)、iOS(登録商標)、Windows(登録商標)などの公知のプログラムである。
The OS program OP is a program that causes the
プリンタ200は、例えば、印刷実行部としての印刷機構250と、印刷機構250のための制御装置としてのCPU210と、ハードディスクやフラッシュメモリなどの不揮発性記憶装置220と、RAMなどの揮発性記憶装置230と、ユーザによる操作を取得するためのボタンやタッチパネルなどの操作部260と、液晶ディスプレイなどの表示部270と、通信部280と、を備えている。プリンタ200は、通信部280を介して、外部装置、例えば、ユーザの端末装置(図示省略)と通信可能に接続される。
The
揮発性記憶装置230は、CPU210が処理を行う際に生成される種々の中間画像データを一時的に格納するバッファ領域231を提供する。不揮発性記憶装置220には、コンピュータプログラムPGが格納されている。コンピュータプログラムPGは、本実施例では、プリンタ200を制御するための制御プログラムである。コンピュータプログラムPGは、プリンタ200の出荷時に不揮発性記憶装置220に格納されて提供され得る。これに代えて、コンピュータプログラムPGは、サーバからダウンロードされる形態で提供されても良いし、DVD-ROMなどに格納される形態で提供されてもよい。
The
印刷機構250は、複数種類のインク、例えば、シアン(C)、マゼンタ(M)、イエロ(Y)、ブラック(K)の各インクを吐出して用紙などの印刷媒体に印刷を行うインクジェット方式の印刷機構である。これに代えて、印刷機構250は、複数種類のトナーを用いて、印刷媒体に印刷を行う電子写真方式の印刷機構であっても良い。
The
A-2.印刷アプリケーションの概要
上述したアプリケーションプログラムAPを実行することによってCPU310が実現する機能を「印刷アプリケーションPA」とも呼ぶ。印刷アプリケーションPAは、元画像データを用いて、印刷データを生成し、該印刷データを用いてプリンタ200に印刷を実行させる。本実施例の元画像データは、例えば、不揮発性記憶装置320に格納されたユーザの画像データである。これらの画像データは、JPEG(Joint Photographic Experts Group)、PDF(Portable Document Format)、XPS(XML Paper Specification)などの様々な形式の画像ファイルとし保存されている。
A-2. Overview of the Print Application The function realized by the
図2は、印刷アプリケーションPAの機能的な構成を示すブロック図である。印刷アプリケーションPAは、ユーザインタフェース(UI)処理部UPと、画像処理部IPと、を備えている。 Figure 2 is a block diagram showing the functional configuration of the print application PA. The print application PA includes a user interface (UI) processing unit UP and an image processing unit IP.
UI処理部UPは、ユーザインタフェース(UI)画面を表示部270に表示する。図3は、UI画面の一例を示す図である。図3(A)のUI画面は、メイン画面WI1である。UI処理部UPは、例えば、印刷アプリケーションが起動されたときにメイン画面WI1を表示部370に表示する。メイン画面WI1は、プレビュー画像表示領域PWと、ボタンBT1~BT3、SB1、SB2と、を含む。
The UI processing unit UP displays a user interface (UI) screen on the
プレビュー画像表示領域PWは、ユーザによって選択された元画像データによって示される元画像を含む印刷画像をユーザが確認するための画像(プレビュー画像PIとも呼ぶ)が表示される領域である。ユーザによって元画像データが選択されていない場合には、プレビュー画像表示領域PWには、プレビュー画像は表示されない。切替ボタンSB1、SB2は、複数個の元画像データが選択されている場合に、複数個の元画像データに対応する複数個のプレビュー画像PIのうち、プレビュー画像表示領域PWに表示されるプレビュー画像PIを切り替えるためのボタンである。 The preview image display area PW is an area where an image (also called a preview image PI) is displayed, allowing the user to check the print image including the original image indicated by the original image data selected by the user. If the original image data is not selected by the user, no preview image is displayed in the preview image display area PW. The switch buttons SB1 and SB2 are buttons for switching the preview image PI displayed in the preview image display area PW among the multiple preview images PI corresponding to the multiple original image data when multiple original image data are selected.
メイン画面WI1において画像選択ボタンBT1が押下されると、UI処理部UPは、メイン画面WI1に代えて、図3(B)の画像選択画面WI2を表示部270に表示する。画像選択画面WI2は、複数個の画像ファイルのリストSLと、リストSLの中から1以上の画像ファイルを選択するためのチェックボックスCBと、ボタンBT4、BT5と、を含む。本実施例では、図3(B)に示すように、1個の画像を示す画像データを含む画像ファイル、例えば、JPEG形式やPNG形式の画像ファイルが選択される場合には、複数個の画像ファイルを選択することが許容される。この場合には、各画像ファイルに含まれる各画像データが元画像データとして選択される。
When the image selection button BT1 is pressed on the main screen WI1, the UI processing unit UP displays the image selection screen WI2 of FIG. 3(B) on the
また、複数個のページ画像データを含む画像ファイル、例えば、PDF形式の画像ファイルが選択される場合には、1個の画像ファイルのみが選択可能である。そして、1個の画像ファイルに含まれる複数個のページ画像データの中から複数個のページ画像データを選択することが許容される。この場合には、選択された各ページ画像データが元画像データとして選択される。PDF形式の画像ファイル、および、当該ファイル内のページ画像データを選択するためのUI画面の図示は省略する。 In addition, when an image file containing multiple page image data, for example an image file in PDF format, is selected, only one image file can be selected. Then, it is permitted to select multiple page image data from the multiple page image data contained in one image file. In this case, each selected page image data is selected as the original image data. Illustrations of the PDF format image file and the UI screen for selecting page image data within the file are omitted.
画像選択画面WI2において決定ボタンBT5が押下されると、UI処理部UPは、その時点で画像選択画面WI2にて選択されている画像ファイルに含まれる画像データを元画像データとして決定し、画像選択画面WI2に代えて、メイン画面WI1を表示部270に表示する。すなわち、画像選択画面WI2を介して、UI処理部UPは、ユーザから元画像データを選択するデータ選択指示を取得する。画像選択画面WI2においてリターンボタンBT4が押下されると、UI処理部UPは、元画像データを決定することなく、画像選択画面WI2に代えて、メイン画面WI1を表示部270に表示する。
When the decision button BT5 is pressed on the image selection screen WI2, the UI processing unit UP decides that the image data contained in the image file currently selected on the image selection screen WI2 is the original image data, and displays the main screen WI1 on the
データ選択指示が取得された後に、メイン画面WI1において印刷指示ボタンBT3が押下されると、UI処理部UPは、データ選択指示に対応する印刷指示を取得する。以下では、データ選択指示に対応する印刷指示は、該データ選択指示によって選択された元画像データを用いて生成される印刷ジョブを用いた印刷をプリンタ200に実行させるための指示を意味する。該印刷指示が取得された後に、印刷ジョブがプリンタ200に送信される。
When the print instruction button BT3 on the main screen WI1 is pressed after the data selection instruction is acquired, the UI processing unit UP acquires a print instruction corresponding to the data selection instruction. In the following, the print instruction corresponding to the data selection instruction means an instruction to cause the
データ選択指示が入力された後に、印刷指示が取得される前に、ユーザは画像選択画面WI2において別の元画像データを選択して決定ボタンBT5を押下することによって、データ変更指示を入力することができる。データ変更指示は、印刷に用いられるべき元画像データを変更する指示である。 After a data selection instruction is input, but before a print instruction is obtained, the user can input a data change instruction by selecting different original image data on the image selection screen WI2 and pressing the confirm button BT5. A data change instruction is an instruction to change the original image data to be used for printing.
メイン画面WI1において印刷設定ボタンBT2が押下されると、UI処理部UPは、メイン画面WI1に代えて、図3(C)の印刷設定画面WI3を表示部270に表示する。印刷設定画面WI3は、複数個の設定項目について、印刷設定を入力するための入力要素を含む。図3(C)の例では、印刷のカラーモード、用紙サイズ、印刷品質について、印刷設定を入力するためのプルダウンメニューPM1~PM3が図示されている。プルダウンメニューPM1を介して、カラーモードは、複数個の選択肢(例えば、モノクロモードとカラーモード)のいずれかに設定される。プルダウンメニューPM2を介して、用紙サイズは、複数個の選択肢(例えば、A3、A4、A5)のいずれかに設定される。プルダウンメニューPM3を介して、印刷品質は、複数個の選択肢(例えば、高画質(低速)、低画質(高速))のいずれかに設定される。図示は省略するが、印刷設定画面WI3を介して設定される設定項目は、他の様々な設定項目、具体的には、余白の設定、印刷部数、1個の印刷画像に含まれる元画像の個数(割付数とも呼ぶ、例えば、1in1,2in1,4in1)、両面印刷/片面印刷の指定、トレイ設定(使用する用紙が収容される給紙トレイ、印刷済みの用紙が排出される排出トレイ)の指定等を含む。
When the print setting button BT2 is pressed on the main screen WI1, the UI processing unit UP displays the print setting screen WI3 of FIG. 3C on the
印刷設定画面WI3において決定ボタンBT7が押下されると、UI処理部UPは、その時点で印刷設定画面WI3にて設定されている印刷設定に現在の印刷設定を更新し、印刷設定画面WI3に代えて、メイン画面WI1を表示部270に表示する。すなわち、印刷設定画面WI3を介して、UI処理部UPは、ユーザから印刷設定変更指示を取得する。印刷設定画面WI3においてリターンボタンBT6が押下されると、UI処理部UPは、印刷設定を更新することなく、印刷設定画面WI3に代えて、メイン画面WI1を表示部270に表示する。なお、印刷設定変更指示が取得されるまでは、印刷設定は、デフォルトの設定とされている。
When the confirm button BT7 is pressed on the print setting screen WI3, the UI processing unit UP updates the current print settings to the print settings set on the print setting screen WI3 at that time, and displays the main screen WI1 on the
メイン画面WI1において、印刷指示ボタンBT3は、元画像データが選択されている状態で有効である。印刷指示ボタンBT3が押下されると、UI処理部UPは、その時点で取得済みのデータ選択指示に対応する印刷指示を取得する。 On the main screen WI1, the print instruction button BT3 is enabled when the original image data is selected. When the print instruction button BT3 is pressed, the UI processing unit UP obtains a print instruction that corresponds to the data selection instruction that has been obtained at that time.
画像処理部IPは、管理部CLと、複数個の処理部PS1~PS5と、複数個の受渡リストIL1~IL5と、を含んでいる。複数個の処理部PS1~PS4は、協働して、ユーザによって選択された元画像データを用いて印刷データを生成する。供給部PS5は、ユーザから取得される印刷指示に応じて、生成された印刷データを含む印刷ジョブをプリンタ200に供給する。この結果、プリンタ200に印刷を実行させることができる。
The image processing unit IP includes a management unit CL, a plurality of processing units PS1 to PS5, and a plurality of delivery lists IL1 to IL5. The plurality of processing units PS1 to PS4 work together to generate print data using original image data selected by the user. The supply unit PS5 supplies a print job including the generated print data to the
ラスタライズ部PS1は、元画像データを用いてラスタライズ処理を実行して、元画像を示すビットマップデータを生成する。ビットマップデータは、例えば、RGB値を画素ごとに含むRGB画像データである。RGB値は、例えば、赤と緑と青との3個の成分値を含むRGB表色系の色値である。ラスタライズ部PS1は、生成されたビットマップデータを所定の形式、本実施例では、PNG形式で出力する。このように、ラスタライズ部PS1への入力画像データは、元画像データであり、ラスタライズ部PS1からの出力画像データは、PNG形式に変換された元画像データ(変換済画像データとも呼ぶ)である。元画像データがPNG形式である場合には、ラスタライズ処理は実行されず、ラスタライズ部PS1は、入力される元画像データをそのまま出力する。 The rasterization unit PS1 executes a rasterization process using the original image data to generate bitmap data representing the original image. The bitmap data is, for example, RGB image data including RGB values for each pixel. The RGB values are, for example, color values in the RGB color system including the three component values of red, green, and blue. The rasterization unit PS1 outputs the generated bitmap data in a predetermined format, in this embodiment, PNG format. In this way, the input image data to the rasterization unit PS1 is the original image data, and the output image data from the rasterization unit PS1 is the original image data converted to PNG format (also called converted image data). If the original image data is in PNG format, the rasterization process is not executed, and the rasterization unit PS1 outputs the input original image data as is.
レイアウト部PS2は、変換済画像データを用いてレイアウト処理を実行して、レイアウト画像データを生成する処理である。レイアウト画像データは、印刷設定に応じて元画像が配置された印刷画像を示す。例えば、印刷画像には、余白の設定に応じて、設定された幅を有する余白が付加されている。また、1個の印刷画像に2個の元画像を配置する設定(いわゆる2in1)が指示されている場合には、印刷画像には、2個の元画像が配置される。レイアウト部PS2は、レイアウト画像データを所定の形式、本実施例では、PNG形式で出力する。このように、レイアウト部PS2への入力画像データは、変換済画像データであり、レイアウト部PS2からの出力画像データは、レイアウト画像データである。 Layout unit PS2 is a process that executes layout processing using the converted image data to generate layout image data. The layout image data indicates a print image in which an original image is arranged according to the print settings. For example, a margin having a set width is added to the print image according to the margin setting. Also, when a setting to arrange two original images in one print image (so-called 2in1) is specified, the two original images are arranged in the print image. Layout unit PS2 outputs the layout image data in a specified format, in this embodiment, PNG format. In this way, the input image data to layout unit PS2 is converted image data, and the output image data from layout unit PS2 is layout image data.
プレビュー部PS3は、レイアウト画像データを用いてプレビュー処理を実行して、プレビュー用画像データを生成する処理である。プレビュー用画像データは、プレビュー画像PIを示す画像データである。プレビュー用画像データは、上述したメイン画面WI1のプレビュー画像表示領域PWにプレビュー画像PIを表示するために用いられる。プレビュー処理は、例えば、印刷設定に応じて、プレビュー画像PIを調整する各種の処理を含む。例えば、カラーモードがモノクロモードに設定される場合には、プレビュー画像PIもモノクロの画像であることが好ましいので、プレビュー処理は、レイアウト画像データをモノクロ画像データに変換する処理を含む。プレビュー処理は、例えば、表示部270の特性に応じて、画素数や色数を調整する処理を含んでも良い。このように、プレビュー部PS3への入力画像データは、レイアウト画像データであり、プレビュー部PS3からの出力画像データは、プレビュー用画像データである。
Preview section PS3 is a process that executes a preview process using layout image data to generate preview image data. Preview image data is image data that shows a preview image PI. Preview image data is used to display the preview image PI in the preview image display area PW of the main screen WI1 described above. Preview process includes, for example, various processes that adjust the preview image PI according to print settings. For example, when the color mode is set to a monochrome mode, it is preferable that the preview image PI is also a monochrome image, so the preview process includes a process that converts the layout image data into monochrome image data. The preview process may include, for example, a process that adjusts the number of pixels and the number of colors according to the characteristics of the
プレビュー部PS3が、プレビュー用画像データを生成すると、UI処理部UPは、プレビュー用画像データを用いて、直ちに、メイン画面WI1のプレビュー画像表示領域PWにプレビュー画像PIを表示する。すなわち、メイン画面WI1には、データ選択指示が取得された後、かつ、印刷指示が取得される前に、プレビュー画像PIが表示される。 When the preview unit PS3 generates the preview image data, the UI processing unit UP immediately uses the preview image data to display a preview image PI in the preview image display area PW of the main screen WI1. That is, the preview image PI is displayed on the main screen WI1 after a data selection instruction is obtained and before a print instruction is obtained.
ビルド部PS4は、レイアウト画像データを用いてビルド処理を実行して、印刷データを生成する処理である。ビルド処理は、レイアウト画像データを、プリンタ200が解釈可能なデータ形式に変換する処理である。印刷データは、プリンタ200が解釈可能なデータ形式、例えば、PostScript(登録商標)やPrinter Control Language(登録商標)などのページ記述言語で記述された画像データである。ビルド処理は、各種の印刷設定、例えば、印刷解像度や両面印刷/片面印刷のいずれであるか等に応じて異なる処理を含む。このように、ビルド部PS4への入力画像データは、レイアウト画像データであり、ビルド部PS4からの出力画像データは、印刷データである。
The build unit PS4 executes a build process using layout image data to generate print data. The build process converts the layout image data into a data format that can be interpreted by the
供給部PS5は、印刷データを用いて供給処理を実行する。供給処理は、印刷データに対して印刷コマンドを付加して印刷ジョブを生成し、該印刷ジョブをプリンタ200に供給する処理である。印刷ジョブの供給は、通信部380を介してプリンタ200に印刷ジョブを送信することによって行われる。付加される印刷コマンドは、印刷設定に応じて設定項目、具体的には、印刷部数、印刷品質、使用する用紙が収容されトレイ、印刷済みの用紙を出力するトレイなどの指定を行うコマンドを含む。このように、供給部PS5への入力画像データは、印刷データであり、供給部PS5からの出力画像データは、印刷ジョブである。
The supply unit PS5 executes a supply process using the print data. The supply process is a process of generating a print job by adding a print command to the print data and supplying the print job to the
受渡リストILn(nは1~5の整数)は、処理部PSnへの入力画像データのパスが記述されるリストである。以下では、リスト(受渡リストILnまたは管理リストOLn)に画像データのパスが記述されることを、リストに画像データが登録されると表現する。受渡リストIL1に登録される画像データは、元画像データであり、管理部CLによって登録される。受渡リストILn(nは2~5の整数)に登録される画像データは、処理部PS(n-1)からの出力画像データであり、処理部PS(n-1)によって登録される。処理部PSn(nは1~5の整数)は、受渡リストILnに登録された入力画像データを取得し、該入力画像データを用いて、自身の処理を実行する。処理部PSn(nは1~5の整数)は、受渡リストILnに登録された順序で、入力画像データを1つずつ取得する。すなわち、受渡リストILnは、FIFO(first in first out)キューとして機能する。 The transfer list ILn (n is an integer from 1 to 5) is a list in which the path of the input image data to the processing unit PSn is described. Hereinafter, the description of the path of the image data in the list (the transfer list ILn or the management list OLn) is expressed as the image data being registered in the list. The image data registered in the transfer list IL1 is the original image data, and is registered by the management unit CL. The image data registered in the transfer list ILn (n is an integer from 2 to 5) is the output image data from the processing unit PS(n-1), and is registered by the processing unit PS(n-1). The processing unit PSn (n is an integer from 1 to 5) acquires the input image data registered in the transfer list ILn, and executes its own processing using the input image data. The processing unit PSn (n is an integer from 1 to 5) acquires the input image data one by one in the order in which they are registered in the transfer list ILn. In other words, the transfer list ILn functions as a FIFO (first in first out) queue.
管理リストOLn(nは1~5の整数)は、各処理部PSnに対応付けられたリストである。管理リストOLnは、対応する処理部PSnが生成した出力画像データが登録されるリストである。各処理部PSnは、入力画像データを用いて所定の処理を行って出力画像データを生成した場合に、該出力画像データを入力画像データとの対応が解るように管理リストOLnに登録する。このために、管理リストOLnを参照すれば、特定の入力画像データに対応する出力画像データが生成済みであるか否かを認識できる。受渡リストILnと管理リストOLnとを用いた各処理部PSnの処理の詳細は後述する。 The management list OLn (n is an integer between 1 and 5) is a list associated with each processing unit PSn. The management list OLn is a list in which the output image data generated by the corresponding processing unit PSn is registered. When each processing unit PSn performs a specified process using input image data to generate output image data, it registers the output image data in the management list OLn so that the correspondence with the input image data can be understood. For this reason, by referring to the management list OLn, it is possible to recognize whether output image data corresponding to specific input image data has already been generated. Details of the processing of each processing unit PSn using the delivery list ILn and management list OLn will be described later.
A-3.印刷アプリケーションの動作
A-3-1.制御処理
図4、図5は、印刷処理のフローチャートである。図4の印刷処理は、印刷アプリケーションが起動されてUI処理部UPによってUI画面WI1~WI2のいずれかが表示されている間に、画像処理部IPの管理部CLによって実行される。印刷処理は、データ選択指示によって選択された元画像データを用いて、印刷データおよび該印刷データを含む印刷ジョブを生成し、印刷指示に応じて該印刷ジョブをプリンタ200に供給する処理である。
A-3. Operation of the Print Application A-3-1. Control Processing Figures 4 and 5 are flowcharts of the print processing. The print processing in Figure 4 is executed by the management unit CL of the image processing unit IP while the print application is started and one of the UI screens WI1 to WI2 is being displayed by the UI processing unit UP. The print processing is a process of generating print data and a print job including the print data using original image data selected by a data selection instruction, and supplying the print job to the
S5では、管理部CLは、UI処理部UPによってデータ選択指示が取得されたか否かを判断する。UI処理部UPが画像選択画面WI2を介してデータ選択指示を取得した場合には(S5:YES)、管理部CLは、S10に処理を進める。UI処理部UPがデータ選択指示を取得していない場合には(S5:NO)、管理部CLは、UI処理部UPがデータ選択指示を取得するまで待機する。 In S5, the management unit CL determines whether or not a data selection instruction has been acquired by the UI processing unit UP. If the UI processing unit UP has acquired a data selection instruction via the image selection screen WI2 (S5: YES), the management unit CL proceeds to S10. If the UI processing unit UP has not acquired a data selection instruction (S5: NO), the management unit CL waits until the UI processing unit UP acquires a data selection instruction.
S10では、管理部CLは、OSプログラムOPのバージョンを示すOSバージョン情報と、印刷に用いるべき用紙のサイズを示す用紙サイズ情報と、印刷画像のサイズ(画素数)を示す画像サイズ情報と、を取得する。例えば、OSバージョン情報は、OSから取得される。用紙サイズ情報は、印刷設定によって指定される。印刷画像のサイズ(すなわち、生成すべき印刷データのサイズ)は、印刷設定によって指定される用紙のサイズと印刷解像度とに基づいて算出される。 In S10, the management unit CL acquires OS version information indicating the version of the OS program OP, paper size information indicating the size of the paper to be used for printing, and image size information indicating the size (number of pixels) of the print image. For example, the OS version information is acquired from the OS. The paper size information is specified by the print settings. The size of the print image (i.e., the size of the print data to be generated) is calculated based on the paper size and print resolution specified by the print settings.
S13では、管理部CLは、OSバージョン情報と用紙サイズ情報と画像サイズ情報とに基づいて、印刷データの生成処理(後述)の実行方式を、シーケンシャル方式とパラレル方式とのいずれかに決定する。シーケンシャル方式は、印刷データを生成するための上述した処理部PS1~PS4の処理を順次に実行し、並列には実行しない方式である。パラレル方式は、処理部PS1~PS4の処理の少なくとも一部の処理を並列に実行する方式である。 In S13, the management unit CL determines the execution method of the print data generation process (described below) to be either the sequential method or the parallel method based on the OS version information, paper size information, and image size information. The sequential method is a method in which the processes of the above-mentioned processing units PS1 to PS4 for generating print data are executed sequentially, not in parallel. The parallel method is a method in which at least some of the processes of the processing units PS1 to PS4 are executed in parallel.
本実施例では、以下の条件(1)~(3)を全て満たす場合には、実行方式は、パラレル方式に決定され、条件(1)~(3)の少なくとも1つが満たされない場合には、実行方式は、シーケンシャル方式に決定される。
条件(1):OSのバージョンが基準以上である
条件(2):用紙のサイズが基準(本実施例ではA3)未満である
条件(3):印刷画像のサイズが基準(本実施例ではA4サイズ600dpi相当の画素数)以下である
In this embodiment, if all of the following conditions (1) to (3) are met, the execution method is determined to be the parallel method, and if at least one of the conditions (1) to (3) is not met, the execution method is determined to be the sequential method.
Condition (1): The OS version is equal to or higher than the standard. Condition (2): The paper size is smaller than the standard (A3 in this embodiment). Condition (3): The print image size is equal to or smaller than the standard (A4 size with 600 dpi pixels in this embodiment).
OSのバージョンを基準とするのは、OSのバージョンが古い場合には、並列処理の安定性や処理速度が十分に高くない場合があるためである。用紙サイズおよび画像サイズを基準とするのは、用紙サイズや画像サイズが過度に大きい場合には、並列処理の処理負荷が過度に大きくなる可能性があるためである。これらの場合には、並列処理の安定性が低下する場合や並列処理の処理速度が低下する場合があり、パラレル方式を採用する利点である処理の高速化を実現できない可能性があるので、シーケンシャル方式を採用することが好ましいためである。 The OS version is used as the criterion because if the OS version is old, the parallel processing stability and processing speed may not be sufficiently high. The paper size and image size are used as the criterion because if the paper size or image size is excessively large, the parallel processing load may be excessively large. In these cases, the stability or speed of the parallel processing may decrease, and it may not be possible to achieve the advantage of using the parallel method, which is faster processing, so it is preferable to use the sequential method.
S15では、管理部CLは、ラスタライズ部PS1への受渡リストIL1に、印刷処理に対応するデータ選択指示によって選択された元画像データを登録する。S17では、管理部CLは、印刷設定に応じたパラメータを処理部PS1~PS4について決定し、該パラメータを処理部PS1~PS4に供給する。 In S15, the management unit CL registers the original image data selected by the data selection instruction corresponding to the print process in the transfer list IL1 to the rasterization unit PS1. In S17, the management unit CL determines parameters for the processing units PS1 to PS4 according to the print settings, and supplies the parameters to the processing units PS1 to PS4.
S20では、管理部CLは、処理部PS1~PS4に処理を開始させる。各処理部PS1~PS4の処理については後述するが、この後に各処理部PS1~PS4が実際に処理を実行するタイミングは、パラレル方式とシーケンシャル方式とで異なるが、これについては後述する。 In S20, the management unit CL causes the processing units PS1 to PS4 to start processing. The processing of each of the processing units PS1 to PS4 will be described later, but the timing at which each of the processing units PS1 to PS4 actually executes processing thereafter differs between the parallel method and the sequential method, which will be described later.
S25では、管理部CLは、印刷条件変更指示が取得されたか否かを判断する。印刷条件変更指示は、画像選択画面WI2を介して取得されるデータ変更指示と、印刷設定画面WI3を介して取得する印刷設定変更指示と、を含む。 In S25, the management unit CL determines whether a print condition change instruction has been acquired. The print condition change instruction includes a data change instruction acquired via the image selection screen WI2 and a print setting change instruction acquired via the print setting screen WI3.
印刷条件変更指示が取得されない場合には(S25:NO)、管理部CLは、S70に処理を進める。印刷条件変更指示が取得された場合には(S25:YES)、管理部CLは、S30に処理を進める。 If a print condition change instruction is not acquired (S25: NO), the management unit CL proceeds to S70. If a print condition change instruction is acquired (S25: YES), the management unit CL proceeds to S30.
S30では、管理部CLは、処理部PS1~PS4に処理を停止させる。S35では、管理部CLは、処理部PS1~PS5への受渡リストIL1~IL5をクリアする。これによって、受渡リストIL1~IL5には、いずれの画像データも登録されていない状態になる。 In S30, the management unit CL causes the processing units PS1 to PS4 to stop processing. In S35, the management unit CL clears the delivery lists IL1 to IL5 for the processing units PS1 to PS5. This results in no image data being registered in any of the delivery lists IL1 to IL5.
図5のS40では、管理部CLは、取得された印刷条件変更指示がデータ変更指示を含むか否かを判断する。取得された印刷条件変更指示がデータ変更指示を含む場合には(S40:YES)、管理部CL部は、S43に処理を進める。取得された印刷条件変更指示がデータ変更指示を含まない場合には(S40:NO)、管理部CL部は、S45をスキップする。 In S40 of FIG. 5, the management unit CL determines whether the acquired printing condition change instruction includes a data change instruction. If the acquired printing condition change instruction includes a data change instruction (S40: YES), the management unit CL proceeds to S43. If the acquired printing condition change instruction does not include a data change instruction (S40: NO), the management unit CL skips S45.
S43では、管理部CLは、データ変更指示に基づいて、変更対象の元画像データを特定する。例えば、データ変更指示によって、選択された画像データが、元画像データD1_org、D2_org、D3_orgから、元画像データD1_org、D3_org、D4_orgに変更された場合を例とする。この場合には、元画像データD2_orgが元画像データD4_orgに変更されているから元画像データD2_orgが変更対象の元画像データとして特定される。 In S43, the management unit CL identifies the original image data to be changed based on the data change instruction. For example, a case will be taken where the selected image data is changed from original image data D1_org, D2_org, D3_org to original image data D1_org, D3_org, D4_org by the data change instruction. In this case, since the original image data D2_org has been changed to original image data D4_org, the original image data D2_org is identified as the original image data to be changed.
S45では、管理部CLは、処理部PS1~PS4の管理リストOL1~OL4を更新する。例えば、処理対象が、元画像データD2_orgから元画像データD4_orgに変更される場合には、各処理部PS1~PS4は、元画像データD2_orgに対応する出力画像データに代えて、元画像データD4_orgに対応する出力画像データを出力すべきである。このために、管理部CLは、変更対象の元画像データに対応する出力画像データの登録を、管理リストOL1~OL4から削除する。これらの出力画像データが生成済みであっても、処理部PS1~PS4は、処理すべき画像データを、元画像データD2_orgから元画像データD4_orgに変更して、再度処理を行う必要があるためである。このために、管理リストOL1~OL4に元画像データD2_orgに対応する出力画像データ(変換済画像データD2_conv、レイアウト画像データD2_lay、プレビュー用画像データD2_pre、印刷データD2_bldのいずれか)が登録されている場合には、これらの出力画像データは、管理リストOL1~OL4から削除される。 In S45, the management unit CL updates the management lists OL1 to OL4 of the processing units PS1 to PS4. For example, if the processing target is changed from original image data D2_org to original image data D4_org, each processing unit PS1 to PS4 should output output image data corresponding to the original image data D4_org instead of the output image data corresponding to the original image data D2_org. For this reason, the management unit CL deletes the registration of the output image data corresponding to the original image data to be changed from the management lists OL1 to OL4. This is because even if these output image data have already been generated, the processing units PS1 to PS4 need to change the image data to be processed from original image data D2_org to original image data D4_org and process it again. For this reason, if output image data (converted image data D2_conv, layout image data D2_lay, preview image data D2_pre, or print data D2_bld) corresponding to the original image data D2_org is registered in the management lists OL1 to OL4, this output image data is deleted from the management lists OL1 to OL4.
S50では、管理部CLは、取得された印刷条件変更指示が印刷設定変更指示を含むか否かを判断する。取得された印刷条件変更指示が印刷設定変更指示を含む場合には(S50:YES)、管理部CLは、S52に処理を進める。取得された印刷条件変更指示が印刷設定変更指示を含まない場合には(S50:NO)、管理部CLは、S52およびS54をスキップする。 In S50, the management unit CL determines whether the acquired printing condition change instruction includes a print setting change instruction. If the acquired printing condition change instruction includes a print setting change instruction (S50: YES), the management unit CL proceeds to S52. If the acquired printing condition change instruction does not include a print setting change instruction (S50: NO), the management unit CL skips S52 and S54.
S52では、管理部CLは、印刷設定変更指示に基づいて、処理部PS1~PS5のうち、再処理の対象になる処理部を決定する。 In S52, the management unit CL determines which of the processing units PS1 to PS5 will be the target for reprocessing based on the print setting change instruction.
図6は、再処理の対象になる処理部を決定するためのテーブルTBの一例を示す図である。管理部CLは、印刷アプリケーションPAに組み込まれたテーブルTBを参照して、再処理の対象になる処理部を決定する。 Figure 6 shows an example of a table TB for determining which processing units are to be reprocessed. The management unit CL refers to the table TB incorporated in the print application PA to determine which processing units are to be reprocessed.
処理部PS1~PS5のうち、印刷設定変更指示に基づく印刷設定の変更に応じて、パラメータが変更される処理部(パラメータ変更処理部とも呼ぶ)は、再処理の対象になる。パラメータ変更処理部は、既に出力画像データを生成済みであっても、変更後のパラメータに応じた処理を行って、既に生成済みの出力画像データとは異なる出力画像データを生成する必要があるためである。 Of the processing units PS1 to PS5, the processing units (also called parameter change processing units) whose parameters are changed in response to a change in print settings based on a print setting change instruction are subject to reprocessing. This is because even if the parameter change processing unit has already generated output image data, it is necessary to perform processing according to the changed parameters and generate output image data that differs from the output image data that has already been generated.
再処理の対象になる処理部によって生成される出力画像データを入力画像データとして用いて自身の処理を実行する処理部も、再処理の対象になる。入力画像データが印刷設定変更指示によって別のデータとなるためである。したがって、印刷設定変更指示によって特定の処理部がパラメータ変更処理部となる場合には、該特定の処理部によって生成される出力画像データを直接または間接に用いる処理部(以下、特定の処理部よりも下流の処理部とも呼ぶ)は、自身のパラメータが変更されるか否かに関わらずに全ての再処理の対象になる。例えば、ラスタライズ部PS1がパラメータ変更処理部になる場合には、ラスタライズ部PS1およびラスタライズ部PS1よりも下流の処理部PS2~PS5は、再処理の対象になる。レイアウト部PS2がパラメータ変更処理部になる場合には、レイアウト部PS2およびレイアウト部PS2よりも下流の処理部PS3~PS5は、再処理の対象になる。ビルド部PS4がパラメータ変更処理部になる場合には、ビルド部PS4およびビルド部PS4よりも下流の供給部PS5は、再処理の対象になる。 Processing units that use output image data generated by a processing unit that is the target of reprocessing as input image data to execute their own processing are also subject to reprocessing. This is because the input image data becomes different data due to the print setting change instruction. Therefore, when a specific processing unit becomes a parameter change processing unit due to the print setting change instruction, all processing units (hereinafter also referred to as processing units downstream of the specific processing unit) that directly or indirectly use the output image data generated by the specific processing unit become the target of reprocessing, regardless of whether their own parameters are changed or not. For example, when the rasterization unit PS1 becomes a parameter change processing unit, the rasterization unit PS1 and processing units PS2 to PS5 downstream of the rasterization unit PS1 become the target of reprocessing. When the layout unit PS2 becomes a parameter change processing unit, the layout unit PS2 and processing units PS3 to PS5 downstream of the layout unit PS2 become the target of reprocessing. When the build unit PS4 becomes a parameter change processing unit, the build unit PS4 and the supply unit PS5 downstream of the build unit PS4 become the target of reprocessing.
印刷設定変更指示によって特定の処理部がパラメータ変更処理部となっても、特定の処理部によって生成される出力画像データを入力画像データとして用いず、かつ、自身がパラメータ変更処理部とならない場合には、その処理部は、再処理の対象にならない。例えば、プレビュー部PS3やビルド部PS4がパラメータ変更処理部となっても、ラスタライズ部PS1およびレイアウト部PS2がパラメータ変更処理部とならない場合には、ラスタライズ部PS1およびレイアウト部PS2は、再処理の対象にならない。 Even if a specific processing unit becomes a parameter change processing unit due to a print setting change instruction, if the output image data generated by the specific processing unit is not used as input image data and the processing unit itself does not become a parameter change processing unit, then that processing unit will not be subject to reprocessing. For example, even if the preview unit PS3 or the build unit PS4 becomes a parameter change processing unit, if the rasterization unit PS1 and the layout unit PS2 do not become parameter change processing units, then the rasterization unit PS1 and the layout unit PS2 will not be subject to reprocessing.
図6のテーブルTBには、本実施例において、印刷設定変更指示によって変更される印刷設定ごとに、再処理の対象になる処理部と、再処理の対象にならない処理部と、が規定されている。テーブルTBにおいて、丸印が付された処理部は、再処理の対象になる処理部であり、ハイフンが付された処理部は、再処理の対象にならない処理部である。 In this embodiment, the table TB in FIG. 6 specifies the processing units that are subject to reprocessing and the processing units that are not subject to reprocessing for each print setting that is changed by a print setting change instruction. In the table TB, the processing units marked with a circle are processing units that are subject to reprocessing, and the processing units marked with a hyphen are processing units that are not subject to reprocessing.
例えば、用紙サイズが変更される場合には、処理部PS1~PS5が再処理の対象になる。本実施例では、用紙サイズが変更される場合には、印刷時の画質低下を抑制するために、ラスタライズ処理によって生成される変換済画像データの画素数を変更するのでラスタライズ部PS1がパラメータ変更処理部とされるためである。 For example, when the paper size is changed, processing units PS1 to PS5 are subject to reprocessing. In this embodiment, when the paper size is changed, the number of pixels of the converted image data generated by the rasterization process is changed in order to prevent deterioration of image quality during printing, so rasterization unit PS1 is treated as the parameter change processing unit.
余白や割付数が変更される場合には、ラスタライズ部PS1は再処理の対象にならず、処理部PS2~PS5が再処理の対象になる。本実施例では、余白や割付数が変更される場合には、余白や割付数が変更された画像を示すレイアウト画像データを生成する必要があるので、レイアウト部PS2がパラメータ変更処理部とされるためである。 When the margins or number of allocations are changed, the rasterization unit PS1 is not subject to reprocessing, but the processing units PS2 to PS5 are. In this embodiment, when the margins or number of allocations are changed, it is necessary to generate layout image data that shows an image with the changed margins or number of allocations, so the layout unit PS2 is treated as a parameter change processing unit.
カラーモードが変更される場合には、処理部PS1、PS2は再処理の対象にならず、処理部PS3~PS5が再処理の対象になる。本実施例では、カラーモードが変更される場合には、色数(モノクロやフルカラー)が変更された画像を示すプレビュー用画像データおよび印刷データを生成する必要があるので、プレビュー部PS3およびビルド部PS4がパラメータ変更処理部とされるためである。 When the color mode is changed, processing units PS1 and PS2 are not subject to reprocessing, but processing units PS3 to PS5 are. In this embodiment, when the color mode is changed, it is necessary to generate preview image data and print data that show an image with a changed number of colors (monochrome or full color), so the preview unit PS3 and build unit PS4 are treated as parameter change processing units.
片面印刷/両面印刷の設定が変更される場合には、処理部PS1~PS3は再処理の対象にならず、処理部PS4、PS5が再処理の対象になる。片面印刷/両面印刷の設定が変更される場合には、綴じ位置に応じて印刷画像を回転させる必要がある。本実施例では、綴じ位置に応じた印刷画像の回転をビルド処理において実行しているので、ビルド部PS4がパラメータ変更処理部とされるためである。 When the single-sided/double-sided printing setting is changed, processing units PS1 to PS3 are not subject to reprocessing, but processing units PS4 and PS5 are. When the single-sided/double-sided printing setting is changed, it is necessary to rotate the print image according to the binding position. In this embodiment, the rotation of the print image according to the binding position is performed in the build process, so the build unit PS4 is treated as the parameter change processing unit.
印刷品質、部数、トレイ(給紙トレイおよび排出トレイ)が変更される場合には、処理部PS1~PS5は再処理の設定にならず、供給部PS5が再処理の対象となる。本実施例では、印刷品質、部数、トレイの変更は、印刷コマンドに応じてプリンタ200にて対応される。印刷コマンドの付加は、供給部PS5にて実行される。このために、供給部PS5がパラメータ変更処理部とされるためである。
When the print quality, number of copies, or tray (feed tray and discharge tray) is changed, processing units PS1 to PS5 are not set for reprocessing, and supply unit PS5 becomes the target for reprocessing. In this embodiment, changes in print quality, number of copies, and tray are handled by
S54では、管理部CLは、処理部PS1~PS5のうち、再処理の対象に決定された処理部の管理リストをクリアする。処理部PS1~PS5のうち、再処理の対象に決定されない処理部の管理リストはクリアされない。これによって、管理リストOL1~OL5のうち、再処理の対象に決定された処理部の管理リストは、いずれの画像データも登録されていない状態になる。管理リストOL1~OL5のうち、再処理の対象に決定されない処理部の管理リストは、S30にて処理部PS1~PS4が停止される前と同じ状態に維持される。 In S54, the management unit CL clears the management lists of the processing units PS1 to PS5 that have been determined to be the targets of reprocessing. The management lists of the processing units PS1 to PS5 that have not been determined to be the targets of reprocessing are not cleared. As a result, the management lists of the processing units OL1 to OL5 that have been determined to be the targets of reprocessing are in a state in which no image data is registered. The management lists of the processing units OL1 to OL5 that have not been determined to be the targets of reprocessing are maintained in the same state as they were before the processing units PS1 to PS4 were stopped in S30.
S55では、管理部CLは、ラスタライズ部PS1への受渡リストIL1に、印刷処理に対応するデータ選択指示によって選択された元画像データを登録する。データ変更指示が取得されている場合には、変更後の元画像データが登録される。S60では、管理部CLは、印刷設定に応じたパラメータを処理部PS1~PS4について決定し、該パラメータを処理部PS1~PS4に供給する。印刷設定変更指示が取得されている場合には、印刷設定の変更後のパラメータが処理部PS1~PS4に供給される。 In S55, the management unit CL registers the original image data selected by the data selection instruction corresponding to the print process in the transfer list IL1 to the rasterization unit PS1. If a data change instruction has been acquired, the changed original image data is registered. In S60, the management unit CL determines parameters according to the print settings for the processing units PS1 to PS4, and supplies the parameters to the processing units PS1 to PS4. If a print setting change instruction has been acquired, the changed print setting parameters are supplied to the processing units PS1 to PS4.
S65では、管理部CLは、処理部PS1~PS4に処理を再開させる。処理部PS1~PS4は、後述する各処理部の処理を再度始めから実行する。 In S65, the management unit CL causes the processing units PS1 to PS4 to resume processing. The processing units PS1 to PS4 then restart the processing of each processing unit, which will be described later, from the beginning.
S70では、管理部CLは、上述したメイン画面WI1を介して印刷指示が取得されたか否かを判断する。印刷指示が取得されない場合には(S70:NO)、管理部CLは、図4のS25に処理を戻す。印刷指示が取得された場合には(S70:YES)、S75にて、管理部CLは、供給部PS5に処理を開始させる。この時点から、処理部PS1~PS4によって生成済みの印刷データを含む印刷ジョブがプリンタ200に送信される。供給部PS5に処理を開始させると、管理部CLは、印刷処理を終了する。
In S70, the management unit CL determines whether or not a print instruction has been acquired via the main screen WI1 described above. If a print instruction has not been acquired (S70: NO), the management unit CL returns the process to S25 in FIG. 4. If a print instruction has been acquired (S70: YES), in S75, the management unit CL causes the supply unit PS5 to start processing. From this point on, a print job including the print data already generated by the processing units PS1 to PS4 is sent to the
以上の説明から解るように、データ選択指示が取得されてから、対応する印刷指示が取得されるまでは、該データ選択指示に基づく印刷について印刷条件変更指示の入力が許容されるが、印刷指示が取得された後は、印刷条件変更指示の入力は許容されない。換言すれば、印刷指示の入力が行われることによって、対応するデータ選択指示に基づく印刷について印刷条件が確定する。 As can be seen from the above explanation, after a data selection instruction is acquired, input of a print condition change instruction is permitted for printing based on the data selection instruction until the corresponding print instruction is acquired, but after the print instruction is acquired, input of a print condition change instruction is not permitted. In other words, input of a print instruction determines the print conditions for printing based on the corresponding data selection instruction.
A-3-3.処理部PS1~PS5の処理
管理部CLの制御に従って動作する処理部PS1~PS5の処理について説明する。図7は、処理部PS1~PS5の処理のフローチャートである。処理部PS1~PS5の処理は、共通する部分が多いために、互いに異なる部分を適宜に指摘しつつ、まとめて説明する。処理部への入力画像データが登録される受渡リストを該処理部の上流側の受渡リストとも呼び、処理部からの出力画像データが登録される受渡リストを該処理部の下流側の受渡リストとも呼ぶ。例えば、ラスタライズ部PS1の上流側の受渡リストは、受渡リストIL1であり、ラスタライズ部PS1の下流側の受渡リストは、受渡リストIL2である。プレビュー部PS3、供給部PS5の上流側の受渡リストIL3、IL5は存在するが、プレビュー部PS3、供給部PS5の下流側の受渡リストは存在しない。
A-3-3. Processing of Processing Units PS1 to PS5 The processing of processing units PS1 to PS5 that operate according to the control of management unit CL will be described. FIG. 7 is a flowchart of the processing of processing units PS1 to PS5. Since the processing units PS1 to PS5 have many common parts, they will be described together while appropriately pointing out the different parts. The transfer list in which input image data to a processing unit is registered is also called the transfer list on the upstream side of the processing unit, and the transfer list in which output image data from a processing unit is registered is also called the transfer list on the downstream side of the processing unit. For example, the transfer list on the upstream side of the rasterizing unit PS1 is the transfer list IL1, and the transfer list on the downstream side of the rasterizing unit PS1 is the transfer list IL2. There are transfer lists IL3 and IL5 on the upstream side of the preview unit PS3 and the supply unit PS5, but there are no transfer lists on the downstream side of the preview unit PS3 and the supply unit PS5.
図7の処理は、管理部CLからの開始指示に応じて開始される。S100では、処理部(処理部PS1~PS5のいずれか)は、上流側の受渡リストに自身への入力画像データが登録されているか否かを判断する。 The process in FIG. 7 is started in response to a start command from the management unit CL. In S100, the processing unit (one of the processing units PS1 to PS5) determines whether input image data for itself is registered in the upstream delivery list.
図8は、処理部の処理の説明図である。図8には、処理中の複数の時点における受渡リストIL1~IL4と、管理リストOL1、OL2の状態が図示されている。図8では、3個の元画像データD1_org、D2_org、D3_orgが選択された場合が例示されている。図8(A)には、図4のS20にて処理が開始された時の状態が示されている。図8(A)の状態では、受渡リストIL1に、3個の元画像データD1_org、D2_org、D3_orgが登録されている。受渡リストIL1への元画像データD1_org、D2_org、D3_orgの登録は、管理部CLによって行われる(図4のS15、図5のS55)。他のリストIL2~IL4、OL1、OL2には、画像データは登録されていない。この状態では、ラスタライズ部PS1は、上流側の受渡リストIL1に入力画像データが登録されていると判断する。レイアウト部PS2は、上流側の受渡リストIL2に入力画像データが登録されていないと判断する。 Figure 8 is an explanatory diagram of the processing of the processing unit. Figure 8 illustrates the states of the transfer lists IL1 to IL4 and the management lists OL1 and OL2 at multiple points during processing. Figure 8 illustrates an example in which three original image data D1_org, D2_org, and D3_org are selected. Figure 8 (A) illustrates the state when processing is started in S20 of Figure 4. In the state of Figure 8 (A), three original image data D1_org, D2_org, and D3_org are registered in the transfer list IL1. The registration of the original image data D1_org, D2_org, and D3_org in the transfer list IL1 is performed by the management unit CL (S15 in Figure 4 and S55 in Figure 5). No image data is registered in the other lists IL2 to IL4, OL1, and OL2. In this state, the rasterization unit PS1 determines that the input image data is registered in the upstream transfer list IL1. The layout section PS2 determines that the input image data is not registered in the upstream delivery list IL2.
上流側の受渡リストに自身への入力画像データが登録されている場合には(S100:YES)、処理部は、S105に処理を進める。上流側の受渡リストに自身への入力画像データが登録されていない場合には(S100:NO)、処理部は、受渡リストに自身への入力画像データが登録されるまで待機する。 If the input image data for itself is registered in the upstream transfer list (S100: YES), the processing unit proceeds to S105. If the input image data for itself is not registered in the upstream transfer list (S100: NO), the processing unit waits until the input image data for itself is registered in the transfer list.
S105では、処理部は、上流側の受渡リストIL1に登録された入力画像データの中から、登録順が最も先である画像データを注目画像データとし、該注目画像データの登録を上流側の受渡リストから削除する。例えば、図8(A)の例では、ラスタライズ部PS1は、元画像データD1_orgを注目画像データとし、元画像データD1_orgの登録を受渡リストIL1から削除する。 In S105, the processing unit sets the image data that is registered first among the input image data registered in the upstream transfer list IL1 as the image data of interest, and deletes the registration of the image data of interest from the upstream transfer list. For example, in the example of FIG. 8(A), the rasterization unit PS1 sets the original image data D1_org as the image data of interest, and deletes the registration of the original image data D1_org from the transfer list IL1.
S110では、処理部は、注目画像データに対応する出力画像データが自身の管理リストに登録されているか否かを判断する。注目画像データに対応する出力画像データは、注目画像データに対して該処理部が実行すべき処理を実行することによって生成される画像データである。図8(A)の例では、元画像データD1_orgに対応する変換済画像データD1_convが管理リストOL1に登録されていないので、ラスタライズ部PS1は、注目画像データに対応する出力画像データが自身の管理リストOL1に登録されていないと判断する。 In S110, the processing unit determines whether or not the output image data corresponding to the image data of interest is registered in its own management list. The output image data corresponding to the image data of interest is image data generated by executing the processing to be performed by the processing unit on the image data of interest. In the example of FIG. 8(A), the converted image data D1_conv corresponding to the original image data D1_org is not registered in the management list OL1, so the rasterization unit PS1 determines that the output image data corresponding to the image data of interest is not registered in its own management list OL1.
注目画像データに対応する出力画像データが自身の管理リストに登録されていない場合には(S110:NO)、S115にて、処理部は、注目画像データを用いて自身が実行すべき処理を実行して、出力画像データを生成する。生成された出力画像データは、画像ファイルに格納されて保存される。 If the output image data corresponding to the image data of interest is not registered in the management list (S110: NO), in S115, the processing unit executes the processing to be executed by itself using the image data of interest to generate output image data. The generated output image data is stored and saved in an image file.
S120では、処理部は、S115にて生成された出力画像データを自身の管理リストに登録する。すなわち、出力画像データを含む画像ファイルのパスを自身の管理リストに記述する。 In S120, the processing unit registers the output image data generated in S115 in its own management list. In other words, it writes the path of the image file that contains the output image data in its own management list.
注目画像データに対応する出力画像データが自身の管理リストに登録されている場合には(S110:YES)、S115、S120をスキップして、S125に処理を進める。 If the output image data corresponding to the target image data is registered in the management list (S110: YES), S115 and S120 are skipped and processing proceeds to S125.
S125では、処理部は、S115にて生成された出力画像データを下流側の受渡リストに登録する。S125の後に、処理部は、S110に戻る。 In S125, the processing unit registers the output image data generated in S115 in the downstream delivery list. After S125, the processing unit returns to S110.
処理部がレイアウト部PS2である場合には、下流側の受渡リストとして、プレビュー部PS3への受渡リストIL3と、ビルド部PS4への受渡リストIL4と、が存在する。S125では、レイアウト部PS2は、両方の受渡リストIL3、IL4に出力画像データを登録する。その際に、レイアウト部PS2は、ビルド部PS4への受渡リストIL4よりも先に、プレビュー部PS3への受渡リストIL3に出力画像データを登録する。これは、ユーザはプレビュー画像PIを確認した後に印刷指示を入力すると考えられるために、プレビュー用画像データの生成を、印刷データの生成よりも優先すべきであるためである。 When the processing unit is the layout unit PS2, there are two downstream transfer lists: a transfer list IL3 to the preview unit PS3, and a transfer list IL4 to the build unit PS4. In S125, the layout unit PS2 registers the output image data in both transfer lists IL3 and IL4. At that time, the layout unit PS2 registers the output image data in the transfer list IL3 to the preview unit PS3 before the transfer list IL4 to the build unit PS4. This is because it is considered that the user will input a print instruction after checking the preview image PI, and therefore the generation of preview image data should be prioritized over the generation of print data.
処理部がプレビュー部PS3または供給部PS5である場合には、下流側の受渡リストは、存在しないので、S125は実行されない。 If the processing unit is the preview unit PS3 or the supply unit PS5, there is no downstream delivery list, so S125 is not executed.
図8(B)には、元画像データD1_orgを用いたラスタライズ処理が実行された後、すなわち、ラスタライズ部PS1が元画像データD1_orgを注目画像データとして、図7のS105~S125を実行した後の状態が示されている。この時点では、ラスタライズ部PS1への受渡リストIL1から元画像データD1_orgの登録が削除されている(S105)。ラスタライズ部PS1の管理リストOL1には、元画像データD1_orgに対応する出力画像データである変換済画像データD1_convが登録されている(S120)。ラスタライズ部PS1の下流側の受渡リストIL2(レイアウト部PS2の上流側の受渡リストIL2)にも、変換済画像データD1_convが登録されている。レイアウト部PS2の上流側の受渡リストIL2に、変換済画像データD1_convが登録されたことにより、この時点からレイアウト部PS2は、変換済画像データD1_convを注目画像データとして、図7のS105~S125を実行することができる状態になる。 Figure 8 (B) shows the state after the rasterization process using the original image data D1_org has been executed, i.e., after the rasterization unit PS1 has executed S105 to S125 of Figure 7 with the original image data D1_org as the image data of interest. At this point, the registration of the original image data D1_org has been deleted from the transfer list IL1 to the rasterization unit PS1 (S105). The converted image data D1_conv, which is the output image data corresponding to the original image data D1_org, has been registered in the management list OL1 of the rasterization unit PS1 (S120). The converted image data D1_conv has also been registered in the transfer list IL2 downstream of the rasterization unit PS1 (the transfer list IL2 upstream of the layout unit PS2). Because the converted image data D1_conv has been registered in the delivery list IL2 upstream of the layout section PS2, from this point on the layout section PS2 is ready to execute steps S105 to S125 in FIG. 7 using the converted image data D1_conv as the image data of interest.
A-3-4.印刷データの生成処理の実行方式
印刷データの生成処理の実行方式であるパラレル方式とシーケンシャル方式とについてそれぞれ説明する。図9は、実行方式の説明図、すなわち、パラレル方式の説明図(図9(A))と、シーケンシャル方式の説明図(図9(B))である。図9において、縦方向の軸線は、時間tである。時間tの軸線に沿って並ぶ数字は、処理が実行される期間に付された識別子であり、識別子の数字は、時系列順に付されている。図9において、各処理部PS1~PS5の名称の下方に並んだ矩形は、各処理部PS1~PS5が実行する処理の内容と、当該処理が実行される期間と、を示している。例えば、図9(A)において、期間1に対応する縦方向の位置には、ラスタライズ部PS1に対応する矩形が示され、該矩形内には、「D1_conv」と記載されている。これは、期間1には、ラスタライズ部PS1によって変換済画像データD1_convを生成するラスタライズ処理が実行されることを意味している。
A-3-4. Execution method of print data generation process The parallel method and sequential method, which are execution methods of print data generation process, will be described below. FIG. 9 is an explanatory diagram of the execution method, that is, an explanatory diagram of the parallel method (FIG. 9(A)) and an explanatory diagram of the sequential method (FIG. 9(B)). In FIG. 9, the vertical axis is time t. The numbers arranged along the axis of time t are identifiers given to the period during which the process is executed, and the identifier numbers are assigned in chronological order. In FIG. 9, the rectangles arranged below the names of the processing units PS1 to PS5 indicate the contents of the process executed by each of the processing units PS1 to PS5 and the period during which the process is executed. For example, in FIG. 9(A), a rectangle corresponding to the rasterizing unit PS1 is shown at the vertical position corresponding to
ここで、変換済画像データD1_conv、レイアウト画像データD1_lay、プレビュー用画像データD1_pre、印刷データD1_bld、印刷ジョブD1_jobは、いずれも元画像データD1_orgを用いて生成される画像データである。このために、これらの画像データD1_conv、D1_lay、D1_pre、D1_bld、D1_jobは、いずれも元画像データD1_orgに対応する画像データと言うことができる。また、変換済画像データD1_conv、レイアウト画像データD1_layは、いずれもプレビュー用画像データD1_pre、印刷データD1_bldを生成する過程で一時的に生成されるデータであるので、中間画像データとも呼ぶ。 Here, the converted image data D1_conv, layout image data D1_lay, preview image data D1_pre, print data D1_bld, and print job D1_job are all image data generated using the original image data D1_org. For this reason, these image data D1_conv, D1_lay, D1_pre, D1_bld, and D1_job can all be said to be image data corresponding to the original image data D1_org. In addition, the converted image data D1_conv and layout image data D1_lay are also called intermediate image data, since they are all data temporarily generated in the process of generating the preview image data D1_pre and print data D1_bld.
A-3-4-1.パラレル方式
パラレル方式では、図4のS20、S65、S75にて管理部CLによって処理部PS1~PS5の処理が開始された後は、処理部PS1~PS5は、互いに非同期で動作する。例えば、処理部PS1~PS5は、いわゆるマルチスレッド処理において互いに異なるスレッドとして実行される。このために、処理部PS1~PS5は、それぞれ、自身への受渡リストに入力画像データが登録されると、直ちに該入力画像データを用いた処理を実行する。パラレル方式では、処理部PS1~PS4の処理の少なくとも一部が、少なくとも一部の期間において、並列に実行される。
A-3-4-1. Parallel Method In the parallel method, after the processing of the processing units PS1 to PS5 is started by the management unit CL in S20, S65, and S75 in Fig. 4, the processing units PS1 to PS5 operate asynchronously with each other. For example, the processing units PS1 to PS5 are executed as different threads in so-called multi-thread processing. For this reason, when input image data is registered in each of the processing units PS1 to PS5's delivery list, the processing units PS1 to PS5 immediately execute processing using the input image data. In the parallel method, at least some of the processing of the processing units PS1 to PS4 is executed in parallel for at least some of the periods.
元画像データD1_org、D2_org、D3_orgを選択するデータ選択指示が入力されると、供給部PS5を除く4個の処理部PS1~PS4の処理が開始される(図4のS20)。図9(A)の期間1の開始時点では、上述した図8(A)に示すように、受渡リストIL1にのみ入力画像データが登録されているので、ラスタライズ部PS1のみが処理を実行できる。このために、図9(A)の期間1では、変換済画像データD1_convを生成するラスタライズ処理のみが実行される。
When a data selection instruction is input to select the original image data D1_org, D2_org, and D3_org, the four processing units PS1 to PS4, excluding the supply unit PS5, start processing (S20 in FIG. 4). At the start of
図9(A)の期間1が終了した時点で、上述した図8(B)に示すように、変換済画像データD1_convが生成されて受渡リストIL2に登録されるので、期間2には、ラスタライズ部PS1とレイアウト部PS2とが並列に処理を行うことができる。例えば、図9(A)の期間2には、ラスタライズ部PS1によって変換済画像データD2_convを生成するラスタライズ処理と、レイアウト部PS2によってレイアウト画像データD1_layを生成するレイアウト処理と、が並列に実行される。
When
図8(C)には、図9(A)の期間2が終了した時点、すなわち、変換済画像データD2_convを生成するラスタライズ処理と、レイアウト画像データD1_layを生成するレイアウト処理と、が終了した時点の状態が示されている。この時点では、元画像データD3_orgが受渡リストIL1に登録され、変換済画像データD2_convが受渡リストIL2に登録され、レイアウト画像データD1_layが受渡リストIL3、IL4に登録されている。このために、この時点で、処理部PS1~PS4が並列に処理を行える状態にある。このために、図9(A)の期間3には、変換済画像データD3_convを生成するラスタライズ処理と、レイアウト画像データD2_layを生成するレイアウト処理と、プレビュー用画像データD1_preを生成するプレビュー処理と、印刷データD1_bldを生成するビルド処理と、が並列に実行される。
Figure 8 (C) shows the state at the end of
さらに、図9(A)の期間4には、レイアウト画像データD3_layを生成するレイアウト処理と、プレビュー用画像データD2_preを生成するプレビュー処理と、印刷データD2_bldを生成するビルド処理と、が並列に実行される。図9(A)の期間5には、プレビュー用画像データD3_preを生成するプレビュー処理と、印刷データD3_bldを生成するビルド処理と、が並列に実行され、期間5の終了時点で全ての元画像データD1_org、D2_org、D3_orgに対応する印刷データD1_bld、D2_bld、D3_bldの生成が完了する。このように、パラレル処理では、3個の元画像データを用いて印刷データを生成するために要する期間の数は、5である。
Furthermore, in
供給部PS5による供給処理は、処理部PS1~PS4の処理とは異なり、印刷指示が取得された時点から開始される(図5のS75)。供給部PS5の処理は、処理部PS1~PS4の処理とは異なるスレッドとして、処理部PS1~PS4の処理とは非同期で実行される。このために、供給部PS5の処理は、処理部PS1~PS4の処理と並列に実行され得る。 The supply process by the supply unit PS5 differs from the process by the processing units PS1 to PS4 in that it begins when a print instruction is acquired (S75 in FIG. 5). The process by the supply unit PS5 is executed as a thread separate from the process by the processing units PS1 to PS4 and is executed asynchronously with the process by the processing units PS1 to PS4. For this reason, the process by the supply unit PS5 can be executed in parallel with the process by the processing units PS1 to PS4.
図9(A)には、期間4の終了時(期間5の開始時)に印刷指示が取得される例が示されている。この時点で、2個の印刷データD1_bld、D2_bldが生成済みであるので、供給部PS5は、供給処理を直ちに開始することができる。図9(A)の例では、期間5、6、7において、印刷ジョブD1_job、D2_job、D3_jobを供給する供給処理が実行される。このために、期間5には、プレビュー用画像データD3_preを生成するプレビュー処理および印刷データD3_bldを生成するビルド処理と並列に、印刷ジョブD1_jobを供給する供給処理が実行される。
Figure 9 (A) shows an example in which a print instruction is obtained at the end of period 4 (the start of period 5). At this point, two pieces of print data D1_bld and D2_bld have already been generated, so the supply unit PS5 can immediately start the supply process. In the example of Figure 9 (A), the supply process is executed in
A-3-4-2.シーケンシャル方式
シーケンシャル方式では、図4のS20、S65にて管理部CLによって各処理部PS1~PS5の処理が開始された後は、各処理部PS1~PS4は、管理部CLの制御に従って順次に動作する。例えば、処理部PS1~PS4の全ての処理は、1つのスレッドとして実行される。このために、1つの処理部(例えば、PS1)の処理と、他の処理部(例えば、PS2~PS4)の処理と、が並列に実行されることは許容されない。
A-3-4-2. Sequential Method In the sequential method, after the processing of each of the processing units PS1 to PS5 is started by the management unit CL in S20 and S65 in Fig. 4, each of the processing units PS1 to PS4 operates sequentially under the control of the management unit CL. For example, all of the processing units PS1 to PS4 are executed as one thread. For this reason, it is not permitted for the processing of one processing unit (e.g., PS1) and the processing of other processing units (e.g., PS2 to PS4) to be executed in parallel.
ただし、本実施例のシーケンシャル方式では、供給部PS5の処理は、処理部PS1~PS4の処理と並列に実行されることが許容される。供給部PS5の供給処理は、印刷コマンドを付加して印刷ジョブを生成し、該印刷ジョブをプリンタ200に送信することであり、比較的複雑な画像処理を含み得る処理部PS1~PS4の処理と比較して処理負荷が低い。このために、供給部PS5の供給処理は、処理部PS1~PS4の処理と並列に実行されても、全体の処理負荷が過度に高くなる可能性は低い。
However, in the sequential method of this embodiment, the processing of the supply unit PS5 is allowed to be executed in parallel with the processing of the processing units PS1 to PS4. The supply processing of the supply unit PS5 involves generating a print job by adding a print command and sending the print job to the
例えば、図9(B)の期間1が終了した時点で、上述した図8(B)に示すように、変換済画像データD1_convが生成されて受渡リストIL2に登録されるので、期間2には、レイアウト部PS2は処理を開始できる状態にある。この状態であっても、本実施例のシーケンシャル方式では、レイアウト部PS2は、ラスタライズ部PS1が全ての変換済画像データD1_conv、D2_conv、D3_convの生成を完了するまでレイアウト処理を開始しない。レイアウト部PS2は、全ての変換済画像データD1_conv、D2_conv、D3_convが生成された後に、レイアウト処理を開始する。
For example, at the end of
図8(D)には、図9(B)の期間3が終了した時点、すなわち、全ての変換済画像データD1_conv、D2_conv、D3_convが生成された時点の状態が示されている。図8(D)の例では、変換済画像データD1_conv、D2_conv、D3_convが生成され、受渡リストIL2に登録されているが、レイアウト部PS2は、レイアウト処理を実行していないことが解る。シーケンシャル方式では、期間4、5、6にて、レイアウト画像データD1_lay、D2_lay、D3_layを生成するレイアウト処理が順次に実行される(図9(B))。
Figure 8 (D) shows the state at the end of
全てのレイアウト画像データD1_lay、D2_lay、D3_layが生成された後には、プレビュー処理とビルド処理とのいずれも実行可能であるが、本実施例では、プレビュー処理がビルド処理よりも優先される。上述したように、ユーザは、プレビュー画像PIを確認してから印刷指示を入力する場合が多いと考えられるために、プレビュー画像PIの表示を速やかに行うことが好ましいためである。このために、図9(B)に示すように、全てのレイアウト画像データD1_lay、D2_lay、D3_layが生成された後の期間7、8、9にて、プレビュー用画像データD1_pre、D2_pre、D3_preを生成するプレビュー処理が順次に実行される。全てのプレビュー用画像データD1_pre、D2_pre、D3_preが生成された後の期間10、11、12にて、印刷データD1_bld、D2_bld、D3_bldを生成するビルド処理が順次に実行される。
After all the layout image data D1_lay, D2_lay, and D3_lay are generated, both the preview process and the build process can be executed, but in this embodiment, the preview process takes precedence over the build process. As described above, it is considered that the user often inputs a print command after checking the preview image PI, so it is preferable to display the preview image PI promptly. For this reason, as shown in FIG. 9B, in
供給部PS5による供給処理は、本実施例では、印刷指示が取得された後に開始される(図5のS75)。図9(B)には、全ての印刷データD1_bld、D2_bld、D3_bldの生成が完了する前に、印刷指示が取得される場合が例示されている。この場合には、供給部PS5は、元画像データD1_orgに対応する印刷データD1_bldが生成された後に、印刷データD2_bldを生成するビルド処理と並列に、印刷データD1_bldを含む印刷ジョブD1_jobの供給処理を実行する(図9(B)の期間11)。そして、供給部PS5は、元画像データD2_orgに対応する印刷データD2_bldが生成された後に、印刷データD3_bldを生成するビルド処理と並列に、印刷データD2_bldを含む印刷ジョブD2_jobの供給処理を実行する(図9(B)の期間12)。最後に、PS5は、元画像データD3_orgに対応する印刷データD3_bldが生成された後に、印刷データD3_bldを含む印刷ジョブD3_jobの供給処理を実行する(図9(B)の期間13)。
In this embodiment, the supply process by the supply unit PS5 is started after a print instruction is obtained (S75 in FIG. 5). FIG. 9B illustrates a case where a print instruction is obtained before the generation of all print data D1_bld, D2_bld, and D3_bld is completed. In this case, after the print data D1_bld corresponding to the original image data D1_org is generated, the supply unit PS5 executes a supply process of the print job D1_job including the print data D1_bld in parallel with the build process of generating the print data D2_bld (
パラレル方式は、例えば、使用できるリソース(例えば、メモリ容量)が、処理負荷(例えば、処理すべき画像データのサイズ)に対して十分に大きく、並列処理を効率良く実行できる場合に、シーケンシャル方式よりも高速に印刷ジョブの生成と供給とを実行できる。シーケンシャル方式は、例えば、使用できるリソースが処理負荷に対して十分ではなく、並列処理を効率良く実行できない場合であっても、安定して印刷ジョブの生成と供給とを実行できる。 The parallel method can generate and supply print jobs faster than the sequential method, for example, when the available resources (e.g., memory capacity) are sufficiently large compared to the processing load (e.g., the size of image data to be processed) and parallel processing can be performed efficiently. The sequential method can stably generate and supply print jobs even when the available resources are insufficient for the processing load and parallel processing cannot be performed efficiently.
A-3-4-3.印刷条件変更指示が取得される場合の処理
次に、印刷条件変更指示が取得される場合について説明する。図10は、印刷条件変更指示が取得される場合の処理部の処理の第1の説明図である。図11は、印刷条件変更指示が取得される場合におけるパラレル方式の説明図である。パラレル方式にて印刷条件変更指示が取得される場合の説明図である。図11(A)には、図9(A)のパラレル方式において期間4の終了時(期間5の開始時)に、余白変更指示が取得される場合が例示されている。この場合には、期間4の終了時に、処理部PS1~PS4の処理は、一時的に停止される(図4のS30)。なお、供給部PS5の処理は、印刷指示が取得された後に開始され、印刷指示が取得された後には印刷条件変更指示の入力は許容されず、印刷条件変更指示が取得されることはない。このために、印刷条件変更指示が取得される時点では、供給部PS5の処理は開始されていないので、図4のS30では、PS5の処理を停止する必要はない。
A-3-4-3. Processing when a printing condition change instruction is acquired Next, a case where a printing condition change instruction is acquired will be described. FIG. 10 is a first explanatory diagram of the processing of the processing unit when a printing condition change instruction is acquired. FIG. 11 is an explanatory diagram of the parallel method when a printing condition change instruction is acquired. An explanatory diagram of the case where a printing condition change instruction is acquired by the parallel method. FIG. 11(A) illustrates a case where a margin change instruction is acquired at the end of period 4 (start of period 5) in the parallel method of FIG. 9(A). In this case, at the end of
図10(A)には、期間4の終了時、すなわち、処理部PS1~PS4の処理が停止される時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この時点で、元画像データD1_org、D2_org、D3_orgに対応するラスタライズ処理、すなわち、変換済画像データD1_conv、D2_conv、D3_convを生成するラスタライズ処理は終了している。このために、ラスタライズ部PS1への受渡リストIL1には、画像データは登録されておらず、ラスタライズ部PS1の管理リストOL1には、生成済み(出力済み)の変換済画像データD1_conv、D2_conv、D3_convが登録されている。
Figure 10 (A) shows the state of management lists OL1, OL2 and transfer lists IL1 to IL4 at the end of
この時点で、元画像データD1_org、D2_org、D3_orgに対応するレイアウト処理、すなわち、レイアウト画像データD1_lay、D2_lay、D3_layを生成するレイアウト処理は終了している。このために、レイアウト部PS2への受渡リストIL2には、画像データは登録されておらず、レイアウト部PS2の管理リストOL2には、生成済み(出力済み)のレイアウト画像データD1_lay、D2_lay、D3_layが登録されている。 At this point, the layout processing corresponding to the original image data D1_org, D2_org, and D3_org, i.e., the layout processing to generate the layout image data D1_lay, D2_lay, and D3_lay, is completed. For this reason, no image data is registered in the delivery list IL2 to the layout section PS2, and the generated (output) layout image data D1_lay, D2_lay, and D3_lay are registered in the management list OL2 of the layout section PS2.
この時点で、元画像データD1_org、D2_orgに対応するプレビュー処理およびビルド処理、すなわち、プレビュー用画像データD1_pre、D2_preを生成するプレビュー処理と印刷データD1_bld、D2_bldを生成するビルドは終了している。この時点で、元画像データD3_orgに対応するプレビュー処理およびビルド処理、すなわち、プレビュー用画像データD3_preを生成するプレビュー処理と印刷データD3_bldを生成するビルドは終了していない。このために、プレビュー部PS3およびビルド部PS4への受渡リストIL3、IL4には、未処理の入力画像データであるレイアウト画像データD3_layのみが登録されている。 At this point, the preview and build processes corresponding to the original image data D1_org and D2_org, i.e., the preview process to generate preview image data D1_pre and D2_pre and the build to generate print data D1_bld and D2_bld, have been completed. At this point, the preview and build processes corresponding to the original image data D3_org, i.e., the preview process to generate preview image data D3_pre and the build to generate print data D3_bld, have not been completed. For this reason, only the layout image data D3_lay, which is unprocessed input image data, is registered in the transfer lists IL3 and IL4 to the preview unit PS3 and the build unit PS4.
処理部PS1~PS4の処理が停止された(図4のS30)後には、処理部PS1~PS5への受渡リストIL1~IL5がクリアされる(図4のS35)。さらに、余白変更指示が取得された場合には(図5のS50にてYES)、レイアウト部PS2およびレイアウト部PS2よりも下流の処理部PS3~PS5が再処理の対象に決定される(図5のS52、図6)。したがって、図5のS54では、処理部PS2~PS5の管理リストOL2~OL5がクリアされる。さらに、ラスタライズ部PS1への受渡リストIL1には、再度、元画像データD1_org、D2_org、D3_orgが登録されて(図5のS55)、処理部PS1~PS4の処理が再開される(図5のS65)。 After the processing of the processing units PS1 to PS4 is stopped (S30 in FIG. 4), the transfer lists IL1 to IL5 for the processing units PS1 to PS5 are cleared (S35 in FIG. 4). Furthermore, if a margin change instruction is acquired (YES in S50 in FIG. 5), the layout unit PS2 and the processing units PS3 to PS5 downstream of the layout unit PS2 are determined to be the targets for reprocessing (S52 in FIG. 5, FIG. 6). Therefore, in S54 in FIG. 5, the management lists OL2 to OL5 for the processing units PS2 to PS5 are cleared. Furthermore, the original image data D1_org, D2_org, and D3_org are registered again in the transfer list IL1 for the rasterization unit PS1 (S55 in FIG. 5), and the processing of the processing units PS1 to PS4 is resumed (S65 in FIG. 5).
図10(B)には、期間4の終了後に処理部PS1~PS4の処理が再開された時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この時点では、図4のS35にて受渡リストIL1~IL5がクリアされたために、図10(B)の受渡リストIL2~IL4には、画像データが登録されていない。そして、処理部PS1への受渡リストIL1は、一旦クリアされる(図4のS35)が、再度、元画像データD1_org、D2_org、D3_orgが登録される(図5のS55)ので、図10(B)の受渡リストIL1には、元画像データD1_org、D2_org、D3_orgが登録されている。さらに、図10(B)では、再処理の対象でないラスタライズ部PS1の管理リストOL1は、停止前の状態に維持されているが、再処理の対象であるレイアウト部PS2の管理リストOL2は、クリアされている(図5のS52、S54)。
Figure 10 (B) shows the state of management lists OL1, OL2 and delivery lists IL1-IL4 at the time when processing of processing units PS1-PS4 is resumed after the end of
処理部PS1~PS4の処理が再開されると、先ず、自身への受渡リストIL1に元画像データが登録されているラスタライズ部PS1が図7の処理を行う。具体的には、ラスタライズ部PS1は、受渡リストIL1に登録されている元画像データD1_org、D2_org、D3_orgを順次に注目画像データとして、該注目画像データに対応する変換済画像データD1_conv、D2_conv、D3_convが、自身の管理リストOL1に登録されているか否かを判断する(図7のS105、S110)。注目画像データとされた元画像データD1_org、D2_org、D3_orgは受渡リストIL1から削除される(図7のS105)。これらの変換済画像データD1_conv、D2_conv、D3_convは、自身の管理リストOL1に登録されている。このために、ラスタライズ部PS1は、元画像データD1_org、D2_org、D3_orgを用いて変換済画像データD1_conv、D2_conv、D3_convを生成するラスタライズ処理の再処理を実行せずに(図7のS110にてYES)、変換済画像データD1_conv、D2_conv、D3_convを、自身の下流側の受渡リストIL2に登録する(図7のS125)。このラスタライズ部PS1の処理は、ラスタライズ処理を実際に実行することなく、単に、生成済みの変換済画像データD1_conv、D2_conv、D3_convを自身の下流側の受渡リストIL2に登録するだけであるので、瞬時に完了する。このように、出力画像データを生成することなく、出力画像データを形式的に下流側の受渡リストに登録するだけの処理を形式処理とも呼ぶ。 When the processing of the processing units PS1 to PS4 is resumed, the rasterization unit PS1, whose original image data is registered in its own transfer list IL1, first performs the process shown in FIG. 7. Specifically, the rasterization unit PS1 sequentially sets the original image data D1_org, D2_org, and D3_org registered in the transfer list IL1 as image data of interest, and determines whether the converted image data D1_conv, D2_conv, and D3_conv corresponding to the image data of interest are registered in its own management list OL1 (S105 and S110 in FIG. 7). The original image data D1_org, D2_org, and D3_org that are set as image data of interest are deleted from the transfer list IL1 (S105 in FIG. 7). These converted image data D1_conv, D2_conv, and D3_conv are registered in its own management list OL1. For this reason, the rasterization unit PS1 does not re-process the rasterization process to generate the converted image data D1_conv, D2_conv, and D3_conv using the original image data D1_org, D2_org, and D3_org (YES in S110 in FIG. 7), but registers the converted image data D1_conv, D2_conv, and D3_conv in its own downstream transfer list IL2 (S125 in FIG. 7). This process of the rasterization unit PS1 is completed instantly because it does not actually execute the rasterization process, but simply registers the generated converted image data D1_conv, D2_conv, and D3_conv in its own downstream transfer list IL2. In this way, the process of simply registering the output image data formally in the downstream transfer list without generating the output image data is also called formal processing.
図10(C)には、以上のラスタライズ部PS1の形式処理が完了した時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この時点で、レイアウト部PS2への受渡リストIL2には、入力画像データとして変換済画像データD1_conv、D2_conv、D3_convが登録されているので、レイアウト部PS2は、自身の処理を開始できる。 Figure 10 (C) shows the state of the management lists OL1 and OL2 and the delivery lists IL1 to IL4 at the time when the formatting process of the rasterization unit PS1 is completed. At this point, the converted image data D1_conv, D2_conv, and D3_conv are registered as input image data in the delivery list IL2 to the layout unit PS2, so the layout unit PS2 can start its own processing.
レイアウト部PS2は、受渡リストIL2に登録されている変換済画像データD1_convを注目画像データとして、対応するレイアウト画像データD1_layが自身の管理リストOL2に登録されているか否かを判断する(図7のS105、S110)。注目画像データとされた変換済画像データD1_convは受渡リストIL2から削除される(図7のS105)。管理リストOL2はクリアされているので管理リストOL2には、レイアウト画像データD1_layは登録されていない(図5のS54、図10(C))ので、レイアウト部PS2は、レイアウト画像データD1_layが自身の管理リストOL2に登録されていないと判断する(図7のS110:NO)。このために、レイアウト部PS2は、変換済画像データD1_convを用いてレイアウト処理を実行してレイアウト画像データD1_layを生成し(図7のS115)、該レイアウト画像データD1_layを管理リストOL2に登録し(図7のS120)、該レイアウト画像データD1_layを下流側の受渡リストIL3、IL4にも登録する(図7のS125)。このように、処理部PS1~PS4の処理が再開された後には、レイアウト部PS2によってレイアウト画像データD1_layを生成するレイアウト処理が実行される(図11(A)の期間5)。
The layout unit PS2 determines whether the converted image data D1_conv registered in the transfer list IL2 is the image data of interest and whether the corresponding layout image data D1_lay is registered in its own management list OL2 (S105, S110 in FIG. 7). The converted image data D1_conv that has been set as the image data of interest is deleted from the transfer list IL2 (S105 in FIG. 7). Since the management list OL2 has been cleared, the layout image data D1_lay is not registered in the management list OL2 (S54 in FIG. 5, FIG. 10(C)), so the layout unit PS2 determines that the layout image data D1_lay is not registered in its own management list OL2 (S110: NO in FIG. 7). For this purpose, the layout unit PS2 executes layout processing using the converted image data D1_conv to generate layout image data D1_lay (S115 in FIG. 7), registers the layout image data D1_lay in the management list OL2 (S120 in FIG. 7), and also registers the layout image data D1_lay in the downstream delivery lists IL3 and IL4 (S125 in FIG. 7). In this way, after the processing of the processing units PS1 to PS4 is resumed, the layout unit PS2 executes layout processing to generate the layout image data D1_lay (
図10(D)には、期間5の終了後、すなわち、レイアウト部PS2によってレイアウト画像データD1_layを生成するレイアウト処理が実行された後の管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この状態では、上述したように変換済画像データD1_convが受渡リストIL2から削除され(図7のS105)、レイアウト画像データD1_layが管理リストOL2および受渡リストIL2に登録されている(図7のS120、S125)。
Figure 10 (D) shows the state of the management lists OL1 and OL2 and the delivery lists IL1 to IL4 after the end of
以上の説明から解るように、再処理の対象にされない処理部(図11(A)の例ではラスタライズ部PS1)は、自身の管理リストがクリアされていないので、再開時に自身の処理の再処理を実行することなく、自身の出力画像データを下流側の受渡リストに登録する。再処理の対象にされる処理部(図11(A)の例では処理部PS2~PS4)は、自身の管理リストがクリアされているので、再開時に自身の処理の再処理を実行して自身の出力画像データを生成し直したうえで、下流側の受渡リストに登録する。このように、再処理の対象にされない処理部の管理リストをクリアせず、再処理の対象にされる処理部の管理リストをクリアすることで、再処理の対象にされない処理部に再処理を実行させず、再処理の対象にされる処理部に再処理を実行させることを適切に実現できる。なお、供給部PS5は、印刷指示の後に処理を開始するので、印刷条件変更指示が取得される場合であっても印刷条件が確定した後に処理を開始することになるので、再処理を行うことはない。 As can be seen from the above explanation, the processing unit that is not the target of reprocessing (the rasterizing unit PS1 in the example of FIG. 11A) does not reprocess its own process when restarted because its management list has not been cleared, and registers its output image data in the downstream delivery list. The processing units that are the target of reprocessing (the processing units PS2 to PS4 in the example of FIG. 11A) have their management lists cleared, and therefore reprocess their own process when restarted, regenerate their own output image data, and register it in the downstream delivery list. In this way, by not clearing the management lists of the processing units that are not the target of reprocessing, and by clearing the management lists of the processing units that are the target of reprocessing, it is possible to appropriately prevent the processing units that are not the target of reprocessing from reprocessing and allow the processing units that are the target of reprocessing to reprocess. Note that the supply unit PS5 starts processing after a print instruction, and therefore does not perform reprocessing even if a print condition change instruction is acquired, because it starts processing after the print conditions are confirmed.
図11(A)の例では、シングルハッチングされた処理は、クロスハッチングされた処理の再処理である。クロスハッチングされた処理の出力画像データは、余白の変更指示が取得されたことよって無駄になり、最終的な印刷ジョブの生成には用いられない。ハッチングされていない処理は、再処理が実行されない処理である。ハッチングされていない処理の出力画像データとシングルハッチングされた処理の出力画像データとが、最終的な印刷ジョブの生成に用いられる。すなわち、ハッチングされていない処理の出力画像データは、余白の変更指示が取得される前の処理であっても無駄にはならない。この結果、例えば、印刷データの生成処理の開始後に、余白の変更指示が取得された場合であっても一部の生成済みの出力画像データは、最終的な印刷ジョブの生成に用いられる。したがって、例えば、余白の変更指示が取得された場合に全ての処理を実行し直す場合と比較して、印刷データや印刷ジョブの生成に要する処理時間を短くすることができる。 In the example of FIG. 11A, the single-hatched process is a re-process of the cross-hatched process. The output image data of the cross-hatched process is wasted because an instruction to change the margins has been obtained, and is not used to generate the final print job. The non-hatched process is a process that is not re-processed. The output image data of the non-hatched process and the output image data of the single-hatched process are used to generate the final print job. In other words, the output image data of the non-hatched process is not wasted even if it is a process performed before an instruction to change the margins is obtained. As a result, for example, even if an instruction to change the margins is obtained after the start of the print data generation process, some of the generated output image data is used to generate the final print job. Therefore, for example, the processing time required to generate print data and a print job can be shortened compared to the case where all processes are re-executed when an instruction to change the margins is obtained.
図11(B)には、図9(A)のパラレル方式において期間4の終了時(期間5の開始時)に、データ変更指示が取得される場合が例示されている。この例では、データ変更指示は、元画像データD2_orgに代えて、元画像データD4_orgを選択する指示である。この場合には、余白変更指示が取得された場合と同様に、期間4の終了時に、処理部PS1~PS4の処理は、一時的に停止される(図4のS30)。期間4の終了時、すなわち、処理部PS1~PS4の処理が停止される時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態は、上述した図10(A)に示す状態である。
Figure 11 (B) illustrates a case where a data change instruction is obtained at the end of period 4 (start of period 5) in the parallel method of Figure 9 (A). In this example, the data change instruction is an instruction to select original image data D4_org instead of original image data D2_org. In this case, similar to the case where a margin change instruction is obtained, the processing of processing units PS1 to PS4 is temporarily stopped at the end of period 4 (S30 in Figure 4). At the end of
処理部PS1~PS4の処理が停止された(図4のS30)後には、処理部PS1~PS5への受渡リストIL1~IL5がクリアされる(図4のS35)。さらに、データ変更指示が取得された場合には(図5のS40にてYES)、処理部PS1、PS4の管理リストOL1~OL4が更新される(図5のS45)。具体的には、処理対象ではなくなった元画像データD2_orgに対応する出力画像データの登録が、管理リストOL1~OL4から削除される。さらに、ラスタライズ部PS1への受渡リストIL1には、変更後の処理対象の元画像データD1_org、D3_org、D4_orgが登録されて(図5のS55)、処理部PS1~PS4の処理が再開される(図5のS65)。 After the processing of the processing units PS1 to PS4 is stopped (S30 in FIG. 4), the transfer lists IL1 to IL5 for the processing units PS1 to PS5 are cleared (S35 in FIG. 4). Furthermore, if a data change instruction is acquired (YES in S40 in FIG. 5), the management lists OL1 to OL4 for the processing units PS1 and PS4 are updated (S45 in FIG. 5). Specifically, the registration of the output image data corresponding to the original image data D2_org that is no longer the processing target is deleted from the management lists OL1 to OL4. Furthermore, the original image data D1_org, D3_org, and D4_org to be processed after the change are registered in the transfer list IL1 for the rasterization unit PS1 (S55 in FIG. 5), and the processing of the processing units PS1 to PS4 is resumed (S65 in FIG. 5).
図12は、印刷条件変更指示が取得される場合の各処理部の処理の第2の説明図である。図12(A)には、期間4の終了後に処理部PS1~PS4の処理が再開された時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この時点では、図4のS35にて受渡リストIL1~IL5がクリアされたために、図12(A)の受渡リストIL2~IL4には、画像データが登録されていない。そして、処理部PS1への受渡リストIL1は、一旦クリアされる(図4のS35)が、新たに、元画像データD1_org、D3_org、D4_orgが登録される(図5のS55)ので、図11(A)の受渡リストIL1には、元画像データD1_org、D3_org、D4_orgが登録されている。さらに、図12(A)では、ラスタライズ部PS1の管理リストOL1から処理対象ではなくなった元画像データD2_orgに対応する変換済画像データD2_convの登録が削除されている(図5のS45)。同様に、レイアウト部PS2の管理リストOL2から元画像データD2_orgに対応するレイアウト画像データD2_layの登録が削除されている。図示は省略するが、同様に、プレビュー部PS3およびビルド部PS4の管理リストOL3、OL4からも元画像データD2_orgに対応するプレビュー用画像データD2_pre、印刷データD2_bldの登録が削除される。
Figure 12 is a second explanatory diagram of the processing of each processing unit when a printing condition change instruction is obtained. Figure 12 (A) shows the state of management lists OL1 and OL2 and transfer lists IL1 to IL4 at the time when processing units PS1 to PS4 resume processing after the end of
処理部PS1~PS4の処理が再開されると、先ず、自身への受渡リストIL1に元画像データが登録されているラスタライズ部PS1が図7の処理を行う。具体的には、ラスタライズ部PS1は、受渡リストIL1に登録されている元画像データD1_org、D3_orgを順次に注目画像データとして、該注目画像データに対応する変換済画像データD1_conv、D3_convが、自身の管理リストOL1に登録されているか否かを判断する(図7のS105、S110)。注目画像データとされた元画像データD1_org、D3_orgは受渡リストIL1から削除される(図7のS105)。これらの変換済画像データD1_conv、D3_convは、自身の管理リストOL1に登録されている。このために、ラスタライズ部PS1は、元画像データD1_org、D3_orgを用いて変換済画像データD1_conv、D3_convを生成するラスタライズ処理の再処理を実行せずに(図7のS110にてYES)、変換済画像データD1_conv、D3_convを、自身の下流側の受渡リストIL2に登録する(図7のS125)。 When the processing of the processing units PS1 to PS4 is resumed, the rasterization unit PS1, whose original image data is registered in its own transfer list IL1, first performs the process shown in FIG. 7. Specifically, the rasterization unit PS1 sequentially sets the original image data D1_org, D3_org registered in the transfer list IL1 as image data of interest, and determines whether the converted image data D1_conv, D3_conv corresponding to the image data of interest are registered in its own management list OL1 (S105, S110 in FIG. 7). The original image data D1_org, D3_org set as image data of interest are deleted from the transfer list IL1 (S105 in FIG. 7). These converted image data D1_conv, D3_conv are registered in its own management list OL1. For this reason, the rasterization unit PS1 does not re-execute the rasterization process to generate the converted image data D1_conv, D3_conv using the original image data D1_org, D3_org (YES in S110 in FIG. 7), but registers the converted image data D1_conv, D3_conv in its own downstream transfer list IL2 (S125 in FIG. 7).
図12(B)には、以上のラスタライズ部PS1の形式処理が完了した時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この時点で、レイアウト部PS2への受渡リストIL2には、入力画像データとして変換済画像データD1_conv、D3_convが登録されているので、レイアウト部PS2は、自身の処理を開始できる。 Figure 12 (B) shows the state of the management lists OL1 and OL2 and the delivery lists IL1 to IL4 at the time when the formatting process of the rasterization unit PS1 is completed. At this point, the converted image data D1_conv and D3_conv are registered as input image data in the delivery list IL2 to the layout unit PS2, so the layout unit PS2 can start its own processing.
レイアウト部PS2は、受渡リストIL2に登録されている変換済画像データD1_conv、D3_convを注目画像データとして、対応するレイアウト画像データD1_lay、D3_layが自身の管理リストOL2に登録されているか否かを判断する(図7のS105、S110)。注目画像データとされた変換済画像データD1_conv、D3_convは受渡リストIL2から削除される(図7のS105)。管理リストOL2には、レイアウト画像データD1_lay、D3_layは登録されている。このために、レイアウト部PS2は、変換済画像データD1_conv、D3_convを用いてレイアウト画像データD1_lay、D3_layを生成するレイアウト処理の再処理を実行せずに(図7のS110にてYES)、レイアウト画像データD1_lay、D3_layを、自身の下流側の受渡リストIL3、IL4に登録する(図7のS125)。 The layout section PS2 determines whether the corresponding layout image data D1_lay, D3_lay are registered in its own management list OL2, taking the converted image data D1_conv, D3_conv registered in the transfer list IL2 as the image data of interest (S105, S110 in FIG. 7). The converted image data D1_conv, D3_conv that are the image data of interest are deleted from the transfer list IL2 (S105 in FIG. 7). The layout image data D1_lay, D3_lay are registered in the management list OL2. For this reason, the layout section PS2 does not re-process the layout process that generates the layout image data D1_lay, D3_lay using the converted image data D1_conv, D3_conv (YES in S110 in FIG. 7), but registers the layout image data D1_lay, D3_lay in its own downstream transfer lists IL3, IL4 (S125 in FIG. 7).
図12(C)には、以上のレイアウト部PS2の形式処理が完了した時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この時点で、プレビュー部PS3およびビルド部PS4への受渡リストIL3、IL4には、入力画像データとしてレイアウト画像データD1_lay、D3_layが登録されているので、プレビュー部PS3およびビルド部PS4は、自身の処理を開始できる。 Figure 12 (C) shows the state of management lists OL1, OL2 and delivery lists IL1 to IL4 at the time when the format processing of layout unit PS2 is completed. At this point, layout image data D1_lay, D3_lay are registered as input image data in delivery lists IL3, IL4 to preview unit PS3 and build unit PS4, so preview unit PS3 and build unit PS4 can start their own processing.
プレビュー部PS3およびビルド部PSは、受渡リストIL3、IL4に登録されているレイアウト画像データD1_layを注目画像データとして、対応するプレビュー用画像データD1_pre、印刷データD1_bldが自身の管理リストOL3、OL4に登録されているか否かを判断する(図7のS105、S110)。注目画像データとされたレイアウト画像データD1_layは受渡リストIL3、IL4から削除される(図7のS105)。期間3にて、プレビュー部PS3およびビルド部PSはプレビュー用画像データD1_pre、印刷データD1_bldを生成済みであるので、図示は省略するが管理リストOL3、OL4には、プレビュー用画像データD1_pre、印刷データD1_bldがそれぞれ登録されている。このために、プレビュー部PS3およびビルド部PSは、レイアウト画像データD1_layを用いてプレビュー用画像データD1_pre、印刷データD1_bldを生成するレイアウト処理の再処理を実行しない(図7のS110にてYES)。ビルド部PS4は、印刷データD1_bldを、自身の下流側の受渡リストIL5に登録する(図7のS125)。
The preview unit PS3 and the build unit PS determine whether the layout image data D1_lay registered in the delivery lists IL3 and IL4 is the image data of interest, and whether the corresponding preview image data D1_pre and print data D1_bld are registered in their management lists OL3 and OL4 (S105 and S110 in FIG. 7). The layout image data D1_lay that is the image data of interest is deleted from the delivery lists IL3 and IL4 (S105 in FIG. 7). In
図12(D)には、以上のプレビュー部PS3およびビルド部PSの形式処理が完了した時点における管理リストOL1、OL2と受渡リストIL1~IL4との状態が示されている。この時点で、ラスタライズ部PS1への受渡リストIL1には、入力画像データとして元画像データD4_orgが登録され、プレビュー部PS3およびビルド部PSへの受渡リストIL3、IL4には、入力画像データとしてレイアウト画像データD3_layが登録されている。このために、図11(B)の期間5では、元画像データD4_orgを用いて変換済画像データD4_convを生成するラスタライズ処理と、レイアウト画像データD3_layを用いてプレビュー用画像データD3_preを生成するプレビュー処理と、レイアウト画像データD3_layを用いて印刷データD3_bldreを生成するビルド処理と、が実行される。図11(B)の期間5では、レイアウト処理は実行されない。
Figure 12 (D) shows the state of the management lists OL1, OL2 and the transfer lists IL1 to IL4 at the time when the format processing of the preview unit PS3 and the build unit PS is completed. At this point, the original image data D4_org is registered as the input image data in the transfer list IL1 to the rasterization unit PS1, and the layout image data D3_lay is registered as the input image data in the transfer lists IL3 and IL4 to the preview unit PS3 and the build unit PS. For this reason, during
その後の期間6では、図11(B)に示すように、期間5にて生成された変換済画像データD4_convを用いてレイアウト画像データD4_layを生成するレイアウト処理が実行される。期間7では、期間6にて生成されたレイアウト画像データD4_layを用いて、プレビュー用画像データD4_preを生成するプレビュー処理および印刷データD4_bldを生成するビルド処理が実行される。
In the
以上の説明から解るように、データ変更指示によって処理対象ではなくなった元画像データD2_orgに対応する各処理部PS1~PS4の処理に代えて、新たな元画像データD4_orgに対応する各処理部PS1~PS4の処理が実行される。データ変更指示後も処理対象である元画像データD1_org、D3_orgに対応する各処理部PS1~PS4の処理は、既に実行済みである場合には、再度、実行されることはない。 As can be seen from the above explanation, instead of the processing of each of the processing units PS1 to PS4 corresponding to the original image data D2_org that is no longer the processing target due to the data change instruction, the processing of each of the processing units PS1 to PS4 corresponding to the new original image data D4_org is executed. If the processing of each of the processing units PS1 to PS4 corresponding to the original image data D1_org and D3_org that are still the processing target after the data change instruction has already been executed, it will not be executed again.
図11(B)の例では、シングルハッチングされた元画像データD4_orgに対応する各処理部PS1~PS4の処理は、クロスハッチングされた元画像データD2_orgに対応する各処理部PS1~PS4の処理の再処理である、と言うことができる。クロスハッチングされた処理の出力画像データは、余白の変更指示が取得されたことよって無駄になり、最終的な印刷ジョブの生成には用いられない。ハッチングされていない処理は、再処理が実行されない処理である。ハッチングされていない処理の出力画像データとシングルハッチングされた処理の出力画像データとが、最終的な印刷ジョブの生成に用いられる。すなわち、ハッチングされていない処理の出力画像データは、データ変更指示が取得される前の処理であっても無駄にはならない。この結果、例えば、印刷データの生成処理の開始後に、データ変更指示が取得された場合であっても一部の生成済みの出力画像データは、最終的な印刷ジョブの生成に用いられる。したがって、例えば、データ変更指示が取得された場合に全ての処理を実行し直す場合と比較して、印刷データや印刷ジョブの生成に要する処理時間を短くすることができる。 In the example of FIG. 11B, the processing of each of the processing units PS1 to PS4 corresponding to the single-hatched original image data D4_org can be said to be a re-processing of the processing of each of the processing units PS1 to PS4 corresponding to the cross-hatched original image data D2_org. The output image data of the cross-hatched processing is wasted because a margin change instruction has been acquired, and is not used in the generation of the final print job. The non-hatched processing is a processing that is not re-processed. The output image data of the non-hatched processing and the output image data of the single-hatched processing are used in the generation of the final print job. In other words, the output image data of the non-hatched processing is not wasted even if it is a processing before a data change instruction is acquired. As a result, for example, even if a data change instruction is acquired after the start of the print data generation processing, some of the generated output image data is used in the generation of the final print job. Therefore, for example, the processing time required to generate print data and a print job can be shortened compared to the case where all processing is re-executed when a data change instruction is acquired.
次に、シーケンシャル方式について、印刷条件変更指示が取得される場合に実行される処理を説明する。図13は、印刷条件変更指示が取得される場合におけるシーケンシャル方式の説明図である。図13(A)には、図9(B)のシーケンシャル方式において期間8の終了時(期間9の開始時)に、カラーモードの変更指示が取得される場合が例示されている。カラーモードの変更指示が取得される場合には、図6に示すように処理部PS1、PS2は、再処理の対象にされず、処理部PS3~PS5が再処理の対象とされる。この場合であってもパラレル方式において説明したように、図4のS30、S35、図5のS52~S65が実行される。これによって、期間9以降において、再処理の対象とされない処理部PS1、PS2の処理については、期間8までに実行済みの処理の再処理は実行されない。そして、再処理の対象とされる処理部PS3~PS4の処理のうち、期間8までに実行済みの処理の再処理が実行される。図13(A)の例では、プレビュー用画像データD1_pre、D2_preを生成するプレビュー処理の再処理が、期間9、10においてそれぞれ実行されている。図13(A)の例では、シングルハッチングされた処理は、クロスハッチングされた処理の再処理である。
Next, the process executed when a print condition change instruction is acquired in the sequential method will be described. FIG. 13 is an explanatory diagram of the sequential method when a print condition change instruction is acquired. FIG. 13(A) illustrates a case where a color mode change instruction is acquired at the end of period 8 (start of period 9) in the sequential method of FIG. 9(B). When a color mode change instruction is acquired, as shown in FIG. 6, processing units PS1 and PS2 are not subject to reprocessing, and processing units PS3 to PS5 are subject to reprocessing. Even in this case, as explained in the parallel method, S30 and S35 in FIG. 4 and S52 to S65 in FIG. 5 are executed. As a result, for the processes of processing units PS1 and PS2 that are not subject to reprocessing after
図13(B)には、図9(B)のシーケンシャル方式において期間8の終了時(期間9の開始時)に、データ変更指示が取得される場合が例示されている。この例では、データ変更指示は、元画像データD2_orgに代えて、元画像データD4_orgを選択する指示である。この場合であってもパラレル方式において説明したように、図4のS30、S35、図5のS45、S55~S65が実行される。これによって、期間9以降において、元画像データD2_orgに対応する各処理部PS1~PS4の処理に代えて、元画像データD4_orgに対応する各処理部PS1~PS4の処理が実行される。例えば、期間10において、元画像データD4_orgを用いて変換済画像データD4_convを生成するラスタライズ処理が実行され、期間11において、変換済画像データD4_convを用いてレイアウト画像データD4_layを生成するレイアウト処理が実行される。期間12において、レイアウト画像データD4_layを用いてプレビュー用画像データD4_preを生成するプレビュー処理が実行され、期間15において、レイアウト画像データD4_layを用いて印刷データD4_bldを生成するビルド処理が実行される。データ変更指示後も処理対象である元画像データD1_org、D3_orgに対応する各処理部PS1~PS4の処理は、既に実行済みである場合には、再度、実行されることはない。
Figure 13 (B) illustrates a case where a data change instruction is acquired at the end of period 8 (start of period 9) in the sequential method of Figure 9 (B). In this example, the data change instruction is an instruction to select original image data D4_org instead of original image data D2_org. Even in this case, as described in the parallel method, S30 and S35 of Figure 4 and S45, S55 to S65 of Figure 5 are executed. As a result, from
図13(B)の例では、シングルハッチングされた元画像データD4_orgに対応する各処理部PS1~PS3の処理は、クロスハッチングされた元画像データD2_orgに対応する各処理部PS1~PS3の処理の再処理である、と言うことができる。 In the example of FIG. 13(B), the processing of each of the processing units PS1 to PS3 corresponding to the single-hatched original image data D4_org can be said to be a reprocessing of the processing of each of the processing units PS1 to PS3 corresponding to the cross-hatched original image data D2_org.
以上の説明から解るように、シーケンシャル方式においても、印刷データの生成処理の開始後に、印刷条件変更指示(印刷設定変更指示またはデータ変更指示)が取得された場合に、一部の生成済みの出力画像データは、最終的な印刷ジョブの生成に用いられる。したがって、例えば、印刷条件変更指示が取得された場合に全ての処理を実行し直す場合と比較して、印刷データや印刷ジョブの生成に要する処理時間を短くすることができる。 As can be seen from the above explanation, even in the sequential method, if a print condition change instruction (print setting change instruction or data change instruction) is obtained after the print data generation process has started, some of the generated output image data is used to generate the final print job. Therefore, for example, the processing time required to generate print data and a print job can be shortened compared to the case where all processing is re-executed when a print condition change instruction is obtained.
また、本実施例において、再処理は、処理部PS1~PS4の処理のうち、印刷条件の変更前とは異なる出力データを出力すべき処理である変更対象処理について、入力データの少なくとも一部を変更して処理を実行し直すことを意味する。入力データは、例えば、入力画像データと、印刷設定のためのパラメータと、のいずれかを少なくとも含む。例えば、上述したように、データ変更指示が取得される場合には、図5のS43にて特定される変更対象の元画像データに対応する処理部PS1~PS4の処理が、再処理の対象である。印刷設定変更指示が取得される場合には、図5のS52にて決定される処理部の処理が、再処理の対象である。 In addition, in this embodiment, reprocessing means that, for a process among the processes of the processing units PS1 to PS4 that is to be changed and that is to output output data that is different from that before the printing conditions were changed, at least a portion of the input data is changed and the process is executed again. The input data includes, for example, at least either input image data or parameters for print settings. For example, as described above, when a data change instruction is obtained, the process of the processing units PS1 to PS4 that corresponds to the original image data to be changed, which is identified in S43 of FIG. 5, is the target of reprocessing. When a print setting change instruction is obtained, the process of the processing unit determined in S52 of FIG. 5 is the target of reprocessing.
以上説明した本実施例によれば、UI処理部UPは、ユーザによって入力されるデータ選択指示を取得し、データ選択指示の入力後にユーザによって入力される印刷条件変更指示を取得する(図3(B))。処理部PS1~PS4は、データ選択指示に基づいて選択された元画像データD1_org、D2_org、D3_orgを用いて印刷データを生成する生成処理を実行する(図4のS15~S20、図7、図9)。管理部CLは、印刷条件変更指示(データ変更指示または印刷設定変更指示)が取得される場合に(図5のS40にてYES、または、S50にてYES)、印刷条件変更指示に基づく印刷条件の変更に応じて印刷条件の変更前とは異なる出力データを出力すべき処理である変更対象処理であるか否かを判断する(図5のS43、または、図5のS52)。処理部PS1~PS4は、データ選択指示が取得された後に印刷データの生成を開始する(図4のS20、図9)。処理部PS1~PS4は、印刷データの生成の開始後に印刷条件変更指示が取得される場合に、処理部PS1~PS4の処理のうちの開始済みの処理のうち、変更対象処理の再処理を実行し、開始済みの処理のうち、変更対象処理とは異なる処理の再処理を実行しない(図9)。この結果、印刷データの生成処理が開始された後に、印刷条件が変更される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる。 According to the embodiment described above, the UI processing unit UP acquires a data selection instruction input by the user, and acquires a printing condition change instruction input by the user after the data selection instruction is input (FIG. 3B). The processing units PS1 to PS4 execute a generation process that generates print data using the original image data D1_org, D2_org, and D3_org selected based on the data selection instruction (S15 to S20 in FIG. 4, FIG. 7, FIG. 9). When a printing condition change instruction (data change instruction or print setting change instruction) is acquired (YES in S40 in FIG. 5, or YES in S50), the management unit CL determines whether the process is a change target process that is a process that should output output data different from the output data before the printing conditions were changed in response to the change in printing conditions based on the printing condition change instruction (S43 in FIG. 5, or S52 in FIG. 5). The processing units PS1 to PS4 start generating print data after the data selection instruction is acquired (S20 in FIG. 4, FIG. 9). When a printing condition change instruction is acquired after the start of print data generation, processing units PS1 to PS4 re-process the process to be changed among the processes that have already started among processing units PS1 to PS4, and do not re-process any process that has already started that is different from the process to be changed (FIG. 9). As a result, when printing conditions are changed after the start of print data generation processing, it is possible to prevent the time required for print data generation processing from becoming longer.
より具体的には、本実施例では、データ選択指示が取得された場合には、印刷指示が取得されるまで待つことなく、印刷データの生成処理を開始するので、例えば、印刷指示が取得されてから印刷データの生成処理を開始する場合よりもプリンタ200に速やかに印刷ジョブを供給できる。その一方、印刷指示が取得されるまでは、印刷条件変更指示が取得される場合があるので、印刷条件が確定しない。したがって、印刷データの生成が開始された後に、印刷条件が変更される場合があるので、印刷データの生成処理のやり直しが必要になる場合がある。このような場合であっても本実施例では、処理部PS1~PS4の処理のうちの開始済みの処理のうち、変更対象処理の再処理を実行し、開始済みの処理のうち、変更対象処理とは異なる処理の再処理を実行しないので、やり直しの処理量を抑制できる。したがって、印刷データの生成処理が開始された後に、印刷条件が変更される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる。さらに、さらに、印刷データの生成処理が開始された後に、生成処理の処理条件が変更される場合であっても印刷条件の変更に応じた適切な印刷データを生成できる。
More specifically, in this embodiment, when a data selection instruction is acquired, the print data generation process is started without waiting for a print instruction to be acquired, so that the print job can be supplied to the
さらに、本実施例によれば、処理対象である元画像データD1_org、D2_orgのうち、元画像データD2_orgを元画像データD4_orgに変更するデータ変更指示が取得される場合に(図11(B)、図13(B))、元画像データD2_orgに対応する処理部PS1~PS4の処理(図11(B)、図13(B)のクロスハッチングされた処理)の再処理が実行される。この再処理は、入力画像データを元画像データD2_orgから元画像データD4_orgに変更して実行される(図11(B)、図13(B)のシングルハッチングされた処理)。元画像データD1_org、D3_orgに対応する処理部PS1~PS4の処理の再処理は実行されない(図11(B)、図13(B))。この結果、印刷データの生成処理が開始された後に、データ変更指示が取得される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる。 Furthermore, according to this embodiment, when a data change instruction is acquired to change the original image data D2_org to original image data D4_org among the original image data D1_org and D2_org to be processed (FIGS. 11B and 13B), reprocessing of the processing units PS1 to PS4 corresponding to the original image data D2_org (cross-hatched processing in FIG. 11B and FIG. 13B) is executed. This reprocessing is executed by changing the input image data from the original image data D2_org to the original image data D4_org (single-hatched processing in FIG. 11B and FIG. 13B). Reprocessing of the processing units PS1 to PS4 corresponding to the original image data D1_org and D3_org is not executed (FIGS. 11B and FIG. 13B). As a result, when a data change instruction is acquired after the print data generation process has started, the time required for the print data generation process can be prevented from becoming long.
さらに、本実施例では、処理部PS1~PS4の処理は、元画像データD1_org~D3_orgに対応する第1処理(例えば、ラスタライズ処理)と、第1処理の出力画像データを用いて実行される第2処理(例えば、レイアウト処理)と、を含む。印刷条件変更指示は、第1処理のパラメータの変更を要せず、第2処理のパラメータの変更を要する印刷設定変更指示(例えば、余白変更指示)を含む。該印刷設定変更指示が取得される場合に、第1処理を変更対象処理とは異なる処理(再処理の対象でない処理)であると判断し、レイアウト処理を変更対象処理(再処理の対象である処理)であると判断する(図5のS52、図6)。処理部PS1~PS4の処理は、第1処理と第2処理の開始後に、該印刷設定変更指示が取得される場合に、第2処理のパラメータを変更して第2処理の再処理を実行し、第1処理の再処理を実行しない(図5のS54、S60、S65、図11(A)、図13(A))。この結果、印刷データの生成処理が開始された後に、余白変更指示などの設定変更指示が取得される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる。 Furthermore, in this embodiment, the processing of the processing units PS1 to PS4 includes a first process (e.g., rasterization process) corresponding to the original image data D1_org to D3_org, and a second process (e.g., layout process) executed using the output image data of the first process. The print condition change instruction includes a print setting change instruction (e.g., margin change instruction) that does not require a change in the parameters of the first process, but requires a change in the parameters of the second process. When the print setting change instruction is acquired, the first process is determined to be a process different from the process to be changed (a process that is not subject to reprocessing), and the layout process is determined to be a process to be changed (a process that is subject to reprocessing) (S52 in FIG. 5, FIG. 6). When the print setting change instruction is acquired after the start of the first process and the second process, the processing units PS1 to PS4 change the parameters of the second process and execute reprocessing of the second process, and do not execute reprocessing of the first process (S54, S60, S65 in FIG. 5, FIG. 11 (A), FIG. 13 (A)). As a result, if a setting change instruction, such as an instruction to change margins, is acquired after the print data generation process has started, the time required for the print data generation process can be prevented from increasing.
さらに、本実施例では、処理部PS1~PS4の処理は、第2処理(例えば、レイアウト)の出力画像データを用いて実行される第3処理(例えば、ビルド処理)を含む。管理部CLは、第2処理が変更対象処理である場合には、第3処理を変更対象処理(再処理の対象である処理)であると判断する(図6)。処理部PS1~PS4の処理は、第3処理の開始後に、余白変更指示などの設定変更指示が取得される場合に、第2処理の再処理の出力画像データを用いて第3処理の再処理を実行する(図11(A))。この結果、第2処理の再処理の出力画像データを用いて第3処理の再処理が実行されるので、印刷設定変更指示に応じた適切な印刷データを生成することができる。 Furthermore, in this embodiment, the processing of the processing units PS1 to PS4 includes a third process (e.g., a build process) that is executed using output image data of the second process (e.g., a layout). If the second process is the process to be changed, the management unit CL determines that the third process is the process to be changed (the process to be reprocessed) (FIG. 6). If a setting change instruction, such as an instruction to change margins, is acquired after the start of the third process, the processing units PS1 to PS4 execute reprocessing of the third process using output image data of the reprocessing of the second process (FIG. 11(A)). As a result, the reprocessing of the third process is executed using output image data of the reprocessing of the second process, so that appropriate print data can be generated in accordance with the print setting change instruction.
さらに、本実施例では、レイアウト処理の再処理が行われ、ラスタライズ処理の再処理が行われない場合がある。すなわち、第1処理は、対象画像データ(例えば、元画像データD1_org~D3_org)を用いて第1のデータ形式(例えば、PNG形式)を有する第1の中間画像データ(例えば、変換済画像データD1_conv~D3_conv)を生成するラスタライズ処理であり、第2処理は、第1の中間画像データ(例えば、変換済画像データD1_conv~D3_conv)を用いて、印刷設定に応じて画像が配置された印刷画像を示す第2の中間画像データ(例えば、レイアウト画像データD1_lay~D3_lay)を生成するレイアウト処理である場合がある。この構成によれば、印刷設定変更処理が取得される場合には、レイアウト処理の再処理が行われ、ラスタライズ処理の再処理が行われない場合がある。したがって、印刷データの生成処理に要する時間が長くなることを抑制できる。 Furthermore, in this embodiment, there are cases where the layout process is reprocessed and the rasterization process is not reprocessed. That is, the first process is a rasterization process that generates first intermediate image data (e.g., converted image data D1_conv to D3_conv) having a first data format (e.g., PNG format) using the target image data (e.g., original image data D1_org to D3_org), and the second process is a layout process that generates second intermediate image data (e.g., layout image data D1_lay to D3_lay) indicating a print image in which an image is arranged according to the print settings using the first intermediate image data (e.g., converted image data D1_conv to D3_conv). According to this configuration, when the print setting change process is acquired, there are cases where the layout process is reprocessed and the rasterization process is not reprocessed. Therefore, it is possible to prevent the time required for the print data generation process from becoming long.
本実施例では、レイアウト処理の再処理が行われ、ラスタライズ処理の再処理が行われない印刷設定は、割付数の設定と、余白の設定と、を含む。割付数の設定は、1つの印刷媒体(例えば、用紙)の1つの面に印刷される1つの印刷画像に含めるべき画像の個数の設定である。余白の設定は、印刷画像において画像の外側に設けるべき余白の設定である。この結果、余白や割付数の変更指示が取得される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる。 In this embodiment, print settings in which the layout process is reprocessed but the rasterization process is not reprocessed include an allocation setting and a margin setting. The allocation setting is a setting of the number of images to be included in one print image printed on one side of one print medium (e.g., paper). The margin setting is a setting of the margin to be provided outside the image in the print image. As a result, when an instruction to change the margins or allocation number is obtained, it is possible to prevent the time required for the print data generation process from becoming longer.
さらに、本実施例では、ビルド処理の再処理が行われ、ラスタライズ処理とレイアウト処理の再処理が行われない場合がある。すなわち、第1処理は、対象画像データ(例えば、元画像データD1_org~D3_org)を用いて、画像が配置された印刷画像を示す中間画像データを生成する処理(ラスタライズ処理とレイアウト処理の全体)であり、第2処理は、印刷設定に応じて中間画像データを用いてプリンタ200が解釈可能なデータ形式を有する印刷データを生成するビルド処理である場合がある。この構成によれば、印刷設定変更指示が取得される場合には、ビルド処理の再処理が行われ、ラスタライズ処理とレイアウト処理の再処理が行われない場合がある。したがって、印刷データの生成処理に要する時間が長くなることを抑制できる。
Furthermore, in this embodiment, there are cases where the build process is reprocessed, and the rasterization process and layout process are not reprocessed. That is, the first process is a process (the entire rasterization process and layout process) that uses the target image data (e.g., original image data D1_org to D3_org) to generate intermediate image data indicating a print image in which an image is arranged, and the second process is a build process that uses the intermediate image data according to the print settings to generate print data having a data format that can be interpreted by the
本実施例では、ビルド処理の再処理が行われ、ラスタライズ処理とレイアウト処理の再処理が行われない印刷設定は、両面印刷と片面印刷とのいずれかを選択する設定と、印刷画像の色数の設定(カラーモードの設定)と、を含む。この結果、両面印刷/片面印刷の設定やカラーモードの変更指示が取得される場合に、印刷データの生成処理に要する時間が長くなることを抑制できる。 In this embodiment, print settings for which the build process is reprocessed but the rasterization process and layout process are not reprocessed include a setting for selecting either double-sided printing or single-sided printing, and a setting for the number of colors in the print image (color mode setting). As a result, when an instruction to change the double-sided/single-sided printing setting or color mode is obtained, it is possible to prevent the time required for print data generation processing from becoming longer.
さらに、本実施例では、プレビュー処理の再処理が行われ、ラスタライズ処理とレイアウト処理の再処理が行われない場合がある。すなわち、第1処理は、ラスタライズ処理とレイアウト処理の全体であり、第2処理は、印刷設定に応じて中間画像データを用いてプレビュー用画像データを生成する処理である場合がある。この構成によれば、印刷設定変更指示が取得される場合に、プレビュー処理の再処理が行われ、ラスタライズ処理とレイアウト処理の再処理が行われない場合がある。したがって、印刷データの生成処理に要する時間が長くなることを抑制できる。 Furthermore, in this embodiment, there are cases where the preview process is reprocessed, but the rasterization process and layout process are not reprocessed. That is, the first process may be the entire rasterization process and layout process, and the second process may be a process for generating preview image data using intermediate image data according to the print settings. With this configuration, when an instruction to change the print settings is obtained, there are cases where the preview process is reprocessed, but the rasterization process and layout process are not reprocessed. Therefore, it is possible to prevent the time required for the print data generation process from becoming long.
本実施例では、プレビュー処理の再処理が行われ、ラスタライズ処理とレイアウト処理の再処理が行われない印刷設定は、印刷画像の色数の設定(カラーモードの設定)を含む。この結果、カラーモードの変更指示が取得される場合に、プレビュー画像PIを速やかに表示することができる。 In this embodiment, the print settings for which the preview process is reprocessed but the rasterization process and layout process are not reprocessed include the setting of the number of colors in the print image (color mode setting). As a result, when an instruction to change the color mode is obtained, the preview image PI can be displayed quickly.
さらに、本実施例では、供給部PS5は、印刷指示が取得された後に、印刷データに印刷コマンドを付加してプリンタ200に供給する供給処理を実行する(図5のS70にてYES、75)。印刷条件変更指示は、印刷コマンドの変更を要し、印刷データの変更を要しない印刷設定変更指示を含む(図6)。管理部CLは、このような印刷設定変更指示が取得される場合に、印刷データの生成処理に含まれる処理部PS1~PS4の処理の全てを変更対象処理とは異なる処理(再処理の対象でない処理)であると判断する。換言すれば、供給部PS5による供給処理だけを再処理の対象とする(図6)。処理部PS1~PS4は、この場合に、処理部PS1~PS4の処理の再処理を実行しない。この結果、印刷コマンドの変更を要し、印刷データの変更を要しない設定変更指示が取得されても、処理部PS1~PS4の再処理は実行されないので、印刷データの生成処理に要する時間が長くなることをさらに抑制できる。換言すれば、印刷コマンドの付加をビルド処理にて実行せずに、印刷設定が確定した後に行われる供給部PS5の供給処理にて実行することで、印刷コマンドの変更だけで対応可能な印刷設定変更指示が取得される場合には、処理部PS1~PS4の再処理を不要にすることができる。これによって、ビルド処理の再処理の実行頻度を低くすることができるので、印刷データの生成処理に要する時間が長くなることをさらに抑制できる。 Furthermore, in this embodiment, after the print instruction is acquired, the supply unit PS5 executes a supply process in which a print command is added to the print data and the print data is supplied to the printer 200 (YES in S70, 75 in FIG. 5). The print condition change instruction includes a print setting change instruction that requires a change to the print command but not to the print data (FIG. 6). When such a print setting change instruction is acquired, the management unit CL determines that all of the processes of the processing units PS1 to PS4 included in the print data generation process are processes that are different from the process to be changed (processes that are not subject to reprocessing). In other words, only the supply process by the supply unit PS5 is subject to reprocessing (FIG. 6). In this case, the processing units PS1 to PS4 do not reprocess the processes of the processing units PS1 to PS4. As a result, even if a setting change instruction that requires a change to the print command but not to the print data is acquired, the reprocessing of the processing units PS1 to PS4 is not executed, so that the time required for the print data generation process can be further suppressed from being long. In other words, by not adding the print command during the build process, but instead during the supply process of the supply unit PS5 that is performed after the print settings are finalized, if a print setting change instruction that can be handled by simply changing the print command is obtained, reprocessing by the processing units PS1 to PS4 can be eliminated. This reduces the frequency with which the build process is reprocessed, further preventing the time required for the print data generation process from becoming longer.
本実施例では、供給処理における印刷コマンドの付加だけで対応できる印刷設定は、印刷部数と、印刷品質の設定と、給紙トレイおよび排出トレイの設定と、を含む。この結果、これらの印刷設定の変更指示が取得される場合に、印刷データの生成処理の再処理を実行する必要がないので、印刷データの生成処理に要する時間が長くなることをさらに抑制できる。 In this embodiment, print settings that can be handled simply by adding print commands in the supply process include the number of copies to be printed, print quality settings, and paper feed tray and output tray settings. As a result, when an instruction to change these print settings is obtained, there is no need to reprocess the print data generation process, which further reduces the time required for the print data generation process.
さらに、本実施例によれば、管理部CLは、処理部PS1~PS4の各処理の入力画像データのリストである受渡リストIL1~IL4と、各処理が生成する出力画像データのリストである管理リストOL1~OL4と、を管理する(図4のS15、S35、S45、S54、S55)。処理部PS1~PS4のそれぞれは、対応する受渡リストIL1~IL4に登録された入力画像データを用いて生成すべき出力画像データが、対応する管理リストOL1~OL4に登録されていない場合に(図7のS110にてNO)、対応する処理を実行して生成すべき出力画像データを生成し(図7のS115)、生成された出力画像データを対応する管理リストOL1~OL4に登録する(図7のS120)。管理部CLは、対応する受渡リストIL1~IL4に登録された入力画像データを用いて生成すべき出力画像データが、対応する管理リストOL1~OL4に登録されている場合に(図7のS110にてYES)、対応する処理を実行しない。管理部CLは、再処理を実行すべき処理に対応する出力画像データの登録を、再処理を実行すべき処理に対応する管理リストOL1~OL4から削除する(図5のS54)ことによって、処理部PS1~PS4に、再処理を実行させる。この結果、受渡リストIL1~IL4と管理リストOL1~OL4とを利用して、処理部PS1~PS4に、適切な再処理を実行させることができる。 Furthermore, according to this embodiment, the management unit CL manages the transfer lists IL1 to IL4, which are lists of input image data for each process of the processing units PS1 to PS4, and the management lists OL1 to OL4, which are lists of output image data generated by each process (S15, S35, S45, S54, S55 in FIG. 4). When the output image data to be generated using the input image data registered in the corresponding transfer list IL1 to IL4 is not registered in the corresponding management list OL1 to OL4 (NO in S110 in FIG. 7), each of the processing units PS1 to PS4 executes the corresponding process to generate the output image data to be generated (S115 in FIG. 7), and registers the generated output image data in the corresponding management list OL1 to OL4 (S120 in FIG. 7). When the output image data to be generated using the input image data registered in the corresponding transfer list IL1 to IL4 is registered in the corresponding management list OL1 to OL4 (YES in S110 in FIG. 7), the management unit CL does not execute the corresponding process. The management unit CL deletes the registration of the output image data corresponding to the process to be reprocessed from the management lists OL1 to OL4 corresponding to the process to be reprocessed (S54 in FIG. 5), thereby causing the processing units PS1 to PS4 to reprocess. As a result, the processing units PS1 to PS4 can use the delivery lists IL1 to IL4 and the management lists OL1 to OL4 to perform appropriate reprocessing.
以上の説明から解るように、本実施例における3個の元画像データD1_org、D2_org、D3_orgの全体は、対象画像データの例であり、元画像データD1_orgは、第1の画像データの例であり、元画像データD2_orgは、第2の画像データの例であり、元画像データD4_orgは、第3の画像データの例である。また、受渡リストIL1~IL4は、入力リストの例であり、管理リストOL1~OL4は、出力リストの例である。 As can be seen from the above explanation, the three original image data D1_org, D2_org, and D3_org in this embodiment are all examples of target image data, the original image data D1_org is an example of first image data, the original image data D2_org is an example of second image data, and the original image data D4_org is an example of third image data. In addition, the delivery lists IL1 to IL4 are examples of input lists, and the management lists OL1 to OL4 are examples of output lists.
B.変形例
(1)上記実施例において、図6のテーブルTBにおいて、印刷設定ごとに再処理の対象でない処理部と、再処理の対象である処理部と、が規定されている。図6のテーブルTBは、一例であり、これに限られない。例えば、テーブルTBに記載された複数個の印刷設定のうち、一部の設定は省略されても良い。また、テーブルTBには、別の印刷設定が追加されても良い。また、少なくとも一部の印刷設定について、再処理の対象でない処理部と再処理の対象である処理部とは、テーブルTBの規定とは異なっても良い。
B. Modification (1) In the above embodiment, in the table TB of FIG. 6, processing units that are not subject to reprocessing and processing units that are subject to reprocessing are specified for each print setting. The table TB of FIG. 6 is an example, and is not limited to this. For example, some of the multiple print settings described in the table TB may be omitted. In addition, other print settings may be added to the table TB. In addition, for at least some print settings, the processing units that are not subject to reprocessing and the processing units that are subject to reprocessing may differ from those specified in the table TB.
例えば、用紙サイズの設定が変更された場合には、処理部PS1~PS5が再処理の対象である。これに代えて、例えば、用紙サイズの設定が変更された場合には、ラスタライズ部PS1を再処理の対象にせずに、処理部PS2~PS5だけを再処理の対象としても良い。また、余白や割付数の設定が変更された場合には、ラスタライズ部PS1が再処理の対象とされず、処理部PS2~PS5だけが再処理の対象である。これに代えて、例えば、余白や割付数の設定が変更された場合や用紙サイズの設定が変更された場合には、処理部PS1~PS5を再処理の対象としても良い。 For example, if the paper size setting is changed, processing units PS1 to PS5 are subject to reprocessing. Alternatively, for example, if the paper size setting is changed, rasterization unit PS1 may not be subject to reprocessing, and only processing units PS2 to PS5 may be subject to reprocessing. Also, if the margin or allocation setting is changed, rasterization unit PS1 is not subject to reprocessing, and only processing units PS2 to PS5 are subject to reprocessing. Alternatively, for example, if the margin or allocation setting is changed, or if the paper size setting is changed, processing units PS1 to PS5 may be subject to reprocessing.
さらには、元画像データの種類に応じて、再処理の対象でない処理部と再処理の対象である処理部とを変化させても良い。例えば、特定のアプリケーションによって生成される画像データや特定のファイル形式で保存される画像データが元画像データとして選択される場合であって、かつ、用紙サイズの設定が変更された場合には、ラスタライズ部PS1を再処理の対象とせずに、処理部PS2~PS5だけを再処理の対象としても良い。そして、特定のアプリケーションとは異なるアプリケーションによって生成される画像データや特定のファイル形式とは異なるファイル形式で保存される画像データが元画像データとして選択される場合であって、かつ、用紙サイズの設定が変更された場合には、処理部PS1~PS5を再処理の対象としても良い。これらは、例えば、画質が低下する可能性等に応じて適宜に元画像データの種類に応じて決定され得る。 Furthermore, the processing units that are not subject to reprocessing and the processing units that are subject to reprocessing may be changed depending on the type of original image data. For example, if image data generated by a specific application or image data saved in a specific file format is selected as the original image data, and the paper size setting has been changed, then only the processing units PS2 to PS5 may be subject to reprocessing, without the rasterization unit PS1 being subject to reprocessing. If image data generated by an application other than the specific application or image data saved in a file format other than the specific file format is selected as the original image data, and the paper size setting has been changed, then the processing units PS1 to PS5 may be subject to reprocessing. These may be determined appropriately depending on the type of original image data, for example, depending on the possibility of image quality degradation, etc.
また、図6のテーブルTBに記述された印刷設定の種類は一例であり、これに限られない。例えば、印刷ジョブの供給先のプリンタ200を指定する印刷設定に応じて、再処理の対象でない処理部と再処理の対象である処理部とが規定されていても良い。例えば、印刷ジョブの供給先のプリンタの種類がインクジェット式のプリンタからレーザー方式のプリンタに変更される場合には、ラスタライズ部PS1は再処理の対象とされずに、処理部PS2~PS5だけが再処理の対象とされても良い。また、印刷解像度の設定に応じて、再処理の対象でない処理部と再処理の対象である処理部とが規定されていても良い。例えば、出力解像度に応じて、変換済画像データの画素数を変更する場合には、出力解像度が変更される場合に、処理部PS2~PS5が再処理の対象とされても良い。また、出力解像度に応じて、変換済画像データの画素数を変更せずに、印刷データの画素数のみを変更する場合には、出力解像度が変更される場合に、処理部PS1~PS3は再処理の対象とされずに、処理部PS4、PS5だけが再処理の対象とされても良い。また、印刷媒体の種類、例えば、用紙、OHPシート、CDやDVDなどの記録ディスクの設定に応じて、再処理の対象でない処理部と再処理の対象である処理部とが規定されていても良い。
Also, the types of print settings described in table TB in FIG. 6 are examples, and are not limited to these. For example, processing units that are not subject to reprocessing and processing units that are subject to reprocessing may be specified according to the print settings that specify the
また、供給部PS5は、印刷コマンドの付加を行わずに、印刷ジョブの送信のみを行う構成とされても良い。この場合には、例えば、印刷コマンドの付加は、ビルド部PS4によって実行されても良い。この場合には、例えば、印刷設定変更指示が取得される場合には、ビルド部PS4は、常に再処理の対象とされても良い。 The supply unit PS5 may also be configured to only send the print job without adding a print command. In this case, for example, the addition of the print command may be executed by the build unit PS4. In this case, for example, when an instruction to change the print settings is acquired, the build unit PS4 may always be subject to reprocessing.
(2)上記実施例では、管理部CLが受渡リストIL1~IL4、管理リストOL1~OL4を管理することによって、各処理部が再処理を実行するか否かを制御している。これに代えて、他の手法を用いて、各処理部が再処理を実行するか否かが制御されても良い。例えば、管理部CLが、入力画像データと処理の指示とを各処理部に供給することで各処理部が自身の処理を実行する構成とし、管理部CLが処理部に対して再処理の指示を供給するか否かによって、各処理部が再処理を実行するか否かを制御しても良い。 (2) In the above embodiment, the management unit CL manages the delivery lists IL1 to IL4 and the management lists OL1 to OL4 to control whether each processing unit executes reprocessing. Alternatively, other methods may be used to control whether each processing unit executes reprocessing. For example, the management unit CL may be configured to supply input image data and processing instructions to each processing unit, causing each processing unit to execute its own processing, and the management unit CL may control whether each processing unit executes reprocessing depending on whether it supplies a reprocessing instruction to the processing unit.
(3)図9のパラレル方式とシーケンシャル方式の具体的な内容は、一例であり、これに限られない。例えば、図9(B)のシーケンシャル処理では、印刷データを生成する処理部PS1~PS4の各処理は、並列に実行されることが許容されないが、供給部PS5の処理は、処理部PS1~PS4の処理と並列に実行されることが許容される。これに代えて、供給部PS5の処理は、処理部PS1~PS4の処理と並列に実行されることが許容されなくても良い。この場合には、例えば、処理部PS1~PS4の処理が全て完了された後に、供給部PS5の処理が実行される。 (3) The specific contents of the parallel method and sequential method in FIG. 9 are merely examples and are not limited to these. For example, in the sequential process in FIG. 9(B), the processes of the processing units PS1 to PS4 that generate print data are not allowed to be executed in parallel, but the process of the supply unit PS5 is allowed to be executed in parallel with the processes of the processing units PS1 to PS4. Alternatively, the process of the supply unit PS5 does not have to be allowed to be executed in parallel with the processes of the processing units PS1 to PS4. In this case, for example, the process of the supply unit PS5 is executed after all the processes of the processing units PS1 to PS4 have been completed.
図9(B)のシーケンシャル方式では、元画像データD1_org、D2_org、D3_orgの全体に対応するラスタライズ処理が実行された後に、元画像データD1_org、D2_org、D3_orgの全体に対応するレイアウト処理が実行される。そして、元画像データD1_org、D2_org、D3_orgの全体に対応するレイアウト処理が実行された後に、元画像データD1_org、D2_org、D3_orgの全体に対応するビルド処理が実行される。これに代えて、元画像データD1_orgに対応する処理部PS1~PS4の処理が実行された後に、元画像データD2_orgに対応する処理部PS1~PS4の処理が実行されても良い。そして、元画像データD2_orgに対応する処理部PS1~PS4の処理が実行された後に、元画像データD3_orgに対応する処理部PS1~PS4の処理が実行されても良い。 In the sequential method of FIG. 9B, after rasterization processing corresponding to the entire original image data D1_org, D2_org, and D3_org is performed, layout processing corresponding to the entire original image data D1_org, D2_org, and D3_org is performed. Then, after layout processing corresponding to the entire original image data D1_org, D2_org, and D3_org is performed, build processing corresponding to the entire original image data D1_org, D2_org, and D3_org is performed. Alternatively, processing by processing units PS1 to PS4 corresponding to the original image data D1_org may be performed after processing by processing units PS1 to PS4 corresponding to the original image data D2_org. Then, processing by processing units PS1 to PS4 corresponding to the original image data D3_org may be performed after processing by processing units PS1 to PS4 corresponding to the original image data D2_org.
(4)上記実施例では、上述した条件(1)~(3)が全て満たされる場合に、実行形式はパラレル方式に決定され、条件(1)~(3)の少なくとも1つが満たされない場合に実行形式はシーケンシャル方式に決定される。この判断条件は、一例であり、これに限られない。例えば、実行形式は、条件(1)~(3)のうちのいずれか1つのみに基づいて決定されても良い。また、実行形式は、例えば、生成処理のために使用可能なリソースに関する情報に基づいて決定されても良い。リソースに関する情報は、例えば、生成処理のために使用可能なメモリ残量Mrや、生成処理のために使用可能なCPU310のリソース(使用率やコア数)に基づいて決定されても良い。例えば、実行形式は、生成処理のために使用可能なメモリ残量Mrが基準以上である場合にパラレル方式に決定され、メモリ残量Mrが基準未満である場合にシーケンシャル方式に決定されても良い。また、実行形式は、端末装置300において起動されているアプリケーションの個数が基準数未満である場合にパラレル方式に決定され、起動されているアプリケーションの個数が基準数以上である場合にシーケンシャル方式に決定されても良い。
(4) In the above embodiment, when all of the above conditions (1) to (3) are satisfied, the execution format is determined to be the parallel method, and when at least one of the conditions (1) to (3) is not satisfied, the execution format is determined to be the sequential method. This judgment condition is an example and is not limited to this. For example, the execution format may be determined based on only one of the conditions (1) to (3). The execution format may also be determined based on information about resources available for the generation process. The information about resources may be determined based on, for example, the remaining memory Mr available for the generation process or the resources (usage rate and number of cores) of the
(5)上記実施例の印刷処理において、印刷データの生成を実行する処理部PS1~PS5の構成は一例であり、適宜に変更されて良い。例えば、プレビュー部PS3およびプレビュー処理は省略されても良い。この場合には、例えば、プレビュー画像PIの表示は、省略されても良いし、レイアウト部PS2によって生成されるレイアウト画像データを用いてプレビュー画像PIの表示が行われても良い。また、ラスタライズ処理とレイアウト処理とは1個の処理部によって実行されても良い。 (5) In the printing process of the above embodiment, the configuration of the processing units PS1 to PS5 that generate the print data is an example and may be changed as appropriate. For example, the preview unit PS3 and the preview process may be omitted. In this case, for example, the display of the preview image PI may be omitted, or the preview image PI may be displayed using layout image data generated by the layout unit PS2. Furthermore, the rasterization process and the layout process may be performed by a single processing unit.
ビルド部PS4によって生成される印刷データは、所定のページ記述言語で記述された画像データである。これに限らず、ビルド部PS4は、レイアウト画像データに対して、色変換処理やハーフトーン処理を実行して、画素ごと、かつ、印刷に用いられる色材(例えば、CMYKのインク)ごとに、ドットの形成状態を示すドットデータを印刷データとして生成しても良い。ドットの形成状態は、例えば、「ドット無し」と「ドット有り」の2種類の状態であっても良いし、「ドット無し」「小」「中」「大」の4種類の状態であっても良い。 The print data generated by the build unit PS4 is image data written in a specific page description language. Without being limited to this, the build unit PS4 may execute color conversion processing and halftone processing on the layout image data to generate dot data indicating the dot formation state for each pixel and for each color material used in printing (e.g., CMYK inks) as print data. The dot formation state may be, for example, two types of states, "no dots" and "dots", or four types of states, "no dots", "small", "medium", and "large".
上記実施例では、対象画像データは、複数個の元画像データD1_org、D2_org、D3_orgを含み、処理部PS1~PS4の処理は、元画像データごとに実行されている。これに代えて、例えば、処理部PS1~PS5の処理は、1個の元画像データに含まれる一部のデータごとに実行されても良い。例えば、インクジェット方式のプリンタは、印刷ヘッドの主走査を行いつつ、ドットを形成する部分印刷(パスとも呼ばれる)を複数回に亘って繰り返すことで印刷を行うが、1回の部分印刷分のデータごとに、処理部PS1~PS5の処理が実行されても良い。 In the above embodiment, the target image data includes multiple original image data D1_org, D2_org, and D3_org, and the processing of processing units PS1 to PS4 is performed for each original image data. Alternatively, for example, the processing of processing units PS1 to PS5 may be performed for each portion of data included in one piece of original image data. For example, an inkjet printer performs printing by repeating partial printing (also called passes) to form dots multiple times while performing a main scan of the print head, and the processing of processing units PS1 to PS5 may be performed for each partial print of data.
(6)上記実施例の印刷処理では、シーケンシャル方式とパラレル方式とを使い分けているがこれに限られない。常にシーケンシャル方式が採用されても良いし、常にパラレル方式が採用されても良い。 (6) In the printing process of the above embodiment, the sequential method and the parallel method are selectively used, but this is not limited to this. The sequential method may always be used, or the parallel method may always be used.
(7)上記各実施例では、図4、図5、図7の処理を実行する装置は、端末装置300のCPU310である。これに代えて、図4、図5、図7の処理を実行する装置は、プリンタ200のCPU210であっても良い。この場合には、プリンタ200のCPU210は、印刷実行部としての印刷機構250に印刷ジョブを供給することで印刷機構250に印刷を実行させる。あるいは、図4、図5、図7の処理を実行する装置は、例えば、端末装置300から画像データを取得して該画像データを用いて印刷ジョブを生成するサーバであっても良い。このようなサーバは、ネットワークを介して互いに通信可能な複数個の計算機であっても良い。また、端末装置300は、図3、図5、図7の処理のうちの一部の処理、例えば、特定種類の画像データに対するラスタライズ処理をサーバに実行させても良い。
(7) In each of the above embodiments, the device that executes the processes in FIG. 4, FIG. 5, and FIG. 7 is the
(8)上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。例えば、処理部PS1~PS4の処理のうちの一部の処理は、例えば、CPU310の指示に従って動作する専用のハードウェア回路(例えば、ASIC)によって実現されてもよい。
(8) In each of the above embodiments, a part of the configuration realized by hardware may be replaced by software, and conversely, a part or all of the configuration realized by software may be replaced by hardware. For example, a part of the processing of the processing units PS1 to PS4 may be realized by a dedicated hardware circuit (e.g., an ASIC) that operates according to instructions from the
以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。 The present invention has been described above based on examples and modifications, but the above-mentioned embodiments of the invention are intended to facilitate understanding of the present invention and do not limit the present invention. The present invention may be modified or improved without departing from the spirit and scope of the claims, and the present invention includes equivalents thereof.
1000…印刷システム,200…プリンタ,210…CPU,220…不揮発性記憶装置,230…揮発性記憶装置,231…バッファ領域,250…印刷機構,260…操作部,270…表示部,280…通信部,300…端末装置,310…CPU,320…不揮発性記憶装置,330…揮発性記憶装置,331…バッファ領域,360…操作部,370…表示部,380…通信部,AP…アプリケーションプログラム,CL…管理部,IL1~IL5…受渡リスト,IP1,IP2…画像処理部,OL1~OL5…管理リスト,OP…OSプログラム,PA…印刷アプリケーション,PG…コンピュータプログラム,PS1…ラスタライズ部,PS2…レイアウト部,PS3…プレビュー部,PS4…ビルド部,PS5…供給部,UP…UI処理部,WI1…メイン画面,WI2…画像選択画面,WI3…印刷設定画面 1000...printing system, 200...printer, 210...CPU, 220...non-volatile storage device, 230...volatile storage device, 231...buffer area, 250...printing mechanism, 260...operation unit, 270...display unit, 280...communication unit, 300...terminal device, 310...CPU, 320...non-volatile storage device, 330...volatile storage device, 331...buffer area, 360...operation unit, 370...display unit, 380...communication unit, AP...application Program, CL... Management section, IL1-IL5... Delivery list, IP1, IP2... Image processing section, OL1-OL5... Management list, OP... OS program, PA... Print application, PG... Computer program, PS1... Rasterization section, PS2... Layout section, PS3... Preview section, PS4... Build section, PS5... Supply section, UP... UI processing section, WI1... Main screen, WI2... Image selection screen, WI3... Print setting screen
Claims (14)
ユーザによって入力されるデータ選択指示を取得し、印刷条件を変更する印刷条件変更指示であって前記データ選択指示の入力後にユーザによって入力される前記印刷条件変更指示を取得する指示取得機能と、
前記データ選択指示に基づいて選択された対象画像データを用いて印刷データを生成する生成処理であって複数個の処理を含む前記生成処理を実行する生成機能と、
前記印刷条件変更指示が取得される場合に、前記複数個の処理のそれぞれについて、前記印刷条件変更指示に基づく前記印刷条件の変更に応じて前記印刷条件の変更前とは異なる出力データを出力すべき処理である変更対象処理であるか否かを判断する判断機能と、
をコンピュータに実現させ、
前記生成機能は、前記データ選択指示が取得された後に前記印刷データの生成を開始し、
前記生成機能は、前記印刷データの生成の開始後に、前記印刷条件変更指示が取得される場合に、前記複数個の処理のうちの開始済みの処理のうち、前記変更対象処理の再処理を実行し、前記開始済みの処理のうち、前記変更対象処理とは異なる処理の前記再処理を実行せず、
前記再処理は、入力データの少なくとも一部を変更して処理を実行し直すことである、コンピュータプログラム。 A computer program comprising:
an instruction acquisition function for acquiring a data selection instruction input by a user and acquiring a printing condition change instruction for changing printing conditions, the printing condition change instruction being input by the user after the input of the data selection instruction;
a generation function for executing a generation process for generating print data using the target image data selected based on the data selection instruction, the generation process including a plurality of processes;
a determination function for determining whether or not each of the plurality of processes is a change target process, which is a process that should output output data different from that before the printing conditions were changed in response to the change of the printing conditions based on the printing condition change instruction, when the printing condition change instruction is acquired;
This is realized on a computer.
the generating function starts generating the print data after the data selection instruction is acquired;
the generation function, when the printing condition change instruction is acquired after the start of generation of the print data, executes re-processing of the process to be changed among the processes that have been started among the plurality of processes, and does not execute the re-processing of a process that is different from the process to be changed among the processes that have been started;
The reprocessing comprises modifying at least a portion of the input data and re-executing the process.
前記データ選択指示に基づいて選択された前記対象画像データは、第1の画像データと第2の画像データとを含み、
前記複数個の処理は、前記第1の画像データに対応する第1生成処理と、前記第2の画像データに対応する第2生成処理と、を含み、
前記印刷条件変更指示は、前記第1の画像データを第3の画像データに変更するデータ変更指示を含み、
前記判断機能は、前記データ変更指示が取得される場合に、前記第1生成処理を前記変更対象処理であると判断し、前記第2生成処理を前記変更対象処理とは異なる処理であると判断し、
前記生成機能は、前記第1生成処理および前記第2生成処理の開始後に、前記データ変更指示が取得される場合に、入力データとしての画像データを前記第1の画像データから前記第3の画像データに変更して前記第1生成処理の前記再処理を実行し、前記第2生成処理の前記再処理を実行しない、コンピュータプログラム。 2. A computer program according to claim 1, comprising:
the target image data selected based on the data selection instruction includes first image data and second image data;
the plurality of processes include a first generation process corresponding to the first image data and a second generation process corresponding to the second image data;
the printing condition change instruction includes a data change instruction to change the first image data to third image data,
the determination function, when the data change instruction is acquired, determines that the first generation process is the process to be changed and determines that the second generation process is a process different from the process to be changed;
The generation function is a computer program which, when the data change instruction is acquired after the start of the first generation process and the second generation process, changes the image data as input data from the first image data to the third image data and executes the re-processing of the first generation process, but does not execute the re-processing of the second generation process.
前記複数個の処理は、前記対象画像データに対応する第1処理と、前記第1処理の出力データを用いて実行される第2処理と、を含み、
前記印刷条件変更指示は、印刷に関する第1の設定を変更する第1の設定変更指示であって、前記第1処理のパラメータの変更を要せず、前記第2処理のパラメータの変更を要する前記第1の設定変更指示を含み、
前記判断機能は、前記第1の設定変更指示が取得される場合に、前記第1処理を前記変更対象処理とは異なる処理であると判断し、前記第2処理を前記変更対象処理であると判断し、
前記生成機能は、前記第1処理および前記第2処理の開始後に、前記第1の設定変更指示が取得される場合に、前記第2処理のパラメータを変更して前記第2処理の前記再処理を実行し、前記第1処理の前記再処理を実行しない、コンピュータプログラム。 2. A computer program according to claim 1, comprising:
The plurality of processes include a first process corresponding to the target image data and a second process executed using output data of the first process,
the printing condition change instruction is a first setting change instruction for changing a first setting related to printing, the first setting change instruction not requiring a change in a parameter of the first process but requiring a change in a parameter of the second process,
the determination function, when the first setting change instruction is acquired, determines that the first process is a process different from the process to be changed and determines that the second process is the process to be changed;
The generation function is a computer program which, when the first setting change instruction is obtained after the start of the first process and the second process, changes parameters of the second process and executes the re-processing of the second process, and does not execute the re-processing of the first process.
前記複数個の処理は、前記第2処理の出力データを用いて実行される第3処理を含み、
前記判断機能は、前記第3処理を前記変更対象処理であると判断し、
前記生成機能は、前記第3処理の開始後に、前記第1の設定変更指示が取得される場合に、前記第2処理の前記再処理の出力データを用いて前記第3処理の前記再処理を実行する、コンピュータプログラム。 4. A computer program according to claim 3, comprising:
the plurality of processes includes a third process executed using output data of the second process,
The determination function determines that the third process is the process to be changed,
The generation function is a computer program that, when the first setting change instruction is obtained after the start of the third process, executes the re-processing of the third process using output data of the re-processing of the second process.
前記第1処理は、対象画像を示す前記対象画像データを用いて第1のデータ形式を有する第1の中間画像データを生成する処理を含み、
前記第2処理は、前記第1の中間画像データを用いて、前記第1の設定に応じて前記対象画像が配置された印刷画像を示す第2の中間画像データを生成する処理を含む、コンピュータプログラム。 A computer program according to claim 3 or 4,
the first process includes a process of generating first intermediate image data having a first data format using the target image data indicating a target image;
The second process includes a process of generating, using the first intermediate image data, second intermediate image data indicating a print image in which the target image is arranged according to the first setting, the computer program.
前記第1の設定は、1つの印刷媒体の1つの面に印刷される1つの前記印刷画像に含めるべき前記対象画像の個数の設定と、前記印刷画像において前記対象画像の外側に設けるべき余白の設定と、印刷媒体のサイズの設定と、前記印刷データの供給先の印刷実行部を指定する設定と、のうちの少なくとも1つを含む、コンピュータプログラム。 6. A computer program according to claim 5, comprising:
A computer program, wherein the first setting includes at least one of a setting of the number of the target images to be included in one print image printed on one side of one print medium, a setting of margins to be provided outside the target images in the print image, a setting of the size of the print medium, and a setting specifying a print execution unit to which the print data is supplied.
前記第1処理は、対象画像を示す前記対象画像データを用いて、前記対象画像が配置された印刷画像を示す中間画像データを生成する処理を含み、
前記第2処理は、前記第1の設定に応じて前記中間画像データを用いて印刷実行部が解釈可能なデータ形式を有する前記印刷データを生成する処理を含む、コンピュータプログラム。 A computer program according to claim 3 or 4,
the first process includes a process of generating intermediate image data representing a print image in which the target image is arranged, using the target image data representing a target image;
The second process includes a process of generating the print data having a data format that can be interpreted by a print execution unit using the intermediate image data in accordance with the first setting.
前記第1の設定は、両面印刷と片面印刷とのいずれかを選択する設定と、印刷画像の色数の設定と、のうちの少なくとも1つを含む、コンピュータプログラム。 8. A computer program according to claim 7, comprising:
The first setting includes at least one of a setting for selecting either double-sided printing or single-sided printing, and a setting for the number of colors in a print image.
前記生成機能は、さらに、前記データ選択指示に基づいて選択された前記対象画像データを用いてプレビュー用の画像データを生成し、
前記コンピュータプログラムは、さらに、
前記データ選択指示が取得された後に、前記プレビュー用の画像データを用いて、プレビュー用の画像を表示部に表示する表示機能をコンピュータに実現させ、
前記第1処理は、対象画像を示す前記対象画像データを用いて、前記対象画像が配置された印刷画像を示す中間画像データを生成する処理を含み、
前記第2処理は、前記第1の設定に応じて前記中間画像データを用いて前記プレビュー用の画像データを生成する処理を含む、コンピュータプログラム。 A computer program according to claim 3 or 4,
The generating function further generates image data for preview using the target image data selected based on the data selection instruction,
The computer program further comprises:
After the data selection instruction is acquired, a display function is implemented in the computer to display a preview image on a display unit using the preview image data;
the first process includes a process of generating intermediate image data representing a print image in which the target image is arranged, using the target image data representing a target image;
The second process includes a process of generating image data for preview using the intermediate image data in accordance with the first setting.
前記第1の設定は、印刷画像の色数の設定を含む、コンピュータプログラム。 10. A computer program as claimed in claim 9, comprising:
The first setting includes a setting for the number of colors in a print image.
前記指示取得機能は、さらに、前記データ選択指示と対応する印刷指示であって前記データ選択指示の入力後にユーザによって入力される前記印刷指示を取得し、
前記コンピュータプログラムは、さらに、
前記印刷指示が取得された後に、前記印刷データに印刷コマンドを付加して印刷実行部に供給する供給機能をコンピュータに実現させ、
前記印刷条件変更指示は、印刷に関する第2の設定を変更する第2の設定変更指示であって、前記印刷コマンドの変更を要し、前記印刷データの変更を要しない前記第2の設定変更指示を含み、
前記判断機能は、前記第2の設定変更指示が取得される場合に、前記印刷データの前記生成処理に含まれる前記複数個の処理の全てを前記変更対象処理とは異なる処理であると判断し、
前記生成機能は、前記第2の設定変更指示が取得される場合に、前記複数個の処理の前記再処理を実行しない、コンピュータプログラム。 A computer program according to any one of claims 1 to 10, further comprising:
The instruction acquisition function further acquires a print instruction corresponding to the data selection instruction, the print instruction being input by a user after input of the data selection instruction;
The computer program further comprises:
a supply function is implemented in the computer to add a print command to the print data and supply the print data to a print execution unit after the print instruction is acquired;
the printing condition change instruction is a second setting change instruction for changing a second setting related to printing, the second setting change instruction requiring a change to the print command but not requiring a change to the print data;
the determining function, when the second setting change instruction is acquired, determines that all of the plurality of processes included in the generation process of the print data are processes different from the process to be changed;
The generation function does not execute the re-processing of the plurality of processes when the second setting change instruction is acquired.
前記第2の設定は、印刷部数の設定と、印刷データの供給先の前記印刷実行部を選択する設定と、印刷品質の設定と、印刷に用いられる印刷媒体を供給するためのトレイの設定と、印刷済みの印刷媒体を排出するためのトレイの設定と、の少なくとも1つを含む、コンピュータプログラム。 12. A computer program according to claim 11, comprising:
A computer program, wherein the second setting includes at least one of a setting for the number of copies to be printed, a setting for selecting the print execution unit to which the print data is to be supplied , a setting for print quality, a setting for a tray for supplying the print medium to be used for printing, and a setting for a tray for ejecting the printed print medium.
前記生成処理の前記複数個の処理のそれぞれについて、各処理の入力画像データのリストである入力リストと、各処理が生成する出力画像データのリストである出力リストと、を管理するリスト管理機能をコンピュータに実現させ、
前記生成機能は、前記複数個の処理に対応する複数個の処理機能を備え、
前記複数個の処理機能は、それぞれ、対応する処理を互いに非同期に実行し、
前記複数個の処理機能のそれぞれは、
対応する前記入力リストに登録された入力画像データを用いて生成すべき出力画像データが、対応する前記出力リストに登録されていない場合に、対応する処理を実行して前記生成すべき出力画像データを生成し、生成された出力画像データを対応する前記出力リストに登録し、
対応する前記入力リストに登録された入力画像データを用いて生成すべき出力画像データが、対応する前記出力リストに登録されている場合に、対応する処理を実行せず、
前記リスト管理機能は、前記再処理を実行すべき処理に対応する前記出力画像データの登録を、前記再処理を実行すべき処理に対応する前記出力リストから削除することによって、前記生成機能に、前記再処理を実行させる、コンピュータプログラム。 A computer program according to any one of claims 1 to 12, further comprising:
A list management function is implemented in a computer to manage an input list, which is a list of input image data for each of the plurality of processes of the generation process, and an output list, which is a list of output image data generated by each of the processes;
the generating function includes a plurality of processing functions corresponding to the plurality of processes;
each of the plurality of processing functions executes a corresponding process asynchronously with respect to each other;
Each of the plurality of processing functions includes:
When output image data to be generated using input image data registered in the corresponding input list is not registered in the corresponding output list, a corresponding process is executed to generate the output image data to be generated, and the generated output image data is registered in the corresponding output list;
When output image data to be generated using the input image data registered in the corresponding input list is registered in the corresponding output list, the corresponding process is not executed;
A computer program in which the list management function causes the generation function to execute the reprocessing by deleting the registration of the output image data corresponding to the process for which the reprocessing is to be executed from the output list corresponding to the process for which the reprocessing is to be executed.
ユーザによって入力されるデータ選択指示を取得し、印刷条件を変更する印刷条件変更指示であって前記データ選択指示の入力後にユーザによって入力される前記印刷条件変更指示を取得する指示取得部と、
前記データ選択指示に基づいて選択された対象画像データを用いて印刷データを生成する生成処理であって複数個の処理を含む前記生成処理を実行する生成部と、
前記印刷条件変更指示が取得される場合に、前記複数個の処理のそれぞれについて、前記印刷条件変更指示に基づく前記印刷条件の変更に応じて前記印刷条件の変更前とは異なる出力データを出力すべき処理である変更対象処理であるか否かを判断する判断部と、
を備え、
前記生成部は、前記データ選択指示が取得された後に前記印刷データの生成を開始し、
前記生成部は、前記印刷データの生成の開始後に、前記印刷条件変更指示が取得される場合に、前記複数個の処理のうちの開始済みの処理のうち、前記変更対象処理の再処理を実行し、前記開始済みの処理のうち、前記変更対象処理とは異なる処理の前記再処理を実行せず、
前記再処理は、入力データの少なくとも一部を変更して処理を実行し直すことである、画像処理装置。
An image processing device,
an instruction acquisition unit that acquires a data selection instruction input by a user and acquires a printing condition change instruction for changing printing conditions, the printing condition change instruction being input by the user after the input of the data selection instruction;
a generation unit that executes a generation process for generating print data using the target image data selected based on the data selection instruction, the generation process including a plurality of processes;
a determination unit that, when the printing condition change instruction is acquired, determines whether each of the plurality of processes is a change target process that is a process that should output output data different from that before the printing conditions were changed in response to the change of the printing conditions based on the printing condition change instruction; and
Equipped with
the generation unit starts generating the print data after the data selection instruction is acquired;
when the printing condition change instruction is acquired after the start of generation of the print data, the generation unit executes a re-processing of the process to be changed among the processes that have been started among the plurality of processes, and does not execute the re-processing of a process that is different from the process to be changed among the processes that have been started;
The reprocessing of the image processing device involves changing at least a part of the input data and re-executing the processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021034857A JP7626972B2 (en) | 2021-03-04 | 2021-03-04 | Computer program and image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021034857A JP7626972B2 (en) | 2021-03-04 | 2021-03-04 | Computer program and image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022135209A JP2022135209A (en) | 2022-09-15 |
| JP7626972B2 true JP7626972B2 (en) | 2025-02-05 |
Family
ID=83231074
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021034857A Active JP7626972B2 (en) | 2021-03-04 | 2021-03-04 | Computer program and image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7626972B2 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007243887A (en) | 2006-03-13 | 2007-09-20 | Noritsu Koki Co Ltd | Image processing device |
| JP2010033284A (en) | 2008-07-28 | 2010-02-12 | Canon Inc | Printing control apparatus, print control method, and computer program |
| JP2016196111A (en) | 2015-04-02 | 2016-11-24 | キヤノン株式会社 | Image processing apparatus, control method thereof, and control program |
| JP2020052895A (en) | 2018-09-28 | 2020-04-02 | ブラザー工業株式会社 | Computer program and control apparatus |
-
2021
- 2021-03-04 JP JP2021034857A patent/JP7626972B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007243887A (en) | 2006-03-13 | 2007-09-20 | Noritsu Koki Co Ltd | Image processing device |
| JP2010033284A (en) | 2008-07-28 | 2010-02-12 | Canon Inc | Printing control apparatus, print control method, and computer program |
| JP2016196111A (en) | 2015-04-02 | 2016-11-24 | キヤノン株式会社 | Image processing apparatus, control method thereof, and control program |
| JP2020052895A (en) | 2018-09-28 | 2020-04-02 | ブラザー工業株式会社 | Computer program and control apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022135209A (en) | 2022-09-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6459236B2 (en) | Image forming apparatus | |
| JP2005063099A (en) | Image processor | |
| US10534986B2 (en) | Printing apparatus having interpreters interpreting print data, printing method, and storage medium | |
| JP2003131836A (en) | Spool file processing device, program, and recording medium | |
| JP7626972B2 (en) | Computer program and image processing device | |
| US20170039011A1 (en) | Printing system, printing apparatus and server used in the system, management method of print data, and medium | |
| JP7644408B2 (en) | Computer program and image processing device | |
| JP7644407B2 (en) | Computer program and image processing device | |
| US20190138257A1 (en) | Image forming apparatus, method of controlling the same, and storage medium | |
| JP6235774B2 (en) | Printing apparatus and control method and program therefor | |
| EP2639644A2 (en) | Image forming apparatus capable of issuing instruction to skip error and control method therefor | |
| JP4543945B2 (en) | Printing system, control method therefor, and print management program | |
| JP7066513B2 (en) | Information processing equipment, control methods, and programs | |
| WO2024185576A1 (en) | Support program | |
| US20250362849A1 (en) | Test printing using support program in association with universal printing program | |
| US20110235077A1 (en) | Image processing apparatus, image forming apparatus, and computer readable medium storing program | |
| US20250021278A1 (en) | Computer-readable storage medium, information processing device, and method for causing printer to perform process other than normal printing based on activation instruction | |
| US9010902B1 (en) | Print system, method for controlling print system, and storage medium | |
| US10860270B2 (en) | Apparatus including printing function, its control method, and storage medium | |
| US11922079B2 (en) | Information processing apparatus, image forming system, method, and non- transitory computer-readable storage medium | |
| US8873082B2 (en) | Printing apparatus, printing control method, and storage medium for controlling printing performed by variable data printing | |
| JP2003271334A (en) | PRINTING APPARATUS, PRINT CONTROL METHOD, MEDIUM RECORDING PRINT CONTROL PROGRAM, AND PRINT CONTROL PROGRAM | |
| JP2010244319A (en) | Print setting auxiliary program, apparatus and method | |
| JP2025058491A (en) | Support Programs | |
| JP2024136439A (en) | Image processing control system, control device, image processing device, control program, image processing program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240213 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240925 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20241009 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20241127 |
|
| 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: 20241225 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250107 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7626972 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |