JP2012203744A - Information processing program, information processor and information processing method - Google Patents

Information processing program, information processor and information processing method Download PDF

Info

Publication number
JP2012203744A
JP2012203744A JP2011069002A JP2011069002A JP2012203744A JP 2012203744 A JP2012203744 A JP 2012203744A JP 2011069002 A JP2011069002 A JP 2011069002A JP 2011069002 A JP2011069002 A JP 2011069002A JP 2012203744 A JP2012203744 A JP 2012203744A
Authority
JP
Japan
Prior art keywords
thread
data
unit
display
file
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.)
Granted
Application number
JP2011069002A
Other languages
Japanese (ja)
Other versions
JP5472177B2 (en
Inventor
Norihiko Asai
紀彦 浅井
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2011069002A priority Critical patent/JP5472177B2/en
Publication of JP2012203744A publication Critical patent/JP2012203744A/en
Application granted granted Critical
Publication of JP5472177B2 publication Critical patent/JP5472177B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processing program, an information processor and an information processing method capable of quickly displaying a preview image while suppressing a period during which an input operation becomes difficult.SOLUTION: Since a preview file corresponding to a processing object file is generated in a sub thread, the number of preview files generated in a main thread is suppressed. Thus, since a data amount processed in the main thread is suppressed, prolonging of data processing and delay of processing related to input are suppressed. Thus, in the view from a user, the period during which the input operation becomes difficult is suppressed. Also, in the sub thread, when the preview file corresponding to the leading page of the first processing object file is prepared, since the preview image corresponding to the leading page is displayed at an LCD 18 even when the generation of the other preview files remains, the preview image is quickly displayed.

Description

本発明は、情報処理プログラム、情報処理装置および情報処理方法に関する。   The present invention relates to an information processing program, an information processing apparatus, and an information processing method.

従来より、ユーザからの入力を受け付ける入力受付画面を表示装置に表示させ、その入力受付画面においてユーザによりデータファイルが指示された場合に、そのデータファイルのプレビュー画像を生成して表示装置に表示させるプログラムが知られている。プログラムの実行開始が、ユーザにより指示されると、そのプログラムがコンピュータ上で実行されるように、オペレーティングシステム(以下、「OS」と称す)において各種制御が行われる。例えば、OSによって、プログラムに対応するスレッドが起動され、そのスレッドにおいてプログラムの処理が実行開始されるよう制御される。   Conventionally, an input reception screen for receiving input from a user is displayed on a display device, and when a data file is designated by the user on the input reception screen, a preview image of the data file is generated and displayed on the display device. The program is known. When the start of program execution is instructed by the user, various controls are performed in an operating system (hereinafter referred to as “OS”) so that the program is executed on the computer. For example, a thread corresponding to a program is activated by the OS, and control is performed so that processing of the program is started in that thread.

特許第4298362号公報Japanese Patent No. 4298362

上記のようなプレビュー画像を表示させるプログラムは、入力の検出処理や、プレビュー画像の生成処理や、プレビュー画像の表示処理など、複数の処理により構成されており、各処理は、OSにより起動されたスレッドにおいて、一つずつ順番に実行されていく。そのため、ユーザにより指示されたデータファイルの数が多かったり、一ファイル辺りのサイズが大きいと、プレビュー画像の生成処理などのデータ処理に時間がかかり、その後に実行される予定の各処理の実行開始がそれぞれ遅延してしまう。仮に、入力の検出処理が遅延すると、ユーザが入力操作を行っても、その入力に対応する処理が実行されるまで暫く時間がかかるなど、ユーザから見て、入力操作が困難となる期間が長引くおそれがあった。また、データ処理に時間がかかると、プレビュー画像が表示されるまでに時間がかかるおそれがあった。   The program for displaying a preview image as described above is composed of a plurality of processes such as an input detection process, a preview image generation process, and a preview image display process. Each process is started by the OS. In a thread, they are executed one by one in order. Therefore, if the number of data files instructed by the user is large or the size of one file is large, it takes time for data processing such as preview image generation processing, and the execution of each processing scheduled to be executed thereafter is started. Will be delayed. If the input detection process is delayed, even if the user performs an input operation, it takes a long time until the process corresponding to the input is executed. For example, the period during which the input operation is difficult for the user is prolonged. There was a fear. Further, if the data processing takes time, it may take time until the preview image is displayed.

本発明は、上記の問題点を解決するためになされたものであり、入力操作が困難となる期間を抑制しつつ、プレビュー画像を早く表示させることができる情報処理プログラム、情報処理装置および情報処理方法を提供することを目的とする。   The present invention has been made to solve the above-described problems, and an information processing program, an information processing apparatus, and an information processing capable of quickly displaying a preview image while suppressing a period during which an input operation is difficult. It aims to provide a method.

この目的を達成するために、本発明の情報処理プログラムは、情報処理装置が備えるコンピュータにおいて実行されるものであって、前記コンピュータを、一のアプリケーションにより実行される処理の実行単位であるスレッドであって、その一のアプリケーションの実行開始に応じてオペレーティングシステムにより起動され、且つ、入力部および表示部に関する制御が許可されている第1スレッドにおいて、複数の出力画像に対応するデータが含まれる処理対象データを受付部に受け付けさせる受付制御手段と、その受付制御手段により処理対象データが受け付けられる場合に、前記第1スレッドから前記オペレーティングシステムに対して要求させ、その第1スレッドとは別に並行して処理が実行される前記スレッドであり、且つ、前記入力部および表示部に関する制御が制限されている第2スレッドを起動部に起動させる第2スレッド起動手段と、その第2スレッド起動手段により起動される第2スレッドにおいて、前記処理対象データのうち、2以上の出力画像に対応するデータについて、その出力画像を表示させるための表示データを生成部に生成させる第2スレッドデータ生成手段と、その第2スレッドデータ生成手段によって、所定数の出力画像を表示させるための表示データが生成された場合に、前記第2スレッドから前記第1スレッドに対して表示データの生成終了を通知部に通知させる通知制御手段と、その通知制御手段による通知が前記第1スレッドへ通知された場合に、その第1スレッドにおいて、前記第2スレッドデータ生成手段により生成された表示データを用いて出力画像を表示部に表示させる表示制御手段と、して機能させる。   In order to achieve this object, an information processing program of the present invention is executed by a computer included in an information processing apparatus, and the computer is executed by a thread that is an execution unit of processing executed by one application. A process in which data corresponding to a plurality of output images is included in the first thread that is activated by the operating system in response to the start of execution of the one application and that is permitted to control the input unit and the display unit. A reception control unit that causes the reception unit to receive the target data, and when the processing target data is received by the reception control unit, the first thread makes a request to the operating system, and in parallel with the first thread. The thread on which the process is executed and before Among the processing target data, in a second thread activation unit that causes the activation unit to activate a second thread in which control relating to the input unit and the display unit is restricted, and a second thread activated by the second thread activation unit, With respect to data corresponding to two or more output images, a second thread data generation unit that causes the generation unit to generate display data for displaying the output images, and a predetermined number of output images are generated by the second thread data generation unit. When display data to be displayed is generated, notification control means for notifying the first thread from the second thread to the first thread that display data has been generated, and notification by the notification control means When notified to one thread, the table generated by the second thread data generation means in the first thread. Display control means for displaying the output image on the display unit by using the data, thereby to function.

なお、本発明は、情報処理装置を制御する制御装置、情報処理システム、情報処理装置、情報処理方法、情報処理プログラムを記録する記録媒体等の種々の態様で実現可能である。   The present invention can be realized in various modes such as a control device that controls an information processing device, an information processing system, an information processing device, an information processing method, and a recording medium that records an information processing program.

請求項1記載の情報処理プログラムによれば、第1スレッドとは別に並行して処理が実行される第2スレッドにおいて、処理対象データのうち、2以上の出力画像に対応するデータについて、その出力画像を表示させるための表示データを生成させることができる。よって、第1スレッドにおいて処理するデータ量を抑制できるので、第1スレッドにおいてデータ処理が長引き、入力に関する処理が遅延することを抑制できる。従って、ユーザから見て、入力操作が困難になる期間が長引くことを抑制できるという効果がある。また、所定数の出力画像を表示させるための表示データが第2スレッドにおいて生成された場合に、出力画像を表示部に表示させるので、出力画像を早く表示させることができるという効果がある。   According to the information processing program according to claim 1, in the second thread that executes processing in parallel with the first thread, the output of the data corresponding to two or more output images among the processing target data Display data for displaying an image can be generated. Therefore, since the amount of data processed in the first thread can be suppressed, it is possible to suppress the data processing from being prolonged in the first thread and delaying the processing related to input. Accordingly, there is an effect that it is possible to prevent the period during which the input operation is difficult from being viewed from the user from being prolonged. In addition, when display data for displaying a predetermined number of output images is generated in the second thread, the output image is displayed on the display unit, so that the output image can be displayed quickly.

請求項2記載の情報処理プログラムによれば、請求項1記載の情報処理プログラムの奏する効果に加え、処理対象データのうち、優先して処理すべきデータの表示データを、第2スレッドにおいて優先して生成させ、その表示データに対応する出力画像を早く表示部に表示させることができるという効果がある。   According to the information processing program of the second aspect, in addition to the effect of the information processing program of the first aspect, the display data of the data to be processed with priority among the processing target data is prioritized in the second thread. The output image corresponding to the display data can be quickly displayed on the display unit.

請求項3記載の情報処理プログラムによれば、請求項1または2記載の情報処理プログラムの奏する効果に加え、処理対象データのうち、総データ量が第1所定量以下である第1データについて、その出力画像を表示させるための表示データを、第1スレッドにおいて生成させることができる。よって、第1スレッドで処理するデータ量を、第1所定値以下に抑制できるので、第1スレッドにおいてデータ処理が長引き、入力に関する処理が遅延することを抑制できる。従って、ユーザから見て、入力操作が困難になる期間が長引くことを抑制しつつ、出力画像を表示部により早く表示させることができるという効果がある。また、第2スレッドにおいてデータ処理を行うためには、第1スレッドから第2スレッドを起動したり、処理すべきデータを指示するなどの時間が必要となる。そのため、第1スレッドから第2スレッドを起動させて、その第2スレッドで第1データに対応する表示データを生成させる場合と、第1スレッドでそのまま第1データに対応する表示データを生成させる場合とを比較すると、第1スレッドでそのままデータ処理を行った方が、第1データに対応する表示データを早く生成できる。従って、出力画像を表示部により早く表示させることができるという効果がある。   According to the information processing program according to claim 3, in addition to the effect produced by the information processing program according to claim 1 or 2, among the processing target data, the first data whose total data amount is equal to or less than the first predetermined amount, Display data for displaying the output image can be generated in the first thread. Accordingly, the amount of data processed by the first thread can be suppressed to be equal to or less than the first predetermined value, so that it is possible to prevent data processing from being prolonged in the first thread and processing related to input from being delayed. Therefore, there is an effect that the output image can be displayed earlier on the display unit while suppressing a period during which the input operation is difficult as viewed from the user from being prolonged. In addition, in order to perform data processing in the second thread, it takes time to start the second thread from the first thread or to instruct data to be processed. Therefore, when starting the second thread from the first thread and generating the display data corresponding to the first data in the second thread, and generating the display data corresponding to the first data as it is in the first thread , The display data corresponding to the first data can be generated earlier if the data processing is performed as it is in the first thread. Therefore, there is an effect that the output image can be displayed earlier on the display unit.

請求項4記載の情報処理プログラムによれば、請求項3記載の情報処理プログラムの奏する効果に加え、第1スレッドにおいて、第1データについての表示データの生成が完了した後に、第2スレッドを起動させることができる。第1スレッド、及び、第2スレッドがそれぞれ起動されている場合、第1スレッドと、第2スレッドとでそれぞれ並行して処理が実行されるため、第1スレッドに対して割り当てられる単位時間辺りの処理時間が短くなる。よって、第1スレッドでデータ処理を実行した後に、第2スレッドを起動することで、そのデータ処理が第1スレッドで行われる間に、第1スレッドに対して割り当てられる単位時間辺りの処理時間を増やせるので、第1スレッドにおいて、表示データをより早く生成させることができる。従って、出力画像を表示部により早く表示させることができるという効果がある。   According to the information processing program of claim 4, in addition to the effect of the information processing program of claim 3, the second thread is activated after generation of display data for the first data is completed in the first thread. Can be made. When the first thread and the second thread are activated, the processing is executed in parallel by the first thread and the second thread, respectively. Processing time is shortened. Therefore, by executing the data processing in the first thread and then starting the second thread, the processing time per unit time allocated to the first thread is reduced while the data processing is performed in the first thread. Since it can be increased, display data can be generated earlier in the first thread. Therefore, there is an effect that the output image can be displayed earlier on the display unit.

請求項5記載の情報処理プログラムによれば、請求項3または4記載の情報処理プログラムの奏する効果に加え、処理対象データに対応する複数の出力画像のうち、その出力画像を表示させるための表示データが記憶部に記憶されてなく、且つ、その出力画像に対応するデータの累積量が第1所定量を超えない範囲内の出力画像が特定される。そして、処理対象データのうち、その特定された出力画像に対応するデータについて、第1スレッドで表示データが生成される。処理対象データのうち、既に表示データがあるデータについては、第1データに含まないので、その分、未生成の表示データを第1スレッドにおいて多く生成できるという効果がある。   According to the information processing program according to claim 5, in addition to the effect produced by the information processing program according to claim 3 or 4, the display for displaying the output image among the plurality of output images corresponding to the processing target data An output image in which the data is not stored in the storage unit and the accumulated amount of data corresponding to the output image does not exceed the first predetermined amount is specified. Then, display data is generated by the first thread for data corresponding to the specified output image among the processing target data. Among the data to be processed, data that already has display data is not included in the first data, so that there is an effect that a large amount of ungenerated display data can be generated in the first thread.

請求項6記載の情報処理プログラムによれば、請求項3から5の何れかに記載の情報処理プログラムの奏する効果に加え、処理対象データから第1データを除いた残りのデータ量が第2所定量を超える場合に、第2スレッドでは、処理対象データから第1データを除いた残りのデータのうち、第2所定量以下までのデータである第2データについて、表示データの生成を開始させることができ、第3スレッドでは、処理対象データから第1データおよび第2データを除いた残りのデータについて、表示データの生成を開始させることができる。よって、多数の出力画像に対応するデータが処理対象データに含まれている場合などに、その多数の出力画像に対応する表示データを、各スレッドにおいて分散させ、且つ、並行して生成させることができる。従って、表示部に表示させる出力画像の変更がユーザなどにより指示された場合に、変更後の出力画像を素早く表示させることができる可能性を向上させられるという効果がある。   According to the information processing program of the sixth aspect, in addition to the effect produced by the information processing program according to any one of the third to fifth aspects, the remaining data amount obtained by removing the first data from the processing target data is the second place. When exceeding the fixed amount, the second thread starts generation of display data for the second data that is data up to a second predetermined amount or less from the remaining data obtained by removing the first data from the processing target data. In the third thread, generation of display data can be started for the remaining data obtained by removing the first data and the second data from the processing target data. Therefore, when data corresponding to a large number of output images is included in the processing target data, display data corresponding to the large number of output images can be distributed in each thread and generated in parallel. it can. Therefore, when the change of the output image displayed on the display unit is instructed by the user or the like, there is an effect that the possibility that the changed output image can be displayed quickly is improved.

請求項7記載の情報処理プログラムによれば、請求項1または2記載の情報処理プログラムの奏する効果に加え、処理対象データのうち、データ形式がインターレース形式またはプログレッシブ形式の画像データについて、その表示データが第1スレッドにおいて生成された場合に、その表示データに対応する出力画像が表示部に表示される。その後、その出力画像よりも高画質の出力画像を表示させるための表示データが第2スレッドにおいて生成された場合に、その表示データに対応する出力画像が表示部に表示される。よって、まず先に、出力画像全体の概要を素早く表示部に表示させ、その後、高画質の出力画像全体を表示部に表示させることができるという効果がある。   According to the information processing program of the seventh aspect, in addition to the effect produced by the information processing program according to the first or second aspect, the display data of the processing target data is image data having an interlace format or a progressive format. Is generated in the first thread, an output image corresponding to the display data is displayed on the display unit. Thereafter, when display data for displaying an output image with higher image quality than the output image is generated in the second thread, an output image corresponding to the display data is displayed on the display unit. Therefore, first, an overview of the entire output image can be quickly displayed on the display unit, and then the entire high-quality output image can be displayed on the display unit.

請求項8記載の情報処理プログラムによれば、請求項1から7の何れかに記載の情報処理プログラムの奏する効果に加え、何れかの出力画像を印刷させる印刷指示が入力された場合に、第2スレッドまたは第3スレッドが終了するので、コンピュータにかかる処理の負担を軽減できるという効果がある。   According to the information processing program of the eighth aspect, in addition to the effect produced by the information processing program according to any one of the first to seventh aspects, when a print instruction for printing any output image is input, Since the second thread or the third thread is terminated, there is an effect that the processing load on the computer can be reduced.

請求項9記載の情報処理装置によれば、請求項1記載の情報処理プログラムを実行する情報処理装置と同様の効果を奏する。   According to the information processing apparatus of the ninth aspect, the same effect as that of the information processing apparatus that executes the information processing program according to the first aspect is obtained.

請求項10記載の情報処理方法によれば、請求項1記載の情報処理プログラムを実行する情報処理装置と同様の効果を奏する。   According to the information processing method of the tenth aspect, the same effect as that of the information processing apparatus that executes the information processing program according to the first aspect is obtained.

本発明の情報処理プログラムの第1実施形態であるプレビュー表示アプリケーションを搭載した携帯端末の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of the portable terminal carrying the preview display application which is 1st Embodiment of the information processing program of this invention. 携帯端末において実行されるプレビュー表示処理を示すフローチャートである。It is a flowchart which shows the preview display process performed in a portable terminal. 携帯端末において実行されるプレビューファイル生成処理を示すフローチャートである。It is a flowchart which shows the preview file generation process performed in a portable terminal. 携帯端末において実行される表示切替処理を示すフローチャートである。It is a flowchart which shows the display switching process performed in a portable terminal. OSが本アプリに対して割り当てるメインスレッドと、サブスレッドとにおいて実行される処理の概略を示す模式図である。It is a schematic diagram which shows the outline of the process performed in the main thread and subthread which OS allocates with respect to this application. OSが本アプリに対して割り当てるメインスレッドと、サブスレッドとにおいて実行される処理の概略を示す模式図である。It is a schematic diagram which shows the outline of the process performed in the main thread and subthread which OS allocates with respect to this application. 第2実施形態の携帯端末において実行されるプレビュー表示処理を示すフローチャートである。It is a flowchart which shows the preview display process performed in the portable terminal of 2nd Embodiment. 第3実施形態の携帯端末において実行されるプレビュー表示処理を示すフローチャートである。It is a flowchart which shows the preview display process performed in the portable terminal of 3rd Embodiment.

以下、本発明の好ましい実施形態について、添付図面を参照して説明する。図1は、本発明の情報処理プログラムの第1実施形態であるプレビュー表示アプリケーション(以下、「本アプリ」と称す)14bが搭載された携帯端末10の電気的構成を示すブロック図である。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a block diagram showing an electrical configuration of a mobile terminal 10 on which a preview display application (hereinafter referred to as “this application”) 14b which is a first embodiment of the information processing program of the present invention is mounted.

携帯端末10は、図示しない無線基地局を介して、他の通話装置との間で音声通話を行う携帯電話機である。携帯端末10には、CPU11、ROM12、RAM13、フラッシュメモリ14、無線LAN送受信部15、操作キー16、タッチパネル17、液晶表示装置(以下、「LCD」と称す)18、メモリカードインターフェイス(以下、「メモリカードI/F」と称す)19、音声入出力部21、電話網通信部22が設けられる。これらは、バスライン23を介して互いに通信可能に接続されている。   The mobile terminal 10 is a mobile phone that performs a voice call with another call device via a radio base station (not shown). The mobile terminal 10 includes a CPU 11, a ROM 12, a RAM 13, a flash memory 14, a wireless LAN transmission / reception unit 15, operation keys 16, a touch panel 17, a liquid crystal display device (hereinafter referred to as “LCD”) 18, and a memory card interface (hereinafter referred to as “ 19), a voice input / output unit 21, and a telephone network communication unit 22 are provided. These are connected via a bus line 23 so that they can communicate with each other.

CPU11は、ROM12等に記憶される固定値やプログラムに従って、バスライン23と接続された各部を制御する。ROM12は、書換不能なメモリであって、各種の固定値を記憶する。RAM13は、書換可能な揮発性のメモリであり、処理対象リスト13aと、優先処理ページ設定メモリ13bとが設けられる。   The CPU 11 controls each unit connected to the bus line 23 according to a fixed value or program stored in the ROM 12 or the like. The ROM 12 is a non-rewritable memory and stores various fixed values. The RAM 13 is a rewritable volatile memory, and is provided with a processing target list 13a and a priority processing page setting memory 13b.

処理対象リスト13aは、プレビューファイルの生成対象となるファイルを示すリストであり、ユーザにより指定されたファイルのファイル名により構成される。ユーザにより複数のファイルが指定された場合には、例えば、指定された順や、ファイル名順に、ファイル名が並べられて記憶される。尚、ファイルとしては、1以上のページを含む文書ファイルや、一の画像または複数の画像を含む画像ファイルが指定されるものとする。また、説明の便宜上、画像ファイルに含まれる各画像は、文書ファイルのように、それぞれ1ページとして扱う。   The processing target list 13a is a list indicating files to be generated as preview files, and is configured by file names of files designated by the user. When a plurality of files are designated by the user, for example, the file names are arranged and stored in the designated order or the file name order. It is assumed that a document file including one or more pages and an image file including one image or a plurality of images are specified as the file. For convenience of explanation, each image included in the image file is treated as one page like a document file.

優先処理ページ設定メモリ13bは、優先してプレビューファイルを生成させたいファイル、及び、ページを指定するためのメモリである。優先処理ページ設定メモリ13bには、例えば、優先してプレビューファイルを生成させたいファイルのファイル名と、そのページ番号とが記憶される。   The priority processing page setting memory 13b is a memory for designating a file and a page for which a preview file is to be generated with priority. In the priority processing page setting memory 13b, for example, a file name of a file for which a preview file is to be generated with priority and a page number thereof are stored.

フラッシュメモリ14は、書換可能な不揮発性のメモリであり、オペレーティングシステム(以下、「OS」と称す)14aや、本アプリ14bが格納される。OS14aは、携帯端末10に搭載された基本ソフトウェアであって、本実施形態の場合、アンドロイド(登録商標)OSであるものとする。以降、アプリケーション(本アプリ14bを含む)やOS14aなどのプログラムを実行するCPU11のことを、単に、プログラム名で記載する場合もある。例えば、「アプリケーション」という記載が、「アプリケーションを実行するCPU11」を意味する場合もある。   The flash memory 14 is a rewritable nonvolatile memory, and stores an operating system (hereinafter referred to as “OS”) 14a and the application 14b. The OS 14a is basic software installed in the mobile terminal 10, and in the present embodiment, is assumed to be an Android (registered trademark) OS. Hereinafter, the CPU 11 that executes a program such as an application (including the application 14b) or the OS 14a may be simply described by a program name. For example, the description “application” may mean “CPU 11 that executes the application”.

携帯端末10に搭載された本アプリ14bは、ユーザによりファイルが指定された場合に、そのファイルのプレビュー画像を、1ページ分ずつ、又は、1画像分ずつ、LCD18に表示させるためのアプリケーションである。本アプリ14bは、多数のファイルや、サイズの大きいファイルがユーザにより指定された場合でも、ユーザから見て入力操作が困難となる期間が抑制されるように、且つ、プレビュー画像をLCD18に早く表示させることができるように構成されている。   The application 14b installed in the mobile terminal 10 is an application for displaying a preview image of the file on the LCD 18 for each page or for each image when a file is designated by the user. . The application 14b displays a preview image on the LCD 18 so that a period during which an input operation is difficult for the user is suppressed even when a large number of files or a large file is designated by the user. It is comprised so that it can be made to.

尚、携帯端末10にインストールされた各アプリケーション(本アプリ14bを含む)は、OS14aのApplication Program Interface(以下、「API」と称す)を呼び出して、無線LAN送受信部15、操作キー16、タッチパネル17、LCD18、メモリカードI/F19、音声入出力部21、電話網通信部22など、携帯端末10の各構成に受け渡したいデータをOS14aに出力する。即ち、各アプリケーションは、OS14aのAPIを呼び出すことによって、携帯端末10の各構成を制御する。また、各アプリケーションは、OS14aのAPIを呼び出して、携帯端末10の各構成が出力するデータや各構成の状態を示すデータをOS14aから取得する。即ち、OS14aのAPIを呼び出すことによって、携帯端末10の各構成の状態(携帯端末10への操作入力の状態も含む)を示すデータをOS14aから取得する。また、OS14aは、携帯端末10の各構成が出力するデータや各構成の状態を示すデータを、定期的に、あるいは各構成の状態変化の都度、各アプリケーションに通知することもある。即ち、各アプリケーションは、OS14aからの通知を受けることによって、携帯端末10の各構成の状態(携帯端末10への操作入力の状態も含む)を示すデータをOS14aから取得する。   Each application (including the application 14b) installed in the mobile terminal 10 calls an application program interface (hereinafter referred to as “API”) of the OS 14a, and the wireless LAN transmission / reception unit 15, operation keys 16, and touch panel 17 are called. , The LCD 18, the memory card I / F 19, the voice input / output unit 21, the telephone network communication unit 22, etc., data to be transferred to each component of the mobile terminal 10 is output to the OS 14 a. That is, each application controls each component of the mobile terminal 10 by calling an API of the OS 14a. Each application calls the API of the OS 14a to acquire data output from each component of the mobile terminal 10 and data indicating the state of each component from the OS 14a. That is, by calling the API of the OS 14a, data indicating the state of each component of the mobile terminal 10 (including the state of operation input to the mobile terminal 10) is acquired from the OS 14a. In addition, the OS 14a may notify each application of data output from each component of the mobile terminal 10 or data indicating the state of each component periodically or whenever the state of each component changes. That is, each application acquires data indicating the state of each component of the mobile terminal 10 (including the state of operation input to the mobile terminal 10) from the OS 14a by receiving a notification from the OS 14a.

OS14aは、一のアプリケーションにおける処理の実行単位であるスレッドを、一のアプリケーションに対して複数割り当てることが可能に構成されている。携帯端末10において、アプリケーション(本アプリ14bを含む)の実行がユーザ等により指定されると、OS14aは、そのアプリケーションに対応するメインスレッドを起動して、そのアプリケーションに割り当て、更に、そのアプリケーションの処理がメインスレッドにおいて実行されるように制御する。   The OS 14a is configured to be able to assign a plurality of threads, which are processing execution units in one application, to one application. When execution of an application (including the application 14b) is designated by the user or the like in the mobile terminal 10, the OS 14a activates a main thread corresponding to the application, assigns it to the application, and further processes the application Is executed in the main thread.

その後、メインスレッドにおいてアプリケーションの処理が実行されている場合に、そのアプリケーションからOS14aに対して、サブスレッドの起動が要求されると、OS14aは、その要求したアプリケーションに対応するサブスレッドを起動して、そのアプリケーションに割り当て、更に、そのアプリケーションの処理がサブスレッドにおいて実行されるように制御する。尚、メインスレッドは、一のプリケーションに対して一つしか起動されないが、サブスレッドは、一のアプリケーションからの要求に応じて複数起動される。また、メインスレッドでは、入出力および表示に関する処理を含む任意の処理を実行させることができるが、サブスレッドでは、入出力および表示に関する処理を含まない任意の処理しか実行させることができない。一のアプリケーションに対して、メインスレッドおよびサブスレッドが割り当てられた場合、その一のアプリケーションでは、各スレッドにおいて、それぞれ任意の処理を実行させて、各処理を並行して実行させることができる。   After that, when application processing is executed in the main thread, if the application requests the OS 14a to start a sub thread, the OS 14a starts the sub thread corresponding to the requested application. , Assigning to the application, and controlling the application process to be executed in the sub-thread. Note that only one main thread is activated for one application, but a plurality of sub threads are activated in response to a request from one application. The main thread can execute arbitrary processing including processing related to input / output and display, but the sub thread can execute only arbitrary processing not including processing related to input / output and display. When a main thread and a sub thread are assigned to one application, the one application can execute arbitrary processes in each thread and execute the processes in parallel.

本アプリ14bには、処理データ上限値14b1が設けられる。本実施形態では、サブスレッドにおいて、主に、プレビューファイルが生成されるが、メインスレッドにおいても、プレビューファイルが生成される場合がある。処理データ上限値14b1は、メインスレッドにおいてプレビューファイルを生成させる場合に、そのメインスレッドでの生成対象となるデータの上限値を示す。   The application 14b is provided with a processing data upper limit 14b1. In the present embodiment, a preview file is mainly generated in the sub thread, but a preview file may also be generated in the main thread. The processing data upper limit value 14b1 indicates an upper limit value of data to be generated in the main thread when the preview file is generated in the main thread.

無線LAN送受信部15は、IEEE802.11b/gの規格に準拠した無線LANにより、図示しないアクセスポイントを介して、携帯端末10と他の機器とをWi−Fi(登録商標)接続する回路である。操作キー16は、携帯端末10の筺体に設けられたハードキーであり、携帯端末10に設定情報や指示を入力する。タッチパネル17は、LCD18に重ねて設けられ、携帯端末10に設定情報や指示を入力する。LCD18は、携帯端末10にインストールされたアプリケーションを示すアイコンの一覧や、起動したアプリケーションの画面を表示する。   The wireless LAN transmission / reception unit 15 is a circuit that connects the mobile terminal 10 and other devices via Wi-Fi (registered trademark) via an access point (not shown) by a wireless LAN compliant with the IEEE 802.11b / g standard. . The operation key 16 is a hard key provided on the housing of the mobile terminal 10, and inputs setting information and instructions to the mobile terminal 10. The touch panel 17 is provided over the LCD 18 and inputs setting information and instructions to the mobile terminal 10. The LCD 18 displays a list of icons indicating applications installed in the mobile terminal 10 and a screen of the activated application.

メモリカードI/F19は、不揮発性のメモリカード20が装着されるインターフェイスであって、メモリカード20に対するデータの書き込み又は読み出しを制御する。メモリカード20は、一例として、SDカード(登録商標)である。メモリカード20には、処理対象ファイル格納エリア20aと、プレビューファイル格納エリア20bとが設けられる。処理対象ファイル格納エリア20aは、プレビューファイルの生成対象となる文書ファイルや、画像ファイルが格納されるエリアである。例えば、ユーザにより入力操作が行われると、その入力操作に応じたファイルが、OS14aにより格納される。プレビューファイル格納エリア20bは、本アプリ14bにより生成されたプレビューファイルが格納されるエリアである。音声入出力部21は、マイクやスピーカなどで構成された音声入出力用デバイスであり、電話網通信部22は、他の電話装置との間で電話通信を行うための回路である。   The memory card I / F 19 is an interface to which the nonvolatile memory card 20 is mounted, and controls writing or reading of data with respect to the memory card 20. The memory card 20 is an SD card (registered trademark) as an example. The memory card 20 is provided with a processing target file storage area 20a and a preview file storage area 20b. The processing target file storage area 20a is an area for storing a document file and an image file for which a preview file is generated. For example, when an input operation is performed by the user, a file corresponding to the input operation is stored by the OS 14a. The preview file storage area 20b is an area for storing a preview file generated by the application 14b. The voice input / output unit 21 is a voice input / output device including a microphone and a speaker, and the telephone network communication unit 22 is a circuit for performing telephone communication with other telephone devices.

図2は、携帯端末10において実行されるプレビュー表示処理を示すフローチャートである。この処理は、携帯端末10において、ユーザが本アプリ14bの実行開始を指示した場合に実行される処理であり、OS14aが本アプリ14bに対して割り当てたメインスレッドにおいて実行される処理である。   FIG. 2 is a flowchart showing a preview display process executed in the mobile terminal 10. This process is a process executed when the user gives an instruction to start execution of the application 14b in the mobile terminal 10, and is a process executed in the main thread assigned to the application 14b by the OS 14a.

尚、以下に説明する図2から図4、図7、及び、図8のフローチャートに示す各ステップは、本アプリ14bがCPU11に実行させ、または、本アプリ14bがOS14aなどの機能を利用してCPU11に実行させるものとして説明する。ただし、各フローチャートが含むステップは、OS14aやその他アプリケーションがCPU11に実行させるステップに一部置き換えられても良い。また、CPU11の関与によらず、携帯端末10に設けられたハードウェアそのものが作動することによって実現されるステップに、一部置き換えられても良い。   The steps shown in the flowcharts of FIGS. 2 to 4, 7, and 8 described below are executed by the application 11 b using the CPU 11, or the application 14 b uses functions such as the OS 14 a. The description will be made assuming that the CPU 11 is caused to execute. However, the steps included in each flowchart may be partially replaced with steps that the OS 11a and other applications cause the CPU 11 to execute. Moreover, a part realized by the operation of the hardware provided in the mobile terminal 10 regardless of the CPU 11 may be replaced.

CPU11は、まず、データ選択画面をLCD18に表示させる(S1)。例えば、データ選択画面では、処理対象ファイル格納エリア20aに格納されているファイルの一覧が表示される。そして、その表示されたファイルの一覧の中から、1以上のファイルが処理対象ファイルとしてユーザにより指定される。次に、CPU11は、処理対象ファイルとしてユーザにより指定された全ファイルのファイル名を、指定された順、又は、ファイル名の順に並べて、処理対象リスト13aとして記憶させる(S2)。以下、処理対象リスト13aに記憶されているファイル名に対応する各ファイルのことを、単に、処理対象リスト13aにより示される各処理対象ファイルと記載する。   First, the CPU 11 displays a data selection screen on the LCD 18 (S1). For example, on the data selection screen, a list of files stored in the processing target file storage area 20a is displayed. Then, one or more files are designated by the user as processing target files from the displayed list of files. Next, the CPU 11 arranges the file names of all the files specified by the user as processing target files in the specified order or in the order of file names, and stores them as the processing target list 13a (S2). Hereinafter, each file corresponding to the file name stored in the processing target list 13a is simply referred to as each processing target file indicated by the processing target list 13a.

次に、CPU11は、処理対象リスト13aにより示される各処理対象ファイルについて、ページ単位で、そのページに対応するプレビューファイルの有無を確認する(S3)。確認の結果、各処理対象ファイルについてのプレビューファイルが全て揃っておらず、プレビューファイルの生成が必要な場合(S4:Yes)、CPU11は、処理対象リスト13aを参照し、1番目の処理対象ファイルを特定する(S6)。具体的には、処理対象リスト13aに記憶されている1番目のファイル名に対応するファイルを、1番目の処理対象ファイルと特定する。   Next, the CPU 11 checks the presence or absence of a preview file corresponding to the page for each processing target file indicated by the processing target list 13a (S3). As a result of the confirmation, if not all the preview files for each processing target file are prepared and it is necessary to generate a preview file (S4: Yes), the CPU 11 refers to the processing target list 13a and the first processing target file Is specified (S6). Specifically, the file corresponding to the first file name stored in the processing target list 13a is identified as the first processing target file.

そして、CPU11は、1番目の処理対象ファイルの先頭ページに対応するプレビューファイルが有る場合(S7:Yes)、S12の処理へ移行する。一方、1番目の処理対象ファイルの先頭ページに対応するプレビューファイルが無い場合(S7:No)、その先頭ページのデータ量を算出する(S8)。そして、その算出されたデータ量が、処理データ上限値14b1を超えている場合(S9:Yes)、CPU11は、1番目の処理対象ファイルの先頭ページを、優先処理ページとして設定し(S13)、S14の処理へ移行する。S13の処理では、1番目の処理対象ファイルのファイル名と、先頭ページのページ番号(即ち、1)とを、優先処理ページ設定メモリ13bに記憶させる。   Then, when there is a preview file corresponding to the first page of the first processing target file (S7: Yes), the CPU 11 proceeds to the process of S12. On the other hand, when there is no preview file corresponding to the first page of the first processing target file (S7: No), the data amount of the first page is calculated (S8). If the calculated data amount exceeds the processing data upper limit 14b1 (S9: Yes), the CPU 11 sets the first page of the first processing target file as the priority processing page (S13), The process proceeds to S14. In the process of S13, the file name of the first process target file and the page number of the first page (that is, 1) are stored in the priority process page setting memory 13b.

一方、S8の処理で算出されたデータ量が、処理データ上限値14b1以下である場合(S9:No)、1番目の処理対象ファイルの先頭ページに対応するプレビューファイルを、このメインスレッドにおいて生成し(S10)、その生成されたファイルをプレビューファイル格納エリア20bに保存(記憶)させる(S11)。尚、S11の場合に限らず、生成されたプレビューファイルを保存させる場合には、例えば、処理対象ファイルのファイル名と、生成対象となったページのページ番号とを組み合わせたものを、プレビューファイルのファイル名として、ファイル名が他のプレビューファイルと重複しないようにする。   On the other hand, when the data amount calculated in the process of S8 is equal to or less than the process data upper limit value 14b1 (S9: No), a preview file corresponding to the first page of the first process target file is generated in this main thread. (S10) The generated file is saved (stored) in the preview file storage area 20b (S11). In addition, not only in the case of S11, when the generated preview file is stored, for example, a combination of the file name of the processing target file and the page number of the page to be generated is combined with the preview file. Make sure the file name does not overlap with other preview files.

次に、CPU11は、S11の処理で生成されたプレビューファイルを用いて、1番目の処理対象ファイルのプレビュー画像を、LCD18に表示させ(S12)、これから起動するサブスレッドにおいて、プレビューファイル生成処理が実行開始されるように設定を行う(S14)。そして、このメインスレッドからOS14aに対して、サブスレッドの起動を要求する(S15)。   Next, the CPU 11 displays a preview image of the first processing target file on the LCD 18 using the preview file generated in the processing of S11 (S12), and the preview file generation processing is performed in the sub-thread to be started from now on. Settings are made so that execution is started (S14). Then, the main thread requests the OS 14a to start a sub thread (S15).

S4において、処理対象リスト13aにより示される各処理対象ファイルについてのプレビューファイルが全て揃っており、プレビューファイルの生成が不要な場合(S4:No)、CPU11は、1番目の処理対象ファイルの先頭ページについて、そのプレビュー画像をLCD18に表示させる(S5)。この場合、1番目の処理対象ファイルに対応するプレビューファイルは、既に、プレビューファイル格納エリア20bに記憶されているので、そこから該当するファイルを取得して、そのプレビュー画像をLCD18に表示させる。次に、このメインスレッドにおいて、表示切替処理を実行させ(S16)、本処理を終了させる。   In S4, when all the preview files for each processing target file indicated by the processing target list 13a are prepared and it is not necessary to generate a preview file (S4: No), the CPU 11 starts the first page of the first processing target file. The preview image is displayed on the LCD 18 (S5). In this case, since the preview file corresponding to the first processing target file is already stored in the preview file storage area 20b, the corresponding file is acquired from the preview file and the preview image is displayed on the LCD 18. Next, in this main thread, display switching processing is executed (S16), and this processing is terminated.

図3は、携帯端末10において実行されるプレビューファイル生成処理を示すフローチャートである。この処理は、上述したS15の処理により起動されるサブスレッドにおいて実行される処理である。この処理は、処理対象リスト13aにより示される各処理対象ファイルについて、ページ単位で、そのページに対応するプレビューファイルを生成するための処理である。   FIG. 3 is a flowchart showing preview file generation processing executed in the mobile terminal 10. This process is a process executed in the sub thread activated by the process of S15 described above. This process is a process for generating a preview file corresponding to each page of each processing target file indicated by the processing target list 13a.

CPU11は、まず、優先処理ページが設定されていない場合(S21:No)、S28の処理へ移行する。一方、優先処理ページが設定されている場合(S21:Yes)、その処理優先ページについて、プレビューファイルを生成する(S22)。具体的には、優先処理ページ設定メモリ13bに記憶されているファイル名と、ページ番号とを取得する。そして、取得したファイル名に対応するファイルであり、そのファイル中の取得したページ番号のページについて、プレビューファイルを生成する。そして、CPU11は、生成されたプレビューファイルを、プレビューファイル格納エリア20bに保存させ(S23)、優先処理ページに対応するプレビューファイルの準備完了を、このサブスレッドからメインスレッドに対して、スレッド間通信により通知させる(S24)。   First, when the priority process page is not set (S21: No), the CPU 11 proceeds to the process of S28. On the other hand, when a priority processing page is set (S21: Yes), a preview file is generated for the processing priority page (S22). Specifically, the file name and page number stored in the priority processing page setting memory 13b are acquired. A preview file is generated for the page having the acquired page number in the file corresponding to the acquired file name. Then, the CPU 11 saves the generated preview file in the preview file storage area 20b (S23), and completes the preparation of the preview file corresponding to the priority processing page from this sub-thread to the main thread. (S24).

次に、CPU11は、優先処理ページの設定の対象となった処理対象ファイルのうち、優先処理ページとして設定されたページを除く、残りの全ページについて、プレビューファイルが揃っていない場合(S25:No)、その残りの全ページのうち、プレビューファイルが無いページについて、ページ単位で、プレビューファイルを生成する(S26)。そして、CPU11は、生成された各プレビューファイルを、プレビューファイル格納エリア20bに保存させる(S27)。   Next, the CPU 11 does not have preview files for all the remaining pages except the page set as the priority processing page among the processing target files that are the target of the priority processing page setting (S25: No). ) Of all the remaining pages, a preview file is generated for each page for pages that do not have a preview file (S26). Then, the CPU 11 saves each generated preview file in the preview file storage area 20b (S27).

