The disclosures of the following applications are herein incorporated by reference:
1. Field of the Invention
The present invention relates to an electronic still camera having a cache control function for controlling a cache in a detachable recording medium.
2. Description of Related Art
There are recording media known in the related art having a cache function engaged in conjunction with a volatile memory installed therein so as to assure efficient data record processing. Japanese Laid Open Patent Application No. H09-97199 and Japanese Laid Open Patent Application No. 2003-101969 each disclose a technology for efficiently executing data record processing and data reproduction processing by utilizing a volatile memory in a recording medium installed in a personal computer or the like.
However, the function of the volatile memory in a detachable recording medium (portable recording medium) loaded in an electronic still camera is not utilized to the maximum advantage.
An electronic still camera according to the first embodiment of the invention comprise: a detection unit that detects whether or not a detachable recording medium has a cache function; and a validating unit that validates the cache function when the detection unit detects that the recording medium has the cache function.
According to the second aspect of the invention, it is preferred that the electronic still camera according to the first aspect further comprises: a comparison unit that compares a first processing time length required to execute processing when the cache function is validated with a second processing time length required to execute the processing when the cache function is not validated, and in this electronic camera the validating unit validates the cache function if the first processing time length is smaller than the second processing time length.
According to the third embodiment of the invention, it is preferred that the electronic still camera according to the second embodiment further comprises: an arithmetic operation unit that determines through arithmetic operation the first processing time length and the second processing time length.
According to the fourth embodiment of the invention, it is preferred that the electronic still camera according to the first embodiment further comprises: an instruction unit that issues an instruction for a cache flush to the recording medium at a photographing operation completion.
According to the fifth embodiment of the invention, it is preferred that the electronic still camera according to the first embodiment further comprises: an instruction unit that issues a cache flush instruction each time a photographing operation in a single shot photographing mode completes and issues the cache flush instruction when a continuous shooting operation in a continuous shooting mode completes.
According to the sixth embodiment of the invention, it is preferred that the electronic still camera according to the first embodiment further comprises: an instruction unit that issues a cache flush instruction in synchronization with a completion of image recording processing executed to record image into the recording medium.
According to the seventh embodiment of the invention, it is preferred that in the electronic still camera according to the sixth embodiment, the instruction unit issues the cache flush instruction after photographic information transmitted to the recording medium in immediate succession to image data, is completely recorded.
According to the eighth embodiment of the invention, it is preferred that the electronic still camera according to the first embodiment further comprises: an instruction unit that issues a cache flush instruction each time a predetermined time interval elapses.
According to the ninth embodiment of the invention, it is preferred that the electronic still camera according to the fourth embodiment further comprises: a power supply control unit that ends power supply from a camera body to the recording medium after cache flush processing executed in response to the cache flush instruction completes.
According to the tenth embodiment of the invention, it is preferred that the electronic still camera according to the first embodiment further comprises: a connection detection unit that detects a connection with an external device; and an invalidating unit that invalidates the cache function having been validated by the validating unit when the connection detection unit detects the connection with the external device.
According to the eleventh embodiment of the invention, it is preferred that the electronic still camera according to the tenth embodiment further comprises: a data volume instruction unit that issues an instruction to adjust a volume of data to be transmitted to a camera body from the external device to a volume smaller than a capacity of the cache when the connection detection unit detects the connection with the external device.
According to the twelfth embodiment of the invention, it is preferred that the electronic still camera according to the second embodiment further comprises: a connection detection unit that detects a connection with an external device; and an invalidating unit that invalidates the cache function having been validated by the validating unit when the connection detection unit detects the connection with the external device.
According to the thirteenth embodiment of the invention, it is preferred that the electronic still camera according to the twelfth embodiment further comprises: a data volume instruction unit that issues an instruction to adjust a volume of data to be transmitted to a camera body from the external device to a volume smaller than a capacity of the cache when the connection detection unit detects the connection with the external device.
An electronic still camera according to the fourteenth embodiment of the invention comprises: a detection unit that detects whether or not a detachable recording medium has a cache function; a validating unit that validates the cache function when the detection unit detects that the recording medium has the cache function; a connection detection unit that detects a connection with an external device; and an invalidating unit that invalidates the cache function having been validated by the validating unit when the connection detection unit detects the connection with the external device.
According to the fifteenth embodiment of the present invention, it is preferred that in the electronic still camera according to the second invention, the processing includes transmitting data to the recoding medium and recording the transmitted data in the recording medium.
In reference to
The recording medium 110 is a memory device such as a memory card that can be loaded into/unloaded from the electronic still camera 100. The recording medium 110 includes a volatile memory 111, a nonvolatile memory 112 and a memory system control unit 113. The electronic still camera 100 supplies power to the recording medium 110 via the recording medium control unit 102. The volatile memory 111 is a cache memory constituted with an SRAM, which is a high-speed memory used to hold data temporarily. While a large volume of data can be stored into the nonvolatile memory 112 constituted with a flash memory, a magnetic disk or the like, its processing speed is not as high as that of the volatile memory 111. The memory system control unit 113 controls the volatile memory 111 and the nonvolatile memory 112 and writes data temporarily stored (cached) in the volatile memory 111 into the nonvolatile memory 112 as necessary.
The cache memory 111 enters a cache ON state or a cache OFF state in response to an instruction provided by a CPU 211 (see
The photographic control unit 101 includes an interchangeable lens 201, an image sensor 202 constituted with a CCD image sensor or the like, a CCD driver 203 that controls data storage and data read at the CCD, a pre-process circuit 204 that executes signal amplification, black level adjustment and the like, an A/D converter 205 that converts analog data to digital data, an image processing unit 206 constituted with an ASIC or the like that executes image processing such as γ correction and white balance adjustment and the memory 207 constituted with a buffer where image data are recorded as compressed files in the JPEG format or a DRAM which functions as a CPU program memory.
The recording medium control unit 102 includes a card I/F 208 which functions as an interface with the detachable storage medium 110. The communication control unit 103 includes a PC I/F 209 which functions as an interface with an externally connected device such as a personal computer in compliance with USB standards. The display control unit 104 includes a color monitor 210 constituted with an LED, an LCD or a TFT, whereas the power control unit 105 includes a power source 213. In addition, the system control unit 106 includes the CPU 211, an operation button 212 by which either a single shot mode or a continuous shooting mode is selected and the like.
—Initialization Processing—
In reference to the flowchart presented in
In step S11, a decision is made based upon a signal from the card I/F 208 as to whether or not the recording medium 110 is loaded. If a negative decision is made, i.e. if the recording medium 110 is judged not to be loaded, the operation waits in standby. If an affirmative decision is made, i.e., if the recording medium 110 is judged to be loaded, the operation proceeds to step S12.
In step S12, power is supplied to the recording medium 110 via the card I/F 208, and then the operation proceeds to step S13. In step S13, card information indicating the recording capacity of the recording medium 110, the processing speed of the recording medium, whether or not the recording medium 110 is equipped with the cache memory 111 and the like is obtained via the card I/F 208, before the operation proceeds to step S14.
In step S14, a decision is made based upon the card information obtained in step S13 as to whether or not the recording medium 110 includes the cache memory 111. If an affirmative decision is made, i.e., if the recording medium 110 is judged to include the cache memory 111, the operation proceeds to step S15.
In step S15, a cache ON instruction signal is output to the memory system control unit 113 via the card I/F 208, and then the operation proceeds to step S16. In step S16, an Ack signal generated in response to the cache ON instruction signal is received from the recording medium 110 via the card I/F 208. Once the processing in step S16 is completed, the initialization processing for the recording medium 110 ends. It is to be noted that if a negative decision is made in step S14, i.e., if the recording medium 110 is judged not to include the cache memory 111, the initialization processing for the recording medium 110 ends without executing steps S15 and S16.
—Image File Record Processing—
An image obtained through a photographing operation is compressed into the JPEG format or the like via the CPU 211 and then the compressed image is stored into the memory 207 as image data in the electronic camera. Subsequently, the CPU 211 creates an image file by adding information indicating the photographing conditions and the like to the image data and the image file thus created is written into the recording medium 110.
The following is an explanation given in reference to the flowchart presented in
In step S21, the CPU 211 issues a file open instruction to the memory system control unit 113. Consequently, a file name under which the data to be transferred are to be written is registered in the cache memory 111. Subsequently, the operation proceeds to step S22.
In step S22, an Ack signal generated by the memory system control unit 113 in response to the file open instruction is received from the memory system control unit 113 and then the operation proceeds to step S23. The Ack signal is output as soon as the file name is written in the cache memory 111.
In step S23, a specific image file in the memory 207, divided into, for instance, 512-byte data units, is output to the memory system control unit 113 and the data are sequentially recorded into the recording medium 110. Once all the data are recorded, the operation proceeds to step S24. It is to be noted that the data record processing executed in step S23 is to be described in detail later. In addition, the following explanation is provided by referring to the individual sets of data in the single image file, each constituted with 512-byte data resulting from the image file division, as data 1, data 2, . . . data n in the order matching the sequence through which the individual sets of data are output to the recording medium 110.
Upon ending the image data record processing in step S23, the CPU 211 issues a file close instruction to the memory system control unit 113 in step S24 and then the operation proceeds to step S25. The file close instruction equates to a photographing operation end. It is to be noted that as the file close instruction, photographing operation-related information (photographic information) such as DPOF (digital print order format) constituted with image size information, device information, recording time point information and the like, and protect information is transmitted to the memory system control unit 113.
In step S25, an Ack signal output from the memory system control unit 113 is received before the operation proceeds to step S26. It is to be noted that this Ack signal is output as soon as the photographic information is written into the cache memory 111.
In step S26, a decision is made via the card I/F 208 as to whether or not the recording medium 110 is in the cache ON state. If an affirmative decision is made, i.e., if the recording medium is judged to be in the cache ON state, the operation proceeds to step S27. If, on the other hand, a negative decision is made, i.e., if the recording medium is judged to be in the cache OFF state, the operation proceeds to step S23.
In step S27, a decision is made as to whether or not the photographic control unit 101 is engaged in a continuous shooting operation. If an affirmative decision is made, i.e., if a continuous shooting operation is judged to be in progress, the operation proceeds to step S23. If a negative decision is made, i.e., if it is decided that a continuous shooting operation is not underway, the operation proceeds to step S28.
In step S28, a cache flush instruction signal is output to the memory system control unit 113 before the operation proceeds to step S29. The term “cache flush” is used to refer to processing executed to write all the data written in the cache memory 111 into the nonvolatile memory 112. The cache flush is executed in synchronization with the photographing operation end, i.e., the image record processing end. As a result, the data having been recorded in the cache memory 111 in the overflow-cleared state are written into the nonvolatile memory 112.
In step S29, an Ack signal output from the memory system control unit 113 in response to the cache flush instruction signal is received and then the operation proceeds to step S30.
In step S30, a decision is made as to whether or not a cache flush end signal has been input from the memory system control unit 113. If an affirmative decision is made, i.e., if a cache flush end signal is judged to have been input, the operation proceeds to step S31. If a negative decision is made, on the other hand, the operation waits in standby for an input of a cache flush end signal.
In step S31, a decision is made as to whether or not a write operation or a read operation is in progress at the recording medium 110. If an affirmative decision is made, i.e., if it is decided that the write operation or the read operation has not ended, the operation proceeds to step S23. If a negative decision is made, i.e., if it is decided that the write operation or the read operation has ended, the operation proceeds to step S32.
In step S32, a power supply end signal indicating that the power supply to the recording medium 110 is to end is output to the card I/F 208. As a result, the card I/F 208 turns off the power supply to the recording medium 110.
The data record processing executed in step S23 in
Upon receiving in step S22 the Ack signal output from the memory system control unit 113 in response to the file open signal, the CPU 211 outputs the data 1 constituted with 512-byte data to the memory system control unit 113 in step S231.
In step S331, the data 1 are input to the memory system control unit 113, which then records the data 1 input thereto into the cache memory 111. Once the data are recorded, the operation proceeds to step S332 in which the memory system control unit 113 outputs an Ack signal to the CPU 211.
After the CPU 211 receives the Ack signal from the memory system control unit 113 in step S232, the operation proceeds to step S233. In step S233, the CPU 211 outputs the data 2 constituted with 512-byte data to the memory system control unit 113.
In step S333, the data 2 are input to the memory system control unit 113, which then records the data 2 input thereto into the cache memory 111. Once the data are recorded, the operation proceeds to step S334 in which the memory system control unit 113 outputs an Ack signal to the CPU 211.
After the CPU 211 receives the Ack signal from the memory system control unit 113 in step S234, the operation proceeds to step S235. In step S235, the CPU 211 outputs the data 3 constituted with 512-byte data to the memory system control unit 113.
In step S335, the data 3 are input to the memory system control unit 113, which then records the data 3 input thereto into the cache memory 111. By this time, the file name, the data 1 and the data 2 are already written in the cache memory 111 and if the cache memory does not have any available capacity, the memory system control unit 113 records the data 3 into the cache memory 113 as it concurrently transfers the file name to the nonvolatile memory 112. Namely, as a data overflow occurs at the cache memory 111, data are written into the nonvolatile memory 112. Once the data 1 are written into the nonvolatile memory 112, the operation proceeds to step S336 in which the memory system control unit 113 outputs an Ack signal to the CPU 211.
Subsequently, the processing described above is repeatedly executed until the last set of data n is recorded in the cache memory 111, the data n−3 are written into the nonvolatile memory 112 and the memory system control unit 113 outputs an Ack signal to the CPU 211, and the operation then proceeds to step S24.
—External Device Connection—
Next, the processing executed when the electronic still camera is connected to an external device such as a personal computer or a wireless LAN via the PC I/F 209 is explained in reference to the flowchart presented in
In step S41, a decision is made as to whether or not a plug IN signal output from the PC I/F 209 has been input. If a negative decision is made, i.e., if no plug IN signal has been input and thus the electronic still camera is judged not to be connected with an external device, the operation proceeds to step S42. If an affirmative decision is made, i.e., if a plug IN signal has been input and thus the electronic still camera is judged to be connected with an external device, the operation proceeds to step S43.
In step S42, a cache ON instruction signal is output to the memory system control unit 113 via the card I/F 208, so as to validate the cache memory 111. Namely, the cache function is engaged. In step S43, a cache OFF instruction signal is output to the memory system control unit 113 via the card I/F 208, so as to invalidate the cache memory 111. In other words, the cache function is disengaged. It is to be noted that if the cache function is invalidated, data are temporarily stored in the cache memory 111 and the data stored in the cache memory are transferred and recorded into the nonvolatile memory 112 in response to a write command.
The procedure through which an image file originating from an externally connected device is recorded into the recording medium 110 in the cache OFF state is now explained in reference to
Sets of data A through E in
The following advantages are achieved in the electronic still camera in the embodiment described above.
(1) The cache function of the cache memory 111 included in the detachable recording medium 110 is validated in response to an instruction issued by the CPU 211. In the related art, even if the recording medium 110 loaded into a camera or the like includes a cache memory 111, the cache function is not validated and instead, each time to data are input, the input data are written into the nonvolatile memory 112 as shown in
(2) A cache flush is executed for any data recorded in the cache memory 111 at the photographing operation end. Namely, while the photographing operation is in progress, a cache flush is disallowed and the data transfer to the recording medium 110 alone is executed. The cache flush is then executed only after the last set of data is transferred to the recording medium 110. This means that the cache flush can be executed with a lighter processing load compared to the load of cache flush processing executed each time data are transferred. As a result, data can be recorded into the recording medium 110 with a high level of efficiency.
(3) Any data stored in the cache memory 111 constituted with a volatile memory are lost as soon as the power supply to the recording medium 110 is turned off. In the embodiment, the CPU 211 outputs the power supply end signal to end the power supply to the recording medium 110 only after a cache flush processing end signal originating from the memory system control unit 113 is input thereto. As a result, all the photographic data can be saved reliably by ensuring that no data are lost before being recorded.
(4) While image data for a single image are recorded as a file into the recording medium 110 in the electronic still camera 100, the processing load of the cache flush processing is bound to be significant if the cache flush is executed each time a file is recorded. In particular, if the cache flush is executed in correspondence to each image file while the photographing operation in the continuous shooting mode is in progress, the continuous shooting operation is bound to be adversely affected to result in a lowered frame speed. Accordingly, the cache flush processing is executed in correspondence to each image as long as the photographing operation is executed in the single shot mode but the cache flush processing is executed only after the entire photographing operation is completed if the photographing operation is executed in the continuous shooting mode in the embodiment. Thus, the processing load of the cache flush processing is reduced and also, execution of the cache flush processing is not allowed to adversely affect the photographing operation.
(5) The cache flush processing is executed only after the file close instruction data including the photographic information such as DPOF are recorded into the cache memory 111. Thus, the information needed when printing the image can be reliably recorded into the recording medium 110.
(6) An externally connected device such as a personal computer transfers data by dividing the data into smaller data units and thus, the data sizes of the individual sets of data transferred from the personal computer are bound to be small. For this reason, the overhead of the cache flush processing is bound to be significant if the cache memory stays in the cache ON state. Accordingly, the cache is turned off when an external device such as a personal computer is connected to the electronic still camera, so as to completely eliminate the overhead related to the cache flush processing.
(7) The cache memory 111 is set in the cache OFF state when an external device such as a personal computer is connected to the electronic still camera and transfer data are divided into data units with data volumes smaller than the capacity of the cache memory 110 for the data transfer under these circumstances. In the cache OFF state, sets of data resulting from the division and transferred to the recording medium are temporarily stored into the cache memory 111. This means that as a set of data with a data volume smaller than the capacity of the cache memory 110 is transferred, the particular set of data can be stored into the cache memory 111 and then recorded into the nonvolatile memory 112 through a single processing session. As a result, only a single write processing session needs to be executed for each set of data among sets of data a, b and c assuming data sizes smaller than the capacity of the cache memory 111 and thus, a total of only three write processing sessions needs to be executed for the entire data, as shown in
However, if data with a data size greater than the capacity of cache memory 111 are transferred, only a portion of the data, the volume of which matches the capacity of the cache memory 111, is stored into the cache memory 111. The data thus stored are then written into the nonvolatile memory 112. Subsequently, the excess portion of the data beyond the capacity of cache memory 111, which has not been stored into the cache memory 111 earlier, is stored in the cache memory 111 and is recorded into the nonvolatile memory 112. In other words, a set of data resulting from the data division and transferred to the recording medium needs to be stored into the cache memory 111 and written into the nonvolatile memory 112 through multiple write processing sessions. For instance, sets of data A and B with matching data sizes, resulting from data division and transferred to the recording medium each require two write processing sessions, as illustrated in
The electronic still camera achieved in the embodiment described above allows for the following variations (1) through (6).
(1) Depending upon the volume of image data to be transferred, the length of time required for the processing may be reduced by invalidating the cache function rather than by validating the cache function. Accordingly, if it is decided during the initialization processing executed for the recording medium 110 that the write processing at the nonvolatile memory 112 can be executed at higher speed than the write processing at the cache memory 111 in the recording medium 110, the CPU 211 may turn off the cache function. The processing executed under these circumstances is now explained.
Decision-making executed with regard to the write processing speed in the cache ON state and the write processing speed in the cache OFF state when transferring image data from the electronic still camera 100 to the recording medium 110 is now described.
Image data with a data size L recorded in the memory 207 of the electronic still camera 100 are divided into data units matching specific write units S with which data are written in the recording medium 110 and the image data are thus transferred in the data units to the recording medium 110 by the CPU 211. The write units S may correspond to, for instance, the write sector size assumed at the recording medium 110. The CPU 211 transfers n sets of data with the sector size S in succession through a single transfer processing session. The n sets of data with the sector size S transferred through this transfer processing session may be regarded as a single group of data, and the data size of such a group of data may be referred to as a cluster size. M representing the cluster size may be expressed as follows.
M=S×n (1)
Assuming that the image data are constituted with m groups of data with the cluster size M, the data size L of the image data can be expressed as follows.
L=M×m=S×n×m (2)
Next, in reference to
The lengths of processing time required when the CPU 211 transfers and records data with the sector size S into the specific recording medium 110 are explained in reference to
d=b+c (3)
It is to be noted that the time b is the length of time required when writing the data into the cache memory 111 and the time c is the length of time required to execute the cache flush, i.e., the length of time required when writing the data present in the cache memory 111 into the nonvolatile memory 112.
As shown in
In reference to
T1=n×a (4)
The length of time T2 required to write data with a cluster size M into the cache memory 111 in the cache ON state is expressed as follows.
T2=n×b+c (5)
As explained earlier, the length of processing time required to write a single set of data with the sector size S is smaller in the cache ON state than in the cache OFF state. A single set of data with the cluster size M can be written over a smaller length of time in the cache ON state, as shown in
The length of time a required when writing data into the nonvolatile memory 112 in the cache OFF state, the length of time b required when writing data into the cache memory 111 in the cache ON state and the length of time c required for the cache flush processing mentioned above each assume a value determined in correspondence to the characteristics of the cache memory 111 and the nonvolatile memory 112. The data write time lengths a and b and the flush time length c are all recorded into a ROM, a NAND memory or the like (not shown) when the recording medium 110 is manufactured.
During the initialization processing for the recording medium 110, the CPU 211 reads out the data write time lengths a and b and the flush time length c from the system control unit 113. The CPU 211 then compares the time length T1 with the time length T2 calculated as expressed in (4) and (5). If the comparison results indicate that the time length T1 is greater than the time length T2, i.e., if it is decided that the data write processing can be executed faster in the cache ON state than in the cache OFF state, the CPU 211 validates the cache memory 111 in the recording medium 110. If, on the other hand, the time length T1 is judged to be equal to or less than the time length T2, the length of time required for the data write processing will be greater in the cache ON state than in the cache OFF state. Accordingly, the CPU 211 does not validate the cache memory 111 in the recording medium 110.
(2) Instead of recording the data write time lengths a and b required to write image data into the recording medium 110 and the flush time length c into the recording medium 110, the time lengths T1 and T2 required when processing image data assuming the cluster size M may be recorded. In such case, the CPU 211 is able to determine whether the write processing can be executed faster in the cache ON state or in the cache OFF state without having to calculate the time lengths T1 and T2.
(3) Instead of transferring image data divided into data portions each matching the write unit S determined in correspondence to the sector size of the recording medium 110, the image data may be divided into data portions each corresponding to the minimum transfer unit P by the electronic still camera 100 for purposes of data transfer irrespective of the sector size S assumed in the recording medium 110. In such a case, during the initialization processing executed for the recording medium 110, the CPU 211 transfers image data with a data volume matching the minimum transfer unit P from the memory 207 to the recording medium 110 to measure the length of time required for the write processing.
The write processing time measurement mentioned above is now described in further detail. The CPU 211 sets the recording medium 110 in the cache OFF state and transfers image data with a data volume matching the minimum transfer unit P to the cache memory 111. The CPU 211 then measures the length of time required to write the transferred image data into the nonvolatile memory 112. The length of time thus measured is the data write time length a. In addition, the CPU 211 sets the recording medium 110 in the cache ON state, transfers a single set of image data corresponding to the minimum transfer unit P to the cache memory 111, flushes the cache memory 111 and measures the length of time d required to write the data into the nonvolatile memory 112. Also, the CPU 211 transfers n sets of image data each corresponding to the minimum transfer unit P to the cache memory 111, flushes the cache memory 111 and measures the length of time e required to write the n sets of data into the nonvolatile memory 112. Subsequently, the CPU 211 calculates the flush time length c as expressed below.
c=((d×n)−e)/(n−1) (6)
Based upon the processing time length d having been measured and the flush time length c calculated as expressed in (6) above, the CPU 211 calculates the data write time length b required to write data into the cache memory 111, as expressed below.
b=d−c (7)
The CPU 211 records the data write time length a measured as described above and the data write time length b and the flush time length c calculated based upon the measurement results into a specific recording area within the CPU 211 or into a specific recording area in the recording medium 110. Subsequently, the CPU 211 references these time lengths a, b and c whenever it needs to determine whether to set the recording medium 110 in the cache ON state or in the cache OFF state.
(4) The CPU 211 may measure the time lengths T1 and T2 required to write image data assuming the cluster size M as it records the image data into the recording medium 110. In such a case, the CPU 211 transfers a first set of image data to the recording medium 110 in the cache OFF state and measures the length of time T1 required to write the image data assuming the cluster size M. The CPU 211 then transfers a second set of image data to the recording medium 110 in the cache ON state and measures the length of time T2 required to write image data assuming the cluster size M. The CPU 211 compares the time length T1 with the time length T2 both obtained through the measurement and selects either the cache ON state or the cache OFF state. Namely, if the time length T1 indicates a smaller value, the CPU 211 sets the recording medium 110 in the cache OFF state, whereas if the time length T2 indicates a smaller value, the CPU 211 selects the cache ON state for the recording medium 110. A third set of image data and subsequent sets of image data are then transferred to the recording medium in the selected state.
After selecting the cache ON state or the cache OFF state based upon the time lengths T1 and T2 ascertained through the measurement, as described above, the CPU 211 may record state information indicating the setting state selected for the recording medium 110 into a specific recording area in the CPU 211 or the recording medium 110. Once the state information is recorded as described above, the CPU 211 only needs to read out the state information having been recorded and indicate either the cache ON state or the cache OFF state to the recording medium 110 whenever the same recording medium 110 is subsequently loaded into the electronic still camera 100. In other words, the CPU 211 does not need to re-execute the time measurement or the time length comparison multiple times.
(5) The time lengths T1 and T2 may be measured as described below by switching from the cache OFF state to the cache ON state while the CPU 211 transfers image data to the recording medium 110. Namely, the CPU 211 transfers a first set of image data assuming the cluster size M to the recording medium 110 in the cache OFF state, writes the image data into the nonvolatile memory 112 and measures the time length T1. The CPU 211 then switches the recording medium 110 to the cache ON state, transfers a second set of image data assuming the cluster size M to the recording medium and measures the time length T2 representing the total sum of the data write time length required to write data into the cache memory 111 and the cache flush time length. The CPU 211 compares the time length T1 with the time length T2 both obtained through the measurement and determines whether to transfer a third set of image data and subsequent sets of image data each assuming the cluster size M in the cache OFF state or in the cache ON state. Namely, if the time length T1 indicates a smaller value, the CPU 211 sets the recording medium 110 in the cache OFF state, whereas if the time length T2 indicates a smaller value, the CPU 211 selects the cache ON state for the recording medium 110. The third set of image data and subsequent sets of image data each assuming the cluster size M are then transferred to the recording medium 110 in the selected state.
(6) Instead of outputting the cache flush instruction signal to the recording medium 110 immediately after transferring the entire image data, the CPU 211 may constantly output the cache flush instruction signal over predetermined regular intervals while the photographing sequence is not in progress. It is to be noted that the CPU 211 should output the cache flush instruction signal without allowing the regular interval to elapse if disengagement of the recording medium 110 is detected. These measures ensure that all the photographic data are reliably saved by preventing any data from remaining unrecorded due to a disconnection of the recording medium 110 from the electronic camera by the user before the CPU 211 issues the cache flush instruction following a photographing end. It is to be noted that the extraction of the recording medium 110 may be detected by a detection mechanism such as a switch provided to detect an opening operation of, for instance, the card insertion slot cover (card lid) (not shown).
(7) The CPU 211 may output the cache flush instruction signal if transfer processing for transferring image data to the recording medium 110 is not executed for a predetermined length time following the image data transfer processing.
(8) The CPU 211 may output the cache flush instruction signal upon detecting disengagement of the recording medium 110. It is to be noted that if the electronic still camera 100 is in the power off state, the CPU 211 should turn on the power to the electronic still camera 100 upon detecting disengagement of the recording medium 110, i.e., upon detecting an opening operation of the card lid. The CPU 211 should then output the cache flush instruction signal to the recording medium 110.
In addition, as long as the features characterizing the present convention are not compromised, the present convention is not limited to the embodiment described above and allows for any other mode of implementation within the scope of the technical teachings of the present convention. For instance, the electronic camera does not need to have all the functions described above. An electronic camera capable of executing the initialization shown in
Number | Date | Country | Kind |
---|---|---|---|
2005-331687 | Nov 2005 | JP | national |
This is a Continuation of application Ser. No. 12/153,042 filed May 13, 2008, which in turn is a continuation of International Application No. PCT/JP 2006/322848 filed Nov. 16, 2006
Number | Date | Country | |
---|---|---|---|
Parent | 12153042 | May 2008 | US |
Child | 13064017 | US | |
Parent | PCT/JP2006/322848 | Nov 2006 | US |
Child | 12153042 | US |