CN100479044C - Method for reading the text information from the laser CD and writing it into the memory - Google Patents

Method for reading the text information from the laser CD and writing it into the memory Download PDF

Info

Publication number
CN100479044C
CN100479044C CNB2006100047056A CN200610004705A CN100479044C CN 100479044 C CN100479044 C CN 100479044C CN B2006100047056 A CNB2006100047056 A CN B2006100047056A CN 200610004705 A CN200610004705 A CN 200610004705A CN 100479044 C CN100479044 C CN 100479044C
Authority
CN
China
Prior art keywords
package
target
block
interim
present
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.)
Active
Application number
CNB2006100047056A
Other languages
Chinese (zh)
Other versions
CN101009118A (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.)
Via Technologies Inc
Original Assignee
Via Technologies 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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2006100047056A priority Critical patent/CN100479044C/en
Publication of CN101009118A publication Critical patent/CN101009118A/en
Application granted granted Critical
Publication of CN100479044C publication Critical patent/CN100479044C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

This invention relates to one method to read and store file materials from laser disc, which comprises the following steps: setting one aim pack and reading multiple packs from laser disc; writing these pack temporal signals into first memory to provide one aim temporary number; reading the aim number pack divide number and sequence number; determining aim number whether is for aim pack; if yes, then writing the number pack into second memory; if not, determining whether the block number is for maximum sequence number and if the number is known then summing the aim temporary to get the maximum number.

Description