また、処理対象ファイルのうち、優先処理ページとして設定されたページを除く、残りの全ページについて、プレビューファイルが揃っている場合(S25:Yes)、CPU11は、S28の処理へ移行する。そして、CPU11は、処理対象リスト13aにより示される各処理対象ファイルについてのプレビューファイルが全て有る場合(S28:No)、このサブスレッドからOS14aに対して、このサブスレッドの終了を要求し(S32)、本処理を終了する。   Further, when preview files are prepared for all the remaining pages except the page set as the priority processing page in the processing target file (S25: Yes), the CPU 11 proceeds to the process of S28. When all the preview files for each processing target file indicated by the processing target list 13a are present (S28: No), the CPU 11 requests the OS 14a to end the sub thread from the sub thread (S32). This process is terminated.

一方、各処理対象ファイルについてのプレビューファイルが全て揃っていない場合(S28:Yes)、処理対象リスト13aにより示される各処理対象ファイルの中から、プレビューファイルの準備が未完了のものを一つ特定し(S29)、その特定された一の処理対象ファイルに含まれるページのうち、プレビューファイルが無い全ページについて、ページ単位で、そのプレビューファイルを生成する(S30)。そして、CPU11は、生成された各プレビューファイルを、プレビューファイル格納エリア20bに保存させ(S31)、S21の処理に戻る。   On the other hand, when all the preview files for each processing target file are not available (S28: Yes), one of the processing target files indicated by the processing target list 13a that has not been prepared for the preview file is specified. Then, for all pages that do not have a preview file among the pages included in the specified one processing target file, the preview file is generated for each page (S30). Then, the CPU 11 stores each generated preview file in the preview file storage area 20b (S31), and returns to the process of S21.

