JP3692356B2 - Multiplexed data separation apparatus and method - Google Patents

Multiplexed data separation apparatus and method Download PDF

Info

Publication number
JP3692356B2
JP3692356B2 JP2003064491A JP2003064491A JP3692356B2 JP 3692356 B2 JP3692356 B2 JP 3692356B2 JP 2003064491 A JP2003064491 A JP 2003064491A JP 2003064491 A JP2003064491 A JP 2003064491A JP 3692356 B2 JP3692356 B2 JP 3692356B2
Authority
JP
Japan
Prior art keywords
data
time
register
encoded
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2003064491A
Other languages
Japanese (ja)
Other versions
JP2003324691A (en
Inventor
靖 藤波
フェルトマン マーク
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2003064491A priority Critical patent/JP3692356B2/en
Publication of JP2003324691A publication Critical patent/JP2003324691A/en
Application granted granted Critical
Publication of JP3692356B2 publication Critical patent/JP3692356B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Time-Division Multiplex Systems (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、多重化データ分離装置および方法に関し、例えば、光ディスクに時分割多重して記録されているビデオデータとオーディオデータを再生し、分離する場合に用いて好適な多重化データ分離装置および方法に関する。
【0002】
【従来の技術】
図5は、従来の多重化データ分離装置の一例の構成を示すブロック図である。ドライブ1は、内蔵する光ディスクに記録されているデータを再生する。この光ディスクには、ビデオデータとオーディオデータとが時分割多重されて記録されている。ドライブ1より出力された再生データは、復調装置2に供給され、復調される。ECC回路3は、復調装置2が出力するデータの誤り検出訂正を行い、リングバッファ4に供給する。リングバッファ4は、供給されたデータを所定量蓄積した後、多重化データ分離装置5に出力する。
【0003】
多重化データ分離装置5は、リングバッファ4より供給されたデータからビデオデータとオーディオデータとを分離すると共に、タイミングデータとしてのSCR(System Clock Reference)と、ビデオ用(DTSV)と、オーディオ用(DTSA)のDTS(Decoding Time Stamp)とを分離するデータ分離回路21を有している。
【0004】
この多重化データ分離装置5に供給されるデータのフォーマットは、例えば図6に示すように規定されている。このフォーマットは、MPEG(ISO11172)の多重化ビットストリームとして規定されているものである。同図に示すように、多重化ビットストリームは1つ以上のパック(PACK)で構成される。そして、各パックは1つ以上のパケット(PACKET)で構成される。パックの先頭には、パックヘッダ(PACK HEADER)が配置され、このパックヘッダにはパックの開始点を示すパックスタートコード(PACK START CODE)、SCRおよびMUX_RATEが配置されている。SCRは、その最後のバイトが多重化データ分離装置5に入力される時刻(デマルチプレクスが開始される時刻)を表わしている。MUX_RATEは、転送レートを示すものである。
【0005】
図6の例においては、パックヘッダの次にビデオパケット(VIDEO PACKET)と、オーディオパケット(AUDIO PACKET)が配置されている。これらのパケットの先頭にはパケットヘッダが配置され、このパケットヘッダは、ビデオあるいはオーディオのパケットの開始点を表すビデオパケットスタートコード(VIDEO PACKET START CODE)またはオーディオパケットスタートコード(AUDIO PACKET START CODE)と、ビデオまたはオーディオデータのデコードの開始時刻を示すDTSVまたはDTSAが配置されている。そして、この各パケットヘッダの次に、ビデオデータあるいはオーディオデータが配置されている。但し、ビデオデータは、オーディオデータに比べて、単位時間当りのデータ量が多いため、DTSVは、複数のパックに1回の割合で配置される。
【0006】
尚、これらSCR、DTS(DTSVまたはDTSA)などのタイミングデータは、90kHzの周波数のクロックのカウント値で表わされ、33ビットの有効数字を有している。
【0007】
ビデオデータは、ビデオコードバッファ6(FIFO)に供給される。オーディオデータは、オーディオコードバッファ8(FIFO)に供給される。また、SCRはSTCレジスタ26に供給され、記憶されるようになされている。そして、STCレジスタ26はクロック発生回路27が出力する90kHzの周波数のクロックをカウントし、その記憶値をインクリメントして、STC(System Time Clock)を生成するようになされている。
【0008】
DTSVとDTSAは、それぞれDTSVレジスタ22とDTSAレジスタ24に供給され、記憶されるようになされている。そして、このDTSVレジスタ22とDTSAレジスタ24に記憶されたデータは、比較器23と25にそれぞれ供給され、STCレジスタ26が出力するSTCと比較されるようになされている。制御回路28は、例えばCPU等により構成され、入力部29より使用者の操作に対応して入力される指令に基づきデータ分離回路21を制御する。
【0009】
ビデオコードバッファ6に記憶されたビデオデータは、読み出されてビデオデコーダ7に供給される。そして、ビデオデコーダ7によりデコードされ、生成されたビデオ信号が、図示せぬ回路に出力されるようになされている。このビデオデコーダ7には、比較器23が出力するビデオデコードスタート信号が供給されている。
【0010】
同様に、オーディオコードバッファ8より出力されたデータがオーディオデコーダ9に供給され、デコードされるようになされている。このオーディオデコーダ9には、比較器25の出力がオーディオデコードスタート信号として供給されている。
【0011】
次にその動作について、図7のタイミングチャートを参照して説明する。入力部29を操作し、制御回路28に対し再生の開始を指令する。制御回路28はドライブ1に指令を出し、ドライブ1に内蔵する光ディスクに記録されているデータを再生させる。ドライブ1より出力された再生データは、復調装置2に供給され、復調された後、ECC回路3に供給されて誤り検出訂正の処理が施される。この処理が施されたデータは、リングバッファ4を介して、多重化データ分離装置5のデータ分離回路21に供給される。
【0012】
データ分離回路21は、制御回路28に制御され、リングバッファ4より供給されるデータからビデオデータとオーディオデータを分離し、それぞれビデオコードバッファ6とオーディオコードバッファ8に供給する。また、SCR,DTSVおよびDTSAをそれぞれ分離し、それぞれSTCレジスタ26、DTSVレジスタ22およびDTSAレジスタ24に供給し、記憶させる。
【0013】
STCレジスタ26は、SCRを記憶し、以後クロック発生回路27が出力するクロックをカウントし、クロックに対応して記憶値をインクリメントする。このSTCレジスタ26の記憶値は、内部時刻(STC)として比較器23と25に供給される。
【0014】
DTSVレジスタ22は、ドライブ1により再生が開始されて最初に供給されたDTSVを保持する。これにより、ビデオコードバッファ6に記憶されているデータのうち、先頭のピクチャに対するデコード開始時刻を持つことになる。
【0015】
同様に、DTSAレジスタ24は、再生が開始されて最初に供給されたDTSAを保持する。これによりオーディオコードバッファ8に記憶されているデータのうち、先頭のデコード単位に対するデコード開始時刻を持つことになる。
【0016】
SCRは、リングバッファ4より多重化データ分離装置5にデータが供給され、デマルチプレクスが開始される時刻に対応している。即ち、図7のタイミングチャートにおける時刻t1に対応している。STCレジスタ26は、この時刻t1からの時刻データ(現在時刻)を比較器23と25の一方の入力に出力することになる。
【0017】
DTSVレジスタ22は、ビデオデコーダ7がデコードを開始する時刻DTSVを比較器23の他方の入力に供給している。比較器23は、STCレジスタ26が出力する現在時刻が、DTSVレジスタ22が出力するデコード開始時刻に一致したとき(図7における時刻t2において)、ビデオデコードスタート信号をビデオデコーダ7に出力する。ビデオデコーダ7は、このビデオデコードスタート信号が入力されたとき、ビデオコードバッファ6に書き込まれていたビデオデータを1フレーム分読み出し、デコードを開始する。
【0018】
尚、図7において、直線Aはビデオコードバッファ6へのデータの書き込み状態を示しており(その傾きは、書込転送レートを表わしている)、折線Bはビデオコードバッファ6よりビデオデコーダ7がデータを読み出す状態を示している。従って、ビデオコードバッファ6には、図中、影を付して示した範囲にデータが残っていることになる。ビデオコードバッファ6の記憶容量は、直線Aと直線Cの垂直方向の距離で表される。
【0019】
ビデオデコーダ7は、ビデオデコードスタート信号が供給されるとデコードを開始し、デコードが完了した時点において、即ちデコード開始後ビデオデコードディレイ(VIDEO_DECODE_DELAY)の時間が経過したタイミングにおいて、ビデオ垂直同期信号を発生し、これに続けてビデオ信号を出力する。即ち、デコード開始後、ビデオデコードディレイの時間が経過した後、表示が開始されることになる。
【0020】
同様にして、比較器25は、STCレジスタ26が出力する現在時刻が、DTSAレジスタ24が出力するオーディオデータのデコード開始時刻に一致したとき、オーディオデコードスタート信号を出力する。オーディオデコーダ9は、このオーディオデコードスタート信号が入力されたとき、オーディオコードバッファ8よりデータを読み出し、デコードの処理を開始する。そして、デコード処理の結果、生成されたオーディオ信号を図示せぬ回路に出力する。
【0021】
以上は、転送レートが固定レートである場合の動作であるが、図8に、可変レートを採用した場合のタイミングチャートを示す。時刻t3以前およびt6以後は、8Mbpsの高レートモードとされ、時刻t3からt6の間が、2Mbpsの低レートモードとされている。この転送レートは、エンコーダ(図示せず)側において、データをエンコードするとき指定されるものである。
【0022】
尚、図8において、折れ線Dは、ビデオコードバッファ6へのデータの書き込み状態を示しており、傾きは転送レートを表している。折れ線Fは、ビデオコードバッファ6よりビデオデコーダ7がデータを読み出す状態を示している。従って、ビデオコードバッファ6には、図中、影を付して示した範囲にデータが残っていることになる。ビデオコードバッファ6の記憶容量は、直線Dと直線Eの垂直方向の距離で表される。
【0023】
ここで、図8の下側の図(時刻t3から時刻t4の間を拡大して示す図)において、ピクチャWに注目する。ピクチャWのデータがビデオコードバッファ6にロードされ始める時刻はt4である。つまり、ピクチャWのデータの先頭部(G)の格納されているパックに付されているSCRはt4を示している。また、ピクチャWのデコード開始時刻はt5であり、ピクチャWの先頭部が格納されているパケットに付されているDTSVはt5を示している。
【0024】
入力部29を操作し、制御回路28に対してピクチャWからの再生の開始を指令する。制御回路28はドライブ1に対して指令を出し、ドライブ1に内蔵する光ディスクの所定の位置にアクセスし、記録されているデータを再生させる。ドライブ1より出力された再生データは、復調装置2に供給され、復調された後、ECC回路3に供給されて誤り検出訂正の処理が施される。この処理が施されたデータは、リングバッファ4を介して、多重化データ分離装置5のデータ分離回路21に供給される。
【0025】
各パックの先頭にはMUX_RATEが配置されており、このデータを参照することにより該当パックの転送レートを知ることが出来る。例えば、データ分離回路21は、この値によりデータ転送レートを制御する。また、可変レートデータの制御については、例えば、GB 2 259 229 A (Date of publication 03.03.1993)に記載がある。
【0026】
データ分離回路21は、制御回路28に制御され、リングバッファ4より供給されるデータからビデオデータを分離し、ビデオコードバッファ6に供給する。また、SCR,DTSVをそれぞれ分離し、それぞれSTCレジスタ26、DTSVレジスタ22に供給し、記憶させる。なお、オーディオ系に関しての説明は、上述した場合と同様であるので、ここでは省略する。
【0027】
STCレジスタ26はSCRを記憶し、以後、クロック発生回路27が出力するクロックをカウントし、クロックに対応して記憶値をインクリメントする。このSTCレジスタ26の記憶値は、内部時刻(STC)として比較器23と25に供給される。
【0028】
SCRは、リングバッファ4より多重化データ分離装置5にピクチャWのデータが供給され、デマルチプレクスが開始される時刻に対応している。即ち、図8のタイミングチャートにおける時刻t4に対応している。STCレジスタ26は、この時刻t4からの時刻データ(現在時刻)をSTCとして、比較器23と25の一方の入力に出力することになる。
【0029】
DTSVレジスタ22は、ビデオデコーダ7がピクチャWのデコードを開始する時刻DTSVを、比較器23の他方の入力に供給している。比較器23は、STCレジスタ26が出力する現在時刻が、DTSVレジスタ22が出力するデコード開始時刻に一致したとき(図8における時刻t5において)、ビデオデコードスタート信号をビデオデコーダ7に出力する。ビデオデコーダ7は、このビデオデコードスタート信号が入力されたとき、ビデオコードバッファ6に書き込まれていたビデオデータを1フレーム分読み出し、デコードを開始する。
【0030】
【発明が解決しようとする課題】
図5の従来の装置においては、上述したように、SCR(t4)からDTS(t5)までの時間を、一定周波数のクロックを計数して管理し、その間にデータをバッファに書き込むようにしている。その結果、転送レートがエンコーダ側において指定したものに固定され、多重化データ分離装置5へのデータの供給レートが最速の転送レートより遅く、余裕がある場合でも、スタートアップディレイを短くすることは出来なかった。
【0031】
本発明はこのような状況に鑑みてなされたものであり、スタートアップディレイを短くすることによって、システムの応答性を良くするものである。
【0032】
【課題を解決するための手段】
請求項1に記載の多重化データ分離装置は、入力データにそれぞれ時分割多重化されている、第1の符号化データと、第1の符号化データのデコード開始時刻を示す第1のタイミングデータと、第1の符号化データとは異なる第2の符号化データと、第2の符号化データのデコード開始時刻を示す第2のタイミングデータとを分離する多重化データ分離装置において、入力データから第1の符号化データと、第1のタイミングデータと、第2の符号化データと、第2のタイミングデータとを分離する分離手段と、分離手段によって分離された第1のタイミングデータの示す時刻と第2のタイミングデータの示す時刻とを比較する比較手段とを含み、第1の符号化データのデコード開始時刻が、第2の符号化データのデコード開始時刻よりも優先される場合であって、第2のタイミングデータの示す時刻が第1のタイミングデータの示す時刻より時間的に前である場合、分離手段は、第2の符号化データをデコーダに供給せず、第2の符号化データのデコード開始時刻が、第1の符号化データのデコード開始時刻よりも優先される場合であって、第1のタイミングデータの示す時刻が第2のタイミングデータの示す時刻より時間的に前である場合、分離手段は、第1の符号化データをデコーダに供給しないことを特徴とする。
【0033】
第1の符号化データは、符号化ビデオデータとし、第2の符号化データは、符号化音声データとすることができる
【0034】
請求項3に記載の多重化データ分離方法は、入力データにそれぞれ時分割多重化されている、第1の符号化データと、第1の符号化データのデコード開始時刻を示す第1のタイミングデータと、第1の符号化データとは異なる第2の符号化データと、第2の符号化データのデコード開始時刻を示す第2のタイミングデータとを分離する多重化データ分離方法において、入力データから第1のタイミングデータと、第1の符号化データと、第2の符号化データと、第2のタイミングデータとを分離し、分離された第1のタイミングデータの示す時刻と第2のタイミングデータの示す時刻とを比較し、第1の符号化データのデコード開始時刻が、第2の符号化データのデコード開始時刻よりも優先される場合であって、第2のタイミングデータの示す時刻が第1のタイミングデータの示す時刻より時間的に前である期間、第2の符号化データをデコーダに供給せず、第2の符号化データのデコード開始時刻が、第1の符号化データのデコード開始時刻よりも優先される場合であって、第1のタイミングデータの示す時刻が第2のタイミングデータの示す時刻より時間的に前である期間、第1の符号化データをデコーダに供給しないことを特徴とする。
【0035】
第1の符号化データは、符号化ビデオデータとし、第2の符号化データは、符号化音声データとすることができる
【0036】
上記構成の多重化データ分離装置および方法においては、DTSVまたはDTSAとSCRとが比較器23または比較器25により比較される。従って、その比較結果に対応してビットストリームに指定されているより高い転送レートでデータを入力することが出来、再生開始時の応答性を高めることが出来る。
【0037】
【発明の実施の形態】
図1は、本発明の多重化データ分離装置の一実施例の構成を示すブロック図であり、図5における場合と対応する部分には同一の符号を付してある。この実施例においては、多重化データ分離装置5に、データ分離回路21、DTSVレジスタ22、DSTAレジスタ24、比較器23,25、STCレジスタ26、クロック発生回路27の他、SCRレジスタ31及びスイッチ回路51、52、53、54が設けられている。
【0038】
DTSVレジスタ22の出力は比較器23に入力されると共に、スイッチ回路51の入力端子a1に入力されている。同様に、DTSAレジスタ24の出力は比較器25に入力されると共に、スイッチ回路51の他方の入力端子a2に入力されている。スイッチ回路51の出力端子bの出力はSTCレジスタ26に入力され、記憶されるようになされている。そしてSTCレジスタ26はクロック発生回路27が出力する90kHzの周波数のクロックをカウントし、その記憶値をインクリメントしてSTCを生成する。STCレジスタ26の出力するSTCは、スイッチ回路52の入力端子c2に接続されている。
【0039】
SCRレジスタ31には、データ分離回路21により分離されたSCRが供給されている。SCRレジスタ31の出力は、スイッチ回路52のもう一方の入力端子c1に接続されている。
【0040】
スイッチ回路52の出力端子dは、比較器23及び比較器25のそれぞれもう一方の入力端子に接続されている。
【0041】
比較器23の出力は、スイッチ回路53の入力端子eに接続されている。スイッチ回路53の出力端子のうち、一方f1はビデオデコーダ7に接続され、他方f2は制御回路28に接続されている。
【0042】
同様に、比較器25の出力は、スイッチ回路54の入力端子gに接続されている。スイッチ回路54の出力端子のうち、一方h1はオーディオデコーダ9に接続され、他方h2は制御回路28に接続されている。
【0043】
スイッチ回路51,52,53,54は、制御回路28により制御される。
【0044】
次に、その動作について説明する。入力部29を操作し、制御回路28に対し光ディスクの再生の開始を指令する。このとき、制御回路28は、多重化データ分離装置5を初期設定モードに設定させる。つまりスイッチ回路52の接点をc1側にし、SCRレジスタ31の出力が比較器23と25に供給されるようにする。また、スイッチ回路53の接点をf2側に、同様にスイッチ回路54の接点をh2側にし、比較器23と25の比較結果が制御回路28に供給されるようにする。
【0045】
データ分離回路21は、制御回路28に制御され、リングバッファ4より供給されるデータからビデオデータとオーディオデータを分離し、それぞれビデオコードバッファ6とオーディオコードバッファ8に供給する。また、SCR,DTSVおよびDTSAをそれぞれ分離し、それぞれSCRレジスタ31、DTSVレジスタ22およびDTSAレジスタ24に供給し、記憶させる。
【0046】
SCRレジスタ31は、供給されたSCRデータのうち最新のものを記憶し、出力する。DTSVレジスタ22は、再生が開始された後、最初に供給されたDTSVを保持する。即ち、DTSVレジスタ22は、ビデオコードバッファ6に記憶されたデータのうち、先頭のピクチャに対するデコード開始時刻を持つことになる。
【0047】
同様に、DTSAレジスタ24は再生が開始された後、最初に供給されたDTSAを保持する。即ち、オーディオコードバッファ8に記憶されたデータのうち、先頭のデコード単位に対するデコード開始時刻を持つことになる。
【0048】
スイッチ回路52は、制御回路28からの指令によりc1側にその接点が閉じられており、比較器23,25には、それぞれDTSVレジスタ22、DTSAレジスタ24の出力と、SCRレジスタ31の出力が入力されている。
【0049】
ここで、図2と図3を参照して、ピクチャWからの再生開始、データの流れについて説明する。図3には、比較のために、従来例で説明したタイミングを表している。
【0050】
制御回路28は、入力部29より再生の開始が指令されたとき、ドライブ1に対し再生指令を出すので、ドライブ1に内蔵する光ディスクから再生したデータが復調装置2に供給され、復調される。この復調データは、ECC回路3において、誤り検出訂正の処理が施された後、リングバッファ4を介してデータ分離回路21に供給される。
【0051】
図2の時刻t7(図3の時刻t4)において、リングバッファ4からデータ分離回路21にピクチャWを含む最初のデータが供給されたとする。ピクチャWから始まるビデオデータはビデオコードバッファ6に、また、同時に多重化されているオーディオデータはオーディオコードバッファ8に、それぞれ供給される。
【0052】
ピクチャWのデコード開始時刻を示すDTSVは、データ分離回路21により分離され、DTSVレジスタ22に供給される。DTSVレジスタ22は、ピクチャWのDTSVを保持し、出力する。ここで、ピクチャWのデコード開始時刻はt8(図3では時刻t5)であるので、DTSVレジスタ22には、この値が保持され、比較器23の一方の入力端子に入力される。
【0053】
同様に、DTSAレジスタ24は最初に供給されたオーディオデータのDTSAを保持し、出力する。
【0054】
本実施例では、DTSVがDTSAより小さい値である(ビデオデータがオーディオデータより時間的に前にデコードが開始される)とする。
【0055】
各パックの先頭にあるSCRは、SCRレジスタ31に供給される。SCRレジスタ31は、供給されたSCRのうち一番新しいものを順次保持し、出力する。ピクチャWの最初のパックが供給される時刻はt7(図3ではt4)であるので、SCRレジスタ31に供給されるSCRはt7(図3ではt4)から始まる。
【0056】
データが供給され始めた直後は(図2におけるJ=t7)、
(SCRレジスタ31の出力)<(DTSVレジスタ22の出力)
である。制御回路28は比較器23の出力をモニタし、その出力が、この不等式が成り立つことを示している期間、リングバッファ4からのデータを最高速度でデータ分離回路21に対し供給させる。即ち、図2と図3を比較して明らかなように、時刻t7または時刻t4からデータ分離回路21に入力される(ビデオコードバッファ6に入力される)データの転送速度が、図2の方が図3より速くなっている。
【0057】
時間が経過し(ビデオコードバッファ6に対する書き込みが進み)、時刻t8(図3では時刻t5)に達すると、ピクチャWのデコードに必要なデータがビデオコードバッファ6に書き込まれるので、その後、供給されるSCRはピクチャWのDTSVより大きくなる。このとき、DTSVレジスタ22の出力と、SCRレジスタ31の出力を比較している比較器23は、SCRレジスタ31の値が、DTSVレジスタ22の値より大きくなったことを制御回路28に知らせる。
【0058】
ここで、制御回路28は、多重化データ分離装置5をデコードモードに設定させる。このとき、多重化データ分離装置5は、リングバッファ4からのデータの入力を一時停止し、内部状態を変化させる。即ち、スイッチ回路51の接点をa1側に閉じ、DTSVレジスタ22の出力(t8)をSTCレジスタ26に入力させ、保持する。そしてスイッチ回路52の接点をc2側に閉じ、STCレジスタ26の出力(t8)を比較器23及び25に供給する。
【0059】
また、スイッチ回路53の接点をf1側に閉じ、またスイッチ回路54の接点をh1側に閉じて、比較器23,25の出力を、それぞれビデオデコーダ7とオーディオデコーダ9に入力する。
【0060】
このように内部状態を変更した後、多重化データ分離装置5はデータ入力を再開する。同時にSTCレジスタ26のt8からのカウント(インクリメント)が開始される。比較器23は、DTSVレジスタ22の出力DTSV(いまの場合、t8)と、STCレジスタ26のカウント値STC(t8から順次増加する)とを比較し、STCがDTSVと等しいか、それより大きくなったとき、ビデオデコーダ7に対しビデオデコードスタート信号を発生する。これにより、ビデオデコーダ7において、ビデオデータのデコードが開始される。
【0061】
同様に、比較器25は、DTSAレジスタ24の出力とSTCレジスタ26の出力を比較し、STCの値がDTSAと比較して等しいか大きくなったときに、オーディオデコーダ9に対してデコードスタート信号を発生する。これにより、オーディオデコーダ9において、オーディオデータのデコードが開始される。
【0062】
また、以上の実施例においては、ビデオのデコード開始時刻(DTSV)がオーディオのデコードスタート時刻(DTSA)より早いとしたが、DTSAの方が早くても、同様に動作が可能である。
【0063】
また、以上の実施例においては、デコード開始時刻としてDTSV,DTSAを用いるようにしたが、PTS(Presentation Time Stamp)を用いることもできる。このPTSは、一部のパケットのパケットヘッダに配置されており、その値は、当該パケット内の最初のアクセスユニットで始まる部分が表示されるべき時刻を表している。オーディオデータにおいては、PTSとDTSが同一の値となり、ビデオデータにおいても簡単な計算によりPTSとDTSの相互の変換が可能である。
【0064】
このように、従来においては、SCRからDTSまでの時間を一定周波数のクロックを計数して計時し、その間に、ビデオコードバッファ6にデータを書き込むようにしていた。その結果、データ転送レートがクロック周波数で規定され、遅いものになっていた。
【0065】
これに対して、本実施例においては、所定のピクチャのDTSが入力されたとき、最高の転送レートでビデオコードバッファ6に書き込みを行い、読み込まれているデータのSCRをDTSと順次比較し、両者の関係から、そのピクチャのデコードに必要なデータ量が書き込まれたか否かを判定する(デコード開始時刻に達したか否かを判定する)ようにしたので、迅速な応答が可能になる。
【0066】
また、映像同期信号にシステムを同期させる必要がある場合など、ビデオデコード開始時刻が他のデコード開始時刻(例えば、オーディオデコード開始時刻)より優先される場合には、以下に示す方法がある。
【0067】
図4は、本発明の多重化データ分離装置の他の実施例の構成を示すブロック図であり、図1における場合と対応する部分には同一の符号を付してある。この実施例においては、データ分離回路21で分離されたDTSVとDTSAが、それぞれDTSVレジスタ22とDTSAレジスタ24に入力されると共に、制御回路28にも入力されている。また、制御回路28には、映像同期信号が入力されている。その他の構成は、図1における場合と同様である。
【0068】
次に、その動作について説明する。入力部29を操作し、制御回路28に対し再生の開始を指令する。制御回路28は、多重化データ分離装置5を初期設定モードに設定させる。
【0069】
ここで図2を参照して、ピクチャWからの再生開始、データの流れについて説明する。
【0070】
図2において、時刻t7にリングバッファ4からデータ分離回路21に、ピクチャWを含む最初のデータが供給されたとする。ピクチャWから始まるビデオデータは、ビデオコードバッファ6に供給される。いま、ビデオデータを優先するので、オーディオデータは始めのうちは捨てられる。即ち、データ分離回路21は、オーディオコードバッファ8にオーディオデータを供給しない。
【0071】
ピクチャWのデコード開始時刻を示すDTSVは、データ分離回路21により分離され、DTSVレジスタ22と制御回路28に供給される。DTSVレジスタ22は、ピクチャWのDTSVを保持し、出力する。ここで、ピクチャWのデコード開始時刻はt8であるので、DTSVレジスタ22にはこの値が保持され、比較器23の一方の入力端子に入力される。制御回路28は、このDTSVデータ(t8)を保持する。
【0072】
同様に、DTSAがデータ分離回路21により分離され、DTSAレジスタ24と制御回路28に供給される。制御回路28は、入力されたDTSAデータとDTSVデータを比較し、DTSAデータの方が小さい場合には、DTSAレジスタ24を制御し、そのDTSAデータを捨てさせる(DTSAレジスタ24に保持させない)。DTSVデータが制御回路28に入力される前にDTSAデータが入力された場合にも同様に捨てさせる。これに対して、DTSAデータの方が保持したDTSVデータより大きい(時間的に後の)場合には、DTSAレジスタ24に指令して、DTSAを保持、出力させる。さらにデータ分離回路21に指令して、分離されたオーディオデータをオーディオコードバッファ8に供給させる。
【0073】
各パックの先頭にあるSCRは、SCRレジスタ31に供給される。SCRレジスタ31は、供給されたSCRのうち一番新しいものを順次保持し、出力する。ピクチャWの最初のパックが供給される時刻はt7であるので、SCRレジスタ31に供給されるSCRはt7から始まる。
【0074】
データが供給され始めた直後(図2におけるJ=t7)においては、
(SCRレジスタ31の出力)<(DTSVレジスタ22の出力)(t8)
である。制御回路28は、この不等式が成り立つ間、リングバッファ4からのデータを最高速度でデータ分離回路21に供給させる。
【0075】
時間が経過し、時刻t8に達すると、供給されるSCRは、ピクチャWのDTSVより大きくなる。このとき、DTSVレジスタ22の出力と、SCRレジスタ31の出力を比較している比較器23は、SCRレジスタ31の値が大きくなったことを制御回路28に知らせる。
【0076】
ここで、制御回路28は、多重化データ分離装置5をデコードモードに設定させる。これにより、図1における場合と同様に、内部状態の切り替えが行われる。
【0077】
また、制御回路28は、ビデオデコーダ7を映像同期信号に同期させるため、入力される映像同期信号に同期して以下の動作を行う。即ち、映像同期信号に同期して、多重化データ分離装置5にデータ入力を再開させる。同時にSTCレジスタ26のカウント(インクリメント)が開始され、上述したようにして、ビデオデコーダ7に対しビデオデコードスタート信号が発せられる。
【0078】
さらに比較器25は、DTSAレジスタ24の出力とSTCレジスタ26の出力を比較し、STCの値がDTSAと比較して等しいか大きくなったときに、オーディオデコーダ9に対してデコードスタート信号を発生する。
【0079】
以上、この実施例では、ビデオデコーダ7を主とし、オーディオデコーダ9を従としたが、主となるものがどのデコーダであっても同様に動作させることができる。また、従となるものが複数種類、あるいは、主と従のそれぞれが複数あっても、同様であることは自明である。
【0080】
以上の2つの実施例においては、比較器23と25は常時比較動作を行うようにしたが、それぞれ対応するDTSVレジスタ22、DTSAレジスタ24に有効なデータが入力されてから比較を行うことにより、確実な動作を行わせるようにすることも出来る。
【0081】
【発明の効果】
以上説明したように、本発明の多重化データ分離装置および方法によれば、デコード開始タイミングを示すデータと、時刻を表すデータとを比較手段により比較するようにしたので、その比較結果に対応して、ビットストリームに指定されているより高い転送レートでデータを入力することが出来、再生開始時の応答性を高めることが出来る。
【図面の簡単な説明】
【図1】本発明の多重化データ分離装置の一実施例の構成を示すブロック図である。
【図2】図1の実施例の動作を説明するタイミングチャートである。
【図3】図2と比較するための従来のタイミングチャートである。
【図4】本発明の多重化データ分離装置の他の実施例の構成を示すブロック図である。
【図5】従来の多重化データ分離装置の一例の構成を示すブロック図である。
【図6】図5の例の多重化ビットストリームを説明する図である。
【図7】図5の例の動作を説明するタイミングチャートである。
【図8】図5の例の可変レート時の動作を説明するタイミングチャートである。
【符号の説明】
1 ドライブ, 2 復調装置, 3 ECC回路, 4 リングバッファ,5 多重化データ分離装置, 6 ビデオコードバッファ, 7 ビデオデコーダ, 8 オーディオコードバッファ, 9 オーディオデコーダ, 21 データ分離回路, 22 DTSVレジスタ, 23 比較器, 24 DTSAレジスタ, 25 比較器, 26 STCレジスタ, 27 クロック発生回路, 28 制御回路, 31 SCRレジスタ, 51,52,53,54スイッチ回路
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a multiplexed data separation apparatus and method, for example, a multiplexed data separation apparatus and method suitable for use in reproducing and separating video data and audio data recorded by time division multiplexing on an optical disc, for example. About.
[0002]
[Prior art]
FIG. 5 is a block diagram showing a configuration of an example of a conventional multiplexed data separator. The drive 1 reproduces data recorded on the built-in optical disk. On this optical disc, video data and audio data are time-division multiplexed and recorded. The reproduction data output from the drive 1 is supplied to the demodulator 2 and demodulated. The ECC circuit 3 performs error detection and correction on the data output from the demodulator 2 and supplies it to the ring buffer 4. The ring buffer 4 accumulates the supplied data in a predetermined amount, and then outputs it to the multiplexed data separator 5.
[0003]
The multiplexed data separation device 5 separates video data and audio data from the data supplied from the ring buffer 4, and at the same time, SCR (System Clock Reference) as timing data, video (DTSV), and audio ( The data separation circuit 21 separates the DTS (Decoding Time Stamp) of the DTSA).
[0004]
The format of data supplied to the multiplexed data separator 5 is defined as shown in FIG. 6, for example. This format is specified as a multiplexed bit stream of MPEG (ISO 11172). As shown in the figure, the multiplexed bit stream is composed of one or more packs (PACK). Each pack is composed of one or more packets (PACKET). A pack header (PACK HEADER) is arranged at the head of the pack, and a pack start code (PACK START CODE), SCR, and MUX_RATE indicating the start point of the pack are arranged in the pack header. The SCR represents the time when the last byte is input to the multiplexed data separator 5 (the time when demultiplexing is started). MUX_RATE indicates a transfer rate.
[0005]
In the example of FIG. 6, a video packet (VIDEO PACKET) and an audio packet (AUDIO PACKET) are arranged next to the pack header. A packet header is arranged at the head of these packets. The packet header includes a video packet start code (VIDEO PACKET START CODE) or an audio packet start code (AUDIO PACKET START CODE) indicating a start point of a video or audio packet. DTSV or DTSA indicating the start time of video or audio data decoding is arranged. Next to each packet header, video data or audio data is arranged. However, since the video data has a larger data amount per unit time than the audio data, the DTSV is arranged at a rate of once in a plurality of packs.
[0006]
The timing data such as SCR and DTS (DTSV or DTSA) is represented by a count value of a clock having a frequency of 90 kHz, and has 33-bit significant digits.
[0007]
The video data is supplied to the video code buffer 6 (FIFO). The audio data is supplied to the audio code buffer 8 (FIFO). The SCR is supplied to the STC register 26 and stored therein. The STC register 26 counts the clock with a frequency of 90 kHz output from the clock generation circuit 27 and increments the stored value to generate an STC (System Time Clock).
[0008]
DTSV and DTSA are supplied to and stored in the DTSV register 22 and the DTSA register 24, respectively. The data stored in the DTSV register 22 and the DTSA register 24 are supplied to the comparators 23 and 25, respectively, and compared with the STC output from the STC register 26. The control circuit 28 is constituted by a CPU, for example, and controls the data separation circuit 21 based on a command input from the input unit 29 in response to a user operation.
[0009]
The video data stored in the video code buffer 6 is read and supplied to the video decoder 7. The video signal decoded and generated by the video decoder 7 is output to a circuit (not shown). The video decoder 7 is supplied with a video decode start signal output from the comparator 23.
[0010]
Similarly, the data output from the audio code buffer 8 is supplied to the audio decoder 9 and decoded. The audio decoder 9 is supplied with the output of the comparator 25 as an audio decoding start signal.
[0011]
Next, the operation will be described with reference to the timing chart of FIG. The input unit 29 is operated to instruct the control circuit 28 to start reproduction. The control circuit 28 issues a command to the drive 1 to reproduce the data recorded on the optical disk built in the drive 1. The reproduced data output from the drive 1 is supplied to the demodulator 2 and demodulated, and then supplied to the ECC circuit 3 for error detection and correction. The data subjected to this processing is supplied to the data separation circuit 21 of the multiplexed data separation device 5 via the ring buffer 4.
[0012]
The data separation circuit 21 is controlled by the control circuit 28 and separates the video data and the audio data from the data supplied from the ring buffer 4 and supplies them to the video code buffer 6 and the audio code buffer 8, respectively. In addition, SCR, DTSV, and DTSA are separated and supplied to STC register 26, DTSV register 22, and DTSA register 24, respectively, and stored therein.
[0013]
The STC register 26 stores the SCR, counts the clock output from the clock generation circuit 27 thereafter, and increments the stored value corresponding to the clock. The stored value of the STC register 26 is supplied to the comparators 23 and 25 as the internal time (STC).
[0014]
The DTSV register 22 holds the DTSV supplied first after the reproduction is started by the drive 1. As a result, the decoding start time for the first picture of the data stored in the video code buffer 6 is obtained.
[0015]
Similarly, the DTSA register 24 holds the DTSA supplied first after the reproduction is started. As a result, of the data stored in the audio code buffer 8, it has a decoding start time for the first decoding unit.
[0016]
The SCR corresponds to the time when data is supplied from the ring buffer 4 to the multiplexed data separator 5 and demultiplexing is started. That is, it corresponds to time t1 in the timing chart of FIG. The STC register 26 outputs the time data (current time) from this time t1 to one input of the comparators 23 and 25.
[0017]
The DTSV register 22 supplies the time DTSV at which the video decoder 7 starts decoding to the other input of the comparator 23. The comparator 23 outputs a video decode start signal to the video decoder 7 when the current time output from the STC register 26 coincides with the decode start time output from the DTSV register 22 (at time t2 in FIG. 7). When this video decode start signal is input, the video decoder 7 reads out one frame of video data written in the video code buffer 6 and starts decoding.
[0018]
In FIG. 7, a straight line A indicates a state of writing data to the video code buffer 6 (the inclination indicates a write transfer rate), and a broken line B indicates that the video decoder 7 is connected to the video code buffer 6. It shows the state of reading data. Therefore, data remains in the video code buffer 6 in the shaded range in the figure. The storage capacity of the video code buffer 6 is represented by the distance between the straight line A and the straight line C in the vertical direction.
[0019]
The video decoder 7 starts decoding when the video decode start signal is supplied, and generates a video vertical synchronization signal when the decoding is completed, that is, at the timing when the video decode delay (VIDEO_DECODE_DELAY) has elapsed after the start of decoding. Subsequently, a video signal is output. That is, the display is started after the video decoding delay time has elapsed after the start of decoding.
[0020]
Similarly, the comparator 25 outputs an audio decoding start signal when the current time output from the STC register 26 coincides with the decoding start time of the audio data output from the DTSA register 24. When this audio decoding start signal is input, the audio decoder 9 reads data from the audio code buffer 8 and starts decoding processing. As a result of the decoding process, the generated audio signal is output to a circuit (not shown).
[0021]
The above is the operation when the transfer rate is a fixed rate. FIG. 8 shows a timing chart when the variable rate is adopted. Before the time t3 and after the time t6, the high rate mode of 8 Mbps is set, and the low rate mode of 2 Mbps is set between the times t3 and t6. This transfer rate is specified on the encoder (not shown) side when encoding data.
[0022]
In FIG. 8, a broken line D indicates a state of writing data to the video code buffer 6, and a slope indicates a transfer rate. A broken line F indicates a state in which the video decoder 7 reads data from the video code buffer 6. Therefore, data remains in the video code buffer 6 in the shaded range in the figure. The storage capacity of the video code buffer 6 is represented by the distance between the straight line D and the straight line E in the vertical direction.
[0023]
Here, attention is focused on the picture W in the lower diagram of FIG. 8 (a diagram showing an enlarged view from time t3 to time t4). The time when the data of the picture W starts to be loaded into the video code buffer 6 is t4. That is, the SCR attached to the pack in which the head portion (G) of the data of the picture W is stored indicates t4. Further, the decoding start time of the picture W is t5, and the DTSV attached to the packet in which the head portion of the picture W is stored indicates t5.
[0024]
The input unit 29 is operated to instruct the control circuit 28 to start reproduction from the picture W. The control circuit 28 issues a command to the drive 1, accesses a predetermined position of the optical disk built in the drive 1, and reproduces recorded data. The reproduced data output from the drive 1 is supplied to the demodulator 2 and demodulated, and then supplied to the ECC circuit 3 for error detection and correction. The data subjected to this processing is supplied to the data separation circuit 21 of the multiplexed data separation device 5 via the ring buffer 4.
[0025]
MUX_RATE is arranged at the head of each pack, and the transfer rate of the corresponding pack can be known by referring to this data. For example, the data separation circuit 21 controls the data transfer rate based on this value. Further, control of variable rate data is described in, for example, GB 2 259 229 A (Date of publication 03.03.1993).
[0026]
The data separation circuit 21 is controlled by the control circuit 28 and separates the video data from the data supplied from the ring buffer 4 and supplies it to the video code buffer 6. Further, the SCR and DTSV are separated and supplied to the STC register 26 and the DTSV register 22 for storage. The explanation regarding the audio system is the same as that described above, and is omitted here.
[0027]
The STC register 26 stores the SCR, thereafter counts the clock output from the clock generation circuit 27, and increments the stored value corresponding to the clock. The stored value of the STC register 26 is supplied to the comparators 23 and 25 as the internal time (STC).
[0028]
The SCR corresponds to the time when the data of the picture W is supplied from the ring buffer 4 to the multiplexed data separator 5 and demultiplexing is started. That is, it corresponds to time t4 in the timing chart of FIG. The STC register 26 outputs the time data (current time) from the time t4 as STC to one input of the comparators 23 and 25.
[0029]
The DTSV register 22 supplies the time DTSV at which the video decoder 7 starts decoding the picture W to the other input of the comparator 23. The comparator 23 outputs a video decode start signal to the video decoder 7 when the current time output from the STC register 26 coincides with the decode start time output from the DTSV register 22 (at time t5 in FIG. 8). When this video decode start signal is input, the video decoder 7 reads out one frame of video data written in the video code buffer 6 and starts decoding.
[0030]
[Problems to be solved by the invention]
In the conventional apparatus of FIG. 5, as described above, the time from SCR (t4) to DTS (t5) is managed by counting a clock with a constant frequency, and data is written to the buffer during that time. . As a result, the transfer rate is fixed to the one specified on the encoder side, and even if the data supply rate to the multiplexed data separator 5 is slower than the fastest transfer rate and there is a margin, the startup delay can be shortened. There wasn't.
[0031]
The present invention has been made in view of such a situation, and improves the responsiveness of the system by shortening the startup delay.
[0032]
[Means for Solving the Problems]
  The multiplexed data demultiplexing apparatus according to claim 1, wherein the first encoded data and the first timing data indicating the decoding start time of the first encoded data are each time-division multiplexed to the input data. And a multiplexed data separation device that separates second encoded data different from the first encoded data and second timing data indicating a decoding start time of the second encoded data, from input data Separating means for separating the first encoded data, the first timing data, the second encoded data, and the second timing data, and the time indicated by the first timing data separated by the separating means And a comparing means for comparing the time indicated by the second timing data,The decoding start time of the first encoded data is prioritized over the decoding start time of the second encoded data,When the time indicated by the second timing data is temporally earlier than the time indicated by the first timing data, the separation unit supplies the second encoded data to the decoder.In the case where the decoding start time of the second encoded data has priority over the decoding start time of the first encoded data, the time indicated by the first timing data is the second timing data If the time is before the indicated time, the separating means does not supply the first encoded data to the decoderIt is characterized by that.
[0033]
  The first encoded data can be encoded video data, and the second encoded data can be encoded audio data..
[0034]
  The multiplexed data separation method according to claim 3, wherein the first encoded data and the first timing data indicating the decoding start time of the first encoded data are each time-division multiplexed to the input data. And a multiplexed data separation method for separating second encoded data different from the first encoded data and second timing data indicating a decoding start time of the second encoded data, from input data The first timing data, the first encoded data, the second encoded data, and the second timing data are separated, and the time indicated by the separated first timing data and the second timing data Compared with the time indicated byThe decoding start time of the first encoded data is prioritized over the decoding start time of the second encoded data,The second encoded data is supplied to the decoder during a period in which the time indicated by the second timing data is temporally before the time indicated by the first timing data.In the case where the decoding start time of the second encoded data has priority over the decoding start time of the first encoded data, the time indicated by the first timing data is the second timing data The first encoded data is not supplied to the decoder for a time period before the indicated time.It is characterized by that.
[0035]
  The first encoded data can be encoded video data, and the second encoded data can be encoded audio data..
[0036]
In the multiplexed data separating apparatus and method having the above-described configuration, the DTSV or DTSA and the SCR are compared by the comparator 23 or the comparator 25. Accordingly, data can be input at a higher transfer rate specified in the bit stream corresponding to the comparison result, and the responsiveness at the start of reproduction can be improved.
[0037]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing a configuration of an embodiment of a multiplexed data demultiplexing apparatus according to the present invention, and the same reference numerals are given to portions corresponding to those in FIG. In this embodiment, the multiplexed data separation device 5 includes a data separation circuit 21, a DTSV register 22, a DSTA register 24, comparators 23 and 25, an STC register 26, a clock generation circuit 27, an SCR register 31 and a switch circuit. 51, 52, 53, 54 are provided.
[0038]
The output of the DTSV register 22 is input to the comparator 23 and also to the input terminal a1 of the switch circuit 51. Similarly, the output of the DTSA register 24 is input to the comparator 25 and also input to the other input terminal a2 of the switch circuit 51. The output of the output terminal b of the switch circuit 51 is input to the STC register 26 and stored therein. The STC register 26 counts the 90 kHz frequency clock output from the clock generation circuit 27 and increments the stored value to generate an STC. The STC output from the STC register 26 is connected to the input terminal c2 of the switch circuit 52.
[0039]
The SCR separated by the data separation circuit 21 is supplied to the SCR register 31. The output of the SCR register 31 is connected to the other input terminal c1 of the switch circuit 52.
[0040]
The output terminal d of the switch circuit 52 is connected to the other input terminal of each of the comparator 23 and the comparator 25.
[0041]
The output of the comparator 23 is connected to the input terminal e of the switch circuit 53. Of the output terminals of the switch circuit 53, one f 1 is connected to the video decoder 7 and the other f 2 is connected to the control circuit 28.
[0042]
Similarly, the output of the comparator 25 is connected to the input terminal g of the switch circuit 54. Of the output terminals of the switch circuit 54, one h 1 is connected to the audio decoder 9 and the other h 2 is connected to the control circuit 28.
[0043]
The switch circuits 51, 52, 53, 54 are controlled by the control circuit 28.
[0044]
Next, the operation will be described. The input unit 29 is operated to instruct the control circuit 28 to start reproducing the optical disk. At this time, the control circuit 28 sets the multiplexed data separator 5 to the initial setting mode. That is, the contact of the switch circuit 52 is set to the c1 side so that the output of the SCR register 31 is supplied to the comparators 23 and 25. Further, the contact of the switch circuit 53 is set to the f2 side, and similarly, the contact of the switch circuit 54 is set to the h2 side so that the comparison result of the comparators 23 and 25 is supplied to the control circuit 28.
[0045]
The data separation circuit 21 is controlled by the control circuit 28 and separates the video data and the audio data from the data supplied from the ring buffer 4 and supplies them to the video code buffer 6 and the audio code buffer 8, respectively. Also, SCR, DTSV, and DTSA are separated, and supplied to SCR register 31, DTSV register 22, and DTSA register 24, respectively, and stored.
[0046]
The SCR register 31 stores and outputs the latest one of the supplied SCR data. The DTSV register 22 holds the DTSV supplied first after the reproduction is started. That is, the DTSV register 22 has a decoding start time for the first picture among the data stored in the video code buffer 6.
[0047]
Similarly, the DTSA register 24 holds the DTSA supplied first after the reproduction is started. In other words, the data stored in the audio code buffer 8 has a decoding start time for the first decoding unit.
[0048]
The switch circuit 52 has its contact closed on the c1 side by a command from the control circuit 28, and the outputs of the DTSV register 22 and the DTSA register 24 and the output of the SCR register 31 are input to the comparators 23 and 25, respectively. Has been.
[0049]
Here, with reference to FIG. 2 and FIG. 3, the reproduction start from the picture W and the data flow will be described. FIG. 3 shows the timing described in the conventional example for comparison.
[0050]
When the start of reproduction is instructed from the input unit 29, the control circuit 28 issues a reproduction instruction to the drive 1, so that data reproduced from the optical disk built in the drive 1 is supplied to the demodulator 2 and demodulated. The demodulated data is subjected to error detection and correction processing in the ECC circuit 3 and then supplied to the data separation circuit 21 via the ring buffer 4.
[0051]
Assume that the first data including the picture W is supplied from the ring buffer 4 to the data separation circuit 21 at time t7 in FIG. 2 (time t4 in FIG. 3). Video data starting from the picture W is supplied to the video code buffer 6, and audio data multiplexed at the same time is supplied to the audio code buffer 8.
[0052]
The DTSV indicating the decoding start time of the picture W is separated by the data separation circuit 21 and supplied to the DTSV register 22. The DTSV register 22 holds and outputs the DTSV of the picture W. Here, since the decoding start time of the picture W is t8 (time t5 in FIG. 3), this value is held in the DTSV register 22 and inputted to one input terminal of the comparator 23.
[0053]
Similarly, the DTSA register 24 holds and outputs the DTSA of the audio data supplied first.
[0054]
In this embodiment, it is assumed that DTSV is a value smaller than DTSA (decoding is started temporally before audio data).
[0055]
The SCR at the head of each pack is supplied to the SCR register 31. The SCR register 31 sequentially holds and outputs the newest one of the supplied SCRs. Since the time when the first pack of the picture W is supplied is t7 (t4 in FIG. 3), the SCR supplied to the SCR register 31 starts from t7 (t4 in FIG. 3).
[0056]
Immediately after the data starts to be supplied (J = t7 in FIG. 2),
(Output of SCR register 31) <(Output of DTSV register 22)
It is. The control circuit 28 monitors the output of the comparator 23, and supplies the data from the ring buffer 4 to the data separation circuit 21 at the maximum speed during the period when the output indicates that this inequality holds. That is, as apparent from the comparison between FIG. 2 and FIG. 3, the transfer rate of the data input to the data separation circuit 21 (input to the video code buffer 6) from time t7 or time t4 is as shown in FIG. Is faster than FIG.
[0057]
When time elapses (writing to the video code buffer 6 proceeds) and the time t8 (time t5 in FIG. 3) is reached, data necessary for decoding the picture W is written to the video code buffer 6 and then supplied. The SCR is larger than the DTSV of the picture W. At this time, the comparator 23 comparing the output of the DTSV register 22 with the output of the SCR register 31 notifies the control circuit 28 that the value of the SCR register 31 has become larger than the value of the DTSV register 22.
[0058]
Here, the control circuit 28 sets the multiplexed data separator 5 to the decode mode. At this time, the multiplexed data separator 5 temporarily stops the input of data from the ring buffer 4 and changes the internal state. That is, the contact of the switch circuit 51 is closed to the a1 side, and the output (t8) of the DTSV register 22 is input to the STC register 26 and held. Then, the contact of the switch circuit 52 is closed to the c2 side, and the output (t8) of the STC register 26 is supplied to the comparators 23 and 25.
[0059]
Further, the contact of the switch circuit 53 is closed to the f1 side, the contact of the switch circuit 54 is closed to the h1 side, and the outputs of the comparators 23 and 25 are input to the video decoder 7 and the audio decoder 9, respectively.
[0060]
After changing the internal state in this way, the multiplexed data separator 5 resumes data input. At the same time, the count (increment) from t8 of the STC register 26 is started. The comparator 23 compares the output DTSV of the DTSV register 22 (in this case, t8) with the count value STC of the STC register 26 (incrementing sequentially from t8), and STC is equal to or greater than DTSV. When this occurs, a video decode start signal is generated for the video decoder 7. Thereby, the video decoder 7 starts decoding the video data.
[0061]
Similarly, the comparator 25 compares the output of the DTSA register 24 with the output of the STC register 26, and outputs a decode start signal to the audio decoder 9 when the STC value is equal to or larger than the DTSA. appear. As a result, the audio decoder 9 starts decoding the audio data.
[0062]
In the above embodiment, the video decoding start time (DTSV) is earlier than the audio decoding start time (DTSA). However, even if the DTSA is earlier, the same operation is possible.
[0063]
In the above embodiment, DTSV and DTSA are used as the decoding start time, but PTS (Presentation Time Stamp) can also be used. This PTS is arranged in the packet header of some packets, and the value represents the time at which the part starting with the first access unit in the packet is to be displayed. In audio data, PTS and DTS have the same value, and in video data, PTS and DTS can be converted into each other by simple calculation.
[0064]
As described above, conventionally, the time from the SCR to the DTS is counted by counting clocks having a constant frequency, and data is written to the video code buffer 6 during that time. As a result, the data transfer rate is specified by the clock frequency and is slow.
[0065]
On the other hand, in this embodiment, when a DTS of a predetermined picture is input, the video code buffer 6 is written at the highest transfer rate, and the SCR of the read data is sequentially compared with the DTS, Based on the relationship between the two, since it is determined whether or not the amount of data necessary for decoding the picture has been written (determining whether or not the decoding start time has been reached), a quick response is possible.
[0066]
Further, when the video decode start time is prioritized over other decode start times (for example, audio decode start time), such as when it is necessary to synchronize the system with the video synchronization signal, there is the following method.
[0067]
FIG. 4 is a block diagram showing the configuration of another embodiment of the multiplexed data demultiplexer according to the present invention. The same reference numerals are given to the portions corresponding to those in FIG. In this embodiment, DTSV and DTSA separated by the data separation circuit 21 are input to the DTSV register 22 and DTSA register 24 and also to the control circuit 28, respectively. In addition, a video synchronization signal is input to the control circuit 28. Other configurations are the same as those in FIG.
[0068]
Next, the operation will be described. The input unit 29 is operated to instruct the control circuit 28 to start reproduction. The control circuit 28 sets the multiplexed data separator 5 to the initial setting mode.
[0069]
Here, with reference to FIG. 2, the reproduction start from the picture W and the data flow will be described.
[0070]
In FIG. 2, it is assumed that the first data including the picture W is supplied from the ring buffer 4 to the data separation circuit 21 at time t7. Video data starting from the picture W is supplied to the video code buffer 6. Since video data is given priority now, audio data is discarded at the beginning. That is, the data separation circuit 21 does not supply audio data to the audio code buffer 8.
[0071]
The DTSV indicating the decoding start time of the picture W is separated by the data separation circuit 21 and supplied to the DTSV register 22 and the control circuit 28. The DTSV register 22 holds and outputs the DTSV of the picture W. Here, since the decoding start time of the picture W is t8, this value is held in the DTSV register 22 and input to one input terminal of the comparator 23. The control circuit 28 holds this DTSV data (t8).
[0072]
Similarly, the DTSA is separated by the data separation circuit 21 and supplied to the DTSA register 24 and the control circuit 28. The control circuit 28 compares the input DTSA data with the DTSV data. If the DTSA data is smaller, the control circuit 28 controls the DTSA register 24 to discard the DTSA data (not to hold it in the DTSA register 24). Similarly, when the DTSA data is input before the DTSV data is input to the control circuit 28, the data is discarded. On the other hand, when the DTSA data is larger than the held DTSV data (after time), the DTSA register 24 is instructed to hold and output the DTSA. Furthermore, the data separation circuit 21 is instructed to supply the separated audio data to the audio code buffer 8.
[0073]
The SCR at the head of each pack is supplied to the SCR register 31. The SCR register 31 sequentially holds and outputs the newest one of the supplied SCRs. Since the time when the first pack of the picture W is supplied is t7, the SCR supplied to the SCR register 31 starts from t7.
[0074]
Immediately after the data starts to be supplied (J = t7 in FIG. 2),
(Output of SCR register 31) <(Output of DTSV register 22) (t8)
It is. While this inequality holds, the control circuit 28 supplies the data from the ring buffer 4 to the data separation circuit 21 at the maximum speed.
[0075]
When time elapses and time t8 is reached, the supplied SCR becomes larger than the DTSV of picture W. At this time, the comparator 23 comparing the output of the DTSV register 22 with the output of the SCR register 31 notifies the control circuit 28 that the value of the SCR register 31 has increased.
[0076]
Here, the control circuit 28 sets the multiplexed data separator 5 to the decode mode. As a result, the internal state is switched as in the case of FIG.
[0077]
The control circuit 28 performs the following operation in synchronization with the input video synchronization signal in order to synchronize the video decoder 7 with the video synchronization signal. That is, in synchronization with the video synchronization signal, the multiplexed data separator 5 restarts data input. At the same time, counting (increment) of the STC register 26 is started, and a video decoding start signal is issued to the video decoder 7 as described above.
[0078]
Further, the comparator 25 compares the output of the DTSA register 24 with the output of the STC register 26, and generates a decode start signal for the audio decoder 9 when the STC value is equal to or larger than the DTSA. .
[0079]
As described above, in this embodiment, the video decoder 7 is the main and the audio decoder 9 is the subordinate. However, any decoder can be operated in the same manner. Further, it is obvious that the same applies even if there are a plurality of types of subordinates, or a plurality of subordinates and subordinates.
[0080]
In the above two embodiments, the comparators 23 and 25 always perform the comparison operation. However, by comparing after the valid data is input to the corresponding DTSV register 22 and DTSA register 24, respectively, It is also possible to perform certain operations.
[0081]
【The invention's effect】
As described above, according to the multiplexed data demultiplexing apparatus and method of the present invention, the data indicating the decoding start timing and the data indicating the time are compared by the comparing means. Thus, data can be input at a higher transfer rate than specified in the bit stream, and the responsiveness at the start of reproduction can be improved.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an embodiment of a multiplexed data demultiplexer according to the present invention.
FIG. 2 is a timing chart for explaining the operation of the embodiment of FIG. 1;
FIG. 3 is a conventional timing chart for comparison with FIG. 2;
FIG. 4 is a block diagram showing the configuration of another embodiment of the multiplexed data separator according to the present invention.
FIG. 5 is a block diagram showing a configuration of an example of a conventional multiplexed data separator.
6 is a diagram for explaining a multiplexed bit stream in the example of FIG. 5. FIG.
7 is a timing chart for explaining the operation of the example of FIG.
FIG. 8 is a timing chart for explaining the operation at the variable rate in the example of FIG. 5;
[Explanation of symbols]
1 drive, 2 demodulator, 3 ECC circuit, 4 ring buffer, 5 multiplexed data separator, 6 video code buffer, 7 video decoder, 8 audio code buffer, 9 audio decoder, 21 data separator, 22 DTSV register, 23 Comparator, 24 DTSA register, 25 Comparator, 26 STC register, 27 Clock generation circuit, 28 Control circuit, 31 SCR register, 51, 52, 53, 54 Switch circuit

Claims (4)

入力データにそれぞれ時分割多重化されている、第1の符号化データと、前記第1の符号化データのデコード開始時刻を示す第1のタイミングデータと、前記第1の符号化データとは異なる第2の符号化データと、前記第2の符号化データのデコード開始時刻を示す第2のタイミングデータとを分離する多重化データ分離装置において、
前記入力データから前記第1の符号化データと、前記第1のタイミングデータと、前記第2の符号化データと、前記第2のタイミングデータとを分離する分離手段と、
前記分離手段によって分離された前記第1のタイミングデータの示す時刻と前記第2のタイミングデータの示す時刻とを比較する比較手段と
を含み、
前記第1の符号化データのデコード開始時刻が、前記第2の符号化データのデコード開始時刻よりも優先される場合であって、前記第2のタイミングデータの示す時刻が前記第1のタイミングデータの示す時刻より時間的に前である場合、前記分離手段は、前記第2の符号化データをデコーダに供給せず、
前記第2の符号化データのデコード開始時刻が、前記第1の符号化データのデコード開始時刻よりも優先される場合であって、前記第1のタイミングデータの示す時刻が前記第2のタイミングデータの示す時刻より時間的に前である場合、前記分離手段は、前記第1の符号化データをデコーダに供給しない
ことを特徴とする多重化データ分離装置。
The first encoded data, the first timing data indicating the decoding start time of the first encoded data, and the first encoded data, which are each time-division multiplexed to the input data, are different from each other. In a multiplexed data separator for separating second encoded data and second timing data indicating a decoding start time of the second encoded data,
Separating means for separating the first encoded data, the first timing data, the second encoded data, and the second timing data from the input data;
Comparing means for comparing the time indicated by the first timing data and the time indicated by the second timing data separated by the separating means;
The decoding start time of the first encoded data is prioritized over the decoding start time of the second encoded data, and the time indicated by the second timing data is the first timing data. When the time is before the time indicated by the above, the separating means does not supply the second encoded data to the decoder ,
The decoding start time of the second encoded data is prioritized over the decoding start time of the first encoded data, and the time indicated by the first timing data is the second timing data. If the time is before the time indicated by, the demultiplexing means does not supply the first encoded data to the decoder .
前記第1の符号化データは、符号化ビデオデータであり、前記第2の符号化データは、符号化音声データである
ことを特徴とする請求項1に記載の多重化データ分離装置。
The multiplexed data separation apparatus according to claim 1, wherein the first encoded data is encoded video data, and the second encoded data is encoded audio data.
入力データにそれぞれ時分割多重化されている、第1の符号化データと、前記第1の符号化データのデコード開始時刻を示す第1のタイミングデータと、前記第1の符号化データとは異なる第2の符号化データと、前記第2の符号化データのデコード開始時刻を示す第2のタイミングデータとを分離する多重化データ分離方法において、
前記入力データから前記第1のタイミングデータと、前記第1の符号化データと、前記第2の符号化データと、前記第2のタイミングデータとを分離し、
分離された前記第1のタイミングデータの示す時刻と前記第2のタイミングデータの示す時刻とを比較し、
前記第1の符号化データのデコード開始時刻が、前記第2の符号化データのデコード開始時刻よりも優先される場合であって、前記第2のタイミングデータの示す時刻が前記第1のタイミングデータの示す時刻より時間的に前である期間、前記第2の符号化データをデコーダに供給せず、
前記第2の符号化データのデコード開始時刻が、前記第1の符号化データのデコード開始時刻よりも優先される場合であって、前記第1のタイミングデータの示す時刻が前記第2のタイミングデータの示す時刻より時間的に前である期間、前記第1の符号化データをデコーダに供給しない
ことを特徴とする多重化データ分離方法。
The first encoded data, the first timing data indicating the decoding start time of the first encoded data, and the first encoded data, which are each time-division multiplexed to the input data, are different from each other. In a multiplexed data separation method for separating second encoded data and second timing data indicating a decoding start time of the second encoded data,
Separating the first timing data, the first encoded data, the second encoded data, and the second timing data from the input data;
Comparing the time indicated by the separated first timing data with the time indicated by the second timing data;
The decoding start time of the first encoded data is prioritized over the decoding start time of the second encoded data, and the time indicated by the second timing data is the first timing data. Without supplying the second encoded data to the decoder for a period that is earlier in time than the time indicated by
The decoding start time of the second encoded data is prioritized over the decoding start time of the first encoded data, and the time indicated by the first timing data is the second timing data. The multiplexed data separation method is characterized in that the first encoded data is not supplied to the decoder for a period of time before the time indicated by .
前記第1の符号化データは、符号化ビデオデータであり、前記第2の符号化データは、符号化音声データである
ことを特徴とする請求項に記載の多重化データ分離方法。
The multiplexed data separation method according to claim 3 , wherein the first encoded data is encoded video data, and the second encoded data is encoded audio data.
JP2003064491A 2003-03-11 2003-03-11 Multiplexed data separation apparatus and method Expired - Lifetime JP3692356B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003064491A JP3692356B2 (en) 2003-03-11 2003-03-11 Multiplexed data separation apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003064491A JP3692356B2 (en) 2003-03-11 2003-03-11 Multiplexed data separation apparatus and method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP12226993A Division JP3427416B2 (en) 1993-05-25 1993-05-25 Multiplexed data separation apparatus and method

Publications (2)

Publication Number Publication Date
JP2003324691A JP2003324691A (en) 2003-11-14
JP3692356B2 true JP3692356B2 (en) 2005-09-07

Family

ID=29546061

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003064491A Expired - Lifetime JP3692356B2 (en) 2003-03-11 2003-03-11 Multiplexed data separation apparatus and method

Country Status (1)

Country Link
JP (1) JP3692356B2 (en)

Also Published As

Publication number Publication date
JP2003324691A (en) 2003-11-14

Similar Documents

Publication Publication Date Title
KR100296528B1 (en) Multiplexed Data Separation Apparatus and Method
KR100271546B1 (en) Video and audio data demultiplexer having controlled synchronizing signal
JP5059301B2 (en) Synchronous playback apparatus and synchronous playback method
JPH09205618A (en) Dynamic image sound expansion reproduction device and dynamic image sound synchronization controller
JPH10164508A (en) Audio/video synchronous reproducing device
JP4589120B2 (en) Information storage medium on which stop video is recorded, reproducing apparatus and method thereof
JP4541517B2 (en) Recording device
JP4294660B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, AND RECORDING MEDIUM THEREOF
US8346059B2 (en) Data processing device, data processing method, program, program recording medium, data recording medium, and data structure
JP5262796B2 (en) Buffer control device, buffer control method, and program
JPH10262208A (en) Step-out controller and step-out control method
KR100629093B1 (en) Decoding apparatus and decoding method
JP3558983B2 (en) Digital broadcast recording and playback device
JP3692356B2 (en) Multiplexed data separation apparatus and method
JP3833571B2 (en) Data decoder and data decoding method
JP4900945B2 (en) Recording apparatus and recording method
JPH0898160A (en) Data multiplexing device
JP4690965B2 (en) Data recording / reproducing device
JP2008176918A (en) Reproducing apparatus and method, and recording medium
JP2006319552A (en) Multimedia reproducing device
JP2004248199A (en) System multiplexing apparatus
JP2008135845A (en) Transport stream recording and reproducing method and device
JP2000339860A (en) Data recording and reproducing device
JP3695423B2 (en) Playback device
JP4935655B2 (en) Reproduction device and separation circuit

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040706

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040903

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040929

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041124

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20041207

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20050107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050620

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

Free format text: PAYMENT UNTIL: 20080624

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090624

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090624

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100624

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100624

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110624

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120624

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120624

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130624

Year of fee payment: 8

EXPY Cancellation because of completion of term