Abstract:
A method with quick response time applied to the electronic apparatus is provided. The method includes: providing a storage configured for storing a plurality of images; providing a cache memory configured for temporarily storing decoded images; invoking the images that are previously to and next to the currently displayed image from the storage, decoding the invoked images, and storing the decoded images in the cache memory; receiving an instruction from user input; determining whether the instruction is for displaying a previous image or a next image; and invoking the decoded image of the image from the cache memory and displaying the selected image. A related electronic apparatus is also provided.

Description:
BACKGROUND 
       [0001]    1. Technical Field 
         [0002]    The disclosure relates to an electronic apparatus with quick response time and method thereof. 
         [0003]    2. Description of Related Art 
         [0004]    Nowadays, many electronic apparatuses, e.g., mobile phones, digital image frames, electronic readers (e-readers), are capable of storing and displaying electronic documents (e.g., digital images, digital texts, etc). 
         [0005]    At present, when people manipulate an image of an electronic document on these electronic apparatuses, these electronic apparatuses firstly invoke the image from a storage and decode the image, and then display the image. Due to size, cost, and power constraints, processors of these electronic apparatuses are not powerful enough to respond quickly to user commands such as when a user wants to manipulate an image with high resolution. 
         [0006]    Therefore, it is necessary to provide an electronic apparatus and a method to overcome the above-identified deficiency. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0007]    The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of an electronic apparatus with quick response time and method thereof. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views. 
           [0008]      FIG. 1  is a block diagram of an electronic apparatus with quick response time in accordance with an exemplary embodiment. 
           [0009]      FIG. 2  is a flowchart illustrating a method for providing quick response time applied to the electronic apparatus of  FIG. 1  in accordance with an exemplary embodiment. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0010]      FIG. 1  is a block diagram of an electronic apparatus  1  with quick response time in accordance with an exemplary embodiment. 
         [0011]    The electronic apparatus  1  includes a processor  10 , a display unit  20 , a storage  30 , an interface unit  40 , an input unit  50 , a power source  60 , and a cache memory  70 . The electronic apparatus  1  can be an e-reader, a mobile phone, or a digital image frame, etc. 
         [0012]    The power source  60  is configured for providing power to elements of the electronic apparatus  1 , such as the processor  10  and the display unit  20 . 
         [0013]    The interface unit  40  is configured for connecting an external apparatus (not shown). The external apparatus can be a storage card (e.g., a secure digital (SD) card, a compact flash (CF) card), or another electronic apparatus (e.g., a digital camera, a mobile phone, or a computer). 
         [0014]    The input unit  50  is configured for generating instructions in response to user input. The input unit  50  can include input keys, a touch pad, or the like. In the exemplary embodiment, the input unit  50  is a keyboard that includes a previous button (not shown) configured for generating a previous instruction to have a previous image displayed and a next button (not shown) configured for generating a next instruction to have a next image displayed, in response to user input. 
         [0015]    The storage  30  is configured for storing a plurality of images. 
         [0016]    The cache memory  70  is configured for temporarily storing decoded images. 
         [0017]    In the exemplary embodiment, the cache memory  70  temporarily stores the decoded images of the currently displayed image, the image that is previous to the currently displayed image (hereinafter, the previous image), and the image that is next to the currently displayed image (hereinafter, the next image). Accordingly, when the user browses through the images using the input unit  50 , for example, operates the previous button or the next button to have a previous or next image displayed, the electronic apparatus  1  can directly invoke the decoded image of the previously or next image from the cache memory  70  and display the previous or next image. As a result, the electronic apparatus  1  is available to display a selected image with quick response time. This will be described in detail below. 
         [0018]    The processor  10  includes a decoding processing unit  101 , and a display controlling unit  102 . 
         [0019]    When the electronic apparatus  1  enters an image display mode for displaying images, the decoding processing unit  101  invokes a first image which is to be displayed, decodes the image, then stores the decoded image in the cache memory  70 . The display controlling unit  102  then invokes the decoded image of the first image from the cache memory  70  and displays the first image on the display unit  20 . After displaying the first image, the decoding processing unit  101  invokes the previous and next image from the storage  30 , decodes the previous and next image, then stores the decoded images of the previous and next image in the cache memory  70 . That is, the cache memory  70  stores the decoded images of the currently displayed image, the previous image, and the next image. 
         [0020]    When the user browses through images using the input unit  50  in the image display mode, for example, operates the previous button or the next button to have a previous or next image displayed, the input unit  50  generates an instruction. The displaying controlling unit  102  receives the instruction and determines whether the instruction is a previous instruction or a next instruction. If a previous instruction is received, the display controlling unit  102  directly invokes the decoded image of the previous image from the cache memory  70  and displays the previous image on the display unit  20 . If a next instruction is received, the display controlling unit  102  directly invokes the decoded image of the next image from the cache memory  70  and displays the next image on the display unit  20 . 
         [0021]    In this embodiment, when the display controlling unit  102  displays a selected image, e.g., the previous image or the next image, the decoding processing unit  101  deletes the decoded images, except the decoded image of the selected image, from the cache memory  70 , invokes and decodes the images that are previous to and next to the selected image, then stores the decoded images that are previous to and next to the selected image in the cache memory  70 . 
         [0022]    In an alternative embodiment, when the display controlling unit  102  displays a selected image, e.g., the previous image, the decoding processing unit  101  deletes the decoded image of the image that is next to the previously displayed image from the cache memory  70 , invokes and decodes the image that is previous to the selected image, then stores the decoded image in the cache memory  70 . When the display controlling unit  102  displays a selected image, e.g., the next image, the decoding processing unit  101  deletes the decoded image of the image that is previous to the previously displayed image from the cache memory  70 , invokes and decodes the image that is next to the selected image, then stores the decoded image in the cache memory  70 . 
         [0023]      FIG. 2  is a flowchart illustrating a method with quick response time applied to the electronic apparatus  1 . 
         [0024]    In step S 201 , when the electronic apparatus  1  enters the image display mode, the decoding processing unit  101  invokes and decodes a first image which is to be displayed on the display unit  20 , then stores the decoded image in the cache memory  70 . The display controlling unit  102  sequentially invokes the decoded image of the first image from the cache memory  70 , and displays the first image on the display unit  20 . 
         [0025]    In step S 202 , after displaying the first image, the decoding processing unit  101  invokes and decodes the previous and next image, then stores the decoded images in the cache memory  70 . 
         [0026]    In step S 203 , the display controlling unit  102  determines whether a previous or next instruction is received, if yes, the procedure goes to step S 204 , if no, the procedure continues to execute step S 203 . 
         [0027]    In step S 204 , if a previous or next instruction is received, the display controlling unit  102  directly invokes the decode image of the previous or next image from the cache memory  70 , and displays the previous or next image on the display unit  70 . After displaying the selected image, the procedure goes to step S 202 . 
         [0028]    It should be noted that after the process goes from step S 204  to step S 202 , in step S 202 , in this embodiment, the decoding processing unit  101  deletes the decoded images except the decoded image of the selected image from the cache memory  70 , and invokes and decodes the images that are previous to and next to the selected image, then stores the decoded images in the cache memory  70 . 
         [0029]    In an alternative embodiment, in step S 204 , if the display controlling unit  102  displays the selected image, e.g., the previous image, in step S 202 , the decoding processing unit  101  deletes the decoded image of the image that is next to the previously displayed image from the cache memory  70 , invokes and decodes the image that is previous to the selected image, and stores the decoded image in the cache memory  70 . If the display controlling unit  102  displays the selected image, e.g., the next image, the decoding processing unit  101  deletes the decoded image of the image that is previous to the previously displayed image from the cache memory  70 , invokes and decodes the data image that is next to the selected image, then stores the decoded image in the cache memory  70 . 
         [0030]    Although the present disclosure has been specifically described on the basis of preferred embodiments and method thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.