CN100390721C - Method and system for accessing video and audio material in computer device - Google Patents

Method and system for accessing video and audio material in computer device Download PDF

Info

Publication number
CN100390721C
CN100390721C CNB2005100513268A CN200510051326A CN100390721C CN 100390721 C CN100390721 C CN 100390721C CN B2005100513268 A CNB2005100513268 A CN B2005100513268A CN 200510051326 A CN200510051326 A CN 200510051326A CN 100390721 C CN100390721 C CN 100390721C
Authority
CN
China
Prior art keywords
cut section
access
instruction
rom drive
hard disk
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
CNB2005100513268A
Other languages
Chinese (zh)
Other versions
CN1828509A (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.)
Sunplus Technology Co Ltd
Original Assignee
Sunplus Technology Co Ltd
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 Sunplus Technology Co Ltd filed Critical Sunplus Technology Co Ltd
Priority to CNB2005100513268A priority Critical patent/CN100390721C/en
Publication of CN1828509A publication Critical patent/CN1828509A/en
Application granted granted Critical
Publication of CN100390721C publication Critical patent/CN100390721C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The present invention provides a method and a system for accessing video and audio data in a computer device, which mainly comprises a hard disk, a control device of the hard disk and a conversion drive unit, wherein the hard disk is divided into a partition and a non partition, wherein the partition is provided with a video and audio data table which records video and audio data at the storage position of the non partition simulated into an optical drive. When the conversion drive unit judges that the simulation optical drive is accessed, a conversion program is performed to convert an access instruction to the optical drive into an access instruction to the non partition, and a command buffer of the control device of the hard disk is set according to the conversion instruction and the video and audio data table to access the non partition.

Description