図4は、携帯端末10において実行される表示切替処理を示すフローチャートである。この処理は、メインスレッドにおいて実行される処理である。この処理は、LCD18に表示させるプレビュー画像を、ユーザの指示に応じて切り替えるための処理である。   FIG. 4 is a flowchart showing display switching processing executed in the mobile terminal 10. This process is a process executed in the main thread. This process is a process for switching the preview image to be displayed on the LCD 18 in accordance with a user instruction.

CPU11は、サブスレッドからメインスレッド対して、スレッド間通信により、優先処理ページに対応するプレビューファイルの準備完了が通知された場合(S41:Yes)、その優先処理ページについて、そのプレビュー画像をLCD18に表示させる(S42)。具体的には、優先処理ページ設定メモリ13bに記憶されているファイル名と、ページ番号とに対応するプレビューファイルを、プレビューファイル格納エリア20bから取得し、そのプレビュー画像をLCD18に表示させる。次に、CPU11は、優先処理ページ設定メモリ13bをクリアして、優先処理ページの設定を解除する(S43)。また、S41において、優先処理ページに対応するプレビューファイルの準備完了が通知されていない場合(S41:No)、CPU11は、S44の処理へ移行する。   When the CPU 11 is notified of the completion of the preparation of the preview file corresponding to the priority processing page by inter-thread communication from the sub thread to the main thread (S41: Yes), the preview image of the priority processing page is displayed on the LCD 18. It is displayed (S42). Specifically, a preview file corresponding to the file name and page number stored in the priority processing page setting memory 13b is acquired from the preview file storage area 20b, and the preview image is displayed on the LCD 18. Next, the CPU 11 clears the priority processing page setting memory 13b and cancels the setting of the priority processing page (S43). If the completion of preparation of the preview file corresponding to the priority process page is not notified in S41 (S41: No), the CPU 11 proceeds to the process of S44.

