JP2003284066A - Decoder and decoding method - Google Patents

Decoder and decoding method

Info

Publication number
JP2003284066A
JP2003284066A JP2002089199A JP2002089199A JP2003284066A JP 2003284066 A JP2003284066 A JP 2003284066A JP 2002089199 A JP2002089199 A JP 2002089199A JP 2002089199 A JP2002089199 A JP 2002089199A JP 2003284066 A JP2003284066 A JP 2003284066A
Authority
JP
Japan
Prior art keywords
output
time
data
pts
designated
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.)
Granted
Application number
JP2002089199A
Other languages
Japanese (ja)
Other versions
JP3920125B2 (en
Inventor
Takashi Furuhata
貴司 古畑
Atsushi Sekine
淳 関根
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2002089199A priority Critical patent/JP3920125B2/en
Publication of JP2003284066A publication Critical patent/JP2003284066A/en
Application granted granted Critical
Publication of JP3920125B2 publication Critical patent/JP3920125B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To output data at a timing intended by a coder, even when a designated outputting time contained in coded data is abnormal. <P>SOLUTION: A separator 14 separates the designated outputting time contained in the coded data, and measures the time of arrival of the coded data. Each PTS judgment portion 15, 17 compares the separated designated outputting time with the measured time of arrival, and judges whether or not the designated outputting time is normal. When the designated outputting time is determined to be abnormal, each PTS correction portion 16, 18 corrects the designated outputting time, and outputs it as reference designated outputting time to a memory control portion 21. The control portion 21 outputs decoded data from a buffer 11 at the reference designated outputting time. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は符号化データを復
号して、復号されたデータを出力する復号装置及び復号
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding device and a decoding method for decoding coded data and outputting the decoded data.

【0002】[0002]

【従来の技術】国際符号化標準MPEG2(Movin
g Picture ExpertsGroup IS
O/IES1381−2)に代表される画像、音声の圧
縮技術は、その高画質性と高圧縮効率から放送分野への
採用が普及しつつある。以下、MPEG2の復号の概要
を説明する。
2. Description of the Related Art The international coding standard MPEG2 (Movin
g Picture Experts Group IS
The image and audio compression techniques represented by O / IES1381-2) are becoming widely used in the broadcasting field because of their high image quality and high compression efficiency. The outline of MPEG2 decoding will be described below.

【0003】MPEG2では画像と音声が別々に符号化
される。このため、復号時に両者の同期をとるために、
パック単位で付与される時刻基準参照値PCR(Pro
gram Clock Reference)及びPE
S(PacketizedElementary St
ream)パケット単位で付与される出力指定時刻PT
S(Presentation Time Stam
p)というタイムスタンプ情報を利用する。
In MPEG2, images and audio are encoded separately. Therefore, in order to synchronize both when decrypting,
Time base reference value PCR (Pro
gram Clock Reference) and PE
S (Packetized Elementary St)
ream) Output designated time PT given in packet units
S (Presentation Time Stam)
The time stamp information of p) is used.

【0004】図4はMPEG2による符号化データ(ビ
ットストリーム)のデータ構造例を示す図である。符号
化データの1単位であるパックは、パックに関する情報
を格納するパックヘッダ1、画像の符号化データを格納
する画像PES(Packetized Elemen
tary Stream)パケット2、音声の符号化デ
ータを格納する音声PESパケット3からなる。パック
ヘッダ1には時刻基準参照値PCR6が格納される。
FIG. 4 is a diagram showing an example of the data structure of encoded data (bit stream) according to MPEG2. A pack, which is one unit of encoded data, includes a pack header 1 that stores information about a pack and an image PES (Packetized Elemen) that stores encoded data of an image.
A Tarry Stream packet 2 and an audio PES packet 3 that stores audio encoded data. A time base reference value PCR6 is stored in the pack header 1.

【0005】PESパケットは画像符号化データ(エレ
メンタリーストリーム)及び音声符号化データ(エレメ
ンタリーストリーム)を可変長でパケット化したもので
ある。画像PESパケット2及び音声PESパケット3
は、それぞれPESヘッダ4,5を持ち、これらの中に
出力指定時刻PTS7,8が格納される。1つのPES
パケットは、同じPID(Packet IDenti
fication:13ビットのストリーム識別情報で
当該パケットの個別ストリームの属性を表す)番号を持
つ複数のTS(Transport Stream)パ
ケット9からなる。TSパケットは188バイトの固定
長パケットで、4バイトのTSヘッダ9aとペイロード
9bからなる。
A PES packet is a variable length packetized image coded data (elementary stream) and audio coded data (elementary stream). Image PES packet 2 and audio PES packet 3
Have PES headers 4 and 5, respectively, and output designated times PTS7 and 8 are stored therein. 1 PES
Packets have the same PID (Packet IDenti)
fication: A plurality of TS (Transport Stream) packets 9 each having 13-bit stream identification information and representing the attribute of the individual stream of the packet. The TS packet is a fixed length packet of 188 bytes, and includes a 4-byte TS header 9a and a payload 9b.

【0006】時刻基準参照値PCRは、映像と音声の復
号器を含むMPEG2復号器において、内部に備えてい
るクロックSTC(System Time Cloc
k)の値を符号器側で意図した値に設定及び校正するた
めの情報である。時刻基準参照値PCRは42ビット
(6バイト)で符号化器から送信され、復号器側ではP
CRを構成する最終バイト到着の瞬間に、この時刻基準
参照値PCRの値がクロックSTCに設定される。
The time reference reference value PCR is used as a clock STC (System Time Clock) provided internally in an MPEG2 decoder including a video and audio decoder.
This is information for setting and calibrating the value of k) to a value intended by the encoder side. The time base reference value PCR is transmitted in 42 bits (6 bytes) from the encoder, and P on the decoder side.
At the moment when the final byte forming the CR arrives, the value of the time base reference value PCR is set in the clock STC.

【0007】出力指定時刻PTSは、MPEGシステム
復号器内部のクロックSTCが時刻を計測し、クロック
STCの値がPTSに一致した場合に、当該PESパケ
ットを表示又は出力(以下単に出力と称す)するための
出力指定時刻である。PTSの精度は90kHzのクロ
ックで計測した値を33ビットで表す。出力指定時刻P
TSは符号化器が符号化の際に復号器のために付与す
る。
As the output designated time PTS, the clock STC inside the MPEG system decoder measures the time, and when the value of the clock STC matches the PTS, the PES packet is displayed or output (hereinafter simply referred to as output). Is the designated output time. The accuracy of PTS is 33 bits representing a value measured with a clock of 90 kHz. Output designated time P
The TS is given by the encoder for the decoder at the time of encoding.

【0008】例えば、時刻基準参照値PCRがT0であ
り、復号器がPESパケットを受け取った瞬間からt1
秒後に復号した画像データを出力し、復号器がPESパ
ケットを受け取った瞬間からt2秒後に復号した音声デ
ータを出力させたい場合には、画像データの出力指定時
刻である画像PTSを「T0+t1」、音声データの出
力指定時刻である音声PTSを「T0+t2」とする。
実際には、符号化器は、符号化器と復号器の内部の符号
化処理時間と復号処理時間を考慮して、画像PTS「T
0+t1」、音声PTS「T0+t2」を付与する。
For example, when the time reference reference value PCR is T0 and the decoder receives the PES packet, t1
To output the decoded image data after 2 seconds, and to output the decoded audio data after t2 seconds from the moment when the decoder receives the PES packet, the image PTS that is the designated output time of the image data is “T0 + t1”, The voice PTS, which is the designated output time of the voice data, is set to "T0 + t2".
In reality, the encoder considers the encoding processing time and the decoding processing time inside the encoder and the decoder, and considers the image PTS “T
0 + t1 ”and voice PTS“ T0 + t2 ”are added.

【0009】図5は従来の出力指定時刻PTSを用いた
画像・音声の同期システムの基本概念を示すブロック図
である。復号器の分離部40では、入力ストリームから
音声と画像の各符号化ストリームを分離すると同時に、
それぞれの音声PTSと画像PTSも分離する。タイム
スタンプ比較部43では、それぞれのPTSの差分を算
出し、その結果に応じて音声か画像のどちらか一方の復
号出力を遅延させて両者を同期させる。このとき、音声
復号器41、画像復号器42において異なった遅延が発
生するが、遅延バッファである音声遅延メモリ44、画
像遅延メモリ45においてこの遅延の差分を含めて制御
すれば良い。
FIG. 5 is a block diagram showing the basic concept of a conventional image / sound synchronization system using the designated output time PTS. The separation unit 40 of the decoder separates each encoded stream of audio and image from the input stream, and at the same time,
Each audio PTS and image PTS are also separated. The time stamp comparison unit 43 calculates the difference between the PTSs and delays the decoded output of either audio or image according to the result to synchronize the two. At this time, different delays occur in the audio decoder 41 and the image decoder 42, but the audio delay memory 44 and the image delay memory 45, which are delay buffers, may be controlled by including the difference in the delays.

