JP2008213406A - Printing processor, printing processing method, and its program - Google Patents

Printing processor, printing processing method, and its program Download PDF

Info

Publication number
JP2008213406A
JP2008213406A JP2007057229A JP2007057229A JP2008213406A JP 2008213406 A JP2008213406 A JP 2008213406A JP 2007057229 A JP2007057229 A JP 2007057229A JP 2007057229 A JP2007057229 A JP 2007057229A JP 2008213406 A JP2008213406 A JP 2008213406A
Authority
JP
Japan
Prior art keywords
processing
data
processing unit
image
print
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.)
Withdrawn
Application number
JP2007057229A
Other languages
Japanese (ja)
Inventor
Futoshi Maekawa
太 前川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007057229A priority Critical patent/JP2008213406A/en
Publication of JP2008213406A publication Critical patent/JP2008213406A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To shorten the printing time when printing is performed after processing operations such as unpacking, resizing, image-quality corrections, etc. on a compressed image. <P>SOLUTION: Development image data are generated by executing in series a processing in a JPEG processing part 714, a processing in a resizing processing part 715 and a processing in an image correction processing part 716 in a predetermined path order and by executing in parallel these processings while other devices are performing processes with respect to a particular device. Thus, the time for e.g. standby is greatly cut without the need for each device to perform processing. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、印刷処理装置、印刷処理方法及びそのプログラムに関する。   The present invention relates to a print processing apparatus, a print processing method, and a program therefor.

従来より、所定の形式で圧縮された画像を解凍(伸長)したりリサイズしたり画質補正を施したりする画像処理装置が知られている。例えば、特許文献1に記載されているパソコンは、全体の制御を行う情報処理手段(CPU)を備え、この情報処理手段は、各種の画像に対してホワイトバランスの調節、ガンマ補正、シャープネス補正処理を実施したり、画像に対してJPEG等に代表される手法で圧縮解凍したり、圧縮フォーマットの変更処理を実施したり、画素数の減少若しくは増加処理や階調の現象若しくは増加処理、フレームレートの変更処理又は画素若しくは画像の間引き処理を施したりする画質補正処理を自動で実施することが可能となっている。
特開2003−331274
2. Description of the Related Art Conventionally, image processing apparatuses that decompress (decompress), resize, or perform image quality correction on an image compressed in a predetermined format are known. For example, the personal computer described in Patent Document 1 includes information processing means (CPU) that performs overall control. This information processing means performs white balance adjustment, gamma correction, and sharpness correction processing on various images. , Compressing / decompressing images using techniques such as JPEG, changing the compression format, reducing or increasing the number of pixels, gradation phenomenon or increasing processing, frame rate It is possible to automatically perform image quality correction processing such as changing processing or thinning processing of pixels or images.
JP 2003-331274 A

ところで、上述した画像処理を行う印刷処理装置において、圧縮画像の印刷指令がなされると、以下のようにして印刷が行われる。すなわち、その圧縮画像の最初の数ラインにつき、伸長処理を実行し、それが終了してからリサイズ処理を実行し、それが終了してから画質補正を実行し、この一連の処理が終わった後、次の数ラインにつき再び先ほどの一連の処理を実行する、という手順を繰り返し実行する。このようにして圧縮画像の全ラインにつき画像処理を施して印刷データを生成しその印刷データに基づいて印刷を行う。   By the way, in the print processing apparatus that performs the above-described image processing, when a print instruction for a compressed image is issued, printing is performed as follows. In other words, after the decompression process is executed for the first few lines of the compressed image, the resizing process is executed after it is completed, the image quality correction is executed after it is finished, and after this series of processes is completed Then, the procedure of executing the above-described series of processes again for the next several lines is repeated. In this way, image processing is performed on all lines of the compressed image to generate print data, and printing is performed based on the print data.

しかしながら、印刷指令がなされたあと、上述したように圧縮画像の数ラインごとに伸長処理を実行し、それが終了してからリサイズ処理を実行し、それが終了してから画質補正を実行する場合には、伸長・リサイズ・画質補正が直列的に処理されるため、印刷時間が長くなるという問題があった。また、このような処理は、印刷データを生成する準備が整ったあとに行われていたため、これも印刷時間を長くする要因となっていた。   However, after a print command is issued, as described above, the decompression process is executed for every several lines of the compressed image, the resizing process is executed after the completion, and the image quality correction is executed after the extension process is completed. However, there is a problem that the printing time becomes long because expansion, resizing, and image quality correction are processed in series. In addition, since such processing is performed after preparation for generating print data is completed, this is also a factor for increasing the printing time.

本発明は、このような課題を解決するためになされたものであり、圧縮画像に対して解凍・リサイズ・画質補正の処理を施して印刷する場合の印刷時間を短縮することができる印刷処理装置、印刷処理方法及びそのプログラムを提供することを目的とする。   The present invention has been made to solve such a problem, and a printing processing apparatus capable of shortening a printing time when printing is performed by performing decompression, resizing, and image quality correction processing on a compressed image. An object of the present invention is to provide a print processing method and a program therefor.

本発明は、上述の目的を達成するために以下の手段を採った。   The present invention adopts the following means in order to achieve the above-mentioned object.

本発明の印刷処理装置は、
印刷指令に基づいて所定形式の圧縮画像データから展開画像データを生成する展開画像生成手段と、
前記展開画像データを所定の画像配置領域にレイアウトしてレイアウト合成画像データを生成するレイアウト合成手段と、
前記レイアウト合成画像データに基づいて印刷データを生成する印刷データ生成手段と、
を備え、
前記展開画像生成手段は、前記圧縮画像データから前記展開画像データを生成するにあたり、前記圧縮画像データを分割して順次解凍して解凍データを出力する解凍装置と、画像サイズを変更してリサイズデータを出力するリサイズ装置と、画質を補正して画質補正データを出力する画質補正装置を用いて、前記解凍装置における処理と前記リサイズ装置における処理と前記画質補正装置における処理とを所定の順序で直列的に実行させると共に各装置につき他の装置が処理している間も並列的に処理を実行させることにより、前記展開画像データを生成するものである。
The print processing apparatus of the present invention includes:
Expanded image generation means for generating expanded image data from compressed image data in a predetermined format based on a print command;
Layout composition means for laying out the developed image data in a predetermined image arrangement area and generating layout composite image data;
Print data generation means for generating print data based on the layout composite image data;
With
The decompressed image generating means generates a decompressed image data from the compressed image data, a decompression device that divides the compressed image data and sequentially decompresses and outputs decompressed data; The processing in the decompression device, the processing in the resizing device, and the processing in the image quality correction device are serially arranged in a predetermined order. The developed image data is generated by executing the processing in parallel and executing the processing in parallel while other devices are processing each device.

この印刷処理装置では、印刷指令に基づいて所定形式の圧縮画像データから展開画像データを生成するにあたり、圧縮画像データを分割して順次解凍して解凍データを出力する解凍装置と、画像サイズを変更してリサイズデータを出力するリサイズ装置と、画質を補正して画質補正データを出力する画質補正装置を用いて、解凍装置における処理とリサイズ装置における処理と画質補正装置における処理とを所定の順序で直列的に実行させると共に各装置につき他の装置が処理している間も並列的に処理を実行させることにより、展開画像データを生成する。こうすることにより、各装置が処理することなく待機するといった時間が大幅に削減される。したがって、圧縮画像に対して解凍・リサイズ・画質補正の処理を施して印刷する場合の印刷時間を短縮することができる。   In this print processing device, when generating decompressed image data from compressed image data in a predetermined format based on a print command, a decompression device that divides the compressed image data, sequentially decompresses and outputs the decompressed data, and changes the image size Then, using the resizing device that outputs the resized data and the image quality correcting device that corrects the image quality and outputs the image quality correction data, the processing in the decompression device, the processing in the resizing device, and the processing in the image quality correcting device are performed in a predetermined order. The developed image data is generated by executing the processing in parallel and executing the processing in parallel while the other devices are processing each device. In this way, the time for each device to stand by without processing is greatly reduced. Accordingly, it is possible to shorten the printing time when printing is performed by performing decompression, resizing, and image quality correction processing on the compressed image.

本発明の印刷処理装置において、前記展開画像生成手段は、前記印刷指令に含まれるリサイズの指示が縮小の場合には、前記所定の順序を前記解凍装置における処理、前記リサイズ装置における処理、前記画質補正装置における処理という順序に設定し、前記印刷指令に含まれるリサイズの指示が拡大の場合には、前記所定の順序を前記解凍装置における処理、前記画質補正装置における処理、前記リサイズ装置における処理という順序に設定してもよい。こうすれば、画像サイズを縮小する場合には縮小した後に画質補正を行い、画像サイズを拡大する場合には拡大する前に画質補正を行うため、画質補正の処理対象はいずれにしてもデータサイズが小さくなることから、画質補正の処理負担が軽減される。   In the print processing apparatus according to the aspect of the invention, when the resize instruction included in the print command is reduction, the developed image generation unit performs the predetermined order in the decompression device, the resizing device, the image quality, When the resize instruction included in the print command is set in the order of processing in the correction device and the print command is enlarged, the predetermined order is referred to as processing in the decompression device, processing in the image quality correction device, and processing in the resizing device. The order may be set. In this way, when the image size is reduced, the image quality correction is performed after the reduction, and when the image size is enlarged, the image quality correction is performed before the enlargement. Therefore, the processing load for image quality correction is reduced.

本発明の印刷処理装置において、前記展開画像生成手段は、前記印刷指令に含まれる画質補正の指示が画質補正不要のときには、前記所定の順序を前記解凍装置における処理、前記リサイズ装置における処理という順序に設定してもよい。こうすれば、画質補正が不要なときには印刷時間をより短縮することができる。   In the print processing apparatus according to the aspect of the invention, when the image quality correction instruction included in the print command does not require image quality correction, the developed image generation unit uses the predetermined order as processing in the decompression device and processing in the resizing device. May be set. In this way, the printing time can be further shortened when image quality correction is unnecessary.

本発明の印刷処理装置において、前記展開画像生成手段は、前記印刷データ生成手段が印刷準備を完了する前に先行して前記圧縮画像データから前記展開画像データを生成し始めるようにしてもよい。こうすれば、印刷データ生成手段の印刷準備が完了するのを待って圧縮画像データから展開画像データを生成し始める場合に比べて、印刷時間を短縮することができる。   In the print processing apparatus according to the aspect of the invention, the developed image generation unit may start generating the developed image data from the compressed image data before the print data generation unit completes the print preparation. In this way, it is possible to shorten the printing time as compared to the case where the print data generation means waits for completion of the print preparation and starts generating the decompressed image data from the compressed image data.

本発明の印刷処理装置において、前記展開画像生成手段は、前記解凍装置、前記リサイズ装置及び前記画質補正装置のいずれか2つの装置間でデータの受け渡しを行うにあたり、データを渡す側の装置は自身が生成したデータを共有メモリの所定領域に格納し、データの受け側の装置は該所定領域の先頭アドレスを示すポインタ及び該所定領域に格納されたデータの長さの通知を受けてもよい。こうすれば、2つの装置間でデータをコピーして受け渡す場合に比べて処理時間を短縮することができる。   In the print processing apparatus according to the aspect of the invention, the developed image generation unit is a device that transfers data when the data is transferred between any two of the decompression device, the resizing device, and the image quality correction device. May be stored in a predetermined area of the shared memory, and the data receiving device may receive a pointer indicating the start address of the predetermined area and the length of the data stored in the predetermined area. In this way, the processing time can be shortened compared to the case where data is copied and transferred between the two devices.