Read the method for text data and write store from laser disc
Technical field
The present invention relates to laser disc, relate in particular to and a kind ofly read text data and the method for their write stories from laser disc.
Background technology
Various CDs, for example CD and DVD are welcome medium, are used to store data, particularly store music.At present, laser disc is the recording voice data not only, go back the recording text data.For example, with the voice data record song, write down bent name, author and the lyrics of these songs with text data.Laser disc has a Lead-In Area to be divided into the district a plurality of times.Record a group data in these times district, that is the duplicate of each time district this group of record data.Owing to sell this class laser disc, write down this group data and can reach eight blocks, the corresponding a kind of language of each block in the different country of many language.Each block has several packages, the corresponding again song of each package.In use, laser disc is placed in the player.Reading before this voice data, this player reads a complete copy product of this group data, that is reads each package of each block.Yet laser disc often has flaw, causes this player can not read the block or the package of this group data.Traditionally, when this thing happens, this player moves on to down the package of the correspondence of a group data from the present package of this group data at present.This can save time.In addition, if each block all has flaw, then this player can not be finished and read this group data, that is must abandon this laser disc.
Summary of the invention
The invention provides and a kind ofly read text data and the method for their write stories from laser disc, these laser disc duplicate record a group data, this group data comprise a plurality of blocks, each block comprises a plurality of packages, the designated block of each package number and a sequence number, this buffer circle comprises first memory and second memory.
The disclosed method of the present invention comprises a plurality of steps.At first, set a target package.Read a plurality of packages from this laser disc, specify in regular turn and give them interim number, and they are write first memory.Interim number an of target is provided.Read a package according to interim number of this target from this first memory.Read the block number and the sequence number of the package of interim number of designated this target.Whether the package of determining interim number of this target is this target package.If having the package of interim number of this target is this target package, then the package with interim number of this target is write second memory.If having the package of interim number of this target is not this target package, determine then whether the sequence number of maximum of present block is known.If the sequence number of the maximum of present block is known, then this target is added one interim number, add maximum sequence number, subtract the sequence number of package, and get back to the step that reads a package according to interim number of this target with interim number of this target.Make present increment of interim number increase, and get back to the step that reads a package according to interim number of this target; If this maximum sequence number is unknown, whether the package of then determining to have interim number of this target is away from the terminal point of block at present, wherein, if have the package of interim number of this target and be away from the terminal point of block at present, then skip follow-up three packages, if have the package of interim number of this target and be not away from the terminal point of block at present, then setting next interim number is to add one interim number at present.
Description of drawings
Fig. 1 is the present invention reads text data and write store from laser disc a method flow diagram.
Fig. 2 is the process flow diagram of the secondary program 4 in the method shown in Figure 1.
Fig. 3 is the process flow diagram of the secondary program 2 in the method shown in Figure 1.
Fig. 4 is the process flow diagram of the secondary program 3 in the method shown in Figure 1.
Embodiment
Laser disc recording voice data.In fact, laser disc is the recording voice data not only, can also the recording text data.If laser disc recording voice data and text data, then it is recorded in text data in its Lead-In Area.This Lead-In Area is divided into a plurality of (being generally several thousand) inferior district.There are some to be called as special-purpose district of text, a duplicate (a group) of special-purpose district's recording text data of each text in these times district.That is, special-purpose district of these texts record same cluster data.Each group comprises N1 block (maximum eight blocks), the corresponding a kind of language of each block.These blocks are numbered.Each block has N2 package.These packages are also numbered.The corresponding song of one or more package.The designated sequence number of each package and block number.For example, the package of designated sequence number " 0 " and block number " 0 " is first package of any group first block.Each package has N3 byte.
In use, laser disc is placed in the CD-ROM drive, and this CD-ROM drive connects a computing machine.This CD-ROM drive comprises a buffer circle, and this buffer circle comprises first memory and second memory.This first and second storer can be made into two independently chips, perhaps cuts out two memory zones in single integral chip.
Referring to figs. 1 to Fig. 4, this CD-ROM drive and/or this computing machine can adopt the method for preferred embodiment of the present invention and read text from a laser disc.
With reference to figure 1, at step S100, system number is set at " 0 " to a target block, after a while from this Lead-In Area read and be written to this first memory package block number therewith target block number compare.
At step S102, system is set at " 0 " with a target sequence number, after a while from this Lead-In Area read and write the sequence number of the package of this first memory will be therewith target sequence number compare.
At step S104, system is set at " 0 " to one interim number.
At step S108, system is from this Lead-In Area reading of data, and a package connects a package, and they are write this first memory.When each package is recorded in this first memory designated one interim number.For example, first package designated interim number " 0 ", second package designated interim number " 1 ", by that analogy.The package that interim number " 0 " is arranged may not be the package that sequence number " 0 " and block number " 0 " are arranged.At this moment, unknown N1 of system and N2.
At step S110, system determines whether inspected all packages in this first memory.If "Yes", then system enters step S104.Therefore, upgrade this first memory.That is, package is removed from this first memory, and other package is write this first memory.If "No", then system enters step S112.
At step S112, system reads a package (" package at present ") from this first memory.Then, system enters step S114.
At step S114, system determines whether present package is the text package, and whether way is that all bytes of determining it add up is " 0 ".If "Yes", then system enters step S118.If "No", then system enters step S134.
With reference to figure 2, at step S134, system prepares data are sent to this computing machine from this second memory.Then, system stops.
At step S118, system determines whether present package is correct, and way is to determine whether crc value is correct.If "Yes", then system enters step S120, if "No", then system enters step S121.
At step S121, interim number of the next target of default, way is to add one interim up till now number.Then, step S110 gets back in system.So next package of system handles.
At step S120, since at present package is correct, system reads package form, sequence number and the block number of present package.
At step S122, system determines that whether the block number of present package is this target block number.If "Yes", then system enters step S124.If "No", then system enters step S136.
With reference to figure 3, at step S136, system determines whether this target block that should stop search.For this purpose, use a counter, system enters the number of times of step S136 with accumulative total, and sets a limit.Reach this limit if system enters the number of times of step S136, then determine to stop search this target block.If "Yes", system enters step S134.If "No", then system enters step S138.
At step S138, system determines whether present package is the terminal point of present block.If "Yes", then system enters step S140.If "No", then system enters step S142.
At step S140, system is recorded as maximum sequence number to the sequence number of present package, that is N2.Then, step S110 gets back in system.
At step S142, system determines whether the sequence number of present package is the maximum sequence number N2 of known present block.If "Yes", then system enters step S144.If "No", then system enters step S146.
At step S144, all the other packages at present block are skipped by system.
At step S146, system determines present package whether away from the terminal point of block at present, and way is that the package form of package is at present compared with a predetermined value, because of last three packages of each block belong to a predetermined package form.If "Yes", then system enters step S148.If "No", then system enters step S149.
At step S149, next interim number of default, way is to add one interim up till now number.Then, step S110 gets back in system.
At step S148, follow-up three packages are skipped by system.Then, step S110 gets back in system.
At step S124, whether the sequence number that system determines present package this target sequence number.If "Yes", then system enters step S126.If "No", then system enters step S150.
With reference to figure 4, at step S150, system's this target package that determines whether to stop search.If "Yes", system enters step S134.If "No", then system enters step S152.For this purpose, use a counter, system enters the number of times of step S150 with accumulative total, and sets a limit.Reach this limit if system enters the number of times of step S150, then determine to stop search this target block.
At step S152, whether at present system determines the present package terminal point of block.If "Yes", then system enters step S154.If "No", then system enters step S156.
At step S154, system is recorded as maximum sequence number to the sequence number of present package, that is N2.Then, step S110 gets back in system.
At step S156, system determines whether the sequence number of present package is the maximum sequence number N2 of known present block.If "Yes", then system enters step S162.If "No", then system enters step S164.
At step S162, all the other packages at present block are skipped by system.
At step S164, system determines present package whether away from the terminal point of block at present, and way is that the package form of package is at present compared with a predetermined value, because of last three packages of each block belong to a predetermined package form.If "Yes", then system enters step S166.If "No", then system enters step S167.
At step S167, next interim number of default, way is to add one interim up till now number.Then, step S110 gets back in system.
At step S166, follow-up three packages are skipped by system.Then, step S110 gets back in system.
At step S126, whether at present system determines the present package terminal point of block, and way is to check the package form of present package, because last package of each block belongs to a predetermined package form.If "Yes", then system enters step S128.If "No", then system enters step S168.
At step S168, the next target sequence number of default, way is to add sequence number up till now to one.Then, system enters step S132.
At step S128, system is recorded as the present sequence number of present block the maximum sequence number N2 of present block.
At step S130, the next target block of default number, way are to add up till now block number to one.
At step S131, system is set at target sequence number " 0 ".
At step S132, system writes this second memory to present package.At second memory, this first package has sequence number " 0 " and block number " 0 ", and second package has sequence number " 1 " and block number " 0 ", by that analogy.When this second memory has been expired, system passes to this computing machine to all packages for further handling from this second memory.