【0010】MPEGシステムには、MPEG2多重ス
トリームを分離し、1つの番組を構成する要素である個
々の符号化された画像・音声ストリームを得て、それぞ
れに対応する画像・音声復号器に対してバッファリング
して同期した出力を行う過程を表現するための仮想的な
デコーダモデルがあり、システムターゲットデコーダ
(以下STD)と称する。STDは出力指定時刻PTS
を用いた同期制御方式を実現するためのタイミングの規
定を正確に行うための理論的なモデルであり、実際の復
号器はこのモデル(STD)と異なる構成で良い。
In the MPEG system, the MPEG2 multiplex stream is separated, individual encoded image / audio streams that are elements constituting one program are obtained, and are supplied to the corresponding image / audio decoders. There is a virtual decoder model for expressing the process of performing buffered and synchronized output, and is called a system target decoder (hereinafter STD). STD is designated output time PTS
This is a theoretical model for accurately defining the timing for realizing the synchronous control method using the above, and the actual decoder may have a configuration different from this model (STD).

【0011】図6はトランスポートストリームのシステ
ムターゲットデコーダであるT−STDの構成を示すブ
ロック図である。T−STDはデマルチプレクサ部5
0、トランスポートバッファ51、メインバッファ5
2、画像又は音声の復号器54で構成される。画像の場
合、メインバッファ52は多重バッファ52aとエレメ
ンタリーストリームバッファ52bの2つの部分に分け
て規定されている。多重バッファ52aは次段のエレメ
ントリストリームバッファ52bへのデータ転送速度の
整合性が取れるように機能している。エレメンタリース
トリームバッファ52bは、データを蓄積するVBV
(Video Buffering Verifie
r)バッファ機能を有している。
FIG. 6 is a block diagram showing the structure of a T-STD which is a system target decoder for a transport stream. T-STD is the demultiplexer unit 5
0, transport buffer 51, main buffer 5
2. An image or audio decoder 54. In the case of an image, the main buffer 52 is defined by being divided into two parts, a multiplex buffer 52a and an elementary stream buffer 52b. The multiplex buffer 52a functions so that the data transfer rate to the element re-stream buffer 52b at the next stage can be matched. The elementary stream buffer 52b stores VBV for storing data.
(Video Buffering Verify
r) It has a buffer function.

【0012】また、図中には示されていないが、時刻を
計測するクロックSTCが備えられており、このクロッ
クSTCにビットストリーム中の時刻基準参照値PCR
の値が設定される。
Although not shown in the figure, a clock STC for measuring the time is provided, and the clock STC has a time reference reference value PCR in the bit stream.
The value of is set.

【0013】次にT−STDの動作を説明する。T−S
TDでは、エレメンタリーストリームのアクセスユニッ
ト(図示せず)が、図5中のtpnに相当する時刻にメ
インバッファ52から復号器54へ瞬時に転送され復号
表示されると規定している。すなわち、このtpnが出
力指定時刻PTS7,8として符号化器においてPES
パケットヘッダ4,5中に格納される。T−STDは、
時刻基準参照値PCRの値により設定されたクロックS
TCの値が出力指定時刻PTSと一致した時点で、メイ
ンバッファ52中の当該符号化データを復号し出力す
る。
Next, the operation of T-STD will be described. T-S
The TD defines that an access unit (not shown) of an elementary stream is instantaneously transferred from the main buffer 52 to the decoder 54 and decoded and displayed at a time corresponding to tpn in FIG. That is, this tpn is designated as the output designated time PTS7, 8 by the PES in the encoder.
It is stored in the packet headers 4 and 5. T-STD is
The clock S set by the value of the time base reference value PCR
When the value of TC matches the designated output time PTS, the encoded data in the main buffer 52 is decoded and output.