本発明の印刷処理方法は、
コンピュータ・ソフトウェアによる印刷処理方法であって、
(a)印刷指令に基づいて所定形式の圧縮画像データから展開画像データを生成するにあたり、前記圧縮画像データを分割して順次解凍して解凍データを出力する解凍装置と、画像サイズを変更してリサイズデータを出力するリサイズ装置と、画質を補正して画質補正データを出力する画質補正装置を用いて、前記解凍装置における処理と前記リサイズ装置における処理と前記画質補正装置における処理とを所定の順序で直列的に実行させると共に、各装置につき他の装置が処理している間も並列的に処理を実行させることにより前記展開画像データを生成するステップと、
(b)前記展開画像データを所定の画像配置領域にレイアウトしてレイアウト合成画像データを生成するステップと、
(c)前記レイアウト合成画像データに基づいて印刷データを生成するステップと、
を含むものである。
The print processing method of the present invention includes:
A printing method using computer software,
(A) In generating decompressed image data from compressed image data in a predetermined format based on a print command, a decompression device that divides the compressed image data, sequentially decompresses and outputs decompressed data, and changes the image size Using a resizing device that outputs resizing data and an image quality correcting device that corrects image quality and outputs image quality correction data, the processing in the decompressing device, the processing in the resizing device, and the processing in the image quality correcting device are performed in a predetermined order. And generating the developed image data by causing the processing to be executed in parallel while other devices are processing for each device,
(B) laying out the developed image data in a predetermined image arrangement area to generate layout composite image data;
(C) generating print data based on the layout composite image data;
Is included.

この印刷処理方法では、印刷指令に基づいて所定形式の圧縮画像データから展開画像データを生成するにあたり、圧縮画像データを分割して順次解凍して解凍データを出力する解凍装置と、画像サイズを変更してリサイズデータを出力するリサイズ装置と、画質を補正して画質補正データを出力する画質補正装置を用いて、解凍装置における処理とリサイズ装置における処理と画質補正装置における処理とを所定の順序で直列的に実行させると共に各装置につき他の装置が処理している間も並列的に処理を実行させることにより、展開画像データを生成する。こうすることにより、各装置が処理することなく待機するといった時間が大幅に削減される。したがって、圧縮画像に対して解凍・リサイズ・画質補正の処理を施して印刷する場合の印刷時間を短縮することができる。なお、この印刷処理方法において、上述したいずれかの印刷処理装置の態様を採用してもよいし、上述したいずれかの印刷処理装置の機能を実現するようなステップを追加してもよい。   In this print processing method, when generating decompressed image data from compressed image data in a predetermined format based on a print command, a decompression device that divides the compressed image data, sequentially decompresses and outputs the decompressed data, and changes the image size Then, using the resizing device that outputs the resized data and the image quality correcting device that corrects the image quality and outputs the image quality correction data, the processing in the decompression device, the processing in the resizing device, and the processing in the image quality correcting device are performed in a predetermined order. The developed image data is generated by executing the processing in parallel and executing the processing in parallel while the other devices are processing each device. In this way, the time for each device to stand by without processing is greatly reduced. Accordingly, it is possible to shorten the printing time when printing is performed by performing decompression, resizing, and image quality correction processing on the compressed image. In this print processing method, any of the above-described aspects of the print processing apparatus may be adopted, or a step for realizing the function of any of the above-described print processing apparatuses may be added.

本発明のプログラムは、1又は複数のコンピュータに、本発明の印刷処理方法の各ステップを実行させるためのプログラムである。このプログラムは、コンピュータが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インターネットやLANなどの通信網)を介してあるコンピュータから別のコンピュータへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを一つのコンピュータに実行させるか又は複数のコンピュータに各ステップを分担して実行させれば、上述した本発明の印刷処理方法と同様の効果が得られる。   The program of the present invention is a program for causing one or a plurality of computers to execute each step of the print processing method of the present invention. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.), or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by one computer, or if each step is shared and executed by a plurality of computers, the same effect as the above-described printing processing method of the present invention can be obtained.

次に、本発明の実施の形態を図面に基づいて説明する。図1は、本発明の印刷処理装置の一実施形態であるフォトプリンタ10の前面扉14及びカバー30を開けた状態の斜視図、図2は、フォトプリンタ10の電気的構成の概略を示すブロック図である。   Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a perspective view of a photo printer 10 according to an embodiment of the present invention with a front door 14 and a cover 30 opened. FIG. 2 is a block diagram showing an outline of an electrical configuration of the photo printer 10. FIG.

本実施形態のフォトプリンタ10は、プリンタ本体12の上面に設けられた操作パネル20と、プリンタ本体12の上面の奥の一辺に開閉自在に取り付けられ閉状態で操作パネル20を覆うカバー30と、プリンタ本体12に内蔵された印刷機構50(図2参照)と、プリンタ本体12の前面を開閉可能な前面扉14と、フォトプリンタ10の全体の制御を司るコントローラ70(図2参照)と、JPEG画像データから展開画像データを生成するハードウェア装置群80(図2参照)とを備えている。   The photo printer 10 according to the present embodiment includes an operation panel 20 provided on the upper surface of the printer main body 12, a cover 30 that is attached to an inner side of the upper surface of the printer main body 12 so as to be freely opened and closed, and covers the operation panel 20 in a closed state. A printing mechanism 50 (see FIG. 2) built in the printer main body 12, a front door 14 that can open and close the front surface of the printer main body 12, a controller 70 (see FIG. 2) that controls the entire photo printer 10, and JPEG And a hardware device group 80 (see FIG. 2) for generating developed image data from the image data.

操作パネル20は、文字や図形、記号などを表示するディスプレイ22と、このディスプレイ22の周囲に配置されたボタン群24とを備えている。ボタン群24は、図2に示すように、電源のオンオフを行うための電源ボタン24a、印刷機能に関する複数の選択肢が並んだメインメニュー画面(図2参照)を呼び出すためのメニューボタン24b、操作を途中でキャンセルしたり用紙への印刷を途中で中断したりするためのキャンセルボタン24c、用紙への印刷実行を指示するための印刷ボタン24d、メモリカードスロット16に挿入されたメモリカードMに編集画像等を保存するための保存ボタン24e、ディスプレイ22に表示された複数の選択肢の中から所望の選択肢を選択したりカーソルを移動したり画像枠の大きさを変更するときに操作される上下左右の各矢印ボタン24f〜24i、この上下左右の各矢印ボタン24f〜24iの中央に配置され各矢印ボタン24f〜24iによって選択されている選択肢に決定したことを指示するためのOKボタン24jなどで構成されている。   The operation panel 20 includes a display 22 that displays characters, graphics, symbols, and the like, and a button group 24 arranged around the display 22. As shown in FIG. 2, the button group 24 includes a power button 24a for turning on / off the power, a menu button 24b for calling a main menu screen (see FIG. 2) on which a plurality of options relating to the printing function are arranged, and an operation. Cancel button 24c for canceling halfway or interrupting printing on paper, print button 24d for instructing execution of printing on paper, and editing image on memory card M inserted in memory card slot 16 The save button 24e for saving the image, etc., and the up, down, left, and right buttons operated when selecting a desired option from among a plurality of options displayed on the display 22, moving the cursor, or changing the size of the image frame Each arrow button 24f-24i is arranged at the center of each of the up / down / left / right arrow buttons 24f-24i. It is constructed like an OK button 24j for instructing the determined choices selected by the 4i.

カバー30は、プリンタ本体12の上面を覆うことのできる大きさに成形された樹脂板であり、開状態では操作パネル20の表面を外部に露出し(図1参照)、閉状態では操作パネル20を覆う。このカバー30は、ディスプレイ22と同じ大きさの窓32を備えており、カバー30が閉状態のときにはユーザはこの窓32を介してディスプレイ22の表示内容を確認することができる。更に、カバー30は、開状態のときに操作パネル20に対して斜め後方に傾斜した状態で保持されるようになっている。このため、開状態のカバー30の裏面は、用紙を印刷機構50へ供給するためのトレイとして利用可能である。また、操作パネル20の奥には、印刷機構50の給紙口58が設けられ、この給紙口58には、ガイド幅が用紙の幅に合うように左右方向にスライド操作される一対の用紙ガイド59,59が設けられている。   The cover 30 is a resin plate formed in a size that can cover the upper surface of the printer main body 12, and exposes the surface of the operation panel 20 to the outside in the open state (see FIG. 1), and the operation panel 20 in the closed state. Cover. The cover 30 includes a window 32 having the same size as the display 22. When the cover 30 is in a closed state, the user can check the display content of the display 22 through the window 32. Furthermore, the cover 30 is held in a state of being inclined obliquely rearward with respect to the operation panel 20 in the open state. For this reason, the back surface of the cover 30 in the opened state can be used as a tray for supplying paper to the printing mechanism 50. Further, a paper feed port 58 of the printing mechanism 50 is provided at the back of the operation panel 20, and a pair of papers that are slid in the left-right direction so that the guide width matches the width of the paper are provided in the paper feed port 58. Guides 59, 59 are provided.

印刷機構50は、プリンタ本体12の内部に配置されている。この印刷機構50は、インクを用紙に向かって吐出する印刷ヘッド54を搭載したキャリッジ56を主走査方向(図2の左右方向)に往復動させながら、用紙を副走査方向(図2の前後方向)に搬送することにより印刷を実行する周知のインクジェット印刷機構である。ここでは、印刷ヘッド54にインクを供給するインクカートリッジ52をキャリッジ56に搭載したオンキャリッジタイプを図示したが、インクカートリッジをキャリッジ56以外の場所に配置したオフキャリッジタイプとしてもよい。また、印刷ヘッド54は、圧電素子に電圧をかけることによりその圧電素子を変形させてインクを加圧する方式を採用してもよいし、発熱抵抗体(例えばヒータなど)に電圧をかけてインクを加熱して発生した気泡によりインクを加圧する方式を採用してもよい。   The printing mechanism 50 is disposed inside the printer main body 12. This printing mechanism 50 moves the paper 56 in the sub-scanning direction (front-rear direction in FIG. 2) while reciprocating the carriage 56 on which the print head 54 for discharging ink toward the paper is reciprocated in the main scanning direction (left-right direction in FIG. 2). ) Is a well-known ink jet printing mechanism that executes printing by conveying it to the head. Here, an on-carriage type in which the ink cartridge 52 for supplying ink to the print head 54 is mounted on the carriage 56 is illustrated, but an off-carriage type in which the ink cartridge is disposed at a place other than the carriage 56 may be used. Further, the print head 54 may adopt a method of applying pressure to the piezoelectric element by applying a voltage to the piezoelectric element to pressurize the ink, or applying a voltage to a heating resistor (for example, a heater) to apply the ink. You may employ | adopt the system which pressurizes ink with the bubble generated by heating.

前面扉14は、プリンタ本体12の前面を開閉するための蓋であり、開状態のときには、プリンタ本体12の前面から排紙される用紙を受けるための排紙トレイとして機能すると共に、プリンタ本体12の前面に設けられた各種のメモリカードスロット16をユーザが利用可能な状態となる。メモリカードスロット16には、メモリカードMが差し込まれている。このメモリカードMには、複数のJPEG画像ファイルが記憶されている。   The front door 14 is a lid for opening and closing the front surface of the printer main body 12. When the front door 14 is open, the front door 14 functions as a paper discharge tray for receiving paper discharged from the front surface of the printer main body 12. The various memory card slots 16 provided on the front surface of the user can be used by the user. A memory card M is inserted into the memory card slot 16. The memory card M stores a plurality of JPEG image files.