The method and system of accessing video and audio material in computer installation
Technical field
The present invention relates to a kind of technical field of accessing video and audio material, refer to the method and system of accessing video and audio material in a kind of computer installation especially.
Background technology
The system architecture of general personal computer device as shown in Figure 1, formed by a processor 110, a north bridge chips 120, an Installed System Memory 130, a South Bridge chip 140, a hard disk control device 141 and a hard disk 150, wherein hard disk has a cut section, and stores an operating system.Processor 110 sees through north bridge chips 120 and comes executive operating system, and with relevant data storage in Installed System Memory 130.As shown in Figure 2, when application program 210 was desired on the access hard disks 150 archives, 220 foundation one archives economies of operating system sent relevant information to a conversion driving unit 230.The buffer of setting harddisk control device 141 is removed in 230 instructions that transmitted according to operating system 220 in this conversion driving unit, and carry out relevant harddisk access instruction by the hardware of hard disk control device 141, with read data from hard disk 150 or the data of writing to hard disk 150.
Yet the sector-size of general well-known operations system is the 4K byte, to make things convenient for the numerous little archives of access, in order to avoid cause the waste of hard disk sector.Yet the characteristic of audiovisual materials is that its archives size all is very big, and all is that continuity reads and writes usually, and known archives economy also is unfavorable for managing and protecting the data of this type.Simultaneously, be to be stored on the same cut section of hard disk with archives economy and video/audio archive, when damaging, cause archives economy video/audio archive to read.Therefore, the method and system of access video/audio archive still have many disappearances and give improved necessity in the known computer device.
Summary of the invention
The objective of the invention is provide a kind of in computer installation the method and system of accessing video and audio material, to avoid the degree of stability of known archives.
According to a characteristic of the present invention, be propose a kind of in computer installation the method for accessing video and audio material, this computer installation comprises a hard disk, this hard disk is divided into a cut section and a non-cut section, this cut section has an audiovisual materials form, and these audiovisual materials charting audiovisual materials are in the position that non-cut section stores, and this method mainly comprises the following step: a load step, be to load the audiovisual materials form, and should non-cut section emulation become a CD-ROM drive; One access determining step judges whether this computer installation carries out access to this emulation CD-ROM drive; One switch process, it judges at this access determining step and carries out a converse routine when this emulation CD-ROM drive carried out access, is converted to instruction to this non-cut section access with the instruction of CD-ROM drive being carried out access; One access step is instruction and this audiovisual materials form according to this conversion, so that this non-cut section is carried out access.
According to another characteristic of the present invention, be propose a kind of in computer installation the system of accessing video and audio material, mainly comprise a hard disk, a hard disk control device and a conversion driving unit.This hard disk is divided into a cut section and a non-cut section, and this cut section has an audiovisual materials form, and these audiovisual materials charting audiovisual materials are in the position that non-cut section stores, and this non-cut section emulation becomes a CD-ROM drive; This hard disk control device has a command buffer, and it is in order to carry out the harddisk access instruction; This conversion driving unit removes to set the command buffer of this hard disk control device according to the access instruction that this computer installation transmitted, to carry out relevant access instruction by the hard disk control device; Wherein, when this emulation CD-ROM drive being carried out access as this conversion driving unit judgement, then carry out a converse routine, will the instruction that CD-ROM drive carries out access be converted to instruction to this non-cut section access, and according to instruction and this audiovisual materials form of this conversion, set the command buffer of this hard disk control device, so that this non-cut section is carried out access.
Because modern design of the present invention can provide on the industry and utilize, and truly have the enhancement effect, so apply for patent of invention in accordance with the law.
Description of drawings
Fig. 1 is known personal computer system's a Organization Chart;
Fig. 2 is the synoptic diagram of well-known operations system and conversion driving unit;
Fig. 3 is the synoptic diagram of accessing video and audio material system in the computer installation of the present invention;
Fig. 4 is an audiovisual materials table format synoptic diagram of the present invention;
Fig. 5 is the synoptic diagram that ATAPI READ (a 12) command conversion of the present invention becomes ATA READ command dma;
Fig. 6 is the synoptic diagram that ATAPI WRITE (a 12) command conversion of the present invention becomes ATA WRITE command dma;
Fig. 7 is the process flow diagram of the present invention's method of accessing video and audio material in computer installation;
Symbol description
Processor 110 north bridge chips 120
Installed System Memory 130 South Bridge chips 140
Hard disk control device 141 hard disks 150
Application program 210 operating systems 220
Conversion driving unit 230 application programs 310
Operating system 320 conversion driving unit 330
Hard disk control device 340 hard disks 350
Cut section 351 non-cut sections 352
Audiovisual materials form 353
Embodiment
Relevant of the present invention in computer installation the applied environment of accessing video and audio material system still please refer to shown in Figure 3ly, it comprises an application program 310, an operating system 320, a conversion driving unit 330, a hard disk control device 340 and a hard disk 350.Operating system 320 can be window XP, window 2000, window 98 or has the (SuSE) Linux OS of X Window, also can be embedded OSs such as VxWork, ucLinux or WinCE.
This hard disk 350 is divided into a cut section (partition) 351 and one non-cut section (non-partition) 352, this cut section 351 has an audiovisual materials form 353, these audiovisual materials form 353 record audiovisual materials are in the position that non-cut section 352 stores, and this non-cut section emulation becomes a rewritable disk drive.Because hard-disk capacity enlarges day by day, non-cut section 352 not only emulation become a rewritable disk drive (rewritable compact disk, CDRW), also but emulation becomes an erasable digital multi CD-ROM drive (rewritable digital versatile disc, DVD-RW), even emulation becomes some erasable digital multi CD-ROM drives.
Hard disk control device 340 has a command buffer, and it is in order to carry out the harddisk access instruction.It removes to set the command buffer of this hard disk control device 340 according to the access instruction that this computer installation transmitted conversion driving unit 330, to carry out relevant access instruction by hard disk control device 340.
After operating system 320 activated, an application program 310 loaded audiovisual materials form 353, and should non-cut section 352 emulation become a rewritable disk drive.When operating system 320 is embedded OS, can load audiovisual materials form 353 by conversion driving unit 330.At this moment, conversion driving unit 330 can be user's mode activated program (user mode device driver).
Fig. 4 is audiovisual materials form 353 form synoptic diagram, and wherein main channel and 8 subchannels (P, Q, R, S, T, U, V, W) are the tracks of emulation one rewritable disk drive.Above-mentioned field can be several, to allow non-cut section 352 emulation become some erasable digital multi CD-ROM drives.When the most significant digit (most significant bit) of main channel number of blocks (NMCB) is 1, the track of other emulation CD-ROM drive is not write down in expression thereafter again.
Because its size of audiovisual materials all is very big, generally be at least several megabyte (M-byte), even gigabit hyte (G-byte), so in the present invention, the big I of block by conversion driving unit 330 set for 1M, 2M ..., 2 N-1The M byte.That is, when the 330 pairs of non-cut sections 352 in conversion driving unit carry out access, be to be unit, but not known technology is with the 4K byte with new block size.So not only can quicken access speed, also can reduce the fracture area (fragment) of non-cut section 352 non-cut section 352.
As a user during via application program 310 access CD-ROM drives, operating system 320 can transmit an advanced technology and link the access instruction of package interface (Advanced Technology Attachment Packet Interface, ATAPI) form to conversion driving unit 330.Conversion driving unit 330 judges whether the emulation CD-ROM drive of non-cut section 352 is carried out access, when this emulation CD-ROM drive being carried out access as judgement, a converse routine is carried out in 330 of conversion driving unit, is converted to the access instruction that advanced technology links (Advanced Technology Attachment, ATA) form with the access instruction that advanced technology is linked package interface (ATAPI) form.Conversion driving unit 330 is according to this conversion instruction and audiovisual materials form 353, and the command buffer of setting harddisk control device 340 is to carry out access to non-cut section 352.
As judge non-ly when this emulation CD-ROM drive is carried out access, 330 of conversion driving unit link the command buffers of the access instruction setting harddisk control device 340 of package interface (ATAPI) form according to this advanced technology, so that a real CD-ROM drive is carried out access.
Fig. 5 is the synoptic diagram that ATAPI READ (a 12) command conversion is become ATA READ command dma.ATAPI READ (12) order is that logical blocks position (logical block address, LBA) begun for 0x00800000, read 0x8000 (=32K) byte, conversion driving unit 330 is according to the data on the audiovisual materials form 353, and convert ATA READ command dma to, wherein, SECTOR COUNT field is set at 0x40h, reads 64 (=0x40h) SECTOR with expression.Simultaneously, the logical blocks position (LBA) of corresponding non-cut section 352 is calculated in conversion driving unit 330.In the logical blocks position of non-cut section 352 (LBA) is MCSBA* (SPB)+0x00800000, and wherein SPB is had magnetic track (sector) number (sectrs per block) by each block.When if not the block size of cut section 352 is set 1M for, SPB be 0x800 (=1024*1024/512).Conversion driving unit 330 is according to the corresponding logical blocks position (LBA) and actual magnetic track (sector) number, the magnetic head number of hard disk 350, and the command buffer of setting harddisk control device 340 is to carry out access to non-cut section 352.
In the present invention,, again (1M-32K) byte data is read if not when the block size of cut section 352 is set 1M for, after conversion driving unit 330 receives the 32K byte datas, earlier this 32K byte data is sent to operating system 320.That is reading of the 330 pairs of non-cut sections 352 in conversion driving unit is to take to read in advance mode (read ahead).Because the archives size of audiovisual materials all is very big, and all is that continuity reads usually, can quicken reading speed to non-cut section 352 so plant the mode that reads.
Fig. 6 is the synoptic diagram that ATAPI WRITE (a 12) command conversion is become ATA WRITE command dma.(write back) mode is taked to write back in conversion driving unit 330, that is conversion driving unit 330 is to memory district of operating system call, and the data that is written to non-cut section 352 is temporary earlier to the memory district.Conversion driving unit 330 judges that the data transmission that then will remember the district was to hard disk control device 340, so that data is write in the hard disk 350 when the data that are written to same logical blocks position (LBA) surpassed 1M.Because the archives size of audiovisual materials all is very big, and all is that continuity writes usually,, also can reduce the fracture area (fragment) of non-cut section 352 so the kind writing mode not only can quicken the writing speed to non-cut section 352.
Conversion driving unit 330 is taked to delay when writing back (write behind) mode, and a update functions need be arranged.That is, when application program 310 be closed or operating system shutdown before, need write to the data in memory district in the non-cut section 352, in order to avoid data runs off.
Conversion driving unit 330 (write through) mode of also taking to write direct.That is, after conversion driving unit 330 receives the 32K byte datas, directly with this 32K byte data transmission to hard disk control device 340, so that data is write in the hard disk 350.
Audiovisual materials form 353 also can copy portion and be stored in ad-hoc location in the non-cut section 352.For example audiovisual materials form 353 is stored in the non-cut section 352 in 8 magnetic tracks reciprocal (sector).When operating system 320 is damaged because of the improper operation of user or virus infections, only need in cut section 351, install again operating system 320 and conversion driving unit 330.Conversion driving unit 330 can read audiovisual materials form 353 by non-cut section 352 ad-hoc locations, to be accessed in the audiovisual materials in the non-cut section 352.
Fig. 7 is the process flow diagram of the present invention's method of accessing video and audio material in computer installation.In step S710, load audiovisual materials form 353 by an application program 310 or conversion driving unit 330, and should non-cut section 352 emulation become a rewritable disk drive.In step S720, conversion driving unit 330 judges whether the emulation CD-ROM drive of non-cut section 352 is carried out access, when this emulation CD-ROM drive being carried out access as judgement, a converse routine (step S730) is carried out in 330 of conversion driving unit, is converted to the access instruction that advanced technology links (ATA) form with the access instruction that advanced technology is linked package interface (ATAPI) form.
As judge non-when this emulation CD-ROM drive is carried out access, 330 command buffers that link the access instruction setting harddisk control device 340 of package interface (ATAPI) form according to this advanced technology in conversion driving unit, so that a real CD-ROM drive is carried out access, and resumes step S720.
In step S740, conversion driving unit 330 is according to this conversion instruction and audiovisual materials form 353, and the command buffer of setting harddisk control device 340 is to carry out access to non-cut section 352.In step S750, conversion driving unit 330 judges whether whether the data access of non-cut section 352 is finished, if judge and to finish, and resumes step S720 then, if not, then resumes step S730 carries out the next record data access.
As shown in the above description, conversion driving of the present invention unit 330 characteristics according to the audiovisual materials size, and the access of non-cut section 352 is taked to read in advance and delay the mode of writing back, and not only can quicken access speed to non-cut section 352, also can reduce the fracture area of non-cut section 352.In the present invention, need can to carry out access to audiovisual materials by audiovisual materials form 353, audiovisual materials can not damaged because of the improper operation of user or virus infections.Even being positioned at the operating system of cut section 351 damages; conversion driving unit 330 can read the audiovisual materials form 353 that is positioned at non-cut section 352; and being accessed in audiovisual materials in the non-cut section 352, this can protect the audiovisual materials under the Windows that is subjected to virus attack easily especially.
Above-mentioned preferred embodiment only is to give an example for convenience of description, and the interest field that the present invention advocated should be as the criterion so that claim is described certainly, but not only limits to the foregoing description.

