CN102354517B - The data record method and device of virtual merging - Google Patents

The data record method and device of virtual merging Download PDF

Info

Publication number
CN102354517B
CN102354517B CN201110265254.2A CN201110265254A CN102354517B CN 102354517 B CN102354517 B CN 102354517B CN 201110265254 A CN201110265254 A CN 201110265254A CN 102354517 B CN102354517 B CN 102354517B
Authority
CN
China
Prior art keywords
file
merged
piece
mergence
storage media
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
CN201110265254.2A
Other languages
Chinese (zh)
Other versions
CN102354517A (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 CN201110265254.2A priority Critical patent/CN102354517B/en
Publication of CN102354517A publication Critical patent/CN102354517A/en
Application granted granted Critical
Publication of CN102354517B publication Critical patent/CN102354517B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

A kind of data record method and device of virtual merging, this merging device comprises: the Storage Media storing the first file and the second file and record the first file first opens beginning and the first end position and the second starting bit recording the second file is put and the file configuration table of the second end position, and wherein the first file has the title data of the source file length of record first file.Merging method is put by the second starting bit the first end position of the first file being revised as the second file, the first file and the second Piece file mergence is made to be merged file, title data more new record merged file length is [ceil (N1/S)+ceil (N2/S)] * S, N1 is the source file length of the first file, N2 is the file size of the second file, and S is the sector-size of Storage Media.

Description

The data record method and device of virtual merging
The divisional application that the application is the applying date is on March 15th, 2005, application number is 200510055842.8, denomination of invention is the application for a patent for invention of " data record method and device of virtual merging ".
Technical field
The present invention relates to a kind of data record method and device, and in particular to the data record method and device of the plural file of a kind of virtual merging.
Background technology
Multi-media embedded-type system (Embedded System) adopts MPEG-4 Image Compression and 3GPP technical specification recording video and audio data, and by multimedia file stored in Storage Media.Because the storage area of embedded system is quite limited, the mode of data record is very huge for the impact of the size of file storage area and the use amount of internal memory.Therefore, how to carry out recording the important topic becoming embedded system under file system.
When tradition is recorded, be frame of video (video frame) and voiced frame (audio frame) are write video data file (video file) and sound data file (audio file) respectively simultaneously.Now, also the information of each Frame (frame) is inserted in internal memory, record the sampling characteristic value (sample data) of each Frame.
At the end of recording, the mode of additional (append) is adopted video data file and sound data file to be merged.First, the content of sound data file is read out one by one, then the sound data file read out is attached to the rear of video data file.In addition, when sampling characteristic value is converted to sampling table (sample table), sampling table is also attached to the rear of video data file.
In file system, store files gathers together (cluster) for unit, the size of gathering together is 512bytes, as long as stored file size is not the multiple of 512bytes, file end will exist unnecessary data (referred to here as cavity).Therefore, two files are when carrying out merging (merge) traditionally, must first insert from the empty place after first file, namely using the end of file EOF of first file (End-Of-File) as second file starting point, the content of read out second file continued and insert, linked file like this is just meaningful.
Especially, the merging of video-audio data is carried out traditionally in additional mode, file system first must reserve the space of enough recording second file after first file when recording, terminate once record, second file could be allowed after reading, to be carried to this space and to be attached to after first file.Therefore, when selecting rear sound data file being attached to video data file, the space of enough recording voice data files first must be reserved after video data file; Similarly, when selecting rear video data file being attached to sound data file, then first must reserve the space of enough recording video data files after sound data file.
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, significantly can save the use amount of file storage area and minimizing internal memory.
According to object of the present invention, a kind of Piece file mergence method being applied to electronic installation is proposed, in order to merge one first file and one second file that are stored in this electronic installation, this first file has a title data, in order to record a source file length of this first file.Electronic installation comprises a Storage Media, this Storage Media stores a file configuration table (File Allocation Table, FAT), this file configuration table is used for one first starting bit of record first file in Storage Media and puts and one first end position, and one second starting bit of record the second file in Storage Media is put and one second end position.Piece file mergence method comprises: the second starting bit that the first end position of the first file in this file configuration table is revised as the second file put, the first file and the second Piece file mergence is made to be one first merged file, calculate a merged file length of this first merged file, and by this merged file length records in this title data to upgrade this title data, wherein, the step calculating this merged file length comprises: the sector-size obtaining 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, wherein, N1 is this source file length of this first file, N2 is a file size of this second file, S is a sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
According to object of the present invention, a kind of Piece file mergence method being applied to electronic installation is more proposed, in order to merge one first file and one second file that store in an electronic, this first file has a title data, in order to record a source file length of this first file.Electronic installation comprises a Storage Media and a file configuration table, and the first file comprises multiple first Frame, and this second file comprises multiple second Frame, and this Storage Media has multiple gathering together, in order to store this first file and this second file.First Frame or second Frame are stored in during of Storage Media gathers together, and the storage location of first and second file is recorded in file configuration table.Piece file mergence method comprises: set up the connection relationship between the first file and the second file, be linked to first the second Frame by by last in file configuration table first Frame, make this first file and this second Piece file mergence be one first merged file; Calculate a merged file length of this first merged file, and by this merged file length records in this title data to upgrade this title data, wherein, the step calculating this merged file length comprises: the sector-size obtaining 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, wherein, N1 is this source file length of this first file, N2 is a file size of this second file, S is a sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
According to object of the present invention, a kind of Piece file mergence device of another proposition, in order to merge the first file and the second file, this first file has a title data, in order to record a source file length of this first file.Piece file mergence device comprises: a Storage Media, this Storage Media stores a file configuration table.Storage Media deposits the first file and the second file.File configuration table records one first starting bit of the first file in Storage Media to put and one first end position, and one second starting bit of record the second file in Storage Media is put and one second end position.First file and the second Piece file mergence are a merged file is put by the second starting bit the first end position of the first file being revised as the second file, this first file and this second Piece file mergence is made to be one first merged file, and a merged file length of this title data more this first merged file of new record, 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, S is a sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, x is any number.
According to object of the present invention, propose again a kind of Piece file mergence device, in order to merge one first file and one second file, this first file has a title data, in order to record a source file length of this first file.Piece file mergence device comprises: a Storage Media, this Storage Media stores a file configuration table.Storage Media has multiple gathering together, in order to store the first file and the second file.First file comprises at least one first Frame, and the second file comprises at least one second Frame.First Frame or second Frame are stored in during of Storage Media gathers together.File configuration table records the storage location of first and second file.First the second Frame is linked to by by last in file configuration table first Frame, the first file and the second Piece file mergence is made to be 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, N2 is a file size of this second file, S is a sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
According to object of the present invention, a kind of Piece file mergence device being applied to electronic installation is proposed, in order to merge the first file and the second file that are stored in this electronic installation, this electronic installation comprises Storage Media, this Storage Media stores file configuration table, this file configuration table is used for recording first starting bit of this first file in this Storage Media and puts and the first end position, and record second starting bit of this second file in this Storage Media and put and the second end position, this Piece file mergence device being applied to electronic installation comprises: the device this second starting bit that this first end position of this first file in this file configuration table is revised as this second file put, this first file and this second Piece file mergence is made to be the first merged file, calculate the device of a merged file length of this first merged file, wherein, the device of this merged file length of this first merged file of this calculating comprises: the device obtaining the sector-size of this Storage Media, obtain the device of the source file length of this first file and the second file size of this second file respectively, and obtain the device that 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 the file size of this second file, S is the sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
According to object of the present invention, a kind of Piece file mergence device being applied to electronic installation is proposed again, in order to merge the first file and the second file that are stored in this electronic installation, this electronic installation comprises Storage Media, this Storage Media stores file configuration table, this first file comprises multiple first Frame, this second file comprises multiple second Frame, and this Storage Media has multiple gathering together, in order to store this first file and this second file, first Frame or second Frame are stored in during of this Storage Media gathers together, and this first and the storage location of this second file be recorded in this file configuration table, this Piece file mergence device being applied to electronic installation comprises: the device setting up the connection relationship between this first file and this second file, first the second Frame is linked to by by last first Frame in this file configuration table, this first file and this second Piece file mergence is made to be the first merged file, calculate the device of the merged file length of this first merged file, wherein, the device of this merged file length of this first merged file of this calculating comprises: the device obtaining the sector-size of this Storage Media, obtain the device of the source file length of this first file and the second file size of this second file respectively, and obtain the device that 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 the file size of this second file, S is the sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, a preferred embodiment cited below particularly, and coordinate accompanying drawing, be described in detail below.
Accompanying drawing explanation
Figure 1A illustrates the process flow diagram of the data record method of the virtual merging according to first embodiment of the invention.
Figure 1B illustrates the schematic diagram of data record method enforcement in FAT file system of the virtual merging of Figure 1A.
Fig. 2 A illustrates the process flow diagram of the data record method of the virtual merging according to second embodiment of the invention.
Fig. 2 B illustrates the schematic diagram of data record method enforcement in FAT file system of the virtual merging of Fig. 2 A.
Fig. 3 A illustrates the process flow diagram of the data record method of the virtual merging according to third embodiment of the invention.
Fig. 3 B illustrates the schematic diagram of data record method enforcement in FAT file system of the virtual merging of Fig. 3 A.
Embodiment
Data record method of the present invention is the electronic installation being applicable to have a Storage Media, two dissimilar files are linked in Storage Media in the mode of virtual merging (pseudo-merge), can, under the situation of not move, be a merged file by Piece file mergence.Piece file mergence device of the present invention is preferably and is used in an embedded system (embedded system), comprises Storage Media and file configuration table.Storage Media is such as a flash memory (flash memory), has deposited the first file and the second file.File configuration table records the first file respectively and the starting bit of the second file in Storage Media is put and end position.The starting bit that the end position of the first file in file configuration table is revised as the second file is mainly put by Piece file mergence method of the present invention, being a merged file by two Piece file mergences.Two Piece file mergences are mainly a merged file by the connection relationship of several Frames of the several Frame and the second file of setting up the first file in file configuration table by another Piece file mergence method of the present invention.Especially, if two dissimilar files produce simultaneously, two multimedia data files such as simultaneously recorded, do not need the storage area needed for reserved move between two files, and therefore processing speed is very fast, and can save file storage area.
First embodiment
Please refer to Figure 1A, illustrate the process flow diagram of the data record method of the virtual merging according to first embodiment of the invention.First be enter step 102, start the data record method of virtual merging (pseudo-merge) of the present invention; Be in a step 102 generation one first file and one second file in a Storage Media, and the first file and the second file have at least one first Frame and at least one second Frame respectively.Then, step 104 be generation 1 the 3rd file in Storage Media, and the 3rd file has a sampling table (sample table), and sampling table changes to obtain it by the sampling characteristic value of the first Frame (sample data).In step 106, record a title data H in the first file, and title data comprises a source file length of the first file.Step 108 is the connection relationship between the first file set up in Storage Media, the second file and the 3rd file, using under the situation not moving the first Frame, the second Frame and the sampling table storage address in Storage Media, is a merged file by the first file, the second file and the 3rd Piece file mergence.Then, in step 110, a merged file length of merged file is calculated.The account form of merged file length, it is the second file size (N2) first obtaining a sector-size (S) of Storage Media, the source file length (N1) of the first file and the second file, and then calculate M1=ceil (N1/S) and M2=ceil (N2/S), so can obtain merged file length (LEN) for (M1+M2) * S.Finally, upgrade title data in step 112, with by merged file length records in the title data of merged file.
Figure 1B illustrates the schematic diagram of data record method enforcement in FAT file system of the virtual merging of Figure 1A.As shown in Figure 1B, Storage Media comes log file position with a file configuration table (File Allocation Table, FAT).First file has multiple first Frame, and what be configured in Storage Media gathers together in C0-C3; Second file has multiple second Frame, is configured in the C7-C9 that gathers together of Storage Media respectively; And the 3rd the sampling table of file be the C4 that gathers together being configured in Storage Media.The end of file EOF (End of File) of the first file, the second file and the 3rd file lays respectively at gather together C3, C9 and C4.Title data H comprises the source file length of the first file, is recorded in the reference position of the first file.
When the contents value of file configuration table FAT is revised as the contents value of file configuration table FAT ', can link in the correspondence of Storage Media the virtual merging that file is carried out in address by the sampling table of the second Frame of the first Frame of amendment first file, the second file and the 3rd file.Be that the mode of a merged file can adopt the starting bit end position of the first file in file configuration table being revised as the second file to put by two Piece file mergences, or in file configuration table, set up the connection relationship of several Frame of the first file and several Frames of the second file.As shown in Figure 1B, in file configuration table FAT ' after the modification, the C3 that gathers together points to gather together C7 and the C9 that gathers together to point to the C4 that gathers together, therefore the first file the first Frame can with the virtual merging of the second Frame of the second file, make the first file and the second Piece file mergence be one first merged file; Then, the second Frame of the second file can with the sampling exterior deficiency matching of the 3rd file also, make the first merged file and the 3rd Piece file mergence be one second merged file; By this, the first file, the second file and the 3rd file being linked is one second merged file.In the second merged file, the first file be arranged in the second file before, and the second file be arranged in the 3rd file before.First file and the second file are two multimedia data files preferably for recording simultaneously, first file and the 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 is still original multimedia data file.Because multimedia data file itself does not need connectivity closely, the cavity that after therefore file system can accept virtual merging, the end of file EOF of the first file, the second file and the 3rd file produces.Therefore, under file structure of the present invention, cavity existing between two files can by file system process, that is file system can accept after two virtual merging of file between existing cavity.From the above, by the data record method of the virtual merging of first embodiment of the invention, can maintain file does not need at the storage location of original file system to carry file.
Second embodiment
Please refer to Fig. 2 A, illustrate the process flow diagram of the data record method of the virtual merging according to second embodiment of the invention.First be enter step 202, start the data record method of virtual merging of the present invention; Be in step 202. generation one first file and one second file in a Storage Media, and the first file and the second file have at least one first Frame and at least one second Frame respectively.Then, in step 206, record a title data H in the first file, and title data comprises a source file length of the first file.Step 208 sets up the connection relationship between the first file in Storage Media and the second file, using under the situation not moving the first Frame and the storage address of the second Frame in Storage Media, is a merged file by the first file and the second Piece file mergence.In step 209, after sampling table is attached to merged file; Sampling table changes to obtain it by the sampling characteristic value of the first Frame, and sampling characteristic value first can be recorded in the 3rd file of Storage Media, or is recorded to a scratch-pad memory.Then, in step 210, a merged file length of merged file is calculated.The account form of merged file length, it is the second file size (N2) first obtaining a sector-size (S) of Storage Media, the source file length (N1) of the first file and the second file, and then calculate M1=ceil (N1/S) and M2=ceil (N2/S), so can obtain merged file length (LEN) for (M1+M2) * S.Finally, upgrade title data in the step 212, with by merged file length records in the title data of merged file.
Fig. 2 B illustrates the schematic diagram of data record method enforcement in FAT file system of the virtual merging of Fig. 2 A.As shown in Figure 2 B, Storage Media comes log file position with a file configuration table.First file has multiple first Frame, and what be configured in Storage Media gathers together in C0-C3; Second file has multiple second Frame, is configured in the C7-C9 that gathers together of Storage Media respectively; And the 3rd the sampling table of file be the C4 that gathers together being configured in Storage Media.The end of file EOF of the first file, the second file and the 3rd file lays respectively at gather together C3, C9 and C4.Title data H comprises the source file length of the first file, is recorded in the reference position of the first file.
When the contents value of file configuration table FAT is revised as the contents value of file configuration table FAT ', can link in the correspondence of Storage Media the virtual merging that file is carried out in address by the sampling table of the second Frame of the first Frame of amendment first file, the second file and the 3rd file.Be that the mode of a merged file can adopt the starting bit end position of the first file in file configuration table being revised as the second file to put by two Piece file mergences, or in file configuration table, set up the connection relationship of several Frame of the first file and several Frames of the second file.As shown in Figure 2 B, in file configuration table FAT ' after the modification, the C3 that gathers together points to gather together C7 and the C9 that gathers together to point to the C10 that gathers together, therefore the first file the first Frame can with the virtual merging of the second Frame of the second file; By this, the first file and the second file are linked for merged file.In merged file, the first file be arranged in the second file before.First file and the second file are two multimedia data files preferably for recording simultaneously, and the first file and the second file can be respectively video data file and sound data file, maybe can be respectively sound data file and video data file.
With the first embodiment unlike, the 3rd file just carries out Piece file mergence after the first file and the second file carry out virtual merging.That is, first the content of the 3rd file is read out from the C4 that gathers together, then read content is started insert from the C9 that gathers together empty and continue to insert to gather together in C10, to make after sampling table is attached to merged file.Because the data volume of the 3rd file is relatively little, therefore directly undertaken linking the whole structure also not affecting 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 is still original multimedia data file.Because multimedia data file itself does not need connectivity closely, the cavity that after therefore file system can accept virtual merging, the end of file EOF of the first file and the second file produces.Therefore, under file structure of the present invention, cavity existing between two files can by file system process, that is file system can accept after two virtual merging of file between existing cavity.From the above, by the data record method of the virtual merging of second embodiment of the invention, can maintain file does not need at the storage location of original file system to carry file.
3rd embodiment
Please refer to Fig. 3 A, illustrate the process flow diagram of the data record method of the virtual merging according to third embodiment of the invention.First be enter step 302, start the data record method of virtual merging of the present invention; Be in step 302 generation one first file and one second file in a Storage Media, and the first file and the second file have at least one first Frame and at least one second Frame respectively.Then, step 304 be generation 1 the 3rd file and one the 4th file in Storage Media, the 3rd file and the 4th file have one first sampling table and one second sampling table respectively.First sampling table and the second sampling table change to obtain it by the sampling characteristic value of the first Frame and the sampling characteristic value of the second Frame respectively.Within step 306, record a title data H in the first file, and title data comprises a source file length of the first file.Step 308 is the connection relationship between the first file set up in Storage Media, the second file, the 3rd file and the 4th file, using under the situation not moving the first Frame, the second Frame, the first sampling table and the storage address of the second sampling table in Storage Media, is a merged file by the first file, the second file, the 3rd file and the 4th Piece file mergence.Then, in the step 310, a merged file length of merged file is calculated.The account form of merged file length, it is the second file size (N2) first obtaining a sector-size (S) of Storage Media, the source file length (N1) of the first file and the second file, and then calculate M1=ceil (N1/S) and M2=ceil (N2/S), so can obtain merged file length (LEN) for (M1+M2) * S.Finally, upgrade title data in step 112, with by merged file length records in the title data of merged file.
Fig. 3 B illustrates the schematic diagram of data record method enforcement in FAT file system of the virtual merging of Fig. 3 A.As shown in Figure 3 B, Storage Media comes log file position with a file configuration table.First file has multiple first Frame, and what be configured in Storage Media gathers together in C0-C3; Second file has multiple second Frame, is configured in the C7-C9 that gathers together of Storage Media respectively; First sampling table of the 3rd file is the C4 that gathers together being configured in Storage Media; And the 4th second sampling table of file be the C10 that gathers together being configured in Storage Media.The end of file EOF of the first file, the second file, the 3rd file and the 4th file lays respectively at gather together C3, C9, C4 and C10.Title data H comprises the source file length of the first file, is recorded in the reference position of the first file.
When the contents value of file configuration table FAT is revised as the contents value of file configuration table FAT ', can link in the correspondence of Storage Media the virtual merging that file is carried out in address by the second sampling table of the first sampling table of the second Frame of the first Frame of amendment first file, the second file, the 3rd file and the 4th file.Be that the mode of a merged file can adopt the starting bit end position of the first file in file configuration table being revised as the second file to put by two Piece file mergences, or in file configuration table, set up the connection relationship of several Frame of the first file and several Frames of the second file.As shown in Figure 3 B, in file configuration table FAT ' after the modification, 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 the first file the first Frame can with the virtual merging of the second Frame of the second file, make the first file and the second Piece file mergence be one first merged file; Then, the second Frame of the second file can sample exterior deficiency matching also with first of the 3rd file, makes the first merged file and the 3rd Piece file mergence be one second merged file; Moreover the first sampling table of the 3rd file can sample exterior deficiency matching also with second of the 4th file, makes the second merged file and the 4th Piece file mergence be one the 3rd merged file; By this, the first file, the second file, the 3rd file and the 4th file being linked is the 3rd merged file.In the 3rd merged file, the first file be arranged in the second file before, the second file be arranged in the 3rd file before and the 3rd file be arranged in the 4th file before.First file and the second file are two multimedia data files preferably for recording simultaneously, and the first file and the 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 is still original multimedia data file.Because multimedia data file itself does not need connectivity closely, the cavity that after therefore file system can accept virtual merging, the end of file EOF of the first file, the second file, the 3rd file and the 4th file produces.Therefore, under file structure of the present invention, cavity existing between two files can by file system process, that is file system can accept after two virtual merging of file between existing cavity.From the above, by the data record method of the virtual merging of third embodiment of the invention, can maintain file does not need at the storage location of original file system to carry file.
The data record method of the virtual merging disclosed by the above embodiment of the present invention to link in Storage Media two dissimilar files in the mode of virtual merging; Meanwhile, under file structure of the present invention, cavity existing between two files can by file system process.Therefore, can, under the situation of not move, be a merged file by Piece file mergence, and cavity existing between can being accepted after two virtual merging of file by file system.Especially, if two dissimilar files produce simultaneously, the storage area needed for reserved move is not needed between two files, therefore, when selecting rear sound data file being attached to video data file, the space of reserved recording voice data file after video data file, is not needed; Similarly, when selecting rear video data file being attached to sound data file, the space of reserved recording video data file after sound data file, is not also needed.So, the present invention about can save the file storage area of 1/3rd and reduce the use of internal memory.
In sum; although the present invention discloses as above with a preferred embodiment; so itself and be not used to limit the present invention; anyly have the knack of this those skilled in the art; without departing from the spirit and scope of the present invention; when being used for a variety of modifications and variations, therefore protection scope of the present invention is when being as the criterion depending on the accompanying claim person of defining.

Claims (20)

1. one kind is applied to the Piece file mergence method of electronic installation, in order to merge the first file and the second file that are stored in this electronic installation, this electronic installation comprises Storage Media, this Storage Media stores file configuration table, this file configuration table is used for recording first starting bit of this first file in this Storage Media and puts and the first end position, and record second starting bit of this second file in this Storage Media and put and the second end position, this Piece file mergence method being applied to electronic installation comprises:
This second starting bit that this first end position of this first file in this file configuration table is revised as this second file is put, makes this first file and this second Piece file mergence be the first merged file;
Calculate a merged file length of this first merged file, wherein, the step calculating this merged file length comprises:
Obtain the sector-size of this Storage Media;
Obtain the source file length of this first file and the second file size of this second file respectively; And
Obtain this merged file length for [ceil (N1/S)+ceil (N2/S)] * S, wherein, N1 is this source file length of this first file, N2 is the file size of this second file, S is the sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
2. be applied to the Piece file mergence method of electronic installation as claimed in claim 1, it is characterized in that, this first file has at least one first Frame, and this Piece file mergence method being applied to electronic installation more comprises:
The sampling characteristic value of this first Frame is converted to sampling table; And
After this sampling table is attached to this first merged file.
3. be applied to the Piece file mergence method of electronic installation as claimed in claim 1, it is characterized in that, this first file has at least one first Frame, and this Piece file mergence method being applied to electronic installation more comprises:
The sampling characteristic value of this first Frame is converted to sampling table, and this sampling table has the 3rd starting bit to put and the 3rd file of the 3rd end position; And
The 3rd starting bit that this second end position of this second file is revised as the 3rd file is put, makes this first merged file and the 3rd Piece file mergence be the second merged file.
4. be applied to the Piece file mergence method of electronic installation as claimed in claim 1, it is characterized in that, this electronic installation has an embedded system, and this Storage Media is a flash memory.
5. be applied to the Piece file mergence method of electronic installation as claimed in claim 1, it is characterized in that, this first file and this second file are the multimedia data files for recording simultaneously.
6. be applied to the Piece file mergence method of electronic installation as claimed in claim 5, it is characterized in that, this first file and this second file are respectively video data file and sound data file.
7. be applied to the Piece file mergence method of electronic installation as claimed in claim 5, it is characterized in that, this first file and this second file are respectively sound data file and video data file.
8. be applied to the Piece file mergence method of electronic installation as claimed in claim 1, it is characterized in that, this first file has title data, this title data comprises file size and file type, wherein this file size is in order to record this source file length of this first file, and when this first file and this second Piece file mergence are this first merged file, this file size in this title data is updated to this merged file length of this first merged file.
9. one kind is applied to the Piece file mergence method of electronic installation, in order to merge the first file and the second file that are stored in this electronic installation, this electronic installation comprises Storage Media, this Storage Media stores file configuration table, this first file comprises multiple first Frame, this second file comprises multiple second Frame, and this Storage Media has multiple gathering together, in order to store this first file and this second file, first Frame or second Frame are stored in during of this Storage Media gathers together, and this first and the storage location of this second file be recorded in this file configuration table, this Piece file mergence method being applied to electronic installation comprises:
Set up the connection relationship between this first file and this second file, be linked to first the second Frame by by last first Frame in this file configuration table, make this first file and this second Piece file mergence be the first merged file;
Calculate the merged file length of this first merged file, wherein, the step calculating this merged file length comprises:
Obtain the sector-size of this Storage Media;
Obtain the source file length of this first file and the second file size of this second file respectively; And
Obtain this merged file length for [ceil (N1/S)+ceil (N2/S)] * S, wherein, N1 is this source file length of this first file, N2 is the file size of this second file, S is the sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
10. be applied to the Piece file mergence method of electronic installation as claimed in claim 9, it is characterized in that, the method more comprises:
The sampling characteristic value of those the first Frames is converted to sampling table;
After this sampling table is attached to this first merged file.
The 11. Piece file mergence methods being applied to electronic installation as claimed in claim 9, it is characterized in that, this Piece file mergence method being applied to electronic installation more comprises:
The sampling characteristic value of this first Frame is converted to sampling table, and this sampling table is the 3rd file at least with the 3rd Frame; And
Be linked to this first the 3rd Frame by by last second Frame of this in this file configuration table, make this first merged file and the 3rd Piece file mergence be the second merged file.
The 12. Piece file mergence methods being applied to electronic installation as claimed in claim 9, it is characterized in that, this electronic installation has embedded system, and this Storage Media is flash memory.
The 13. Piece file mergence methods being applied to electronic installation as claimed in claim 9, it is characterized in that, this first file and this second file are the multimedia data files for recording simultaneously.
The 14. Piece file mergence methods being applied to electronic installation as claimed in claim 9, it is characterized in that, this first file has title data, this title data comprises file size and file type, wherein this file size is in order to record this source file length of this first file, and when this first file and this second Piece file mergence are this first merged file, this file size in this title data is updated to this merged file length of this first merged file.
15. 1 kinds of Piece file mergence devices being applied to electronic installation, in order to merge the first file and the second file that are stored in this electronic installation, this electronic installation comprises Storage Media, this Storage Media stores file configuration table, this file configuration table is used for recording first starting bit of this first file in this Storage Media and puts and the first end position, and record second starting bit of this second file in this Storage Media and put and the second end position, this Piece file mergence device being applied to electronic installation comprises:
By the device that this second starting bit that this first end position of this first file in this file configuration table is revised as this second file is put, this first file and this second Piece file mergence is made to be the first merged file;
Calculate the device of a merged file length of this first merged file, wherein, the device of this merged file length of this first merged file of this calculating comprises:
Obtain the device of the sector-size of this Storage Media;
Obtain the device of the source file length of this first file and the second file size of this second file respectively; And
Obtain the device that 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 the file size of this second file, S is the sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
16. Piece file mergence devices as claimed in claim 15, it is characterized in that, this first file comprises at least one first Frame, and this Storage Media more deposits sampling table, wherein, this sampling table is converted by the sampling characteristic value of this first Frame and after being additional to this first merged file.
17. Piece file mergence devices as claimed in claim 15, it is characterized in that, this first file comprises at least one first Frame, and this Storage Media more deposits a sampling table, wherein, this sampling table is converted by the sampling characteristic value of this first Frame, and this sampling table has the 3rd starting bit to put and the 3rd file of the 3rd end position; And
Wherein, the 3rd starting bit that this second end position of this second file is revised as the 3rd file is put, and makes this first merged file and the 3rd Piece file mergence be the second merged file.
18. Piece file mergence devices as claimed in claim 15, it is characterized in that, this first file has title data, this title data comprises file size and file type, wherein this file size is in order to record this source file length of this first file, and when this first file and this second Piece file mergence are this first merged file, this file size in this title data is updated to this merged file length of this first merged file.
19. 1 kinds of Piece file mergence devices being applied to electronic installation, in order to merge the first file and the second file that are stored in this electronic installation, this electronic installation comprises Storage Media, this Storage Media stores file configuration table, this first file comprises multiple first Frame, this second file comprises multiple second Frame, and this Storage Media has multiple gathering together, in order to store this first file and this second file, first Frame or second Frame are stored in during of this Storage Media gathers together, and this first and the storage location of this second file be recorded in this file configuration table, this Piece file mergence device being applied to electronic installation comprises:
Set up the device of the connection relationship between this first file and this second file, be linked to first the second Frame by by last first Frame in this file configuration table, make this first file and this second Piece file mergence be the first merged file;
Calculate the device of the merged file length of this first merged file, wherein, the device of this merged file length of this first merged file of this calculating comprises:
Obtain the device of the sector-size of this Storage Media;
Obtain the device of the source file length of this first file and the second file size of this second file respectively; And
Obtain the device that 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 the file size of this second file, S is the sector-size of this Storage Media, ceil (x) represents the smallest positive integral value being more than or equal to x, and x is any number.
20. Piece file mergence devices as claimed in claim 19, it is characterized in that, this first file has title data, this title data comprises file size and file type, wherein this file size is in order to record this source file length of this first file, and when this first file and this second Piece file mergence are this merged file, this file size in this title data is updated to this merged file length of this merged file.
CN201110265254.2A 2004-08-06 2005-03-15 The data record method and device of virtual merging Expired - Fee Related CN102354517B (en)

Priority Applications (1)

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

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
CN200410056266 2004-08-06
CN200410056266.4 2004-08-06
CN2004100562664 2004-08-06
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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN102354517A CN102354517A (en) 2012-02-15
CN102354517B true CN102354517B (en) 2015-09-02

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 After (1)

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

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
CN1485842A (en) * 2002-09-29 2004-03-31 上海乐金广电电子有限公司 Recording and access method of Digital document

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100504854C (en) * 2003-01-14 2009-06-24 联想(北京)有限公司 Document management method

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
CN1485842A (en) * 2002-09-29 2004-03-31 上海乐金广电电子有限公司 Recording and access method of Digital document

Also Published As

Publication number Publication date
CN102354517A (en) 2012-02-15
CN1731527B (en) 2011-11-16
CN1731527A (en) 2006-02-08

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
KR100332332B1 (en) Recording medium, data recording unit and data playback unit reading from and writing to the recording medium
US9330724B2 (en) Data recording method, data erasure method, data display method, storage device, storage medium, and program
EP2209074A1 (en) Data storage processing method, data searching method and devices thereof
CN100418071C (en) Method for establishing medium file system
CN108763531A (en) A kind of MDVR document storage systems and its operation method
CN106681659A (en) Data compression method and device
CN103327277A (en) Phonographic photo generation method and method for merging and storing picture data and voice data
CN102354517B (en) The data record method and device of virtual merging
JP4241839B2 (en) Data and file system information recording apparatus and recording method
CN103024219B (en) IAD (Integrated Access Device) and voice processing method and system based on same
EP2200043A3 (en) Recording and Reproducing Apparatus, File Accessing Method, AV Data Managing Method, and Server
US8369684B2 (en) Data processing apparatus and data processing method
EP2200038A1 (en) Method for recording AV data, AV data recording apparatus, data recording medium, program, and program recording medium
JP2009271635A (en) File editing apparatus and file editing method
CN100412974C (en) Method and apparatus for recording video data, and information storage medium thereby
JP2002373480A (en) Data-recording method, data recorder and recording medium
CN105740369B (en) A kind of multiple views framing emerging system and method
KR100653942B1 (en) Method for embedding/extracting additional data into/from asf file and file playback device
CN114546278A (en) High-frequency image data writing SATA interface solid state hard disk processing method
CN1855285B (en) Method for storing audio video files and method for editing audio-video files
JP3524774B2 (en) Information recording / reproducing device
US8644676B2 (en) Data processing apparatus and data processing method
CN114974314A (en) Audio and video frame processing method, device and medium

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

Granted publication date: 20150902

CF01 Termination of patent right due to non-payment of annual fee