Image recording device, and image recording method

By storing pre-recording data on a non-volatile medium and managing it effectively, the pre-recording period limitations in image recording devices are alleviated, improving user convenience and memory efficiency.

WO2024237171A1PCT designated stage expired Publication Date: 2024-11-21CANON KK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/017310
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-12
Filing Date
2024-05-09
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

The length of the pre-recording period in image recording devices is limited by the capacity of the built-in memory, restricting user convenience and the duration for which pre-recording can be performed.

Method used

Implementing a system where pre-recording data is stored on a non-volatile recording medium instead of volatile memory, allowing for longer pre-recording periods without memory capacity constraints, and dynamically managing pre-recording data to maintain sufficient memory space for actual recording.

Benefits of technology

This approach relaxes the restrictions on the pre-recording period, enhancing user convenience by allowing longer pre-recording durations without memory capacity limitations and ensuring efficient data management during actual recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024017310_21112024_PF_FP_ABST
    Figure JP2024017310_21112024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are an image recording device and an image recording method with which it is possible to relax restrictions on the length of a pre-recording period. The image recording device is capable of performing pre-recording, in which recording of an image captured by an imaging unit is started prior to the start of actual recording. When a start condition for the actual recording is satisfied while pre-recording is being executed, the image recording device starts the actual recording of the image captured by the imaging unit. The image recording device performs the pre-recording onto a non-volatile recording medium to be used for the actual recording.
Need to check novelty before this filing date? Find Prior Art

Description

Image recording device and image recording method

[0001] The present invention relates to an image recording apparatus and an image recording method.