Claims (17)

1. the method for an accessing video and audio material in computer installation, it is characterized in that: this computer installation comprises a hard disk, this hard disk is divided into a cut section and a non-cut section, this cut section has an audiovisual materials form, these audiovisual materials charting audiovisual materials are in the position that non-cut section stores, and this method mainly comprises the following step:
One load step is to load the audiovisual materials form, and should non-cut section emulation becomes a CD-ROM drive;
One access determining step judges whether this computer installation carries out access to this emulation CD-ROM drive;
One switch process, it judges at this access determining step and carries out a converse routine when this emulation CD-ROM drive carried out access, is converted to instruction to this non-cut section access with the instruction of CD-ROM drive being carried out access; And
One access step is instruction and this audiovisual materials form according to this conversion, so that this non-cut section is carried out access.
2. the method for claim 1 is characterized in that: if when this access determining step is judged that this computer installation is non-this emulation CD-ROM drive is carried out access, then return this access determining step.
3. the method for claim 1 is characterized in that: in this load step, be that non-cut section emulation is become an erasable CD-ROM drive.
4. the method for claim 1 is characterized in that: this instruction to the CD-ROM drive access is the access instruction that advanced technology links the package interface formats.
5. the method for claim 1, it is characterized in that: the instruction of this conversion is the access instruction of advanced technology link format.
6. the method for claim 1 is characterized in that: in access step, be to use the mode of reading in advance when this non-cut section is read.
7. the method for claim 1 is characterized in that: in access step, this non-cut section is write the fashionable mode of writing back of delaying that is to use.
8. the method for claim 1 is characterized in that: in this load step, be that this non-cut section emulation is become several erasable CD-ROM drives.
9. the system of an accessing video and audio material in computer installation is characterized in that: mainly comprise:
One hard disk, it is divided into a cut section and a non-cut section, and this cut section has an audiovisual materials form, and these audiovisual materials charting audiovisual materials are in the position that non-cut section stores, and this non-cut section emulation becomes a CD-ROM drive;
One hard disk control device has a command buffer, and it is in order to carry out the harddisk access instruction; And
One conversion driving unit, it removes to set the command buffer of this hard disk control device according to the access instruction that this computer installation transmitted, to carry out relevant access instruction by the hard disk control device;
Wherein, when this emulation CD-ROM drive being carried out access as this conversion driving unit judgement, then carry out a converse routine, will the instruction that CD-ROM drive carries out access be converted to instruction to this non-cut section access, and according to instruction and this audiovisual materials form of this conversion, set the command buffer of this hard disk control device, so that this non-cut section is carried out access.
10. system as claimed in claim 9 is characterized in that: this non-cut section is that emulation becomes an erasable CD-ROM drive.
11. system as claimed in claim 9 is characterized in that: this instruction to the CD-ROM drive access is the access instruction that advanced technology links the package interface formats.
12. system as claimed in claim 9 is characterized in that: the instruction of this conversion is the access instruction of advanced technology link format.
13. system as claimed in claim 9 is characterized in that: this conversion driving unit use is read mode in advance this non-cut section is read.
14. system as claimed in claim 9 is characterized in that: this conversion driving unit use is delayed the mode of writing back this non-cut section is write.
15. system as claimed in claim 9 is characterized in that: this non-cut section has a particular sector, in order to store this audiovisual materials form.
16. system as claimed in claim 15 is characterized in that: this particular sector of this non-cut section is 8 magnetic tracks reciprocal.
17. system as claimed in claim 9 is characterized in that: this non-cut section is that emulation becomes several erasable CD-ROM drives.
CNB2005100513268A 2005-03-04 2005-03-04 Method and system for accessing video and audio material in computer device Expired - Fee Related CN100390721C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100513268A CN100390721C (en) 2005-03-04 2005-03-04 Method and system for accessing video and audio material in computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100513268A CN100390721C (en) 2005-03-04 2005-03-04 Method and system for accessing video and audio material in computer device