次に、CPU11は、LCD18にプレビュー画像を表示させるファイル及びページがユーザにより指示され(S44:Yes)、且つ、その指示されたファイル及びページに対応するプレビューファイルがプレビューファイル格納エリア20bにある場合(S45:Yes)、S48の処理へ移行する。尚、ユーザがページを指示せず、ファイルのみ指示した場合には、ユーザにより、指示したファイルの先頭ページが指示されたものとみなす。   Next, the CPU 11 instructs the user to specify a file and page for displaying a preview image on the LCD 18 (S44: Yes), and a preview file corresponding to the specified file and page is in the preview file storage area 20b. (S45: Yes), the process proceeds to S48. If the user does not designate a page but designates only a file, it is assumed that the user designates the first page of the designated file.

一方、LCD18にプレビュー画像を表示させるファイル及びページがユーザにより指示されていない場合(S44:No)、S50の処理へ移行する。そして、CPU11は、LCD18にプレビュー画像を表示させるファイル及びページがユーザにより指示され(S44:Yes)、且つ、その指示されたファイル及びページに対応するプレビューファイルが無く(S45:No)、更に、その指示されたファイル及びページに対応するプレビューファイルが、今現在、このサブスレッドにおいて生成中である場合(S46:Yes)、S47の処理へ移行する。   On the other hand, when the file and page for displaying the preview image on the LCD 18 are not instructed by the user (S44: No), the process proceeds to S50. The CPU 11 instructs the user to specify a file and page for displaying a preview image on the LCD 18 (S44: Yes), and there is no preview file corresponding to the specified file and page (S45: No). If a preview file corresponding to the instructed file and page is currently being generated in this sub thread (S46: Yes), the process proceeds to S47.

そして、S47の処理では、CPU11は、サブスレッドにおいて、今現在、生成中であるプレビューファイルが生成されるまで(S47:No)待機し、その生成中であったプレビューファイルの生成が完了した場合に(S47:Yes)、その生成が完了したプレビューファイルを用いて、ユーザにより指示されたファイル及びページに対応するプレビュー画像を、LCD18に表示させ(S48)、S50の処理へ移行する。   In the process of S47, the CPU 11 waits until the preview file currently being generated is generated in the sub thread (S47: No), and the generation of the preview file being generated is completed. (S47: Yes), the preview image corresponding to the file and page instructed by the user is displayed on the LCD 18 using the preview file whose generation has been completed (S48), and the process proceeds to S50.

また、CPU11は、LCD18にプレビュー画像を表示させるファイル及びページがユーザにより指示され(S44:Yes)、且つ、その指示されたファイル及びページに対応するプレビューファイルが無く(S45:No)、更に、その指示されたファイル及びページに対応するプレビューファイルが、今現在、このサブスレッドにおいて生成中でない場合(S46:No)、ユーザにより指示されたファイルの中の指示されたページを、優先処理ページとして設定する(S49)。   Further, the CPU 11 instructs the user to specify a file and page for displaying a preview image on the LCD 18 (S44: Yes), and there is no preview file corresponding to the specified file and page (S45: No). If the preview file corresponding to the designated file and page is not currently generated in this sub thread (S46: No), the designated page in the file designated by the user is set as the priority processing page. Set (S49).

次に、CPU11は、LCD18に表示させているプレビュー画像の印刷がユーザにより指示された場合に(S50:Yes)、このメインスレッドからOS14aに対して、サブスレッドの終了を要求し(S51)、S52の処理へ移行する。プレビュー画像の印刷がユーザにより指示される場合とは、所望するプレビュー画像をユーザが見つけた場合なので、これ以降、プレビュー表示が継続される可能性は低くなる。仮に、プレビュー表示が継続されない場合にも関わらず、サブスレッドにおいて、プレビューファイルの生成を継続させると、必要性の低い処理を実行させることになる。また、OS14aによるサブスレッドの管理や制御などの処理も無駄になってしまう。つまり、携帯端末10におけるCPU11やRAM13などのリソースを無駄に占有してしまう。そこで、本実施形態では、S15の処理により起動させたサブスレッドを終了させている。これにより、携帯端末10におけるCPU11やRAM13などのリソースが、無駄に占有されることを抑制できるので、携帯端末10にかかる処理の負担を軽減できる。また、入力に関する処理が遅延することを抑制でき、ユーザから見て、入力操作が困難となる期間を抑制できる。   Next, when the user gives an instruction to print the preview image displayed on the LCD 18 (S50: Yes), the main thread requests the OS 14a to end the sub thread (S51). The process proceeds to S52. The case where the user instructs to print the preview image is that the user has found a desired preview image, and hence the possibility that the preview display will continue thereafter is low. Even if the preview display is not continued, if the generation of the preview file is continued in the sub thread, a process with low necessity is executed. Also, processing such as sub-thread management and control by the OS 14a is wasted. That is, resources such as the CPU 11 and the RAM 13 in the mobile terminal 10 are occupied wastefully. Therefore, in the present embodiment, the sub thread activated by the process of S15 is terminated. Thereby, since resources such as the CPU 11 and the RAM 13 in the mobile terminal 10 can be prevented from being occupied unnecessarily, the processing load on the mobile terminal 10 can be reduced. Moreover, it can suppress that the process regarding input delays, and can suppress the period when input operation becomes difficult seeing from a user.

一方、LCD18に表示させているプレビュー画像の印刷がユーザにより指示されていない場合(S50:No)、CPU11は、S52の処理へ移行する。次に、CPU11は、プレビュー画像の表示の終了が、ユーザにより指示された場合(S52:Yes)、本処理を終了し、プレビュー表示処理に戻る。一方、プレビュー画像の表示の終了が、ユーザにより指示されていない場合(S52:No)、S41の処理に戻る。   On the other hand, when printing of the preview image displayed on the LCD 18 is not instructed by the user (S50: No), the CPU 11 proceeds to the process of S52. Next, when the end of the display of the preview image is instructed by the user (S52: Yes), the CPU 11 ends the process and returns to the preview display process. On the other hand, when the end of displaying the preview image is not instructed by the user (S52: No), the process returns to S41.

図5および図6は、OS14aが本アプリ14bに対して割り当てるメインスレッドと、サブスレッドとにおいて実行される処理の概略を示す模式図である。まず、図5(a)を参照して、処理対象リスト13aにより示される各処理対象ファイルのうち、1番目の処理対象ファイルの先頭ページについてプレビューファイルが無く、且つ、その先頭ページを構成するデータ量が、処理データ上限値14b1以下である場合の概略について説明する。   FIG. 5 and FIG. 6 are schematic diagrams showing an outline of processing executed in the main thread and the sub thread assigned by the OS 14a to the application 14b. First, referring to FIG. 5A, there is no preview file for the first page of the first processing target file among the processing target files indicated by the processing target list 13a, and the data constituting the first page. An outline when the amount is equal to or less than the processing data upper limit 14b1 will be described.

図5(a)に示すように、携帯端末10において、本アプリ14bの実行開始がユーザにより指示されると、OS14aによって、本アプリ14bに対してメインスレッドが割り当てられ、そのメインスレッドにおいて、プレビュー表示処理の各ステップに対応する処理が順番に実行されていく。具体的には、まず、メインスレッドでは、処理対象ファイルが特定され、その処理対象ファイルのうち、1番目の処理対象ファイルの先頭ページについて、プレビューファイルの有無が確認される。   As shown in FIG. 5A, in the mobile terminal 10, when the user gives an instruction to start execution of the application 14b, the OS 14a assigns a main thread to the application 14b. Processing corresponding to each step of the display processing is executed in order. Specifically, first, a processing target file is specified in the main thread, and the presence or absence of a preview file is confirmed for the first page of the first processing target file among the processing target files.

ここで、プレビューファイルが無く、且つ、その先頭ページを構成するデータ量が、処理データ上限値14b1以下の場合、メインスレッドでは、1番目の処理対象ファイルの先頭ページについて、プレビューファイルが生成され、そのプレビューファイルが用いられて、その先頭ページのプレビュー画像がLCD18に表示される。その後、メインスレッドでは、サブスレッドの起動がOS14aに対して要求され、更に、表示切替処理が実行される。   Here, when there is no preview file and the amount of data constituting the first page is equal to or less than the processing data upper limit 14b1, a preview file is generated for the first page of the first processing target file in the main thread. Using the preview file, a preview image of the first page is displayed on the LCD 18. Thereafter, in the main thread, activation of the sub thread is requested to the OS 14a, and display switching processing is further executed.

このように、本実施形態では、1番目の処理対象ファイルの先頭ページについて、そのプレビューファイルをメインスレッドで生成させている。仮に、1番目の処理対象ファイルの先頭ページに対応するプレビューファイルを、サブスレッドにおいて生成させる場合には、サブスレッドを起動させる時間や、そのサブスレッドにおいて、1番目の処理対象ファイルの先頭ページが生成されるように制御するなどの時間が必要となる。そのため、メインスレッドからサブスレッドを起動させ、そのサブスレッドにおいて1番目の処理対象ファイルの先頭ページに対応するプレビューファイルを生成させるよりも、メインスレッドにおいてそのまま1番目の処理対象ファイルの先頭ページに対応するプレビューファイルを生成させる方が、そのプレビューファイルをより早く生成できる。よって、プレビュー画像をLCD18により早く表示させることができる。   Thus, in this embodiment, the preview file is generated by the main thread for the first page of the first processing target file. If a preview file corresponding to the first page of the first processing target file is generated in the sub thread, the time for starting the sub thread or the first page of the first processing target file in the sub thread is determined. Time such as control to be generated is required. Therefore, rather than starting a sub thread from the main thread and generating a preview file corresponding to the first page of the first processing target file in the sub thread, the main thread supports the first page of the first processing target file as it is. If the preview file to be generated is generated, the preview file can be generated more quickly. Therefore, the preview image can be displayed on the LCD 18 quickly.

また、本実施形態では、メインスレッドにおいてプレビューファイルが生成された後に、サブスレッドを起動させている。仮に、メインスレッド、及び、サブスレッドがそれぞれ起動されている場合、メインスレッド、及び、サブスレッドでそれぞれ並行して処理が実行されるため、メインスレッドに対して割り当てられる単位時間辺りの処理時間が短くなる。よって、メインスレッドおよびサブレッドを並行して起動させずに、メインスレッドにおけるデータ処理が終了してから、サブスレッドを起動させることで、メインスレッドにおいてデータ処理を行っている間に、メインスレッドに割り当てられる単位時間辺りの処理時間を増やせる。従って、メインスレッドにおいて、プレビューファイルの生成を早く完了させることができるので、プレビュー画像をLCD18により早く表示させることができる。   In the present embodiment, the sub thread is activated after the preview file is generated in the main thread. If the main thread and the sub thread are activated, the main thread and the sub thread execute the processes in parallel. Therefore, the processing time per unit time allocated to the main thread is Shorter. Therefore, without activating the main thread and the sub-red in parallel, the data processing in the main thread is completed and then the sub-thread is activated so that the data is allocated to the main thread while the main thread performs data processing. Can increase the processing time per unit time. Therefore, since the generation of the preview file can be completed quickly in the main thread, the preview image can be displayed on the LCD 18 earlier.

そして、OS14aによって、本アプリ14bに対してサブスレッドが割り当てられると、サブスレッドでは、処理対象ファイルのうち、1番目の処理対象ファイルから順番に、残りのファイルについて、プレビューファイルの生成が行われる。そして、処理対象ファイルの全てについて、プレビューファイルの生成が終了すると、サブスレッドからOS14aに対して、サブレッドの終了が要求され、サブスレッドが終了させられる。尚、サブスレッドを終了させる場合に、サブスレッドからOS14aに対して、サブスレッド自ら終了することを通知し、サブスレッドからOS14aに対して終了を要求せずに、サブスレッドが自らサブスレッドを終了させても良い。   Then, when a sub thread is assigned to the application 14b by the OS 14a, the sub thread generates preview files for the remaining files in order from the first processing target file among the processing target files. . When the generation of the preview file is completed for all the processing target files, the sub thread requests the OS 14a to end the sub red, and the sub thread is ended. When the sub thread is terminated, the sub thread notifies the OS 14a that the sub thread itself is terminated, and the sub thread terminates the sub thread itself without requesting the OS 14a to terminate the sub thread. You may let them.

次に、図5(b)を参照して、処理対象リスト13aにより示される各処理対象ファイルのうち、1番目の処理対象ファイルの先頭ページについてプレビューファイルが無く、且つ、その先頭ページを構成するデータ量が、処理データ上限値14b1を超えている場合の概略について説明する。   Next, referring to FIG. 5B, there is no preview file for the first page of the first processing target file among the processing target files indicated by the processing target list 13a, and the first page is configured. An outline when the data amount exceeds the processing data upper limit 14b1 will be described.