コントローラ70は、図2に示すように、CPU71を中心とするマイクロプロセッサとして構成されており、各種処理プログラムや各種データなどを記憶したROM72と、一時的にデータを記憶するRAM73とを備え、これらはバス74を介して互いに信号のやり取りが可能なように接続されている。また、操作パネル20や印刷機構50、リーダライタ18のほか、JPEG画像データから展開画像データを生成するときに使用されるハードウェア装置群80もバス74に接続されている。ハードウェア装置群80は、JPEG画像を解凍してRGBデータを生成すると共に間引きや切り出し、回転などを行うJPEG処理装置81と、RGBデータの画像サイズを拡大・縮小するリサイズ装置82と、RGBデータを画質補正パラメータ(例えばコントラストや明るさ、彩度などに関するパラメータ)にしたがって補正する画質補正装置83と、コピーを実行するハードウェアコピー装置84とを備えている。コントローラ70は、メモリカードスロット16に挿入されたメモリカードMのJPEG画像ファイルをリーダライタ18を介して入力するほか、印刷機構50各部からの検出信号や操作パネル20のボタン群24からの指令信号、ハードウェア装置群80を構成する各装置81〜84からの処理状況を表す信号などを入力する。また、コントローラ70は、リーダライタ18を介してメモリカードMに編集画像を保存するほか、印刷機構50の印刷ヘッド54などへの制御信号や操作パネル20のディスプレイ22への制御信号、ハードウェア装置群80を構成する各装置81〜84への指令信号などを出力する。   As shown in FIG. 2, the controller 70 is configured as a microprocessor centered on a CPU 71, and includes a ROM 72 that stores various processing programs and various data, and a RAM 73 that temporarily stores data. Are connected to each other via a bus 74 so that signals can be exchanged with each other. In addition to the operation panel 20, the printing mechanism 50, and the reader / writer 18, a hardware device group 80 used when generating expanded image data from JPEG image data is also connected to the bus 74. The hardware device group 80 includes a JPEG processing device 81 that decompresses a JPEG image to generate RGB data and performs thinning, clipping, rotation, etc., a resizing device 82 that enlarges / reduces the image size of RGB data, and RGB data Is provided according to image quality correction parameters (for example, parameters relating to contrast, brightness, saturation, etc.), and a hardware copy device 84 that performs copying. The controller 70 inputs the JPEG image file of the memory card M inserted into the memory card slot 16 via the reader / writer 18, and also detects a detection signal from each part of the printing mechanism 50 and a command signal from the button group 24 of the operation panel 20. A signal indicating the processing status from each of the devices 81 to 84 constituting the hardware device group 80 is input. Further, the controller 70 stores the edited image in the memory card M via the reader / writer 18, the control signal to the print head 54 of the printing mechanism 50, the control signal to the display 22 of the operation panel 20, and the hardware device. Command signals to the devices 81 to 84 constituting the group 80 are output.

本実施形態のフォトプリンタ10のハードウェア構成は図2に示したとおりであるが、そのうちのコントローラ70のCPU71を機能ブロックで表したものを図3に示す。CPU71は、機能ブロックとして、描画オブジェクト生成処理部710、レイアウト合成処理部711、印刷データ生成処理部712、パス管理処理部713、JPEG処理部714、リサイズ処理部715、画質補正処理部716、共有メモリ管理処理部717を含むものとして表すことができる。   The hardware configuration of the photo printer 10 of the present embodiment is as shown in FIG. 2, and FIG. 3 shows the CPU 71 of the controller 70 as a functional block. The CPU 71 includes, as functional blocks, a drawing object generation processing unit 710, a layout composition processing unit 711, a print data generation processing unit 712, a path management processing unit 713, a JPEG processing unit 714, a resizing processing unit 715, an image quality correction processing unit 716, and a sharing. It can be expressed as including a memory management processing unit 717.

描画オブジェクト生成処理部710は、ユーザが図2に示すメインメニュー画面から印刷したい画像ファイル(JPEG画像)を選択すると共に印刷用紙のサイズやレイアウト(例えば1枚の用紙に複数の画像配置領域を設定するレイアウト等)を選択したあと印刷ボタン24dをオンしたときに、オブジェクト情報を生成して該オブジェクト情報を含む画像展開条件をレイアウト合成処理部711に出力する。なお、オブジェクト情報とは、例えば、画像配置領域のサイズや回転角度、座標位置のほか、画像のどのエリアを切り出すかなどを含む情報である。また、画像展開条件とは、オブジェクト情報のほか、ファイル名やファイルサイズ、画質補正の有無、コントラストのパラメータ、明るさのパラメータ、彩度のパラメータ、画像のどのエリアをクリップするかというクリップ条件などを含む。   The drawing object generation processing unit 710 selects an image file (JPEG image) that the user wants to print from the main menu screen shown in FIG. 2 and sets the size and layout of the print paper (for example, a plurality of image placement areas on one paper) When the print button 24d is turned on after selecting the layout to be performed), object information is generated and an image development condition including the object information is output to the layout composition processing unit 711. Note that the object information is information including, for example, the size, rotation angle, and coordinate position of the image arrangement area, as well as which area of the image to cut out. Image development conditions include object information, file name and file size, presence / absence of image quality correction, contrast parameters, brightness parameters, saturation parameters, and clipping conditions such as which area of the image to clip. including.

レイアウト合成処理部711は、パス管理処理部713へ展開画像データを要求し、その後パス管理処理部713から得た展開画像データをハードウェアコピー装置84を使用してユーザが選択したレイアウトにしたがって配置することによりレイアウト合成画像データを生成し、該レイアウト合成画像データを印刷データ生成処理部712へ出力する。このレイアウト合成処理部711は、パス管理処理部713へ展開画像データを要求する際には、画像展開条件のうち展開画像データの生成に必要な条件(例えばファイル名やファイルサイズ、画質補正の有無、コントラストのパラメータ、明るさのパラメータ、彩度のパラメータのほか、画像のどのエリアをクリップするかというクリップ条件など)をパス管理処理部713へ出力する。ここで、展開画像データとは、メモリカードMに保存されたJPEG画像データにJPEG処理(解凍を含む)・リサイズ処理・画質補正処理を施すことにより得られるデータをいうものとする。このため、パス管理処理部713は、展開画像データの生成に必要な条件にしたがってJPEG処理・リサイズ処理・画質補正処理を施す。   The layout composition processing unit 711 requests the developed image data from the path management processing unit 713, and then arranges the developed image data obtained from the path management processing unit 713 according to the layout selected by the user using the hardware copying apparatus 84. As a result, layout composite image data is generated, and the layout composite image data is output to the print data generation processing unit 712. When the layout composition processing unit 711 requests the developed image data from the path management processing unit 713, conditions necessary for generating the expanded image data among the image expansion conditions (for example, file name, file size, presence / absence of image quality correction) In addition to the contrast parameter, the brightness parameter, and the saturation parameter, a clip condition indicating which area of the image is clipped) is output to the path management processing unit 713. Here, the developed image data refers to data obtained by subjecting JPEG image data stored in the memory card M to JPEG processing (including decompression), resizing processing, and image quality correction processing. For this reason, the path management processing unit 713 performs JPEG processing, resizing processing, and image quality correction processing according to the conditions necessary for generating the developed image data.

印刷データ生成処理部712は、レイアウト合成処理部711からの色変換テーブルの指定や出力解像度の指定、用紙サイズの指定を受けることにより、レイアウト合成画像データから印刷機構50が印刷可能な印刷データを生成する。印刷機構50は、この印刷データに基づいて制御されることになる。   The print data generation processing unit 712 receives print data that can be printed from the layout composite image data by receiving the designation of the color conversion table, the designation of the output resolution, and the designation of the paper size from the layout synthesis processing unit 711. Generate. The printing mechanism 50 is controlled based on this print data.

パス管理処理部713は、JPEG画像データから展開画像データを生成するにあたり、JPEG処理部714やリサイズ処理部715,画質補正処理部716の処理順序(パス)を決定する。また、パス管理処理部713は、各部714,715,716からデータ要求を受け付け、該データ要求を適切な要求先に出力し、該要求先からデータ要求に対する回答を受け付け、該回答を要求元へ通知する。こうすることにより、各部714,715,716はそれぞれ並列して処理を実行することが可能となる。ここで、各部714,715,716は、生成したデータを共有メモリであるRAM73の所定領域に格納し、その所定領域の先頭アドレスを示すポインタ及びその所定領域に格納されたデータの長さ(ライン数)をパス管理処理部713へ回答するものとする。   The path management processing unit 713 determines the processing order (pass) of the JPEG processing unit 714, the resizing processing unit 715, and the image quality correction processing unit 716 when generating expanded image data from JPEG image data. The path management processing unit 713 receives data requests from the units 714, 715, and 716, outputs the data requests to an appropriate request destination, receives a response to the data request from the request destination, and sends the response to the request source. Notice. By doing so, the units 714, 715, and 716 can execute processing in parallel. Here, each unit 714, 715, 716 stores the generated data in a predetermined area of the RAM 73 which is a shared memory, a pointer indicating the start address of the predetermined area, and the length (line) of the data stored in the predetermined area. Number) to the path management processing unit 713.

JPEG処理部714は、パス管理処理部713から展開開始の指令を受けると、ハードウェアであるJPEG処理装置81を使用してJPEG画像データを複数ラインずつRGBデータへ解凍し、間引きや切り出し、回転などを行い(この一連の処理をJPEG処理と称する)、JPEG処理後のRGBデータを出力データとして共有メモリ管理処理部717を介してRAM73に保存する。こうしてJPEG処理後のRGBデータを保存したあと、JPEG処理部714はそのデータを保存した領域の先頭アドレスを示すポインタとデータのライン数をパス管理処理部713へ通知する。   Upon receiving a decompression start command from the path management processing unit 713, the JPEG processing unit 714 decompresses JPEG image data into RGB data for each line using the JPEG processing device 81, which is hardware, and performs thinning, clipping, and rotation. (This series of processing is referred to as JPEG processing), and the RGB data after JPEG processing is stored in the RAM 73 via the shared memory management processing unit 717 as output data. After saving the JPEG processed RGB data in this way, the JPEG processing unit 714 notifies the path management processing unit 713 of the pointer indicating the head address of the area where the data is stored and the number of lines of data.

リサイズ処理部715は、パス管理処理部713から展開開始の指令を受けると、パス管理処理部713に対してリサイズ処理の対象となるデータを要求する。その後、パス管理処理部713からその要求に対する回答としてポインタ及びデータのライン数の通知を受けると、そのポインタ及びデータのライン数に基づいてRAM73からリサイズ処理の対象となるデータを読み出し、ハードウェアであるリサイズ装置82を使用してそのデータのリサイズ処理を行う。そして、リサイズ処理後のRGBデータを出力データとして共有メモリ管理処理部717を介してRAM73に保存する。こうしてリサイズ処理後のRGBデータを保存したあと、リサイズ処理部715はそのデータを保存した領域の先頭アドレスを示すポインタとデータのライン数をパス管理処理部713へ通知する。ここで、リサイズ処理の対象となるデータは、パス管理処理部713によって決定されるが、JPEG処理部714によって生成されるJPEG処理後のRGBデータか、画質補正処理部716によって生成される画質補正処理後のRGBデータのいずれかである。   When the resizing processing unit 715 receives an instruction to start expansion from the path management processing unit 713, the resizing processing unit 715 requests the data to be subjected to resizing processing from the path management processing unit 713. Thereafter, when a notification of the number of pointers and data lines is received as an answer to the request from the path management processing unit 713, the data to be resized is read from the RAM 73 based on the number of pointers and data lines, and the hardware A resize device 82 is used to resize the data. Then, the RGB data after the resizing process is stored as output data in the RAM 73 via the shared memory management processing unit 717. After storing the resized RGB data in this way, the resize processing unit 715 notifies the path management processing unit 713 of the pointer indicating the start address of the area where the data is stored and the number of data lines. Here, the data to be subjected to the resizing process is determined by the path management processing unit 713, but it is RGB data after JPEG processing generated by the JPEG processing unit 714 or image quality correction generated by the image quality correction processing unit 716. One of the RGB data after processing.