Claims (8)

1. method that reads text data and write store from laser disc, these laser disc duplicate record a group data, this group data comprise a plurality of blocks, each block comprises a plurality of packages, the designated block of each package number and a sequence number, described laser disc is placed in the CD-ROM drive, and this CD-ROM drive comprises a buffer circle, this buffer circle comprises first memory and second memory, and this method comprises the steps:
Set a target package;
Read a plurality of packages from this laser disc, specify in regular turn and give them interim number, and they are write this first memory;
Interim number an of target is provided;
Read a package according to interim number of this target from this first memory;
Whether the package of determining to have interim number of this target is correct, wherein, is correct if having the package of interim number of this target, then carries out next step;
If it is incorrect to have the package of interim number of this target, this target is added one interim number, and carry out this reads a package according to interim number of this target step;
Read the block number and the sequence number of the package of interim number of designated this target;
Whether the package of determining to have interim number of this target is this target package;
If having the package of interim number of this target is this target package, then the package with interim number of this target is write this second memory;
If having the package of interim number of this target is not this target package, whether the sequence number of then determining present package is the sequence number of the maximum of known present block;
If at present the sequence number of package is the sequence number of the maximum of known present block, then skips at all the other packages of block at present, and get back to the step that reads a package according to interim number of this target from this first memory;
If at present the sequence number of package is not the sequence number of the maximum of known present block, making increases an increment present interim number, and gets back to the step that reads a package according to interim number of this target from this first memory;
If this maximum sequence number is unknown, whether the package of then determining to have interim number of this target away from the terminal point of block at present, wherein,
If have the package of interim number of this target and be away from the terminal point of block at present, then skip follow-up three packages, not that then setting next interim number is to add one interim number at present away from the terminal point of block at present if having the package of interim number of this target.
2. method according to claim 1, it also comprises the steps:
Whether known at present whether the package of determining to have interim number of this target the terminal point of block, wherein, is not the terminal point of present block if having the package of interim number of this target, then determine maximum sequence number the step of present block; And
If having the package of interim number of this target is the terminal point of present block, then the sequence number of record with package of interim number of this target is used as the maximum sequence number of present block.
3. as the method as described in the claim 2, it also comprises the steps:
Whether at present this target package that determines whether to stop search wherein, if do not stop search this target package, then carries out this package of determining to have interim number of this target terminal point of block; And
If stop search this target package, then transmit data from this second memory.
4. as the method as described in the claim 3, wherein, the step of this this target package that determines whether to stop search comprises the steps:
A counter is provided, and the order label that is judged as its appointment with calculating is not the quantity of the package of this target block number;
Set a limit; And
Determine whether this quantity reaches this limit.
5. method according to claim 1, wherein, this step of setting this target package comprises the steps:
Set a target block number; And
Set a target sequence number.
6. as the method as described in the claim 5, wherein, this package of determining to have interim number of this target whether step of this target package comprises the steps:
Whether the block of determining to have the package of interim number of this target number equals this target block number; And
Whether the sequence number of determining to have the package of interim number of this target equals this target sequence number.
7. method according to claim 1, it also comprises the aftermentioned step: determine whether inspected all packages in this first memory, wherein, if inspected all packages in first memory, then carry out reading a plurality of packages, specify in regular turn and give them interim number, and they are write the step of this first memory from this laser disc, if do not check all packages in first memory, then carry out this reads a package from this first memory according to interim number of this target step.
8. method according to claim 1, it also comprises the steps:
At present whether the package of determining to have interim number of this target the terminal point of block;
If having the package of interim number of this target is the terminal point of present block, then the sequence number of record with package of interim number of this target is used as the maximum sequence number of present block;
If having the package of interim number of this target is not the terminal point of present block, this target is added one interim number, and get back to the step that reads a package according to interim number of this target.
CNB2006100047056A 2006-01-27 2006-01-27 Method for reading the text information from the laser CD and writing it into the memory Active CN100479044C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100047056A CN100479044C (en) 2006-01-27 2006-01-27 Method for reading the text information from the laser CD and writing it into the memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100047056A CN100479044C (en) 2006-01-27 2006-01-27 Method for reading the text information from the laser CD and writing it into the memory

