These and other aspects of the invention will be apparent from and elucidated further with reference to the embodiments described by way of example in the following description and with reference to the accompanying drawings, in which
a shows a record carrier (top view),
b shows a record carrier (cross section),
Corresponding elements in different Figures have identical reference numerals.
a shows a disc-shaped record carrier 11 having a track 9 and a central hole 10. The track 9, being the position of the series of (to be) recorded marks representing information, is arranged in accordance with a spiral pattern of turns constituting substantially parallel tracks on an information layer. The record carrier may be optically readable, called an optical disc, and has an information layer of a recordable type. Examples of a recordable disc are the CD-RW, and rewritable versions of DVD, such as DVD+RW, and the high density writable optical disc using blue lasers, called Blu-ray Disc (BD). Further details about the DVD disc can be found in reference: ECMA-267: 120 mm DVD—Read-Only Disc-(1997). The information is represented on the information layer by recording optically detectable marks along the track, e.g. crystalline or amorphous marks in phase change material. The track 9 on the recordable type of record carrier is indicated by a pre-embossed track structure provided during manufacture of the blank record carrier. The track structure is constituted, for example, by a pregroove 14 in
b is a cross-section taken along the line b-b of the record carrier 11 of the recordable type, in which a transparent substrate 15 is provided with a recording layer 16 and a protective layer 17. The protective layer 17 may comprise a further substrate layer, for example as in DVD where the recording layer is at a 0.6 mm substrate and a further substrate of 0.6 mm is bonded to the back side thereof. The pregroove 14 may be implemented as an indentation or an elevation of the substrate 15 material, or as a material property deviating from its surroundings.
The record carrier 11 is intended for carrying digital information in information blocks having logical addresses under control of a file management system. The information blocks constituting a file are located according to file management data of a file management system, usually the file being subdivided in parts called extents. The extent accommodates a multitude of information blocks in a substantially consecutive range of addresses. The information may be of different types. A first type of information has specific extent allocation requirements related to the function of the information, e.g. real-time information or defect management information each having respective allocation rules. The real-time information is to be recorded and reproduced continuously, and requires contiguous data areas of a minimum size. Defect management requires predefined areas to be available for storing defect management information. Hence the extent allocation requirements include requiring the extent to have at least a predetermined extent size. A second type of information has no extent allocation requirements, e.g. general purpose data storage or computer program files.
In an embodiment the first type of information is real time information and the extent allocation requirements are to guarantee a seamless playback in a predefined playback device. Commonly the real time information includes video information, and seamless playback on standardized players is provided by defining the extent allocation requirements based on the properties of the standard device. Different sets of requirements may be defined for different types of information. For example, digitally encoded video according to a standardized format like MPEG2 as broadcasted may have a minimum extent size of 13 MB (megabyte), whereas video data from a digital camcorder (having a higher data rate) may require a minimum extent size of 26 MB.
The control unit 20 is connected via control lines 26, e.g. a system bus, to said input unit 27, formatter 28 and modulator 29, to the read processing unit 30, and to the drive unit 21, and the positioning unit 25. The control unit 20 comprises control circuitry, for example a microprocessor, a program memory and control gates, for performing the procedures and functions according to the invention as described below. The control unit 20 may also be implemented as a state machine in logic circuits.
The formatter 28 is for adding control data and formatting and encoding the data according to the recording format, e.g. by adding error correction codes (ECC), interleaving and channel coding. The formatted units comprise address information and are written to corresponding addressable locations on the record carrier under the control of control unit 20. The formatted data from the output of the formatter 28 is passed to the modulator 29, which generates a laser power control signal, which drives the radiation source in the optical head. The formatted units presented to the input of the modulation unit 29 comprise address information and are written to corresponding addressable locations on the record carrier under the control of control unit 20.
The control unit 20 is arranged for controlling the recording by locating each block at a physical address in the track, and managing the data space on the record carrier as described below. The control unit includes the following cooperating units: a selection unit 31 for selecting at least one partly recorded data area of at least the extent size which data area contains information blocks at recorded addresses, and a clearing unit 32 for creating a free data area on the record carrier by moving the information blocks from the recorded addresses in the partly recorded data area to different addresses outside the free data area and correspondingly adapting the file management data. The control unit may further contain a real-time storage unit 33 and a defect management unit 34. The units are for example implemented in firmware or logical circuits, but the function of the units may alternatively be performed as a process of data space management in a separate device, for example as a computer program in a host computer controlling a disc drive. Then the drive accommodates physically recording and retrieving of information in blocks on the record carrier.
In an embodiment the recording device is a storage device only, e.g. an optical disc drive for use in a computer. The control unit 20 is arranged to communicate with a processing unit in the host computer system via a standardized interface. Digital data is interfaced to the formatter 28 and the read processing unit 30 directly.
In an embodiment the device is arranged as a stand alone unit, for example a video recording apparatus for consumer use. The control unit 20, or an additional host control unit included in the device, is arranged to be controlled directly by the user, and to perform the functions of the file management system. The device includes application data processing, e.g. audio and/or video processing circuits. User information is presented on the input unit 27, which may comprise compression means for input signals such as analog audio and/or video, or digital uncompressed audio/video. Suitable compression means are for example described for audio in WO 98/16014-A1, and for video in the MPEG2 standard. The input unit 27 processes the audio and/or video to units of information, which are passed to the formatter 28. The read processing unit 30 may comprise suitable audio and/or video decoding units.
The control unit 20 is arranged for translating physical addresses into logical addresses and vice versa in dependence of control data such as mapping information. The logical addresses constitute a contiguous user data storage space to be used for storing sequences of information blocks, such as files under control of a file management system, for example UDF (Universal Disc Format). The mapping information is indicative for translating a logical address to a physical address in the user data zone, and may include defect management information.
The defect management areas are located on the record carrier according to a recording area layout, and may be part of a system area assigned to system use. In the layout physical address are assigned a specific logical address of a user data area, or to a defect management area or system area, etc. The layout may be predefined, or may be defined according to parameters included in the system area on the record carrier. In particular the layout of system information and/or defect management information may be adapted after user data has already been recorded on the record carrier. In such an embodiment the defect management information is embodying the first type of information as described above, whereas the defect management area layout rules are embodying the extent allocation rules. For example the extent allocation rules for defect management areas may include specific predefined address ranges to be assigned as defect management areas. When changing the defect management layout such areas have to be cleared as described below. Hence in the method below creating the free data areas includes creating a free data area according to the defect management area allocation rules to be used as system area.
It is noted the extent allocation requirements may include further rules. For example an application could have an allocation strategy in which allocation is required in multiples of a certain number of blocks or extent sizes. Let a free area of e.g. 1.7 times the extent size be available. Although this is larger than the extent size, the additional rules would prefer a multiple of 2 units, and efforts could be made to expand this area to 2.0 times the extent size to allow for the allocation of a single extent according to the multiple strategy, i.e. with a size of two times the minimum extent size.
In an embodiment the detecting in step DETECT 51 proceeds as follows. First a recording command is received for recording a file of first type information, which command includes file size data indicating the size of the file, e.g. copying an existing file. The command may also include the type of information, or the specific extent allocation rules. From the file size data a need for free areas is derived, each free area having at least the extent size. Subsequently available free data space is detected. If the available free data space is scattered and includes areas smaller than the extent size, a need for clearing free areas is detected. Subsequently a set of sufficient additional free data areas is defined and cleared to accommodate recording the file according to the extent allocation requirements.
Alternatively the type of information or the file size may be automatically detected from characteristics-of the command, such as the file size, or a pattern of repetitive writing commands.
In an embodiment the selecting of the partly recorded data area in step SELECT 52 proceeds as follows. Obviously selecting the partly recorded data area first includes detecting already free areas. If such already free areas are too small, i.e. smaller than the extent size, it is detected which information blocks have to be moved. When several potentially clearable areas have been found, a further selection is based on detecting the potentially clearable data area containing information blocks of the second type. It is noted that such information blocks may be moved without restrictions relating to extent allocation rules. If all potentially clearable also contain information blocks of the first type, the further selection may be based on moving also some information blocks of the first type. In particular extent allocation rules of the information blocks to be moved have to be taken into account. However, such extent allocation rules may be different, or such information blocks may be moved towards or together with further information blocks of the existing file to comply with the extent allocation rules. It is noted that, when moving the information blocks of the second type in the partly recorded data area that are part of a file, such information blocks may initially be contiguous with other information blocks of that file, e.g. a part of the file extending beyond the potentially clearable area. After moving the information blocks the degree of fragmentation of the file of the second type may be increased.
In an embodiment the detecting in step DETECT 51 proceeds as follows. This embodiment may be used for real-time recording, provided sufficient buffer space is available. First a process of recording of information of the first type is started. During the recording, i.e. operating in parallel, it is detected that insufficient free data space is available to continue recording in view of the extent allocation requirements. Subsequently the recording is suspended, and at least one free data area is created. Next the recording is resumed, and the free data area just cleared may be used, while detecting in parallel continues. Alternatively the detecting may be postponed to until after initially recording, e.g. recording real time data temporarily because the real time data cannot be stopped or buffered. The initial recording process does not comply with the extent allocation requirements, and may be considered as a step of temporarily recording of the information of the first type without regard for the extent allocation requirements. Subsequently it is detected that the extent allocation requirements have been violated, and at least one free data area is created. Finally the information of the first type is re-arranged according to the extent allocation requirements using the free data area.
In an embodiment the selecting and clearing in the above steps 52,53 proceed as follows. Here the extent allocation requirements include a skipped block rule. The skipped block rule specifies a limited number of interruptions of the substantially consecutive range of addresses of the extent, and may specify further rules for such interruption. For example a maximal amount of skipped blocks in a window of a predefined size, or in the extent size, may be prescribed. Also the individual interruption may have a maximum length. The skipped block rule is also applied when managing data space, which allows using a record carrier having for example small defective areas or non-movable control data. The clearing step creates the free data area with a number of non-free addresses complying with the skipped block rule.
If one compares the amount of data (in
Other examples of clearing are of course possible. An option would be to split a single extent in two or more extents, thereby even increasing the amount of fragmentation of the existing files on disc. Of the former single extent that now is split in two one of the new extents is moved to another location on the disc. Thereby a free data area is created sufficient for the extent size to be recorded to disc. For example, if one wants to write in total e.g. 26 MB of video data requiring an extent size of 12.5 MB, there are various options. A first option is to create a single contiguous free data area on the disc that has a size of at least 26 MB. A second option is to create two free data areas of 12.5 MB and one of 13.5 MB. Obviously it is not an option to create a free data area of 10 MB and one of 16 MB.
In a practical embodiment the system for recording real-time data while applying data space management in a UDF file system environment is as follows. In the device described with reference to
An important aspect of the BDFS file system is the set of allocation rules for the video content. These allocation rules must guarantee seamless real-time playback of the video content in BD players. Basically the allocation rules can be summarized in a rule that each individual video file part (extent) has a certain minimum size of 12.5MB or 25MB depending on the type of video. Such a video extent is logically and physically contiguous on disc. As shown in
Although the invention has been explained mainly by embodiments using a DVD+RW or BD defect management system, similar defect management systems used for other types of record carriers are suitable for applying the invention. Also for the information carrier an optical disc has been described, but other media, such as a magnetic hard disk, can be used. It is noted, that in this document the word ‘comprising’ does not exclude the presence of other elements or steps than those listed and the word ‘a’ or ‘an’ preceding an element does not exclude the presence of a plurality of such elements, that any reference signs do not limit the scope of the claims, that the invention may be implemented by means of both hardware and software, and that several ‘means’ may be represented by the same item of hardware. Further, the scope of the invention is not limited to the embodiments, and the invention lies in each and every novel feature or combination of features described above.
Number | Date | Country | Kind |
---|---|---|---|
04103603.9 | Jul 2004 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB05/52409 | 7/19/2005 | WO | 00 | 1/24/2007 |