画質補正処理部716は、パス管理処理部713から展開開始の指令を受けると、パス管理処理部713に対して画質補正処理の対象となるデータの要求を行う。その後、パス管理処理部713からその要求に対する回答としてポインタ及びデータのライン数の通知を受けると、そのポインタ及びデータのライン数に基づいてRAM73から画質処理の対象となるデータを読み出し、ハードウェアである画質補正装置83を使用してそのデータの画質補正を行う。そして、画質補正処理後のRGBデータを出力データとして共有メモリ管理処理部717を介してRAM73に保存する。こうして画質補正処理後のRGBデータを保存したあと、画質補正処理部716はそのデータを保存した領域の先頭アドレスを示すポインタとデータのライン数をパス管理処理部713へ通知する。ここで、画質補正処理の対象となるデータは、パス管理処理部713によって決定されるが、JPEG処理部714によって生成されるJPEG処理後のRGBデータか、リサイズ処理部715によって生成されるリサイズ処理後のRGBデータのいずれかである。   When the image quality correction processing unit 716 receives a development start command from the path management processing unit 713, the image quality correction processing unit 716 requests data to be subjected to image quality correction processing to the path management processing unit 713. After that, when a notification of the number of pointers and data lines is received as an answer to the request from the path management processing unit 713, data subject to image quality processing is read from the RAM 73 based on the pointers and the number of data lines, and the hardware An image quality correction device 83 is used to correct the image quality of the data. Then, the RGB data after the image quality correction processing is stored as output data in the RAM 73 via the shared memory management processing unit 717. After storing the RGB data after the image quality correction processing in this way, the image quality correction processing unit 716 notifies the path management processing unit 713 of the pointer indicating the head address of the area storing the data and the number of data lines. Here, the data to be subjected to the image quality correction processing is determined by the path management processing unit 713, but the JPEG-processed RGB data generated by the JPEG processing unit 714 or the resizing processing generated by the resizing processing unit 715 Any of the later RGB data.

次に、こうして構成された本実施形態のフォトプリンタ10の動作について説明する。以下には、コントローラ70のCPU71を機能ブロックであるレイアウト合成処理部711,パス管理処理部713,JPEG処理部714,リサイズ処理部715,画質補正処理部716の5つに分け、各機能ブロックが主体となって動作を実行するものとして説明する。   Next, the operation of the photo printer 10 of the present embodiment configured as described above will be described. In the following, the CPU 71 of the controller 70 is divided into five components: a layout composition processing unit 711, a path management processing unit 713, a JPEG processing unit 714, a resizing processing unit 715, and an image quality correction processing unit 716. A description will be given assuming that the operation is performed as a main body.

レイアウト合成処理部711は、描画オブジェクト生成処理部710から画像展開条件の通知があったことを契機として、レイアウト合成処理ルーチンを開始する。図4は、レイアウト合成処理ルーチンの一例を示すフローチャートである。このルーチンが開始されると、レイアウト合成処理部711は、まず、画像展開条件のうちJPEG画像データから展開画像データを生成するのに必要な条件を設定し該条件をパス管理処理部713へ通知すると共に、パス管理処理部713に展開開始を指令する(ステップS102)。続いて、印刷データ生成処理部712の印刷準備が完了したか否かを判定し(ステップS104)、印刷準備が完了していないときには、その時点で取得可能な最大分の出力バッファを図示しないレイアウト用メモリに確保する(ステップS106)。本実施形態では、取得可能な最大分は、予めリソースとして割り当てられている値とする。そして、ステップS104で印刷データ生成処理部712の印刷準備が完了していたとき、又はステップS106で取得可能な最大分の出力バッファを確保したあと、パス管理処理部713から展開画像データを取得する(ステップS108)。ここで、パス管理処理部713は、レイアウト合成処理部711から展開開始の指令を受けたあと、JPEG処理部714やリサイズ処理部715,画質補正処理部716のパスを管理しながら各処理部714,715,716に処理を実行させることによりJPEG画像データから展開画像データを生成させ、その展開画像データをレイアウト合成処理部711へ渡す。この点については、後で詳述する。   The layout composition processing unit 711 starts a layout composition processing routine triggered by the notification of the image development condition from the drawing object generation processing unit 710. FIG. 4 is a flowchart illustrating an example of a layout synthesis processing routine. When this routine is started, the layout composition processing unit 711 first sets conditions necessary for generating expanded image data from JPEG image data among the image expansion conditions, and notifies the path management processing unit 713 of the conditions. At the same time, the path management processing unit 713 is instructed to start expansion (step S102). Subsequently, it is determined whether or not the print data generation processing unit 712 is ready for printing (step S104). If the print preparation is not completed, a layout (not shown) of the maximum output buffer that can be acquired at that time is determined. (Step S106). In the present embodiment, the maximum amount that can be acquired is assumed to be a value assigned in advance as a resource. Then, when the print preparation of the print data generation processing unit 712 is completed in step S104, or after securing the maximum output buffer that can be acquired in step S106, the developed image data is acquired from the path management processing unit 713. (Step S108). Here, the path management processing unit 713 receives each expansion start command from the layout composition processing unit 711, and then manages each processing unit 714 while managing the paths of the JPEG processing unit 714, the resizing processing unit 715, and the image quality correction processing unit 716. , 715, 716 execute processing to generate expanded image data from the JPEG image data, and pass the expanded image data to the layout composition processing unit 711. This point will be described in detail later.

そして、レイアウト合成処理部711は、ステップS108でパス管理処理部713から展開画像データを取得した後、印刷データ生成処理部712の印刷準備が完了しているか否かを判定し(ステップS110)、印刷準備が完了していないときには、取得した展開画像データに基づいてハードウェアコピー装置84を使用してレイアウト合成処理を実行する(ステップS112)。レイアウト合成処理とは、例えば、ユーザが選択した印刷用紙のサイズやレイアウトに基づいて、印刷用紙の1又は複数の画像配置領域に展開画像データを貼り付ける処理をいう。このときにハードウェアコピー装置84を使用するのは、処理の高速化とファームリソースの削減のためである。そして、レイアウト合成処理を実行したあと、確保した出力バッファに空きがあるか否かを判定し(ステップS114)、空きがあるときには、再びステップS108に戻ってパス管理処理部713に次の展開画像データを要求し該要求に対する展開画像データを取得するまで待ち、その後ステップS110以降の処理を実行する。一方、確保した出力バッファに空きがなかったときには、印刷データ生成処理部712の印刷準備が完了しているか否かを判定し(ステップS116)、印刷準備が完了していないときには再びステップS116に戻る。また、ステップS110で印刷データ生成処理部712の印刷準備が完了していたときには、パス管理処理部713から取得したライン数分の出力バッファを図示しないレイアウト用メモリに確保し(ステップS118)、レイアウト合成処理を実行する(ステップS120)。そして、ステップS120でレイアウト合成処理を実行したあと又はステップS116で印刷データ生成処理部712の印刷準備が完了していたときには、印刷データ生成処理部712へレイアウト合成処理後のデータを出力し(ステップS122)、その後、今回のJPEG画像データにつき予め定められた全ラインの出力が終了したか否かを判定する(ステップS124)。そして、まだ全ラインの出力が終了していないときには、再びステップS108に戻ってパス管理処理部713に次の展開画像データを要求し該要求に対する展開画像データを取得するまで待ち、その後ステップS110以降の処理を実行する。一方、ステップS124で全ラインの出力が終了していたときには、パス管理処理部713へ展開終了を通知し(ステップS126)、本ルーチンを終了する。   The layout composition processing unit 711 determines whether the print data generation processing unit 712 is ready for printing after acquiring the developed image data from the path management processing unit 713 in step S108 (step S110). When the print preparation is not completed, the layout composition process is executed using the hardware copying apparatus 84 based on the acquired developed image data (step S112). The layout composition process refers to a process of pasting developed image data on one or a plurality of image arrangement areas on a print sheet based on, for example, the size and layout of the print sheet selected by the user. The hardware copy device 84 is used at this time in order to increase processing speed and reduce farm resources. Then, after executing the layout synthesis process, it is determined whether or not there is a space in the secured output buffer (step S114). If there is a space, the process returns to step S108 again to the path management processing unit 713 for the next developed image. The process waits until data is requested and the developed image data corresponding to the request is acquired, and then the processing from step S110 is executed. On the other hand, when there is no space in the secured output buffer, it is determined whether or not the print data generation processing unit 712 is ready for printing (step S116). If the print preparation is not completed, the process returns to step S116 again. . When the print data generation processing unit 712 is ready for printing in step S110, output buffers for the number of lines acquired from the path management processing unit 713 are secured in a layout memory (not shown) (step S118). A synthesis process is executed (step S120). Then, after the layout synthesis process is executed in step S120 or when the print preparation of the print data generation processing unit 712 is completed in step S116, the data after the layout synthesis process is output to the print data generation processing unit 712 (step S116). Thereafter, it is determined whether or not the output of all the predetermined lines for the current JPEG image data has been completed (step S124). If the output of all the lines has not been completed yet, the process returns to step S108 again to request the next developed image data from the path management processing unit 713 and wait until obtaining the developed image data corresponding to the request. Execute the process. On the other hand, if the output of all lines has been completed in step S124, the path management processing unit 713 is notified of the end of development (step S126), and this routine ends.

