CN100411044C - Data management method for processing decoding error of read back data of optical disk and optical disk drive - Google Patents
Data management method for processing decoding error of read back data of optical disk and optical disk drive Download PDFInfo
- Publication number
- CN100411044C CN100411044C CNB2005100770816A CN200510077081A CN100411044C CN 100411044 C CN100411044 C CN 100411044C CN B2005100770816 A CNB2005100770816 A CN B2005100770816A CN 200510077081 A CN200510077081 A CN 200510077081A CN 100411044 C CN100411044 C CN 100411044C
- Authority
- CN
- China
- Prior art keywords
- data
- decoding
- pointer
- block
- storage device
- 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
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种处理解码错误(decoding error)的方法与装置,尤指一种处理光盘的读回数据发生解码错误的数据管理方法与光驱。The invention relates to a method and device for dealing with decoding errors, in particular to a data management method and an optical drive for dealing with decoding errors in read-back data of an optical disc.
背景技术 Background technique
传统光盘的读取,是以一个数据区段(sector)为解码单位,所以当产生解码错误而必须要重新读取光盘上的未解码数据时,只需重新读取发生错误的数据区段,并且重新解码所述数据区段即可,这种方式不论是利用硬件或是软件来实施都相当地单纯。但是在数字多功能光盘(digital versatile disc,DVD)或者是下一代的蓝光光盘(Blu-ray disc,BD)或高解析光盘(High-definition DVD,HD-DVD)时,数据并非以一个数据区段为解码单位,而是以数个数据区段集合起来所组成的一个数据区块(block)为解码单位,故任一数据区段发生解码错误而需要重新读取光盘上的未解码数据时,会比传统光盘来的复杂。如业界所公知,对于数字多功能光盘而言,其是以16个数据区段组成一个数据区块,其中所述数据区块即为公知的ECC区块;对于蓝光光盘而言,其是以32个数据区段组成一个数据区块,其中所述数据区块即为公知丛集(cluster);至于高解析光盘,其则是以32个数据区段组成一个数据区块,其中所述数据区块即为公知数据段(data segment)。The reading of a traditional optical disc is based on a data sector (sector) as the decoding unit, so when a decoding error occurs and the undecoded data on the optical disc must be re-read, it is only necessary to re-read the data sector where the error occurred. And it only needs to re-decode the data segment, which is quite simple no matter whether it is implemented by hardware or software. But in digital versatile disc (digital versatile disc, DVD) or the next generation of Blu-ray disc (Blu-ray disc, BD) or high-definition disc (High-definition DVD, HD-DVD), the data is not in a data area A segment is the decoding unit, but a data block (block) composed of several data segments is used as the decoding unit. Therefore, when a decoding error occurs in any data segment and the undecoded data on the disc needs to be read again , will be more complicated than traditional CDs. As is well known in the industry, for a digital versatile disc, a data block is composed of 16 data segments, wherein the data block is a well-known ECC block; for a Blu-ray disc, it is formed by 32 data segments form a data block, wherein the data block is a known cluster (cluster); as for the high-resolution optical disc, it is composed of 32 data segments to form a data block, wherein the data area A block is known as a data segment.
请参阅图1,图1为现有光驱100的示意图。光驱100可处理一光盘102的读回数据所发生的解码错误(decoding error),其包含有一储存装置110(例如动态随机存取内存)、一控制电路120以及一解码电路130。储存装置110作为一环形缓冲器(ring buffer)来储存由光盘102所读取的读回数据,如图1所示,储存装置110的储存空间可视为划分成多个数据区块(block)BK1~BKn,其中每一个数据区块包含有多个数据区段(sector)SC1~SCm。对数字多功能光盘来说,m值为16(亦即每一ECC区块包含有16个区段),而对蓝光光盘和高规格光盘来说,m值为32(亦即每一丛集与每一数据段均包含有32个区段),如业界所公知,一般而言,写入盘片上的数据会先经过交错化(interleaving)的处理,因此,在将由盘片所读取的数据存入储存装置110之前,会先经过去交错化(de-interleaving)的处理,如此一来,同一数据区段在储存装置110中为连续地存放,此外,也可采用另一种作法而将自盘片上所读取的数据直接存入储存装置110,如此一来,储存在储存装置110的是尚未经过去交错化处理的数据,因此,解码电路130便需具有去交错化的功能,亦即解码电路130本身必须包含一去交错化电路,以便后续的解码动作可顺利执行。另外,n值则取决于储存装置110的储存容量,因此,若储存容量愈大,则储存装置110所能纪录的数据区块的数量亦越大(亦即n值愈大)。控制电路120耦接于储存装置110,且控制电路120包含有一缓存指针(bufferingpointer)BP、一解码指针(decoding pointer)DP、以及一读取指针(reading pointer)RP,用来控制储存装置110内读回数据的存取,换句话说,控制电路120可控制一读写头(未显示)来自光盘102读取数据,并将读回数据储存至储存装置110,另外,控制电路120亦可控制储存装置110将其内部已完成解码的读回数据传递至主机104。解码电路130耦接于控制电路120与储存装置110,用来解码储存装置110中所储存的读回数据,此外,在解码时,解码电路130以数据区段为单位来进行解码,而解码过程还包含公知错误更正(error correction)的动作,若解码电路130在解码一数据区段时产生解码错误,则解码电路130会输出一信号S来告知处理器140,处理器140会进一步控制电路120决定如何调整缓存指针BP、解码指针DP以及读取指针RP。以下简述储存装置110内读回数据和控制电路120内所有指针BP、DP、RP的功能及关连性。Please refer to FIG. 1 , which is a schematic diagram of a conventional
请参阅图2,图2为图1所示的缓存指针BP、解码指针DP以及读取指针RP指向储存装置110中相对应地址的示意图。读回数据Data_1包含有一未解码读回数据Data_2、一解码中读回数据Data_3(即为目前正在解码中的一特定数据区段)以及一己解码读回数据Data_4。缓存指针BP是用来指示(indicate)从光盘102上读取的一未解码读回数据欲写入至储存装置110的起始地址,亦即所述未解码读回数据紧接着未解码读回数据Data_2而写入至储存装置110中;解码指针DP则是用来指示解码中读回数据Data_3在储存装置110上的起始地址(亦即一特定数据区段的起始地址);而读取指针RP则用来指示目前等待着被主机104(例如一个人计算机)读取的己解码读回数据的地址,即为己解码读回数据Data_4在储存装置110中的起始地址。此外,在正常操作下(即未发生解码错误),若是主机104的数据读取速度快于解码电路130的数据解码速度,则可能在解码电路130仍解码读回数据Data_3时,己解码读回数据Data_4已全部被读取至主机104,故读回数据Data_1仅会包含有未解码读回数据Data_2和解码中读回数据Data_3,此时读取指针RP会停留在解码中读回数据Data_3的前一数据区段的结束地址,而当读回数据Data_3已成功地完成解码时,解码指针DP便会移向读回数据Data_3的下一数据区段的起始地址,以及读取指针RP即会指向读回数据Data_3的起始地址。Please refer to FIG. 2 . FIG. 2 is a diagram illustrating that the buffer pointer BP, the decode pointer DP, and the read pointer RP shown in FIG. 1 point to corresponding addresses in the
如业界所公知,光驱100会在三种状况下处理光盘102的读回数据发生解码错误的运作,第一种状况为:在发生解码错误时,解码指针DP所指示的解码中读回数据Data_3(对应一数据区段)在储存装置110上的起始地址恰好为解码中读回数据Data_3所对应的数据区块的起始位置;第二种状况为:在发生解码错误时,解码指针DP与读取指针RP并未对应同一数据区块,且解码指针DP所指示的解码中读回数据Data_3(对应一数据区段)在储存装置110上的起始地址并非为解码中读回数据Data_3所对应的数据区块的起始位置;以及第三种状况为:在发生解码错误时,解码指针DP与读取指针RP对应同一数据区块,且解码指针DP所指示的解码中读回数据Data_3(对应一数据区段)在储存装置110上的起始地址并非为解码中读回数据Data_3所对应的数据区块的起始位置。As is well known in the industry, the
请同时参阅图1和图3,图3为图1所示的光驱100应用公知数据管理方法来处理解码错误的第一实施例的示意图。在时间T3时,缓存指针BP指示从光盘102上读取的一未解码读回数据欲写入至储存装置110的起始地址为数据区段SCy(y的数值小于或等于m的数值)的下一数据区段的起始地址,解码指针DP则指示解码中的数据区段SC1的起始地址(请注意,数据区段SC1为数据区块BKi+3的第一个数据区段),读取指针RP是指示目前等待着被主机104读取的己解码读回数据的地址,亦即数据区段SCx(x的数值小于或等于m的数值)的起始地址。当解码电路130对数据区段SC1的信息进行解码而发生解码错误时,解码电路130会输出信号S来告知控制电路120,由于数据区段SC1为数据区块BKi+3的第一个数据区段,因此,在时间T′3时,控制电路120仅需更新缓存指针BP,以使其指向数据区段SC1的起始地址,因此,光驱100便会依据更新后的缓存指针BP来重新将从光盘102上数据区块BKi+3起(例如数据区段SC1至数据区段SCy)的相对应未解码读回数据加载至储存装置110中。如上所述,针对第一种状况,光驱100必须调整一个指针(亦即缓存指针BP)。Please refer to FIG. 1 and FIG. 3 at the same time. FIG. 3 is a schematic diagram of a first embodiment in which the
请同时参阅图1和图4,图4为图1所示的光驱100应用公知数据管理方法来处理解码错误的第二实施例的示意图。在时间T4时,缓存指针BP是指示从光盘102上读取的一未解码读回数据欲写入至储存装置110的起始地址为数据区段SCy(y的数值小于或等于m的数值)的下一数据区段的起始地址,解码指针DP则指示解码中的数据区段SCz(z的数值小于或等于m的数值)的起始地址(请注意,数据区段SCz并非为数据区块BKi+3的第一个数据区段),读取指针RP指示目前等待着被主机104读取的己解码读回数据的地址,亦即数据区段SCx(x的数值小于或等于m的数值)的起始地址。当解码电路130对数据区段SCz的信息进行解码而发生解码错误时,解码电路130会输出信号S来告知控制电路120,由于数据区段SCz并非为数据区块BKi+3的第一个数据区段,因此,在时间T′4时,控制电路120需一并更新缓存指针BP与解码指针DP,以使其指向数据区块BKi+3的起始地址,因此,光驱100便会依据更新后的缓存指针BP来重新将从光盘102上数据区块BKi+3起的相对应未解码读回数据加载至储存装置110中,另外,光驱100还会依据更新后的解码指针DP来重新对数据区块BKi+3起的后续数据区段进行解码操作。如上所述,针对第二种状况,光驱100必须调整二个指针(亦即缓存指针BP与解码指针DP)。Please refer to FIG. 1 and FIG. 4 at the same time. FIG. 4 is a schematic diagram of a second embodiment in which the
请同时参阅图1和图5,图5为图1所示的光驱100应用公知数据管理方法来处理解码错误的第三实施例的示意图。在时间T5时,缓存指针BP指示从光盘102上读取的一未解码读回数据欲写入至储存装置110的起始地址为数据区段SCy(y的数值小于或等于m的数值)的下一数据区段的起始地址,解码指针DP则指示解码中的数据区段SCz(z的数值小于或等于m的数值)的起始地址(数据区段SCz并非数据区块BKi+3的第一个数据区段);读取指针RP指示目前等待着被主机104读取的己解码读回数据的地址,亦即数据区段SCj(j的数值小于或等于m的数值)的起始地址。如图5所示,数据区段SCj与数据区段SCz均位于同一数据区块BKi+3中。当解码电路130对数据区段SCz的信息进行解码而发生解码错误时,解码电路130会输出信号S来告知控制电路120,所以,在时间T′5时,控制电路120需一并更新缓存指针BP、解码指针DP(读取指针RP所指向的地址并不会改变),以使其均指向数据区块BKi+3的起始地址,因此,光驱100便会依据更新后的缓存指针BP来重新自光盘102上将数据区块BKi+3起的相对应未解码读回数据加载至储存装置110中,以及依据更新后的解码指针DP来重新对数据区块BKi+3起的后续数据区段进行解码操作。另一方面,由于读取指针RP所对应的地址是超越解码指针DP所对应的地址,因此光驱100会暂停将储存装置110中的已解码读回数据传递至主机104,直到解码指针DP所对应的地址超越读取指针RP为止。如上所述,针对第三种状况,光驱100必须调整二个指针(亦即缓存指针BP与解码指针DP),并且还需要记住已被主机读走的数据,防止被主机重复读取。Please refer to FIG. 1 and FIG. 5 at the same time. FIG. 5 is a schematic diagram of a third embodiment in which the
如图3至图5所示,当数据区块BKi+3中一数据区段的解码产生错误时(上述第一、第二、第三种状况),数据区块BKi+3会重新进行解码的操作,若数据区块BKi+3一直无法顺利地被解码,则现有光驱100会放弃对数据区块BKi+3中未完成解码的数据区段的解码操作,而当主机104要求时,将数据区块BKi+3中已完成解码的数据区段的信息传递至主机104,若主机104要求传递数据区块BKi+3中未完成解码的数据区段的信息时,则响应处理解码错误的信息给主机104。As shown in Figures 3 to 5, when an error occurs in the decoding of a data segment in the data block BK i+3 (the above-mentioned first, second, and third situations), the data block BK i+3 will be restarted For the decoding operation, if the data block BK i+3 cannot be decoded smoothly, the existing
综上所述,由于解码指针DP并不固定指向某一数据区块的起始或是结束地址,而是可以指向所述数据区块内的任意一数据区段,因此便导致一旦发生解码错误时,现有处理解码错误的数据管理方法需要针对不同的情况来对缓存指针BP与解码指针DP进行适当的调整,由于判断机制繁复,最后便会造成整体光驱100的复杂度增高,且光驱100处理解码错误的效能也会受到一定的影响而不显著。To sum up, since the decoding pointer DP does not fixedly point to the start or end address of a data block, but can point to any data segment in the data block, once a decoding error occurs At this time, the existing data management method for dealing with decoding errors needs to properly adjust the buffer pointer BP and the decoding pointer DP according to different situations. Due to the complicated judgment mechanism, the complexity of the overall
发明内容 Contents of the invention
本发明的目的之一在于提供一种处理一光盘的读回数据发生解码错误的数据管理方法与光驱,以解决上述问题。One of the objectives of the present invention is to provide a data management method and an optical drive for dealing with decoding errors in the read-back data of an optical disc, so as to solve the above-mentioned problems.
本发明揭露一种处理一光盘的读回数据发生解码错误的数据管理方法,所述读回数据储存于一光驱中一储存装置内,所述读回数据包含有多个数据区块,每一数据区块包含有多个数据区段。所述数据管理方法包含有:(a)提供一缓存指针以及一解码指针;(b)使用所述缓存指针来指示自所述光盘所读取的一未解码读回数据写入至所述储存装置的地址;(c)使用所述解码指针来指示所述读回数据内解码中的一数据区块的起始地址,其中在所述数据区块中所有数据区段皆被成功地解码前,所述解码指针持续地指向所述数据区块的起始地址;以及(d)当解码所述数据区块中一特定数据区段而发生解码错误时,更新所述缓存指针以指示所述未解码读回数据写入至所述储存装置的地址对应至所述解码指针所指示的地址,以重新从所述光盘读取对应所述数据区块的未解码读回数据。The invention discloses a data management method for dealing with decoding errors in the read-back data of an optical disc. The read-back data is stored in a storage device in an optical drive, and the read-back data includes a plurality of data blocks, each of which is A data block contains multiple data segments. The data management method includes: (a) providing a buffer pointer and a decoding pointer; (b) using the buffer pointer to indicate that an undecoded readback data read from the optical disc is written into the storage address of the device; (c) using the decode pointer to indicate the start address of a data block being decoded within the readback data before all data sectors in the data block are successfully decoded , the decoding pointer continuously points to the start address of the data block; and (d) when decoding a specific data segment in the data block and a decoding error occurs, updating the cache pointer to indicate the The address where the undecoded readback data is written to the storage device corresponds to the address indicated by the decoding pointer, so as to reread the undecoded readback data corresponding to the data block from the optical disc.
本发明还包括:(e)当步骤(d)重复执行一预定次数之后,仅将所述数据区块内已成功解码的数据传递至所述主机。The present invention further includes: (e) after step (d) is repeatedly executed for a predetermined number of times, only the successfully decoded data in the data block is transmitted to the host.
步骤(a)还包括提供一实际解码指针,所述数据管理方法还包括使用所述实际解码指针来指示所述数据区块内一解码中数据区段的起始地址,以及步骤(e)依据所述解码指针与所述实际解码指针将已成功解码的数据传递至所述主机。Step (a) further includes providing an actual decoding pointer, the data management method further includes using the actual decoding pointer to indicate a start address of a data sector being decoded in the data block, and step (e) according to The decode pointer and the actual decode pointer deliver successfully decoded data to the host.
所述储存装置为一动态随机存取内存DRAM。The storage device is a dynamic random access memory DRAM.
所述光盘为一数字多功能光盘DVD、一高解析光盘HD-DVD或者一蓝光光盘BD。The optical disc is a digital versatile disc DVD, a high resolution disc HD-DVD or a Blu-ray disc BD.
此外,本发明另揭露一种光驱,其可处理一光盘的读回数据所发生的解码错误,所述光驱包含有:一储存装置,用来储存所述读回数据,所述读回数据包含有多个数据区块以及所述数据区块包含有多个数据区段;一控制电路,耦接于所述储存装置,用来控制所述储存装置的数据存取;以及一解码电路,耦接于控制电路与所述储存装置。所述控制电路包含有:一缓存指针,用来指示从所述光盘所读取的一未解码读回数据写入至所述储存装置的地址;以及一解码指针,用来指示所述读回数据内解码中的一数据区块的起始地址,其中在所述数据区块中所有数据区段被成功地解码前,所述解码指针持续地指示所述数据区块的起始地址;当所述解码电路解码所述数据区块中一特定数据区段而发生解码错误时,所述控制电路会更新所述缓存指针以指示所述未解码读回数据写入至所述储存装置的地址对应至所述解码指针所指示的地址,以重新自所述光盘读取对应所述数据区块的未解码读回数据。In addition, the present invention further discloses an optical drive, which can deal with decoding errors that occur in the read-back data of an optical disc. The optical drive includes: a storage device for storing the read-back data, and the read-back data includes There are a plurality of data blocks and the data blocks include a plurality of data sectors; a control circuit, coupled to the storage device, for controlling data access of the storage device; and a decoding circuit, coupled Connected to the control circuit and the storage device. The control circuit includes: a cache pointer, used to indicate an address for writing an undecoded readback data read from the optical disc to the storage device; and a decode pointer, used to indicate the readback a starting address of a data block in decoding within the data, wherein the decoding pointer continuously indicates the starting address of the data block until all data sectors in the data block are successfully decoded; when When the decoding circuit decodes a specific data segment in the data block and a decoding error occurs, the control circuit updates the cache pointer to indicate the address where the undecoded readback data is written to the storage device Corresponding to the address indicated by the decoding pointer, to re-read undecoded readback data corresponding to the data block from the optical disc.
当所述控制电路重复更新所述缓存指针达一预定次数之后,所述控制电路仅将所述数据区块内已成功解码的数据传递至所述主机。After the control circuit repeatedly updates the cache pointer for a predetermined number of times, the control circuit only transmits successfully decoded data in the data block to the host.
所述控制电路另包含有一实际解码指针,用来指示所述数据区块内一解码中数据区段的起始地址,以及所述控制电路依据所述解码指针与所述实际解码指针将已成功解码的数据传递至所述主机。The control circuit further includes an actual decoding pointer, which is used to indicate the start address of a data segment being decoded in the data block, and the control circuit will have successfully decoded according to the decoding pointer and the actual decoding pointer. The decoded data is passed to the host.
所述储存装置为一动态随机存取内存DRAM。The storage device is a dynamic random access memory DRAM.
所述光盘为一数字多功能光盘、一高解析光盘或者一蓝光光盘。The disc is a digital versatile disc, a high-resolution disc or a Blu-ray disc.
本发明数据管理方法与应用所述数据管理方法的光驱另提供一解码指针来取代现有解码指针的功能,而在一解码中数据区块内所有的数据区段都被成功地解码之前,本发明所揭露的解码指针会一直持续地指示所述解码中数据区块的起始地址而不会有所改变,故不会有现有技术一般地在发生解码错误时需要依据不同的情况来做不同的处理。总而言之,本发明数据管理方法与应用所述数据管理方法的光驱可降低整体系统的复杂度,且光驱处理解码错误的效能也会大幅地提升。The data management method of the present invention and the optical drive using the data management method also provide a decoding pointer to replace the function of the existing decoding pointer, and before all the data sectors in a decoding data block are successfully decoded, the present invention The decoding pointer disclosed by the invention will continuously indicate the start address of the data block being decoded without changing, so there is no need to do it according to different situations when a decoding error occurs in the prior art treated differently. All in all, the data management method of the present invention and the optical drive using the data management method can reduce the complexity of the overall system, and the performance of the optical drive in dealing with decoding errors will also be greatly improved.
附图说明 Description of drawings
图1为现有光驱的示意图。FIG. 1 is a schematic diagram of an existing optical drive.
图2为图1所示的缓存指针、解码指针以及读取指针指向储存装置中相对应地址的示意图。FIG. 2 is a schematic diagram of the cache pointer, the decode pointer and the read pointer shown in FIG. 1 pointing to corresponding addresses in the storage device.
图3为图1所示的光驱应用现有数据管理方法来处理解码错误的第一实施例的示意图。FIG. 3 is a schematic diagram of a first embodiment in which the optical drive shown in FIG. 1 applies a conventional data management method to handle decoding errors.
图4为图1所示的光驱应用现有数据管理方法来处理解码错误的第二实施例的示意图。FIG. 4 is a schematic diagram of a second embodiment in which the optical drive shown in FIG. 1 applies a conventional data management method to handle decoding errors.
图5为图1所示的光驱应用现有数据管理方法来处理解码错误的第三实施例的示意图。FIG. 5 is a schematic diagram of a third embodiment in which the optical drive shown in FIG. 1 applies an existing data management method to handle decoding errors.
图6为本发明光驱的一实施例的示意图。FIG. 6 is a schematic diagram of an embodiment of the optical drive of the present invention.
图7为图6所示的光驱应用本发明数据管理方法来处理解码错误的一实施例的示意图。FIG. 7 is a schematic diagram of an embodiment in which the optical drive shown in FIG. 6 applies the data management method of the present invention to handle decoding errors.
光驱 100、600
光盘 102、602
储存装置 110、610
控制电路 120、620
解码电路 130、630Decoding
主机 104、604Host 104, 604
具体实施方式 Detailed ways
请参阅图6,图6为本发明光驱600的一实施例的示意图。光驱600的功能与操作类似于图1所示的光驱100,其同样地可处理一光盘(例如DVD)602的读回数据所发生的解码错误(decoding error)。本实施例中,光驱600包含有一储存装置610(例如动态随机存取内存)、一控制电路620以及一解码电路630。本实施例中,储存装置610是作为一环形缓冲器(ring buffer)来储存由光盘602所读取的读回数据,然而,请注意,环形缓冲器仅为储存装置610的一种实施例,对于本发明而言,储存装置610并未局限于环形缓冲器的结构。如图6所示,储存装置610的储存空间可视为划分成多个数据区块BK1~BKn,其中每一个数据区块包含有多个数据区段SC1~SCm。对数字多功能光盘来说,m值为16(亦即每一ECC区块包含有16个区段),而对蓝光光盘和高规格光盘来说,m值为32(亦即每一丛集与每一数据段均包含有32个区段),另外,n值则取决于储存装置610的储存容量,因此,若储存容量愈大,则储存装置610所能纪录的数据区块的数量亦越大(亦即n值愈大)。本发明光驱600与现有光驱100的主要不同点在于控制电路620除了包含有现有的缓存指针BP、解码指针DP以及读取指针RP,其另设置有一实际解码指针(actual decoding pointer)ADP,此外,控制电路620还提供一种新的控制机制来控制解码指针DP,其相关操作于后详述。解码电路630耦接于控制电路620与储存装置610,用来解码储存装置610中所储存的读回数据,此外,若解码电路630在解码一数据区段时产生解码错误,则解码电路630会输出一信号S来告知控制电路620,而控制电路620便会进一步地决定如何调整缓存指针BP、实际解码指针ADP以及读取指针RP。Please refer to FIG. 6 . FIG. 6 is a schematic diagram of an embodiment of an
缓存指针BP和读取指针RP的功能与运作方式和现有技术相同,在此不另赘述,而对于解码指针DP来说,控制电路620是控制其指示储存装置610中正在解码的数据区块的起始地址,请注意,不同于现有技术的是,在所述解码中的数据区块内所有的数据区段(SC1~SCm)都被成功地解码之前,解码指针DP会一直持续地指示所述解码中的数据区块的起始地址而不会有所改变。此外,控制电路620另使用实际解码指针ADP来指示在所述解码中的数据区块内目前正进行解码的数据区段的起始位置,其作用则和现有解码指针DP相同,换句话说,由于解码指针DP的运作在本实施例中不同于其原本操作,故新增的实际解码指针ADP便用来取代原先解码指针DP的功能。请注意,如业界所公知,在正常操作(未发生解码错误)下,解码指针DP以及读取指针RP所对应的地址的移动并不会超越缓存指针BP所对应的地址,以及读取指针RP所对应的地址的移动并不会超越解码指针DP所对应的地址。The functions and operation methods of the buffer pointer BP and the read pointer RP are the same as those of the prior art, and will not be repeated here. For the decoding pointer DP, the
请同时参阅图6和图7,图7为图6所示的光驱600应用本发明数据管理方法来处理解码错误的一实施例的示意图。在时间T71时,缓存指针BP是指示从光盘602上读取的一未解码读回数据欲写入至储存装置610的起始地址为数据区段SCc(c的数值小于或等于m的数值)的下一数据区段的起始地址,解码指针DP则指示解码中的数据区块BKi+2的起始地址,实际解码指针ADP是指示解码中的数据区段SCb(b的数值小于或等于m的数值)的起始地址,而读取指针RP是指示目前等待着被主机604读取的己解码读回数据的地址,亦即数据区段SCa(a的数值小于或等于m的数值)的起始地址。当解码电路630对数据区段SCb的信息进行解码而发生解码错误时,解码电路630会输出信号S来告知控制电路620,因此,在时间T72时,控制电路620仅需更新缓存指针BP与实际解码指针ADP,以使其均指向数据区块BKi+2的起始地址,因此,光驱600便会依据更新后的缓存指针BP来重新自光盘602上将数据区块BKi+2起的相对应未解码读回数据加载至储存装置610中,此外,光驱600另会依据更新后的实际解码指针ADP而自数据区块BKi+2中第一个数据区段SC1起开始进行解码的操作。由于数据区块BKi+2中所有的数据区段尚未成功地完成解码,所以,解码指针DP仍会持续地对应数据区块BKi+2的起始地址。Please refer to FIG. 6 and FIG. 7 at the same time. FIG. 7 is a schematic diagram of an embodiment in which the
在时间T73时,缓存指针BP是指示从光盘602上读取的一未解码读回数据欲写入至储存装置610的起始地址为数据区段SCe(e的数值小于或等于m的数值)的下一数据区段的起始地址,解码指针DP则继续指示数据区块BKi+2的起始地址,实际解码指针ADP则指示解码中的数据区段SCm(其为数据区块BKi+2的最后一个数据区段)的起始地址,而读取指针RP是指示目前等待着被主机604读取的己解码读回数据的地址,亦即数据区段SCd(d的数值小于或等于m的数值)的起始地址。当解码电路630成功地对数据区段SCm的信息进行解码后,表示数据区块BKi+2中所有的数据区段皆成功地完成解码,所以,在时间T74时,控制电路620便一并更新解码指针DP与实际解码指针ADP,以使其均指向数据区块BKi+3的起始地址,因此,光驱600便会依据更新后的实际解码指针ADP而自数据区块BKi+3中第一个数据区段SC1起开始进行解码的操作。如上所述,对于光驱600而言,当其在解码时发生解码错误,光驱600仅调整两个指针(亦即缓存指针BP与实际解码指针ADP)。At time T73 , the buffer pointer BP indicates that the start address of an undecoded read-back data read from the
本实施例中,若是某一解码中数据区块一直无法成功地完成解码的操作,则控制电路620可适当地调整读取指针RP、实际解码指针ADP与解码指针DP来直接放弃所述数据区块的所有信息而不将其传递至主机604,亦即即使所述数据区块中已有部分数据区段完成解码,对应所述部分数据区段的已解码读回数据仍会被舍弃。此外,若是某一解码中数据区块一直无法成功地完成解码的操作,则控制电路620也可依据实际解码指针ADP与解码指针DP来将所述数据区块中已可成功解码的部分数据区段的已解码读回数据传送给主机604。In this embodiment, if a data block in decoding cannot be successfully decoded, the
相对于现有技术,本发明数据管理方法与应用所述数据管理方法的光驱另提供一解码指针来取代现有解码指针的功能,而在一解码中数据区块内所有的数据区段都被成功地解码之前,本发明所揭露的解码指针会一直持续地指示所述解码中数据区块的起始地址而不会有所改变,故不会有现有技术一般地在发生解码错误时需要依据不同的情况来做不同的处理。总而言之,本发明数据管理方法与应用所述数据管理方法的光驱可降低整体系统的复杂度,且光驱处理解码错误的效能也会大幅地提升。Compared with the prior art, the data management method of the present invention and the optical drive using the data management method provide a decoding pointer to replace the function of the existing decoding pointer, and in a decoding process, all data segments in the data block are Before successful decoding, the decoding pointer disclosed in the present invention will continue to indicate the start address of the data block being decoded without changing, so there is no need for prior art when decoding errors occur. According to different situations to do different treatment. All in all, the data management method of the present invention and the optical drive using the data management method can reduce the complexity of the overall system, and the performance of the optical drive in dealing with decoding errors will also be greatly improved.
以上所述仅为本发明的较佳实施例,凡依据本发明所做的均等变化与修饰,皆应涵盖在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the present invention shall fall within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100770816A CN100411044C (en) | 2005-06-15 | 2005-06-15 | Data management method for processing decoding error of read back data of optical disk and optical disk drive |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100770816A CN100411044C (en) | 2005-06-15 | 2005-06-15 | Data management method for processing decoding error of read back data of optical disk and optical disk drive |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1881445A CN1881445A (en) | 2006-12-20 |
| CN100411044C true CN100411044C (en) | 2008-08-13 |
Family
ID=37519606
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100770816A Expired - Fee Related CN100411044C (en) | 2005-06-15 | 2005-06-15 | Data management method for processing decoding error of read back data of optical disk and optical disk drive |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100411044C (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9497466B2 (en) | 2011-01-17 | 2016-11-15 | Mediatek Inc. | Buffering apparatus for buffering multi-partition video/image bitstream and related method thereof |
| US8990435B2 (en) * | 2011-01-17 | 2015-03-24 | Mediatek Inc. | Method and apparatus for accessing data of multi-tile encoded picture stored in buffering apparatus |
| EP2740270A4 (en) | 2011-10-31 | 2015-04-29 | Mediatek Inc | Apparatus and method for buffering context arrays referenced for performing entropy decoding upon multi-tile encoded picture and related entropy decoder |
| CN107728943B (en) * | 2017-10-09 | 2020-09-18 | 华中科技大学 | A method for delaying generation of verification disc and corresponding data recovery method |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1206185A (en) * | 1997-06-13 | 1999-01-27 | 日本电气株式会社 | A sync detector capable of detecting the position of a frame without a sync signal within a frame |
| JP2001118340A (en) * | 1999-10-20 | 2001-04-27 | Sony Corp | Device and method for recording and reproduction and recording medium |
| US20040103360A1 (en) * | 2002-10-29 | 2004-05-27 | Takaro Mori | Information recording and reproducing apparatus |
-
2005
- 2005-06-15 CN CNB2005100770816A patent/CN100411044C/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1206185A (en) * | 1997-06-13 | 1999-01-27 | 日本电气株式会社 | A sync detector capable of detecting the position of a frame without a sync signal within a frame |
| JP2001118340A (en) * | 1999-10-20 | 2001-04-27 | Sony Corp | Device and method for recording and reproduction and recording medium |
| US20040103360A1 (en) * | 2002-10-29 | 2004-05-27 | Takaro Mori | Information recording and reproducing apparatus |
Non-Patent Citations (1)
| Title |
|---|
| Method for shortening the MOB_TRF_IND messagethrough reducing size of the CID field by replacing it with aShortBasic CID. Sunny Chang,Changhoi Koo,Taein Hyon,Yunsang Park.IEEE C802.16e-04/92r1(http://www.ieee802.org/16/tge/). 2004 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1881445A (en) | 2006-12-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1299193C (en) | System and method for processing write-in in HDD using 4K block size | |
| US6363511B1 (en) | Device and method for decoding data streams from storage media | |
| JP2003346432A (en) | Data storage device and data processing method | |
| US10678442B2 (en) | Disk drive that efficiently handles random mixed-R/W command-streams | |
| US7395488B2 (en) | System and method for efficient use of memory device bandwidth | |
| CN100337271C (en) | Method for writing streaming audiovisual data to a disk drive | |
| TW201407968A (en) | Data processing system with retained sector reprocessing | |
| JP2004103127A (en) | Method for rearranging sectors of information recording medium and information storage device | |
| US6651208B1 (en) | Method and system for multiple column syndrome generation | |
| CN108630232A (en) | Disk set, its control method and controller | |
| CN100411044C (en) | Data management method for processing decoding error of read back data of optical disk and optical disk drive | |
| US20110022793A1 (en) | Systems And Methods For Accessing Hard Disk Drives | |
| US20070189137A1 (en) | Rotating disk storage device and recording method | |
| US8145839B2 (en) | Raid—5 controller and accessing method with data stream distribution and aggregation operations based on the primitive data access block of storage devices | |
| US9299387B2 (en) | Magnetic disk apparatus, controller and data processing method | |
| EP2605121B1 (en) | Systems and methods for handling out of order reporting in a storage device | |
| US8559280B2 (en) | Optical disk drive and method for data recording of optical disk drives | |
| US20050240750A1 (en) | Interleaved mapping method and apparatus for accessing memory | |
| US20080065825A1 (en) | Optical storage device and data storage method thereof | |
| JP2010287128A (en) | Controller, storage medium, and information control method | |
| JP2008117491A (en) | Recording device, recording method and program | |
| US20070011576A1 (en) | Data managing method and optical disc drive for handling an decoding error of a readback data retrieved from an optical disc | |
| CN100454425C (en) | Method and apparatus for selectively rebuffering and decoding a portion of a data block | |
| US9710197B2 (en) | Storage device, controller, and method | |
| US7076579B2 (en) | Structure and method for multi-section management of a buffer |
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 | ||
| ASS | Succession or assignment of patent right |
Owner name: MEDIATEK ( HEFEI ) CO., LTD. Free format text: FORMER OWNER: MEDIATEK INC. Effective date: 20090619 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20090619 Address after: Anhui Province Information Park of Hefei high tech Development Zone E building 3-5 layer Patentee after: MediaTek (Hefei) Inc. Address before: Hsinchu Science Industrial Park, Taiwan Patentee before: MediaTek.Inc |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080813 Termination date: 20190615 |