この場合、図5(b)に示すように、メインスレッドでは、プレビューファイルは生成されず、1番目の処理対象ファイルの先頭ページが、優先処理ページとして設定される。そして、メインスレッドでは、サブスレッドの起動がOS14aに対して要求され、更に、表示切替処理が実行される。   In this case, as shown in FIG. 5B, the preview file is not generated in the main thread, and the first page of the first processing target file is set as the priority processing page. In the main thread, activation of the sub thread is requested to the OS 14a, and display switching processing is executed.

本アプリ14bに対してサブスレッドが割り当てられると、サブスレッドでは、まず、処理対象ファイルのうち、優先処理ページに対応するプレビューファイルの生成が行われる。即ち、1番目の処理対象ファイルの先頭ページについて、プレビューファイルの生成が行われる。   When a sub thread is assigned to the application 14b, the sub thread first generates a preview file corresponding to the priority processing page among the processing target files. That is, a preview file is generated for the first page of the first processing target file.

このように、本実施形態では、1番目の処理対象ファイルの先頭ページに対応するデータ量が、処理データ上限値14b1を超えている場合には、サブスレッドにおいて、そのプレビューファイルを生成させる。よって、メインスレッドにおいて処理されるデータ量が多くなり、その結果、データ処理が長引くことを抑制できる。従って、入力に関する処理が遅延することを抑制でき、ユーザから見て、入力操作が困難となる期間を抑制できる。具体的には、ユーザがプレビュー表示を取りやめたい場合に、プレビュー表示のキャンセル入力を素早く受け付けることができる。   As described above, in this embodiment, when the data amount corresponding to the first page of the first processing target file exceeds the processing data upper limit value 14b1, the preview file is generated in the sub thread. Therefore, the amount of data processed in the main thread increases, and as a result, it is possible to suppress the data processing from being prolonged. Therefore, it can suppress that the process regarding input delays, and can suppress the period when input operation becomes difficult seeing from a user. Specifically, when the user wants to cancel the preview display, a cancel input for the preview display can be quickly received.

そして、サブスレッドにおいて、優先処理ページに対応するプレビューファイルの生成が終了すると、サブスレッドからメインスレッドに対して、スレッド間通信により、優先処理ページに対応するプレビューファイルの準備完了が通知される。メインスレッドでは、このプレビューファイルの準備完了通知が受信されると、優先処理ページに対応するプレビューファイルが用いられて、そのプレビュー画像がLCD18に表示される。即ち、1番目の処理対象ファイルの先頭ページについて、そのプレビュー画像が表示される。   When the sub thread finishes generating the preview file corresponding to the priority processing page, the sub thread notifies the main thread that the preview file corresponding to the priority processing page is ready by inter-thread communication. In the main thread, when the preview file preparation completion notification is received, the preview file corresponding to the priority processing page is used and the preview image is displayed on the LCD 18. That is, the preview image is displayed for the first page of the first processing target file.

このように、本実施形態では、サブスレッドにおいて、1番目の処理対象ファイルの先頭ページに対応するプレビューファイルが準備できたら、他のページや、他の処理対象ファイルに対応するプレビューファイルの生成完了を待たずに、1番目の処理対象ファイルの先頭ページに対応するプレビュー画像を、LCD18に表示させる。よって、プレビュー画像をLCD18により早く表示させることができる。   As described above, in this embodiment, when a preview file corresponding to the first page of the first processing target file is prepared in the sub-thread, generation of a preview file corresponding to another page or another processing target file is completed. Without waiting, the preview image corresponding to the first page of the first processing target file is displayed on the LCD 18. Therefore, the preview image can be displayed on the LCD 18 quickly.

そして、サブスレッドでは、メインスレッドへの通知が終了すると、その後、処理対象ファイルのうち、1番目の処理対象ファイルから順番に、残りのファイルについて、プレビューファイルの生成が行われる。そして、処理対象ファイルの全てについて、プレビューファイルの生成が終了すると、サブスレッドからOS14aに対して、サブレッドの終了が要求され、サブスレッドが終了させられる。尚、サブスレッドを終了させる場合に、サブスレッドからOS14aに対して、サブスレッド自ら終了することを通知し、サブスレッドからOS14aに対して終了を要求せずに、サブスレッドが自らサブスレッドを終了させても良い。   Then, when the notification to the main thread is completed, the sub thread generates preview files for the remaining files in order from the first processing target file among the processing target files. When the generation of the preview file is completed for all the processing target files, the sub thread requests the OS 14a to end the sub red, and the sub thread is ended. When the sub thread is terminated, the sub thread notifies the OS 14a that the sub thread itself is terminated, and the sub thread terminates the sub thread itself without requesting the OS 14a to terminate the sub thread. You may let them.

上述したように、本実施形態では、各処理対象ファイルに対応するプレビューファイルを、主に、サブスレッドにおいて生成させている。よって、メインスレッドで生成させるプレビューファイルの数を抑制できる。従って、メインスレッドにおいて処理されるデータ量を抑制できるので、データ処理が長引き、入力に関する処理が遅延することを抑制できる。故に、ユーザから見て、入力操作が困難となる期間を抑制できる。   As described above, in this embodiment, the preview file corresponding to each processing target file is generated mainly in the sub thread. Therefore, the number of preview files generated by the main thread can be suppressed. Accordingly, since the amount of data processed in the main thread can be suppressed, it is possible to prevent data processing from being prolonged and processing related to input from being delayed. Therefore, it is possible to suppress a period during which the input operation is difficult when viewed from the user.

次に、図6を参照して、サブスレッドにおいて、処理対象ファイルのうち、プレビューファイルの準備が未完了の各ファイルについて順番に、プレビューファイルの生成が行われている状態で、メインスレッドにおいて、LCD18にプレビュー画像を表示させるファイル及びページが、ユーザにより指示された場合の概略について説明する。   Next, referring to FIG. 6, in the sub thread, in the state where the preview file is generated in order for each file for which the preparation of the preview file is not completed among the files to be processed, An outline when a file and page for displaying a preview image on the LCD 18 are instructed by the user will be described.

この場合、図6に示すように、メインスレッドにおいて、LCD18にプレビュー画像を表示させるファイル及びページが、ユーザにより指示されると、その指示されたファイル及びページ対応するプレビューファイルの有無が確認される。確認の結果、ユーザにより指示されたファイル及びページに対応するプレビューファイルが無い場合、メインスレッドでは、ユーザにより指示されたファイル及びページが、優先処理ページとして設定される。   In this case, as shown in FIG. 6, in the main thread, when the file and page for displaying the preview image on the LCD 18 are instructed by the user, the presence or absence of the instructed file and the preview file corresponding to the page is confirmed. . If there is no preview file corresponding to the file and page designated by the user as a result of the confirmation, the file and page designated by the user are set as the priority processing page in the main thread.

一方、サブスレッドでは、今現在、プレビューファイルの生成対象となっているファイルについて、その生成が終了した場合に、優先処理ページが設定されているか否かが確認される。ここで、優先処理ページが設定されている場合、処理対象ファイルのうち、まず先に、優先処理ページに対応するプレビューファイルの生成が行われる。即ち、ユーザにより指示されたファイル及びページに対応するプレビューファイルの生成が行われる。そして、このプレビューファイルの生成が終了すると、サブスレッドからメインスレッドに対して、スレッド間通信により、優先処理ページに対応するプレビューファイルの準備完了が通知される。   On the other hand, the sub-thread confirms whether or not a priority processing page has been set when the generation of the file that is currently the preview file generation target is completed. Here, when a priority processing page is set, a preview file corresponding to the priority processing page is first generated from the processing target files. That is, a preview file corresponding to the file and page designated by the user is generated. When the generation of the preview file is completed, the sub thread notifies the main thread that the preview file corresponding to the priority processing page is ready by inter-thread communication.

メインスレッドでは、このプレビューファイルの準備完了通知が受信されると、優先処理ページに対応するプレビューファイルが用いられて、そのプレビュー画像がLCD18に表示される。即ち、ユーザにより指示されたファイル及びページについて、そのプレビュー画像が表示される。このように、本実施形態では、ユーザにより指示されたファイル及びページに対応するプレビューファイルを、サブスレッドで優先させて生成させることができる。よって、ユーザが所望するファイル及びページのプレビュー画像を早くLCD18に表示させることができる。   In the main thread, when the preview file preparation completion notification is received, the preview file corresponding to the priority processing page is used and the preview image is displayed on the LCD 18. That is, the preview image of the file and page designated by the user is displayed. As described above, in this embodiment, a preview file corresponding to a file and a page designated by the user can be generated with priority in the sub thread. Therefore, the preview image of the file and page desired by the user can be quickly displayed on the LCD 18.

次に、本発明の第2実施形態を説明する。第2実施形態において、携帯端末10の電気的構成は、第1実施形態で説明した構成と同一であるため、第1実施形態と同一の符号を付して説明を省略する。上述した第1実施形態では、処理対象リスト13aにより示される各処理対象ファイルのうち、1番目の処理対象ファイルの先頭ページを、メインスレッドでのプレビューファイルの生成対象としたが、第2実施形態では、先頭ページに限らず、1番目の処理対象ファイルの他のページについても、プレビューファイルの生成対象とする。   Next, a second embodiment of the present invention will be described. In the second embodiment, since the electrical configuration of the mobile terminal 10 is the same as the configuration described in the first embodiment, the same reference numerals as those in the first embodiment are used and the description thereof is omitted. In the first embodiment described above, the first page of the first processing target file among the processing target files indicated by the processing target list 13a is set as the preview file generation target in the main thread. Then, not only the first page but also other pages of the first processing target file are set as preview file generation targets.

図7は、第2実施形態の本アプリ14bに従って、携帯端末10において実行されるプレビュー表示処理を示すフローチャートである。尚、第2実施形態において、第1実施形態で説明した処理と同一の処理には同一の符号を付し、その説明を省略する。この処理は、第1実施形態の場合と同様に、携帯端末10において、ユーザが本アプリ14bの実行開始を指示した場合に実行される処理であり、OS14aが本アプリ14bに対して割り当てたメインスレッドにおいて実行される処理である。   FIG. 7 is a flowchart showing a preview display process executed in the mobile terminal 10 according to the application 14b of the second embodiment. In the second embodiment, the same processes as those described in the first embodiment are denoted by the same reference numerals, and the description thereof is omitted. Similar to the case of the first embodiment, this process is a process executed when the user instructs the start of execution of the application 14b in the mobile terminal 10, and the main process assigned to the application 14b by the OS 14a. It is a process executed in a thread.

CPU11は、S1〜S6の処理を実行する。S6の処理が終了したら、CPU11は、処理対象リスト13aにより示される各処理対象ファイルのうち、1番目の処理対象ファイルの各ページについて、そのデータ量を算出する(S61)。尚、1番目の処理対象ファイルの各ページのうち、既にプレビューファイルが有るページについては、データ量を0と算出させる。   CPU11 performs the process of S1-S6. When the process of S6 ends, the CPU 11 calculates the data amount of each page of the first process target file among the process target files indicated by the process target list 13a (S61). Of the pages of the first processing target file, the data amount is calculated as 0 for the page that already has the preview file.

次に、CPU11は、1番目の処理対象ファイルの先頭ページから順番に、1ページずつ、各ページに対応するデータの累積量を計数してゆき、そのデータの累積量が、処理データ上限値14b1を超えない範囲の各ページを特定する(S62)。そして、S62において、1番目の処理対象ファイルの各ページのうち、先頭ページが特定されなかった場合(S63:No)、CPU11は、1番目の処理対象ファイルの先頭ページを、優先処理ページとして設定し(S64)、S14の処理へ移行する。例えば、先頭ページに対応するプレビューファイルが無く、且つ、先頭ページのデータ量が大きくて、処理データ上限値14b1を超える場合には、S63:Noへ分岐する。   Next, the CPU 11 sequentially counts the cumulative amount of data corresponding to each page from the first page of the first processing target file, and the cumulative amount of the data is the processing data upper limit value 14b1. Each page in a range not exceeding the range is specified (S62). If the first page is not specified in each page of the first processing target file in S62 (S63: No), the CPU 11 sets the first page of the first processing target file as the priority processing page. (S64), and the process proceeds to S14. For example, if there is no preview file corresponding to the first page and the data amount of the first page is large and exceeds the processing data upper limit 14b1, the process branches to S63: No.

一方、S62において、先頭ページが特定された場合(S63:Yes)、CPU11は、S62の処理で特定された各ページのうち、プレビューファイルが無い全ページについて、ページ単位で、そのプレビューファイルを生成し(S65)、その生成された各ファイルをプレビューファイル格納エリア20bに保存させる(S66)。   On the other hand, when the first page is specified in S62 (S63: Yes), the CPU 11 generates a preview file for each page for which no preview file exists among the pages specified in the process of S62 in units of pages. Then, each generated file is stored in the preview file storage area 20b (S66).

次に、CPU11は、プレビューファイル格納エリア20bに記憶されているプレビューファイルのうち、1番目の処理対象ファイルの先頭ページに対応するファイルを取得して、そのプレビュー画像をLCD18に表示させる(S67)。そして、CPU11は、S14〜S16の処理を実行し、本処理を終了させる。   Next, the CPU 11 acquires a file corresponding to the first page of the first processing target file among the preview files stored in the preview file storage area 20b, and displays the preview image on the LCD 18 (S67). . And CPU11 performs the process of S14-S16 and complete | finishes this process.

図7に示すプレビュー表示処理によれば、1番目の処理対象ファイルの各ページのうち、既にプレビューファイルが有るページについては、データ量を0とみなし、その上で、処理データ上限値14b1を超えない範囲のデータに対応する各ページを特定させることができる。これにより、プレビューファイルが無いページをより多く特定させることができるので、メインスレッドにおいて、プレビューファイルが無いページに対応するプレビューファイルをより多く生成できる。   According to the preview display process shown in FIG. 7, among the pages of the first processing target file, regarding the page that already has the preview file, the data amount is regarded as 0, and the processing data upper limit value 14b1 is exceeded. Each page corresponding to a range of data can be specified. As a result, more pages with no preview file can be specified, and more preview files corresponding to pages without a preview file can be generated in the main thread.