Publications (2)

Publication Number Publication Date
CN101009118A CN101009118A (en) 2007-08-01
CN100479044C true CN100479044C (en) 2009-04-15

Family

ID=38697500

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100047056A Active CN100479044C (en) 2006-01-27 2006-01-27 Method for reading the text information from the laser CD and writing it into the memory

Country Status (1)

Country Link
CN (1) CN100479044C (en)

Also Published As

Publication number Publication date
CN101009118A (en) 2007-08-01

Similar Documents

Publication Publication Date Title
US6643238B2 (en) Method of discriminating disk type and reproducing apparatus thereof
CN100557694C (en) Copy protection for optical discs or the improvement relevant with copy protection for optical discs
EP0845780A1 (en) Information recording/reproducing device and information recording/reproducing medium
CN100373471C (en) Information storage medium and method and system for recording data from the same
CN103631589B (en) Method and device for recognizing application
US4932014A (en) Data recording and reading system
EP1343069B1 (en) System and method for tracking Information Control Blocks (ICB's) in UDF file systems using streams
CN100545917C (en) The recording medium and the heavy method and apparatus of formatted record medium
CN100479044C (en) Method for reading the text information from the laser CD and writing it into the memory
CN100466087C (en) Method and apparatus for cd format detection
US7751292B2 (en) Control device, control method, recording device and recording method for recording real-time and non-real time data on recording medium
RU2256240C2 (en) Optical disk and method for recording data onto said disk and/or reproduction of data from said disk
US8000191B2 (en) Method for collecting text from musical disc
US7661021B2 (en) Method for defect management in rewritable optical storage media
CN106598769A (en) Method and device for checking EMMC burned files
CN101346769A (en) Device for and method of retrieval of a data file
CN100487806C (en) Method and apparatus for searching recordable area, and method and apparatus for testing recorded area arrangement
CN101399067B (en) Recovery method for write-in error of CD-disc
CN100498965C (en) Recording medium reproduction device
CN106033454B (en) Formatting method, processing method and device of virtual file system
US20100138429A1 (en) Method for building a file information table
JP7087667B2 (en) Storage systems, controllers, and control programs
CN1830034B (en) Method for fast reconstruction of content information
US7376342B2 (en) Method of determining disc type for disc burners
CN100593817C (en) Optical storage media recorded with audio-video staggered formation files 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