[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 the recording instruction by starting recording without waiting for a recording instruction from the user (Patent Document 1).

[0003] Japanese Patent Application Laid-Open No. 2001-257976

[0004] The longer the period during which images are recorded using 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 the data for the pre-recording period is stored in, for example, internal memory (RAM), the length of the pre-recording period is limited by the available capacity of the internal memory.

[0005] In one aspect, the present invention provides an image recording device and an image recording method that can relax the restrictions on the length of the pre-recording period.

[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, comprising a pre-recording processing means for executing the pre-recording, and an actual recording processing means for starting 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.

[0007] In another 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, comprising: a determination means for determining a method of pre-recording; a pre-recording processing means for starting pre-recording of an image captured by the imaging unit in accordance with the method determined by the determination means; and an actual recording processing means for starting actual recording of the image captured by the imaging unit when a start condition for actual recording is satisfied while pre-recording is being performed; and the pre-recording processing means performs pre-recording using the method after the switch if the method determined by the determination means is switched while pre-recording is being performed.

[0008] According to the aspects of the present invention, it is possible to provide an image recording device and an image recording method that can relax the restrictions on the length of the pre-recording period.

[0009] Other features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings, in which the same or similar elements are designated by the same reference numerals.

[0010] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0011] FIG. 1 is a diagram for explaining a recording control operation according to the first embodiment; FIG. 2 is a block diagram showing an example of the functional configuration of a digital camera according to the first embodiment; FIG. 3 is a flowchart relating to a recording control operation according to the first embodiment; FIG. 4 is a diagram for explaining a recording control operation according to the second embodiment; FIG. 5 is a flowchart relating to a recording control operation according to the second embodiment; FIG. 6 is a flowchart relating to a recording control operation according to the second embodiment; FIG. 7 is a block diagram showing an example of the functional configuration of a digital camera according to the third embodiment; FIG. 8 is a diagram for explaining a pre-recording control operation according to the third embodiment; FIG. 9 is a diagram for explaining an actual recording control operation according to the third embodiment; FIG. 10 is a flowchart relating to a recording control operation according to the third embodiment; FIG. 11 is a flowchart relating to a recording control operation according to the third embodiment; FIG. 12 is a flowchart relating to a recording control operation according to the third embodiment;

[0012] The present invention will be described in detail below based on exemplary embodiments with reference to the accompanying drawings. Note that the following embodiments do not limit the scope of the claimed invention. Furthermore, 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 numerals are used to designate the same or similar components, and redundant explanations will be omitted.

[0013] In the following embodiments, the present invention will be described with reference to a digital camera. However, the present invention can be implemented in any electronic device with 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.

[0014] 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 has an address bus, a data bus, and a control bus. The bus 101 enables commands and data to be communicated between connected functional blocks.

[0015] 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 .

[0016] The ROM 103 is a rewritable nonvolatile memory, and stores programs executed by the CPU 102, various setting values ​​for the digital camera 100, GUI data, and the like.

[0017] 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.

[0018] 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 input devices compatible with non-contact input methods such as voice input or eye-gaze input.

[0019] The operation control unit 106 detects that the user has operated the operation unit 105, and notifies the CPU 102 of the detected operation.

[0020] In this embodiment, the digital camera 100 has a still image mode and a video mode, which can be switched using the operation unit 105. In the still image mode, the CPU 102 recognizes a half-pressed state of the release switch as an instruction to prepare for shooting, and a full-pressed state as an instruction to start shooting. In the video mode, the CPU 102 recognizes operation of the release switch in a shooting standby state as an instruction to start video recording. Furthermore, the CPU 102 recognizes operation of the release switch during video recording and in a state where no operation of the release switch has been detected as an instruction to stop video recording. In the video shooting mode, the CPU 102 does not distinguish between a half-pressed state and a full-pressed state of the release switch, regarding both as operation of the release switch.

[0021] The operation unit 105 may have a movie recording switch separate from the release switch. In this case, the digital camera 100 records still images or movies depending on the switch operated while in a shooting standby state. Specifically, the CPU 102 recognizes the half-pressed state of the release switch as an instruction to prepare for still image shooting, and the full-pressed state as an instruction to start still image shooting. The CPU 102 also recognizes operation of the movie recording switch while in a shooting standby state as an instruction to start movie recording, and operation of the movie recording switch while a movie is being recorded as an instruction to stop movie recording.

[0022] The recording medium 107 is a removable, 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 also be an external non-volatile recording medium (e.g., HDD, SSD, etc.) accessible by the digital camera 100.

[0023] In this specification, the term "recording data" refers to data used for recording (i.e., data before recording), and the term "recorded data" refers to data in a state recorded on a recording medium or the like (i.e., data after recording).

[0024] 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, it reads data to be read that is recorded on the recording medium 107 in units of a fixed size and stores the data in the RAM 104. Furthermore, when the recording medium control unit 108 receives a write command from the request source, it writes data to be written that is stored in the RAM 104 to the recording medium 107 in units of a fixed size.

[0025] Furthermore, when the recording medium control unit 108 receives a deletion command from the requestor, it deletes the data recorded on the recording medium 107. Deleting the data may involve writing data of a specific value, or changing the management information of the data so that the data appears as if it has been deleted. The recording medium control unit 108 notifies the requestor of the completion of reading or writing the data in accordance with the command. The requestor may be, for example, the CPU 102, the pre-recording processing unit 109, the actual recording processing unit 110, or the front cut unit 112.

[0026] As part of management processing for the recording medium to be controlled, the recording medium control unit 108 monitors the free space on the recording medium 107. In response to requests from the CPU 102, the pre-recording processing unit 109, the actual recording processing unit 110, etc., the recording medium control unit 108 notifies 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 on the recording medium 107 has run out.

[0027] 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 length and a zoom lens that changes the angle of view, an aperture with a variable aperture, and drive mechanisms for the movable lens and the aperture. The operations of the movable lens and the aperture are controlled by the CPU 102.

[0028] The image sensor 115 (image capture unit) may be, for example, a known CCD or CMOS color image sensor with a primary-color Bayer array color filter. The image sensor 115 has a pixel array in which multiple pixels are arranged two-dimensionally and peripheral circuitry for reading signals from each pixel. Each pixel generates charge according to the amount of incident light using a photoelectric conversion function. By reading from each pixel a signal having a voltage according to the amount of charge generated during the exposure period, a group of pixel signals (analog image signals) representing an optical image of a subject formed on the imaging surface is obtained. The image sensor 115 A / D converts the analog image signals to generate digital image signals (image data) and stores them in the RAM 104. Note that the A / D conversion may be performed by a circuit external to the image sensor 115.

[0029] The CPU 102 applies predetermined image processing to image data stored in the RAM 104 to generate signals and image data according to the intended use, and acquires and / or generates various types of information. The CPU 102 stores the generated image data in the RAM 104 according to the intended use. The CPU 102 also controls the operations of other functional blocks using the acquired information.

[0030] Image processing applied by the CPU 102 may include, for example, preprocessing, color interpolation, correction, detection, data processing, evaluation value calculation, and special effect processing. Preprocessing may include signal amplification, reference level adjustment, and defective pixel correction. Color interpolation, performed when a color filter is provided on the image sensor, interpolates the values ​​of color components not included in the individual pixel data constituting the image data. Color interpolation is also called demosaicing. Correction may include white balance adjustment, gradation correction, correction of image degradation caused by optical aberrations in the imaging optical system 114 (image restoration), correction of the effects of peripheral shading in the imaging optical system 114, and color correction. Detection may include detection of characteristic regions (e.g., facial regions and human body regions) and their movement, person recognition, and so on. Data processing may include region extraction (trimming), compositing, scaling, encoding and decoding, and header information generation (data file generation). Data processing also includes the generation of image data for display and image data for recording. The evaluation value calculation process may include processes such as generating signals and evaluation values ​​used in autofocus (AF) detection and generating evaluation values ​​used in autoexposure (AE) control. Special effect processing may include processes such as adding a blur effect, changing color tones, and relighting. These are examples of processes that the CPU 102 can apply, and do not limit the processes that the CPU 102 can apply. At least a portion of the image processing may be applied using a hardware circuit separate from the CPU 102. The hardware circuit may be, for example, an application-specific integrated circuit (ASIC), a digital signal processor (DSP), or a graphics processing unit (GPU).

[0031] The CPU 102 uses the AF evaluation value to drive the focus lens of the imaging optical system 114, thereby adjusting the focal length of the imaging optical system 114. The CPU 102 also determines exposure conditions using the AE evaluation value, and drives the aperture of the imaging optical system 114 according to the aperture value included in the exposure conditions.

[0032] 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 perform 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 individual circuits. For example, one or more of the functional blocks 109 to 112 may be realized by the CPU 102 executing a program.

[0033] When pre-recording is enabled and the CPU 102 detects that a pre-recording start condition has been met, the CPU 102 controls the operation of each component to start pre-recording. The user can enable or disable pre-recording by, for example, operating a menu screen via the operation unit 105. The pre-recording start condition may be, for example, a standby state for video recording (a state in which a recording start command can be input) in video mode. Alternatively, in still image mode, the pre-recording start condition may be that the release switch has been detected as being half-pressed rather than fully pressed for a certain period of time. Note that these are examples of pre-recording start conditions, and other conditions may also be used.

[0034] Pre-recording is a function that starts recording before a recording start command is input by the user. Pre-recording is executed from the time when a start condition is satisfied until the recording start command is input (or 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 input of the recording start command (or immediately before the start of actual recording) is saved in association with the data recorded in response to the input of the recording start command (actually recorded data).

[0035] 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 the length of the pre-recording period from the input of the recording start instruction as the starting point 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 the 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.

[0036] 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 with the file names of 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. Furthermore, in video mode, the pre-recorded data and the actual recording data may be combined to form continuous data, or the pre-recorded data and the actual recording data may be continuously recorded in the same data file.

[0037] Pre-recording is a function that starts recording before an instruction to start actual recording is input. Therefore, the image capture and recording operations during pre-recording may be the same as those during actual recording. However, in still image mode, even if a mechanical shutter is set to be used during actual recording, images may be captured during pre-recording without using the mechanical shutter so as not to affect the live view display during pre-recording.

[0038] When the CPU 102 detects that the pre-recording start condition has been 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.

[0039] When the pre-recording processing unit 109 is notified by the CPU 102 of the start of pre-recording, it sends 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 sends a write command, for example, each time a write unit of data is stored in the RAM 104. By sequentially recording the pre-recording data stored in the RAM 104 to the recording medium 107 in this manner, 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 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 regarding the start position of pre-recording (e.g., frame number, timestamp, etc.).

[0040] When the CPU 102 detects that the conditions for starting actual recording have been met, it notifies the pre-recording processing unit 109 and the actual recording processing unit 110 of the start of actual recording. The conditions for starting actual recording may be, for example, detection of a release switch operation during pre-recording in video mode, or detection of a fully pressed state of the release switch in still image mode. Note that these are examples of conditions for starting actual recording, and other conditions may also be used.

[0041] Furthermore, when the CPU 102 detects that the conditions for starting actual recording have been met, it ends the generation of pre-recording data with the current frame. The CPU 102 changes image capture parameters as necessary, then starts generating actual recording data and stores the generated actual recording data in the RAM 104. In moving image mode, the generation of pre-recording data may continue and be executed as actual recording data generation from the next frame. In this case, the pre-recorded moving image data and the actual recorded moving image data have consecutive frame numbers. The CPU 102 also notifies the pre-recording processing unit 109 and the actual recording processing unit 110 of the start of actual recording.

[0042] When the pre-recording processing unit 109 is notified by the CPU 102 of the start of actual recording during pre-recording, it notifies information capable of specifying the start position of actual recording (e.g., 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.

[0043] When the actual recording processing unit 110 is notified by the CPU 102 of the start of actual recording, it sends 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 on the recording medium 107 that is specified based on the information notified by the pre-recording processing unit 109. Similar to the pre-recording processing unit 109, the actual recording processing unit 110 sends a write command to the recording medium control unit 108, for example, each 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, the frame number when actual recording started, a timestamp, etc.).

[0044] When the CPU 102 detects that the actual recording stop condition has been satisfied, it controls the operation of each component to stop the actual recording. The actual recording stop condition may be the detection of a stop instruction, for example, the detection of a release switch operation during actual recording in video mode, or the loss of detection of the release switch being fully pressed in still image mode. Note that these are examples of the actual recording stop condition, and other conditions may also be used.

[0045] When the CPU 102 detects that the actual recording stop condition has been satisfied, it stops creating the actual recording data with the current frame, and notifies the actual recording processing unit 110 of the stop of actual recording.

[0046] When the actual recording processing unit 110 is notified by the CPU 102 to stop actual recording, it records the actual recording data for the current frame onto the recording medium 107 and then stops operation.

[0047] When the pre-recording start position calculation unit 111 is notified of information regarding the start position of actual recording from the actual recording processing unit 110, it obtains information regarding 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 regarding the recording start position of pre-recording data corresponding to the pre-recording period may be a frame number, a timestamp, or the like 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.

[0048] The pre-recording start position calculation unit 111 calculates the number of frames corresponding to a predetermined pre-recording period, for example, based on the pre-recording frame rate.The pre-recording start position calculation unit 111 then subtracts the calculated number of frames from the frame number at which actual recording started, thereby obtaining the frame number corresponding to the recording start position of the pre-recording data corresponding to the pre-recording period.Alternatively, the pre-recording start position calculation unit 111 can calculate 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.

[0049] The front cutting unit 112 deletes data other than that in the pre-recording period from the pre-recording data in the recording medium 107. Specifically, the front cutting 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-recording data to just before the recording start position of the data in the pre-recording period, which is notified by the pre-recording start position calculation unit 111.

[0050] Note that instead of deleting from the beginning of the pre-recorded data, deletion may be performed from the start position of pre-recording based on information notified by the pre-recording processing unit 109. The range of pre-recorded data to be deleted from the recording medium 107 may also be identified by a method other than that described here. For example, the pre-recording processing unit 109 manages the cumulative data size for each frame from the start of pre-recording, and inquires from the front cut unit 112 about the cumulative 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 sends a command to the recording medium control unit 108 to delete data equivalent to the cumulative data size obtained from the pre-recording processing unit 109, from the beginning.

[0051] The pre-recorded data can be deleted by the front cut unit 112 when the actual recording starts or stops. Deleting data when the actual recording starts increases the capacity of the recording medium 107 available for actual recording. Deleting data when the actual recording stops avoids conflicts between accessing the recording medium 107 for actual recording and accessing the recording medium 107 for deleting data.

[0052] 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 performed. Here, it is assumed that a portion of the pre-recorded data is deleted by a front cut unit 112 when actual recording is stopped.

[0053] 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. Reference numeral 1a indicates 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.

[0054] When actual recording starts, the actual recording data is recorded on the recording medium 107 following the pre-recording data. 1b 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 saved 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 1c, data other than the pre-recording period is deleted from the pre-recording data.

[0055] Next, the data recording control operation during the pre-recording and actual recording will be further explained using the flowchart shown in Figure 3. This operation is performed when pre-recording is enabled. Furthermore, pre-recorded data outside the pre-recording period is deleted at the start of actual recording.

[0056] In the digital camera 100, any known operation may be performed by the CPU 102 to generate 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 the CPU 102.

[0057] In S201, the CPU 102 determines whether the pre-recording start condition is satisfied. If it is determined that the pre-recording start condition is satisfied, S202 is executed; if it is 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 command can be input). Alternatively, in still image mode, the pre-recording start condition may be that the release switch is not fully pressed but is continuously pressed halfway for a certain period of time. Note that the pre-recording start condition may also be determined to be satisfied when pre-recording is enabled.

[0058] 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 regarding the recording start position of the pre-recording data.

[0059] In S203, the CPU 102 determines whether or not the conditions for starting actual recording are satisfied. If it is determined that the conditions are satisfied, the CPU 102 executes S205, and if not, the CPU 102 repeatedly executes S203.

[0060] In S205, when the CPU 102 completes the generation of pre-recording data for the current frame, it starts generating actual recording data. 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 cut unit 112.

[0061] 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.

[0062] In S207 , the actual recording processing unit 110 starts recording the actual recording data onto the recording medium 107 .

[0063] 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 it is not determined that the condition is satisfied, the CPU 102 repeatedly executes S208.

[0064] 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 by the CPU 102 of the stop of actual recording, it stops operation upon completion of recording of the actual recording data of the current frame. Thereafter, the CPU 102 executes S201.

[0065] 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.

[0066] Second Embodiment Next, a second embodiment of the present invention will be described. This embodiment may be the same as the first embodiment except for the operation related to data recording control. Therefore, the second embodiment will be described as being implemented in the digital camera 100 described above.

[0067] In the first embodiment, the pre-recording data on the recording medium 107 continues to increase while the pre-recording is being performed, 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-recording data is suppressed.

[0068] 4 is a diagram showing a schematic diagram of changes over time in the pre-recorded data and the actual recorded data on the recording medium 107 when the recording control operation according to this 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.

[0069] As in the first embodiment, by writing the pre-recording data to the recording medium 107 used for actual recording, the length of the pre-recording period is not restricted by the capacity of the RAM 104. 4a 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.

[0070] As pre-recording continues, when the amount of pre-recording data stored in the file reaches a predetermined threshold Th1, the file is divided into multiple files, each storing an amount of data corresponding to the threshold Th1. 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 storing pre-recording data of the same size (Th1 / 2) (4b). The pre-recording processing unit 109 then continues recording the pre-recording data in the newly created files. Th1 is set to be more than twice the amount of data for the pre-recording period (so that 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.

[0071] Similarly, the pre-recording processor 109 divides the file being recorded and continues recording the pre-recording data in the new file each time the amount of pre-recording data stored in the file reaches threshold value Th1 (4c). Furthermore, when the total amount of pre-recording data reaches predetermined threshold value Th2, the pre-recording processor 109 (or the front cut unit 112) deletes the file containing the oldest pre-recording data at that time (4d). 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 greater.

[0072] When actual recording starts, the actual recording data is recorded on the recording medium 107 following the pre-recording data. 4e 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 saved 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 4f, 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 way as in the first embodiment.

[0073] Although the thresholds Th1 and Th2 have been described as data amounts here, recording time or number of frames may be used instead. For example, a file may be 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 containing 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 related to pre-recording, such as the data amount, recording time, and number of frames, is monitored and managed by the pre-recording processing unit 109.

[0074] Next, the data recording control operation during the pre-recording and actual recording described above will be further explained using the flowcharts shown in Figures 5A and 5B. This operation is performed when pre-recording is enabled. Furthermore, pre-recorded data other than the pre-recorded data during the pre-recording period is deleted at the start of actual recording. Furthermore, steps that perform the same processing as in the first embodiment are given the same reference numerals as in Figure 3, and redundant explanations will be omitted.

[0075] A description of S201 and S202 will be omitted. In S203, the CPU 102 determines whether the conditions for starting actual recording are satisfied, and if it is determined that the conditions are satisfied, it executes S205, and if not, it executes S304.

[0076] In S304, the pre-recording processing unit 109 determines whether the file division conditions are met. If so, it executes S305; if not, it returns to S203. The file division conditions are the conditions related to the amount of pre-recorded data, recording time, and number of recorded frames based on the threshold value Th1, as described with reference to FIG. 4. If the pre-recording processing unit 109 determines that the file division conditions are met, it resets the data amount, recording time, or number of frames used for the determination. As a result, during pre-recording, the processing from S305 onward is executed each time it determines that the file division conditions are met.

[0077] In S305, the pre-recording processing unit 109 divides the file that satisfies the file division conditions into two files via the recording medium control unit 108. The pre-recording processing unit 109 also 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.

[0078] In S306, the pre-recording processing unit 109 determines whether a deletion flag indicating whether or not to delete the oldest file among the files storing pre-recorded data is true (1) or false (0). The deletion flag can be stored in, for example, the RAM 102 during pre-recording. If the pre-recording processing unit 109 determines that the deletion flag is true, it executes S307, and if not, it executes S308.

[0079] 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. The pre-recording processing unit 109 changes the deletion flag to false, and then executes S308.

[0080] In S308, the pre-recording processing unit 109 determines whether the file deletion condition is met. If it is determined that the file deletion condition is met, S309 is executed. If it is not, the process returns to S203. Here, the file deletion condition is a condition related to the amount of pre-recorded data, recording time, and number of recorded frames based on the threshold value Th2, as described with reference to FIG. 4. If it is determined that the file deletion condition is met, 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 each time it is determined that the file deletion condition is met during pre-recording.

[0081] In S309, the pre-recording processing unit 109 sets the deletion flag to true, and then returns the process to S203.

[0082] Note that the operations from S205 onwards are the same as those in the first embodiment, except that the pre-recording data deleted by the front cut unit 112 in S206 and the pre-recording data corresponding to the pre-recording period may be recorded across multiple data files. When the pre-recording data corresponding to the pre-recording period is recorded across multiple data files, the data file that stores the actual recording data is associated with the multiple data files that store the pre-recording data for the pre-recording period. The association method may be the same as that in the first embodiment.

[0083] According to this embodiment, by performing pre-recording on the recording medium to be used for actual recording, it is possible to obtain the same effect as in the first embodiment. Furthermore, since the maximum amount of pre-recorded data on the recording medium is limited, it is possible to prevent the free space on the recording medium from decreasing more than a certain amount during pre-recording.

[0084] <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 multiple 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 assigned the same reference numerals as in Fig. 2, and duplicated explanations will be omitted.

[0085] The digital camera 400 can use two recording media (recording media A 107 and recording media B 401). It also has a recording media control unit A 108 that controls reading and writing of data from and to the recording media 107A, and a recording media control unit B 402 that controls reading and writing of data from and to the recording media B 401. Note that the recording media A 107 and the recording media B 401 may be the same as the recording media 107 included in the digital camera 100. The recording media control unit A 108 and the recording media control unit B 402 may also be the same as the recording media control unit 108 included in the digital camera 100.

[0086] In this embodiment, during pre-recording, the pre-recording processing unit 109 periodically acquires 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.

[0087] 7 is a diagram showing a change over time in the pre-recorded data on the recording medium A 107 and the recording medium B 401 when the recording control operation according to this embodiment is executed. Note that, for ease of explanation and understanding, it is assumed that no other recording data exists on the recording medium A 107 and the recording medium B 401.

[0088] In this embodiment, the pre-recording processing unit 109 sets a pre-recording area (pre-recording area) in advance in part of the recording area of ​​the recording medium A 107 and the recording medium B 401 (7a). 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.

[0089] At the start of pre-recording, pre-recording data is recorded on one of the recording media A107 and B401 (here, recording media A107). 7b shows the state of the pre-recording data on the recording media A107 and B401 at the time when the parallel recording start condition is met after the start of pre-recording. The parallel recording start condition may be that the free space in the pre-recording area on either the recording media A107 or B401 is equal to the pre-recording period. The free space can be expressed as the available time, data amount, or number of frames.

[0090] At the time shown in 7b, the pre-recording data is recorded only on the recording medium A 107. Therefore, 7b shows a state in which the free space on the recording medium A 107 is equal to the pre-recording period.

[0091] When the parallel recording start conditions are satisfied, the pre-recording processing unit 109 records the pre-recording data in parallel on both the recording medium A 107 and the recording medium B 401 (7c). As a result, when the free space in the pre-recording area of ​​either the recording medium A 107 or the recording medium B 401 runs out (7d), the pre-recording data for the most recent pre-recording period will be recorded on both the recording medium A 107 and the recording medium B 401. This makes it possible to prevent the pre-recording data for the most recent pre-recording period from being recorded across two recording media.

[0092] When the free space in the pre-recording area of ​​either the recording medium A 107 or the recording medium B 401 runs out, the pre-recording processing unit 109 deletes the pre-recording data in the pre-recording area that no longer has free space, and stops recording the pre-recording data on that 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 B 401).

[0093] Thereafter, when the conditions for starting parallel recording are satisfied for recording medium B401 on which pre-record data is still being recorded (7e), the pre-recording processing unit 109 records pre-recording data in parallel on both recording medium A107 and recording medium B401 (7f).

[0094] Thereafter, the pre-recording processing unit 109 repeats the control of stopping parallel recording when the free space in the pre-recording area is exhausted during the execution of pre-recording, deleting the pre-recording data in the pre-recording area where the free space is exhausted, and starting parallel recording when the start condition for parallel recording is satisfied.

[0095] Next, the recording control operation when actual recording is started will be described with reference to Figures 8 and 9. Figures 8 and 9 both show the recording control operation when actual recording is started during parallel recording, and are identical except for the recording medium that satisfies the parallel recording start conditions.

[0096] First, Fig. 8 will be described. When it is determined that the conditions for starting actual recording are satisfied, the CPU 102 notifies the pre-recording processing unit 109 and the actual recording processing unit 110 of the start of actual recording. When notified of the start of actual recording, the pre-recording processing unit 109 performs 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 of this.

[0097] 8, if it is determined that the conditions for starting actual recording are met during parallel recording, the pre-recording processing unit 109 selects a recording medium with less free space in the pre-recording area (here, recording medium A 107) as the recording medium on which to start actual recording. This is because, during parallel recording, only the recording medium with less free space in the pre-recording area contains data for the entire pre-recording period. Therefore, it can be said that the pre-recording processing unit 109 selects a recording medium on which to start actual recording, the recording medium on which to start actual recording.

[0098] Furthermore, if it is determined that the conditions for starting actual recording are met 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.

[0099] The pre-recording processing unit 109 does not have 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, store identification information of the recording medium on which actual recording is to be started in, for example, the RAM 104. The pre-recording processing unit 109 may store, as the recording medium on which actual recording is to be started, identification information of a recording medium with little free space in the pre-recording area during parallel recording, or 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 simply switch the recording medium indicated by the identification information at the end of parallel recording.

[0100] Furthermore, the pre-recording processing unit 109 deletes the pre-recording data that exists on a recording medium other than the recording medium on which actual recording is to be started (here, the recording medium B401).

[0101] The actual recording processing unit 110 starts actual recording on the recording medium (here, recording medium A107) notified by the pre-recording processing unit 109. Furthermore, the pre-recording start position calculation unit 111 and the front cut unit 112 delete pre-recorded data other than data in the pre-recording period from the recording medium on which actual recording is to be started, in the same manner as in the first embodiment.

[0102] Similar control is also 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.

[0103] 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 using the flowcharts shown in FIGS. 10A and 10B. This operation is performed when pre-recording is enabled. Furthermore, pre-recorded data outside the pre-recording period is deleted at the start of actual recording. Furthermore, steps that perform the same processing as in the first embodiment are given the same reference numerals as in FIG. 3, and redundant descriptions will be omitted.

[0104] 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 once the length of the pre-recording period has been determined.

[0105] A description of S201 and S202 will be omitted. In S203, the CPU 102 determines whether the conditions for starting actual recording are satisfied, and if it is determined that the conditions are satisfied, it executes S205, and if not, it executes S502.

[0106] In S502, the pre-recording processing unit 109 determines whether the parallel recording start condition is met. If it is determined that the condition is met, S503 is executed; if not, S504 is executed. As described above, the parallel recording start condition may be that the free space in the pre-recording area on either the recording medium A 107 or the recording medium B 401 is equal to the pre-recording period. The free space in the pre-recording area can be detected by any method, such as by comparing the amount of change in the free space on the recording medium or the cumulative amount of recorded data with the capacity of the pre-recording area.

[0107] In S503, the pre-recording processing unit 109 starts parallel recording, whereby pre-recording data is recorded on both the recording medium A 107 and the recording medium B 401 in parallel.

[0108] In S504, the pre-recording processing unit 109 determines whether or not there is no free space in the pre-recording area of ​​any of the recording media. If it is determined that there is no free space, it executes S505, and if not, it returns the process to S203.

[0109] In S505, the pre-recording processing unit 109 stops pre-recording on the recording medium when the pre-recording area has no free space. The pre-recording processing unit 109 also deletes the pre-recorded data from the pre-recording area when the free space has run out. Thereafter, the pre-recording processing unit 109 executes S506.

[0110] 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 has stopped to the recording medium on which pre-recording is continuing. As described above, the recording medium on which actual recording is to be started may be determined at the start of actual recording. Thereafter, the pre-recording processing unit 109 returns the process to S203.

[0111] 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 that exists on a recording medium other than the recording medium on which actual recording is to be started in S507. Note that this deletion process may be executed after actual recording has stopped.

[0112] 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 a description thereof will be omitted. Note that if the recording medium on which actual recording has started runs out of free space, actual recording may be continued on another recording medium (relay recording).

[0113] According to this embodiment, even when there are multiple recording media that can be used for actual recording, the same effects as those of the first embodiment can be achieved. Furthermore, a pre-recording area is set on the recording medium, and pre-recording data is recorded only in the pre-recording area, thereby reducing the proportion of the recording medium occupied by the pre-recording data. 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 actual recording.

[0114] <Fourth Embodiment> Next, a fourth embodiment of the present invention will be described. Like the third embodiment, this embodiment is directed to an image recording device capable of using multiple recording media for actual recording. Furthermore, 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 using the digital camera 400 described above.

[0115] 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. This embodiment relates to recording control in a case where the recording medium on which actual recording is to start is set in advance. Recording control until actual recording starts may be the same as in the third embodiment.

[0116] 11 schematically shows 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 recording medium A 107 is set in advance as the recording medium on which actual recording is started. Note that 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 ROM 103.

[0117] When the actual recording processing unit 110 is notified of the start of actual recording, it starts actual recording on the set recording medium. If pre-record data for the entire pre-recording period exists on the recording medium on which actual recording is started, the actual recording processing unit 110 also performs the same recording control operation for actual recording as in the third embodiment. On the other hand, if the recording medium on which actual recording is started is different from the recording medium on which pre-recording data for the entire pre-recording period exists, the actual recording processing unit 110 performs actual recording while avoiding the pre-recording area set on the recording medium, as shown in Figure 11. Note that although unnecessary pre-recording data is deleted when actual recording starts in Figure 11, it may also be deleted after actual recording is stopped.

[0118] When the actual recording is stopped, the actual recording processing unit 110 copies the pre-recorded data for 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-recorded data from the copy source.

[0119] As a result, regardless of the setting of the recording medium on which the actual recording is to be started and the timing at which the actual recording is to be started, the pre-recording data in the pre-recording period and the actual recording data are reliably stored on the same recording medium.

[0120] Next, the data recording control operation during pre-recording and actual recording in this embodiment will be further described using the flowcharts shown in Figures 12A and 12B. This operation is performed when pre-recording is enabled. Furthermore, pre-recorded data outside the pre-recording period is deleted at the start of actual recording. Furthermore, steps that perform the same processes as in the first embodiment are assigned the same reference numerals as in Figure 3, and steps that perform the same processes as in the third embodiment are assigned the same reference numerals as in Figures 10A and 10B, and redundant descriptions will be omitted.

[0121] Explanation of S500, S201, and S202 will be omitted. In S203, the CPU 102 determines whether the conditions for starting actual recording are met, and if it is determined that they are met, 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, so explanation will be omitted.

[0122] 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.

[0123] If the start position of actual recording specified based on the information notified by 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 by 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 free area at the beginning of the recording medium other than the pre-recording area where actual recording is to be started.

[0124] 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 from the pre-recording period exists, and if it is determined that they are different, executes S603, and if not, returns the process to S201.

[0125] In S603, the actual recording processing unit 110 copies the pre-recording data for the entire pre-recording period recorded on the other recording medium to the pre-recording area of ​​the recording medium on which actual recording has started. Furthermore, upon completion of the copy, the actual recording processing unit 110 deletes the pre-recording data from the copy source. The actual recording processing unit 110 then returns the process to S201.

[0126] 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 effect as in the third embodiment.

[0127] <Fifth Embodiment> Next, a fifth embodiment of the present invention will be described. This embodiment may be the same as the first embodiment except for the operation related to data recording control. Therefore, the fifth embodiment will be described as being implemented in the digital camera 100 described above.

[0128] In the second embodiment, when the total amount of pre-recording data present on the recording medium 107 reaches a threshold value during pre-recording, the file storing the oldest pre-recording data at that time is deleted, thereby suppressing a reduction in free space on the recording medium 107 due to the pre-recording. In the present embodiment, when specific conditions are met, pre-recording data for the pre-recording period is buffered in the RAM 104, and conventional pre-recording is performed in which no data is recorded on the recording medium 107 during pre-recording, thereby suppressing a reduction in free space on the recording medium 107 due to pre-recording.

[0129] Here, the specific conditions for executing conventional pre-recording may be one or more of the following: when the free space on the recording medium 107 is small (below a capacity threshold) at the time pre-recording starts; and when the pre-recording period is short (below a time threshold). Note that these are merely examples, and other conditions may also be used. It is also assumed that the capacity threshold and the time threshold are set in advance in the ROM 103.

[0130] The data recording control operation during pre-recording and actual recording according to this embodiment will be described in detail using the flowcharts shown in Figures 13A and 13B. This operation is performed when pre-recording is enabled. Furthermore, pre-recorded data other than the pre-recorded data during the pre-recording period is deleted at the start of actual recording. Furthermore, steps that perform the same processing as in the first embodiment are given the same reference numerals as in Figure 3, and redundant explanations will be omitted.

[0131] In S201, the CPU 102 determines whether or not the pre-recording start condition is satisfied. If it is determined that the pre-recording start condition is satisfied, the CPU 102 executes S700, and if not, the CPU 102 executes S201.

[0132] In S700, the pre-recording processing unit 109 determines whether the conditions for storing pre-recording data in the RAM 104 are met, and if it is determined that the conditions are met, it executes S701, and if it is not, it executes S702. This determination can also be said to be a determination as to whether to execute a conventional pre-recording method or the pre-recording method according to the first embodiment.

[0133] For example, if the free space of the recording medium 107 obtained from the recording medium control unit 108 is equal to or less than a capacity threshold or the pre-recording period is equal to or less than a time threshold, the pre-recording processing unit 109 determines that the condition for storing the pre-recording data in the RAM 104 is met. On the other hand, if the free space of the recording medium 107 exceeds the capacity threshold and the pre-recording period exceeds the time threshold, the pre-recording processing unit 109 does not determine that the condition for storing the pre-recording data in the RAM 104 is met.

[0134] Alternatively, the pre-recording processing unit 109 determines whether the conditions are met based on the capacity of the storage area in RAM 104 that can store the pre-recording data and the length of the pre-recording period. In this case, the pre-recording processing unit 109 calculates the maximum time of pre-recording data (moving image) that can be stored in RAM 104 based on recording settings, including, for example, the recording size of the moving image data (the number of recording pixels per frame), the recording format, and the compression setting. Then, if the length of the pre-recording period is equal to or less than the calculated maximum storable time, the pre-recording processing unit 109 determines that the conditions for storing the pre-recording data in RAM 104 are met. On the other hand, if the length of the pre-recording period is longer than the calculated maximum storable time, the pre-recording processing unit 109 does not determine that the conditions for storing the pre-recording data in RAM 104 are met. Note that instead of calculating the maximum time of moving image data that can be stored in RAM 104 based on the recording settings, the maximum time of moving image data that can be stored in RAM 104 may be stored in advance in ROM 103 according to the combination of recording settings.

[0135] In S701, the pre-recording processing unit 109 determines to execute the conventional pre-recording method (accumulating (temporarily storing) data for the most recent pre-recording period in RAM 104, and not recording pre-recording data on the recording medium 107 during pre-recording).

[0136] In S702, the pre-recording processing unit 109 determines to execute the pre-recording method according to the first embodiment (sequentially record pre-recording data on the recording medium 107 during pre-recording).

[0137] The pre-recording processing unit 109 stores the determination results in S701 or S702 for at least the most recent two times in, for example, the RAM 104.

[0138] Thereafter, pre-recording is started in S202, and during the pre-recording, in S703 the pre-recording processing unit 109 stores the pre-recording data in RAM 104 or records it on the recording medium 107 according to the decision made in the most recent step S701 or S702. When storing the pre-recording data in RAM 104, the pre-recording data in RAM 104 is sequentially updated so that RAM 104 holds a buffer of pre-recording data for the most recent pre-period. Therefore, the capacity of RAM 104 used by the pre-recording data is determined according to the pre-recording period.

[0139] After the conditions for starting actual recording are satisfied, in S704 the pre-recording processing unit 109 determines whether pre-recording data is stored in the RAM 104. If it is determined that pre-recording data is stored in the RAM 104, the pre-recording processing unit 109 executes S705, and if not, the process proceeds to S206. The determination in S704 corresponds to a determination of whether the previous pre-recording method was being executed at the time the conditions for starting actual recording were satisfied.

[0140] In S705, the pre-recording processing unit 109 records the pre-recording data stored in the RAM 104 onto the recording medium 107. The processes from S206 to S207 onwards are the same as those in the first embodiment, and therefore a description thereof will be omitted.

[0141] According to this embodiment, whether the pre-recording data is stored (temporarily stored) in the built-in memory or recorded on the recording medium used for actual recording can be dynamically changed according to predetermined conditions. Therefore, for example, if priority is given to ensuring free space on the recording medium used for actual recording, or if the built-in memory has sufficient capacity for the length of the pre-recording period, storing the pre-recording data in the built-in memory can reduce the number of times the recording medium is accessed. Furthermore, it is possible to prevent the recording medium from running out of free space during the pre-recording period and interrupting the pre-recording.

[0142] <Sixth Embodiment> Next, a sixth embodiment of the present invention will be described. This embodiment may be the same as the fifth embodiment except for the operation related to data recording control. Therefore, the fifth embodiment will be described as being implemented in the digital camera 100 described above.

[0143] In the fifth embodiment, if a setting change that affects the determination in S700 is made during pre-recording, the execution of pre-recording based on the determination result in S700, which is based on the setting before the change, may become inappropriate. For example, this may occur if the setting for the length of the pre-recording period is changed during pre-recording.

[0144] Therefore, in this embodiment, the pre-recording method is repeatedly determined during pre-recording, and the pre-recording method is dynamically switched if necessary, so that pre-recording suitable for the current settings can be performed.

[0145] The data recording control operation during pre-recording and actual recording according to this embodiment will be described in detail using the flowcharts shown in Figures 14A and 14B. This operation is performed when pre-recording is enabled. Furthermore, pre-recorded data other than the pre-recorded data recorded during the pre-recording period is deleted at the start of actual recording. Furthermore, the same reference numerals as in Figure 3 are used for steps that perform the same processes as in the first embodiment, and the same reference numerals as in Figures 13A and 13B are used for steps that perform the same processes as in the fifth embodiment, and redundant explanations will be omitted.

[0146] 14A, in this embodiment, while pre-recording is being performed, the process returns from S703 to S700, and the determination in S700 is repeatedly performed. Since the process up to the execution of S701 or S702 is the same as in the fifth embodiment, a description thereof will be omitted.

[0147] After execution of S701 or S702, the pre-recording processing unit 109 determines in S800 whether the determined pre-recording method has changed (switched). This determination can be made by referencing the two most recent pre-recording method determination results stored in the RAM 104. If it is determined that the pre-recording method has switched, the pre-recording processing unit 109 executes S801; if not, the pre-recording processing unit 109 executes S802.

[0148] In S801, the pre-recording processing unit 109 determines whether the pre-recording method before the switch (currently being executed) is recording onto the recording medium 107. If it is determined that the pre-recording method before the switch is recording onto the recording medium 107, the pre-recording processing unit 109 executes S803, and if not, it executes S804.

[0149] In S802, the pre-recording processing unit 109 determines whether pre-recording is being performed, and if it is determined that pre-recording is being performed, the process proceeds to S203, but if it is not determined that pre-recording is being performed, pre-recording starts in S202. The pre-recording started here follows the pre-recording method most recently determined in S701 or S702.

[0150] In S803, the pre-recording processing unit 109 deletes the pre-recording data present on the recording medium 107 in order to perform pre-recording using the method after the switch, and the process proceeds to S203. In this way, when the method is switched from performing pre-recording on the recording medium 107 to storing pre-recording data in the RAM 104, the pre-recording is restarted from the beginning.

[0151] In S804, the pre-recording processing unit 109 records the pre-recording data stored in the RAM 104 onto the recording medium 107 to perform pre-recording using the method after the switch, and the process proceeds to S203. In this way, when the method is switched from storing pre-recording data in the RAM 104 to performing pre-recording on the recording medium 107, the pre-recording is continued using the pre-recording data stored in the RAM 104.

[0152] According to this embodiment, in addition to the same effects as those of the fifth embodiment, it is possible to perform appropriate pre-recording even when settings that affect pre-recording are changed during pre-recording.

[0153] (Other Embodiments) In the above-described embodiment, the recording control operation for pre-recording and actual recording in video mode has been mainly described, but similar recording control operations can also be performed in still image mode. In still image mode, actual recording may be a single still image capture, or still images may be continuously captured while the release switch is maintained in a fully pressed state. In still image mode, multiple data files generated from pre-recording and actual recording data are saved in association with each other.

[0154] The present invention can also be realized by supplying a program that realizes one or more of the functions of the above-described embodiments to a system or device via a network or a storage medium, and having one or more processors in the computer of the system or device read and execute the program.The present invention can also be realized by a circuit (e.g., an ASIC) that realizes one or more of the functions.

[0155] 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 clarify the scope of the invention.

[0156] This application claims priority based on Japanese Patent Applications Nos. 2023-79583 and 2023-79586, filed May 12, 2023, the entire contents of which are incorporated herein by reference.

Claims

1. 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, comprising: a pre-recording processing means which executes the pre-recording; and an actual recording processing means which starts 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 used for the actual recording.

2. The image recording device according to claim 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 prior to the start of the actual recording, which is set as a pre-recording period.

3. An image recording device as described in claim 1 or 2, further comprising a volatile memory for temporarily storing data to be recorded on the recording medium, and the pre-recording processing means sequentially records the data stored in the volatile memory on the recording medium, thereby preventing the capacity of the volatile memory used in the pre-recording from exceeding a predetermined capacity.

4. The image recording device described in any one of claims 1 to 3, characterized in that, when the amount of data stored in a file reaches a predetermined first threshold during execution of the pre-recording, the pre-recording processing means divides the file into multiple files that store an amount of data corresponding to the first threshold in a distributed manner, and continues the pre-recording on new files.

5. The image recording device according to claim 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 the file that stores the oldest data at that time.

6. The image recording device according to claim 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 while the pre-recording is being performed, 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 multiple recording media so that, while the pre-recording is being performed, data corresponding to a certain period immediately prior to the start of the actual recording, which is set as a pre-recording period, is present on any one of the multiple recording media.

8. The pre-recording processing means, during the execution of the pre-recording, (a) records data in the pre-recording area of ​​a first recording medium of the multiple recording media; (b) when the free space of the pre-recording area of ​​the first recording medium reaches a capacity corresponding to a period having a predetermined length, records data in parallel on both the first recording medium and a second recording medium of the multiple recording media; (c) when the free space of the pre-recording area of ​​the first recording medium is exhausted, stops recording data on the first recording medium; (d) deletes the data recorded in the pre-recording 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, records data in parallel on both the first recording medium and the second recording medium; (f) when the free space of the pre-recording area of ​​the second recording medium is exhausted, stops recording data on the second recording medium; (g) deletes the data recorded in the pre-recording area of ​​the second recording medium; and thereafter, repeats the operations of (b) to (g).

8. The image recording apparatus according to claim 6, wherein the recording medium is a metal.

9. An image recording device as described in any one of claims 6 to 8, characterized in that the pre-recording processing means deletes from the multiple recording media all data recorded by the pre-recording other than data for a certain period immediately prior to the start of the actual recording, which period is set as a pre-recording period.

10. An image recording device as described in any one of claims 6 to 9, characterized in that one of the plurality of recording media is predetermined as the recording medium on which the actual recording will be performed, and the actual recording processing means, when data recorded by the pre-recording, for a certain period immediately prior to the start of the actual recording, which is set as a pre-recording period, exists on a recording medium different from the predetermined recording medium, performs the actual recording while avoiding the pre-recording area within the area of ​​the predetermined recording medium, and copies the data of the pre-recording period from the different recording medium to the pre-recording area of ​​the predetermined recording medium.

11. The image recording device according to claim 10, wherein said actual recording processing means records said actual recording data following said pre-recording period data when said pre-recording period data exists on said predetermined recording medium.

12. An image recording device as described in any one of claims 1 to 11, characterized in that it has an imaging unit, wherein the pre-recording processing means pre-records video data obtained by imaging with the imaging unit while the pre-recording is being executed, and the actual recording processing means records on the recording medium the video data obtained by imaging with the imaging unit from the instruction to start actual recording to the instruction to stop actual recording.

13. An image recording method executed by 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, comprising: executing the pre-recording; and, when a condition for starting actual recording is satisfied during the execution of the pre-recording, starting actual recording of the image captured by the imaging unit, wherein the pre-recording is performed on a non-volatile recording medium used for the actual recording.

14. A program for causing a computer to function as each of the means possessed by the image recording device according to any one of claims 1 to 12.

15. 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, comprising: a decision means for deciding a method of pre-recording; a pre-recording processing means for starting pre-recording of an image captured by the imaging unit in accordance with the method decided by the decision means; and an actual recording processing means for starting actual recording of an image captured by the imaging unit when a condition for starting actual recording is satisfied while the pre-recording is being executed, wherein, when the method decided by the decision means is switched while the pre-recording is being executed, the pre-recording processing means executes pre-recording using the method after the switch.

16. The image recording device according to claim 15, wherein said determination means determines said method based on at least one of the free space of a non-volatile recording medium used for said actual recording and a setting of the length of a pre-recording period.

17. The image recording device according to claim 16, characterized in that the determination means determines a first method of not recording data on the recording medium during execution of the pre-recording when the free space of the non-volatile recording medium used for the actual recording is equal to or less than a predetermined capacity threshold.

18. The image recording device according to claim 16, wherein the determination means determines a first method of not recording data on the recording medium while the pre-recording is being performed if the length of the pre-recording period is equal to or less than a predetermined time threshold.

19. An image recording device as described in claim 16, further comprising a memory for temporarily storing data, and comprising as pre-recording methods a first method of accumulating pre-recording data in the memory while the pre-recording is being executed and recording the pre-recording data accumulated in the memory onto the recording medium after the start of the actual recording, and a second method of recording the pre-recording data onto the recording medium while the pre-recording is being executed, wherein the determination means determines to use the first method when the length of the pre-recording period is equal to or less than the maximum time for pre-recording data that can be temporarily stored in the memory, and determines to use the second method when the length of the pre-recording period is longer than the maximum time for pre-recording data that can be temporarily stored in the memory.

20. An image recording device as described in any one of claims 17 to 19, characterized in that the first method is a method of storing data related to the pre-recording in a volatile memory possessed by the image recording device while the pre-recording is being executed.

21. An image recording device as described in any one of claims 17 to 20, characterized in that the determination means determines a second method different from the first method when the free space of the non-volatile recording medium used for the actual recording exceeds a predetermined capacity threshold and the length of the pre-recording period exceeds a predetermined time threshold.

22. The image recording apparatus according to claim 21, wherein said second method is a method of recording data relating to said pre-recording on said recording medium while said pre-recording is being performed.

23. The image recording device described in any one of claims 15 to 19 and 21, characterized in that the determination means determines as the method a first method or a second method different from the first method, the first method being a method of accumulating data related to the pre-recording in a volatile memory of the image recording device while the pre-recording is being executed, and the second method being a method of recording data related to the pre-recording on a non-volatile recording medium used for the actual recording while the pre-recording is being executed, and the pre-recording processing means, when the method determined by the determination means switches from the first method to the second method while the pre-recording is being executed, records the data accumulated in the volatile memory on the recording medium and then executes the pre-recording by the second method, and when the method determined by the determination means switches from the second method to the first method, deletes the data recorded on the recording medium and then executes the pre-recording by the first method.

24. An image recording device as claimed in any one of claims 15 to 23, further comprising the imaging unit, wherein the pre-recording processing means pre-records video data captured by the imaging unit while the pre-recording is being performed.

25. The image recording device according to claim 24, characterized in that the actual recording processing means records video data captured by the imaging unit from the instruction to start actual recording to the instruction to stop actual recording on a non-volatile recording medium used for the actual recording.

26. An image recording method executed by 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, comprising: a determination step of determining a pre-recording method; a pre-recording processing step of starting pre-recording of an image captured by the imaging unit in accordance with the method determined in the determination step; and an actual recording processing step of starting actual recording of an image captured by the imaging unit when a condition for starting actual recording is satisfied during execution of the pre-recording, wherein in the pre-recording processing step, if the method determined in the determination step is switched during execution of the pre-recording, pre-recording is executed using the method after the switch.

27. A program for causing a computer to function as each of the means possessed by the image recording device according to any one of claims 15 to 25.

Citation Information

Patent Citations

  • Television door intercom system

    JP2006211517A

  • Prerecorded data storage device and prerecorded data storage method

    JP2012015723A

  • Imaging apparatus, control method, and program

    JP2023048009A