CN1731527B - Method and apparatus for data recording with virtual combination - Google Patents

Method and apparatus for data recording with virtual combination Download PDF

Info

Publication number
CN1731527B
CN1731527B CN 200510055842 CN200510055842A CN1731527B CN 1731527 B CN1731527 B CN 1731527B CN 200510055842 CN200510055842 CN 200510055842 CN 200510055842 A CN200510055842 A CN 200510055842A CN 1731527 B CN1731527 B CN 1731527B
Authority
CN
China
Prior art keywords
file
merged
storage media
frame
length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200510055842
Other languages
Chinese (zh)
Other versions
CN1731527A (en
Inventor
陈正哲
谢郁震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MediaTek Inc
Original Assignee
MediaTek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MediaTek Inc filed Critical MediaTek Inc
Priority to CN 200510055842 priority Critical patent/CN1731527B/en
Priority to CN201110265254.2A priority patent/CN102354517B/en
Publication of CN1731527A publication Critical patent/CN1731527A/en
Application granted granted Critical
Publication of CN1731527B publication Critical patent/CN1731527B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a virtual incorporation data recording method and an apparatus. The incorporation apparatus includes: a storing media for storing a first file and a second file and a file arrangement table for recording a first starting and a first closing positions of the first file and recording a second starting and a second closing positions of the second file, wherein the first file includes title data which is used to record the length of a source file of the first file. The incorporation method is to incorporate the first file and the second file into an incorporation file by modifying the first closing position of the first file as the second starting position of the second file. The length of the incorporation file of updating record of the title data is [ceil(N1/S)+ceil(N2/S)]*S, wherein N1 is the length of the source file of the first file, N2 is the length of the file of the second file, S is the sector size of the storing media.

Description

The data record method and device of virtual merging
Technical field
The present invention relates to a kind of data record method and device, and be particularly related to the data record method and device of the plural file of a kind of virtual merging.
Background technology
Multimedia embedded system (Embedded System) is to adopt MPEG-4 Image Compression and 3GPP technical specification recording video and audio data, and deposits multimedia file in Storage Media.Because the storage area of embedded system is quite limited, the mode of data recording is very huge for the influence of the use amount of the size of file storage area and internal memory.Therefore, how under file system, to record the important topic that becomes embedded system.
When tradition is recorded, be simultaneously frame of video (video frame) and voiced frame (audio frame) to be write video data file (video file) and sound data file (audio file) respectively.At this moment, also the information of each Frame (frame) is inserted in the internal memory, write down the sampling characteristic value (sample data) of each Frame.
When recording end, adopt the mode of additional (append) that video data file and sound data file are merged.At first, the content of sound data file is read out one by one, again the sound data file that reads out is attached to the rear of video data file.In addition, when the sampling characteristic value be converted to sampling table (sample table), the sampling table also is attached to the rear of video data file.
In file system, store files is to be unit with gather together (cluster), and the size of gathering together is 512bytes, as long as stored file size is not the multiple of 512bytes, will there be unnecessary data (being called the cavity at this) in the file end.Therefore, two files are when merging (merge) traditionally, must begin to insert in first cavity from first file back, promptly with the end of file EOF (End-Of-File) of first file as second file starting point, the content of second file reading out continued insert, the file that links like this is just meaningful.
Especially, carry out the merging of video-audio data in additional mode traditionally, file system must be reserved enough spaces of second file of record earlier in first file back when recording, in case record end, could allow second file after reading, be carried to this space and be attached to first file back.Therefore, when selection is attached to the rear of video data file with sound data file, must reserve the space of enough recording voice data files earlier in the video data file back; Similarly, when selection is attached to the rear of sound data file with video data file, then must reserve the space of enough recording video data files earlier in the sound data file back.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of data record method and device of virtual merging, can significantly save the use amount of file storage area and minimizing internal memory.
According to purpose of the present invention, a kind of file merging method that is applied to electronic installation is proposed, be stored in one first file and one second file in this electronic installation in order to merging, this first file has a title data, in order to write down a source file length of this first file.Electronic installation comprises a Storage Media and a file configuration table (File Allocation Table, FAT), this document allocation list is used for writing down first file and one first opens beginning position and one first end position in Storage Media, and writes down second file and one second open beginning position and one second end position in Storage Media.File merging method comprises: first end position of first file in this document allocation list is revised as second of second file opens the beginning position, make win file and second file merge into one first merged file, calculate a merged file length of this first merged file, and with this merged file length records in this title data to upgrade this title data, wherein, the step of calculating this merged file length comprises: a sector-size that obtains this Storage Media; Obtain this source file length of this first file and one second file size of this second file respectively; And obtain this merged file length for [ceil (N1/S)+ceil (N2/S)] * S, and wherein, N1 is this source file length of this first file, and N2 is a file size of this second file, and S is a sector-size of this Storage Media.
According to purpose of the present invention, a kind of file merging method that is applied to electronic installation is more proposed, be stored in first file of 1 in the electronic installation and one second file in order to merging, this first file has a title data, in order to write down a source file length of this first file.Electronic installation comprises a Storage Media and a file configuration table, and first file comprises a plurality of first Frames, and this second file comprises a plurality of second Frames, and this Storage Media has a plurality of gathering together, in order to store this first file and this second file.One first Frame or one second Frame are to be stored in during of Storage Media gathers together, and the storage location of first and second file is to be recorded in file configuration table.File merging method comprises: set up the connection relationship between first file and second file, by last first Frame in the file configuration table is linked to first second Frame, make this first file and this second file merge into one first merged file; Calculate a merged file length of this first merged file, and with this merged file length records in this title data to upgrade this title data, wherein, the step of calculating this merged file length comprises: a sector-size that obtains this Storage Media; Obtain this source file length of this first file and one second file size of this second file respectively; And obtain this merged file length for [ceil (N1/S)+ceil (N2/S)] * S, and wherein, N1 is this source file length of this first file, and N2 is a file size of this second file, and S is a sector-size of this Storage Media.
According to purpose of the present invention, other proposes a kind of file and merges device, and in order to merge first file and second file, this first file has a title data, in order to write down a source file length of this first file.File merges device and comprises: a Storage Media and a file configuration table.Storage Media is to deposit first file and second file.File configuration table is one first to open beginning position and one first end position in order to write down first file in Storage Media, and writes down second file and one second open beginning position and one second end position in Storage Media.First file and second file merge into a merged file be by first end position with first file be revised as second of second file open the beginning position, make this first file and this second file merge into one first merged file, and this title data merged file length of this first merged file of new record more, this merged file length is [ceil (N1/S)+ceil (N2/S)] * S, wherein, N1 is this source file length of this first file, N2 is a file size of this second file, and S is a sector-size of this Storage Media.
According to purpose of the present invention, propose a kind of file again and merge device, in order to merge one first file and one second file, this first file has a title data, in order to write down a source file length of this first file.File merges device and comprises: a Storage Media and a file configuration table.Storage Media has a plurality of gathering together, in order to store first file and second file.First file comprises at least one first Frame, and second file comprises at least one second Frame.One first Frame or one second Frame are to be stored in during of Storage Media gathers together.File configuration table is in order to write down the storage location of first and second file.By last first Frame in the file configuration table is linked to first second Frame, make win file and second file merge into a merged file, and this title data is updated to a merged file length of this merged file, this merged file length is [ceil (N1/S)+ceil (N2/S)] * S, wherein, N1 is this source file length of this first file, and N2 is a file size of this second file, and S is a sector-size of this Storage Media.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, a preferred embodiment cited below particularly, and conjunction with figs. are described in detail below.
Description of drawings
Figure 1A illustrates the process flow diagram according to the data record method of the virtual merging of first embodiment of the invention.
The data record method that Figure 1B illustrates the virtual merging of Figure 1A is implemented in the synoptic diagram of FAT file system.
Fig. 2 A illustrates the process flow diagram according to the data record method of the virtual merging of second embodiment of the invention.
The data record method that Fig. 2 B illustrates the virtual merging of Fig. 2 A is implemented in the synoptic diagram of FAT file system.
Fig. 3 A illustrates the process flow diagram according to the data record method of the virtual merging of third embodiment of the invention.
The data record method that Fig. 3 B illustrates the virtual merging of Fig. 3 A is implemented in the synoptic diagram of FAT file system.
Embodiment
Data record method of the present invention is to be applicable to the electronic installation with a Storage Media, mode with virtual merging (pseudo-merge) links two dissimilar files in the Storage Media, can under the situation of move not, file be merged into a merged file.File merging device of the present invention is preferably and is used in the embedded system (embedded system), comprises Storage Media and file configuration table.Storage Media for example is a flash memory (flash memory), has deposited first file and second file.File configuration table is to write down first file and second file respectively to open beginning position and end position in Storage Media.File merging method of the present invention mainly is the position of beginning of opening of the end position of first file on the file configuration table being revised as second file, two files are merged into a merged file.Another file merging method of the present invention mainly is by the connection relationship of several Frames of several Frames of setting up first file on file configuration table and second file two files to be merged into a merged file.Especially, if two dissimilar files are to produce simultaneously, two multimedia data files for example recording simultaneously do not need to reserve the required storage area of move between two files, so processing speed are very fast, and can be saved the file storage area.
First embodiment
Please refer to Figure 1A, illustrate process flow diagram according to the data record method of the virtual merging of first embodiment of the invention.At first be to enter step 102, begin the data record method of virtual merging of the present invention (pseudo-merge); Be to produce one first file and one second file in step 102, and first file and second file have at least one first Frame and at least one second Frame respectively in a Storage Media.Then, step 104 is to produce one the 3rd file in Storage Media, and the 3rd file has a sampling table (sample table), the sampling table be by the sampling characteristic value of first Frame (sample data) change it.In step 106, write down a title data H in first file, and title data comprises a source file length of first file.Step 108 is the connection relationship between first file, second file and the 3rd file of setting up in the Storage Media, use not moving under the situation of first Frame, second Frame and the storage address of sampling table in Storage Media, first file, second file and the 3rd file are merged into a merged file.Then, in step 110, calculate a merged file length of merged file.Merged file length calculation mode, be a sector-size (S) that obtains Storage Media earlier, the source file length (N1) of first file and second file size (N2) of second file, and then calculate M1=ceil (N1/S) and M2=ceil (N2/S), so can obtain merged file length (LEN) and be (M1+M2) * S.At last, in step 112, upgrade title data, with the merged file length records in the title data of merged file.
The data record method that Figure 1B illustrates the virtual merging of Figure 1A is implemented in the synoptic diagram of FAT file system.Shown in Figure 1B, Storage Media is that (File Allocation Table FAT) comes the log file position with a file configuration table.First file has a plurality of first Frames, is configured among the C0-C3 that gathers together of Storage Media; Second file has a plurality of second Frames, is configured in the C7-C9 that gathers together of Storage Media respectively; And the sampling table of the 3rd file is the C4 that gathers together that is configured in Storage Media.The end of file EOF of first file, second file and the 3rd file (End of File) is to lay respectively at the C3 that gathers together, C9 and C4.Title data H comprises the source file length of first file, is recorded in the reference position of first file.
When the contents value of file configuration table FAT is revised as the contents value of file configuration table FAT ', can links the address in the correspondence of Storage Media by the sampling table of second Frame of first Frame of revising first file, second file and the 3rd file and carry out the virtual merging of file.What the mode that two files are merged into a merged file can adopt that the end position with first file on the file configuration table is revised as second file opens the beginning position, or sets up the connection relationship of several Frames of several Frames of first file and second file on file configuration table.Shown in Figure 1B, in amended file configuration table FAT ', the C3 that gathers together points to gather together C7 and the C9 that gathers together points to the C4 that gathers together, therefore first Frame of first file can with the virtual merging of second Frame of second file, make win file and second file merge into one first merged file; Then, second Frame of second file can with the sampling exterior deficiency match of the 3rd file also, make win merged file and the 3rd file merge into one second merged file; By this, first file, second file and the 3rd file being linked is one second merged file.In second merged file, first file is to be arranged in before second file, and second file is to be arranged in before the 3rd file.First file and second file are preferably to be two multimedia data files recording simultaneously, first file and second file can be respectively video (video) data file and sound (audio) data file, maybe can be respectively sound data file and video data file.
The title data of file of the present invention comprises file size and file type, and after virtual merging, title data H is updated to H ' and record merged file length, and file type still is original multimedia data file.Because multimedia data file itself does not need connectivity closely, so file system can be accepted the virtual cavity that end of file EOF produced that merges back first file, second file and the 3rd file.Therefore, under file structure of the present invention, existing cavity can be handled by file system between two files, that is file system can be accepted existing cavity between two the virtual merging of file backs.From the above, the data record method of the virtual merging by first embodiment of the invention can be kept file and need not carry file at the storage location of original file system.
Second embodiment
Please refer to Fig. 2 A, illustrate process flow diagram according to the data record method of the virtual merging of second embodiment of the invention.At first be to enter step 202, begin the data record method of virtual merging of the present invention; Be to produce one first file and one second file in step 202, and first file and second file have at least one first Frame and at least one second Frame respectively in a Storage Media.Then, in step 206, write down a title data H, and title data comprises a source file length of first file in first file.Step 208 is to set up first file in the Storage Media and the connection relationship between second file, use not moving under the situation of first Frame and the storage address of second Frame in Storage Media, first file and second file are merged into a merged file.In step 209, the sampling table is attached to after the merged file; The sampling table be by the sampling characteristic value of first Frame change it, the sampling characteristic value can be recorded in the 3rd file of Storage Media earlier, or is recorded to a scratch-pad memory.Then, in step 210, calculate a merged file length of merged file.Merged file length calculation mode, be a sector-size (S) that obtains Storage Media earlier, the source file length (N1) of first file and second file size (N2) of second file, and then calculate M1=ceil (N1/S) and M2=ceil (N2/S), so can obtain merged file length (LEN) and be (M1+M2) * S.At last, in step 212, upgrade title data, with the merged file length records in the title data of merged file.
The data record method that Fig. 2 B illustrates the virtual merging of Fig. 2 A is implemented in the synoptic diagram of FAT file system.Shown in Fig. 2 B, Storage Media is to come the log file position with a file configuration table.First file has a plurality of first Frames, is configured among the C0-C3 that gathers together of Storage Media; Second file has a plurality of second Frames, is configured in the C7-C9 that gathers together of Storage Media respectively; And the sampling table of the 3rd file is the C4 that gathers together that is configured in Storage Media.The end of file EOF of first file, second file and the 3rd file lays respectively at the C3 that gathers together, C9 and C4.Title data H comprises the source file length of first file, is recorded in the reference position of first file.
When the contents value of file configuration table FAT is revised as the contents value of file configuration table FAT ', can links the address in the correspondence of Storage Media by the sampling table of second Frame of first Frame of revising first file, second file and the 3rd file and carry out the virtual merging of file.What the mode that two files are merged into a merged file can adopt that the end position with first file on the file configuration table is revised as second file opens the beginning position, or sets up the connection relationship of several Frames of several Frames of first file and second file on file configuration table.Shown in Fig. 2 B, in amended file configuration table FAT ', the C3 that gathers together points to gather together C7 and the C9 that gathers together points to the C10 that gathers together, therefore first Frame of first file can with the virtual merging of second Frame of second file; By this, first file and the binding of second file are merged file.In merged file, first file is to be arranged in before second file.First file and second file are to be two multimedia data files recording simultaneously preferably, and first file and second file can be respectively video data file and sound data file, maybe can be respectively sound data file and video data file.
Different with first embodiment is, the 3rd file is just to carry out file to merge after first file and second file carry out virtual merging.That is the content with the 3rd file reads out from the C4 that gathers together earlier, the content that is read is begun to insert from the cavity of the C9 that gathers together and continue and insert among the C10 that gathers together, so that the sampling table is attached to after the merged file again.Because the data volume of the 3rd file is less relatively, therefore directly link the whole structure that does not also influence data record method of the present invention by additional mode.
The title data of file of the present invention comprises file size and file type, and after virtual merging, title data H is updated to H ' and record merged file length, and file type still is original multimedia data file.Because multimedia data file itself does not need connectivity closely, so file system can be accepted the virtual cavity that end of file EOF produced that merges back first file and second file.Therefore, under file structure of the present invention, existing cavity can be handled by file system between two files, that is file system can be accepted existing cavity between two the virtual merging of file backs.From the above, the data record method of the virtual merging by second embodiment of the invention can be kept file and need not carry file at the storage location of original file system.
The 3rd embodiment
Please refer to Fig. 3 A, illustrate process flow diagram according to the data record method of the virtual merging of third embodiment of the invention.At first be to enter step 302, begin the data record method of virtual merging of the present invention; Be to produce one first file and one second file in step 302, and first file and second file have at least one first Frame and at least one second Frame respectively in a Storage Media.Then, step 304 is to produce one the 3rd file and one the 4th file in Storage Media, and the 3rd file and the 4th file have one first sampling table and one second sampling table respectively.The first sampling table and the second sampling table be respectively by the sampling characteristic value of the sampling characteristic value of first Frame and second Frame change it.In step 306, write down a title data H in first file, and title data comprises a source file length of first file.Step 308 is the connection relationship between first file, second file, the 3rd file and the 4th file of setting up in the Storage Media, use not moving under the situation of first Frame, second Frame, the first sampling table and the storage address of the second sampling table in Storage Media, first file, second file, the 3rd file and the 4th file are merged into a merged file.Then, in step 310, calculate a merged file length of merged file.Merged file length calculation mode, be a sector-size (S) that obtains Storage Media earlier, the source file length (N1) of first file and second file size (N2) of second file, and then calculate M1=ceil (N1/S) and M2=ceil (N2/S), so can obtain merged file length (LEN) and be (M1+M2) * S.At last, in step 112, upgrade title data, with the merged file length records in the title data of merged file.
The data record method that Fig. 3 B illustrates the virtual merging of Fig. 3 A is implemented in the synoptic diagram of FAT file system.Shown in Fig. 3 B, Storage Media is to come the log file position with a file configuration table.First file has a plurality of first Frames, is configured among the C0-C3 that gathers together of Storage Media; Second file has a plurality of second Frames, is configured in the C7-C9 that gathers together of Storage Media respectively; The first sampling table of the 3rd file is the C4 that gathers together that is configured in Storage Media; And the second sampling table of the 4th file is the C10 that gathers together that is configured in Storage Media.The end of file EOF of first file, second file, the 3rd file and the 4th file lays respectively at the C3 that gathers together, C9, C4 and C10.Title data H comprises the source file length of first file, is recorded in the reference position of first file.
When the contents value of file configuration table FAT is revised as the contents value of file configuration table FAT ', can links the address in the correspondence of Storage Media by the second sampling table of the first sampling table of second Frame of first Frame of revising first file, second file, the 3rd file and the 4th file and carry out the virtual merging of file.What the mode that two files are merged into a merged file can adopt that the end position with first file on the file configuration table is revised as second file opens the beginning position, or sets up the connection relationship of several Frames of several Frames of first file and second file on file configuration table.Shown in Fig. 3 B, in amended file configuration table FAT ', the C3 that gathers together points to gather together C7, the C9 that gathers together to point to gather together C4, the C4 that gathers together to point to the C10 that gathers together, therefore first Frame of first file can with the virtual merging of second Frame of second file, make win file and second file merge into one first merged file; Then, second Frame of second file can with the first sampling exterior deficiency match of the 3rd file also, make win merged file and the 3rd file merge into one second merged file; Moreover the first sampling table of the 3rd file can be taken a sample the exterior deficiency match also with second of the 4th file, makes second merged file and the 4th file merge into one the 3rd merged file; By this, first file, second file, the 3rd file and the 4th file being linked is the 3rd merged file.In the 3rd merged file, first file be arranged in before second file, second file is to be arranged in before the 3rd file and the 3rd file is to be arranged in before the 4th file.First file and second file are to be two multimedia data files recording simultaneously preferably, and first file and second file can be respectively video data file and sound data file, maybe can be respectively sound data file and video data file.
The title data of file of the present invention comprises file size and file type, and after virtual merging, title data H is updated to H ' and record merged file length, and file type still is original multimedia data file.Because multimedia data file itself does not need connectivity closely, so file system can be accepted the virtual cavity that end of file EOF produced that merges back first file, second file, the 3rd file and the 4th file.Therefore, under file structure of the present invention, existing cavity can be handled by file system between two files, that is file system can be accepted existing cavity between two the virtual merging of file backs.From the above, the data record method of the virtual merging by third embodiment of the invention can be kept file and need not carry file at the storage location of original file system.
The data record method of the disclosed virtual merging of the above embodiment of the present invention is that the mode with virtual merging links two dissimilar files in the Storage Media; Simultaneously, under file structure of the present invention, existing cavity can be handled by file system between two files.Therefore, can under the situation of move not, file be merged into a merged file, and can accept existing cavity between two the virtual merging of file backs by file system.Especially, if two dissimilar files are to produce simultaneously, do not need to reserve the required storage area of move between two files, therefore when selection was attached to the rear of video data file with sound data file, the space of recording voice data file need not reserved in the video data file back; Similarly, when selection was attached to the rear of sound data file with video data file, the space of recording video data file also need not be reserved in the sound data file back.So, the about use that can save 1/3rd file storage area and reduce internal memory of the present invention.
In sum; though the present invention discloses as above with a preferred embodiment; right its is not in order to limit the present invention; anyly have the knack of this skill person; without departing from the spirit and scope of the present invention; when can being used for a variety of modifications and variations, so protection scope of the present invention is as the criterion when looking accompanying the claim person of defining.

Claims (16)

1. file merging method that is applied to electronic installation, be stored in one first file and one second file in this electronic installation in order to merging, this first file has a title data, in order to write down a source file length of this first file, this electronic installation comprises a Storage Media and a file configuration table, this document allocation list is used for writing down this first file and one first opens beginning position and one first end position in this Storage Media, and write down this second file and in this Storage Media, one second open beginning position and one second end position, this file merging method that is applied to electronic installation comprises:
This that this first end position of this first file in this document allocation list is revised as this second file second opens the beginning position, makes this first file and this second file merge into one first merged file;
Calculate a merged file length of this first merged file, and with this merged file length records in this title data to upgrade this title data, wherein, the step of calculating this merged file length comprises:
Obtain a sector-size of this Storage Media;
Obtain this source file length of this first file and one second file size of this second file respectively; And
Obtain this merged file length and be [ceil (N1/S)+ceil (N2/S)] * S, wherein, N1 is this source file length of this first file, and N2 is a file size of this second file, and S is a sector-size of this Storage Media.
2. the file merging method that is applied to electronic installation as claimed in claim 1, wherein, this first file has at least one first Frame, and this file merging method that is applied to electronic installation more comprises:
The sampling characteristic value of this first Frame is converted to a sampling table; And
Should be attached to after this first merged file by the sampling table.
3. the file merging method that is applied to electronic installation as claimed in claim 1, wherein, this first file has at least one first Frame, and this file merging method that is applied to electronic installation more comprises:
The sampling characteristic value of this first Frame is converted to a sampling table, and this sampling table is one to have one the 3rd the 3rd file that opens beginning position and one the 3rd end position; And
This second end position of this second file is revised as the 3rd of the 3rd file opens the beginning position, make this first merged file and the 3rd file merge into one second merged file.
4. the file merging method that is applied to electronic installation as claimed in claim 1, wherein, this electronic installation has an embedded system, and this Storage Media is to be a flash memory.
5. the file merging method that is applied to electronic installation as claimed in claim 1, wherein, this first file and this second file are the multimedia data files for recording simultaneously.
6. the file merging method that is applied to electronic installation as claimed in claim 7, wherein, this first file and this second file are to be respectively video data file and sound data file.
7. the file merging method that is applied to electronic installation as claimed in claim 7, wherein, this first file and this second file are to be respectively sound data file and video data file.
8. file merging method that is applied to electronic installation, be stored in one first file and one second file in this electronic installation in order to merging, this first file has a title data, in order to write down a source file length of this first file, this electronic installation comprises a Storage Media and a file configuration table, this first file comprises a plurality of first Frames, this second file comprises a plurality of second Frames, and this Storage Media has a plurality of gathering together, in order to store this first file and this second file, one first Frame or one second Frame are to be stored in during of this Storage Media gathers together, and this first and the storage location of this second file be to be recorded in this document allocation list, this method comprises:
Set up the connection relationship between this first file and this second file,, make this first file and this second file merge into one first merged file by this last first Frame in this document allocation list being linked to this first second Frame;
Calculate a merged file length of this first merged file, and with this merged file length records in this title data to upgrade this title data, wherein, the step of calculating this merged file length comprises:
Obtain a sector-size of this Storage Media;
Obtain this source file length of this first file and one second file size of this second file respectively;
And
Obtain this merged file length and be [ceil (N1/S)+ceil (N2/S)] * S, wherein, N1 is this source file length of this first file, and N2 is a file size of this second file, and S is a sector-size of this Storage Media.
9. the file merging method that is applied to electronic installation as claimed in claim 10, wherein, this method more comprises:
The sampling characteristic value of those first Frames is converted to a sampling table;
Should be attached to after this first merged file by the sampling table.
10. the file merging method that is applied to electronic installation as claimed in claim 10, wherein, this file merging method that is applied to electronic installation more comprises:
The sampling characteristic value of this first Frame is converted to a sampling table, and this sampling table is one to have the 3rd file of one the 3rd Frame at least; And
By this last second Frame in this document allocation list being linked to this first the 3rd Frame, make this first merged file and the 3rd file merge into one second merged file.
11. the file merging method that is applied to electronic installation as claimed in claim 10, wherein, this electronic installation has an embedded system, and this Storage Media is to be a flash memory.
12. the file merging method that is applied to electronic installation as claimed in claim 10, wherein, this first file and this second file are the multimedia data files for recording simultaneously.
13. a file merges device, in order to merge one first file and one second file, this first file has a title data, and in order to write down a source file length of this first file, wherein this document merging device comprises:
One Storage Media is deposited this first file and this second file; And
One file configuration table is used for writing down this first file and one first opens beginning position and one first end position in this Storage Media, and writes down this second file and one second open beginning position and one second end position in this Storage Media,
Wherein, this first end position of this first file be revised as this second file this second open the beginning position, make this first file and this second file merge into one first merged file, and this title data merged file length of this first merged file of new record more, this merged file length is [ceil (N1/S)+ceil (N2/S)] * S, and wherein, N1 is this source file length of this first file, N2 is a file size of this second file, and S is a sector-size of this Storage Media.
14. file as claimed in claim 17 merges device, wherein, this first file comprises at least one first Frame, and this Storage Media is more deposited a sampling table, wherein, this sampling table is converted and be additional to after this first merged file by the sampling characteristic value of this first Frame.
15. file as claimed in claim 17 merges device, wherein, this first file comprises at least one first Frame, and this Storage Media is more deposited a sampling table, wherein, this sampling table is converted by the sampling characteristic value of this first Frame, and should the sampling table is one to have one the 3rd the 3rd file that opens beginning position and one the 3rd end position; And
Wherein, this second end position of this second file is to be revised as the 3rd of the 3rd file to open the beginning position, makes this first merged file and the 3rd file merge into one second merged file.
16. a file merges device, in order to merge one first file and one second file, this first file has a title data, and in order to write down a source file length of this first file, wherein this document merging device comprises:
One Storage Media, have a plurality of gathering together, in order to store this first file and this second file, wherein, this first file comprises at least one first Frame, this second file comprises at least one second Frame, and one first Frame or one second Frame are to be stored in during of this Storage Media gathers together; And
One file configuration table, in order to write down this first and the storage location of this second file,
Wherein, by this last first Frame in this document allocation list being linked to this first second Frame, make this first file and this second file merge into a merged file, and this title data is updated to a merged file length of this merged file, this merged file length is [ceil (N1/S)+ceil (N2/S)] * S, and wherein, N1 is this source file length of this first file, N2 is a file size of this second file, and S is a sector-size of this Storage Media.
CN 200510055842 2004-08-06 2005-03-15 Method and apparatus for data recording with virtual combination Expired - Fee Related CN1731527B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200510055842 CN1731527B (en) 2004-08-06 2005-03-15 Method and apparatus for data recording with virtual combination
CN201110265254.2A CN102354517B (en) 2004-08-06 2005-03-15 The data record method and device of virtual merging

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200410056266 2004-08-06
CN200410056266.4 2004-08-06
CN 200510055842 CN1731527B (en) 2004-08-06 2005-03-15 Method and apparatus for data recording with virtual combination

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201110265254.2A Division CN102354517B (en) 2004-08-06 2005-03-15 The data record method and device of virtual merging

Publications (2)

Publication Number Publication Date
CN1731527A CN1731527A (en) 2006-02-08
CN1731527B true CN1731527B (en) 2011-11-16

Family

ID=35963866

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201110265254.2A Expired - Fee Related CN102354517B (en) 2004-08-06 2005-03-15 The data record method and device of virtual merging
CN 200510055842 Expired - Fee Related CN1731527B (en) 2004-08-06 2005-03-15 Method and apparatus for data recording with virtual combination

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201110265254.2A Expired - Fee Related CN102354517B (en) 2004-08-06 2005-03-15 The data record method and device of virtual merging

Country Status (1)

Country Link
CN (2) CN102354517B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021217A (en) * 2016-05-27 2016-10-12 成都索贝数码科技股份有限公司 Editing method and system of large-file data stored based on FICS objects

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212097B1 (en) * 1999-03-25 2001-04-03 Sony Corporation Nonvolatile memory
CN1517906A (en) * 2003-01-14 2004-08-04 联想(北京)有限公司 Document system and document management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1296930C (en) * 2002-09-29 2007-01-24 上海乐金广电电子有限公司 Recording and access method of Digital document

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212097B1 (en) * 1999-03-25 2001-04-03 Sony Corporation Nonvolatile memory
CN1517906A (en) * 2003-01-14 2004-08-04 联想(北京)有限公司 Document system and document management method

Also Published As

Publication number Publication date
CN102354517A (en) 2012-02-15
CN1731527A (en) 2006-02-08
CN102354517B (en) 2015-09-02

Similar Documents

Publication Publication Date Title
US7337297B2 (en) Method and apparatus for recording data with pseudo-merge
CN1643605B (en) Data recording method, data recording device, data recording medium, data reproduction method, and data reproduction device
US20090055351A1 (en) Direct mass storage device file indexing
CN108763531A (en) A kind of MDVR document storage systems and its operation method
CN100418071C (en) Method for establishing medium file system
CN103327277A (en) Phonographic photo generation method and method for merging and storing picture data and voice data
US8503868B2 (en) Method for recording AV data and associated data, AV data recording apparatus, AV data reproducing apparatus and method, and recording medium
CN1731527B (en) Method and apparatus for data recording with virtual combination
JP4241839B2 (en) Data and file system information recording apparatus and recording method
US8478109B2 (en) Recording apparatus and method, program, and storage medium
CN103024219B (en) IAD (Integrated Access Device) and voice processing method and system based on same
CN1957609B (en) Data processor
US8301862B2 (en) Formatting device
CN101814308A (en) Reproduction device and reproduction method
JP4930358B2 (en) Data processing apparatus and data processing method
CN100382193C (en) Audio compressed data editing and reproducing method
JP2009271635A (en) File editing apparatus and file editing method
JP2002373480A (en) Data-recording method, data recorder and recording medium
CN104103304A (en) Video and audio archival storage and calling method based on LTFS (Linear Tape File System)
JP4255796B2 (en) DATA RECORDING DEVICE, DATA RECORDING METHOD, DATA RECORDING PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
KR101386892B1 (en) Method for synchronizing information of folder in PC and that of folder in portable device
CN1855285B (en) Method for storing audio video files and method for editing audio-video files
US7693920B2 (en) Recycle-free directory entry system and method
JP4312783B2 (en) AV data reproducing method, AV data reproducing apparatus, program, and recording medium
JP2011164733A (en) Recording device and recording method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111116