Image recording device and image recording method
By utilizing non-volatile recording media and managing data storage across multiple media, the pre-recording period limitations in image recording devices are overcome, enhancing user convenience and efficiency.
Patent Information
- Application Number
- JP2023079583
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-12
- Publication Date
- 2024-11-22
AI Technical Summary
The length of the pre-recording period in image recording devices is limited by the capacity of the built-in memory, restricting user convenience.
Implementing pre-recording on a non-volatile recording medium and managing data storage to allow for longer pre-recording periods by using a combination of volatile and non-volatile memory, data partitioning, and parallel recording across multiple media.
The solution relaxes the restrictions on the pre-recording period length, ensuring data is stored efficiently without exceeding memory capacity and maintaining user convenience.
Smart Images

Figure 2024163731000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image recording apparatus and an image recording method. [Background technology]
[0002] In image recording devices such as digital cameras, a function (pre-recording function) is known that prevents failure of intended image recording due to a delay in a recording instruction by starting recording without waiting for a recording instruction from the user (Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2001-257976 A Summary of the Invention [Problem to be solved by the invention]
[0004] The longer the period during which images are recorded by the pre-recording function (hereinafter referred to as the pre-recording period), the greater the convenience for the user. However, to achieve a long pre-recording period, it is necessary to store data for the pre-recording period. If data for the pre-recording period is stored in, for example, built-in memory (RAM), the length of the pre-recording period is limited by the available capacity of the built-in memory.
[0005] In one aspect, the present invention provides an image recording device and an image recording method that can relax the restriction on the length of the pre-recording period. [Means for solving the problem]
[0006] In one aspect, the present invention provides an image recording device capable of pre-recording, which starts recording of an image captured by an imaging unit prior to the start of actual recording, the image recording device having a pre-recording processing means that executes the pre-recording, and an actual recording processing means that starts the actual recording of the image captured by the imaging unit when a condition for starting actual recording is satisfied while the pre-recording is being executed, wherein the pre-recording processing means performs pre-recording on a non-volatile recording medium to be used for actual recording. Effect of the Invention
[0007] According to one aspect of the present invention, it is possible to provide an image recording device and an image recording method that can relax the restriction on the length of the pre-recording period. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram for explaining a recording control operation according to the first embodiment; [Diagram 2] FIG. 1 is a block diagram showing an example of the functional arrangement of a digital camera according to a first embodiment; [Diagram 3] Flowchart of recording control operation according to the first embodiment [Figure 4] FIG. 11 is a diagram for explaining a recording control operation according to the second embodiment; [Diagram 5] Flowchart of recording control operation according to the second embodiment [Figure 6] FIG. 13 is a block diagram showing an example of the functional arrangement of a digital camera according to a third embodiment. [Figure 7] FIG. 13 is a diagram for explaining a pre-recording control operation according to the third embodiment; [Figure 8] FIG. 13 is a diagram for explaining an actual recording control operation according to the third embodiment; [Figure 9] FIG. 13 is a diagram for explaining an actual recording control operation according to the third embodiment; [Figure 10] Flowchart of recording control operation according to the third embodiment [Figure 11] FIG. 13 is a diagram for explaining an actual recording control operation according to the third embodiment; [Figure 12]Flowchart of recording control operation according to the fourth embodiment DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] The present invention will be described in detail below based on its exemplary embodiments with reference to the accompanying drawings. Note that the following embodiments do not limit the invention according to the claims. In addition, although multiple features are described in the embodiments, not all of them are necessarily essential to the invention, and multiple features may be combined arbitrarily. Furthermore, in the accompanying drawings, the same reference numbers are used for the same or similar configurations, and duplicated explanations are omitted.
[0010] In the following embodiment, the present invention will be described with respect to a case where the present invention is implemented in a digital camera. However, the present invention can be implemented in any electronic device having an imaging function. Such electronic devices include video cameras, computer devices (personal computers, tablet computers, media players, PDAs, etc.), mobile phones, smartphones, game consoles, robots, drones, and drive recorders. These are merely examples, and the present invention can also be implemented in other electronic devices.
[0011] <First embodiment> FIG. 2 is a block diagram showing an example of the functional configuration of a digital camera 100 as an example of an image recording device according to this embodiment. The bus 101 includes an address bus, a data bus, and a control bus, and enables commands and data to be communicated between the connected functional blocks.
[0012] The CPU 102 loads a program stored in the ROM 103 into the RAM 104 and executes it to control the operation of each functional block of the digital camera 100 and realize the functions of the digital camera 100 .
[0013] The ROM 103 is a rewritable non-volatile memory, and stores the programs executed by the CPU 102, various setting values of the digital camera 100, GUI data, and the like.
[0014] The RAM 104 is a volatile memory, and is used to temporarily store information necessary for executing the programs, such as programs executed by the CPU 102, and variables, etc. The RAM 104 is also used as a buffer memory for image data, a video memory for the display unit 113, etc.
[0015] The operation unit 105 is a general term for input devices (buttons, switches, dials, etc.) provided for the user to input various instructions to the digital camera 100. The input devices constituting the operation unit 105 have names according to the functions assigned to them. For example, the operation unit 105 includes a release switch, a shooting mode selection dial for selecting a shooting mode, a menu button, directional keys, an enter key, etc. The input devices may also be software buttons or keys using a touch display. The operation unit 105 may also include an input device compatible with a non-contact input method, such as voice input or eye-gaze input.
[0016] The operation control unit 106 detects that the user has operated the operation unit 105, and notifies the CPU 102 of the detected operation.
[0017] In this embodiment, digital camera 100 has a still image mode and a video mode, which can be switched by operation unit 105. In the still image mode, CPU 102 recognizes the half-pressed state of the release switch as an instruction to prepare for shooting, and the full-pressed state as an instruction to start shooting. In the video mode, CPU 102 recognizes the operation of the release switch in the shooting standby state as an instruction to start recording of a video. Also, the operation of the release switch during video recording and in a state where the operation of the release switch is not detected as an instruction to stop recording of the video. In the video shooting mode, CPU 102 regards both the half-pressed state and the full-pressed state of the release switch as the operation of the release switch and does not distinguish between them.
[0018] Note that operation unit 105 may have a movie recording switch in addition to the release switch. In this case, in a shooting standby state, digital camera 100 records still images or movies according to the operated switch. Specifically, CPU 102 recognizes the half-pressed state of the release switch as an instruction to prepare for shooting still images, and the full-pressed state as an instruction to start shooting still images. CPU 102 also recognizes the operation of the movie recording switch in a shooting standby state as an instruction to start recording a movie, and recognizes the operation of the movie recording switch while a movie is being recorded as an instruction to stop recording the movie.
[0019] The recording medium 107 is a removable and non-volatile recording medium such as a memory card. The recording medium 107 is generally used for actual recording, not for pre-recording. However, in this embodiment, still image and video data generated by the digital camera 100 is recorded on the recording medium 107 both during pre-recording and actual recording. Note that the recording medium 107 may be an external non-volatile recording medium (e.g., HDD, SSD, etc.) accessible by the digital camera 100.
[0020] In this specification, the term "data to be recorded" refers to data to be used for recording (i.e., data before recording), and the term "recorded data" refers to data in a state recorded on a recording medium, etc. (i.e., data after recording).
[0021] The recording medium control unit 108 controls reading and writing of data from and to the recording medium 107. Specifically, when the recording medium control unit 108 receives a read command from the request source, the recording medium control unit 108 reads data to be read that is recorded on the recording medium 107 at a fixed size at a time and stores the data in the RAM 104. Furthermore, when the recording medium control unit 108 receives a write command from the request source, the recording medium control unit 108 writes data to be written that is stored in the RAM 104 to the recording medium 107 at a fixed size at a time.
[0022] Furthermore, when the recording medium control unit 108 receives a delete command from the request source, it deletes the data recorded on the recording medium 107. The data may be deleted by writing data of a specific value, or by changing management information of the data so that the data is deleted. The recording medium control unit 108 notifies the request source of the completion of reading or writing the data in accordance with the command. The request source may be, for example, any one of the CPU 102, the pre-recording processing unit 109, the actual recording processing unit 110, and the front cut unit 112.
[0023] The recording medium control unit 108 monitors the free space of the recording medium 107 as a management process for the recording medium to be controlled. The recording medium control unit 108 notifies the free space of the recording medium 107 in response to a request from the CPU 102, the pre-recording processing unit 109, the actual recording processing unit 110, etc. Furthermore, the recording medium control unit 108 can be configured to notify the CPU 102, the pre-recording processing unit 109, the actual recording processing unit 110, the front cut unit 112, etc. when the recording medium 107 reaches a predetermined state, such as when the free space of the recording medium 107 runs out.
[0024] The imaging optical system 114 forms an optical image of a subject on the imaging surface of the image sensor 115. The imaging optical system 114 has movable lenses, such as a focus lens that adjusts the focal distance and a zoom lens that changes the angle of view, an aperture with a variable aperture, and a drive mechanism for the movable lens and the aperture. The operations of the movable lens and the aperture are controlled by the CPU 102.
[0025] The image sensor 115 (imaging section) may be, for example, a known CCD or CMOS color image sensor having a primary color Bayer array color filter. The image sensor 115 has a pixel array in which a plurality of pixels are arranged two-dimensionally, and a peripheral circuit for reading out a signal from each pixel. Each pixel generates an electric charge according to the amount of incident light by a photoelectric conversion function. A pixel signal group (analog image signal) representing an optical image of a subject formed on the imaging surface is obtained by reading out a signal having a voltage according to the amount of electric charge generated during an exposure period from each pixel. The image sensor 115 A / D converts the analog image signal to generate a digital image signal (image data), and stores it in the RAM 104. The A / D conversion may be performed by a circuit external to the image sensor 115.
[0026] The CPU 102 applies predetermined image processing to image data stored in the RAM 104, generates signals and image data according to the application, and acquires and / or generates various information. The CPU 102 stores the generated image data in the RAM 104 according to the application. The CPU 102 also controls the operation of other functional blocks using the acquired information.
[0027] The image processing applied by the CPU 102 can include, for example, pre-processing, color interpolation processing, correction processing, detection processing, data processing, evaluation value calculation processing, special effect processing, and the like. Pre-processing may include signal amplification, reference level adjustment, defective pixel correction, etc. Color interpolation processing is performed when a color filter is provided on an image sensor, and is a process for interpolating values of color components that are not included in the individual pixel data that constitutes the image data. Color interpolation processing is also called demosaic processing. The correction processing can include white balance adjustment, gradation correction, correction of image degradation caused by optical aberration of the imaging optical system 114 (image restoration), correction of the effect of peripheral light falloff of the imaging optical system 114, color correction, and the like. The detection process may include detection of feature regions (for example, face regions or human body regions) and their movements, person recognition processing, and the like. Data processing may include processes such as area extraction (trimming), synthesis, scaling, encoding and decoding, header information generation (data file generation), etc. Data processing also includes the generation of image data for display or image data for recording. The evaluation value calculation process can include processes such as generation of a signal and evaluation value used in automatic focus detection (AF) and generation of an evaluation value used in automatic exposure control (AE). The special effects processing may include adding a blur effect, changing color tones, relighting, and the like. Note that these are examples of processes that can be applied by the CPU 102, and do not limit the processes that can be applied by the CPU 102. Note that at least a part of the image processing may be applied using a hardware circuit other than the CPU 102. The hardware circuit may be, for example, an ASIC (Application Specific Integrated Circuit), a DSP (Digital Signal Processor), or a GPU (Graphics Processing Unit).
[0028] The CPU 102 uses the evaluation value for AF to drive the focus lens of the imaging optical system 114, thereby adjusting the focal distance of the imaging optical system 114. The CPU 102 also determines the exposure conditions using the evaluation value for AE, and drives the aperture of the imaging optical system 114 according to the aperture value included in the exposure conditions.
[0029] The pre-recording processing unit 109, the actual recording processing unit 110, the pre-recording start position calculation unit 111, and the front cut unit 112 are functional blocks that execute operations related to pre-recording and actual recording. Although these functional blocks 109 to 112 are illustrated as separate functional blocks for convenience, they do not need to be implemented as separate circuits. For example, one or more of the functional blocks 109 to 112 may be realized by the CPU 102 executing a program.
[0030] When CPU 102 detects that a pre-recording start condition has been satisfied while pre-recording is enabled, it controls the operation of each unit to start pre-recording. The user can set whether pre-recording is enabled or disabled, for example, by operating a menu screen via operation unit 105. The start condition for pre-recording may be, for example, a standby state for video recording (a state in which a recording start instruction can be input) in video mode. Also, in still image mode, it may be that the release switch has been continuously detected as being half-pressed rather than fully pressed for a certain period of time. Note that these are examples of the start conditions for pre-recording, and other conditions may also be used.
[0031] Pre-recording is a function that starts recording before a recording start instruction is input by the user. Pre-recording is executed from the time when the start condition is satisfied until the recording start instruction is input (or until immediately before the start of actual recording). Then, of the pre-recorded data (pre-recorded data), data for a certain period (pre-recording period) immediately before the recording start instruction is input (or immediately before the start of actual recording) is stored in association with the data recorded in response to the input of the recording start instruction (actually recorded data).
[0032] Regardless of the length of the period during which pre-recording is performed, the length (period) of the pre-recording data stored in association with the actual recording data is constant. Specifically, the pre-recording data for a period going back by the length of the pre-recording period from the input of the recording start instruction is stored in association with the actual recording data. The length of the pre-recording period can be set by the user, for example, by operating a menu screen via the operation unit 105. In both the moving image mode and the still image mode, pre-recording is performed at a frame rate according to a predetermined setting.
[0033] The pre-recorded data and the actual recording data can be associated with each other in any manner. For example, the files may be associated by associating the file names of the actual recording data and the pre-recorded data, or by recording file identification information (e.g., the file name) of the pre-recorded data in the file of the actual recording data. Alternatively, the files may be associated by recording the file of the actual recording data and the file of the pre-recorded data in the same folder. In addition, in the moving image mode, the pre-recorded data and the actual recording data may be combined to become continuous data, or the pre-recorded data and the actual recording data may be continuously recorded in the same data file.
[0034] Pre-recording is a function that starts recording before an instruction to start actual recording is input. Therefore, the operations related to image capture and recording in pre-recording may be the same as those in actual recording. However, in the case of still image mode, even if a setting is made to use a mechanical shutter in actual recording, image capture in pre-recording may be performed without using the mechanical shutter so as not to affect the live view display during pre-recording.
[0035] When the CPU 102 detects that the pre-recording start condition is satisfied in the imaging standby state, it changes imaging parameters as necessary and then starts generating pre-recording data. The CPU 102 stores the generated pre-recording data in the RAM 104. The CPU 102 also notifies the pre-recording processing unit 109 of the start of pre-recording.
[0036] When the pre-recording processing unit 109 is notified of the start of pre-recording by the CPU 102, it transmits a write command to the recording medium control unit 108 and starts writing the pre-recording data stored in the RAM 104 to the recording medium 107. The pre-recording processing unit 109 transmits a write command, for example, every time a write unit of data is stored in the RAM 104. In this way, by sequentially recording the pre-recording data stored in the RAM 104 to the recording medium 107, the pre-recording processing unit 109 prevents the capacity of the RAM 104 used as a buffer for the pre-recording data from exceeding a predetermined fixed capacity. The pre-recording processing unit 109 may also notify the pre-recording start position calculation unit 111 or the front cut unit 112 of information on the start position of pre-recording (for example, a frame number, a timestamp, etc.).
[0037] When the CPU 102 detects that the start condition for actual recording is satisfied, it notifies the start of actual recording to the pre-recording processing unit 109 and the actual recording processing unit 110. The start condition for actual recording may be, for example, detection of a release switch operation during pre-recording in the video mode, or detection of a fully pressed state of the release switch in the still image mode. Note that these are examples of the start condition for actual recording, and other conditions may also be used.
[0038] Furthermore, when the CPU 102 detects that the start condition for actual recording is satisfied, it ends the generation of pre-recorded data with the current frame. Furthermore, the CPU 102 changes parameters related to imaging as necessary, then starts the operation of generating actual recorded data, and stores the generated actual recorded data in the RAM 104. Note that in the video mode, the operation of generating pre-recorded data may be continued, and the operation of generating actual recorded data may be executed from the next frame. In this case, the pre-recorded video data and the actual recorded video data have consecutive frame numbers. Furthermore, the CPU 102 notifies the pre-recording processing unit 109 and the actual recording processing unit 110 of the start of actual recording.
[0039] When the pre-recording processing unit 109 is notified of the start of actual recording by the CPU 102 during pre-recording, it notifies information capable of identifying the start position of actual recording (for example, identification information of the last frame of the pre-recording data) to the actual recording processing unit 110 and the pre-recording start position calculation unit 111. When the pre-recording processing unit 109 records the last frame of the pre-recording data on the recording medium 107, it stops operating.
[0040] When the actual recording processing unit 110 is notified of the start of actual recording by the CPU 102, it transmits a write command to the recording medium control unit 108 and starts writing the data for actual recording stored in the RAM 104 to the recording medium 107. The actual recording processing unit 110 starts actual recording from a recording start position of the recording medium 107 specified based on the information notified from the pre-recording processing unit 109. Like the pre-recording processing unit 109, the actual recording processing unit 110 transmits a write command to the recording medium control unit 108, for example, every time a write unit of data is stored in the RAM 104. The actual recording processing unit 110 notifies the pre-recording start position calculation unit 111 of information related to the start position of actual recording (for example, a frame number when actual recording is started, a timestamp, etc.).
[0041] When the CPU 102 detects that the stop condition of the actual recording is satisfied, it controls the operation of each part so as to stop the actual recording. The stop condition of the actual recording may be the detection of a stop instruction, for example, the detection of the release switch operation during the actual recording in the video mode, or the disappearance of the detection of the release switch being fully pressed in the still image mode. Note that these are examples of the stop condition of the actual recording, and other conditions may be used.
[0042] When the CPU 102 detects that the actual recording stop condition is satisfied, it stops creating the actual recording data with the current frame, and notifies the actual recording processing unit 110 of the stop of the actual recording.
[0043] When the actual recording processing unit 110 is notified by the CPU 102 to stop the actual recording, it records the actual recording data for the current frame onto the recording medium 107 and then stops the operation.
[0044] When the pre-recording start position calculation unit 111 is notified of information relating to the start position of actual recording from the actual recording processing unit 110, it obtains information relating to the recording start position of pre-recording data corresponding to the pre-recording period, which is to be stored in association with the actual recording data. The information relating to the recording start position of pre-recording data corresponding to the pre-recording period may be a frame number, a timestamp, etc., corresponding to the start timing of the pre-recording period. The pre-recording start position calculation unit 111 can notify the obtained information to the pre-recording processing unit 109, the front cut unit 112, etc.
[0045] The pre-recording start position calculation unit 111 obtains the number of frames corresponding to a predetermined pre-recording period based on, for example, the frame rate of pre-recording. Then, the pre-recording start position calculation unit 111 can obtain the frame number corresponding to the recording start position of the pre-recording data corresponding to the pre-recording period by subtracting the obtained number of frames from the frame number at which actual recording started. Alternatively, the pre-recording start position calculation unit 111 can obtain the timestamp corresponding to the recording start position of the pre-recording data corresponding to the pre-recording period by subtracting the pre-recording time from the timestamp corresponding to the start position of actual recording.
[0046] The front cut unit 112 deletes data other than the pre-recording period from the pre-recorded data in the recording medium 107. Specifically, the front cut unit 112 transmits a deletion command specifying the range of data to be deleted to the recording medium control unit 108. The range of data to be deleted is the range from the beginning of the pre-recorded data to just before the recording start position of the data of the pre-recording period notified by the pre-recording start position calculation unit 111.
[0047] Instead of deleting from the beginning of the pre-recorded data, the data may be deleted from the start position of pre-recording based on the information notified from the pre-recording processing unit 109. The range of pre-recorded data to be deleted from the recording medium 107 may be specified by a method other than that described here. For example, the pre-recording processing unit 109 manages the accumulated data size for each frame from the start of pre-recording, and inquires from the front cut unit 112 about the accumulated data size up to the frame immediately before the frame corresponding to the recording start position of the pre-recording period. The front cut unit 112 transmits a command to the recording medium control unit 108 to delete data of the accumulated data size obtained from the pre-recording processing unit 109 from the beginning.
[0048] The pre-recorded data can be deleted by the front cut unit 112 when the actual recording starts or stops. If data is deleted when the actual recording starts, the capacity of the recording medium 107 available for the actual recording can be increased. Also, if data is deleted when the actual recording stops, it is possible to avoid a conflict between an access to the recording medium 107 for the actual recording and an access to the recording medium 107 for deleting data.
[0049] 1 is a diagram showing a schematic diagram of changes over time in pre-recorded data and actual recorded data on a recording medium 107 when a recording control operation according to this embodiment is executed. Here, it is assumed that a portion of the pre-recorded data is deleted by a front cutting unit 112 when actual recording is stopped.
[0050] In this embodiment, the pre-recording data is written to the recording medium 107 used for actual recording, so that the length of the pre-recording period is not restricted by the capacity of the RAM 104. Fig. 1(a) shows the recording data on the recording medium 107 at the start of actual recording. Note that, for ease of explanation and understanding, it is assumed here that no other recording data exists on the recording medium 107.
[0051] When actual recording is started, the actual recording data is recorded on the recording medium 107 following the pre-recording data. FIG. 1(b) shows the state of the recorded data on the recording medium 107 at the time when actual recording is stopped. When actual recording is stopped, the recording start position of the pre-recording data to be stored in association with the actual recording data is identified. Here, it is assumed that the pre-recording period is set to 3 seconds. After that, as shown in FIG. 1(c), data other than the pre-recording period is deleted from the pre-recording data.
[0052] Next, the data recording control operation during the above-mentioned pre-recording and actual recording will be further explained using the flowchart shown in Fig. 3. This operation is executed in a state where the pre-recording is set to be valid. In addition, the pre-recording data outside the pre-recording period is deleted at the start of the actual recording.
[0053] In digital camera 100, any known operation may be performed until CPU 102 generates data for recording, such as operations related to capturing moving images and still images. Therefore, the following description will focus on the control operations for pre-recording and actual recording of data generated by CPU 102.
[0054] In S201, the CPU 102 determines whether the pre-recording start condition is satisfied, and if it is determined that the pre-recording start condition is satisfied, S202 is executed, and if not, S201 is executed. As described above, the pre-recording start condition may be, for example, a standby state for video recording in video mode (a state in which a recording start instruction can be input). Also, in still image mode, it may be that the release switch is not fully pressed but is continuously pressed halfway for a certain period of time. It may also be determined that the pre-recording start condition is satisfied when pre-recording is set to enabled.
[0055] In S202, the CPU 102 starts generating pre-recording data and notifies the pre-recording processing unit 109 of the start of pre-recording. The pre-recording processing unit 109 starts recording the pre-recording data on the recording medium 107. The pre-recording processing unit 109 may also notify the front cut unit 112 of information related to the recording start position of the pre-recording data.
[0056] In S203, the CPU 102 determines whether or not the start condition for actual recording is satisfied. If it is determined that the start condition is satisfied, the CPU 102 executes S205, and if not, the CPU 102 repeatedly executes S203.
[0057] In S205, when the generation of the pre-recording data for the current frame is completed, the CPU 102 starts generating the actual recording data. In addition, the pre-recording start position calculation unit 111 obtains information on the recording start position of the pre-recording data corresponding to the pre-recording period. The pre-recording start position calculation unit 111 notifies the obtained information to the pre-recording processing unit 109 and the front cutting unit 112.
[0058] In S206, the front cut unit 112 deletes the data other than the pre-recording period from the pre-recording data in the recording medium 107.
[0059] In S 207 , the actual recording processing unit 110 starts recording the actual recording data onto the recording medium 107 .
[0060] In S208, the CPU 102 determines whether or not the actual recording stop condition is satisfied. If it is determined that the condition is satisfied, the CPU 102 executes S209, and if not, the CPU 102 repeatedly executes S208.
[0061] In S209, the CPU 102 stops creating actual recording data with the current frame. The CPU 102 also notifies the actual recording processing unit 110 of the stop of actual recording. When the actual recording processing unit 110 is notified of the stop of actual recording by the CPU 102, it stops operation upon completion of recording of the actual recording data of the current frame. After that, the CPU 102 executes S201.
[0062] As described above, in this embodiment, pre-recording is performed on the recording medium on which actual recording is performed, and unnecessary pre-recording data is deleted from the recording medium after the pre-recording is completed. The capacity of the built-in memory used by the pre-recording data is the capacity required for the recording operation on the recording medium, and does not depend on the length of the pre-recording period. Therefore, it is possible to alleviate the restriction on the length of the pre-recording period that occurs when pre-recording data is buffered in the built-in memory until the pre-recording is completed.
[0063] <Second embodiment> Next, a second embodiment of the present invention will be described. This embodiment may be similar to the first embodiment except for the operation related to data recording control. Therefore, the second embodiment will be described as being implemented by the digital camera 100 described above.
[0064] In the first embodiment, while pre-recording is being performed, the pre-recorded data on the recording medium 107 continues to increase, reducing the free space on the recording medium 107. In the present embodiment, the reduction in the free space on the recording medium 107 due to the pre-recorded data is suppressed.
[0065] 4 is a diagram showing a schematic diagram of the change over time of the pre-recorded data and the actual recorded data on the recording medium 107 when the recording control operation according to the present embodiment is executed. Here, it is assumed that the pre-recorded data is partially deleted by the front cutting unit 112 when the actual recording is stopped.
[0066] As in the first embodiment, the pre-recording data is written to the recording medium 107 used for actual recording, so that the length of the pre-recording period is not restricted by the capacity of the RAM 104. Fig. 4(a) shows the state of the pre-recording data on the recording medium 107 after a predetermined time has elapsed since the start of pre-recording. Note that, for ease of explanation and understanding, it is assumed here that no other recording data exists on the recording medium 107.
[0067] When the amount of pre-recording data stored in the file reaches a predetermined threshold Th1 as the pre-recording continues, the file is divided into a plurality of files that store an amount of data corresponding to the threshold Th1 in a distributed manner. Specifically, when the amount of pre-recording data stored in the file reaches the predetermined threshold Th1, the pre-recording processing unit 109 divides the file into two files that store pre-recording data of the same size (Th1 / 2) (FIG. 4(b)). Then, the pre-recording processing unit 109 continues recording pre-recording data in the newly generated file. Th1 is set to be larger than twice the amount of data for the pre-recording period (so as to satisfy Th1>2×(amount of data for the pre-recording period)) so that the divided files store pre-recording data that is longer than the pre-recording period.
[0068] Similarly, thereafter, each time the amount of pre-recording data stored in the file being recorded reaches threshold value Th1, the pre-recording processing unit 109 divides the file being recorded and continues recording the pre-recording data in the new file (FIG. 4(c)). Furthermore, when the total amount of pre-recording data reaches a predetermined threshold value Th2, the pre-recording processing unit 109 (or the front cut unit 112) deletes the file storing the oldest pre-recording data at that time (FIG. 4(d)). The threshold value Th2 can be determined, for example, as Th2≧threshold value Th1 / 2×α+(amount of data for the pre-recording period), where α is a predetermined integer of 2 or more.
[0069] When actual recording is started, the actual recording data is recorded on the recording medium 107 following the pre-recording data. FIG. 4(e) shows the state of the recorded data on the recording medium 107 at the time when actual recording is stopped. When actual recording is stopped, the recording start position of the pre-recording data to be stored in association with the actual recording data is identified. Here, it is assumed that the pre-recording period is set to 3 seconds. Thereafter, as shown in FIG. 4(f), data other than the data of the pre-recording period is deleted from the pre-recording data by the front cutting unit 112. The section to be deleted by the front cutting unit 112 can be identified in the same manner as in the first embodiment.
[0070] Although the thresholds Th1 and Th2 have been described as data amounts here, recording time or number of frames may be used instead of data amounts. For example, a file is divided every time pre-recording is performed for a certain time or number of frames (threshold Th1), and when the total amount of pre-recording data reaches a certain time or number of frames (threshold Th2), the file storing the oldest pre-recording data at that time is deleted. The recording time [sec] may be calculated from the number of recorded frames / frame rate [fps]. Information such as the data amount, recording time, and number of frames related to pre-recording is monitored and managed by the pre-recording processing unit 109.
[0071] Next, the data recording control operation during the above-mentioned pre-recording and actual recording will be further described with reference to the flow chart shown in FIG. 5. This operation is performed when the pre-recording is set to be valid. Also, the pre-recording data other than the pre-recording data during the pre-recording period is deleted at the start of the actual recording. Furthermore, the steps of performing the same processing as in the first embodiment are given the same reference numerals as in FIG. 3, and the duplicated description will be omitted.
[0072] Explanation of S201 and S202 will be omitted. In S203, the CPU 102 judges whether or not the start condition for actual recording is satisfied, and if it is judged that the start condition is satisfied, executes S205, and if not, executes S304.
[0073] In S304, the pre-recording processing unit 109 determines whether the file division condition is satisfied, and if it is determined that the file division condition is satisfied, executes S305, and if it is not, returns to the process of S203. Here, the file division condition is a condition related to the amount of pre-recorded data, the recording time, and the number of recorded frames based on the threshold value Th1, as described with reference to FIG. 4. When it is determined that the file division condition is satisfied, the pre-recording processing unit 109 resets the data amount, recording time, or number of frames used for the determination. As a result, during pre-recording, the processes from S305 onwards are executed each time it is determined that the file division condition is satisfied.
[0074] In S305, the pre-recording processing unit 109 divides the file that satisfies the file division condition into two files via the recording medium control unit 108. In addition, the pre-recording processing unit 109 generates a new file via the recording medium control unit 108, and changes the recording destination of the pre-recording data to the new file.
[0075] In S306, the pre-recording processing unit 109 judges whether a deletion flag indicating whether or not to delete the oldest file among the files storing the pre-recorded data is true (1) or false (0). The deletion flag can be stored in, for example, the RAM 102 during the pre-recording. If it is judged that the deletion flag is true, the pre-recording processing unit 109 executes S307, and if not, it executes S308.
[0076] In S307, the pre-recording processing unit 109 deletes the oldest file at the current time among the files storing the pre-recorded data through the recording medium control unit 108. After changing the deletion flag to false, the pre-recording processing unit 109 executes S308.
[0077] In S308, the pre-recording processing unit 109 determines whether the file deletion condition is satisfied, and if it is determined that the file deletion condition is satisfied, executes S309, and if it is not, returns to the process of S203. Here, the file deletion condition is a condition related to the amount of pre-recorded data, the recording time, and the number of recorded frames based on the threshold value Th2, as described with reference to FIG. 4. When it is determined that the file deletion condition is satisfied, the pre-recording processing unit 109 resets the data amount, recording time, or number of frames used for the determination. As a result, S309 is executed every time it is determined that the file deletion condition is satisfied during pre-recording.
[0078] In S309, the pre-recording processing unit 109 sets the deletion flag to true, and then returns the process to S203.
[0079] Note that the operations from S205 onwards are the same as those in the first embodiment, except that the pre-recorded data deleted by the front cut unit 112 in S206 and the pre-recorded data corresponding to the pre-recording period may be recorded across multiple data files. When the pre-recorded data corresponding to the pre-recording period is recorded across multiple data files, the data file that stores the actual recorded data is associated with the multiple data files that store the pre-recorded data for the pre-recording period. The association method may be the same as that in the first embodiment.
[0080] According to this embodiment, by performing pre-recording on the recording medium to be used for actual recording, the same effect as that of the first embodiment can be obtained. Furthermore, since the maximum amount of pre-recorded data on the recording medium is limited, it is possible to prevent the free space of the recording medium during pre-recording from decreasing more than a certain amount.
[0081] <Third embodiment> Next, a third embodiment of the present invention will be described. This embodiment is directed to an image recording device capable of using a plurality of recording media for actual recording. Fig. 6 is a block diagram showing an example of the functional configuration of a digital camera 400 as an example of an image recording device according to this embodiment. In Fig. 6, the same functional blocks as those in the digital camera 100 are given the same reference numerals as in Fig. 2, and duplicated explanations will be omitted.
[0082] The digital camera 400 can use two recording media (recording medium A107 and recording medium B401). It also has a recording medium control unit A108 that controls reading and writing of data from and to the recording medium 107A, and a recording medium control unit B402 that controls reading and writing of data from and to the recording medium B401. The recording medium A107 and the recording medium B401 may be the same as the recording medium 107 included in the digital camera 100. The recording medium control unit A108 and the recording medium control unit B402 may be the same as the recording medium control unit 108 included in the digital camera 100.
[0083] In this embodiment, during pre-recording, the pre-recording processing unit 109 periodically obtains the free space from the recording medium control unit A 108 and the recording medium control unit B 402, and manages the remaining space of the pre-recording area of each recording medium. The pre-recording processing unit 109 also determines the recording medium on which to start actual recording, depending on the start timing of actual recording.
[0084] 7 is a diagram showing a schematic diagram of the change over time of the pre-recorded data on the recording medium A107 and the recording medium B401 when the recording control operation according to the present embodiment is executed. Note that, for ease of explanation and understanding, it is assumed here that no other recorded data exists on the recording medium A107 and the recording medium B401.
[0085] In this embodiment, the pre-recording processing unit 109 sets in advance an area for pre-recording (pre-recording area) in a part of the recording area of the recording medium A 107 and the recording medium B 401 (FIG. 7(a)). The pre-recording processing unit 109 records the pre-recording data only in the pre-recording area. The pre-recording area is set to a size that allows the pre-recording data to be recorded for a period longer than the pre-recording period.
[0086] At the start of pre-recording, pre-recording data is recorded on one of the recording medium A107 and the recording medium B401 (here, the recording medium A107). Fig. 7(b) shows the state of the pre-recorded data on the recording medium A107 and the recording medium B401 at the time when the parallel recording start condition is satisfied after the start of pre-recording. The parallel recording start condition may be that the free capacity of the pre-recording area on either the recording medium A107 or the recording medium B401 is equal to the pre-recording period. The free capacity can be expressed as the time, amount of data, or number of frames available for recording.
[0087] At the time shown in Fig. 7(b), the pre-recording data is recorded only on the recording medium A 107. Therefore, Fig. 7(b) shows a state in which the free space of the recording medium A 107 is equal to the pre-recording period.
[0088] When the parallel recording start condition is satisfied, the pre-recording processing unit 109 records the pre-recording data in parallel on both the recording medium A107 and the recording medium B401 (FIG. 7(c)). As a result, when the free space in the pre-recording area of either the recording medium A107 or the recording medium B401 runs out (FIG. 7(d)), the pre-recording data for the most recent pre-recording period is recorded on both the recording medium A107 and the recording medium B401. This makes it possible to prevent the pre-recording data for the most recent pre-recording period from being recorded across two recording media.
[0089] When the free space in the pre-recording area of either the recording medium A107 or the recording medium B401 runs out, the pre-recording processing unit 109 deletes the pre-recording data in the pre-recording area where the free space has run out, and stops recording the pre-recording data on the recording medium. Note that while the pre-recording processing unit 109 is deleting the pre-recording data, it continues recording the pre-recording data on the recording medium with free space (here, the recording medium B401).
[0090] Thereafter, when the conditions for starting parallel recording are satisfied for the recording medium B401 on which the pre-record data is continuing to be recorded (FIG. 7(e)), the pre-recording processing unit 109 records the pre-recording data in parallel on both the recording medium A107 and the recording medium B401 (FIG. 7(f)).
[0091] Thereafter, the pre-recording processing unit 109 repeats the control of stopping parallel recording when the free space in the pre-recording area becomes full during pre-recording and deleting the pre-recording data in the pre-recording area where the free space has become full, and starting parallel recording when the conditions for starting parallel recording are satisfied.
[0092] Next, the recording control operation when actual recording starts will be described with reference to Figures 8 and 9. Figures 8 and 9 both show the recording control operation when actual recording starts during parallel recording, and are the same except for the recording medium that satisfies the parallel recording start conditions.
[0093] First, Fig. 8 will be described. When it is determined that the start condition of actual recording is satisfied, the CPU 102 notifies the start of actual recording to the pre-recording processing unit 109 and the actual recording processing unit 110. When the start of actual recording is notified, the pre-recording processing unit 109 executes the process described above, determines the recording medium on which actual recording is to be started, and notifies the pre-recording start position calculation unit 111 and the actual recording processing unit 110.
[0094] As shown in Fig. 8, when it is determined that the start condition for actual recording is satisfied during parallel recording, the pre-recording processing unit 109 determines the recording medium with the least free space in the pre-recording area (here, recording medium A 107) as the recording medium on which actual recording is to be started. This is because, at the timing during parallel recording, data for the entire pre-recording period exists only on the recording medium with the least free space in the pre-recording area. Therefore, it can be said that the pre-recording processing unit 109 determines the recording medium on which data for the entire pre-recording period exists as the recording medium on which actual recording is to be started.
[0095] Furthermore, if it is determined that the conditions for starting actual recording are satisfied at the time when pre-recording is being performed on only one of the recording media, the pre-recording processing unit 109 determines the recording medium on which pre-recording is being performed as the recording medium on which actual recording will be started.
[0096] It is not necessary for the pre-recording processing unit 109 to determine the recording medium on which actual recording is to be started at the start of actual recording. The pre-recording processing unit 109 can, for example, hold, in the RAM 104, identification information of the recording medium on which actual recording is to be started. The pre-recording processing unit 109 may hold, as the recording medium on which actual recording is to be started, identification information of a recording medium with less free space in the pre-recording area during parallel recording, and identification information of a recording medium on which pre-recording is being performed when parallel recording is not being performed. Specifically, in the case of two recording media, the pre-recording processing unit 109 may switch the recording medium indicated by the identification information at the end of parallel recording.
[0097] Moreover, the pre-recording processing unit 109 deletes the pre-recording data existing on a recording medium other than the recording medium on which the actual recording is to be started (here, the recording medium B401).
[0098] The actual recording processing unit 110 starts actual recording on the recording medium (here, recording medium A 107) notified by the pre-recording processing unit 109. Also, the pre-recording start position calculation unit 111 and the front cut unit 112 delete pre-recorded data other than the data of the pre-recording period from the recording medium on which the actual recording is to be started, in the same manner as in the first embodiment.
[0099] A similar control is executed in the example of FIG. 9 in which the states of the pre-recorded data on the recording medium A 107 and the recording medium B 401 at the time when the conditions for starting actual recording are satisfied are switched from those in FIG.
[0100] Next, the data recording control operation during pre-recording and actual recording described above with reference to Figs. 7 to 9 will be further described with reference to the flow chart shown in Fig. 10. This operation is performed when pre-recording is set to be valid. Also, pre-recording data outside the pre-recording period is deleted at the start of actual recording. Furthermore, the steps that perform the same processes as in the first embodiment are given the same reference numerals as in Fig. 3, and duplicated descriptions will be omitted.
[0101] In S500, the pre-recording processing unit 109 sets a pre-recording area on the recording medium A 107 and the recording medium B 401. Note that the setting of the pre-recording area can be performed at any time before the start of pre-recording and when the length of the pre-recording period has been determined.
[0102] Explanation of S201 and S202 will be omitted. In S203, the CPU 102 judges whether or not the start condition for actual recording is satisfied, and if it is judged that the start condition is satisfied, executes S205, and if not, executes S502.
[0103] In S502, the pre-recording processing unit 109 judges whether the start condition of parallel recording is satisfied, and if it is judged that the condition is satisfied, executes S503, and if not, executes S504. As described above, the start condition of parallel recording may be that the free space of the pre-recording area is equal to the pre-recording period in either the recording medium A 107 or the recording medium B 401. The free space of the pre-recording area can be detected by any method, such as, for example, comparing the amount of change in the free space of the recording medium or the cumulative value of the amount of recorded data with the capacity of the pre-recording area.
[0104] In S503, the pre-recording processing unit 109 starts parallel recording. As a result, the pre-recording data is recorded on both the recording medium A 107 and the recording medium B 401 in parallel.
[0105] In S504, the pre-recording processing unit 109 determines whether or not the free space in the pre-recording area of any of the recording media has run out, and if it is determined that there is no free space, it executes S505, and if not, it returns the process to S203.
[0106] In S505, the pre-recording processing unit 109 stops pre-recording on the recording medium where the pre-recording area has no free space. Also, the pre-recording processing unit 109 deletes the pre-recorded data from the pre-recording area where the free space has been exhausted. After that, the pre-recording processing unit 109 executes S506.
[0107] In S506, the pre-recording processing unit 109 switches the recording medium on which actual recording is to be started from the recording medium on which pre-recording was stopped to the recording medium on which pre-recording is being continued. As described above, the recording medium on which actual recording is to be started may be determined at the start of actual recording. After that, the pre-recording processing unit 109 returns the process to S203.
[0108] After the pre-recorded data is deleted by the front cut unit 112 in S206, the pre-recording processing unit 109 deletes the pre-recorded data existing on a recording medium other than the recording medium on which the actual recording is to be started in S507. Note that this deletion process may be executed after the actual recording is stopped.
[0109] In S207, the actual recording processing unit 110 starts actual recording on the recording medium on which actual recording is to be started among the multiple recording media. The subsequent processing is the same as in the first embodiment, and therefore the description will be omitted. Note that if the free space of the recording medium on which actual recording has started runs out, actual recording may be continued on another recording medium (relay recording).
[0110] According to this embodiment, even when there are multiple recording media that can be used for actual recording, the same effect as in the first embodiment can be achieved. In addition, a pre-recording area is set on the recording medium, and pre-recording data is recorded only in the pre-recording area, so that the proportion of the pre-recording data on the recording medium can be reduced. Furthermore, by controlling pre-recording so that the pre-recording data for the entire pre-recording period is always present on one of the recording media, the pre-recording data for the pre-recording period is reliably recorded on the same recording medium as the actual recording data, regardless of the start timing of the actual recording.
[0111] <Fourth embodiment> Next, a fourth embodiment of the present invention will be described. As with the third embodiment, this embodiment is directed to an image recording device capable of using multiple recording media for actual recording. In addition, operations other than those related to data recording control may be the same as those of the third embodiment. Therefore, the fourth embodiment will be described as being implemented by the digital camera 400 described above.
[0112] In the third embodiment, the digital camera 400 (pre-recording processing unit 109) dynamically determines the recording medium on which actual recording is to start. In this embodiment, the recording control is performed when the recording medium on which actual recording is to start is set in advance. The recording control until actual recording starts may be the same as in the third embodiment.
[0113] 11 is a schematic diagram showing the recording control operation in this embodiment when actual recording is started in the same state as in FIG. 9. However, it is assumed that the recording medium A107 is set in advance as the recording medium on which actual recording is started. The setting of the recording medium on which actual recording is started may be a setting that can be changed by the user via, for example, a menu screen, or may be an unchangeable setting based on, for example, the specifications of the digital camera 400. It is assumed that the setting of the recording medium on which actual recording is started is stored in the ROM 103.
[0114] When the start of actual recording is notified, the actual recording processing unit 110 starts actual recording on the set recording medium. When pre-recorded data for the entire pre-recording period exists on the recording medium on which actual recording is started, the actual recording processing unit 110 executes the same recording control operation as in the third embodiment for actual recording. On the other hand, when the recording medium on which actual recording is started is different from the recording medium on which pre-recorded data for the entire pre-recording period exists, the actual recording processing unit 110 executes actual recording while avoiding the pre-recording area set on the recording medium, as shown in FIG. 11. Note that, although unnecessary pre-recorded data is deleted at the start of actual recording in FIG. 11, it may be deleted after actual recording is stopped.
[0115] When the actual recording is stopped, the actual recording processing unit 110 copies the pre-recording data of the entire pre-recording period recorded on the other recording medium to the pre-recording area of the recording medium where the actual recording is started. Furthermore, when the copying is completed, the actual recording processing unit 110 deletes the pre-recording data from the copy source.
[0116] As a result, regardless of the setting of the recording medium on which the actual recording is started and the start timing of the actual recording, the pre-recording data in the pre-recording period is reliably stored on the same recording medium as the actual recording data.
[0117] Next, the data recording control operation during pre-recording and actual recording in this embodiment will be further described with reference to the flow chart shown in FIG. 12. This operation is performed when pre-recording is set to be enabled. In addition, the pre-recording data outside the pre-recording period is deleted at the start of actual recording. Furthermore, the same reference numerals as in FIG. 3 are used for the steps that perform the same processes as in the first embodiment, and the same reference numerals as in FIG. 10 are used for the steps that perform the same processes as in the third embodiment, and duplicated descriptions will be omitted.
[0118] Explanation of S500, S201, and S202 will be omitted. In S203, the CPU 102 judges whether the start condition of actual recording is satisfied, and if it is judged that the condition is satisfied, executes S205, and if not, executes S502. The recording control operation during pre-recording in S502 to S505 is the same as in the third embodiment, and therefore explanation will be omitted.
[0119] Description of S205 to S206 and S507 will be omitted. In S601, the actual recording processing unit 110 refers to, for example, the ROM 103 and starts actual recording on the recording medium that has been set as the recording medium on which actual recording is to be started.
[0120] If the start position of actual recording specified based on the information notified from the pre-recording processing unit 109 is a position on the recording medium where actual recording is to be started, the actual recording processing unit 110 starts actual recording from the start position based on the notification. On the other hand, if the start position of actual recording specified based on the information notified from the pre-recording processing unit 109 is a position on a recording medium different from the recording medium where actual recording is to be started, the actual recording processing unit 110 starts actual recording from a start position not based on the notification. The actual recording processing unit 110 starts actual recording, for example, from a top empty area other than the pre-recording area of the recording medium where actual recording is to be started.
[0121] When the actual recording stops, in S602, the actual recording processing unit 110 determines whether the recording medium on which the actual recording started is different from the recording medium on which the pre-recording data of the pre-recording period exists, and if it is determined that they are different, executes S603, and if not, returns the process to S201.
[0122] In S603, the actual recording processing unit 110 copies the pre-recording data of the entire pre-recording period recorded on the other recording medium to the pre-recording area of the recording medium on which the actual recording has started. Furthermore, when the copying is completed, the actual recording processing unit 110 deletes the pre-recording data from the copy source. After that, the actual recording processing unit 110 returns the process to S201.
[0123] According to this embodiment, even if the recording medium to be used for actual recording is set in advance, it is possible to obtain the same effects as those of the third embodiment.
[0124] (Other embodiments) In the above embodiment, the recording control operation for pre-recording and actual recording in the video mode has been mainly described, but the same recording control operation can also be executed in the still image mode. In the still image mode, the actual recording may be a single still image shot, or still images may be continuously shot while the release switch is kept fully pressed. In the still image mode, multiple data files generated by the pre-recording and actual recording data are stored in association with each other.
[0125] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0126] The disclosure of the present embodiment includes the following image recording device, image recording method, and program. (Item 1) An image recording device capable of pre-recording in which recording of an image captured by an imaging unit is started prior to the start of actual recording, a pre-recording processing means for executing the pre-recording; an actual recording processing means for starting actual recording of an image captured by the imaging unit when a start condition for actual recording is satisfied during execution of the pre-recording, the pre-recording processing means performs pre-recording on a non-volatile recording medium to be used for the actual recording; 1. An image recording apparatus comprising: (Item 2) The image recording device described in item 1, characterized in that the pre-recording processing means deletes from the recording medium all data recorded by the pre-recording other than data for a certain period immediately before the start of the actual recording, which is set as a pre-recording period. (Item 3) The recording medium further includes a volatile memory for temporarily storing data to be recorded on the recording medium. the pre-recording processing means sequentially records the data stored in the volatile memory onto the recording medium, thereby preventing the capacity of the volatile memory used in the pre-recording from exceeding a predetermined capacity. 3. The image recording device according to item 1 or 2. (Item 4) The pre-recording processing means When an amount of data stored in a file reaches a predetermined first threshold during the execution of the pre-recording, the file is divided into a plurality of files each storing an amount of data corresponding to the first threshold in a distributed manner; continuing said pre-recording for a new file; 4. The image recording device according to any one of items 1 to 3, (Item 5) The image recording device described in item 4, characterized in that when the total amount of data recorded on the recording medium during execution of the pre-recording reaches a predetermined second threshold value that is greater than the first threshold value, the pre-recording processing means deletes from the recording medium a file that stores the oldest data at that time. (Item 6) The image recording device described in item 1, characterized in that, when multiple recording media can be used for the actual recording, the pre-recording processing means records data in pre-recording areas set on each of the multiple recording media during execution of the pre-recording, and does not record data in other areas. (Item 7) The image recording device described in item 6, characterized in that the pre-recording processing means records data on the multiple recording media so that data corresponding to a certain period immediately before the start of the actual recording, which is set as a pre-recording period, exists on any one of the multiple recording media while the pre-recording is being performed. (Item 8) The pre-recording processing means, during the execution of the pre-recording, (a) recording data in the pre-recorded area of a first recording medium of the plurality of recording media; (b) when the free space of the pre-recording area of the first recording medium becomes a capacity corresponding to a period having a predetermined length, recording data in parallel on both the first recording medium and a second recording medium of the plurality of recording media; (c) stopping recording of data on the first recording medium when the free space in the pre-recording area of the first recording medium runs out; (d) deleting the data recorded in the pre-recorded area of the first recording medium; (e) when the free space of the pre-recording area of the second recording medium reaches a capacity corresponding to the period having the predetermined length, recording data in parallel on both the first recording medium and the second recording medium; (f) stopping recording of data on the second recording medium when the free space in the pre-recording area of the second recording medium runs out; (g) deleting the data recorded in the pre-recorded area of the second recording medium; After that, the steps (b) to (g) are repeated. 8. The image recording device according to item 6 or 7, (Item 9) The image recording device according to any one of items 6 to 8, characterized in that the pre-recording processing means deletes from the plurality of recording media data recorded by the pre-recording other than data for a certain period immediately before the start of the actual recording, which period is set as a pre-recording period. (Item 10) One of the plurality of recording media is predetermined as a recording medium on which the actual recording is performed, The actual recording processing means includes: When data recorded by the pre-recording, which is a certain period immediately before the start of the actual recording and which is set as a pre-recording period, exists in a recording medium different from the predetermined recording medium, The actual recording is performed in a region of the predetermined recording medium, the actual recording being avoided in the pre-recording region; copying the data of the pre-recording period from the different recording medium to the pre-recording area of the predetermined recording medium; 10. The image recording device according to any one of items 6 to 9, (Item 11) 11. The image recording device according to item 10, wherein the actual recording processing means records the actual recording data following the data of the pre-recording period when the data of the pre-recording period exists on the predetermined recording medium. (Item 12) The imaging unit is provided. The pre-recording processing means pre-records moving image data captured by the imaging unit during execution of the pre-recording, the actual recording processing means records, on the recording medium, video data captured by the imaging unit from an instruction to start the actual recording until an instruction to stop the actual recording. 12. The image recording device according to any one of items 1 to 11, (Item 13) 1. An image recording method executed by an image recording device capable of pre-recording, which starts recording an image captured by an imaging unit prior to the start of actual recording, comprising: performing the pre-recording; and when a start condition for actual recording is satisfied during the execution of the pre-recording, starting actual recording of the image captured by the imaging unit, The pre-recording is performed on a non-volatile recording medium to be used for the actual recording. 1. An image recording method comprising: (Item 14) 13. A program for causing a computer to function as each of the means included in the image recording device according to any one of items 1 to 12.
[0127] The present invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Therefore, the following claims are appended to disclose the scope of the invention. [Explanation of symbols]
[0128] 100... digital camera, 101... bus, 102... CPU, 103... ROM, 104... RAM, 105... operation unit, 106... operation control unit, 107... recording medium, 108... recording medium control unit, 109... pre-recording processing unit, 110... actual recording processing unit, 111... front cut unit
Claims
1. An image recording device capable of pre-recording in which recording of an image captured by an imaging unit is started prior to the start of actual recording, a pre-recording processing means for executing the pre-recording; an actual recording processing means for starting actual recording of an image captured by the imaging unit when a start condition for actual recording is satisfied during execution of the pre-recording, the pre-recording processing means performs pre-recording on a non-volatile recording medium to be used for the actual recording; 1. An image recording apparatus comprising:
2. The image recording device according to claim 1, wherein the pre-recording processing means deletes from the recording medium all data recorded by the pre-recording except for data for a certain period immediately before the start of the actual recording, which is set as a pre-recording period.
3. The recording medium further includes a volatile memory for temporarily storing data to be recorded on the recording medium. the pre-recording processing means sequentially records the data stored in the volatile memory onto the recording medium, thereby preventing the capacity of the volatile memory used in the pre-recording from exceeding a predetermined capacity.
2. The image recording apparatus according to claim 1,
4. The pre-recording processing means When an amount of data stored in a file reaches a predetermined first threshold during the execution of the pre-recording, the file is divided into a plurality of files each storing an amount of data corresponding to the first threshold in a distributed manner; continuing the pre-recording for a new file; 2. The image recording apparatus according to claim 1,
5. The image recording device according to claim 4, wherein the pre-recording processing means deletes from the recording medium a file that stores the oldest data at that time when the total amount of data recorded on the recording medium reaches a predetermined second threshold value that is greater than the first threshold value during the execution of the pre-recording.
6. The image recording device according to claim 1, characterized in that, when a plurality of recording media can be used for the actual recording, the pre-recording processing means records data in a pre-recording area set on each of the plurality of recording media during the execution of the pre-recording, and does not record data in other areas.
7. The image recording device according to claim 6, characterized in that the pre-recording processing means records data on the plurality of recording media so that, during execution of the pre-recording, data corresponding to a certain period immediately prior to the start of the actual recording, which is set as a pre-recording period, exists on any one of the plurality of recording media.
8. The pre-recording processing means, during the execution of the pre-recording, (a) recording data in the pre-recorded area of a first recording medium of the plurality of recording media; (b) when the free space of the pre-recording area of the first recording medium becomes a capacity corresponding to a period having a predetermined length, recording data in parallel on both the first recording medium and a second recording medium of the plurality of recording media; (c) stopping recording of data on the first recording medium when the free space of the pre-recording area of the first recording medium is exhausted; (d) deleting the data recorded in the pre-recorded area of the first recording medium; (e) when the free space of the pre-recording area of the second recording medium reaches a capacity corresponding to the period having the predetermined length, recording data in parallel on both the first recording medium and the second recording medium; (f) stopping recording of data on the second recording medium when the free space of the pre-recording area of the second recording medium is exhausted; (g) deleting the data recorded in the pre-recorded area of the second recording medium; Thereafter, the operations (b) to (g) are repeatedly executed.
7. The image recording apparatus according to claim 6.
9. The image recording device according to claim 6, characterized in that the pre-recording processing means deletes from the plurality of recording media all of the data recorded by the pre-recording, except for data for a certain period immediately before the start of the actual recording, which is set as a pre-recording period.
10. one of the plurality of recording media is predetermined as a recording medium on which the actual recording is performed; The actual recording processing means includes: When data recorded by the pre-recording, which is a certain period immediately before the start of the actual recording and which is set as a pre-recording period, exists in a recording medium different from the predetermined recording medium, The actual recording is performed in a region of the predetermined recording medium, the actual recording being avoided in the pre-recording region; copying the data of the pre-recording period from the different recording medium to the pre-recording area of the predetermined recording medium; 7. The image recording apparatus according to claim 6.
11. 11. The image recording apparatus according to claim 10, wherein the actual recording processing means records the actual recording data following the data of the pre-recording period when the data of the pre-recording period exists on the predetermined recording medium.
12. The imaging unit is provided. The pre-recording processing means pre-records moving image data captured by the imaging unit during execution of the pre-recording, the actual recording processing means records, on the recording medium, video data captured by the imaging unit from an instruction to start the actual recording until an instruction to stop the actual recording.
2. The image recording apparatus according to claim 1,
13. 1. An image recording method executed by an image recording device capable of pre-recording, which starts recording an image captured by an imaging unit prior to the start of actual recording, comprising: performing the pre-recording; and when a start condition for actual recording is satisfied during the execution of the pre-recording, starting actual recording of the image captured by the imaging unit, The pre-recording is performed on a non-volatile recording medium to be used for the actual recording.
1. An image recording method comprising:
14. A program for causing a computer to function as each of the means included in the image recording apparatus according to any one of claims 1 to 12.
Citation Information
Patent Citations
Electronic camera
JP2001257976A