パス管理処理部713は、レイアウト合成処理部711から展開開始の指令を受けたことを契機として、パス管理処理ルーチンを開始する。図5は、パス管理処理ルーチンの一例を示すフローチャートである。このルーチンが開始されると、パス管理処理部713は、まず、JPEG処理部714に対してJPEG画像データにJPEG処理を施すのに必要なJPEG処理条件を設定する(ステップS202)。このJPEG処理条件は、レイアウト合成処理部711からパス管理処理部713に渡された画像展開条件の一部をなすものであり、例えばファイル名やクリップ条件などが含まれる。続いて、パス管理処理部713は、リサイズ処理部715に対してRGBデータを指定されたサイズへ変換するためのリサイズ処理条件を設定する(ステップS204)。このリサイズ処理条件も、レイアウト合成処理部711からパス管理処理部713に渡された画像展開条件の一部をなすものであり、例えばファイルの入力サイズや出力サイズなどが含まれる。続いて、画質補正は必要か否かを判定する(ステップS206)。画質補正が必要か否かの判定は、レイアウト合成処理部711からパス管理処理部713に渡された画像展開条件に画質補正の有無が含まれているため、それに基づいて判定する。そして、ステップS206で画質補正が不要(つまり画質補正なし)だったときには、パスの順序を1番目がJPEG処理部714,2番目がリサイズ処理部715とし、両処理部714,715へ展開開始を指令する(ステップS208)。一方、ステップS206で画質補正が必要(つまり画質補正あり)だったときには、画質補正処理部716に対してRGBデータの画質を補正するための画質補正処理条件を設定する(ステップS210)。画質補正処理条件は、レイアウト合成処理部711からパス管理処理部713に渡された画像展開条件の一部をなすものであり、例えばコントラストや明るさ、彩度などに関するパラメータが含まれる。続いて、リサイズ処理条件が縮小か拡大(等倍を含む)かを判定し(ステップS212)、リサイズ処理条件が縮小だったときには、パスの順序を1番目がJPEG処理部714,2番目がリサイズ処理部715,3番目が画質補正処理部716としたうえで各処理部714,715,716へ展開開始を指令し(ステップS214)、リサイズ処理条件が拡大だったときには、パスの順序を1番目がJPEG処理部714,2番目が画質補正処理部716,3番目がリサイズ処理部715としたうえで各処理部714,715,716へ展開開始を指令する(ステップS216)。   The path management processing unit 713 starts a path management processing routine in response to an instruction to start development from the layout synthesis processing unit 711. FIG. 5 is a flowchart illustrating an example of a path management processing routine. When this routine is started, the path management processing unit 713 first sets a JPEG processing condition necessary for performing JPEG processing on JPEG image data in the JPEG processing unit 714 (step S202). This JPEG processing condition forms part of the image development condition passed from the layout composition processing unit 711 to the path management processing unit 713, and includes, for example, a file name and a clip condition. Subsequently, the path management processing unit 713 sets resize processing conditions for converting the RGB data to the specified size in the resize processing unit 715 (step S204). This resizing processing condition also forms part of the image development conditions passed from the layout composition processing unit 711 to the path management processing unit 713, and includes, for example, the input size and output size of the file. Subsequently, it is determined whether image quality correction is necessary (step S206). Whether image quality correction is necessary or not is determined based on whether or not image quality correction is included in the image development conditions passed from the layout composition processing unit 711 to the path management processing unit 713. When image quality correction is unnecessary (that is, no image quality correction) in step S206, the first JPEG processing unit 714 and the second resize processing unit 715 are set as the pass order, and the expansion starts to both processing units 714 and 715. Command (step S208). On the other hand, when image quality correction is necessary (that is, with image quality correction) in step S206, image quality correction processing conditions for correcting the image quality of RGB data are set in the image quality correction processing unit 716 (step S210). The image quality correction processing conditions form part of the image development conditions passed from the layout synthesis processing unit 711 to the path management processing unit 713, and include parameters relating to contrast, brightness, saturation, and the like, for example. Subsequently, it is determined whether the resize processing condition is reduction or enlargement (including equal magnification) (step S212). If the resize processing condition is reduction, the first JPEG processing unit 714 and the second resize are in the pass order. The processing unit 715, the third image quality correction processing unit 716, and commands the processing unit 714, 715, 716 to start development (step S214), when the resize processing condition is expanded, the pass order is the first The JPEG processing unit 714, the second image quality correction processing unit 716, the third the resizing processing unit 715, and the processing unit 714, 715, 716 are instructed to start development (step S216).

そして、ステップS208,S214,S216のあと、パス管理処理部713は、いずれかの処理部からデータが要求されると、その要求元の処理部の一つ前の処理を行う処理部へデータを要求し、その処理部からその処理部が生成したデータの格納領域の先頭アドレスを示すポインタ及びデータのライン数を入力する(ステップS218)。その後、レイアウト合成処理部711から展開終了の通知があったか否かを判定し(ステップS220)、展開終了の通知がないときには再びステップS218に戻る。一方、展開終了の通知があったときには、本ルーチンを終了する。   Then, after steps S208, S214, and S216, when data is requested from any of the processing units, the path management processing unit 713 sends the data to the processing unit that performs the process immediately preceding the requesting processing unit. A request is made, and a pointer indicating the start address of the data storage area generated by the processing unit and the number of data lines are input from the processing unit (step S218). Thereafter, it is determined whether or not there is a notification of expansion completion from the layout composition processing unit 711 (step S220). If there is no notification of expansion completion, the process returns to step S218 again. On the other hand, when there is a notice of completion of expansion, this routine ends.

JPEG処理部714は、パス管理処理部713から展開開始の指令を受けたことを契機として、JPEG処理ルーチンを開始する。図6は、JPEG処理ルーチンの一例を示すフローチャートである。このルーチンが開始されると、JPEG処理部714は、まず、共有メモリ管理処理部717を介してRAM73にJPEG処理装置81用の出力バッファを確保し(ステップS302)、確保した出力バッファのサイズに応じて処理すべきJPEG画像データのライン数を決定する(ステップS304)。続いて、JPEG画像データのうち決定したライン数分をリーダライタ18を介して読み込み、JPEG処理装置81を制御してRGBデータへ解凍し、JPEG処理条件に基づいて間引きや切り出し、回転処理を実行したあと、そのJPEG処理後のRGBデータを出力バッファに格納する(ステップS306)。その後、パス管理処理部713からデータの要求が来ているか否かを判定し(ステップS308)、要求が来ていなかったときには再びステップS308に戻る。一方、データの要求が来ていたときには、出力バッファに格納したJPEG処理後のRGBデータの先頭アドレスを示すポインタ及びそのデータのライン数をパス管理処理部713へ通知する(ステップS310)。その後、JPEG画像データの全ラインの処理を終了したか否かを判定し(ステップS312)、まだ終了していないときには再びステップS302に戻る。一方、JPEG画像データの全ラインの処理を終了したときには、本ルーチンを終了する。   The JPEG processing unit 714 starts a JPEG processing routine in response to receiving a decompression start command from the path management processing unit 713. FIG. 6 is a flowchart illustrating an example of a JPEG processing routine. When this routine is started, the JPEG processing unit 714 first secures an output buffer for the JPEG processing device 81 in the RAM 73 via the shared memory management processing unit 717 (step S302), and sets the size of the secured output buffer. Accordingly, the number of lines of JPEG image data to be processed is determined (step S304). Subsequently, the determined number of lines in the JPEG image data is read via the reader / writer 18, the JPEG processing device 81 is controlled and decompressed to RGB data, and thinning, clipping, and rotation processing are executed based on JPEG processing conditions After that, the RGB data after the JPEG processing is stored in the output buffer (step S306). Thereafter, it is determined whether or not a data request is received from the path management processing unit 713 (step S308), and when the request is not received, the process returns to step S308 again. On the other hand, when a data request is received, a pointer indicating the head address of the RGB data after JPEG processing stored in the output buffer and the number of lines of the data are notified to the path management processing unit 713 (step S310). Thereafter, it is determined whether or not the processing of all lines of the JPEG image data has been completed (step S312). If not yet completed, the process returns to step S302 again. On the other hand, when the processing of all lines of JPEG image data is completed, this routine is terminated.

リサイズ処理部715は、パス管理処理部713から展開開始の指令を受けたことを契機として、リサイズ処理ルーチンを開始する。図7は、リサイズ処理ルーチンの一例を示すフローチャートである。このルーチンが開始されると、リサイズ処理部715は、まず、共有メモリ管理処理部717を介してRAM73にリサイズ装置82用の入出力バッファを確保し(ステップS402)、リサイズ装置82の初期設定を行う(ステップS404)。ここで、初期設定とは、リサイズ処理の対象となるデータのサイズつまり入力サイズと、リサイズ処理後のデータのサイズつまり出力サイズなどを設定することをいう。なお、入出力バッファは、入力サイズ及び出力サイズに応じたサイズが確保される。続いて、リサイズ処理部715は、パス管理処理部713へリサイズ処理の対象となるデータを要求する(ステップS406)。ここで、リサイズ処理の対象となるデータとは、リサイズ処理の一つ前に処理を行う処理部が生成したデータをいい、パス管理処理部713によってJPEG処理後のRGBデータか画質補正処理後のRGBデータのいずれかに決定される。その後、リサイズ処理部715は、パス管理処理部713からリサイズ処理の対象となるデータのポインタ及びデータのライン数が通知されたか否かを判定し(ステップS408)、通知されていないときには再びステップS408に戻る。一方、ポインタ及びデータのライン数が通知されたときには、入力バッファにリサイズ処理の対象となるデータをコピーし(ステップS410)、その後、コピー元のバッファを解放する(ステップS412)。続いて、入力バッファにコピーしたリサイズ処理の対象となるデータをリサイズ装置82を制御して拡大又は縮小することによりリサイズ処理後のRGBデータとし、そのリサイズ処理後のRGBデータを出力バッファに格納する(ステップS414)。続いて、出力バッファがリサイズ処理後のRGBデータで詰まったか否かを判定し(ステップS416)、詰まっていないときにはまだパス管理処理部713へ出力できない状態のため、再びステップS406に戻る。一方、出力バッファがリサイズ処理後のRGBデータで詰まっていたときつまり出力可能なときには、次回のリサイズ処理に備えて、共有メモリ管理処理部717を介してRAM73にリサイズ装置82用の出力バッファを確保する(ステップS418)。なお、入力バッファは上書きして使用するため、ここで確保する必要はない。続いて、パス管理処理部713からリサイズ処理後のRGBデータの要求が来ているか否かを判定する(ステップS420)。そして、データの要求が来ていなかったときには、再びステップS420に戻る。一方、データの要求が来ていたときには、リサイズ処理後のRGBデータの先頭アドレスを示すポインタ及びそのデータのライン数をパス管理処理部713へ通知する(ステップS422)。その後、全ラインの処理を終了したか否かを判定し(ステップS424)、まだ終了していないときには再びステップS406に戻る。一方、全ラインの処理を終了したときには、本ルーチンを終了する。   The resize processing unit 715 starts a resize processing routine triggered by receiving a command to start expansion from the path management processing unit 713. FIG. 7 is a flowchart showing an example of the resizing process routine. When this routine is started, the resizing processing unit 715 first secures an input / output buffer for the resizing device 82 in the RAM 73 via the shared memory management processing unit 717 (step S402), and initializes the resizing device 82. This is performed (step S404). Here, the initial setting means setting the size of data to be resized, that is, the input size, the size of data after the resize processing, that is, the output size, and the like. Note that the input / output buffer has a size corresponding to the input size and the output size. Subsequently, the resizing processing unit 715 requests data to be subjected to resizing processing from the path management processing unit 713 (step S406). Here, the data to be subjected to resizing processing refers to data generated by a processing unit that performs processing immediately before the resizing processing. The path management processing unit 713 performs RGB data after JPEG processing or after image quality correction processing. It is determined as one of RGB data. After that, the resizing processing unit 715 determines whether or not the path management processing unit 713 has notified the pointer of the data to be resized and the number of data lines (step S408), and when not notified, the step S408 is performed again. Return to. On the other hand, when the number of lines of the pointer and data is notified, the data to be resized is copied to the input buffer (step S410), and then the copy source buffer is released (step S412). Subsequently, the data to be subjected to the resizing process copied to the input buffer is enlarged or reduced by controlling the resizing device 82 to obtain the RGB data after the resizing process, and the RGB data after the resizing process is stored in the output buffer. (Step S414). Subsequently, it is determined whether or not the output buffer is clogged with the resized RGB data (step S416). When the output buffer is not clogged, it cannot be output to the path management processing unit 713, so the process returns to step S406 again. On the other hand, when the output buffer is clogged with RGB data after resizing processing, that is, when output is possible, an output buffer for the resizing device 82 is secured in the RAM 73 via the shared memory management processing unit 717 in preparation for the next resizing processing. (Step S418). Since the input buffer is used by overwriting, it is not necessary to secure it here. Subsequently, it is determined whether or not a request for RGB data after the resizing process is received from the path management processing unit 713 (step S420). If no data request has been received, the process returns to step S420 again. On the other hand, when a data request is received, a pointer indicating the head address of the RGB data after the resizing process and the number of lines of the data are notified to the path management processing unit 713 (step S422). Thereafter, it is determined whether or not the processing of all lines has been completed (step S424), and if not yet completed, the process returns to step S406 again. On the other hand, when the processing of all lines is finished, this routine is finished.