次に、本発明の第3実施形態を説明する。第3実施形態において、携帯端末10の電気的構成は、第1実施形態および第2実施形態で説明した構成と同一であるため、第1実施形態および第2実施形態と同一の符号を付して説明を省略する。   Next, a third embodiment of the present invention will be described. In the third embodiment, since the electrical configuration of the mobile terminal 10 is the same as the configuration described in the first embodiment and the second embodiment, the same reference numerals as those in the first embodiment and the second embodiment are used. The description is omitted.

第3実施形態では、サブスレッドにおいて処理させるデータ量が、第2上限値を超える場合には、サブスレッドを2つ起動させて、1つ目のサブスレッド(以後、「第1サブスレッド」と称す)において、第2上限値までのデータを処理させ、2つ目のサブスレッド(以下、「第2サブスレッド」と称す)において、残りのデータを処理させる。   In the third embodiment, when the amount of data to be processed in the sub thread exceeds the second upper limit value, two sub threads are activated and the first sub thread (hereinafter referred to as “first sub thread”). Data up to the second upper limit value is processed, and the remaining data is processed in the second sub-thread (hereinafter referred to as “second sub-thread”).

本アプリ14bには、第1上限値と、第2上限値とが設けられる。第1上限値は、メインスレッドにおいてプレビューファイルを生成させる場合に、そのメインスレッドでの生成対象となるデータの上限値を示す。即ち、第1,第2実施形態の処理データ上限値14b1に相当する。第2上限値は、第1サブスレッドにおいてプレビューファイルを生成させる場合に、その第1サブスレッドでの生成対象となるデータの上限値を示す。   The application 14b is provided with a first upper limit value and a second upper limit value. The first upper limit value indicates an upper limit value of data to be generated in the main thread when the preview file is generated in the main thread. That is, it corresponds to the processing data upper limit value 14b1 of the first and second embodiments. The second upper limit value indicates an upper limit value of data to be generated in the first sub thread when the preview file is generated in the first sub thread.

図8は、第3実施形態の本アプリ14bに従って、携帯端末10において実行されるプレビュー表示処理を示すフローチャートである。尚、第3実施形態において、第1実施形態で説明した処理と同一の処理には同一の符号を付し、その説明を省略する。この処理は、第1,第2実施形態の場合と同様に、携帯端末10において、ユーザが本アプリ14bの実行開始を指示した場合に実行される処理であり、OS14aが本アプリ14bに対して割り当てたメインスレッドにおいて実行される処理である。   FIG. 8 is a flowchart showing a preview display process executed in the mobile terminal 10 according to the application 14b of the third embodiment. Note that in the third embodiment, the same processes as those described in the first embodiment are denoted by the same reference numerals, and description thereof is omitted. Similar to the first and second embodiments, this process is performed when the user instructs the mobile terminal 10 to start executing the application 14b. The OS 14a This process is executed in the assigned main thread.

