Abstract:
According to an aspect of the present invention, a terminal apparatus includes: a limiting module that determines a limiting data size that is receivable data size by a destination terminal of a mail from the terminal apparatus; a editing module that generates a plurality of scenes from an original file to be send when data size of the mail including the original file is larger than the limiting data size; and a sending module that combines the generated scenes so that the data size does not exceed the limiting data size and sends the mail including the combined scene.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2008-270928, filed Oct. 21, 2008, the entire contents of which are incorporated herein by reference. 
       BACKGROUND 
       [0002]    1. Field 
         [0003]    The present invention relates to a terminal apparatus in which the data amount of an attachment file of an e-mail is limited and a method for transmitting data thereof. 
         [0004]    2. Description of the Related Art 
         [0005]    Among examples in which the data amount of a moving image file is limited is a moving image extraction apparatus capable of limiting the data amount in uploading a moving image over the Internet (refer to JP-A-2005-108193 (pages 1-6, FIGS. 1-5), for example). In this moving image extraction apparatus, limit capacity value is acquired from a server on the Internet and a section, corresponding to the limit capacity value, of a moving image file is displayed on the screen. The user shifts the section arbitrarily and thereby specifies a desired section, and the apparatus generates a new moving image file of the specified section and uploads it. 
         [0006]    Although the moving image extraction apparatus of JP-A-2005-108193 can generates a new moving image file of one arbitrarily extracted section corresponding to a limit, capacity from a moving image file, it cannot collect sections that are separated from each other. In general, favorite scenes of the user or scenes that user wants others to see do not necessarily continue and are in many cases separated from each other. Furthermore, the capacity limitation is imposed by a server when a file is uploaded over the Internet. 
         [0007]    Incidentally, as for mail communication from a terminal apparatus, there are capacity limitation due to a limit capacity of a transmission source contract communication company, capacity limitation due to a limit capacity of destination person contract communication company, and other kinds of capacity limitation. It is difficult for the user to recognize those kinds of limitation and send a mail that satisfies a resulting limit capacity. 
       SUMMARY OF THE INVENTION 
       [0008]    According to an aspect of the present invention, there is provided a terminal apparatus including: a limiting module that determines a limiting data size that is receivable data size by a destination terminal of a mail from the terminal apparatus; a editing module that generates a plurality of scenes from an original file to be send when data size of the mail including the original file is larger than the limiting data size; and a sending module that combines the generated scenes so that the data size does not exceed the limiting data size and sends the mail including the combined scene. 
     
    
     
       BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS 
         [0009]      FIG. 1  is a block diagram of a terminal apparatus  100  according to an exemplary embodiment. 
           [0010]      FIGS. 2A to 2C  illustrate editing of moving image files according to the exemplary embodiment. 
           [0011]      FIG. 3  is a flowchart showing the operation of a moving image file edit function  21  of the terminal apparatus  100  according to the exemplary embodiment. 
           [0012]      FIG. 4  is a flowchart showing the operation of a mail control function  11  of the terminal apparatus  100  according to the exemplary embodiment. 
       
    
    
     DETAILED DESCRIPTION 
       [0013]      FIG. 1  is a block diagram of a terminal apparatus  100  according to an embodiment of the present invention. The terminal apparatus  100  is composed of an antenna  1 , a wireless communication section  2 , a display unit  3 , a display control section  4 , a key manipulation unit  5 , a control section  10 , etc. 
         [0014]    The control section  10 , which is composed of a CPU, a ROM, a RAM, etc. (not shown), performs a mail control function  11 , a moving image file edit function  21 , etc. according to software stored in the ROM. The mail control function  11  has and performs a mail generating function  12 , a limit capacity determining function  13 , and a mail sending function  14 . The control section  10  has, as storage means, a company limit capacity storage unit  15 , a moving image file storage unit and an edit information storage unit  23 . 
         [0015]    Next, the individual constituent elements will be described. The antenna  1  is a wireless communication antenna. The wireless communication section  2  performs frequency conversion, modulation/demodulation, etc. on a radio signal and also performs communication (transmission/reception) processing on mail data etc. The display unit  3  is an LCD, for example. The display control section  4 , which is a display controller for the display unit  3 , controls display data according to the form of the display unit  3  and sends resulting data to the display unit  3 . The key manipulation unit  5  includes user manipulation keys. 
         [0016]    Constituent elements relating to a mail control function of the invention are the mail control function  11  and the company limit capacity storage unit  15 . The mail generating function  12  of the mail control function  11  processes user interfaces for specification of a mail destination, mail generation, designation of an attachment file, etc. The limit capacity determining function  13  determines a limit capacity of a current mail transmission by recognizing a limit capacity corresponding to a specified destination, a limit capacity corresponding to the transmission source terminal (self terminal), a limit capacity set by the user, etc. 
         [0017]    The mail sending function  14  activates the moving image file edit function  21  and has it cut out individual scenes if the data amount of an attachment file exceeds the determined limit capacity. The mail sending function  14  sends a mail by attaching, to it, a resulting edited moving image file that consists of cut-out scenes and satisfies the limit capacity. 
         [0018]    The company limit, capacity storage unit  15  is stored in advance with mail limit capacities of respective communication companies. That portion of mail address information which follows the mark “@” represents the name of a communication company. A communication company to which a terminal apparatus concerned is under contract can thus be known. For example, in the case of mail address information “xxx@ooo.ne.jp, ” a communication company can be identified from “ooo.” 
         [0019]    Constituent elements relating to a moving image tile edit function of the invention are the moving image file edit function  21 , the moving image file storage unit  22 , the edit information storage unit  23 , etc. 
         [0020]    The moving image file edit function  21  provides a user interface through which one or plural scenes to be left preferentially are specified and priority ranks of those scenes are registered when a small moving image file is edited from one original moving image file stored in the moving image file storage unit  22  according to user manipulations while the original moving image file is reproduced and displayed. 
         [0021]      FIGS. 2A to 2C  illustrate editing of a moving image file according to the embodiment of the invention.  FIG. 2A  shows the structure of one original moving image file which is stored in the moving image file storage unit  22  and consists control field moov and a data field mdat. 
         [0022]    When this moving image file is reproduced and display the user can see a displayed moving image that corresponds to the data field mdat. By making user edit manipulations, the user cuts out one or plural scenes to be left by specifying an arbitrary start point(s) and end point(s) and gives priority ranks to the respective scenes without duplication. 
         [0023]      FIG. 2B  shows resulting cut-out scenes and their priority ranks.  FIG. 2C  shows the structure of plural edited moving image files obtained by automatically performing edit processing on the cut-out scenes (see  FIG. 2B ) according to those priority ranks. An edited moving image file  51  is a file whose data field contains only scene C having the first priority rank. An edited moving image file  52  is a file whose data field contains scenes A and C having the second and first priority ranks, respectively, that are arranged in the same time order as in the original moving image file. An edited moving image file  53  is a file whose data field contains scenes A, B, and C having the second, third, and first priority ranks, respectively, that are arranged in the same time order as in the original moving image file. 
         [0024]    If the data amount of an attachment file specified by the user in sending a mail exceeds a limit capacity, one of plural edited moving image files each of which contains one or plural scenes selected according to priority order starting from a scene having the first priority rank is employed as an attachment file to be sent. Therefore, it is not necessary to generate substance data of all of the plural edited moving image files in advance; it is sufficient to generate substance data of an optimum edited moving image file that satisfies the limit capacity in sending a mail actually and to send it as an attachment file. Naturally, substance data of all of the plural edited moving image files may be generated in advance and stored in a memory. 
         [0025]    Next, the moving image file edit function  21  will be described in detail.  FIG. 3  is a flowchart showing the operation of the moving image file edit function  21  of the terminal apparatus  100  according to the embodiment of the invention. The moving image file edit function  21  provides a user interface for user editing. 
         [0026]    Another application function activates the moving image file edit function  21  after specifying a subject moving image file for the moving image file edit function  21 . 
         [0027]    The moving image file edit function  21  operates in response to user manipulations and hence takes edit work time. First, at step S 11 , reproduction and display of one original moving image file in the moving image file storage unit  22  that has been specified by the mail control function  11  is started. Looking at the displayed moving image, the user specifies start points and end points of scenes he or she wants to leave and gives priority ranks to the respective scenes by making key manipulations. 
         [0028]    In response to the key manipulations by the user, the moving image file edit function  21  extracts corresponding positions in the original moving image file of each scene at step S 12  and recognizes the priority ranks of the respective scenes. The moving image file edit function  21  stores the positions and the priority rank of each scene in the edit information storage unit  23  at step S 14  and finishes the reproduction and display of the moving image file at step S 15 . 
         [0029]      FIG. 4  is a flowchart showing the operation of the mail control function  11  of the terminal apparatus  100  according to the embodiment of the invention. As soon as the user starts mail generation, the mail control function  11  is activated and the mail generating function  12  starts to operate first. At step S 31 , the mail generating function  12  checks key manipulations by the user, recognizes an input destination, generates a mail, and recognizes an instruction as to an attachment file which is an original moving image file. As a result of the above processing which has been performed in response to the user manipulations, the destination person is determined and the user instruction as to the attachment file is recognized. 
         [0030]    Then, the limit capacity determining function  13  starts to operate. At step S 32 , the limit capacity determining function  13  checks key manipulations by the user and recognizes an input user-set limit capacity. Although in the embodiment step S 32  is executed every time a mail is generated, it may be executed when, for example, initial settings are made. 
         [0031]    Since the destination person has been determined, at step S 33  the limit capacity determining function  13  recognizes a contract communication company of the destination person on the basis of that portion of mail address information of the destination person which follows the mark “@” and recognizes its limit capacity by referring to the company limit capacity storage unit 
         [0032]    At step S 34 , the limit capacity determining function  13  recognizes a contract communication company of the self terminal apparatus  100  on the basis of that portion of mail address information of the self terminal  100  which follows the mark “@” and recognizes its limit capacity by referring to the company limit capacity storage unit  15 . 
         [0033]    At step S 35 , the limit capacity determining function  13  determines that the limit capacity of the current mail transmission should be a smallest one of the limit capacities recognized at steps S 32 -S 34 . 
         [0034]    Then, the mail sending function  14  starts to operate. At step S 36 , the mail sending function  14  judges whether the data amount of the original moving image file that was specified as the attachment file by the user at step S 31  is within the determined limit capacity. 
         [0035]    If the data amount of the original moving image file is within the limit capacity, at step S 37  the mail sending function  14  sends, as it is, the original moving image file that was specified as the attachment file by the user at step S 31 . Then, the process is finished. 
         [0036]    If the data amount of the original moving image file is larger than the limit capacity, at step  38  the mail sending function  14  designates, for the moving image file edit function  21 , the original moving image file specified at step S 31 . At. step S 39 , the mail sending function  14  activates the moving image file edit function  21 . 
         [0037]    At step S 39 , as described above with reference to  FIG. 3 , the moving image file edit function  21  causes the user to cut out scenes and give priority ranks to the respective scenes and stores positions and the priority rank of each scene in the edit information storage unit  23 . 
         [0038]    At step S 40 , the mail sending function  14  refers to the edit information storage unit  23  and calculates data amounts of the respective cut-out scenes. At step S 41 , the mail sending function  14  selects a largest edited moving image file whose data amount falls within the limit capacity determined at step S 35  from plural edited moving image files each of which is obtained by combining one or plural scenes selected according to the priority order starting from a scene having the first priority rank. The selection is done in the following manner. Whether the data amount of the edited moving image file falls within the limit capacity is judged one by one starting from an edited moving image file having a largest or smallest data amount. The selection processing is finished as soon as largest edited moving image file whose data amount falls within the limit capacity has been found. It is not necessary to calculate data amounts of the remaining edited moving image files. 
         [0039]    At step S 42 , the mail sending function.  14  generates substance data of the thus-selected edited moving image file. At step S 43 , the mail sending function  14  sends the generated edited moving image file. Then, the process is finished. 
         [0040]    In the embodiment of the invention, in a situation that the data amount of a file to be attached to a mail should satisfy various limitations such as a limitation relating to a transmission source contract communication company, a limitation relating to a destination person contract communication company, and a user-set limitation, a limit capacity of the intended mail transmission is determined on the basis of destination person information and transmission source information that are determined at the time of a mail transmission, the user-set limitation, etc. An edited moving image file that satisfies the thus-determined limit capacity is generated and sent. This procedure makes it possible to avoid such trouble that the mail cannot be sent because its data amount does not satisfy some limit capacity. 
         [0041]    Among the above-mentioned various limit capacities, the limit capacity relating to the destination person contract communication company may be employed as a limit capacity of the intended mail transmission. 
         [0042]    Although in the embodiment the limit capacities of the contract communication companies are stored in the company limit capacity storage unit  15  in advance, those limit capacities may be updated automatically using a proper system or updated by a user manipulation because they are subject to change. 
         [0043]    Where the terminal apparatus of a destination person is a personal computer, for example, and is not a cell phone, in many cases that portion of its mail address which follows the mark “@” does not represent a communication company. In this case, the user may check a limit capacity of the destination person side and register it in advance by a user manipulation. In general, terminal apparatus other than cell phones have large limit capacities. 
         [0044]    Where, for example, d limit capacity on the destination person side is unknown, the following procedure may be employed. The user tries to send a file and adjusts the data amount of file according to whether the mail has been sent successfully or not. The data amount of a mail that has been sent successfully is employed as a limit capacity. Once a limit capacity is registered, the user can send mails without any disadvantageous. 
         [0045]    The invention can be applied to cell phones, PHS phones, PDAs, personal computers, and other terminal apparatus capable of communication. 
         [0046]    The invention makes it possible to edit an attachment file of a mail so that it satisfies a smallest limit capacity among various limit capacities that occur depending on a mail communication situation, and thereby allows the user to send an attachment file reliably without the need for paying attention to a limit capacity in generating a mail.