Publications (2)

Publication Number Publication Date
CN1828509A CN1828509A (en) 2006-09-06
CN100390721C true CN100390721C (en) 2008-05-28

Family

ID=36946933

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100513268A Expired - Fee Related CN100390721C (en) 2005-03-04 2005-03-04 Method and system for accessing video and audio material in computer device

Country Status (1)

Country Link
CN (1) CN100390721C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740160B (en) * 2016-01-25 2018-10-12 苏州佳世达电通有限公司 Magnetic disc access method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242163A (en) * 1999-02-17 2000-09-08 Ai Soft Kk Recording medium where data for generating map are recorded, recording medium where program for generating map using the data is recorded, and method and device for generating the map
US6792437B2 (en) * 1999-09-30 2004-09-14 International Business Machines Corp. Sticky drive letters for computer media

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242163A (en) * 1999-02-17 2000-09-08 Ai Soft Kk Recording medium where data for generating map are recorded, recording medium where program for generating map using the data is recorded, and method and device for generating the map
US6792437B2 (en) * 1999-09-30 2004-09-14 International Business Machines Corp. Sticky drive letters for computer media

Also Published As

Publication number Publication date
CN1828509A (en) 2006-09-06

Similar Documents

Publication Publication Date Title
US9128699B2 (en) Method and system for queuing transfers of multiple non-contiguous address ranges with a single command
US5987479A (en) Large block allocation for disk-based file systems
US7472219B2 (en) Data-storage apparatus, data-storage method and recording/reproducing system
US7373477B2 (en) Fragmentation executing method and storage device
US9298393B2 (en) Buffer management for increased write speed in large sector data storage device
JP2009048613A (en) Solid state memory, computer system including the same, and its operation method
KR100703807B1 (en) Method and apparatus for managing block by update type of data in block type memory
US7880994B2 (en) Vibration detection for data storage device and write processing method for data storage device
US8862856B2 (en) Implementing remapping command with indirection update for indirected storage
KR101374065B1 (en) Data Distinguish Method and Apparatus Using Algorithm for Chip-Level-Parallel Flash Memory
KR100623125B1 (en) Information storage device, information storage method, and program product for information storage processing
JP7131053B2 (en) Storage device, information processing program and information processing system
JP4791807B2 (en) Audio video data read / write method and system in personal computer
CN111752479A (en) Method and system for efficient storage of data
US20060126469A1 (en) Recording device, recording method, recording medium, and program
KR20100051665A (en) Hard disk sector/track remapping for transparent wear leveling
KR100367295B1 (en) An apparatus and method for writing a region code in a DVD driver
US20110022793A1 (en) Systems And Methods For Accessing Hard Disk Drives
US6195217B1 (en) Hard disk equipped with a memory for storing file allocation table (FAT) information
CN100390721C (en) Method and system for accessing video and audio material in computer device
KR19990019377A (en) Flash memory auxiliary storage device and method
KR20030061948A (en) : Apparatus storing information and method for controlling the File using its
JP4211563B2 (en) Playback / recording device
KR102003432B1 (en) Video managing apparatus and method of surveillance systems
JPH04111113A (en) Hard disk emulator

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: 20080528

Termination date: 20160304

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