CN100534200C - Error detection device and method for video decoder - Google Patents
Error detection device and method for video decoder Download PDFInfo
- Publication number
- CN100534200C CN100534200C CN 200510111946 CN200510111946A CN100534200C CN 100534200 C CN100534200 C CN 100534200C CN 200510111946 CN200510111946 CN 200510111946 CN 200510111946 A CN200510111946 A CN 200510111946A CN 100534200 C CN100534200 C CN 100534200C
- Authority
- CN
- China
- Prior art keywords
- bit stream
- video decoder
- sign
- additional information
- error
- 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
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
技术领域 technical field
本发明涉及视频解码器的错误检测装置及方法。The invention relates to an error detection device and method of a video decoder.
背景技术 Background technique
视频编解码器(codec)随着ITU的H.261/263/264等和IS0的MPEG-1/2/4等的标准化操作而被广泛地使用,尤其是随着互联网、第三代无线通信等的日益发达,已经成为网络环境中的主要应用程序(application)。Video codecs (codec) are widely used with the standardized operation of ITU's H.261/263/264 and ISO's MPEG-1/2/4, etc., especially with the Internet, the third generation of wireless communication With the development of the Internet, etc., it has become the main application program (application) in the network environment.
在利用网络传送视频信号时,尤其是在无线的环境下,在传送频道上会发生数据丢失(loss)和损坏(corruption)的现象。因此,视频解码器必须具备在对这些发生错误的数据进行解码的同时,对错误进行及时检测并将检测出来的错误掩藏起来的功能。When using a network to transmit video signals, especially in a wireless environment, data loss (loss) and corruption (corruption) will occur on the transmission channel. Therefore, the video decoder must have the function of detecting errors in time and hiding the detected errors while decoding the erroneous data.
迅速无误地把想要传送的信息传送出去,并使对方能够灵活运用正确的信息,这是所有传送系统的目标。为此,在大部分数字传送系统当中,发信方都根据一定的编码规则对将要传送的数字数据进行编码然后进行传送,而收信方对这些编码后的传送数据进行解码,并从中抽出所需要的数据。当对数据进行编码然后进行传送时,在传送过程中很少会发生错误,而且即使发生了错误,收信方也能够把错误更正过来。It is the goal of all transmission systems to quickly and accurately transmit the information you want to transmit, and enable the other party to flexibly use the correct information. For this reason, in most digital transmission systems, the sender encodes the digital data to be transmitted according to certain coding rules and then transmits it, and the receiver decodes the encoded transmission data and extracts all the data from it. data needed. When data is encoded and then transmitted, errors rarely occur during transmission, and if errors do occur, the receiver can correct them.
一般来讲,对错误的检测方法是由对视频标准句法(syntax)和语义(semantic)进行核对的方法组成的。Generally speaking, the error detection method is composed of a method for checking the video standard syntax and semantics.
现在就参照附图对现有的用来播放视频码流的视频解码器的结构和动作进行简略的说明,该视频解码器中包括错误检测设备和对被检测出来的错误进行恢复及掩藏的设备。Now, with reference to the accompanying drawings, the structure and actions of the existing video decoder used to play the video code stream will be briefly described. The video decoder includes error detection equipment and equipment for recovering and concealing the detected errors. .
图1是以现有技术为依据的视频解码器的结构示意图。FIG. 1 is a schematic structural diagram of a video decoder based on the prior art.
参照图1,比特缓冲器102负责接收被传送过来的比特流并将其储存起来。Referring to FIG. 1, the
图像头检测电路104负责对所述比特缓冲器102中储存的比特流中的各个图像前头所粘贴着的图像头进行检测,并判定各个图像的类型(I、P、B)。The picture
控制中心电路112负责以上述判断为依据,从所述比特缓冲器102中将1张图像的视频码流判读到每个I帧期间。The
片段头检测电路105负责对比特流中各个片段的前头所粘贴着的片段头进行检测。The segment
可变长解码器106负责根据第1ROM(存储器)110中记忆的赫夫曼编码表中的赫夫曼代码对每个图像进行比特流的可变长解码。The
逆量子化电路107负责根据第2ROM(存储器)111中记忆的量子化编码表中的量子化临界值对经过可变长解码处理后的数据进行逆量子化,并算出DCT(离散余弦变换)的系数数据。The
IDCT(Inverse DCT:逆离散余弦变换)电路108负责进行逆离散余弦变换(IDCT),并对DCT系数数据进行变换。IDCT (Inverse DCT: inverse discrete cosine transform)
MC(Motion Compensation:移动补偿)电路109负责根据所述IDCT电路108的处理结果进行移动补偿预测。所述MC电路109的处理结果被有选择性地储存在帧缓冲器103的各个区域(前方参照区域103a;后方参照区域103b;B图像储存区域103c)当中。所述帧缓冲器103的各个区域(前方参照区域103a;后方参照区域103b;B图像储存区域103c)中的任意一个区域中所储存的被解码处理后的图像数据经过所述MC电路109,被作为视频信号输出到与视频解码器101相连的播放装置(未图示)上。The MC (Motion Compensation: motion compensation)
赫夫曼错误检测电路113对所述可变长解码器106的解码处理过程进行监视,并逐个片段地检测比特流的错误。即,当片段所对应的数据在赫夫曼编码表中没有储存时,或片段所对应的数据与过去的解码数据不一致时,就判定该片段存在错误。The Huffman
控制中心电路112根据上述判定的结果,控制可变长解码器106停止对被判定存在错误的第1片段的解码处理,并使上述第1片段的解码处理结果无效。并且,根据检测出来的片段头,把位于第1片段后面的需要进行解码的第2片段从上述比特缓冲器102中判读出来,并在上述可变长解码器106中进行第2片段的可变长解码。The
另一方面,所述控制中心电路112控制上述MC电路109和上述帧缓冲器103,将应该被储存在上述帧缓冲器103中的第1片段置换成包含有上述第1片段的前一个被输出到播放器的图像中所包含的第3片段。这种第3片段在结构上与上述第1片段相对应。因此,被输出的不是出现错误的片段的解码数据,而是前一个图像当中与错误片段相对应的片段的解码数据。这样,片段的错误就被掩藏起来的。On the other hand, the
但是,仅靠利用压缩比特流的上述特殊句法和语义的方法,是很难检测出上述比特流中所包含的所有错误的。However, it is difficult to detect all the errors contained in the above-mentioned bit-stream only by utilizing the above-mentioned special syntax and semantics of the compressed bit-stream.
因此,在现有的视频解码器的错误检测装置上,由于没有检测出来的错误无法在画面上被适当地掩藏起来,所以给解码后的视频品质造成了很不好的影响,并且还会引起信号处理电路的操作故障。Therefore, on the error detection device of the existing video decoder, the errors that are not detected cannot be properly concealed on the screen, so it has a very bad influence on the video quality after decoding, and it will also cause Operational failure of the signal processing circuit.
发明内容 Contents of the invention
本发明正是为解决上述问题而提出的,其目的在于提供一种视频解码器的错误检测装置及方法。利用该装置和方法,本发明能够在视频解码器上除了使用依靠句法和语义的方法进行错误检测之外,还可以通过追加利用以句法中所存在标志的种类及比特流上的位置信息为依据检测出来的错误信息进行错误的恢复处理的方式,使存在错误的比特流所造成的影响最小化。The present invention is proposed to solve the above problems, and its purpose is to provide an error detection device and method for a video decoder. Utilizing the device and method, the present invention can perform error detection on the video decoder in addition to using methods relying on syntax and semantics, and additionally utilize the types of flags existing in the syntax and the location information on the bit stream as the basis for error detection. The way of recovering the detected error information minimizes the influence caused by the bit stream with errors.
为了实现上述目的,以本发明为依据的视频解码器的错误检测装置,其特征在于包括以下几个组成部分:负责从被输入的比特流中检测出视频句法标志的标志预扫部;负责把由上述标志预扫部检测出来的标志的种类和比特流上的位置信息储存起来的附加信息储存部;负责将视频解码器引导的标志在比特流上的位置与上述附加信息储存部中所储存的标志的位置相比较,并且当上述标志的位置相互不一致时就输出错误检测信号的错误检测部。In order to achieve the above object, the error detection device of the video decoder based on the present invention is characterized in that it includes the following components: a sign pre-scan section that is responsible for detecting the video syntax sign from the input bit stream; An additional information storage unit that stores the type of the logo detected by the logo preview unit and the position information on the bit stream; it is responsible for comparing the position of the logo guided by the video decoder on the bit stream with the position information stored in the above additional information storage unit An error detection unit that compares the positions of the flags and outputs an error detection signal when the positions of the marks do not coincide with each other.
为了实现上述目的,以本发明为依据的视频解码器的错误检测方法,其特征在于包括以下几个步骤:负责对输入到视频解码器中的比特流进行扫描的步骤;负责把由通过上述扫描检测出来的上述比特流上的所有有效标志和上述有效标志的位置信息所构成的附加信息储存起来的步骤;负责把视频解码器引导的比特流上的标志位置与上述附加信息储存部中所储存的各个标志的位置进行比较的步骤;负责在上述比较的结果为标志位置不一致时,判断出现错误的步骤。In order to achieve the above object, the error detection method of a video decoder based on the present invention is characterized in that it includes the following steps: responsible for scanning the bit stream input into the video decoder; The step of storing all the detected valid flags on the above-mentioned bit stream and the additional information formed by the position information of the above-mentioned valid flags; responsible for combining the flag positions on the bit stream guided by the video decoder with the above-mentioned additional information stored in the additional information storage unit The step of comparing the positions of each mark; the step responsible for judging an error when the result of the above comparison is that the positions of the marks are inconsistent.
根据输入比特流的压缩方式,所述附加信息的特征在于:它包括帧头、GOB头、片段头等,或者包括VOS头、VOL头、GOV头、VOP头及重同步(resync)头等。According to the compression method of the input bit stream, the additional information is characterized in that it includes a frame header, a GOB header, a segment header, etc., or includes a VOS header, a VOL header, a GOV header, a VOP header, and a resync header, etc.
本发明的特征在于:还包括当判断已经发生上述错误时,从相关标志位置开始重新进行解码的步骤。The present invention is characterized in that it further includes the step of re-decoding from the position of the relevant flag when it is judged that the above-mentioned error has occurred.
本发明的效果:Effect of the present invention:
通过以本发明为依据的视频解码器的错误检测装置和方法,除了可以利用现有视频解码器中依靠句法和语义的方法进行错误检测之外,还可以追加利用根据句法中所存在标志的种类和比特流上的位置信息检测出来的错误信息进行错误的恢复处理,通过这种方式来使发生错误的比特流的影响最小化。With the video decoder error detection device and method based on the present invention, in addition to using the method of syntax and semantics in the existing video decoder for error detection, it is also possible to additionally use the type of flags that exist in the syntax Error recovery processing is performed on the error information detected with the position information on the bit stream, and in this way, the impact of the erroneous bit stream is minimized.
为进一步说明本发明的上述目的、结构特点和效果,以下将结合附图对本发明进行详细的描述。In order to further illustrate the above-mentioned purpose, structural features and effects of the present invention, the present invention will be described in detail below in conjunction with the accompanying drawings.
附图说明 Description of drawings
图1是以现有技术为依据的视频解码器的结构示意图。FIG. 1 is a schematic structural diagram of a video decoder based on the prior art.
图2是以本发明为依据的包括错误检测装置在内的视频解码器结构示意图。Fig. 2 is a schematic structural diagram of a video decoder including an error detection device according to the present invention.
图3是以本发明中一个实施例为依据的包含错误检测装置的解码器结构示意图。Fig. 3 is a schematic structural diagram of a decoder including an error detection device according to an embodiment of the present invention.
附图中主要部分的符号说明:Explanation of the symbols of the main parts in the accompanying drawings:
210:标志预扫部 220:附加信息储存部210: Logo pre-scanning department 220: Additional information storage department
230:错误检测部 310:解码部230: Error detection unit 310: Decoding unit
312:控制中心电路312: control center circuit
具体实施方式 Detailed ways
下面将参照附图对以本发明的视频解码器的错误检测装置及方法的实施方式进行详细说明。The implementation of the error detection device and method for a video decoder of the present invention will be described in detail below with reference to the accompanying drawings.
图2是以本发明为依据的包含有错误检测装置的视频解码器的结构示意图。FIG. 2 is a schematic structural diagram of a video decoder including an error detection device according to the present invention.
以本发明为依据的视频解码器的错误检测装置,如图2所示,包括标志预扫部210、附加信息储存部220和错误检测部230。The error detection device of the video decoder based on the present invention, as shown in FIG.
所述标志预扫部210负责对输入的比特流进行扫描,并从上述比特流中检测出视频句法上的标志。根据输入比特流的压缩方式的不同,上述视频句法上的标志中包含有帧头、GOB头、片段头等,或者包含有VOS头、VOL头、GOV头、VOP头和重同步(resync)头等。The marker pre-scanning
所述附加信息储存部220负责对上述标志预扫部检测出来的标志的种类和比特流上的位置信息进行储存。The additional
所述错误检测部230负责对视频解码器引导的标志在比特流上的位置与上述附加信息储存部220中所储存的标志的位置进行比较,并且在上述标志的位置相互不一致时输出错误检测信号。The
具有上述结构的以本发明为依据的视频解码器的错误检测装置,能够很容易地利用上述附加信息储存部220中所储存标志的种类和比特流上的位置信息以及在解码时被核对的标志在比特流上的位置,在解码时检测出错误。The error detection device of the video decoder based on the present invention having the above structure can easily use the type of the flag stored in the above-mentioned additional
并且,根据上述错误检测部230输出的错误信息,视频解码器开始从检测出错误的相关标志开始重新进行解码。Then, based on the error information output by the
图3是以本发明的实施例为依据的包含有错误检测装置的解码器结构示意图。Fig. 3 is a schematic structural diagram of a decoder including an error detection device according to an embodiment of the present invention.
如图3所示,以本发明的实施例为依据的包含有错误检测装置的视频解码器通常包括:构成解码器的解码部301、标志预扫部210、附加信息储存部220和错误检测部230。As shown in FIG. 3 , a video decoder that includes an error detection device based on an embodiment of the present invention generally includes: a
所述解码部301中包括:比特缓冲器102、帧缓冲器103、图像头检测电路104、片段头检测电路105、可变长解码器106、逆量子化电路107、IDCT电路108、MC电路109、第1ROM110、第2ROM111、控制中心电路312、赫夫曼错误检测电路113等。在构成上述解码部301的部分当中,对与现有设备相同的部分使用了相同的符号进行表示。The
下面就对具有上述结构的以本发明实施例为依据的包含有错误检测装置的解码器的动作进行说明。Next, the operation of the decoder including the error detection device according to the embodiment of the present invention having the above-mentioned structure will be described.
首先,压缩比特流被从传送媒体中输入到该包含有错误检测装置的解码器中。所述传送媒体不仅包括视频CD、CD-ROM、DVD、数字视频录放机等记录媒体,还包括近距离通信网(LAN)等通信媒体、地面波电视或卫星电视以及光缆电视等电视媒体等。First, a compressed bit stream is input from a transmission medium to the decoder including error detection means. The transmission media includes not only recording media such as video CD, CD-ROM, DVD, and digital video recorder, but also communication media such as short-distance communication network (LAN), television media such as terrestrial TV or satellite TV, and optical cable TV.
如果输入了压缩比特流,那么上述标志预扫部210就在上述解码部301对输入的比特流进行处理之前,对其进行自由扫描并检测出上述比特流中所包含的视频句法上的标志,然后生成附加信息。If the compressed bit stream is input, then the flag
视频信号在视频句法上的有效标志(valid marker),根据上述视频信号的压缩方式,包括以下几种信息。The valid marker of the video signal on the video syntax, according to the compression method of the above video signal, includes the following information.
在H.263的情况下,包括帧头(Frame Header)、GOB头(GOB Header)、片段头(Slice Header)等。In the case of H.263, including Frame Header (Frame Header), GOB Header (GOB Header), Slice Header (Slice Header), etc.
在MPEG4SP的情况下,包括VOS头(VOS Header)、VOL头(VOL Header)、GOV头(GOV Header)、VOP头(VOP Header)和同步标志(Resync Marker)。In the case of MPEG4SP, it includes VOS Header (VOS Header), VOL Header (VOL Header), GOV Header (GOV Header), VOP Header (VOP Header) and synchronization mark (Resync Marker).
所述附加信息储存部220中储存着由上述标志预扫部210检测出来的标志的种类和比特流上的位置信息。即,在比特流上找到的所有有效标志和上述各个标志的种类及比特流上的位置信息都被储存在上述附加信息储存部220中。The additional
所述错误检测部230对上述解码部301引导的标志在比特流上的位置与上述附加信息储存部中所储存的标志的位置进行比较,然后当上述标志的位置相互不一致时就输出错误检测信号。The
所述错误检测部230在利用附加信息依靠句法和语义的方法之外,还追加进行错误检测,这种追加的错误检测过程如下:In addition to the method of using additional information and relying on syntax and semantics, the
首先,对所述解码部301当前引导的比特流上的位置和位于上述附加信息储存部220中的各个标志的位置进行比较。First, the position on the bit stream currently guided by the
如果,上述附加信息储存部220中所储存的有效标志的位置超过了当前的比特流指针(pointer),如果无法对相关的标志进行适当的分解(parsing),就说明由于此前发生的错误的影响,使得相关标志在不能对比特流进行正常分解的过程中,因为没有被当作标志而越过去了,并且由于依靠句法和语义的方法没能检测出错误,因而可以判断发生了错误。If the position of the effective flag stored in the above-mentioned additional
如果所述错误检测部230检测到了这类错误的发生,上述解码部301的控制中心电路312就输入错误发生信号来提示发生了错误。因此,上述控制中心电路312就从那个没有进行分解就被越过去的相关标志位置开始重新进行解码。If the
详细的说明就是,所述控制中心电路312根据上述错误检测部230输出的错误检测信号,停止了当前正在进行当中的解码动作。即,所述控制中心电路312根据上述错误检测部230的错误检测信号,停止了可变长解码器106对包含有被判定发生错误的标志的比特流所进行的解码处理,并且使针对包含有上述标志的比特流所进行的解码处理结果失效。In detail, the
所以,所述控制中心电路312为了进行正确的解码,将重新开始解码的位置变更为相关标志所在的位置,从这里开始重新进行解码。因此,从被检测出错误的标志处开始重新将比特流从上述比特缓冲器102中判读出来,通过上述可变长解码器106来进行可变长解码。Therefore, in order to perform correct decoding, the
本技术领域中的普通技术人员应当认识到,以上的实施例仅是用来说明本发明,而并非用作为对本发明的限定,只要在本发明的实质精神范围内,对以上所述实施例的变化、变型都将落在本发明权利要求书的范围内。Those of ordinary skill in the art should recognize that the above embodiments are only used to illustrate the present invention, rather than as a limitation to the present invention, as long as within the scope of the spirit of the present invention, the above-described embodiments Changes and modifications will fall within the scope of the claims of the present invention.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200510111946 CN100534200C (en) | 2005-12-23 | 2005-12-23 | Error detection device and method for video decoder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200510111946 CN100534200C (en) | 2005-12-23 | 2005-12-23 | Error detection device and method for video decoder |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1988668A CN1988668A (en) | 2007-06-27 |
| CN100534200C true CN100534200C (en) | 2009-08-26 |
Family
ID=38185268
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200510111946 Expired - Fee Related CN100534200C (en) | 2005-12-23 | 2005-12-23 | Error detection device and method for video decoder |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100534200C (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101287128B (en) * | 2008-05-29 | 2010-10-06 | 中兴通讯股份有限公司 | A video decoding error recovery method |
| CN102857233B (en) * | 2011-06-28 | 2017-03-15 | 中兴通讯股份有限公司 | Interpretation method and device |
-
2005
- 2005-12-23 CN CN 200510111946 patent/CN100534200C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN1988668A (en) | 2007-06-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1848956B (en) | Error concealing method for improving error concealing of video encoding and encoder | |
| RU2419245C2 (en) | Systems and methods for channels switching | |
| KR100608113B1 (en) | Digital Audio Decoder and Digital Audio Player with Error Handler | |
| TW453118B (en) | Graphic decoding device and a graphic encoding device | |
| JP2001025010A (en) | Multimedia information communication apparatus and method | |
| US20160127740A1 (en) | Video Decoding Method/Device of Detecting a Missing Video Frame | |
| US20100195742A1 (en) | Error concealment method and apparatus | |
| US8332736B2 (en) | Decoder with resiliency to handle errors in a received data stream | |
| JP2001285897A (en) | Device for evaluating reception quality of moving picture | |
| US8767840B2 (en) | Method for detecting errors and recovering video data | |
| US6498809B1 (en) | Video bitstream error resilient transcoder, method, video-phone, video-communicator and device | |
| US8478056B2 (en) | Method of and apparatus for detecting error in image data stream | |
| US20100241920A1 (en) | Image decoding apparatus, image decoding method, and computer-readable recording medium | |
| US20070022461A1 (en) | Auxiliary information processing system | |
| CN100534200C (en) | Error detection device and method for video decoder | |
| JP2005518164A (en) | Coding data streams using unequal error protection. | |
| CN101194516B (en) | Video coding | |
| CN110036646A (en) | Decoder, encoder, computer program and method | |
| KR100752846B1 (en) | Apparatus and method for error detection of video decoder | |
| WO2015032928A1 (en) | Method for determining a time stamp relating to synchronization and associated device | |
| KR20170083844A (en) | Set-Top Box for Measuring Frame Loss in a Video Stream and Method for Operating Same | |
| KR100531854B1 (en) | Method for preventing frame type of video codec | |
| JP4736918B2 (en) | Digital playback device or playback program | |
| JP2006262406A (en) | Encoded data generator | |
| KR100710262B1 (en) | Audio error detection device and 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 | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090826 Termination date: 20100125 |