画質補正処理部716は、パス管理処理部713から展開開始の指令を受けたことを契機として、画質補正処理ルーチンを開始する。図8は、画質補正処理ルーチンの一例を示すフローチャートである。このルーチンが開始されると、画質補正処理部716は、まず、共有メモリ管理処理部717を介してRAM73に画質補正装置83用の出力バッファを確保し(ステップS502)、パス管理処理部713へ画質補正処理の対象となるデータを要求する(ステップS504)。ここで、画質補正処理の対象となるデータとは、画質補正処理の一つ前に処理を行う処理部が生成したデータをいい、パス管理処理部713によってJPEG処理後のRGBデータかリサイズ処理後のRGBデータのいずれかに決定される。その後、画質補正処理部716は、パス管理処理部713から画質補正処理の対象となるデータのポインタ及びデータのライン数が通知されたか否かを判定し(ステップS506)、通知されていないときには再びステップS504に戻る。一方、ポインタ及びデータのライン数が通知されたときには、そのポインタ及びデータのライン数に基づいてRAM73から画質補正処理の対象となるデータを読み出し、画質補正装置83を制御して画質補正パラメータにしたがって画質補正処理を実行することにより画質補正処理後のRGBデータとし、その画質補正処理後のRGBデータを出力バッファに格納する(ステップS508)。その後、画質補正処理部716は、今回使用した画質補正処理の対象となるデータが格納されていた出力バッファを解放し(ステップS510)、パス管理処理部713から画質補正処理後のRGBデータの要求が来ているか否かを判定する(ステップS512)。そして、データの要求が来ていなかったときには、出力バッファにまだ余裕があるか否かを判定し(ステップS514)、まだ余裕があるときには再びステップS504に戻る。一方、出力バッファに余裕がなかったときには、再びステップS512に戻り、データの要求が来るまで待機する。そして、ステップS512でデータの要求が来たときには、出力バッファに格納した画質補正処理後のRGBデータの先頭アドレスを示すポインタ及びそのデータのライン数をパス管理処理部713へ通知する(ステップS516)。その後、全ラインの処理を終了したか否かを判定し(ステップS518)、まだ終了していないときには再びステップS504に戻る。一方、全ラインの処理を終了したときには、本ルーチンを終了する。   The image quality correction processing unit 716 starts an image quality correction processing routine in response to receiving an instruction to start development from the path management processing unit 713. FIG. 8 is a flowchart illustrating an example of the image quality correction processing routine. When this routine is started, the image quality correction processing unit 716 first secures an output buffer for the image quality correction device 83 in the RAM 73 via the shared memory management processing unit 717 (step S502), and then proceeds to the path management processing unit 713. A request is made for data to be subjected to image quality correction processing (step S504). Here, the data to be subjected to image quality correction processing refers to data generated by a processing unit that performs processing immediately before the image quality correction processing, and the RGB data after JPEG processing or after resizing processing by the path management processing unit 713. RGB data is determined. Thereafter, the image quality correction processing unit 716 determines whether or not the path management processing unit 713 has notified the pointer of the data to be subjected to the image quality correction processing and the number of data lines (step S506). The process returns to step S504. On the other hand, when the number of pointers and data lines is notified, data to be subjected to image quality correction processing is read from the RAM 73 based on the number of pointers and data lines, and the image quality correction device 83 is controlled to follow the image quality correction parameters. By executing the image quality correction process, the RGB data after the image quality correction process is obtained, and the RGB data after the image quality correction process is stored in the output buffer (step S508). Thereafter, the image quality correction processing unit 716 releases the output buffer storing the data to be used for the image quality correction processing used this time (step S510), and requests the RGB data after the image quality correction processing from the path management processing unit 713. Is determined (step S512). If no data request has been received, it is determined whether there is still room in the output buffer (step S514). If there is still room, the process returns to step S504 again. On the other hand, when there is no room in the output buffer, the process returns to step S512 again and waits until a data request is received. When a data request is received in step S512, a pointer indicating the leading address of the RGB data after the image quality correction processing stored in the output buffer and the number of lines of the data are notified to the path management processing unit 713 (step S516). . Thereafter, it is determined whether or not the processing of all lines has been completed (step S518), and if not yet completed, the process returns to step S504 again. On the other hand, when the processing of all lines is finished, this routine is finished.

次に、各処理部711,713〜716で各ルーチンが実行されるときのタイムチャートを図9に基づいて説明する。図9は、フォトプリンタ10でJPEG画像データからレイアウト合成画像データを生成するときのタイムチャートである。図9では、便宜上、パス管理処理部713を点線の矩形として複数書き表した。また、リサイズ処理ではRGBデータのサイズを縮小するものとし、パス管理処理部713ではパスの順序をJPEG処理部714,リサイズ処理部715,画質補正処理部716と設定したとする。また、印刷データ生成処理部712では未だ印刷準備が完了していないものとする。   Next, a time chart when each routine is executed by each of the processing units 711, 713 to 716 will be described with reference to FIG. FIG. 9 is a time chart when the layout composite image data is generated from the JPEG image data by the photo printer 10. In FIG. 9, for the sake of convenience, a plurality of path management processing units 713 are depicted as dotted rectangles. Further, it is assumed that the size of the RGB data is reduced in the resizing process, and the path management processing unit 713 sets the pass order as JPEG processing unit 714, resizing processing unit 715, and image quality correction processing unit 716. Further, it is assumed that the print data generation processing unit 712 has not yet completed the print preparation.

まず、レイアウト合成処理部711がパス管理処理部713に展開画像データを生成するのに必要な条件と展開開始指令をパス管理処理部713に出力する。すると、パス管理処理部713はJPEG処理部714,リサイズ処理部715及び画質補正処理部716に展開開始を指令する。JPEG処理部714は、展開開始の指令を受けると、JPEG画像データの複数ラインにつきJPEG処理を実行してJPEG処理後のRGBデータを生成する。一方、リサイズ処理部715や画質補正処理部716は、展開開始の指令を受けると、処理対象のデータをパス管理処理部713へ要求する。すると、パス管理処理部713は、JPEG処理部714、リサイズ処理部715及び画質補正処理部716のそれぞれにデータを要求する。JPEG処理部714は、最初のJPEG処理が終了したときにデータの要求が来ていたときには、今回生成したJPEG処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713へ通知する。すると、パス管理処理部713は、設定したパスの順序に基づき、そのポインタ及びデータのライン数をリサイズ処理部715に通知する。この通知を受けたリサイズ処理部715は、そのポインタ及びデータのライン数に基づいてJPEG処理後のRGBデータを出力バッファから読み出し、そのサイズを縮小することによりリサイズ処理後のRGBデータを生成したあと、データの要求が来ていたときには、今回生成したリサイズ処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713へ通知する。すると、パス管理処理部713は、設定したパスの順序に基づき、そのポインタ及びデータのライン数を画質補正処理部716に通知する。この通知を受けた画質補正処理部716は、そのポインタ及びデータのライン数に基づいてリサイズ処理後のRGBデータを出力バッファから読み出し、画質補正処理を施すことにより画質補正処理後のRGBデータを生成したあと、データの要求が来ていたときには、今回生成した画質補正処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713へ通知する。すると、パス管理処理部713は、そのポインタ及びデータのライン数を展開画像データに関するものとしてレイアウト合成処理部711へ通知する。レイアウト合成処理部711は、そのポインタ及びデータのライン数に基づいて展開画像データを出力バッファから読み出し、ハードウェアコピー装置84を使用してレイアウト合成処理を実行し、得られたレイアウト合成処理後のRGBデータを、図示しないレイアウト用メモリにため込む。   First, the layout composition processing unit 711 outputs to the path management processing unit 713 a condition and a development start command necessary for generating developed image data in the path management processing unit 713. Then, the path management processing unit 713 instructs the JPEG processing unit 714, the resizing processing unit 715, and the image quality correction processing unit 716 to start development. When receiving the instruction to start development, the JPEG processing unit 714 executes JPEG processing for a plurality of lines of JPEG image data to generate RGB data after JPEG processing. On the other hand, when the resizing processing unit 715 or the image quality correction processing unit 716 receives a development start command, it requests the path management processing unit 713 for data to be processed. Then, the path management processing unit 713 requests data from each of the JPEG processing unit 714, the resizing processing unit 715, and the image quality correction processing unit 716. The JPEG processing unit 714 notifies the path management processing unit 713 of the pointer and the number of data lines related to the RGB data after JPEG processing generated this time when a request for data has been received when the first JPEG processing is completed. Then, the path management processing unit 713 notifies the resizing processing unit 715 of the pointer and the number of data lines based on the set path order. Upon receiving this notification, the resizing processing unit 715 reads out the RGB data after JPEG processing from the output buffer based on the pointer and the number of data lines, and generates the RGB data after resizing processing by reducing the size of the data. When a request for data has been received, the path management processing unit 713 is notified of the pointer and the number of data lines relating to the RGB data after the resize process generated this time. Then, the path management processing unit 713 notifies the image quality correction processing unit 716 of the pointer and the number of data lines based on the set path order. Receiving this notification, the image quality correction processing unit 716 reads out the resized RGB data from the output buffer based on the pointer and the number of data lines, and generates the RGB data after the image quality correction processing by performing the image quality correction processing. After that, when a data request is received, the path management processing unit 713 is notified of the pointer and the number of data lines related to the RGB data after the image quality correction processing generated this time. Then, the path management processing unit 713 notifies the layout composition processing unit 711 of the pointer and the number of data lines as related to the developed image data. The layout composition processing unit 711 reads out the developed image data from the output buffer based on the pointer and the number of data lines, executes the layout composition processing using the hardware copy device 84, and performs the layout composition processing after the obtained layout composition processing. RGB data is accumulated in a layout memory (not shown).