【0014】図7はMPEG2ビットストリームの構成
を示す図である。メインバッファ52のサイズはVBV
バッファサイズとしてシーケンスヘッダ71に格納され
ている。また、符号化データの各ピクチャの先頭(pi
cture start code)がVBVバッファ
に入力されてから復号されるまでの時間を示すバッファ
蓄積情報vbv delayは、ピクチャヘッダ72に
格納されており、VBVバッファサイズとバッファ蓄積
情報vbv delayの条件に基づいて、メインバッ
ファ52は入力されるストリームの蓄積とタイムスタン
プによるデータの履き出し動作を行う。
FIG. 7 is a diagram showing the structure of an MPEG2 bit stream. The size of the main buffer 52 is VBV
It is stored in the sequence header 71 as a buffer size. In addition, the head of each picture of the encoded data (pi
The buffer accumulation information vbv delay indicating the time from the input of the (cture start code) to the VBV buffer until the decoding is stored in the picture header 72, and based on the conditions of the VBV buffer size and the buffer accumulation information vbv delay. The main buffer 52 accumulates an input stream and outputs data by a time stamp.

【0015】図8はシステムターゲットデコーダにおけ
るメインバッファ52の動作を説明する図である。メイ
ンバッファ52に各データが蓄積され、バッファ蓄積情
報vbv delay間隔毎の各出力指定時刻PTSに
各データが出力される。
FIG. 8 is a diagram for explaining the operation of the main buffer 52 in the system target decoder. Each data is stored in the main buffer 52, and each data is output at each output designated time PTS for each buffer storage information vbv delay interval.

【0016】このように、MPEG2復号器において復
号した画像データと復号した音声データを、符号化器が
意図したタイミングで出力させるためには、符号化器で
付与される出力指定時刻PTSが正常な値であることが
必要である。
As described above, in order to output the image data decoded by the MPEG2 decoder and the decoded audio data at the timing intended by the encoder, the designated output time PTS given by the encoder is normal. Must be a value.

【0017】一方、放送分野でMPEGシステムを使用
する場合、音声と映像のAV同期は数msの精度で合っ
ていることが要求される。しかしながら、符号化器の状
態や符号化器から復号器間の伝送路の状態によって伝送
誤りが生じ、出力指定時刻PTSが正常な値でなくなっ
た場合に、そのPTSを用いて出力制御を行うと、画像
データ又は音声データの出力タイミングが正しいタイミ
ングとならず、AV同期が要求精度を満足しない場合が
発生する。
On the other hand, when the MPEG system is used in the broadcasting field, it is required that audio and video AV synchronization be synchronized with each other with an accuracy of several ms. However, if a transmission error occurs due to the state of the encoder or the state of the transmission line between the encoder and the decoder and the designated output time PTS is no longer a normal value, the output control is performed using that PTS. In some cases, the output timing of image data or audio data is not the correct timing and the AV synchronization does not satisfy the required accuracy.

【0018】例えば、時刻基準参照値PCRがT0であ
り、復号器がPESパケットを受け取った瞬間からt3
秒後に画像PESパケットと音声PESパケットを同時
に出力させるために、符号化器において画像PTS、音
声PTSを共に「T0+t3」として付与した場合で、
伝送路の状態によって音声PTSだけが伝送誤りにより
異常となり「T0+t4」となった場合は、画像データ
と音声データが同時に出力されない。この差がAV同期
の要求精度以内であれば問題ないが、要求精度を越えた
場合はMPEGシステムの信頼性に係わる問題となる。
For example, when the time reference reference value PCR is T0 and the decoder receives a PES packet from the moment it is t3.
In the case where both the image PTS and the audio PTS are added as “T0 + t3” in the encoder in order to output the image PES packet and the audio PES packet simultaneously after a second,
When only the audio PTS becomes abnormal due to a transmission error due to the state of the transmission path and becomes "T0 + t4", image data and audio data are not output at the same time. If this difference is within the required accuracy of AV synchronization, there is no problem, but if it exceeds the required accuracy, there is a problem with the reliability of the MPEG system.

【0019】また、画像データの出力指定時刻である画
像PTSは、時刻基準参照値PCRにより設定されたク
ロックSTCにより計測された画像データの到着時刻よ
り大きい値、すなわち、画像PTSが画像データの到着
時刻より遅い時刻である必要があるが、画像PTSが符
号化データ到着時刻より小さい値、すなわち、画像PT
Sが画像データの到着時刻より早い時刻である場合に
は、画像データが出力されない。画像データが出力され
ない状態が続けば、放送事故と判定される場合も考えら
れる。
The image PTS, which is the designated output time of the image data, is larger than the arrival time of the image data measured by the clock STC set by the time reference value PCR, that is, the image PTS is the arrival of the image data. It is necessary that the time is later than the time, but the image PTS is smaller than the coded data arrival time, that is, the image PT.
If S is earlier than the arrival time of the image data, the image data is not output. If the image data is not output continuously, it may be judged as a broadcast accident.

【0020】さらに、例えば画像PTSが異常であり、
ストリーム中のバッファサイズより大きな値となった場
合、メインバッファ52の制御が正しく行われず、メイ
ンバッファ52のオーバーフローが発生する。その場合
は出力される画像データが異常となる。
Further, for example, the image PTS is abnormal,
When the value becomes larger than the buffer size in the stream, the control of the main buffer 52 is not performed correctly, and the main buffer 52 overflows. In that case, the output image data becomes abnormal.

【0021】さらに、MPEG規格が制定される前に作
製された符号化器の中には、上記T−STDモデルに準
拠せず、画像PTSが正しく付与されていないものがあ
る。そのような符号化器が生成する符号化データは、T
−STD準拠の復号器において画像データと音声データ
のタイミングを合わせることが困難である。
Further, some encoders manufactured before the MPEG standard is established do not comply with the T-STD model and the image PTS is not correctly added. The encoded data produced by such an encoder is T
-It is difficult for a STD-compliant decoder to match the timing of image data and audio data.

【0022】[0022]

【発明が解決しようとする課題】従来の復号装置は以上
のように構成されているので、PESパケットに格納さ
れている出力指定時刻PTSが正常でない場合には、画
像データと音声データを正しいタイミングで出力させる
ことができなかったり、画像データと音声データの出力
が途切れてしまうという課題があった。
Since the conventional decoding device is configured as described above, when the output designated time PTS stored in the PES packet is not normal, the image data and the audio data are correctly timed. However, there was a problem that it could not be output with or the output of the image data and the audio data was interrupted.

【0023】この発明は上記のような課題を解決するた
めになされたもので、PESパケットに格納されている
出力指定時刻PTSが正常でない場合でも、符号化器が
意図したタイミングで画像データ、音声データを途切れ
なく出力することができる復号装置及び復号方法を得る
ことを目的とする。
The present invention has been made to solve the above problems. Even when the designated output time PTS stored in the PES packet is not normal, the image data and the audio are reproduced at the timing intended by the encoder. An object is to obtain a decoding device and a decoding method that can output data without interruption.

【0024】[0024]

【課題を解決するための手段】この発明に係る復号装置
は、分離器により分離された出力指定時刻と計測された
到着時刻を比較し、出力指定時刻が正常であるか否かを
判定するPTS判定部と、出力指定時刻が異常と判定さ
れた場合に、出力指定時刻を補正して基準出力指定時刻
として出力するPTS補正部と、復号器により復号され
たデータをバッファに格納し、PTS補正部により出力
された基準出力指定時刻にバッファに格納されている復
号されたデータを出力するメモリ制御部とを備えたもの
である。
A decoding device according to the present invention compares a designated output time separated by a separator with a measured arrival time to determine whether the designated output time is normal or not. The determination unit, the PTS correction unit that corrects the output designated time and outputs it as the reference output designated time when it is determined that the output designated time is abnormal, stores the data decoded by the decoder in the buffer, and corrects the PTS. And a memory control unit for outputting the decoded data stored in the buffer at the reference output designated time output by the unit.

【0025】この発明に係る復号装置は、出力指定時刻
が到着時刻よりも早い場合にPTS判定部が出力指定時
刻を異常と判定するものである。
In the decoding device according to the present invention, the PTS determination unit determines that the output designated time is abnormal when the designated output time is earlier than the arrival time.

【0026】この発明に係る復号装置は、PTS補正部
が予め設定されている所定値を到着時刻に加算して基準
出力指定時刻として出力するものである。
In the decoding device according to the present invention, the PTS correction unit adds a predetermined value set in advance to the arrival time and outputs it as the reference output designated time.

【0027】この発明に係る復号装置は、PTS補正部
が符号化データに含まれるバッファ蓄積量情報を到着時
刻に加算して基準出力指定時刻として出力するものであ
る。
In the decoding device according to the present invention, the PTS correction unit adds the buffer storage amount information included in the encoded data to the arrival time and outputs it as the reference output designated time.

【0028】この発明に係る復号装置は、到着間隔判定
部により符号化データの到着間隔が正常と判定された場
合に、PTS補正部が出力指定時刻を補正して基準出力
指定時刻として出力するものである。
In the decoding apparatus according to the present invention, when the arrival interval determination unit determines that the arrival interval of encoded data is normal, the PTS correction unit corrects the output designated time and outputs it as the reference output designated time. Is.

【0029】この発明に係る復号装置は、到着間隔判定
部により符号化データの到着間隔が異常と判定された場
合に、PTS補正部が補正された出力指定時刻に符号化
データの正常な到着間隔を加算して基準出力指定時刻と
して出力するものである。
In the decoding device according to the present invention, when the arrival interval determination unit determines that the arrival interval of the encoded data is abnormal, the PTS correction unit corrects the normal arrival interval of the encoded data at the corrected designated output time. Is added and output as the reference output designated time.

【0030】この発明に係る復号装置は、分離器により
分離された画像データの出力指定時刻と計測された到着
時刻を比較し、画像データの出力指定時刻が正常である
か否かを判定する画像PTS判定部と、画像データの出
力指定時刻が異常と判定された場合に、画像データの出
力指定時刻を補正して基準出力指定時刻として出力する
画像PTS補正部と、分離器により分離された音声デー
タの出力指定時刻と計測された到着時刻を比較し、音声
データの出力指定時刻が正常であるか否かを判定する音
声PTS判定部と、音声データの出力指定時刻が異常と
判定された場合に、音声データの出力指定時刻を補正し
て基準出力指定時刻として出力する音声PTS補正部
と、画像復号器により復号された画像データと音声復号
器により復号された音声データをバッファに格納し、画
像PTS補正部により出力された基準出力指定時刻に、
バッファに格納されている復号された画像データを出力
すると共に、音声PTS補正部により出力された基準出
力指定時刻に、バッファに格納されている復号された音
声データを出力するメモリ制御部とを備えたものであ
る。
The decoding device according to the present invention compares the designated output time of the image data separated by the separator with the measured arrival time to determine whether the designated output time of the image data is normal or not. A PTS determination unit, an image PTS correction unit that corrects the output designated time of the image data and outputs it as the reference output designated time when the output designated time of the image data is determined to be abnormal, and the audio separated by the separator. When the output designated time of data is compared with the measured arrival time, and the audio PTS determination unit determines whether or not the designated output time of audio data is normal, and when the designated output time of audio data is determined to be abnormal In addition, the audio PTS correction unit that corrects the output designated time of the audio data and outputs it as the reference output designated time, and the image data decoded by the image decoder and the audio decoder Storing the voice data in the buffer, the outputted reference output time specified by the image PTS correction unit,
A memory control unit that outputs the decoded image data stored in the buffer, and outputs the decoded audio data stored in the buffer at the reference output designated time output by the audio PTS correction unit. It is a thing.

【0031】この発明に係る復号方法は、分離された出
力指定時刻と計測された到着時刻を比較して出力指定時
刻が正常であるか否かを判定し、出力指定時刻が異常と
判定された場合に、出力指定時刻を補正して基準出力指
定時刻として出力し、復号されたデータを基準出力指定
時刻に出力するものである。
In the decoding method according to the present invention, the separated designated output time is compared with the measured arrival time to determine whether the designated output time is normal, and the designated output time is determined to be abnormal. In this case, the output designated time is corrected and output as the reference output designated time, and the decoded data is output at the reference output designated time.

【0032】この発明に係る復号方法は、符号化データ
の到着間隔が正常と判定された場合に、出力指定時刻を
補正して基準出力指定時刻として出力し、符号化データ
の到着間隔が異常と判定された場合に、補正された出力
指定時刻に符号化データの正常な到着間隔を加算して基
準出力指定時刻として出力するものである。
In the decoding method according to the present invention, when it is determined that the arrival interval of the encoded data is normal, the output designated time is corrected and output as the reference output designated time, and the arrival interval of the encoded data is abnormal. When it is determined, the normal arrival interval of encoded data is added to the corrected designated output time and the corrected output designated time is output as the reference output designated time.

【0033】[0033]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1による復
号装置であるMPEG2デコーダの構成を示すブロック
図である。図において、10は符号化データから音声デ
ータと画像データを復号する復号処理回路、11は音声
データと画像データを蓄積するバッファ、12は復号処
理回路10及びバッファ11を統括制御するホストCP
Uであり、MPEG2デコーダは、大別して復号処理回
路10、バッファ11及びホストCPU12から構成さ
れる。13は復号処理回路10とホストCPU12を接
続するシステムバスで、アドレス、データ及び割込み信
号等の制御信号を伝送する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below. Embodiment 1. 1 is a block diagram showing a configuration of an MPEG2 decoder which is a decoding device according to Embodiment 1 of the present invention. In the figure, 10 is a decoding processing circuit that decodes audio data and image data from encoded data, 11 is a buffer that stores audio data and image data, and 12 is a host CP that collectively controls the decoding processing circuit 10 and the buffer 11.
The MPEG2 decoder, which is U, is roughly composed of a decoding processing circuit 10, a buffer 11 and a host CPU 12. A system bus 13 connects the decoding processing circuit 10 and the host CPU 12 and transmits control signals such as addresses, data and interrupt signals.

【0034】また、図1の復号処理回路10において、
14は分離器であり、符号化データであるビットストリ
ームを画像データのエレメンタリーストリームである画
像ESと音声データのエレメンタリーストリームである
音声ESに分離すると共に、画像データの出力指定時刻
である画像PTSと音声データの出力指定時刻である音
声PTSを分離する。また、分離器14は、内部に備え
ているクロックSTCにビットストリーム中の時刻基準
参照値PCRを分離して設定し、時刻基準参照値PCR
を基に時刻の計測を開始し、画像PTSの到着時間と音
声PTSの到着時刻を計測する。
Further, in the decoding processing circuit 10 of FIG.
Reference numeral 14 denotes a separator that separates a bit stream that is encoded data into an image ES that is an elementary stream of image data and an audio ES that is an elementary stream of audio data, and an image that is an output designated time of the image data. The PTS and the audio PTS which is the designated output time of the audio data are separated. Further, the separator 14 separates and sets the time reference reference value PCR in the bitstream to the clock STC provided therein, and the time reference reference value PCR
Based on, the time measurement is started, and the arrival time of the image PTS and the arrival time of the audio PTS are measured.

【0035】さらに、図1の復号処理回路10におい
て、15は分離された画像PTSと計測された画像PT
Sの到着時間を比較し、画像PTSが正常であるか否か
を判定する画像PTS判定部(PTS判定部)、16は
画像PTSが異常と判定された場合に画像PTSを補正
して基準出力指定時刻である基準PTSを出力する画像
PTS補正部(PTS補正部)、17は分離された音声
PTSと計測された音声PTSの到着時間を比較し、音
声PTSが正常であるか否かを判定する音声PTS判定
部(PTS判定部)、18は音声PTSが異常と判定さ
れた場合に音声PTSを補正して基準出力指定時刻であ
る基準PTSを出力する音声PTS補正部(PTS補正
部)である。
Further, in the decoding processing circuit 10 of FIG. 1, 15 is a separated image PTS and a measured image PT.
An image PTS determination unit (PTS determination unit) that determines whether or not the image PTS is normal by comparing the arrival times of S, 16 corrects the image PTS when the image PTS is determined to be abnormal, and outputs a reference output. An image PTS correction unit (PTS correction unit) 17 that outputs a reference PTS that is a designated time compares the arrival times of the separated audio PTS and the measured audio PTS to determine whether the audio PTS is normal. A voice PTS determination unit (PTS determination unit) 18, which is a voice PTS correction unit (PTS correction unit) that corrects the voice PTS and outputs the reference PTS that is the reference output designated time when the voice PTS is determined to be abnormal. is there.

【0036】さらに、図1の復号処理回路10におい
て、19は分離された画像ESから主に画像データを復
号する画像復号器(復号器)、20は分離された音声E
Sから音声データを復号する音声復号器(復号器)、2
1はバッファ11に対する書込み/読出しを制御するメ
モリ制御部である。この復号処理回路10全体を1個の
LSIに集積することも可能である。
Further, in the decoding processing circuit 10 of FIG. 1, 19 is an image decoder (decoder) that mainly decodes image data from the separated image ES, and 20 is a separated audio E.
A voice decoder (decoder) for decoding voice data from S, 2
Reference numeral 1 is a memory control unit that controls writing / reading to / from the buffer 11. It is also possible to integrate the entire decoding processing circuit 10 in one LSI.

【0037】さらに、図1のバッファ11において、1
1aは分離された画像ESをメモリ制御部21の制御に
より蓄積する画像ESバッファ、11bは分離された音
声ESをメモリ制御部21の制御により蓄積する音声E
Sバッファ、11cは画像復号器19により復号された
画像データをメモリ制御部21の制御により出力するま
で蓄積する画像出力バッファ、11dは音声復号器20
により復号された音声データをメモリ制御部21の制御
により出力するまで蓄積する音声出力バッファである。
Further, in the buffer 11 of FIG.
1a is an image ES buffer that stores the separated image ES under the control of the memory control unit 21, and 11b is a sound E that stores the separated sound ES under the control of the memory control unit 21.
An S buffer, 11c is an image output buffer that stores the image data decoded by the image decoder 19 until it is output under the control of the memory control unit 21, and 11d is an audio decoder 20.
It is an audio output buffer that accumulates the audio data decoded by the method until it is output under the control of the memory control unit 21.

【0038】次に動作について説明する。MPEG2デ
コーダの入力手段(図示せず)を介して復号処理回路1
0に入力された符号化データ(ビットストリーム)は、
分離器14により画像ESと音声ESに分離される。分
離された画像ESと音声ESは、メモリ制御部21の制
御により、それぞれ画像ESバッファ11a、音声ES
バッファ11bに蓄積される。
Next, the operation will be described. Decoding processing circuit 1 via input means (not shown) of MPEG2 decoder
The encoded data (bit stream) input to 0 is
The separator 14 separates the image ES and the sound ES. The separated image ES and audio ES are respectively controlled by the memory control unit 21 to be the image ES buffer 11a and the audio ES.
It is stored in the buffer 11b.

【0039】画像ESバッファ11a、音声ESバッフ
ァ11bに蓄積された画像ESと音声ESは、メモリ制
御部21の制御により、それぞれ画像復号器19と音声
復号器20に出力される。画像復号器19と音声復号器
20は、それぞれ画像データと音声データを復号し、復
号された画像データと復号された音声データは、メモリ
制御部21の制御により、画像出力バッファ11cと音
声出力バッファ11dにそれぞれ蓄積される。
The image ES and the audio ES stored in the image ES buffer 11a and the audio ES buffer 11b are output to the image decoder 19 and the audio decoder 20, respectively, under the control of the memory controller 21. The image decoder 19 and the audio decoder 20 respectively decode the image data and the audio data, and the decoded image data and the decoded audio data are controlled by the memory control unit 21 and the image output buffer 11 c and the audio output buffer 11 c are output. 11d are stored respectively.

【0040】分離器14は画像ESと音声ESを分離す
ると同時に、画像PTSと音声PTSを分離して、それ
ぞれ画像PTS判定部15及び音声PTS判定部17に
出力する。また、分離器14は、入力された符号化デー
タから時刻基準参照値PCRを分離し、内部に備えてい
るクロックSTCに分離した時刻基準参照値PCRを設
定し、設定された時刻基準参照値PCRを基に時刻の計
測を開始し、画像PTSの到着時間を計測して画像PT
S判定部15に出力し、音声PTSの到着時刻を計測し
て音声PTS判定部17に出力する。
The separator 14 separates the image ES and the sound ES, and at the same time, separates the image PTS and the sound PTS and outputs them to the image PTS determination unit 15 and the sound PTS determination unit 17, respectively. Further, the separator 14 separates the time reference reference value PCR from the input coded data, sets the separated time reference reference value PCR in the internal clock STC, and sets the set time reference reference value PCR. The measurement of the time is started based on the
It outputs to the S determination unit 15, measures the arrival time of the voice PTS, and outputs it to the voice PTS determination unit 17.

【0041】画像PTS判定部15は、画像データの出
力指定時刻である画像PTSと、この画像PTSの到着
時刻の位相関係、すなわち、画像PTSと到着時刻の前
後関係を判定する。MPEGシステム規定により入力さ
れた符号化データがT−STDモデルに準拠していれ
ば、(画像)PTSと(画像PTSの)到着時刻の前後
関係は次の(1)式で示され、(画像)PTSは到着時
刻より遅い時刻になっている。 到着時刻<PTS (1) 画像PTS判定部15による判定の結果、(画像)PT
Sと(画像PTSの)到着時刻の前後関係が(1)式を
満たさない場合は、画像PTSが異常と判断して、画像
PTS補正部16に画像PTSの到着時刻を出力して画
像PTSの補正指示を行う。
The image PTS determination unit 15 determines the phase relationship between the image PTS which is the designated output time of the image data and the arrival time of this image PTS, that is, the front-back relation between the image PTS and the arrival time. If the encoded data input according to the MPEG system standard conforms to the T-STD model, the front-back relationship between the (image) PTS and the arrival time (of the image PTS) is represented by the following equation (1), ) PTS is later than the arrival time. Arrival time <PTS (1) As a result of the determination by the image PTS determination unit 15, (image) PT
If the relationship between S and the arrival time (of the image PTS) does not satisfy the expression (1), it is determined that the image PTS is abnormal, and the arrival time of the image PTS is output to the image PTS correction unit 16 to output the image PTS. Give a correction instruction.

