JP2008148004A - Video decoder, digital broadcast receiver, video-decoding method, video-decoding program, and recording medium with video-decoding program stored - Google Patents
Video decoder, digital broadcast receiver, video-decoding method, video-decoding program, and recording medium with video-decoding program stored Download PDFInfo
- Publication number
- JP2008148004A JP2008148004A JP2006332869A JP2006332869A JP2008148004A JP 2008148004 A JP2008148004 A JP 2008148004A JP 2006332869 A JP2006332869 A JP 2006332869A JP 2006332869 A JP2006332869 A JP 2006332869A JP 2008148004 A JP2008148004 A JP 2008148004A
- Authority
- JP
- Japan
- Prior art keywords
- decoding
- video
- synchronization
- error
- video data
- 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.)
- Pending
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本発明は、デジタル放送で用いられる符号化された映像データを復号する映像復号装置、映像復号方法、映像復号プログラム、映像復号プログラムを格納した記録媒体および映像復号装置を備えたデジタル放送受信機に関する。 The present invention relates to a video decoding device for decoding encoded video data used in digital broadcasting, a video decoding method, a video decoding program, a recording medium storing the video decoding program, and a digital broadcast receiver including the video decoding device. .
音声や動画像をデジタル化して伝送する際に符号化する符号化方式として、MPEG(Moving Picture Experts Group)−2が知られている。MPEG−2では音声や映像の符号化方式の他に、符号化された映像や音声および付加データなどを多重化し、それぞれの同期を取りながら伝送、再生するための方式としてMPEG−2システムが規定されている。 MPEG (Moving Picture Experts Group) -2 is known as an encoding method for encoding audio and moving images when digitized and transmitted. In MPEG-2, in addition to audio and video encoding methods, the MPEG-2 system defines a method for multiplexing encoded video, audio, and additional data, and transmitting and reproducing them in synchronization with each other. Has been.
MPEG−2システムでは、符号化された映像データや音声データ(ES:Elementary Stream)をPES(Packetized Elementary Stream)パケットと呼ばれるパケットに格納する。図1にPESパケットの構造を示す。PESパケットは、PTS(Presentation Time Stamp)と呼ばれる時間情報などが含まれるPESパケットヘッダと、ESが格納されるPESパケットペイロードとからなる可変長のパケットである。 In the MPEG-2 system, encoded video data and audio data (ES: Elementary Stream) are stored in a packet called a PES (Packetized Elementary Stream) packet. FIG. 1 shows the structure of the PES packet. The PES packet is a variable-length packet including a PES packet header including time information called PTS (Presentation Time Stamp) and a PES packet payload in which ES is stored.
そして、PESパケットをTS(Transport Stream)パケットと呼ばれる一定長に区切ったパケットに分割し、その後地上デジタル放送の場合はOFDM(Orthogonal Frequency Division Multiplexing)変調の後送信される。受信側では、受信した信号をOFDM復調しTSパケットからPESパケットを復元し、PESパケットペイロードからESを取り出して復号を行う。 Then, the PES packet is divided into packets that are divided into fixed lengths called TS (Transport Stream) packets, and then transmitted after OFDM (Orthogonal Frequency Division Multiplexing) modulation in the case of terrestrial digital broadcasting. On the receiving side, the received signal is OFDM demodulated, the PES packet is restored from the TS packet, and the ES is extracted from the PES packet payload and decoded.
地上デジタル放送の場合、電波でデータが伝送されることから受信状況によってエラーが発生することがある。伝送中に発生したエラーは、OFDM復調時にリードソロモン符号の誤り訂正によって訂正されるが、エラーによっては訂正しきれない場合がある。この場合のOFDM復調処理は、TSヘッダのtransport_error_indicator(TSパケットの誤りを示すビットフィールド)に1をセットしTSパケットを生成する。 In the case of terrestrial digital broadcasting, since data is transmitted by radio waves, an error may occur depending on the reception status. Errors that occur during transmission are corrected by error correction of the Reed-Solomon code during OFDM demodulation, but may not be corrected depending on the error. In the OFDM demodulation processing in this case, 1 is set in transport_error_indicator (bit field indicating an error of the TS packet) of the TS header to generate a TS packet.
一般的なデジタル放送受信機では、OFDM復調処理によって生成されたTSパケットからESを生成する処理は、TSデマルチプレクサが行う。そのTSデマルチプレクサでは、TSヘッダのtransport_error_indicatorに1がセットされたTSパケット(エラーTSパケット)を検出した場合、そのエラーTSパケットを破棄し、エラーではない正常なTSパケットを繋ぎ合わせることによってESを生成する。従って、ESを復号(デコード)する復号器(デコーダ)では廃棄されたエラーTSパケットに含まれていたESのデータを除いて入力される。例えば図2を参照して説明すると、エラーTSパケットがTSパケット2だった場合に、TSパケット1のESに続けてTSパケット3のESがデコーダに入力されることとなる。デコーダはエラーが発生したことを検知できないために入力されたデータを順次デコードしてしまう。しかしながらTSパケット1のESとTSパケット3のESとは本来連続して入力されるべきデータではないために、データの不連続点が発生し、可変長符号(VLC:Variable Length Coding)の復号時に不連続点を跨いで読み込まれたビットの並びやそれ以降のビットの並びがMPEG−2ビデオで規定されたVLCに該当するビットの並びであったとしても、それは本来の符号化データを示すものではないためにいずれデコード動作の辻褄が合わなくなりデコードエラーとなってしまう。
In a general digital broadcast receiver, processing for generating an ES from a TS packet generated by OFDM demodulation processing is performed by a TS demultiplexer. When the TS demultiplexer detects a TS packet (error TS packet) with 1 set in the transport_error_indicator of the TS header, the error TS packet is discarded, and a normal TS packet that is not an error is joined together to set the ES. Generate. Accordingly, a decoder (decoder) that decodes (decodes) ES is input except for the ES data included in the discarded error TS packet. For example, referring to FIG. 2, when the error TS packet is
デコードエラーが発生した場合は、MPEG−2ビデオで規定された同期を示す情報であるスタートコードが検出されるまでデコードを停止し、スタートコードが検出されてからデコードを再開していた。したがって、スタートコードが検出されるまでは正常な映像が表示されなかった。 When a decoding error occurs, decoding is stopped until a start code that is information indicating synchronization defined in MPEG-2 video is detected, and decoding is resumed after the start code is detected. Therefore, a normal image was not displayed until the start code was detected.
また、エラーTSパケットの後のTSパケットのESデータにスタートコードの全部または一部が含まれていた場合は、前記した不連続点の影響によりビットがずれて読まれてしまうことがあるためにスタートコードが正しく認識できないことがあった。 Also, if all or part of the start code is included in the ES data of the TS packet after the error TS packet, the bits may be read out of position due to the influence of the discontinuity point. The start code could not be recognized correctly.
スタートコードとはMPEG−2のビットストリームにおいてシーケンスやピクチャおよびスライス毎などに付加されている映像を表示する際の同期を取るためのデータ(情報)である。このため、スタートコードが認識できないと、認識できるスタートコードまで正常な映像が表示できないので、正常でない映像が広範囲となってしまうことがある。MPEG−2ではフレーム間符号化を行っているので、あるフレームで正常でない映像となってしまうと、その影響が複数フレームに渡ってしまうことがあり、結果として映像品質を著しく落としてしまうことがあった。 The start code is data (information) for obtaining synchronization when displaying a video added to each sequence, picture, slice, or the like in the MPEG-2 bit stream. For this reason, if the start code cannot be recognized, a normal video image cannot be displayed up to the recognizable start code, and thus an abnormal video image may become wide-ranging. Since MPEG-2 performs inter-frame coding, if an image is not normal in a certain frame, the effect may be spread over a plurality of frames, resulting in a significant decrease in image quality. there were.
このような地上デジタル放送などにおける受信時のエラー対策として、例えば特許文献1に記載のデジタル放送受信機が提案されている。特許文献1に記載のデジタル放送受信機は複数の受信機を備え、一つの受信機が受信したTSパケットにエラーが発生した時には他の受信機が受信したTSパケットを用いてデコードを行っている。
特許文献1に記載のデジタル放送受信機では、受信機を複数用意しなければならず、装置の小型化が困難になってしまう。また、全ての受信機でエラーが発生した場合は、結局エラーTSパケットが発生してしまい、デコードエラーによってスタートコードが検出されるまで正常な映像が表示できない問題が発生してしまう。
In the digital broadcast receiver described in
そこで、本発明は、例えばエラーTSパケットが発生しても、エラーTSパケットによるデコードエラーの影響を少なくするような映像復号装置、映像復号方法、映像復号プログラム、映像復号プログラムを格納した記録媒体および映像復号装置を備えたデジタル放送受信機を提供することを課題とする。 Accordingly, the present invention provides a video decoding apparatus, a video decoding method, a video decoding program, a recording medium storing a video decoding program, and a video decoding program that reduce the influence of a decoding error caused by an error TS packet even if an error TS packet occurs, for example. It is an object of the present invention to provide a digital broadcast receiver including a video decoding device.
上記課題を解決するために、請求項1に記載の映像復号装置は、符号化された映像データが入力され、該映像データを復号する復号手段を備えた映像復号装置において、前記符号化された映像データを所定量記憶する記憶手段と、前記記憶手段に記憶した前記符号化された映像データに含まれる同期を示す情報を検出する同期情報検出手段と、前記復号手段が復号エラーを検出した際に、前記復号エラーが検出される前に前記復号手段が復号した前記同期を示す情報の位置から、次の前記同期を示す情報を検出するエラー時同期情報検出手段と、を備え、前記復号手段が、前記エラー時同期情報検出手段が検出した前記同期を示す情報から映像データの復号を行うことを特徴としている。
In order to solve the above-mentioned problem, the video decoding device according to
請求項6に記載の映像復号方法は、符号化された映像データが入力され、該映像データを復号する映像復号方法において、前記映像データを所定量記憶し、前記記憶した前記符号化された映像データを読み出して該映像データを復号し、復号エラーを検出した際に、前記復号エラーが検出される前に復号した前記同期を示す情報の位置から、次の前記同期を示す情報を検出して、検出された前記次の同期を示す情報から復号することを特徴としている。
The video decoding method according to
請求項7に記載の映像復号プログラムは、符号化された映像データが入力され、該映像データを復号する復号手段としてコンピュータに機能させる映像復号プログラムにおいて、前記符号化された映像データを所定量記憶する記憶手段と、前記記憶手段に記憶した前記符号化された映像データに含まれる同期を示す情報を検出する同期情報検出手段と、前記復号手段が復号エラーを検出した際に、前記復号エラーが検出される前に前記復号手段が復号した前記同期を示す情報の位置から、次の前記同期を示す情報を検出するエラー時同期情報検出手段としてコンピュータに機能させるとともに、前記復号手段が、前記エラー時同期情報検出手段が検出した前記同期を示す情報から映像データの復号を行うことを特徴としている。
The video decoding program according to
以下、本発明の一実施形態にかかる映像復号装置を説明する。本発明の一実施形態にかかる映像復号装置は、復号手段が復号エラーを検出したときには、復号エラーが検出される前に復号手段が復号した同期を示す情報の位置から次の同期を示す情報をエラー時同期情報検出手段が検出し、検出された次の同期を示す情報から復号手段が復号する。このようにすることにより、エラーTSパケットのため次の同期を示す情報が認識できなかった場合、確実に次の同期を示す情報を検出することができるので復号エラーによる表示画像の影響を少なくすることができる。 Hereinafter, a video decoding apparatus according to an embodiment of the present invention will be described. When the decoding means detects a decoding error, the video decoding apparatus according to an embodiment of the present invention obtains information indicating the next synchronization from the position of the information indicating the synchronization decoded by the decoding means before the decoding error is detected. The synchronization information detecting means at the time of error detects and the decoding means decodes from the detected information indicating the next synchronization. In this way, when the information indicating the next synchronization cannot be recognized due to the error TS packet, the information indicating the next synchronization can be reliably detected, so that the influence of the display image due to the decoding error is reduced. be able to.
また、エラー時同期情報検出手段が、記憶手段からバイト単位に前記映像データを読み出して同期を示す情報を検出してもよい。このようにすることにより、同期を示す情報間がバイトアライメントされていれば、早期に同期を示す情報を検出することができる。 Further, the error-time synchronization information detection means may read the video data in byte units from the storage means and detect information indicating synchronization. By doing in this way, if the information indicating the synchronization is byte-aligned, the information indicating the synchronization can be detected at an early stage.
また、記憶手段が、少なくとも同期を示す情報から次に検出された同期を示す情報までを記憶してもよい。このようにすることにより、同期を示す情報を検出する動作に最低限必要な容量とすることができる。 The storage means may store at least information indicating synchronization to information indicating the next detected synchronization. By doing in this way, it is possible to make the capacity minimum necessary for the operation of detecting information indicating synchronization.
また、過去に復号した映像データを記憶する映像記憶手段を備え、復号手段が、復号エラーを検出した際に、復号エラーが検出される直前に復号された同期を示す情報から次の同期を示す情報の直前までの映像を映像記憶手段に記憶した映像データに置き換えてもよい。このようにすることにより、復号エラーが検出され、正常な映像が出力できない部分に対して過去の映像を表示するので、表示された映像における復号エラーの影響を少なくすることができる。 In addition, video storage means for storing video data decoded in the past is provided, and when the decoding means detects a decoding error, it indicates the next synchronization from the information indicating the synchronization decoded immediately before the decoding error is detected. The video up to immediately before the information may be replaced with video data stored in the video storage means. By doing so, since the past video is displayed on the portion where the decoding error is detected and the normal video cannot be output, the influence of the decoding error on the displayed video can be reduced.
また、デジタル放送受信機に請求項1乃至4のうちいずれか一項に記載の映像復号装置を備えてもよい。このようにすることにより、エラーTSパケットによる復号エラーの影響が少ないデジタル放送受信機とすることができる。
The digital broadcast receiver may include the video decoding device according to any one of
また、本発明の一実施形態にかかる映像復号方法は、復号エラーが検出されたときには、復号エラーが検出される前に復号した同期を示す情報の位置から次の同期を示す情報を検出し、検出した次の同期を示す情報から復号させるようにする。このようにすることにより、エラーTSパケットのため次の同期を示す情報が認識できなかった場合、確実に次の同期を示す情報を検出することができるので復号エラーによる表示画像の影響を少なくすることができる。 Further, the video decoding method according to an embodiment of the present invention detects information indicating the next synchronization from the position of the information indicating the synchronization decoded before the decoding error is detected when the decoding error is detected, It is made to decode from the information which shows the detected next synchronization. In this way, when the information indicating the next synchronization cannot be recognized due to the error TS packet, the information indicating the next synchronization can be reliably detected, so that the influence of the display image due to the decoding error is reduced. be able to.
また、本発明の一実施形態にかかる映像復号プログラムは、復号手段が復号エラーを検出したときには、復号エラーが検出される前に復号手段が復号した同期を示す情報の位置から次の同期を示す情報をエラー時同期情報検出手段が検出し、検出された次の同期を示す情報から復号手段が復号する。このようにすることにより、エラーTSパケットのため次の同期を示す情報が認識できなかった場合、確実に次の同期を示す情報を検出することができるので復号エラーによる表示画像の影響を少なくすることができる。 The video decoding program according to an embodiment of the present invention indicates the next synchronization from the position of the information indicating the synchronization decoded by the decoding unit before the decoding error is detected when the decoding unit detects the decoding error. The error synchronization information detecting means detects the information, and the decoding means decodes the detected information indicating the next synchronization. In this way, when the information indicating the next synchronization cannot be recognized due to the error TS packet, the information indicating the next synchronization can be reliably detected, so that the influence of the display image due to the decoding error is reduced. be able to.
また、請求項7に記載の映像復号プログラムを記録媒体に格納してもよい。このようにすることにより、映像復号プログラムを機器に組み込む以外に単体でも流通させることができる。
The video decoding program according to
本発明の一実施例にかかるデジタル放送受信機1を図1乃至図5を参照して説明する。デジタル放送受信装置1は、MPEG−2で符号化されOFDM変調されて送信された放送波を受信し該放送波に含まれる映像や音声を表示・再生する装置であり、図3に示すように復調部2と、TSデマルチプレクサ3と、ビデオデコーダ4と、映像表示装置11と、を備えている。
A
復調部2は、TS搬送信号を復調してTSパケットを取得すると共に、復調時にリードソロモン誤り訂正によるエラー訂正を行いTSデマルチプレクサ3に出力する。
The
TSデマルチプレクサ3は、復調部2から入力されるTSパケットからPESパケットを復元しPESパケットから符号化された映像データとしてのビデオESと音声の符号化データとしての音声ESとに分離抽出して、ビデオESはビデオデコーダ4に出力する。また、この際にエラーTSパケットは廃棄される。音声ESは図示しないオーディオデコーダにおいてデコード処理され音声信号に復元後スピーカなどから音声として再生される。なお、音声のデコード処理についての詳細な説明は省略する。以降の説明においてビデオESは単にESと称する。
The
本発明の一実施例にかかる映像復号装置としてのビデオデコーダ4は、入力されたESに対してデコード処理を行って映像信号に復元し映像表示装置11に出力する。ビデオデコーダ4は、ESバッファ5と、VLC(Variable Length Coding)デコード処理部6と、映像データ復号処理部7と、シンタックス解析部8と、スタートコード検索部9と、エラー時スタートコード検索部10と、を備える。
The
記憶手段としてのESバッファ5は、TSデマルチプレクサ3から入力されたESを所定量記憶するためのバッファであり半導体メモリで構成されている。本実施例では少なくとも1スライス分のESが記憶できる容量となっている。すなわち、同期を示す情報から次に復号された同期を示す情報までを記憶している。
The
復号手段としてのVLCデコード処理部6は、ESバッファ5に入力されたESを読み出してVLCデコード処理を行いVLCデコード処理後のデータを映像データ復号処理部7へ出力する。
The VLC
復号手段、映像記憶手段としての映像データ復号処理部7は、VLCデコード処理後のデータに逆量子化や逆DCT(Discrete Cosine Transform)および動き補償などの処理を行って映像信号を復元する。
The video data
復号手段としてのシンタックス解析部8は、ESバッファ5に記憶されているこれからデコードする映像の画素数やアスペクト比、又は走査方式などの映像フォーマット情報を得る為に、スタートコードの検出や検出されたスタートコードに続くシーケンスヘッダやピクチャヘッダ、或いはスライスヘッダなどのヘッダのシンタックス解析を行い、映像フォーマット情報などデコードに必要な情報を取得する。取得された情報はVLCデコード処理部6や映像データ復号処理部7に出力される。
The syntax analysis unit 8 serving as a decoding unit detects and detects a start code in order to obtain video format information such as the number of pixels of the video to be decoded, the aspect ratio, or the scanning method stored in the
同期情報検出手段としてのスタートコード検索部9は、映像データ復号処理部7がある一定の処理単位(マクロブロックなど)映像データを復号した後、次に読み込むデータがスタートコード(16進表記で000001)か否かの判断を行い、スタートコードであった場合は、シンタックス解析部8に通知する。シンタックス解析部8は、スタートコードの種別、つまりシーケンススタートコード、ピクチャスタートコード又はスライススタートコードの判別を行い、シンタックス解析を行う。
The start code search unit 9 as the synchronization information detection means decodes video data in a certain processing unit (macro block or the like) video data by the video data
エラー時同期情報検出手段としてのエラー時スタートコード検索部10は、VLCデコード処理部6でデコードエラーが検出された際に、デコードエラー検出前に検出されたスタートコードの位置に遡って次のスタートコードを検索し、シンタックス解析部8に通知する。
The error start
映像表示装置11は、ビデオデコーダ4から入力された映像信号を表示する装置であり、CRTまたはプラズマディスプレイまたは液晶ディスプレイなどから構成されている。
The
図3に示すような構成からなるデジタル放送受信機1のビデオデコーダ4においてESのデコード処理を行う際の動作を説明する。まず、これからデコードする映像(ストリーム)の画素数やアスペクト比、又は走査方式などの映像フォーマット情報を得る為に、シンタックス解析を行い、映像フォーマット情報を得る。次に、スライス層以下のESのデコード処理動作を開始する。その動作を図4に示すフローチャートを参照して説明する。
The operation when the ES decoding process is performed in the
まず、ステップS1において、スタートコード検索部9で、検出されたスタートコードが各スライスの先頭に付加されているスライススタートコードか否かを判断してスライススタートコードの場合(YESの場合)はステップS2に進み、そうでない場合(NOの場合)はスライススタートコード以外のヘッダになるのでステップS7へ進む。 First, in step S1, the start code search unit 9 determines whether or not the detected start code is a slice start code added to the head of each slice. The process proceeds to S2, and if not (NO), the process proceeds to step S7 because a header other than the slice start code is obtained.
次に、ステップS2において、シンタックス解析部8で、スライス層のシンタックス解析処理を行いステップS3に進む。 Next, in step S2, the syntax analysis unit 8 performs a slice layer syntax analysis process and proceeds to step S3.
次に、ステップS3において、VLCデコード処理部6で、1マクロブロック分VLCデコード処理を行ってステップS4に進む。
Next, in step S3, the VLC
次に、ステップS4において、VLCデコード処理部6で存在しないVLCコードが入力された場合、つまりエラーが発生したか否かを判断して、デコードエラーが発生した場合(YESの場合)はステップS8に進み、そうでない場合(NOの場合)はステップS5に進む。
Next, in step S4, if a VLC code that does not exist is input in the VLC
次に、ステップS5において、ステップS3でVLCデコード処理を行ったマクロブロックについて映像データ復号処理部7でマクロブロック復号処理(逆量子化、逆DCT、動き補償など)を行いステップS6に進む。
Next, in step S5, the video data
次に、ステップS6において、ステップS5で復号処理を行ったマクロブロックがスライスの最後か否かをVLCデコード処理部6で判断してスライスの最後であった場合(YESの場合)はステップS1に戻り、そうでない場合(NOの場合)はステップS3に戻る。最後のマクロブロックは、スタートコード(16進表記で000001)を検出することで判断する。例えば地上デジタル放送の場合を図5に示す。図5は映像表示装置11に表示された画面を示している。地上デジタル放送では1スライスは図5に示すように画面の1ラインで設定されている場合がほとんどである。
Next, in step S6, if the VLC
ステップS7においては、スライス層以外の例えばピクチャ層などのシンタックス解析処理をシンタックス解析部8で行いステップS1に戻る。 In step S7, syntax analysis processing other than the slice layer, such as a picture layer, is performed by the syntax analysis unit 8 and the process returns to step S1.
ステップS8においては、デコードエラーが検出されたので、エラー時スタートコード検索部10は、ESバッファ5に記憶されている前回デコードしたスライススタートコードの位置まで戻り、そのスライススタートコードから次のスライススタートコードの検索を行いステップS1に戻る。すなわち、復号エラーが検出される前に復号手段が復号した同期を示す情報の位置から次の同期を示す情報を検出している。
In step S8, since a decoding error is detected, the error start
スライススタートコードの検索は次のように行う。通常のVLCデコード処理(スタートコード検索やシンタックス解析も含む)はVLCを処理するために可変長なビット数で読み出してデコード処理を行っているが、ステップS8では、MPEG−2規格において、スライススタートコードは16進表記で00000101〜000001AFのいずれかの4バイトとなっており、さらに、スタートコードから次のスタートコードの間はバイトアライメントされている(スタートコードから次のスタートコードの1ビット前のデータまでがバイト(8ビット)で割り切れるようにデータが揃えられている)ことを利用して前回デコードすることができた(認識できた)スライススタートコードからバイト単位でESバッファ5からデータを読み出して検出する。すなわち、記憶手段からバイト単位に映像データを読み出して次の同期を示す情報を検出している。このようにすることによって、スライススタートコードを早期に検出することができる。
The search for the slice start code is performed as follows. Normal VLC decoding processing (including start code search and syntax analysis) is performed by decoding with a variable number of bits to process VLC. In step S8, in the MPEG-2 standard, slice processing is performed. The start code is one of 4 bytes from 00000101 to 000001AF in hexadecimal notation, and byte alignment is performed between the start code and the next start code (one bit before the next start code from the start code). The data from the
以上のフローチャートの動作の一例を図5を用いて説明する。図5におけるスライスn−1のマクロブロックB〜DはエラーTSパケットに含まれており、スライスnのマクロブロックHでデコードエラーが発生したとすると、マクロブロックB〜Dはビデオデコーダ4に入力されないためにマクロブロックB〜Dの位置には正常な画像が表示されない。続くマクロブロックE,FもマクロブロックB〜Dが欠落した影響により正常な画像が表示できるようなデコードが行えない可能性が高い。次のスライスnの先頭のマクロブロックGにはマクロブロックのデータの前にスライススタートコードが付加されているが、マクロブロックB〜Dが欠落した影響により、1マクロブロック復号(ステップS3)において、誤ってスライススタートコードが読み込まれて認識できない可能性がある。
An example of the operation of the above flowchart will be described with reference to FIG. The macro blocks B to D of the slice n−1 in FIG. 5 are included in the error TS packet, and if a decoding error occurs in the macro block H of the slice n, the macro blocks B to D are not input to the
そこで、VLCデコードエラー発生後にステップS8において、まず、前回デコードできているスライスn−1のスタートコードの位置からバイト単位で読み出すことでスライスnのスタートコードを検出することができる。スライスnのスタートコードが検出できたら、その時点でステップS1に戻り通常のデコード処理を行う。すなわち、記憶手段からバイト単位に映像データを読み出して次の同期を示す情報を検出し、検出した同期を示す情報の位置から映像データの復号を行っている。このようにすることによって、従来はマクロブロックGでデコードエラーが発生した場合はスライスnの次のスライスのスタートコードが検出されるまでデコードを停止するためスライスnは正常な画像が表示できなかったのが、スライスnのスタートコードを検索することでスライスnは正常な画像を表示することができるようになる。 Therefore, in step S8 after the occurrence of the VLC decoding error, first, the start code of slice n can be detected by reading in byte units from the position of the start code of slice n-1 that was previously decoded. If the start code of the slice n can be detected, the process returns to step S1 at that time and normal decoding processing is performed. That is, the video data is read from the storage means in byte units, information indicating the next synchronization is detected, and the video data is decoded from the position of the information indicating the detected synchronization. By doing so, conventionally, when a decoding error occurs in the macroblock G, the decoding is stopped until the start code of the slice following the slice n is detected, so that the slice n cannot display a normal image. However, by searching for the start code of slice n, slice n can display a normal image.
本実施例によれば、デジタル放送受信機1のビデオデコーダ4においてエラーTSパケットによるデコードエラーが発生した際に、エラー時スタートコード検索部10が、ESバッファ5からデコードエラーが発生する前にデコードされているスライススタートコードを読み出し、そのスライススタートコードの位置からバイト単位に読み出して次のスライススタートコードを検出し、そのスライススタートコードからシンタックス解析部8やVLCデコード処理部6および映像データ復号処理部7で復号を再開する。このようにすることによって、従来認識できなかったスライススタートコードを認識するためにエラーTSパケットによってESの一部が欠落したことによるデコードエラーの影響を最小限にすることができる。
According to the present embodiment, when a decoding error due to an error TS packet occurs in the
なお、ビデオデコーダ4をコンピュータを構成するCPUとメモリに置き換えて、ESバッファ5をメモリに、VLCデコード処理部6、映像データ復号処理部7、シンタックス解析部8、スタートコード検索部9およびエラー時スタートコード検索部10の機能をCPUで実行するプログラムとしてもよい。このようにすることによって専用のハードウェアでなくても、コンピュータ上のソフトウェアでエラーTSパケットによってESの一部が欠落したことによるデコードエラーの影響を、従来認識できなかったスライススタートコードを認識することで少なくすることができるビデオデコーダとして機能させることができる。
The
また、上述した実施例ではスライスn−1のマクロブロックB〜Fは正常な画像が表示できないが、MPEG−2ではフレーム間予測符号化を行っているために復号された過去の複数の映像データを記憶していることが多いので、スライスn−1全体を過去の画像の同じ位置のスライスで置き換えるようにしてもよい。例えばエラー時スタートコード検索部10で図4のフローチャートによりスライスnのスライススタートコードを検出した場合にスライスn−1は映像データ復号処理部7の図示しないメモリ等に記憶されている過去の画像(例えば1フレーム前)のn−1の位置のスライスに置き換えるようにエラー時スタートコード検索部10から映像データ復号処理部7に指示をする。すなわち、復号エラーが検出される直前にデコードされた同期を示す情報から次の同期を示す情報の直前までの映像を過去に復号した映像に置き換える。このようにすることによって、エラーTSパケットで欠落したマクロブロックおよびエラーTSパケットで欠落した部分からスライススタートコードまでの間にあるマクロブロックも本来の映像に近い映像を表示することができるのでエラーTSパケットの影響をより少なくすることができる。
In the above-described embodiment, normal images cannot be displayed in the macro blocks B to F of the slice n-1, but a plurality of past video data decoded due to the inter-frame predictive encoding in MPEG-2. Therefore, the entire slice n-1 may be replaced with a slice at the same position in the past image. For example, when the error start
また、上述した実施例においてはスライススタートコードについて説明したが、ピクチャスタートコードやシーケンススタートコードについても、同様に検出することで認識できなかったスタートコードが検出でき、検出できたスタートコードから再同期して映像を表示することができる。 Further, although the slice start code has been described in the above-described embodiment, a start code that could not be recognized by detecting the picture start code and the sequence start code can be detected in the same manner, and resynchronization can be performed from the detected start code. Video can be displayed.
また、上述した実施例では、ビデオデコーダ4にESバッファ5を含めていたが、半導体部品などで構成する際にはESバッファ5以外をビデオデコーダ4として1つの部品とし、ESバッファ5は別部品の2つの部品に分けて構成してもよい。勿論、各ブロックをそれぞれ単独の部品で構成してもよい。
In the above-described embodiment, the
前述した実施例によれば、以下の映像復号装置と映像復号方法および映像復号プログラムが得られる。 According to the embodiment described above, the following video decoding device, video decoding method, and video decoding program can be obtained.
(付記1)ESが入力され、該ESを復号するVLCデコード処理部6と映像データ復号処理部7とシンタックス解析部8とを備えたビデオデコーダ4において、
ESを所定量記憶するESバッファ5と、
ESバッファ5に記憶したESに含まれるスライススタートコードを検出するスタートコード検索部9と、
VLCデコード処理部6がデコードエラーを検出した際に、デコードエラーが検出される前にデコードされたスライススタートコードの位置から、次のスライススタートコードを検出するエラー時スタートコード検索部10と、を備え、
VLCデコード処理部6と映像データ復号処理部7とシンタックス解析部8がエラー時スタートコード検索部10が検出したスライススタートコードからESを復号することを特徴とするビデオデコーダ4。
(Supplementary Note 1) In the
An
A start code search unit 9 for detecting a slice start code included in the ES stored in the
When the VLC
A
このビデオデコーダ4によれば、エラーTSパケットのため次の同期を示す情報が認識できなかった場合、確実にスライススタートコードを検出することができるのでデコードエラーによる表示画像の影響を少なくすることができる。
According to the
(付記2)ESが入力され、該ESを復号する映像復号方法において、
ESを所定量記憶し、記憶したESを読み出して該ESを復号し、デコードエラーを検出した際に、デコードエラーが検出される前にデコードされたスライススタートコードの位置から次のスライススタートコードを検出して、検出された次のスライススタートコードからデコードすることを特徴とする映像復号方法。
(Supplementary Note 2) In a video decoding method for inputting an ES and decoding the ES,
When a predetermined amount of ES is stored, the stored ES is read, the ES is decoded, and a decoding error is detected, the next slice start code is read from the position of the decoded slice start code before the decoding error is detected. A video decoding method comprising: detecting and decoding from the detected next slice start code.
この映像復号方法によれば、エラーTSパケットのため次の同期を示す情報が認識できなかった場合、確実にスライススタートコードを検出することができるのでデコードエラーによる表示画像の影響を少なくすることができる。 According to this video decoding method, if the information indicating the next synchronization cannot be recognized due to an error TS packet, the slice start code can be reliably detected, so that the influence of the display image due to the decoding error can be reduced. it can.
(付記3)ESが入力され、該ESを復号するVLCデコード処理部6と映像データ復号処理部7とシンタックス解析部8としてコンピュータに機能させる映像復号プログラムにおいて、
ESを所定量記憶するESバッファ5と、
ESバッファ5に記憶したESに含まれるスライススタートコードを検出するスタートコード検索部9と、
VLCデコード処理部6がデコードエラーを検出した際に、デコードエラーが検出される前にデコードされたスライススタートコードの位置から、次のスライススタートコードを検出するエラー時スタートコード検索部10としてコンピュータに機能させるとともに、
VLCデコード処理部6と映像データ復号処理部7とシンタックス解析部8がエラー時スタートコード検索部10が検出したスライススタートコードからESを復号することを特徴とする映像復号プログラム。
(Supplementary Note 3) In a video decoding program that causes a computer to function as a VLC
An
A start code search unit 9 for detecting a slice start code included in the ES stored in the
When the VLC
A video decoding program characterized in that a VLC
この映像復号プログラムによれば、エラーTSパケットのため次の同期を示す情報が認識できなかった場合、確実にスライススタートコードを検出することができるのでデコードエラーによる表示画像の影響を少なくすることができる。 According to this video decoding program, if the information indicating the next synchronization cannot be recognized due to an error TS packet, the slice start code can be reliably detected, so that the influence of the display image due to the decoding error can be reduced. it can.
なお、前述した実施例は本発明の代表的な形態を示したに過ぎず、本発明は、実施例に限定されるものではない。すなわち、本発明の骨子を逸脱しない範囲で種々変形して実施することができる。 In addition, the Example mentioned above only showed the typical form of this invention, and this invention is not limited to an Example. That is, various modifications can be made without departing from the scope of the present invention.
1 デジタル放送受信機
4 ビデオデコーダ(映像復号装置)
5 ESバッファ(記憶手段)
6 VLCデコード処理部(復号手段)
7 映像データ復号処理部(復号手段、映像記憶手段)
8 シンタックス解析部(復号手段)
9 スタートコード検索部(同期情報検出手段)
10 エラー時スタートコード検索部(エラー時同期情報検出手段)
1
5 ES buffer (storage means)
6 VLC decoding processor (decoding means)
7 Video data decoding processing unit (decoding means, video storage means)
8 Syntax analyzer (decoding means)
9 Start code search part (synchronous information detection means)
10 Error start code search part (error synchronization information detection means)
Claims (8)
前記符号化された映像データを所定量記憶する記憶手段と、
前記記憶手段に記憶した前記符号化された映像データに含まれる同期を示す情報を検出する同期情報検出手段と、
前記復号手段が復号エラーを検出した際に、前記復号エラーが検出される前に前記復号手段が復号した前記同期を示す情報の位置から、次の前記同期を示す情報を検出するエラー時同期情報検出手段と、を備え、
前記復号手段が、前記エラー時同期情報検出手段が検出した前記同期を示す情報から映像データの復号を行うことを特徴とする映像復号装置。 In a video decoding apparatus provided with decoding means for inputting encoded video data and decoding the video data,
Storage means for storing a predetermined amount of the encoded video data;
Synchronization information detection means for detecting information indicating synchronization included in the encoded video data stored in the storage means;
When the decoding means detects a decoding error, synchronization information at the time of detecting information indicating the next synchronization from the position of the information indicating the synchronization decoded by the decoding means before the decoding error is detected Detecting means,
The video decoding apparatus, wherein the decoding means decodes video data from the information indicating the synchronization detected by the error synchronization information detecting means.
前記復号手段が、復号エラーを検出した際に、前記復号エラーが検出される直前に復号された前記同期を示す情報から次の前記同期を示す情報の直前までの映像を前記映像記憶手段に記憶した映像データに置き換えることを特徴とする請求項1乃至3のうちいずれか一項に記載の映像復号装置。 Video storage means for storing video data decoded in the past,
When the decoding means detects a decoding error, the video storage means stores the video from the information indicating the synchronization decoded immediately before the decoding error is detected to immediately before the information indicating the next synchronization. 4. The video decoding device according to claim 1, wherein the video decoding device is replaced with the video data that has been processed.
前記映像データを所定量記憶し、前記記憶した前記符号化された映像データを読み出して該映像データを復号し、復号エラーを検出した際に、前記復号エラーが検出される前に復号した前記同期を示す情報の位置から、次の前記同期を示す情報を検出して、検出された前記次の同期を示す情報から復号することを特徴とする映像復号方法。 In a video decoding method for inputting encoded video data and decoding the video data,
The video data is stored in a predetermined amount, the stored encoded video data is read out, the video data is decoded, and when a decoding error is detected, the synchronization is decoded before the decoding error is detected. A video decoding method, wherein information indicating the next synchronization is detected from a position of the information indicating, and decoding is performed from the detected information indicating the next synchronization.
前記符号化された映像データを所定量記憶する記憶手段と、
前記記憶手段に記憶した前記符号化された映像データに含まれる同期を示す情報を検出する同期情報検出手段と、
前記復号手段が復号エラーを検出した際に、前記復号エラーが検出される前に前記復号手段が復号した前記同期を示す情報の位置から、次の前記同期を示す情報を検出するエラー時同期情報検出手段としてコンピュータに機能させるとともに、
前記復号手段が、前記エラー時同期情報検出手段が検出した前記同期を示す情報から映像データの復号を行うことを特徴とする映像復号プログラム。 In a video decoding program for inputting encoded video data and causing a computer to function as decoding means for decoding the video data,
Storage means for storing a predetermined amount of the encoded video data;
Synchronization information detection means for detecting information indicating synchronization included in the encoded video data stored in the storage means;
When the decoding means detects a decoding error, synchronization information at the time of detecting information indicating the next synchronization from the position of the information indicating the synchronization decoded by the decoding means before the decoding error is detected Let the computer function as a detection means,
A video decoding program, wherein the decoding means decodes video data from the information indicating the synchronization detected by the error time synchronization information detecting means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006332869A JP2008148004A (en) | 2006-12-11 | 2006-12-11 | Video decoder, digital broadcast receiver, video-decoding method, video-decoding program, and recording medium with video-decoding program stored |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006332869A JP2008148004A (en) | 2006-12-11 | 2006-12-11 | Video decoder, digital broadcast receiver, video-decoding method, video-decoding program, and recording medium with video-decoding program stored |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008148004A true JP2008148004A (en) | 2008-06-26 |
Family
ID=39607687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006332869A Pending JP2008148004A (en) | 2006-12-11 | 2006-12-11 | Video decoder, digital broadcast receiver, video-decoding method, video-decoding program, and recording medium with video-decoding program stored |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008148004A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0738888A (en) * | 1993-07-02 | 1995-02-07 | Oki Electric Ind Co Ltd | Dynamic image decoding device |
JP2000013240A (en) * | 1998-06-19 | 2000-01-14 | Sony Corp | Code block processing device and method therefor |
JP2002171250A (en) * | 2000-12-04 | 2002-06-14 | Fujitsu Ltd | Method for retrieving synchronizing word and circuit for the same |
JP2002171241A (en) * | 2000-11-29 | 2002-06-14 | Sony Corp | Stream transmitting device and its method |
JP2004235820A (en) * | 2003-01-29 | 2004-08-19 | Mitsubishi Electric Corp | Decoder and decoding method |
JP2007267371A (en) * | 2006-02-28 | 2007-10-11 | Matsushita Electric Ind Co Ltd | Data analysis apparatus and data analysis method |
-
2006
- 2006-12-11 JP JP2006332869A patent/JP2008148004A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0738888A (en) * | 1993-07-02 | 1995-02-07 | Oki Electric Ind Co Ltd | Dynamic image decoding device |
JP2000013240A (en) * | 1998-06-19 | 2000-01-14 | Sony Corp | Code block processing device and method therefor |
JP2002171241A (en) * | 2000-11-29 | 2002-06-14 | Sony Corp | Stream transmitting device and its method |
JP2002171250A (en) * | 2000-12-04 | 2002-06-14 | Fujitsu Ltd | Method for retrieving synchronizing word and circuit for the same |
JP2004235820A (en) * | 2003-01-29 | 2004-08-19 | Mitsubishi Electric Corp | Decoder and decoding method |
JP2007267371A (en) * | 2006-02-28 | 2007-10-11 | Matsushita Electric Ind Co Ltd | Data analysis apparatus and data analysis method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100768058B1 (en) | Encoded stream reproducing apparatus | |
US6898246B2 (en) | Apparatus and method for decoding an MPEG picture stream | |
US20080259962A1 (en) | Contents reproducing apparatus | |
US10075726B2 (en) | Video decoding method/device of detecting a missing video frame | |
US10491944B2 (en) | Decoding device, reception device, transmission device, transmission/reception system, decoding method, and storage medium having decoding program stored therein | |
JP2009524983A (en) | Fast channel change in digital television receivers | |
KR100301825B1 (en) | Mpeg video decoding system and method of processing overflow of mpeg video decoding system | |
US11128911B2 (en) | Decoding device, reception device, transmission device, transmission/reception system, decoding method, and storage medium having decoding program stored therein | |
JP4488958B2 (en) | Video transmission system and video transmission method | |
JP2002027483A (en) | Picture coding system, picture decoding system, and storage media | |
JP2008148004A (en) | Video decoder, digital broadcast receiver, video-decoding method, video-decoding program, and recording medium with video-decoding program stored | |
JPH1093841A (en) | Video synchronizing signal correction device | |
JP4383844B2 (en) | Video display device and video display device control method | |
JP4902258B2 (en) | Data receiving apparatus and computer-readable storage medium | |
JP2005347915A (en) | Digital broadcasting receiver and receiving method | |
JP3597037B2 (en) | Digital broadcast receiver | |
TWI762980B (en) | Method for debugging digital stream and circuit system thereof | |
JP2006352784A (en) | Transmission method, receiver and computer program | |
JP2006332821A (en) | Digital broadcasting receiver and digital broadcast receiving method | |
KR100266172B1 (en) | An apparatus for processing errors in hdtv | |
JP2008283253A (en) | Image transmission system, image encoding device, and image decoding device | |
JP2007043575A (en) | Image processor and image processing method | |
JP2011188310A (en) | Synchronous data detecting apparatus, synchronous data detecting method, and program | |
JP2008022053A (en) | Decoding apparatus, information reproducing apparatus, and electronic equipment | |
KR20030080377A (en) | Method for managing presentation time stamp in digital broadcasting receiver |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091028 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110214 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110222 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110712 |