このようにJPEG処理部714,リサイズ処理部715,画質補正処理部716及びレイアウト合成処理部711につき、直列的に処理を行う様子を説明したが、各処理部714〜716は他の処理部が処理を実行している間も並列的に自分も処理を行うことになる。すなわち、JPEG処理部714は、JPEG処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713に通知した後、すぐにJPEG画像データの次の複数ラインにつきJPEG処理を実行する。そして、そのJPEG処理が終了したときにデータ要求が来ていたときには、生成したJPEG処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713に通知する。このように、JPEG処理部714は、JPEG処理を実行した後、直列的に行われるリサイズ処理や画質補正処理、レイアウト合成処理が終了するのを待つことなく、次のJPEG処理を実行する。リサイズ処理部715は、リサイズ処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713に通知した後、すぐに処理対象となるデータをパス管理処理部713に要求し、その要求に対して新たな処理対象となるデータのポインタ及びデータのライン数が通知されたときには、そのポインタ及びデータのライン数を利用して出力バッファから処理対象となるデータを読み出し、リサイズ処理を実行する。そして、そのリサイズ処理が終了したときにデータ要求が来ていたときには、生成したリサイズ処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713に通知する。このように、リサイズ処理部715は、リサイズ処理を実行した後、直列的に行われる画質補正処理やレイアウト合成処理が終了するのを待つことなく、次のリサイズ処理を実行する。画質補正処理部716は、画質補正処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713に通知した後、すぐに処理対象となるデータをパス管理処理部713に要求し、その要求に対して新たな処理対象となるデータのポインタ及びデータのライン数が通知されたときには、そのポインタ及びデータのライン数を利用して出力バッファから処理対象となるデータを読み出し、画質補正処理を実行する。そして、その画質補正処理が終了したときにデータ要求が来ていたときには、生成した画質補正処理後のRGBデータに関するポインタ及びデータのライン数をパス管理処理部713に通知する。このように、画質補正処理部716は、画質補正処理を実行した後、直列的に行われるレイアウト合成処理が終了するのを待つことなく、次の画質補正処理を実行する。   In this manner, the JPEG processing unit 714, the resizing processing unit 715, the image quality correction processing unit 716, and the layout composition processing unit 711 have been described as performing processing in series, but each of the processing units 714 to 716 includes other processing units. While executing the process, the user also performs the process in parallel. That is, the JPEG processing unit 714 notifies the path management processing unit 713 of the pointer and the number of data lines related to the RGB data after JPEG processing, and immediately executes JPEG processing for the next plurality of lines of JPEG image data. When the data request is received when the JPEG processing is finished, the path management processing unit 713 is notified of the pointer and the number of data lines related to the generated RGB data after JPEG processing. As described above, after executing the JPEG processing, the JPEG processing unit 714 executes the next JPEG processing without waiting for the resizing processing, the image quality correction processing, and the layout synthesis processing to be performed in series. The resize processing unit 715 notifies the path management processing unit 713 of the pointer and the number of data lines regarding the RGB data after the resize processing, and immediately requests the path management processing unit 713 for data to be processed. On the other hand, when the pointer of the data to be newly processed and the number of data lines are notified, the data to be processed is read from the output buffer using the pointer and the number of data lines, and the resizing process is executed. If a data request is received when the resizing process is completed, the path management processing unit 713 is notified of the pointer and the number of data lines related to the generated RGB data after the resizing process. As described above, the resizing processing unit 715 executes the next resizing process without waiting for the end of the image quality correction process and the layout synthesis process performed in series after executing the resizing process. The image quality correction processing unit 716 notifies the path management processing unit 713 of the pointer and the number of data lines related to the RGB data after the image quality correction processing, and immediately requests the path management processing unit 713 for data to be processed. When a pointer to the new data to be processed and the number of data lines are notified in response to the request, the data to be processed is read from the output buffer using the pointer and the number of data lines, and the image quality correction processing is performed. Execute. If the data request is received when the image quality correction processing is completed, the pointer and the number of data lines related to the generated RGB data after the image quality correction processing are notified to the path management processing unit 713. As described above, after executing the image quality correction process, the image quality correction processing unit 716 executes the next image quality correction process without waiting for the layout composition process performed in series to end.

なお、図9は、リサイズ処理条件がRGBデータのサイズを縮小する場合を例示したため、パスの順序がJPEG処理部714,リサイズ処理部715,画質補正処理部716と設定されたが、リサイズ処理条件がRGBデータのサイズを拡大する場合には、パスの順序がJPEG処理部714,画質補正処理部716,リサイズ処理部715と設定される。この場合も、図9と同様、各処理部714〜716では並列に処理が実行される。また、画質補正が不要な場合には、パス順序がJPEG処理部714,リサイズ処理部715に設定される。この場合も、図9と同様、各処理部714,715では並列に処理が実行される。   9 illustrates the case where the resizing processing condition reduces the size of the RGB data, the pass order is set to JPEG processing unit 714, resizing processing unit 715, and image quality correction processing unit 716. When the size of RGB data is enlarged, the pass order is set as JPEG processing unit 714, image quality correction processing unit 716, and resizing processing unit 715. Also in this case, as in FIG. 9, the processing units 714 to 716 execute processing in parallel. When image quality correction is unnecessary, the pass order is set in the JPEG processing unit 714 and the resizing processing unit 715. Also in this case, as in FIG. 9, the processing units 714 and 715 execute processing in parallel.

ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態のフォトプリンタ10が本発明の印刷処理装置に相当し、パス管理処理部713、JPEG処理部714、リサイズ処理部715、画質補正処理部716及び共有メモリ管理処理部717が展開画像生成手段に相当し、レイアウト合成処理部711がレイアウト合成手段に相当し、印刷データ生成処理部712が印刷データ生成手段に相当する。また、JPEG処理装置81が解凍装置に相当する。なお、本実施形態では、フォトプリンタ10の動作を説明することにより本発明の印刷処理方法の一例も明らかにしている。   Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The photo printer 10 of this embodiment corresponds to the print processing apparatus of the present invention, and a path management processing unit 713, a JPEG processing unit 714, a resizing processing unit 715, an image quality correction processing unit 716, and a shared memory management processing unit 717 generate a developed image. The layout composition processing unit 711 corresponds to a layout composition unit, and the print data generation processing unit 712 corresponds to a print data generation unit. The JPEG processing device 81 corresponds to a decompression device. In this embodiment, an example of the print processing method of the present invention is also clarified by describing the operation of the photo printer 10.

以上詳述した本実施形態のフォトプリンタ10によれば、JPEG装置81における処理とリサイズ装置82における処理と画質補正装置83における処理とを所定のパス順序で直列的に実行させると共に各装置につき他の装置が処理している間も並列的に処理を実行させることにより、展開画像データを生成する。こうすることにより、各装置が処理することなく待機するといった時間が大幅に削減される。したがって、圧縮画像に対して解凍・リサイズ・画質補正の処理を施して印刷する場合の印刷時間を短縮することができる。   According to the photo printer 10 of the present embodiment described in detail above, the processing in the JPEG device 81, the processing in the resizing device 82, and the processing in the image quality correction device 83 are executed in series in a predetermined pass order, and other processing is performed for each device. The developed image data is generated by executing the processing in parallel while the apparatus is processing. In this way, the time for each device to stand by without processing is greatly reduced. Accordingly, it is possible to shorten the printing time when printing is performed by performing decompression, resizing, and image quality correction processing on the compressed image.

また、リサイズ処理においてRGBデータを拡大する場合には拡大する前に画質補正処理を行い、リサイズ処理においてRGBデータを縮小する場合には縮小した後に画質補正処理を行うため、画質補正の処理対象のデータ量が小さくてすむから、画質補正処理部の負担が軽減される。   Also, when the RGB data is enlarged in the resizing process, the image quality correction process is performed before the enlargement, and when the RGB data is reduced in the resizing process, the image quality correction process is performed after the reduction. Since the data amount is small, the burden on the image quality correction processing unit is reduced.

更に、画質補正が不要なときにはJPEG処理とリサイズ処理しか実行しないから、印刷時間をより短縮することができる。   Furthermore, since only JPEG processing and resizing processing are executed when image quality correction is unnecessary, the printing time can be further shortened.

更にまた、印刷データ生成処理部712の印刷準備が完了する前にJPEG画像データから展開画像データを生成する処理を開始するため、印刷データ生成処理部712の印刷準備が完了するのを待ってJPEG画像データから展開画像データの生成を開始する場合に比べて、印刷時間を短縮することができる。   Furthermore, since the process of generating the developed image data from the JPEG image data is started before the print data generation processing unit 712 completes the print preparation, the print data generation processing unit 712 waits for the print preparation to be completed before the JPEG image data is processed. The printing time can be shortened as compared with the case where the generation of the developed image data is started from the image data.

そして、JPEG装置81、リサイズ装置82及び画質補正装置83のうちの2つの装置間でデータの受け渡しを行うにあたり、データを渡す側の装置は自身が生成したデータを出力バッファに格納し、データの受け側の装置は該出力バッファの先頭アドレスを示すポインタ及び該データのライン数の通知を受けるため、2つの装置間でデータをコピーして受け渡す場合に比べて処理時間を短縮することができる。   Then, when data is transferred between two of the JPEG device 81, the resizing device 82, and the image quality correction device 83, the device on the data passing side stores the data generated by itself in the output buffer, and Since the receiving device receives the pointer indicating the head address of the output buffer and the notification of the number of lines of the data, the processing time can be shortened compared with the case where data is copied and transferred between the two devices. .

なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。   It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.

例えば、上述した実施形態では、所定形式の圧縮画像データとしてJPEG画像データを例示したが、特にこれに限定されるものではなく、例えばGIF画像データやPNG画像データなどを用いて展開画像データを生成するとしてもよい。   For example, in the above-described embodiment, JPEG image data is exemplified as compressed image data in a predetermined format. However, the present invention is not particularly limited to this. For example, decompressed image data is generated using GIF image data, PNG image data, or the like. You may do that.

上述した実施形態では、印刷データ生成処理部712の印刷準備が完了する前にJPEG画像データから展開画像データを生成する処理を開始するものとしたが、印刷データ生成処理部712の印刷準備が完了するのを待ってJPEG画像データから展開画像データを生成する処理を開始するものとしてもよい。この場合には、印刷準備が完了するのを待つ分、印刷時間が長くなるものの、各装置81,82,83の処理を並列的に実行するため、それによる印刷時間の短縮効果は十分得られる。   In the above-described embodiment, the process of generating the developed image data from the JPEG image data is started before the print data generation processing unit 712 completes the print preparation. However, the print data generation processing unit 712 is ready for printing. It is also possible to start processing for generating developed image data from JPEG image data after waiting. In this case, although the printing time is increased by waiting for completion of the printing preparation, the processing of each device 81, 82, 83 is executed in parallel, so that the effect of shortening the printing time can be sufficiently obtained. .

上述した実施形態では、各装置81,82,83の2つの装置間でデータの受け渡しを行うにあたりポインタ及びデータのライン数を通知することとしたが、データのコピーによってデータの受け渡しを行うようにしてもよい。この場合には、データのコピーに時間を要する分、印刷時間が長くなるものの、各装置81,82,83の処理を並列的に実行するため、それによる印刷時間の短縮効果は十分得られる。   In the above-described embodiment, the pointer and the number of data lines are notified when data is transferred between the two devices 81, 82, and 83, but the data is transferred by copying the data. May be. In this case, although the printing time becomes longer due to the time required to copy the data, the processing of each of the devices 81, 82, 83 is executed in parallel, so that the effect of shortening the printing time can be sufficiently obtained.

上述した実施形態では、印刷処理装置としてインクジェット方式のフォトプリンタ10を例示したが、インクジェット方式の印刷機構のほかにスキャナなどを備えたマルチファンクションプリンタやFaxなどに本発明を適用してもよい。   In the above-described embodiment, the inkjet photo printer 10 is exemplified as the print processing apparatus. However, the present invention may be applied to a multifunction printer or a fax provided with a scanner in addition to the inkjet printing mechanism.

上述した実施形態では、メモリカードMに記憶されたJPEG画像ファイルを利用するものとして説明したが、フォトプリンタ10に接続された外部機器(例えばデジタルカメラや携帯電話、CD/DVDドライブ装置など)に記憶されたJPEG画像ファイルを利用するものとしてもよいし、フォトプリンタ10にネットワーク経由で配信されてきたJPEG画像ファイルを保存しそれを利用するものとしてもよい。   In the above-described embodiment, the JPEG image file stored in the memory card M is used. However, the external device (for example, a digital camera, a mobile phone, a CD / DVD drive device, etc.) connected to the photo printer 10 is used. The stored JPEG image file may be used, or the JPEG image file distributed via the network may be stored in the photo printer 10 and used.