【0042】図2は出力指定時刻PTSの補正方法を示
す図である。画像PTS判定部15から補正指示を受け
た画像PTS補正部16は、図2に示すように、受け取
った画像PTSの到着時刻から次の(2)式に従って画
像PTSの補正を行い、基準出力指定時刻(基準PT
S)としてメモリ制御部21に出力する。 基準PTS=到着時刻+補正値 (2)
FIG. 2 is a diagram showing a method for correcting the designated output time PTS. Upon receiving the correction instruction from the image PTS determination unit 15, the image PTS correction unit 16 corrects the image PTS according to the following equation (2) from the arrival time of the received image PTS, and specifies the reference output, as shown in FIG. Time (standard PT
S) is output to the memory control unit 21. Reference PTS = arrival time + correction value (2)

【0043】ここで、上記(2)式における補正値は予
め決められた所定値でも良いし、画像のバッファ蓄積量
情報であるvbv delayから計算しても良い。M
PEG2に準拠していない符号器からの符号化データに
は、画像PTSが正しく付与されていないものがある
が、そのような場合には、予め既知の所定値を補正値と
して使用する。
Here, the correction value in the above equation (2) may be a predetermined value determined in advance, or may be calculated from vbv delay which is the image buffer accumulation amount information. M
Some encoded data from an encoder that does not comply with PEG2 does not have the image PTS added correctly. In such a case, a known predetermined value is used as a correction value in advance.