CPU11は、S1〜S3の処理を実行する。そして、S3の処理による確認の結果、プレビューファイルの生成が必要な場合(S4:Yes)、CPU11は、処理対象リスト13aにより示される各処理対象ファイルについて、ファイル単位で、そのデータ量を取得する(S81)。そして、1番目の処理対象ファイルから順番に、1ファイルずつ、各ファイルに対応するデータの累積量を計数してゆき、そのデータの累積量が、第1上限値を超えない範囲の各ファイル(以下、「第1ファイル群」と称す)を特定する。そして、その特定された第1ファイル群の各ファイルについて、ページ単位で、プレビューファイルが無い全ページのプレビューファイルを生成し(S82)、その生成された各ファイルをプレビューファイル格納エリア20bに保存させる(S83)。   CPU11 performs the process of S1-S3. As a result of the confirmation in the process of S3, when the preview file needs to be generated (S4: Yes), the CPU 11 acquires the data amount of each process target file indicated by the process target list 13a in units of files. (S81). Then, the cumulative amount of data corresponding to each file is counted in order from the first file to be processed, and each file in a range where the cumulative amount of data does not exceed the first upper limit value ( (Hereinafter referred to as “first file group”). Then, for each file of the identified first file group, a preview file for all pages without a preview file is generated for each page (S82), and the generated files are stored in the preview file storage area 20b. (S83).

次に、CPU11は、プレビューファイル格納エリア20bに記憶されているプレビューファイルのうち、1番目の処理対象ファイルの先頭ページに対応するファイルを取得して、そのプレビュー画像をLCD18に表示させる(S84)。そして、S81の処理で取得させた各処理対象ファイルのデータの合計値が、第1上限値以下の場合(S85:No)、CPU11は、S16の処理を実行し、本処理を終了する。一方、各処理対象ファイルのデータの合計値が、第1上限値を超えている場合(S85:Yes)、CPU11は、処理対象リスト13aにより示される各処理対象ファイルから第1ファイル群を除いた残りの処理対象ファイルについて、先頭のファイルから順番に、1ファイルずつ、各ファイルに対応するデータの累積量を計数してゆき、そのデータの累積量が、第2上限値を超えない範囲の各ファイル(以下、「第2ファイル群」と称す)を特定する。そして、その特定された第2ファイル群の各ファイルが、これから起動する第1サブスレッドにおけるプレビューファイルの生成対象ファイルとされ、その第1サブレッドにおいてプレビューファイル生成処理が実行されるように設定を行う(S86)。そして、このメインスレッドからOS14aに対して、第1サブスレッドの起動を要求する(S87)。   Next, the CPU 11 acquires a file corresponding to the first page of the first processing target file among the preview files stored in the preview file storage area 20b, and displays the preview image on the LCD 18 (S84). . And when the total value of the data of each process object file acquired by the process of S81 is below a 1st upper limit (S85: No), CPU11 performs the process of S16 and complete | finishes this process. On the other hand, when the total value of the data of each processing target file exceeds the first upper limit value (S85: Yes), the CPU 11 excludes the first file group from each processing target file indicated by the processing target list 13a. For the remaining files to be processed, the cumulative amount of data corresponding to each file is counted in order from the top file, and the cumulative amount of data does not exceed the second upper limit value. A file (hereinafter referred to as “second file group”) is specified. Then, each file of the specified second file group is set as a generation target file of the preview file in the first sub thread to be started, and setting is performed so that the preview file generation process is executed in the first sub red. (S86). Then, the main thread requests the OS 14a to start the first sub thread (S87).

そして、S81の処理で取得させた各処理対象ファイルのデータの合計値から、第1ファイル群のデータ量を除いた残りのデータ量が、第2上限値以下の場合(S88:No)、CPU11は、S16の処理を実行し、本処理を終了する。一方、各処理対象ファイルのデータの合計値から、第1ファイル群のデータ量を除いた残りのデータ量が、第2上限値を超えている場合(S88:Yes)、CPU11は、処理対象リスト13aにより示される各処理対象ファイルから、第1ファイル群および第2ファイル群を除いた残りの処理対象ファイルが、これから起動する第2サブスレッドにおけるプレビューファイルの生成対象ファイルとされ、その第2サブスレッドにおいてプレビューファイル生成処理が実行されるように設定を行う(S89)。そして、このメインスレッドからOS14aに対して、第2サブスレッドの起動を要求する(S90)。そして、CPU11は、S16の表示切替処理を実行し、本処理を終了する。尚、第3実施形態では、表示切替処理(図4参照)において、S51の処理が実行される場合、第1サブスレッド、及び、第2サブスレッドをそれぞれ終了させる。   Then, when the remaining data amount excluding the data amount of the first file group from the total value of the data of each processing target file acquired in the process of S81 is equal to or less than the second upper limit value (S88: No), the CPU 11 Executes the process of S16 and ends this process. On the other hand, when the remaining data amount excluding the data amount of the first file group from the total value of the data of each processing target file exceeds the second upper limit value (S88: Yes), the CPU 11 executes the processing target list. The remaining processing target files excluding the first file group and the second file group from each processing target file indicated by 13a are used as preview file generation target files in the second sub-thread to be started. Setting is performed so that the preview file generation process is executed in the thread (S89). Then, the main thread requests the OS 14a to start the second sub thread (S90). And CPU11 performs the display switching process of S16, and complete | finishes this process. In the third embodiment, in the display switching process (see FIG. 4), when the process of S51 is executed, the first sub thread and the second sub thread are terminated.

図8に示すプレビュー表示処理によれば、処理対象ファイルが多い場合や、一の処理対象ファイルに含まれているページ数が多い場合などに、第1サブスレッドと、第2サブスレッドとにおいて分散させて、処理対象ファイルのプレビューファイルを生成させることができる。これにより、例えば、1番目の処理対象ファイルの全ページ数が100ページであるなど多い場合に、1〜50ページまでの各ページに対応するプレビューファイルを、第1サブスレッドにおいて生成させ、51〜100ページまでの各ページに対応するプレビューファイルを、第2サブスレッドにおいて生成させることができる。即ち、プレビューファイルを生成開始させるページを、所定のページ間隔を空けて2つ設け、それぞれ並行して後方のページに向かいながら、各ページのプレビューファイルを生成させることができる。よって、LCD18にプレビュー画像を表示させるファイル及びページがユーザにより指示された場合に、その指示に応じたプレビュー画像をLCD18に表示させることができる可能性を向上させることができる。尚、第1サブスレッドで処理させるページ数(又は、データ量)や、第2サブスレッドで処理させるページ数(又は、データ量)は、適宜決めれば良い。   According to the preview display process shown in FIG. 8, when there are many files to be processed or when the number of pages included in one file to be processed is large, it is distributed between the first sub thread and the second sub thread. As a result, a preview file of the processing target file can be generated. Thus, for example, when the total number of pages of the first processing target file is 100 pages, a preview file corresponding to each page from 1 to 50 pages is generated in the first sub thread, and 51 to 51 Preview files corresponding to up to 100 pages can be generated in the second sub thread. That is, it is possible to create two preview files for each page while providing two pages for starting the generation of the preview file with a predetermined page interval, and proceeding to the rear page in parallel. Therefore, when the file and page for displaying the preview image on the LCD 18 are instructed by the user, the possibility that the preview image corresponding to the instruction can be displayed on the LCD 18 can be improved. The number of pages (or data amount) processed by the first sub thread and the number of pages (or data amount) processed by the second sub thread may be determined as appropriate.

上記実施形態において、メインスレッドが第1スレッドの一例であり、サブスレッドや第1サブスレッドが第2スレッドの一例であり、第2サブスレッドが第3スレッドの一例である。プレビュー画像が出力画像の一例であり、プレビューファイルが表示データの一例である。第1上限値が第1所定量の一例であり、第2上限値が第2所定量の一例である。プレビューファイル生成処理(図3)を実行するCPU11が第2スレッドデータ生成手段の一例である。優先処理ページに対応する一のプレビュー画像が、所定数の出力画像の一例に対応する。即ち、一が所定数の一例である。CPU11に制御されて動作するLCD18が表示手段の一例である。   In the above embodiment, the main thread is an example of the first thread, the sub thread and the first sub thread are examples of the second thread, and the second sub thread is an example of the third thread. A preview image is an example of an output image, and a preview file is an example of display data. The first upper limit value is an example of a first predetermined amount, and the second upper limit value is an example of a second predetermined amount. The CPU 11 that executes the preview file generation process (FIG. 3) is an example of a second thread data generation unit. One preview image corresponding to the priority processing page corresponds to an example of a predetermined number of output images. That is, one is an example of a predetermined number. An LCD 18 that operates under the control of the CPU 11 is an example of a display unit.

以上、実施形態に基づき本発明を説明したが、本発明は上述した実施形態に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の改良変更が可能であることは容易に推察できるものである。   Although the present invention has been described based on the embodiments, the present invention is not limited to the above-described embodiments, and various improvements and modifications can be easily made without departing from the spirit of the present invention. Can be inferred.

例えば、上記実施形態では、携帯端末10が情報処理装置の一例であったが、パーソナルコンピュータ、デジタルカメラなど各種の装置が画像処理装置の一例となり得る。   For example, in the above-described embodiment, the mobile terminal 10 is an example of an information processing apparatus, but various apparatuses such as a personal computer and a digital camera can be examples of an image processing apparatus.

また、上記実施形態で挙げた処理データ上限値14b1や、第1上限値や、第2上限値は、適宜決めれば良い。   The processing data upper limit value 14b1, the first upper limit value, and the second upper limit value mentioned in the above embodiment may be determined as appropriate.

また、上記実施形態においては、携帯端末10において、ユーザが本アプリ14bの実行開始を指示した場合に、プレビュー表示処理(図2、図7、図8)を実行するものとして説明した。しかしながら、OS14aがアンドロイドOSである場合、アンドロイドの共有機能の共有出力先として、本アプリ14bが選択されて、本アプリ14bが起動される場合おいても、プレビュー表示処理を実行しても良い。   Moreover, in the said embodiment, when the user instruct | indicated execution start of this application 14b in the portable terminal 10, it demonstrated as what performs a preview display process (FIG.2, FIG.7, FIG.8). However, when the OS 14a is an Android OS, the preview display process may be executed even when the application 14b is selected and the application 14b is activated as a shared output destination of the Android sharing function.

また、上記実施形態においては、携帯端末10に着脱可能なメモリカード20に処理対象ファイルや、プレビューファイルが記憶されるものとして説明した。しかしながら、例えば、携帯端末10に内蔵されたフラッシュメモリ14に記憶されても良いし、メモリカード20およびフラッシュメモリ14に分散させて記憶されても良い。   Moreover, in the said embodiment, it demonstrated as a process target file and a preview file being memorize | stored in the memory card 20 which can be attached or detached to the portable terminal 10. FIG. However, for example, it may be stored in the flash memory 14 built in the mobile terminal 10, or may be distributed and stored in the memory card 20 and the flash memory 14.

また、入力部、表示部、受付部、起動部、生成部、通知部、指示部、特定部、判定部などの各部は、ハードウェア単体、または、本発明のプログラムあるいはオペレーティングシステムなど本発明以外のプログラムを実行することにより動作するハードウェアであっても良い。また、各部は、複数のプログラムによる処理を組み合わせて動作するハードウェアであっても良い。   In addition, each unit such as an input unit, a display unit, a reception unit, an activation unit, a generation unit, a notification unit, an instruction unit, a specification unit, and a determination unit may be a single hardware unit or a program or operating system of the present invention. Hardware that operates by executing this program may be used. Each unit may be hardware that operates by combining a plurality of programs.

また、上記実施形態では、一のアプリケーションにより実行される処理の実行単位を意味する用語の一例として、スレッドという用語を用い、本発明を説明したが、本発明をスレッドに限定するものではない。即ち、スレッドは、同一の意味を有する他の用語や、同一の意味に相当する他の用語に置き換えられても良い。   In the above-described embodiment, the present invention has been described using the term “thread” as an example of a term meaning an execution unit of processing executed by one application. However, the present invention is not limited to a thread. That is, the thread may be replaced with another term having the same meaning or another term corresponding to the same meaning.

また、上記実施形態のプレビュー表示処理(図2、図7、図8)では、プレビューファイル格納エリア20bに、1番目の処理対象ファイルの先頭ページに対応するプレビューファイルが記憶されている場合、そのプレビューファイルを用いて、その先頭ページのプレビュー画像をLCD18に表示させている。しかしながら、他のページに対応するプレビューファイルが記憶されている場合には、そのプレビューファイルを用いて、その他のページのプレビュー画像を表示させても良い。   In the preview display processing (FIGS. 2, 7, and 8) of the above embodiment, if a preview file corresponding to the first page of the first processing target file is stored in the preview file storage area 20b, A preview image of the first page is displayed on the LCD 18 using the preview file. However, when a preview file corresponding to another page is stored, a preview image of the other page may be displayed using the preview file.

また、上記実施形態において、インターレース形式やプログレッシブ形式の画像ファイルが、1番目の処理対象ファイルとなる場合には、先頭ページのデータ量が、処理上限値14b1(又は、第1上限値)を超えていても、一旦、処理上限値14b1(又は、第1上限値)までのデータ(即ち、画質は低いが画像全体を構成するデータ)について、メインスレッドでプレビューファイルを生成し、先頭ページのプレビュー画像をLCD18に表示させても良い。そして、先頭ページの全データ(本来の画質の画像全体を構成するデータ)に対応するプレビューファイルをサブスレッドにおいて生成させ、それが生成された場合に、そのプレビューファイルを用いて、再度、先頭ページのプレビュー画像を、LCD18に表示させても良い。これにより、まず、画像ファイルのプレビュー画像(低画質のもの)を、LCD18に素早く表示させることができ、その後、高画質のプレビュー画像を、LCD18に表示し直すことができる。   In the above embodiment, when the image file in the interlace format or the progressive format is the first processing target file, the data amount of the first page exceeds the processing upper limit value 14b1 (or the first upper limit value). However, once the data up to the processing upper limit 14b1 (or the first upper limit) (that is, the data that has low image quality but constitutes the entire image) is generated in the main thread, the preview of the first page is generated. An image may be displayed on the LCD 18. Then, a preview file corresponding to all the data of the first page (data constituting the entire image of the original image quality) is generated in the sub thread, and when it is generated, the first page is again used by using the preview file. These preview images may be displayed on the LCD 18. Thereby, first, the preview image (low quality image) of the image file can be quickly displayed on the LCD 18, and then the high quality preview image can be displayed again on the LCD 18.

また、上記実施形態の本アプリ14bは、アンドロイドOS上で動作させているが、アンドロイドOSに限らず、他のマルチスレッド対応OS上で動作させることも当然可能である。その場合にも、本実施形態と同様の作用や効果を奏する。   Moreover, although this application 14b of the said embodiment is operate | moved on Android OS, naturally it is also possible to operate on not only Android OS but other multithreaded OS. Even in such a case, the same operations and effects as the present embodiment can be achieved.

また、上記実施形態では、メインスレッド、及び、サブスレッドのうち、メインスレッドでのみ、入出力および表示に関する処理を実行させることができる場合の一例について説明したが、サブスレッドにおいても、入出力および表示に関する処理を実行させることができる場合には、メインスレッドにおいて、主に、プレビューファイルを生成させ、サブスレッドにおいて、主に、入出力および表示(プレビュー画像を表示)に関する処理を実行させても良い。   In the above embodiment, an example in which processing related to input / output and display can be executed only in the main thread among the main thread and sub-thread has been described. When processing related to display can be executed, a preview file is mainly generated in the main thread, and processing related to input / output and display (displaying a preview image) is mainly executed in the sub thread. good.

また、上記の第3実施形態では、各処理対象ファイルのデータの合計値が、第1上限値を超える場合に、第1サブスレッドを起動させているが、各処理対象ファイルの全ファイル数が、第1ファイル数を超える場合に、第1サブスレッドを起動させても良い。尚、この場合には、各処理対象ファイルの全ファイルのうち、第1ファイル数のファイルを、第1ファイル群とし、そのプレビューファイルをメインスレッドにおいて生成させる。同様に、上記の第3実施形態では、各処理対象ファイルのデータの合計値から、第1ファイル群のデータ量を除いた残りのデータ量が、第2上限値を超えている場合に、第2サブスレッドを起動させているが、各処理対象ファイルから第1ファイル群を除いた残りの全ファイル数が、第2ファイル数を超える場合に、第2サブスレッドを起動させても良い。尚、この場合には、各処理対象ファイルから第1ファイル群を除いた残りの全ファイルのうち、第2ファイル数のファイルを、第2ファイル群とし、そのプレビューファイルを第1サブスレッドにおいて生成させる。そして、各処理対象ファイルから第1ファイル群および第2ファイル群を除いた残りの全ファイルについて、そのプレビューファイルを第2サブスレッドにおいて生成させる。このように構成した場合にも、本実施形態と同様の作用や効果を奏する。   In the third embodiment, the first sub-thread is activated when the total value of the data of each processing target file exceeds the first upper limit value. However, the total number of files of each processing target file is The first sub thread may be activated when the number of first files is exceeded. In this case, among all the files to be processed, the first number of files is set as the first file group, and the preview file is generated in the main thread. Similarly, in the above third embodiment, when the remaining data amount excluding the data amount of the first file group from the total value of the data of each processing target file exceeds the second upper limit value, Although the two sub-threads are activated, the second sub-thread may be activated when the total number of remaining files excluding the first file group from each processing target file exceeds the second file number. In this case, among all remaining files excluding the first file group from each file to be processed, the second number of files is set as the second file group, and the preview file is generated in the first sub thread. Let Then, the preview file is generated in the second sub thread for all remaining files excluding the first file group and the second file group from each processing target file. Even when configured in this manner, the same operations and effects as the present embodiment are obtained.

また、上記実施形態では、処理対象ファイル中の1ページを、優先処理ページとしているが、同一ファイル中のページであるかに関わらず、2以上の任意の数のページを優先処理ページとしても良い。その場合、「2以上の任意の数」が、「所定数」の一例に対応する。   Further, in the above embodiment, one page in the processing target file is a priority processing page, but any number of two or more pages may be used as a priority processing page regardless of whether they are pages in the same file. . In that case, “an arbitrary number of 2 or more” corresponds to an example of “predetermined number”.

また、上記実施形態では、サブスレッドにおいて、優先処理ページに対応するプレビューファイルの生成が終了した場合に、サブスレッドからメインスレッドに対して、スレッド間通信により、優先処理ページに対応するプレビューファイルの準備完了を通知している。これに対し、優先処理ページに対応するプレビューファイルだけでなく、他のページや、他の処理対象ファイルについてのプレビューファイルを生成した後に、優先処理ページに対応するプレビューファイルの準備完了を通知しても良い。但し、サブスレッドにおいて、未生成のプレビューファイルが1以上残っている間に、サブスレッドからメインスレッドに対して通知する。その場合、サブスレッドにおいて生成させるべきプレビューファイルの全数をnと表すと、「(n−1)以下の任意の数」が、「所定数」の一例に対応する。   In the above embodiment, when the generation of the preview file corresponding to the priority processing page is finished in the sub thread, the preview file corresponding to the priority processing page is transmitted from the sub thread to the main thread by inter-thread communication. Notifying the completion of preparation. In contrast to this, not only the preview file corresponding to the priority processing page but also the preview file corresponding to the priority processing page is notified after generating the preview file for other pages and other processing target files. Also good. However, the sub thread notifies the main thread while one or more ungenerated preview files remain. In this case, when the total number of preview files to be generated in the sub thread is represented by n, “any number less than (n−1)” corresponds to an example of “predetermined number”.

10 携帯端末(情報処理装置の一例)
11 CPU11(コンピュータの一例、受付部の一例、起動部の一例、生成部の一例、通知部の一例、特定部の一例、判定部の一例、指示部の一例、受付手段の一例、第2スレッド起動実行手段の一例、第2スレッドデータ生成実行手段の一例、通知手段の一例)
13b 優先処理ページ設定メモリ(指示部の一例)
14b プレビュー表示アプリケーション(情報処理プログラムの一例)
14b1 処理データ上限値(第1所定量の一例)
16 操作キー(入力部の一例)
17 タッチパネル(入力部の一例)
18 LCD(表示部の一例)
20 メモリカード(記憶部の一例)
S1,S2 (受付制御手段の一例)
S10、S62,S65、S82 (第1スレッドデータ生成手段の一例)
S11、S23、S27、S31、S66、S83 (記憶制御手段の一例)
S13、S49 (指示制御手段の一例)
S15、S87 (第2スレッド起動手段の一例)
S24 (通知制御手段の一例)
S42 (表示制御手段の一例)
S51 (スレッド終了手段の一例)
S82 (特定手段の一例、特定制御手段の一例)
S88 (判定制御手段の一例)
S90 (第3スレッド起動手段の一例)
10 Mobile terminal (an example of information processing device)
11 CPU 11 (an example of a computer, an example of a reception unit, an example of an activation unit, an example of a generation unit, an example of a notification unit, an example of a specification unit, an example of a determination unit, an example of an instruction unit, an example of a reception unit, a second thread Example of start execution unit, example of second thread data generation execution unit, example of notification unit)
13b Priority processing page setting memory (an example of an instruction unit)
14b Preview display application (an example of an information processing program)
14b1 Process data upper limit (an example of a first predetermined amount)
16 Operation keys (example of input unit)
17 Touch panel (example of input unit)
18 LCD (example of display unit)
20 Memory card (an example of a storage unit)
S1, S2 (an example of reception control means)
S10, S62, S65, S82 (an example of first thread data generation means)
S11, S23, S27, S31, S66, S83 (an example of storage control means)
S13, S49 (an example of instruction control means)
S15, S87 (an example of second thread activation means)
S24 (an example of notification control means)
S42 (an example of display control means)
S51 (an example of thread termination means)
S82 (an example of specifying means, an example of specifying control means)
S88 (an example of determination control means)
S90 (an example of third thread activation means)

Claims (10)

情報処理装置が備えるコンピュータにおいて実行される情報処理プログラムであって、
前記コンピュータを、
一のアプリケーションにより実行される処理の実行単位であるスレッドであって、その一のアプリケーションの実行開始に応じてオペレーティングシステムにより起動され、且つ、入力部および表示部に関する制御が許可されている第1スレッドにおいて、複数の出力画像に対応するデータが含まれる処理対象データを受付部に受け付けさせる受付制御手段と、
その受付制御手段により処理対象データが受け付けられる場合に、前記第1スレッドから前記オペレーティングシステムに対して要求させ、その第1スレッドとは別に並行して処理が実行される前記スレッドであり、且つ、前記入力部および表示部に関する制御が制限されている第2スレッドを起動部に起動させる第2スレッド起動手段と、
その第2スレッド起動手段により起動される第2スレッドにおいて、前記処理対象データのうち、2以上の出力画像に対応するデータについて、その出力画像を表示させるための表示データを生成部に生成させる第2スレッドデータ生成手段と、
その第2スレッドデータ生成手段によって、所定数の出力画像を表示させるための表示データが生成された場合に、前記第2スレッドから前記第1スレッドに対して表示データの生成終了を通知部に通知させる通知制御手段と、
その通知制御手段による通知が前記第1スレッドへ通知された場合に、その第1スレッドにおいて、前記第2スレッドデータ生成手段により生成された表示データを用いて出力画像を表示部に表示させる表示制御手段と、して機能させることを特徴とする情報処理プログラム。
An information processing program executed in a computer provided in the information processing apparatus,
The computer,
A thread that is an execution unit of processing executed by one application, and is activated by the operating system in response to the start of execution of the one application, and is allowed to control the input unit and the display unit In the thread, an acceptance control means for causing the accepting unit to accept processing target data including data corresponding to a plurality of output images;
When the processing target data is received by the reception control unit, the thread is requested to the operating system from the first thread, and the process is executed in parallel separately from the first thread, and A second thread activation means for causing the activation unit to activate a second thread in which control relating to the input unit and the display unit is limited;
In the second thread activated by the second thread activation means, for the data corresponding to two or more output images of the processing target data, the generation unit generates display data for displaying the output images. Two-thread data generation means;
When the display data for displaying a predetermined number of output images is generated by the second thread data generation means, the second thread notifies the notification unit of the end of display data generation to the first thread. Notification control means for
Display control for displaying an output image on the display unit using the display data generated by the second thread data generation means in the first thread when the notification by the notification control means is notified to the first thread. And an information processing program which functions as means.
前記コンピュータを、
前記処理対象データのうち、優先して処理すべきデータを、前記第1スレッドから前記第2スレッドに対して指示部に指示させる指示制御手段、として機能させ、
前記第2スレッドデータ生成手段は、
前記第2スレッドにおいて、前記指示制御手段により指示されるデータについて、その表示データを優先して生成部に生成させ、
前記通知制御手段は、
前記第2スレッドにおいて、前記指示制御手段により指示されるデータについて、その表示データの生成が終了した場合に、その第2スレッドから前記第1スレッドに対して表示データの生成終了を通知部に通知させる、請求項1記載の情報処理プログラム。
The computer,
Functioning as instruction control means for instructing the instruction unit to instruct the second thread from the first thread to process the data to be preferentially processed among the data to be processed;
The second thread data generation means includes
In the second thread, for the data instructed by the instruction control unit, the display data is preferentially generated by the generation unit,
The notification control means includes
In the second thread, when the generation of the display data for the data instructed by the instruction control unit is completed, the second thread notifies the first thread of the generation of display data to the notification unit. The information processing program according to claim 1.
前記コンピュータを、
前記第1スレッドにおいて、前記処理対象データのうち、一以上の出力画像全体に対応するデータにより構成され、且つ、総データ量が第1所定量以下である第1データについて、その出力画像を表示させるための表示データを生成部に生成させる第1スレッドデータ生成手段、として機能させ、
前記第2スレッドデータ生成手段は、
前記処理対象データから前記第1データを除いたデータについて、その出力画像を表示させるための表示データを前記第2スレッドにおいて生成部に生成させる、請求項1または2記載の情報処理プログラム。
The computer,
In the first thread, the output image is displayed for the first data that is composed of data corresponding to one or more output images of the processing target data and the total data amount is equal to or less than a first predetermined amount. Function as first thread data generation means for causing the generation unit to generate display data for
The second thread data generation means includes
3. The information processing program according to claim 1, wherein display data for displaying an output image of the data obtained by removing the first data from the processing target data is generated by the generation unit in the second thread.
前記第2スレッド起動手段は、
前記第1スレッドデータ生成手段による表示データの生成が完了した後に、前記第2スレッドを起動部に起動させる、請求項3記載の情報処理プログラム。
The second thread starting means is
The information processing program according to claim 3, wherein after the generation of display data by the first thread data generation unit is completed, the second thread is activated by the activation unit.
前記コンピュータを、
前記第1スレッドデータ生成手段または第2スレッドデータ生成手段により生成される表示データを記憶部に記憶させる記憶制御手段と、
前記処理対象データに対応する複数の出力画像のうち、その出力画像を表示させるための表示データが前記記憶部に記憶されていないものを出力画像単位で特定部に特定させる特定手段と、
前記処理対象データのうち、前記特定手段により特定される出力画像に対応するデータの累積量が前記第1所定量を超えない範囲で、前記特定手段に出力画像を特定させる特定制御手段と、して機能させ、
前記第1スレッドデータ生成手段は、
前記処理対象データのうち、前記特定手段により特定された出力画像に対応するデータについて、その出力画像を表示させるための表示データを第1スレッドにおいて生成部に生成させる、請求項3または4記載の情報処理プログラム。
The computer,
Storage control means for storing display data generated by the first thread data generation means or the second thread data generation means in a storage unit;
A specifying unit that causes the specifying unit to specify, in output image units, display data for displaying the output image among a plurality of output images corresponding to the processing target data;
A specifying control unit that causes the specifying unit to specify an output image within a range in which a cumulative amount of data corresponding to the output image specified by the specifying unit of the processing target data does not exceed the first predetermined amount; Function
The first thread data generation means includes
5. The display unit for generating display data for displaying an output image of the processing target data corresponding to the output image specified by the specifying unit in the first thread, according to claim 3 or 4. Information processing program.
前記コンピュータを、
前記処理対象データから前記第1データを除いた残りのデータ量が第2所定量を超えるかを判定部に判定させる判定制御手段と、
その判定制御手段により第2所定量を超えると判定される場合に、前記第1スレッドから前記オペレーティングシステムに対して要求させ、その第1スレッドおよび前記第2スレッドとは別に並行して処理が実行される前記スレッドであり、且つ、前記入力部および表示部に関する制御が制限されている第3スレッドを起動部に起動させる第3スレッド起動手段と、して機能させ、
前記第2スレッドデータ生成手段は、
前記処理対象データから前記第1データを除いた残りのデータのうち、一以上の出力画像全体に対応するデータにより構成され、且つ、総データ量が前記第2所定量以下である第2データについて、その出力画像を表示させるための表示データを生成部に生成させ、
前記コンピュータを、
前記第3スレッド起動手段により起動される第3スレッドにおいて、前記処理対象データから前記第1データおよび第2データを除いた残りのデータについて、その出力画像を表示させるための表示データを生成部に生成させる第3スレッドデータ生成手段、として機能させることを特徴とする請求項3から5の何れかに記載の情報処理プログラム。
The computer,
Determination control means for causing the determination unit to determine whether the remaining data amount excluding the first data from the processing target data exceeds a second predetermined amount;
When it is determined by the determination control means that the second predetermined amount is exceeded, the operating system is requested from the first thread, and processing is executed in parallel separately from the first thread and the second thread. The third thread starting means for starting the third thread, which is the thread to be controlled, and the control related to the input unit and the display unit is limited, to start up,
The second thread data generation means includes
Of the remaining data obtained by removing the first data from the processing target data, the second data is composed of data corresponding to one or more entire output images, and the total data amount is equal to or less than the second predetermined amount. , Causing the generation unit to generate display data for displaying the output image,
The computer,
In the third thread activated by the third thread activation means, display data for displaying the output image of the remaining data obtained by removing the first data and the second data from the processing target data is generated in the generation unit. 6. The information processing program according to claim 3, wherein the information processing program is caused to function as a third thread data generation unit to be generated.
前記コンピュータを、
前記第1スレッドにおいて、前記処理対象データのうち、データ形式がインターレース形式またはプログレッシブ形式の画像データについて、その出力画像を表示させるための表示データを生成部に生成させる第1スレッドデータ生成手段、として機能させ、
前記第2スレッドデータ生成手段は、
前記画像データの表示データであって、前記第1スレッドデータ生成手段により生成される表示データの出力画像よりも高画質の出力画像を表示させるための表示データを前記第2スレッドにおいて生成部に生成させ、
前記表示制御手段は、
前記第1スレッドデータ生成手段により前記画像データについての表示データが生成された場合に、その表示データを用いて出力画像を表示部に表示させ、その後、前記第2スレッドデータ生成手段により前記画像データについての表示データが生成された場合に、その表示データを用いて出力画像を表示部に表示させる、請求項1または2記載の情報処理プログラム。
The computer,
In the first thread, as the first thread data generation means for causing the generation unit to generate display data for displaying an output image of the processing target data with respect to image data whose data format is interlaced or progressive. Make it work
The second thread data generation means includes
Display data for displaying the image data, the display data for displaying an output image having a higher image quality than the output image of the display data generated by the first thread data generating unit, generated in the generation unit in the second thread Let
The display control means includes
When display data for the image data is generated by the first thread data generation unit, an output image is displayed on the display unit using the display data, and then the image data is displayed by the second thread data generation unit. 3. The information processing program according to claim 1, wherein when the display data is generated, an output image is displayed on the display unit using the display data.
前記コンピュータを、
前記処理対象データに対応する複数の出力画像うち、何れかの出力画像を印刷させる印刷指示が入力された場合に、前記第2スレッド起動手段により起動された第2スレッド、又は、前記第3スレッド起動手段により起動された第3スレッドを終了部に終了させるスレッド終了手段と、して機能させることを特徴とする請求項1から7の何れかに記載の情報処理プログラム。
The computer,
The second thread activated by the second thread activation unit or the third thread when a print instruction for printing any one of the plurality of output images corresponding to the processing target data is input The information processing program according to any one of claims 1 to 7, wherein the information processing program functions as thread ending means for ending the third thread activated by the activating means at an ending unit.
一のアプリケーションにより実行される処理の実行単位であるスレッドであって、その一のアプリケーションの実行開始に応じてオペレーティングシステムにより起動され、且つ、入力部および表示部に関する制御が許可されている第1スレッドにおいて、複数の出力画像に対応するデータが含まれる処理対象データを受け付ける受付手段と、
その受付手段により処理対象データが受け付けられる場合に、前記第1スレッドから前記オペレーティングシステムに対して要求させ、その第1スレッドとは別に並行して処理が実行される前記スレッドであり、且つ、前記入力部および表示部に関する制御が制限されている第2スレッドを起動する第2スレッド起動実行手段と、
その第2スレッド起動実行手段により起動される第2スレッドにおいて、前記処理対象データのうち、2以上の出力画像に対応するデータについて、その出力画像を表示させるための表示データを生成する第2スレッドデータ生成実行手段と、
その第2スレッドデータ生成実行手段によって、所定数の出力画像を表示させるための表示データが生成された場合に、前記第2スレッドから前記第1スレッドに対して表示データの生成終了を通知する通知手段と、
その通知手段による通知が前記第1スレッドへ通知された場合に、その第1スレッドにおいて、前記第2スレッドデータ生成実行手段により生成された表示データを用いて出力画像を表示する表示手段とを備えていることを特徴とする情報処理装置。
A thread that is an execution unit of processing executed by one application, and is activated by the operating system in response to the start of execution of the one application, and is allowed to control the input unit and the display unit Receiving means for receiving processing target data including data corresponding to a plurality of output images in a thread;
When the data to be processed is received by the receiving means, the thread is requested to the operating system from the first thread, and the process is executed in parallel separately from the first thread, and Second thread activation execution means for activating a second thread in which control relating to the input unit and the display unit is restricted;
In a second thread activated by the second thread activation execution means, a second thread that generates display data for displaying output images of data corresponding to two or more output images of the processing target data Data generation execution means;
When the second thread data generation execution means generates display data for displaying a predetermined number of output images, the second thread notifies the first thread of the end of display data generation. Means,
Display means for displaying an output image using display data generated by the second thread data generation execution means in the first thread when the notification by the notification means is notified to the first thread; An information processing apparatus characterized by that.
情報処理装置において実行される情報処理方法であって、
一のアプリケーションにより実行される処理の実行単位であるスレッドであって、その一のアプリケーションの実行開始に応じてオペレーティングシステムにより起動され、且つ、入力部および表示部に関する制御が許可されている第1スレッドにおいて、複数の出力画像に対応するデータが含まれる処理対象データを受付部に受け付けさせる受付制御ステップと、
その受付制御ステップにより処理対象データが受け付けられる場合に、前記第1スレッドから前記オペレーティングシステムに対して要求させ、その第1スレッドとは別に並行して処理が実行される前記スレッドであり、且つ、前記入力部および表示部に関する制御が制限されている第2スレッドを起動部に起動させる第2スレッド起動ステップと、
その第2スレッド起動ステップにより起動される第2スレッドにおいて、前記処理対象データのうち、2以上の出力画像に対応するデータについて、その出力画像を表示させるための表示データを生成部に生成させる第2スレッドデータ生成ステップと、
その第2スレッドデータ生成ステップによって、所定数の出力画像を表示させるための表示データが生成された場合に、前記第2スレッドから前記第1スレッドに対して表示データの生成終了を通知部に通知させる通知制御ステップと、
その通知制御による通知が前記第1スレッドへ通知された場合に、その第1スレッドにおいて、前記第2スレッドデータ生成ステップにより生成された表示データを用いて出力画像を表示部に表示させる表示制御ステップとを含む情報処理方法。
An information processing method executed in an information processing apparatus,
A thread that is an execution unit of processing executed by one application, and is activated by the operating system in response to the start of execution of the one application, and is allowed to control the input unit and the display unit In a thread, an acceptance control step for causing the accepting unit to accept processing target data including data corresponding to a plurality of output images;
When the processing target data is received by the reception control step, the thread is requested to the operating system from the first thread, and the process is executed in parallel separately from the first thread, and A second thread activation step for causing the activation unit to activate a second thread in which control relating to the input unit and the display unit is limited;
In the second thread activated by the second thread activation step, for the data corresponding to two or more output images among the processing target data, the generation unit generates display data for displaying the output images. A two-thread data generation step;
When the second thread data generation step generates display data for displaying a predetermined number of output images, the second thread notifies the notification unit of the end of display data generation to the first thread. A notification control step,
A display control step of causing the display unit to display an output image using the display data generated in the second thread data generation step in the first thread when a notification by the notification control is notified to the first thread. An information processing method including:
JP2011069002A 2011-03-25 2011-03-25 Information processing program, information processing apparatus, and information processing method Active JP5472177B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011069002A JP5472177B2 (en) 2011-03-25 2011-03-25 Information processing program, information processing apparatus, and information processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011069002A JP5472177B2 (en) 2011-03-25 2011-03-25 Information processing program, information processing apparatus, and information processing method

Publications (2)

Publication Number Publication Date
JP2012203744A true JP2012203744A (en) 2012-10-22
JP5472177B2 JP5472177B2 (en) 2014-04-16

Family

ID=47184665

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011069002A Active JP5472177B2 (en) 2011-03-25 2011-03-25 Information processing program, information processing apparatus, and information processing method

Country Status (1)

Country Link
JP (1) JP5472177B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380468A (en) * 2020-10-16 2021-02-19 华帝股份有限公司 Page loading method, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004004768A (en) * 2002-04-17 2004-01-08 Seiko Epson Corp Layout image display control method, display controller, and program
JP2005027087A (en) * 2003-07-03 2005-01-27 Canon Inc Image display method, image display device, storage medium, and program
JP2006264012A (en) * 2005-03-23 2006-10-05 Seiko Epson Corp Printing controlling apparatus, printing controlling method and printing controlling program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004004768A (en) * 2002-04-17 2004-01-08 Seiko Epson Corp Layout image display control method, display controller, and program
JP2005027087A (en) * 2003-07-03 2005-01-27 Canon Inc Image display method, image display device, storage medium, and program
JP2006264012A (en) * 2005-03-23 2006-10-05 Seiko Epson Corp Printing controlling apparatus, printing controlling method and printing controlling program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380468A (en) * 2020-10-16 2021-02-19 华帝股份有限公司 Page loading method, computer equipment and storage medium

Also Published As

Publication number Publication date
JP5472177B2 (en) 2014-04-16

Similar Documents

Publication Publication Date Title
JP6768769B2 (en) Information processing equipment, control methods, and programs
JP6214177B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP2015173354A (en) Information processing device, information processing device control method and program
JP2012203742A (en) Information processing program, information processing apparatus and information processing method
CN106899649B (en) Task request processing method and device and user equipment
US10122871B2 (en) Communication apparatus that executes both a first type of wireless communication and a second type of wireless communication, and control method for communication apparatus
JP7100154B6 (en) Processor core scheduling method, device, terminal and storage medium
CN113360807B (en) Page display method and device of mixed-mode mobile application and related equipment
WO2022143077A1 (en) Photographing method, system, and electronic device
EP3929719A1 (en) Information processing apparatus, control method for information processing apparatus, and program
US20160330628A1 (en) Communication apparatus for performing wireless communication, method for controlling communication apparatus, and storage medium
US10306101B2 (en) Information processing apparatus capable of establishing connection with internet based on first communication method and connection with external apparatus based on second communication method in parallel, and control method
JP2015157473A (en) Image forming apparatus, information processing method, and program
JP7238011B2 (en) Information processing device, application, control method and program for information processing device
US9706067B2 (en) Information processing terminal and non-transitory readable recording medium for file transfer and file processing
JP5472177B2 (en) Information processing program, information processing apparatus, and information processing method
US20190007596A1 (en) Information processing apparatus, information processing method, and program
JP6257424B2 (en) Information processing apparatus and computer program
JP2019016241A (en) Information processing apparatus, information processing system, and information processing program
US10805472B2 (en) Terminal apparatus, information processing system, and information transmission method
US20180048774A1 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
JP6878373B2 (en) Information processing equipment, applications, control methods and programs for information processing equipment
JP2014164421A (en) Information processing apparatus, printing apparatus, method for controlling information processing apparatus, method for controlling printing apparatus, and program
JP2005115620A (en) Task management method and electronic apparatus having task management means
JP7289888B2 (en) Information processing device, application, control method and program for information processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130304

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130919

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130924

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131015

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140120

R150 Certificate of patent or registration of utility model

Ref document number: 5472177

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150