フォトプリンタの前面扉及びカバーを開けた状態の斜視図。The perspective view of the state which opened the front door and cover of the photo printer. フォトプリンタの電気的構成の概略を示すブロック図。FIG. 2 is a block diagram illustrating an outline of an electrical configuration of a photo printer. コントローラのCPUを機能ブロック図で表したときの説明図。Explanatory drawing when CPU of a controller is represented with a functional block diagram. レイアウト合成処理ルーチンの一例を示すフローチャート。6 is a flowchart illustrating an example of a layout synthesis processing routine. パス管理処理ルーチンの一例を示すフローチャート。7 is a flowchart illustrating an example of a path management processing routine. JPEG処理ルーチンの一例を示すフローチャート。The flowchart which shows an example of a JPEG processing routine. リサイズ処理ルーチンの一例を示すフローチャート。The flowchart which shows an example of a resizing process routine. 画質補正処理ルーチンの一例を示すフローチャート。7 is a flowchart illustrating an example of an image quality correction processing routine. レイアウト合成画像データを生成するときのタイムチャート。A time chart when generating layout composite image data.

符号の説明Explanation of symbols

10 フォトプリンタ、12 プリンタ本体、14 前面扉、16 メモリカードスロット、18 リーダライタ、20 操作パネル、22、ディスプレイ 24 ボタン群、24a 電源ボタン、24b メニューボタン、24c キャンセルボタン、24d 印刷ボタン、24e 保存ボタン、24f〜i 矢印ボタン、24j OKボタン、30 カバー、32 窓、50 印刷機構、52 インクカートリッジ、54 印刷ヘッド、56 キャリッジ、58 給紙口、59 用紙ガイド、70 コントローラ、71 CPU、72 ROM、73 RAM、74 バス、80 ハードウェア装置群、81 JPEG処理装置、82 リサイズ装置、83 画質補正装置、84 ハードウェアコピー装置、710 描画オブジェクト生成処理部、711 レイアウト合成処理部、712 印刷データ生成処理部、713 パス管理処理部、714 JPEG処理部、715 リサイズ処理部、716 画質補正処理部、717 共有メモリ管理処理部。 10 Photo Printer, 12 Printer Body, 14 Front Door, 16 Memory Card Slot, 18 Reader / Writer, 20 Operation Panel, 22, Display 24 Button Group, 24a Power Button, 24b Menu Button, 24c Cancel Button, 24d Print Button, 24e Save Button, 24f to i arrow button, 24j OK button, 30 cover, 32 window, 50 printing mechanism, 52 ink cartridge, 54 print head, 56 carriage, 58 paper feed port, 59 paper guide, 70 controller, 71 CPU, 72 ROM 73 RAM, 74 bus, 80 hardware device group, 81 JPEG processing device, 82 resizing device, 83 image quality correction device, 84 hardware copy device, 710 drawing object generation processing unit, 711 layer Outcome processing unit, 712 print data generation processing unit, 713 path management processing unit, 714 JPEG processing unit, 715 resize processing unit, 716 image quality correction processing unit, 717 shared memory management processing unit.

Claims (7)

印刷指令に基づいて所定形式の圧縮画像データから展開画像データを生成する展開画像生成手段と、
前記展開画像データを所定の画像配置領域にレイアウトしてレイアウト合成画像データを生成するレイアウト合成手段と、
前記レイアウト合成画像データに基づいて印刷データを生成する印刷データ生成手段と、
を備え、
前記展開画像生成手段は、前記圧縮画像データから前記展開画像データを生成するにあたり、前記圧縮画像データを分割して順次解凍して解凍データを出力する解凍装置と、画像サイズを変更してリサイズデータを出力するリサイズ装置と、画質を補正して画質補正データを出力する画質補正装置を用いて、前記解凍装置における処理と前記リサイズ装置における処理と前記画質補正装置における処理とを所定の順序で直列的に実行させると共に各装置につき他の装置が処理している間も並列的に処理を実行させることにより、前記展開画像データを生成する、
印刷処理装置。
Expanded image generation means for generating expanded image data from compressed image data in a predetermined format based on a print command;
Layout composition means for laying out the developed image data in a predetermined image arrangement area and generating layout composite image data;
Print data generation means for generating print data based on the layout composite image data;
With
The decompressed image generating means generates a decompressed image data from the compressed image data, a decompression device that divides the compressed image data and sequentially decompresses and outputs decompressed data; The processing in the decompression device, the processing in the resizing device, and the processing in the image quality correction device are serially arranged in a predetermined order. Generating the developed image data by executing the processing in parallel and executing the processing in parallel while other devices are processing for each device.
Print processing device.
前記展開画像生成手段は、前記印刷指令に含まれるリサイズの指示が縮小の場合には、前記所定の順序を前記解凍装置における処理、前記リサイズ装置における処理、前記画質補正装置における処理という順序に設定し、前記印刷指令に含まれるリサイズの指示が拡大の場合には、前記所定の順序を前記解凍装置における処理、前記画質補正装置における処理、前記リサイズ装置における処理という順序に設定する、
請求項1に記載の印刷処理装置。
When the resize instruction included in the print command is reduction, the developed image generation unit sets the predetermined order in the order of processing in the decompression device, processing in the resizing device, and processing in the image quality correction device. When the resizing instruction included in the print command is enlargement, the predetermined order is set in the order of processing in the decompression device, processing in the image quality correction device, processing in the resizing device,
The print processing apparatus according to claim 1.
前記展開画像生成手段は、前記印刷指令に含まれる画質補正の指示が画質補正不要のときには、前記所定の順序を前記解凍装置における処理、前記リサイズ装置における処理という順序に設定する、
請求項1又は2に記載の印刷処理装置。
The developed image generation means sets the predetermined order to processing in the decompression device and processing in the resizing device when an image quality correction instruction included in the print command does not require image quality correction.
The print processing apparatus according to claim 1.
前記展開画像生成手段は、前記印刷データ生成手段が印刷準備を完了する前に先行して前記圧縮画像データから前記展開画像データを生成し始める、
請求項1〜3のいずれかに記載の印刷処理装置。
The expanded image generating means starts generating the expanded image data from the compressed image data before the print data generating means completes the print preparation.
The print processing apparatus according to claim 1.
前記展開画像生成手段は、前記解凍装置、前記リサイズ装置及び前記画質補正装置のいずれか2つの装置間でデータの受け渡しを行うにあたり、データを渡す側の装置は自身が生成したデータを共有メモリの所定領域に格納し、データの受け側の装置は該所定領域の先頭アドレスを示すポインタ及び該所定領域に格納されたデータの長さの通知を受ける、
請求項1〜4のいずれかに記載の印刷処理装置。
When the expanded image generation means transfers data between any two of the decompression device, the resizing device, and the image quality correction device, the device on the side of passing data transmits the data generated by itself to the shared memory. The data receiving device stores the data in a predetermined area, and receives a notification of the pointer indicating the head address of the predetermined area and the length of the data stored in the predetermined area.
The print processing apparatus according to claim 1.
コンピュータ・ソフトウェアによる印刷処理方法であって、
(a)印刷指令に基づいて所定形式の圧縮画像データから展開画像データを生成するにあたり、前記圧縮画像データを分割して順次解凍して解凍データを出力する解凍装置と、画像サイズを変更してリサイズデータを出力するリサイズ装置と、画質を補正して画質補正データを出力する画質補正装置を用いて、前記解凍装置における処理と前記リサイズ装置における処理と前記画質補正装置における処理とを所定の順序で直列的に実行させると共に、各装置につき他の装置が処理している間も並列的に処理を実行させることにより前記展開画像データを生成するステップと、
(b)前記展開画像データを所定の画像配置領域にレイアウトしてレイアウト合成画像データを生成するステップと、
(c)前記レイアウト合成画像データに基づいて印刷データを生成するステップと、
を含む印刷処理方法。
A printing method using computer software,
(A) In generating decompressed image data from compressed image data in a predetermined format based on a print command, a decompression device that divides the compressed image data, sequentially decompresses and outputs decompressed data, and changes the image size Using a resizing device that outputs resizing data and an image quality correcting device that corrects image quality and outputs image quality correction data, the processing in the decompressing device, the processing in the resizing device, and the processing in the image quality correcting device are performed in a predetermined order. And generating the developed image data by causing the processing to be executed in parallel while other devices are processing for each device,
(B) laying out the developed image data in a predetermined image arrangement area to generate layout composite image data;
(C) generating print data based on the layout composite image data;
A printing processing method including:
請求項6に記載の印刷処理方法の各ステップを1又は複数のコンピュータに実行させるためのプログラム。   A program for causing one or more computers to execute each step of the print processing method according to claim 6.
JP2007057229A 2007-03-07 2007-03-07 Printing processor, printing processing method, and its program Withdrawn JP2008213406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007057229A JP2008213406A (en) 2007-03-07 2007-03-07 Printing processor, printing processing method, and its program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007057229A JP2008213406A (en) 2007-03-07 2007-03-07 Printing processor, printing processing method, and its program

Publications (1)

Publication Number Publication Date
JP2008213406A true JP2008213406A (en) 2008-09-18

Family

ID=39834016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007057229A Withdrawn JP2008213406A (en) 2007-03-07 2007-03-07 Printing processor, printing processing method, and its program

Country Status (1)

Country Link
JP (1) JP2008213406A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020135611A (en) * 2019-02-22 2020-08-31 ブラザー工業株式会社 Printer
US11720768B2 (en) 2021-03-04 2023-08-08 Brother Kogyo Kabushiki Kaisha Computer-readable medium, image processing device, and method for reducing time taken from input of print instruction until start of printing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020135611A (en) * 2019-02-22 2020-08-31 ブラザー工業株式会社 Printer
JP7238457B2 (en) 2019-02-22 2023-03-14 ブラザー工業株式会社 printer
US11720768B2 (en) 2021-03-04 2023-08-08 Brother Kogyo Kabushiki Kaisha Computer-readable medium, image processing device, and method for reducing time taken from input of print instruction until start of printing

Similar Documents

Publication Publication Date Title
US8861022B2 (en) Image processing apparatus with preview display function, image processing method, and image processing program
JP4476203B2 (en) Image processing apparatus, program, and image processing method
JP5353933B2 (en) Information processing program, information processing apparatus, and information processing method
JP2008036856A (en) Printer and method for printing
US8400667B2 (en) Image forming apparatus and image information saving method
JP2012174183A (en) Printer driver program, print control unit, and method for controlling print control unit
US8891129B2 (en) Image forming apparatus having real-size preview function, method of controlling the same, and storage medium
JP4509016B2 (en) Image processing apparatus, image processing method, image forming apparatus, program, and recording medium
JP2008269325A (en) Printer and print system
JP2007235384A (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP2008213406A (en) Printing processor, printing processing method, and its program
JP4124078B2 (en) Image processing apparatus and image processing method
JP2004363795A (en) Apparatus, method, and program for image processing
JP2014017636A (en) Image reader and program
JP2010118826A (en) Image processing apparatus, program, and image processing method
JP2008227967A (en) Image processing device and method thereof
CN109542365B (en) Apparatus including printing function, control method thereof, and storage medium
JP5299253B2 (en) Image processing apparatus and image processing method
JP4821576B2 (en) Information processing apparatus and information processing method
JP2006150835A (en) Image forming apparatus, method of processing job, and job processing program
KR20220161830A (en) Scanning technique adjustable per page
JP2022026215A (en) Image forming apparatus and method for controlling the same, and program
JP2006295301A (en) Image forming apparatus
JP4952153B2 (en) Printing apparatus and printing method
JP2010155369A (en) Image forming device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090910

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20111130