【0044】一方、分離された音声PTSと計測された
音声PTSの到着時刻を受け取った音声PTS判定部1
7も、画像PTS判定部15と同様にして、音声PTS
と音声PTSの到着時刻の前後関係を判定する。MPE
Gシステム規定により入力した符号化データがT−ST
Dモデルに準拠していれば、(音声)PTSと(音声P
TSの)到着時刻は上記(1)式の関係が成り立つ。音
声PTS判定部17による判定の結果、(音声)PTS
と(音声PTSの)到着時刻の前後関係が、上記(1)
式を満たさない場合は、音声PTSが異常と判断し、音
声PTS補正部18に音声PTSの到着時刻を出力し、
音声PTSの補正指示を行う。
On the other hand, the voice PTS judging section 1 which has received the arrival times of the separated voice PTS and the measured voice PTS
Similarly to the image PTS determination unit 15, the audio PTS 7
And the context of the arrival time of the voice PTS is determined. MPE
Encoded data input according to the G system standard is T-ST
If it conforms to the D model, (voice) PTS and (voice P
For the arrival time (of TS), the relationship of the above equation (1) is established. As a result of the determination by the voice PTS determination unit 17, (voice) PTS
And the context of the arrival time (of the voice PTS) is (1) above.
If the expression is not satisfied, it is determined that the audio PTS is abnormal, and the arrival time of the audio PTS is output to the audio PTS correction unit 18,
An instruction to correct the audio PTS is given.

【0045】音声PTS判定部17から補正指示を受け
た音声PTS補正部18は、受け取った音声PTSの到
着時刻から上記(2)式に従って音声PTSの補正を行
い、基準出力指定時刻(基準PTS)としてメモリ制御
部21に出力する。ここで、補正値は予め決められた所
定値でも良いし、画像のバッファ蓄積量情報であるvb
v delayから計算しても良い。
The voice PTS correction unit 18, which receives the correction instruction from the voice PTS determination unit 17, corrects the voice PTS according to the above equation (2) from the arrival time of the received voice PTS, and specifies the reference output designated time (reference PTS). To the memory control unit 21. Here, the correction value may be a predetermined value or vb which is the buffer storage amount information of the image.
It may be calculated from v delay.

【0046】MPEG2に準拠していない符号器からの
符号化データには、音声PTSが正しく付与されていな
いものがあるが、そのような場合には、予め既知の所定
値を補正値として使用する。また、補正値として画像の
バッファ蓄積量情報vbvdelayを使用した場合
は、符号化器で想定した正しい音声データの出力タイミ
ングとならない可能性もあるが、復号された音声データ
が出力されないという事態を回避することが可能とな
る。
Some encoded data from an encoder that is not compliant with MPEG2 does not have the audio PTS added correctly. In such a case, a predetermined value known in advance is used as a correction value. . Further, when the image buffer accumulation amount information vbvdelay is used as the correction value, the output timing of the audio data assumed by the encoder may not be correct, but the situation in which the decoded audio data is not output is avoided. It becomes possible to do.

【0047】メモリ制御部21は、画像PTS補正部1
6からの基準PTSのタイミングで、画像出力バッファ
11cに蓄積されている画像データを、画像復号器19
を介して映像出力として出力し、音声PTS補正部18
からの基準PTSのタイミングで、音声出力バッファ1
1dに蓄積されている音声データを、音声復号器20を
介して音声出力として出力する。
The memory control unit 21 includes the image PTS correction unit 1
The image data accumulated in the image output buffer 11c at the timing of the reference PTS from
Output as a video output via the audio PTS correction unit 18
Audio output buffer 1 at the timing of the reference PTS from
The audio data stored in 1d is output as an audio output via the audio decoder 20.

【0048】以上のように、この実施の形態1によれ
ば、符号化データに含まれる出力指定時刻PTSが異常
となっている場合でも、復号された画像データと復号さ
れた音声データを正しいタイミングで途切れなく出力さ
せることができるという効果が得られる。
As described above, according to the first embodiment, even when the designated output time PTS included in the encoded data is abnormal, the decoded image data and the decoded audio data are correctly timed. It is possible to obtain the effect that the output can be output without interruption.

【0049】実施の形態2.図3はこの発明の実施の形
態2による復号装置であるMPEG2デコーダの構成を
示すブロック図であり、図において、22は符号化デー
タの到着間隔が正常であるか否かを判定する到着間隔判
定部であり、その他の構成は実施の形態1の図1に示す
構成と同等である。
Embodiment 2. FIG. 3 is a block diagram showing the configuration of an MPEG2 decoder that is a decoding device according to the second embodiment of the present invention. In the figure, reference numeral 22 is an arrival interval determination for determining whether or not the arrival interval of encoded data is normal. The other configuration is the same as the configuration shown in FIG. 1 of the first embodiment.

【0050】次に動作について説明する。出力指定時刻
PTSはPESパケット毎に格納されているので、正し
いタイミングで復号された画像データと音声データを出
力するために、実施の形態1のように、画像PTS及び
音声PTSの判定、並びに画像PTSの補正及び音声P
TSの補正を、PESパケット到着毎に実施するが、以
下の場合には、これに限らない。
Next, the operation will be described. Since the designated output time PTS is stored for each PES packet, in order to output the decoded image data and audio data at the correct timing, the determination of the image PTS and the audio PTS and the image are performed as in the first embodiment. PTS correction and voice P
The TS correction is performed every arrival of the PES packet, but the present invention is not limited to this in the following cases.

【0051】画像PESパケットは映像フレーム間隔3
3msで到着するが、符号化器が原因で映像フレーム到
着間隔が33msとならない場合には、上記(2)式に
従って補正を実施するとバッファ11が破綻し画像デー
タの出力が異常となる。
The image PES packet has a video frame interval of 3
Although the image data arrives in 3 ms, if the video frame arrival interval does not reach 33 ms due to the encoder, if the correction is performed according to the above equation (2), the buffer 11 breaks down and the image data output becomes abnormal.

【0052】到着間隔判定部22は画像PESパケット
が到着した時刻の間隔を計数し、正しい到着間隔33m
sで到着しているか否かを判定し、判定結果を画像PT
S補正部16に出力する。到着間隔判定部22により到
着間隔が正常と判定された場合に、画像PTS補正部1
6は、実施の形態1のように、上記(2)式を使用して
画像PTSを補正して基準PTSとしてメモリ制御部2
1に出力する。
The arrival interval determination unit 22 counts the intervals at which the image PES packets arrive, and determines the correct arrival interval 33 m.
It is determined whether or not it has arrived in s, and the determination result is the image PT.
It is output to the S correction unit 16. When the arrival interval determination unit 22 determines that the arrival interval is normal, the image PTS correction unit 1
In the sixth embodiment, as in the first embodiment, the image control PTS is corrected by using the above formula (2) to set the reference PTS as the memory control unit 2.
Output to 1.

【0053】一方、到着間隔判定部22により、その後
に続く画像PESパケットの到着間隔が異常だと判定さ
れた場合には、画像PTS補正部16は、到着した画像
PTSの補正に上記(2)式を使用せずに、上記基準P
TSに画像復号フレーム周期である33msを加算し
て、新たな基準PTSとしてメモリ制御部21に出力す
る。
On the other hand, when the arrival interval determination unit 22 determines that the arrival interval of the subsequent image PES packet is abnormal, the image PTS correction unit 16 corrects the arrived image PTS by the above (2). The above criteria P
The image decoding frame period of 33 ms is added to TS and output to the memory control unit 21 as a new reference PTS.

【0054】また、到着間隔判定部22は音声PESパ
ケットが到着した時刻の間隔を計数し、正しい到着間隔
で到着しているか否かを判定し、判定結果を音声PTS
補正部18に出力する。到着間隔判定部22により到着
間隔が正常と判定された場合に、音声PTS補正部18
は、実施の形態1のように、上記(2)式を使用して音
声PTSを補正して基準PTSとしてメモリ制御部21
に出力する。
The arrival interval determination unit 22 also counts the time intervals at which the voice PES packets arrive, determines whether they arrive at the correct arrival intervals, and outputs the determination result as the voice PTS.
Output to the correction unit 18. When the arrival interval determination unit 22 determines that the arrival interval is normal, the voice PTS correction unit 18
Is the same as in the first embodiment, the audio PTS is corrected by using the above equation (2) and the memory control unit 21 is used as the reference PTS.
Output to.

【0055】一方、到着間隔判定部22により、その後
に続く音声PESパケットの到着間隔が異常だと判定さ
れた場合には、音声PTS補正部18は、到着した音声
PTSの補正に上記(2)式を使用せずに、上記基準P
TSに音声復号フレーム周期を加算して、新たな基準P
TSとしてメモリ制御部21に出力する。
On the other hand, when the arrival interval determination unit 22 determines that the arrival interval of the subsequent audio PES packet is abnormal, the audio PTS correction unit 18 corrects the arrived audio PTS by the above (2). The above criteria P
The speech decoding frame period is added to TS to obtain a new reference P
It is output to the memory control unit 21 as a TS.

【0056】その他の分離器14、画像PTS判定部1
5、音声PTS判定部17、画像復号器19、音声復号
器20、メモリ制御部21の処理については、実施の形
態1と同様である。
Other separators 14 and image PTS judging section 1
5. The processes of the audio PTS determination unit 17, the image decoder 19, the audio decoder 20, and the memory control unit 21 are the same as those in the first embodiment.

【0057】以上のように、この実施の形態2によれ
ば、符号化データが到着する到着間隔が正常でない場合
においても、復号された画像データと復号された音声デ
ータを正しいタイミングで途切れなく出力させることが
できるという効果が得られる。
As described above, according to the second embodiment, the decoded image data and the decoded audio data are output at the correct timing without interruption even if the arrival interval of the coded data is not normal. The effect that it can be obtained is obtained.

【0058】上記実施の形態1及び実施の形態2では、
復号装置としてMPEG2デコーダの例を説明している
が、他のデコーダの場合についても、この発明を同様に
適用できる。
In the first and second embodiments described above,
Although an example of the MPEG2 decoder is described as the decoding device, the present invention can be similarly applied to the case of other decoders.

【0059】[0059]

【発明の効果】以上のように、この発明によれば、分離
器により分離された出力指定時刻と計測された到着時刻
を比較し、出力指定時刻が正常であるか否かを判定する
PTS判定部と、出力指定時刻が異常と判定された場合
に、出力指定時刻を補正して基準出力指定時刻として出
力するPTS補正部と、復号器により復号されたデータ
をバッファに格納し、PTS補正部により出力された基
準出力指定時刻に、バッファに格納されている復号され
たデータを出力するメモリ制御部とを備えたことによ
り、符号化データに含まれる出力指定時刻が異常となっ
ている場合でも、復号されたデータを正しいタイミング
で途切れなく出力させることができるという効果があ
る。
As described above, according to the present invention, the PTS determination for determining whether or not the output designated time is normal by comparing the output designated time separated by the separator with the measured arrival time. Section, a PTS correction unit that corrects the output designated time and outputs it as the reference output designated time when it is determined that the output designated time is abnormal, and stores the data decoded by the decoder in the buffer. Even if the output designated time included in the encoded data is abnormal, by including the memory control unit that outputs the decoded data stored in the buffer at the reference output designated time output by The advantage is that the decoded data can be output without interruption at the correct timing.

【0060】この発明によれば、出力指定時刻が到着時
刻よりも早い場合にPTS判定部が上記出力指定時刻を
異常と判定することにより、復号されたデータを正しい
タイミングで途切れなく出力させることができるという
効果がある。
According to the present invention, when the designated output time is earlier than the arrival time, the PTS determination unit determines that the designated output time is abnormal, so that the decoded data can be output at correct timing without interruption. The effect is that you can do it.

【0061】この発明によれば、PTS補正部が予め設
定されている所定値を到着時刻に加算して基準出力指定
時刻として出力することにより、符号化データに含まれ
る出力指定時刻が異常となっている場合でも、復号され
たデータを正しいタイミングで途切れなく出力させるこ
とができるという効果がある。
According to the present invention, the PTS correction unit adds a preset predetermined value to the arrival time and outputs it as the reference output designated time, whereby the output designated time included in the encoded data becomes abnormal. Even in such a case, there is an effect that the decoded data can be output at the correct timing without interruption.

【0062】この発明によれば、PTS補正部が符号化
データに含まれるバッファ蓄積量情報を到着時刻に加算
して基準出力指定時刻として出力することにより、符号
化データに含まれる出力指定時刻が異常となっている場
合でも、復号されたデータを正しいタイミングで途切れ
なく出力させることができるという効果がある。
According to the present invention, the PTS correction unit adds the buffer storage amount information included in the encoded data to the arrival time and outputs it as the reference output designated time, so that the output designated time included in the encoded data becomes Even if there is an abnormality, the decoded data can be output at the correct timing without interruption.

【0063】この発明によれば、到着間隔判定部により
符号化データの到着間隔が正常と判定された場合に、P
TS補正部が出力指定時刻を補正して基準出力指定時刻
として出力することにより、符号化データに含まれる出
力指定時刻が異常となっている場合でも、復号されたデ
ータを正しいタイミングで途切れなく出力させることが
できるという効果がある。
According to the present invention, when the arrival interval determination unit determines that the arrival interval of encoded data is normal, P
The TS correction unit corrects the output designated time and outputs it as the reference output designated time, so that even if the designated output time included in the encoded data is abnormal, the decoded data is output at the correct timing without interruption. The effect is that it can be done.

【0064】この発明によれば、到着間隔判定部により
符号化データの到着間隔が異常と判定された場合に、P
TS補正部が補正された出力指定時刻に符号化データの
正常な到着間隔を加算して基準出力指定時刻として出力
することにより、符号化データが到着する到着間隔が正
常でない場合においても、復号されたデータを正しいタ
イミングで途切れなく出力させることができるという効
果がある。
According to the present invention, when the arrival interval determination unit determines that the arrival interval of encoded data is abnormal, P
The TS correction unit adds the normal arrival interval of the encoded data to the corrected output designated time and outputs it as the reference output designated time, so that the encoded data is decoded even if the arrival interval is not normal. There is an effect that the output data can be output without interruption at the correct timing.

【0065】この発明によれば、分離器により分離され
た画像データの出力指定時刻と計測された到着時刻を比
較し、画像データの出力指定時刻が正常であるか否かを
判定する画像PTS判定部と、画像データの出力指定時
刻が異常と判定された場合に、画像データの出力指定時
刻を補正して基準出力指定時刻として出力する画像PT
S補正部と、分離器により分離された音声データの出力
指定時刻と計測された到着時刻を比較し、音声データの
出力指定時刻が正常であるか否かを判定する音声PTS
判定部と、音声データの出力指定時刻が異常と判定され
た場合に、音声データの出力指定時刻を補正して基準出
力指定時刻として出力する音声PTS補正部と、復号さ
れた画像データと復号された音声データをバッファに格
納し、画像PTS補正部により出力された基準出力指定
時刻に、バッファに格納されている復号された画像デー
タを出力すると共に、音声PTS補正部により出力され
た基準出力指定時刻に、バッファに格納されている復号
された音声データを出力するメモリ制御部とを備えたこ
とにより、符号化データに含まれる出力指定時刻が異常
となっている場合でも、復号された画像データと復号さ
れた音声データを正しいタイミングで途切れなく出力さ
せることができるという効果がある。
According to the present invention, the image PTS determination is performed by comparing the output designated time of the image data separated by the separator with the measured arrival time and determining whether the output designated time of the image data is normal or not. Section and the image PT that corrects the output designated time of the image data and outputs it as the reference output designated time when the output designated time of the image data is determined to be abnormal.
An audio PTS that determines whether or not the output specified time of the audio data separated by the S corrector and the output data of the audio data separated by the separator is compared with the measured arrival time.
A determination unit, an audio PTS correction unit that corrects the output specified time of the audio data and outputs it as the reference output specified time when it is determined that the output specified time of the audio data is abnormal, and the decoded image data is decoded. Stored audio data in the buffer, outputs the decoded image data stored in the buffer at the reference output designation time output by the image PTS correction unit, and specifies the reference output output by the audio PTS correction unit. Even if the output specified time included in the encoded data is abnormal, the decoded image data is provided by including the memory control unit that outputs the decoded audio data stored in the buffer at the time. Thus, there is an effect that the decoded audio data can be output without interruption at the correct timing.

【0066】この発明によれば、符号化データに含まれ
る出力指定時刻を分離し、符号化データの到着時刻を計
測し、分離された出力指定時刻と計測された到着時刻を
比較して出力指定時刻が正常であるか否かを判定し、出
力指定時刻が異常と判定された場合に、出力指定時刻を
補正して基準出力指定時刻として出力し、復号されたデ
ータを基準出力指定時刻に出力することにより、符号化
データに含まれる出力指定時刻が異常となっている場合
でも、復号されたデータを正しいタイミングで途切れな
く出力させることができるという効果がある。
According to the present invention, the output designated time included in the encoded data is separated, the arrival time of the encoded data is measured, the separated output designated time is compared with the measured arrival time, and the output designated. If it is judged whether the time is normal or not, and if the specified output time is abnormal, the specified output time is corrected and output as the specified reference output time, and the decoded data is output at the specified reference output time. By doing so, even if the designated output time included in the encoded data is abnormal, the decoded data can be output without interruption at the correct timing.

【0067】この発明によれば、符号化データの到着間
隔が正常と判定された場合に、出力指定時刻を補正して
基準出力指定時刻として出力し、符号化データの到着間
隔が異常と判定された場合に、補正された出力指定時刻
に符号化データの正常な到着間隔を加算して基準出力指
定時刻として出力することにより、符号化データに含ま
れる出力指定時刻が異常となっている場合でも、符号化
データが到着する到着間隔が正常でない場合において
も、復号されたデータを正しいタイミングで途切れなく
出力させることができるという効果がある。
According to the present invention, when the arrival interval of encoded data is determined to be normal, the output designated time is corrected and output as the reference output designated time, and the arrival interval of encoded data is determined to be abnormal. In this case, by adding the normal arrival interval of the encoded data to the corrected output specified time and outputting it as the reference output specified time, even if the output specified time included in the encoded data is abnormal. Even if the arrival interval of the encoded data is not normal, the decoded data can be output at the correct timing without interruption.

【図面の簡単な説明】[Brief description of drawings]

【図1】 この発明の実施の形態1による復号装置の構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a decoding device according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1による復号装置にお
けるPTSの補正方法を説明する図である。
FIG. 2 is a diagram illustrating a PTS correction method in the decoding device according to the first embodiment of the present invention.

【図3】 この発明の実施の形態2による復号装置の構
成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a decoding device according to a second embodiment of the present invention.

【図4】 MPEG2による符号化データ(ビットスト
リーム)のデータ構造例を示す図である。
FIG. 4 is a diagram showing an example of a data structure of encoded data (bitstream) according to MPEG2.

【図5】 従来のPTSを用いた画像・音声の同期シス
テムの基本概念を示すブロック図である。
FIG. 5 is a block diagram showing a basic concept of a conventional image / voice synchronization system using PTS.

【図6】 トランスポートストリームのシステムターゲ
ットデコーダの構成を示すブロック図である。
[Fig. 6] Fig. 6 is a block diagram illustrating a configuration of a system target decoder of a transport stream.

【図7】 MPEG2ビットストリームの構成を示す図
である。
FIG. 7 is a diagram showing the structure of an MPEG2 bitstream.

【図8】 システムターゲットデコーダにおけるメイン
バッファの動作を説明する図である。
FIG. 8 is a diagram illustrating an operation of a main buffer in the system target decoder.

【符号の説明】[Explanation of symbols]

10 復号処理回路、11 バッファ、11a 画像E
Sバッファ、11b音声ESバッファ、11c 画像出
力バッファ、11d 音声出力バッファ、12 ホスト
CPU、13 システムバス、14 分離器、15画像
PTS判定部、16 画像PTS補正部、17 音声P
TS判定部、18 音声PTS補正部、19 画像復号
器、20 音声復号器、21 メモリ制御部、22 到
着間隔判定部。
10 Decoding Processing Circuit, 11 Buffer, 11a Image E
S buffer, 11b audio ES buffer, 11c image output buffer, 11d audio output buffer, 12 host CPU, 13 system bus, 14 separator, 15 image PTS determination unit, 16 image PTS correction unit, 17 audio P
TS determination unit, 18 audio PTS correction unit, 19 image decoder, 20 audio decoder, 21 memory control unit, 22 arrival interval determination unit.

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C059 KK34 MA00 PP04 RB01 RB14 RC04 RC32 RE02 RE03 TA03 TA74 TB04 TC16 TC43 TD14 UA05 UA34    ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5C059 KK34 MA00 PP04 RB01 RB14                       RC04 RC32 RE02 RE03 TA03                       TA74 TB04 TC16 TC43 TD14                       UA05 UA34

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 符号化データを復号して、復号されたデ
ータを出力する復号装置において、 上記符号化データに含まれる出力指定時刻を分離し、上
記符号化データ到着時刻を計測する分離器と、 上記分離器により分離された出力指定時刻と計測された
到着時刻を比較し、上記出力指定時刻が正常であるか否
かを判定するPTS判定部と、 上記PTS判定部により上記出力指定時刻が異常と判定
された場合に、上記出力指定時刻を補正して基準出力指
定時刻として出力するPTS補正部と、 上記符号化データを復号する復号器と、 上記復号器により復号されたデータをバッファに格納
し、上記PTS補正部により出力された基準出力指定時
刻に、上記バッファに格納されている復号されたデータ
を出力するメモリ制御部とを備えたことを特徴とする復
号装置。
1. A decoding device for decoding coded data and outputting the decoded data, comprising: a separator for separating an output designated time included in the coded data and measuring the coded data arrival time. The PTS determination unit that determines whether the output designated time is normal by comparing the output designated time separated by the separator with the measured arrival time, and the output designated time is determined by the PTS determination unit. If determined to be abnormal, the PTS correction unit that corrects the output designated time and outputs it as the reference output designated time, the decoder that decodes the encoded data, and the data decoded by the decoder in the buffer. A memory control unit for storing and outputting the decoded data stored in the buffer at the reference output designated time output by the PTS correction unit. Decoding apparatus.
【請求項2】 PTS判定部は出力指定時刻が到着時刻
よりも早い場合に上記出力指定時刻を異常と判定するこ
とを特徴とする請求項1記載の復号装置。
2. The decoding device according to claim 1, wherein the PTS determination unit determines that the designated output time is abnormal when the designated output time is earlier than the arrival time.
【請求項3】 PTS補正部は予め設定されている所定
値を到着時刻に加算して基準出力指定時刻として出力す
ることを特徴とする請求項1記載の復号装置。
3. The decoding device according to claim 1, wherein the PTS correction unit adds a predetermined value set in advance to the arrival time and outputs it as the reference output designated time.
【請求項4】 PTS補正部は符号化データに含まれる
バッファ蓄積量情報を到着時刻に加算して基準出力指定
時刻として出力することを特徴とする請求項1記載の復
号装置。
4. The decoding device according to claim 1, wherein the PTS correction unit adds the buffer storage amount information included in the encoded data to the arrival time and outputs it as the reference output designated time.
【請求項5】 符号化データの到着間隔が正常であるか
否かを判定する到着間隔判定部を備え、 上記到着間隔判定部により符号化データの到着間隔が正
常と判定された場合に、PTS補正部が出力指定時刻を
補正して基準出力指定時刻として出力することを特徴と
する請求項1記載の復号装置。
5. A PTS is provided with an arrival interval determination unit that determines whether or not the arrival interval of encoded data is normal, and when the arrival interval determination unit determines that the arrival interval of encoded data is normal. The decoding device according to claim 1, wherein the correction unit corrects the output designated time and outputs it as the reference output designated time.
【請求項6】 到着間隔判定部により符号化データの到
着間隔が異常と判定された場合に、PTS補正部が補正
された出力指定時刻に上記符号化データの正常な到着間
隔を加算して基準出力指定時刻として出力することを特
徴とする請求項5記載の復号装置。
6. When the arrival interval determination unit determines that the arrival interval of the encoded data is abnormal, the PTS correction unit adds the normal arrival interval of the encoded data to the corrected specified output time to obtain a reference value. 6. The decoding device according to claim 5, wherein the decoding device outputs the designated output time.
【請求項7】 符号化データを復号して、復号された画
像データと音声データを出力する復号装置において、 上記符号化データに含まれる画像データと音声データを
分離すると共に、上記符号化データに含まれる画像デー
タの出力指定時刻と音声データの出力指定時刻を分離
し、上記画像データの到着時刻と上記音声データの到着
時刻を計測する分離器と、 上記分離器により分離された画像データの出力指定時刻
と計測された到着時刻を比較し、上記画像データの出力
指定時刻が正常であるか否かを判定する画像PTS判定
部と、 上記画像PTS判定部により上記画像データの出力指定
時刻が異常と判定された場合に、上記画像データの出力
指定時刻を補正して基準出力指定時刻として出力する画
像PTS補正部と、 上記分離器により分離された音声データの出力指定時刻
と計測された到着時刻を比較し、上記音声データの出力
指定時刻が正常であるか否かを判定する音声PTS判定
部と、 上記音声PTS判定部により上記音声データの出力指定
時刻が異常と判定された場合に、上記音声データの出力
指定時刻を補正して基準出力指定時刻として出力する音
声PTS補正部と、 上記分離器により分離された画像データを復号する画像
復号器と、 上記分離器により分離された音声データを復号する音声
復号器と、 上記画像復号器により復号された画像データと上記音声
復号器により復号された音声データをバッファに格納
し、上記画像PTS補正部により出力された基準出力指
定時刻に、上記バッファに格納されている復号された画
像データを出力すると共に、上記音声PTS補正部によ
り出力された基準出力指定時刻に、上記バッファに格納
されている復号された音声データを出力するメモリ制御
部とを備えたことを特徴とする復号装置。
7. A decoding device which decodes encoded data and outputs the decoded image data and audio data, wherein the image data and the audio data included in the encoded data are separated and the encoded data is converted into the encoded data. A separator that separates the specified output time of the included image data and the specified output time of the audio data, and measures the arrival time of the image data and the arrival time of the audio data, and the output of the image data separated by the separator. An image PTS determination unit that determines whether or not the output designated time of the image data is normal by comparing the designated time and the measured arrival time, and the designated output time of the image data is abnormal by the image PTS determination unit. If it is determined that the image PTS correction unit corrects the output designated time of the image data and outputs it as the reference output designated time, it is separated by the separator. The designated output time of the voice data is compared with the measured arrival time to determine whether the designated output time of the voice data is normal, and the voice PTS determination unit determines the voice data. When the output designated time of is determined to be abnormal, an audio PTS correction unit that corrects the output designated time of the audio data and outputs it as the reference output designated time, and an image that decodes the image data separated by the separator. A decoder, an audio decoder for decoding the audio data separated by the separator, the image data decoded by the image decoder and the audio data decoded by the audio decoder are stored in a buffer, and the image At the reference output designated time output by the PTS correction unit, the decoded image data stored in the buffer is output and the audio PTS correction is performed. The outputted reference output time specified by section, the decoding apparatus characterized by comprising a memory controller for outputting the decoded audio data stored in the buffer.
【請求項8】 符号化データを復号して、復号されたデ
ータを出力する復号方法において、 上記符号化データに含まれる出力指定時刻を分離して、
上記符号化データの到着時刻を計測し、 分離された出力指定時刻と計測された到着時刻を比較し
て上記出力指定時刻が正常であるか否かを判定し、 上記出力指定時刻が異常と判定された場合に、上記出力
指定時刻を補正して基準出力指定時刻として出力し、 復号されたデータを上記基準出力指定時刻に出力するこ
とを特徴とする復号方法。
8. A decoding method for decoding coded data and outputting the decoded data, wherein an output designated time included in the coded data is separated,
The arrival time of the encoded data is measured, the separated output designated time is compared with the measured arrival time to determine whether the output designated time is normal, and the output designated time is determined to be abnormal. In this case, the designated output time is corrected and output as the designated reference output time, and the decoded data is output at the designated reference output time.
【請求項9】 符号化データの到着間隔が正常であるか
否かを判定し、 上記符号化データの到着間隔が正常と判定された場合
に、出力指定時刻を補正して基準出力指定時刻として出
力し、 上記符号化データの到着間隔が異常と判定された場合
に、補正された出力指定時刻に上記符号化データの正常
な到着間隔を加算して基準出力指定時刻として出力する
ことを特徴とする請求項8記載の復号方法。
9. It is determined whether or not the arrival interval of the encoded data is normal, and when the arrival interval of the encoded data is determined to be normal, the output designated time is corrected to be the reference output designated time. When the output interval of the encoded data is determined to be abnormal, the normal arrival interval of the encoded data is added to the corrected specified output time, and the corrected output specified time is output as the reference output specified time. The decoding method according to claim 8.
JP2002089199A 2002-03-27 2002-03-27 Decoding device and decoding method Expired - Fee Related JP3920125B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002089199A JP3920125B2 (en) 2002-03-27 2002-03-27 Decoding device and decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002089199A JP3920125B2 (en) 2002-03-27 2002-03-27 Decoding device and decoding method

Publications (2)

Publication Number Publication Date
JP2003284066A true JP2003284066A (en) 2003-10-03
JP3920125B2 JP3920125B2 (en) 2007-05-30

Family

ID=29234842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002089199A Expired - Fee Related JP3920125B2 (en) 2002-03-27 2002-03-27 Decoding device and decoding method

Country Status (1)

Country Link
JP (1) JP3920125B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005348021A (en) * 2004-06-02 2005-12-15 Mitsubishi Electric Corp Data receiver and data receiving method
JP2006253912A (en) * 2005-03-09 2006-09-21 Toshiba Corp Information recording medium, information recording method, information reproducing method, information recording apparatus and information reproducing apparatus
JP2006340102A (en) * 2005-06-02 2006-12-14 Nec Electronics Corp Synchronous reproducer and synchronous reproduction method
WO2009157078A1 (en) * 2008-06-26 2009-12-30 富士通マイクロエレクトロニクス株式会社 Video/audio data output device and video/audio data output method
JP4947049B2 (en) * 2006-03-17 2012-06-06 日本電気株式会社 Coded stream transmission apparatus

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005348021A (en) * 2004-06-02 2005-12-15 Mitsubishi Electric Corp Data receiver and data receiving method
JP2006253912A (en) * 2005-03-09 2006-09-21 Toshiba Corp Information recording medium, information recording method, information reproducing method, information recording apparatus and information reproducing apparatus
JP4693444B2 (en) * 2005-03-09 2011-06-01 株式会社東芝 Information recording method and information recording apparatus
US8467656B2 (en) 2005-03-09 2013-06-18 Kabushiki Kaisha Toshiba Information storage medium, information recording method, information playback method, information recording apparatus, and information playback apparatus
JP2006340102A (en) * 2005-06-02 2006-12-14 Nec Electronics Corp Synchronous reproducer and synchronous reproduction method
US8130844B2 (en) 2005-06-02 2012-03-06 Renesas Electronics Corporation Apparatus and method for synchronized playback
JP4947049B2 (en) * 2006-03-17 2012-06-06 日本電気株式会社 Coded stream transmission apparatus
US8243826B2 (en) 2006-03-17 2012-08-14 Nec Corporation Encoded stream transmitter
WO2009157078A1 (en) * 2008-06-26 2009-12-30 富士通マイクロエレクトロニクス株式会社 Video/audio data output device and video/audio data output method
JP5212473B2 (en) * 2008-06-26 2013-06-19 富士通セミコンダクター株式会社 VIDEO / AUDIO DATA OUTPUT DEVICE AND VIDEO / AUDIO DATA OUTPUT METHOD
US8842218B2 (en) 2008-06-26 2014-09-23 Fujitsu Semiconductor Limited Video/audio data output device and method

Also Published As

Publication number Publication date
JP3920125B2 (en) 2007-05-30

Similar Documents

Publication Publication Date Title
EP0626770B1 (en) Data demultiplexer
US9066061B2 (en) Video information reproduction method and system, and video information content
EP0735776B1 (en) Decoder for compressed and multiplexed video and audio data
US20050259946A1 (en) Video editing apparatus and video editing method
EP0618728A2 (en) Synchronization of audio/video information
JPH11355263A (en) Device and method for data decoding
JPH11340938A (en) Data multiplexer and its method
JP2007282023A (en) Multiplexing device and multiplexing method
JP3920125B2 (en) Decoding device and decoding method
JP2872104B2 (en) Time stamp adding apparatus and method, and moving image compression / expansion transmission system and method using the same
JP4689231B2 (en) Transport stream switching device
JPH11205789A (en) Transmission rate converter of mpeg2 transport stream
JP4175038B2 (en) MPEG2 decoder
JP5335294B2 (en) Moving image processing system, moving image processing method, program, and storage medium
JP4026556B2 (en) Data transmission device
JPH10126371A (en) Device and method for multiplexing
US20070165621A1 (en) System and method for transport PID broadcast scheme
JP3958531B2 (en) Synchronous control device
JP2002281498A (en) Reception reproducing device
JP2003179863A (en) Image processing apparatus and method, recording medium, and program
JPH11262001A (en) Method for calculating time stamp value in encoding transmission system
JP2001111610A (en) Receiver for information data transmission system
JP2823806B2 (en) Image decoding device
JP2001346166A (en) Compression coded data reproduction method and device
JP2000049726A (en) Multiplexing device and method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061017

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061130

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070116

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070214

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100223

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110223

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120223

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130223

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130223

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140223

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees