JP3641051B2 - Packetized data processing apparatus and method - Google Patents
Packetized data processing apparatus and method Download PDFInfo
- Publication number
- JP3641051B2 JP3641051B2 JP01414996A JP1414996A JP3641051B2 JP 3641051 B2 JP3641051 B2 JP 3641051B2 JP 01414996 A JP01414996 A JP 01414996A JP 1414996 A JP1414996 A JP 1414996A JP 3641051 B2 JP3641051 B2 JP 3641051B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- main data
- packet
- packet sequence
- frame
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
【0001】
【発明の属する技術分野】
この発明は、各種のパケット化データが混在して到来した場合に、所望のパケットを適切に処理するパケット化データの処理装置及び方法に関する。
【0002】
【従来の技術】
近年、データ伝送やデータ記録/再生を行う場合に、データを圧縮して伝送したり、記録/再生を行うことが行われている。従来では、データの圧縮規格が定められると、その圧縮規格を基本にして、データ伝送や、データ記録、再生をおこなっている。しかしながら最近では、伝送技術の進歩や、製品流通経路の拡散にともなって、各種の規格の圧縮データや、符号化データが近くに混在するようになっている。
【0003】
【発明が解決しようとする課題】
上記したような各種のデータを取得するために、各規格に応じて個別のデコーダを用意することはユーザに取って負担が大きい。
そこでこの発明では、伝送あるいは記録/再生用の基本となるパケットを構成するデータ部のデータ長の規格に合致しないデータ長のフレームで区分されているメインデータが、前記パケットのデータ部に割り付けられていても、前記メインデータの同期状態を確実に得るようにし、前記パケットを有効に活用できるようにしたパケット化データの処理装置及び方法を提供することを目的とする。
【0004】
この発明は、前記パケットのメインデータが、特にリニアPCM方式のオーディオデータである場合に、前記オーディオデータのフレーム同期を確実に得られるパケット化データの処理装置及び方法を提供することを目的とする。
【0005】
【課題を解決するための手段】
この発明は、1パケットがヘッダ部とデータ部とからなり、このようなパケットのパケット列の各データ部にメインデータが割り付けられており、前記メインデータのフレーム長は、前記データ部長とは異なるフレーム長であって、1フレーム分のメインデータがパケット間を跨って配置される場合があり、前記ヘッダ部には、当該ヘッダ部が存在するパケット内の前記メインデータのフレームの始まりを示すファーストアクセスユニットポインタが含まれており、また前記パケット内のメインデータがメモリから出力される時点を示すプレゼンテーションタイムスタンプが含まれており、前記パケット列が入力される入力部と、前記ファーストアクセスポインタを検出した時点から、次のファーストアクセスポインタを検出する時点までのメインデータ量を計測するメインデータ量検出手段と、前記メインデータのフレーム長を示す情報を予め取得するフレーム長情報保持手段と、前記データ量検出手段で得たメインデータ量が、前記フレーム長情報保持手段で得られたフレーム長に相当するデータ量の整数倍であるかどうかを判定し、整数倍であれば前記メインデータが連続性ありと判定し、整数倍でない場合には、前記メインデータが不連続であると判定する判定手段と、前記判定手段の判定結果が、前記連続性ありの場合は、前記メモリの読出しを継続させ、不連続の場合は、前記プレゼンテーションタイムスタンプと内部基準時間情報との一致が得られたときを前記メモリからの読出し開始時点とする再同期手段とを備える。
【0006】
又この発明は、1パケットがヘッダ部とデータ部とからなり、このようなパケットのパケット列の各データ部にメインデータが割り付けられており、前記メインデータのフレーム長は、前記データ部長とは異なるフレーム長であって、1フレーム分のメインデータがパケット間を跨って配置される場合があり、前記ヘッダ部には、当該ヘッダ部が存在するパケット内の前記メインデータのフレームの始まりを示すファーストアクセスユニットポインタが含まれており、また前記パケット内のメインデータがメモリから出力される時点を示すプレゼンテーションタイムスタンプが含まれており、前記パケット列を取り込むステップと、前記パケット列を処理し、前記ファーストアクセスポインタを検出した時点から、次のファーストアクセスポインタを検出する時点までのメインデータ量を計測するステップと、前記メインデータの1フレーム分のフレーム長を示すフレーム長情報を予め取得するステップと、前記メインデータ量が、前記フレーム長情報に相当するデータ量の整数倍であるかどうかを判定し、整数倍であれば前記メインデータが連続性ありと判定し、整数倍でない場合には、前記メインデータが不連続であると判定するステップと、前記判定ステップの判定結果が、前記連続性ありの場合は、前記メモリの読出しを継続させ、不連続の場合は、前記プレゼンテーションタイムスタンプと内部基準時間情報との一致が得られたときを前記メモリからの読出し開始時点とするステップと備える。
【0007】
上記の手段及びステップにより、メインデータが、伝送あるいは記録/再生用の基本となるパケットを構成するデータ部のデータ長の規格に合致しないデータ長のフレームで区分され、かつ前記パケットのデータ部に割り付けられていたとしても、前記メインデータの同期状態を確実に得るようにし、前記パケットを有効に活用できる。
【0008】
【発明の実施の形態】
以下、この発明の実施の形態を図面を参照して説明する。
図1はこの発明の一実施の形態によるパケット化データの処理装置であり、具体的には、光学式ディスク再生装置に組み込まれている。図2は、光学式ディスク再生装置で再生される光ディスクに記録されているオーディオデータのパケット列の例を示している。
【0009】
図1の処理装置から説明する。入力端子11には、パケット列が供給される。このパケット列は、例えば光ディスクからピックアップされ復調されたものであり、1パケットが1パックに相当し、1パックとしてはオーディオパック、ビデオパック、副映像パック、制御情報パック等があり、これらのパックが時分割で入力端子11に入力する。これらのパック列は、データ分離部12において、そのパケットヘッダを参照されて、オーディオパケット、ビデオパケット、副映像パケット、制御情報パケット別に分離される。
【0010】
ここで図2を参照して上記パケット列について説明する。
図2はオーディオ信号がリニアPCM方式で変調されたデータ列を示しており、フレームベースのメインデータと、このフレームベースのメインデータをパケット列のデータ部に割り付けたパケットベースのデータを示している。
【0011】
パケットの構成をのべると、1パケットがヘッダ部とデータ部とからなる。そしてこのようなパケットのパケット列の各データ部にメインデータが割り付けられている。ここでメインデータのフレーム長は、データ部のデータ長とは異なるフレーム長であって、1フレーム分のメインデータがパケット間を跨がって配置される場合がある。図の例では、フレームF3とフレームF4がパケット間に跨がって配置されている。
【0012】
ヘッダ部には、当該ヘッダ部が存在するパケット内のデータ部のメインデータのフレームの始まりを示すファーストアクセスユニットポインタ(first access unit pinter)と、メインデータのフレーム長に関連する情報(オーディオデータ情報;audio data information)が含まれている。
【0013】
ファーストアクセスユニットポインタは、そのパケット内におけるメインデータの開始位置をデータカウント数で示している。したがって、図2の例ではパケットPCK1はフレームF2の開始位置を示し、パケットPCK2はフレームF4の開始位置を示している。PCK3の場合はフレームF5の開始位置を示している。
【0014】
オーディオデータ情報は、メインデータの量子化ビット数やパケット内のサンプル数、周波数等を示しており、これらの情報を計算することによりフレーム内のデータ量(フレーム長)を得ることができる。
【0015】
またヘッダ部には、プレゼンテーションタイムスタンプ(PTS)が記述されており、このPTSは、そのパケット内のメインデータがデコードされて出力されるべき時間情報を示している。このPTSと再生装置内部の時計情報とが比較され、一致したときに当該PTSに対応するフレームのデータ出力が実行される。前記時計情報は、装置内のカウンタから得られるもので、このカウンタは再生パケットに含まれる制御情報パケットのタイムスタンプによりリセットあるいは時刻合わせされ絶対時間情報を出力している。
【0016】
図1に戻って説明する。
オーディオパケットは、メインデータ量検出部20を構成するファーストアクセスユニットポインター抽出部21、データ数カウント開始部22に供給される。このデータ数カウント開始部22のデータ数カウント出力は、データ数カウント終了部23に入力される。ポインター抽出部21は、ファーストアクセスユニットポインターの内容に応じてデータ数を計数し、そのパケットのメインデータのフレーム開始位置になるとポインター信号を出力してデータ数カウント開始部22のリセット端とデータ数カウント終了部23のラッチ入力端に与える。これによりデータ数カウント開始部22は、図2の例で説明すると、例えばパケットPCK1のF2と、PCK2まで跨がるF3のデータ量を計数することになる。
【0017】
データ数カウント終了部23は、ポインター抽出部21からポインター信号が与えられるとデータ数カウント開始部22の出力データをラッチする。したがって、データ数カウント終了部23からは、メインデータの1フレーム分のデータ量の整数倍の数値Aが得られることになる。
【0018】
一方、オーディオパケットは、メインデータのフレーム長を得るフレーム長検出部30を構成するオーディオデータ情報抽出部31に供給される。オーディオデータ情報抽出部31は、図2で述べたオーディオデータ情報を取り出してフレーム長情報出力部32に供給する。フレーム長情報出力部32では、1フレーム分のフレーム長(データ量)を計算して、フレーム長情報Bを出力する。
【0019】
上記のデータ数カウント終了部23から出力されるメインデータの1フレーム分のデータ量の整数倍の数値Aと、フレーム長情報出力部32から出力される1フレーム分のフレーム長情報Bは、判定手段としての連続状態判定部40に入力される。
【0020】
連続状態判定部40は、データ量検出部20で得たメインデータ量が、フレーム長検出部30で得られたフレーム長に相当するデータ量の整数倍であるかどうかを判定し、整数倍であればメインデータは連続性有りと判定し、整数でない場合は、メインデータが不連続であると判定してその判定出力を得る。
【0021】
データ量を利用してメインデータの連続性が判定されるときは、データ数カウント終了部23から、1フレームの整数倍のデータのカウント値Aが出力され、またフレーム長情報出力部32からは1フレーム分のデータのカウント値Bが出力される。このときは、連続状態判定部40は、A/Bが所定の誤差範囲で割り切れる場合には連続性ありとする。A/Bが正確に割り切れる場合も当然連続性ありとなる。
【0022】
またタイミングパルスを利用してメインデータの連続性を判定することもできる。この場合は、上記のカウント値Aを安定したクロックで計数し、計数し終わったタイミングパルスA1を得る。このパルスはメインデータのフレーム周期の整数倍分の1の周期で得られる。一方、フレーム長情報出力32はこのときは、オーディオデータ情報に基づいて、また、パケットヘッダに同期させてカウンタを動作させて、1フレーム周期のパルスB1を出力する。ここで連続状態判定部40は、パルスA1とパルスB1のタイミングが一致または所定の位相関係で維持されているかどうかを判定することにより、メインデータに連続性があるのかどうかを判断することができる。
【0023】
上記のようにメインデータの連続性があるかどうかを判定する理由は、以下の通りである。
即ち、上記パケット列が記録媒体に記録されているような場合は、傷や誇りにより、一部欠落することがある。また伝送されて来る際に外乱により一部欠落することがある。このような場合は、データに信頼性がないので、その旨の表示あるいは破棄を行う必要があるからである。またオーディオデータの場合、欠落部分をそのまま再生してしまうとノイズとなって出力されるからである。そこで欠落を検出してミュート処理を行うことができる。
【0024】
上記の実施の形態は、メインデータの連続性があるかどうかの判定を行うものであった。メインデータが不連続であることの判定出力が得られた場合、再生しえいるオーディオと映像との同期が狂っていることが考えられる。そこで、オーディオパケットの同期を絶対時間に合わせて同期を取り直す必要がある。
【0025】
図3には、上記した連続/不連続判定出力を利用して、ビデオ情報、副映像情報の復号出力と、オーディオ情報の復号出力との同期を得るために、オーディオ情報の出力タイミングを修正する装置を示している。
【0026】
即ち、データ分離部12で分離されたオーディオパケットは、連続判定部100に入力されると共に、スイッチ51を介してPTS検出部52に入力される。PTS検出部52は、プレゼンテーションタイムスタンプを検出して比較器53の一方の入力端に供給する。比較器53の他方の入力端にはタイムスタンプカウンタ54からのカウント情報、絶対基準時間情報が入力されている。タイムスタンプカウンタ54は制御情報に含まれている時間情報(プレゼンテーションタイムスタンプ)に基づいて、装置内で基準となる連続した基準時間情報を発生している。
【0027】
比較器53は基準時間情報と、PTS検出部52からのPTSが一致すると、その一致パルスをFIFOメモリ部55に出力する。FIFOメモリ部55には、メインデータ(オーディオデータ)がフレーム検出部56にてフレーム単位で検出されて書き込まれている。フレーム検出部56からFIFOメモリ部55にはメインデータとそのデータのフレーム単位情報(フレームの区切を示すデータ数カウント値、つまりフレームデータ数の整数倍の数)が供給されている。ここで一致パルスが比較器53から与えられると、フレーム単位情報に基づいてフレームの先頭からデータ読み出しが開始される。これによりオーディオデータは、装置内の基準時間に同期したデータとして出力され、映像との同期が取れるようになる。
【0028】
ここで、連続性判定部100は、図1で説明した判定部であり、オーディオデータであるメインデータのフレームが連続しているか否かの判定出力を得る。この判定出力は、スイッチ51をオンオフ制御するもので、通常は、つまりフレームが連続しているときはスイッチ51をオフ制御する。そしてこのときは、フレーム検出部56を通過したメインデータがFIFOメモリ部55に書き込まれ、所定のデータレートで読み出される。
【0029】
しかし、連続性判定部100がメインデータの不連続を検出したしたときは、スイッチ51がオンされる。そしてPTSの取り直しが行われ、メインデータが基準時間と所定の関係で同期するように制御される。この動作は、例えば一定期間あるいは比較器53から所定回数の一致パルスが得られるまで実行される。
【0030】
したがってこの場合は、FIFOメモリ部55には、一致パルスを判定して所定回数カウントする機能、所定回数カウントしたら一致パルスに影響される自動的な書き込み読み出しを行うメモリ制御機能を含むメモリ制御部が含まれているものとする。またメモリ制御部は、フレーム検出部56からのフレーム同期信号を受けとり、フレーム単位でも書き込み読み出しを行いそのフレーム単位の書き込み読み出しアドレスとデータの管理をしているものとする。これにより、先の一致パルスが得られたときにフレーム単位での読み出しが開始可能である。
【0031】
図4は上記のフレーム検出部56の具体的構成例を示している。
データ分離部12で分離されたオーディオパケットは、ファーストアクセスユニットポインター抽出部21、オーディオデータ情報抽出部31、データ数カウント開始部22に供給されている。データ数カウント開始部22の出力は、フレーム同期検出部61に入力される。このフレーム同期検出部61は、図1で示したデータ数カウント終了部23と実質的に同じであってもよい。
【0032】
データ数カウント開始部22、フレーム同期検出部61には、それぞれファーストアクセスユニットポインター抽出部21からパケット内のメインデータのフレームの開始タイミングを示すイミング信号が供給される。これにより、フレーム同期検出部61には、フレームの区切りにおけるデータカウント数がラッチされることになる。このカウント数値は、フレーム長(フレームのデータ数)の整数倍である。
【0033】
また、先のオーディオデータ情報抽出部31の出力は、フレーム長情報抽出部32に供給されている。オーディオデータ情報抽出部31は、図2で述べたオーディオデータ情報を取り出してフレーム長情報出力部32に供給する。フレーム長情報出力部32では、1フレーム分のフレーム長(データ量)を計算して、フレーム長情報を出力する。このフレーム長情報は、ウインド発生部62に供給される。ウインド発生部62は、フレーム長情報(1フレーム分のデータ数)を用いて、フレーム周期のウインドパルスを発生する。
【0034】
このウインドパルスのタイミングで、先のカウント数値がフレーム同期信号として出力される。
このフレーム同期信号を利用するメモリ制御部は、例えば次のような利用を行う。FIFOメモリ55に対してメインデータの書き込みを行うとき、フレーム同期信号が1フレーム分のデータ値の整数倍のカウント数値を示すときは、メモリの書き込みスタートアドレスを所定アドレスにリセットする。これはFIFOメモリ55に多くのデータが書き込まれているからである。逆に、フレーム同期信号が特定の値、例えば1フレーム分のデータ値と等しいときは、現在の書き込みアドレスをインクリメントして連続して書き込むようにする。これはメモリ55に連続して書き込んでも余裕があるからである。
【0035】
フレーム同期信号が1フレーム分のデータ値の整数倍のカウント数値を示すときは、例えば図2を参照すると、パケットPCK2のF4の前までデータ数(F2、F3分)をカウントを終了して、次にF4のデータカウントを新たにスタートしようとする直前である。フレーム同期信号が特定の値、例えば1フレーム分のデータ値と等しいときは、F4のデータ数のカウントを終了して、パケットPCK3のF5のデータカウントを新たにスタートしようとする直前である。
【0036】
図5はこの発明の他の実施の形態である。
図3の実施の形態において、さらにスイッチ57が追加されている。このスイッチ57は連続判定部100から出力されるフレームの連続/不連続判定信号を利用するか否かを決めるスイッチである。他の部分は、図3の実施の形態と同じであるから図3と同一符号を付して説明は省略する。この実施の形態の場合、例えば光ディスク再生装置において、再生している光ディスクに、ビデオパックとオーディオパックが記録されているものであるかどうか、またはオーディオパックのみが記述されているものであるかどうかの識別をシステム制御部58で行うようになっている。この識別は、システム制御部58が制御情報パック(図1参照)を読取り判定することにより容易に可能である。システム制御部58は、スイッチ57をオンオフする制御信号を出力している。そして、再生している光ディスクが音声のみを記録しているものであれば、スイッチ57をオフするようにしている。
【0037】
この実施の形態によれば、オーディオのみを記録したディスクが再生されるときは、フレーム同期をとる必要がないからである。データ欠落時等にフレーム同期をとるとかえって音声のとぎれが生じ、特に音楽などであると音のとぎれがかえって耳障りとなることがあるからである。このような場合は、不連続を検出した場合には音声出力を減衰させるか、ミューティング処理の方が好ましい。これに対して、映像と音声が記録されている光ディスクを再生しているときに、音声が遅れたりして映像とタイミングが会わない場合は、映像をみていて不自然であるから、PTSによる同期処理を行うほうがよい。
【0038】
図6は、さらに上記FIFOメモリ部55の内部構成を示している。
メモリ部211には、データが供給される。アドレス発生部212は書き込みアドレス、読み出しアドレスを発生し、メモリ部211に与えている。ここで書き込みアドレスの状況は、一定量取込み検出部213により監視されている。そして、この一定量取込み検出部213は、メモリ部211に必ず所定量以上のデータが取込まれたことを検出してから読み出し処理を行わせる。この制御を行う理由は、入力データの欠落が生じたような場合に、所定の書き込み読み出し時間の関係でデータを読み出すと、出力バッファにおいて再三のアンダーフローが生じて音声が耳障りとなることがあるからである。この処理はオーディオ情報のみが記録されてディスクを再生する場合に有効である。
【0039】
なお上記の説明では、1フレーム分のフレーム長(データ量)がヘッダ部に含まれて伝送され、専用のフレーム長検出部がある如く説明した。しかしながら、フレーム長情報は、ディスクの管理情報エリアに記録されており、ディスク再生開始時に制御情報としてシステム制御部で把握されて保持されていてもよい。また、再生するディスクや到来する信号がわかっている場合は、応じて予め保持されているものであってもよい。
【0040】
また、上記の説明では、光ディスクの再生装置にこの発明を適用した例を説明したが、記録媒体としては磁気ディスク、磁気テープなど各種の媒体からの信号であってもよく、また、無線あるいは有線の伝送経路を通して送られて来るパケットエレメンタリーストリームに対しても充分用いることができる。
【0041】
即ち、図7に示すように光ディスク(磁気ディスク)61、または磁気テープ62などの媒体から、ピックアップ63により記録信号をピックアップし、復調器64で復調した信号が、上述したようなパケット化データである場合には、この発明は有効に適用できる。分離部65はパケットを分離してデコーダ66に供給する。このデコーダ66ないには上述したようなFIFOメモリが含まれる。また、パケットは連続性処理部67に入力される。この連続性処理部67が、先に説明したように連続/不連続の判定を行い、またPTSの取り直しなどを行う部分である。
【0042】
さらにこの発明は上記の実施の形態に限定されるものではなく、種々の変形実施が可能である。複数のデジタルシグナルプロセッサを用いて、等化的に上記図1、図3乃至図6に示すブロックをソフトウエア処理ブロックとして構成してもよいことは勿論である。
【0043】
【発明の効果】
以上説明したようにこの発明によれば、伝送あるいは記録/再生用の基本となるパケットを構成するデータ部のデータ長の規格に合致しないデータ長を有するフレームで区分されているメインデータが、前記パケットのデータ部に割り付けられていても、前記メインデータの同期状態を確実に得るようにし、前記パケットを有効に活用できるようにしている。
【0044】
またこの発明は、前記パケットのメインデータが、特にリニアPCM方式のオーディオデータである場合に、前記オーディオデータのフレーム同期を確実に得られるようにしている。
【図面の簡単な説明】
【図1】この発明の一実施の形態を示す図。
【図2】この発明に係るパケットエレメンタリーストリームの説明図。
【図3】この発明の他の実施の形態を示す図。
【図4】この発明のさらに他の実施の形態を示す図。
【図5】この発明のまた他の実施の形態を示す図。
【図6】この発明に係るメモリ部の他の実施の形態を示す図。
【図7】この発明の適用例を示す図。
【符号の説明】
12…データ分離部、
21…ファーストアクセスユニットポインター抽出部
22…データ数カウント開始部
23…データ数カウント終了部
31…オーディオデータ情報抽出部
32…フレーム長情報抽出部
40…連続状態判定部
51、57…スイッチ
52…PTS取込み部
53…比較器
54…タイムスタンプカウンタ
55…FIFOメモリ部
56…フレーム検出部
58…システム制御部
100…連続判定部
61…フレーム同期検出部
62…ウインド発生部。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a packetized data processing apparatus and method for appropriately processing a desired packet when various types of packetized data arrive together.
[0002]
[Prior art]
In recent years, when data transmission or data recording / reproduction is performed, data is compressed and transmitted, or recording / reproduction is performed. Conventionally, when a data compression standard is determined, data transmission, data recording, and reproduction are performed based on the compression standard. However, recently, with the advancement of transmission technology and the spread of product distribution channels, various standards of compressed data and encoded data have been mixed nearby.
[0003]
[Problems to be solved by the invention]
In order to obtain the various data as described above, it is burdensome for the user to prepare an individual decoder according to each standard.
Therefore, according to the present invention, main data divided by a frame having a data length that does not conform to the data length standard of the data portion constituting the packet serving as a basic packet for transmission or recording / playback is allocated to the data portion of the packet. Even so, an object of the present invention is to provide a packetized data processing apparatus and method which can reliably obtain the synchronization state of the main data and can effectively use the packets.
[0004]
It is an object of the present invention to provide a packetized data processing apparatus and method capable of reliably obtaining frame synchronization of the audio data when the main data of the packet is audio data of a linear PCM system in particular. .
[0005]
[Means for Solving the Problems]
According to the present invention, one packet includes a header part and a data part, and main data is allocated to each data part of the packet sequence of such a packet, and the frame length of the main data is different from the data part length. There is a case where the main data for one frame is arranged across packets, and the header portion includes a first indicating the start of the main data frame in the packet in which the header portion exists. An access unit pointer is included, and a presentation time stamp indicating when the main data in the packet is output from the memory is included, and an input unit to which the packet string is input, and the first access pointer From the time of detection to the time of detecting the next first access pointer The main data amount detecting means for measuring the main data amount, the frame length information holding means for acquiring in advance information indicating the frame length of the main data, and the main data amount obtained by the data amount detecting means are the frame length information. It is determined whether it is an integer multiple of the data amount corresponding to the frame length obtained by the holding means. If it is an integer multiple, the main data is determined to be continuous, and if it is not an integer multiple, the main data Is determined to be discontinuous, and if the determination result of the determination means is the continuity, reading of the memory is continued, and if it is discontinuous, the presentation time stamp and the internal reference time Resynchronizing means for setting the time when reading from the memory is started when a match with the information is obtained .
[0006]
According to the present invention, one packet includes a header part and a data part, and main data is allocated to each data part of the packet sequence of such a packet. The frame length of the main data is the data part length. The main data for one frame may be arranged across different packets with different frame lengths, and the header portion indicates the start of the frame of the main data in the packet in which the header portion exists A first access unit pointer is included, and a presentation time stamp indicating when the main data in the packet is output from the memory is included, and the step of capturing the packet sequence, processing the packet sequence, From the time when the first access pointer is detected, the next first access pointer is detected. Measuring the amount of main data up to the point of detecting the data, obtaining in advance frame length information indicating the frame length of one frame of the main data, and the amount of main data corresponding to the frame length information Determining whether the data amount is an integer multiple, and determining that the main data is continuous if it is an integer multiple, and determining that the main data is discontinuous if it is not an integer multiple; When the determination result of the determination step is the continuity, the reading of the memory is continued, and when the determination result is discontinuous, the time when the presentation time stamp matches the internal reference time information is obtained. A step of starting reading from the memory.
[0007]
By the above means and steps, the main data is divided into frames having a data length that does not conform to the data length standard of the data portion constituting the basic packet for transmission or recording / reproduction, and the data portion of the packet is Even if it is assigned, the packet can be used effectively by ensuring the synchronization state of the main data.
[0008]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 shows a packetized data processing apparatus according to an embodiment of the present invention. Specifically, the packetized data processing apparatus is incorporated in an optical disk reproducing apparatus. FIG. 2 shows an example of a packet sequence of audio data recorded on an optical disc played back by an optical disc playback apparatus.
[0009]
The processing apparatus of FIG. 1 will be described. A packet sequence is supplied to the
[0010]
Here, the packet sequence will be described with reference to FIG.
FIG. 2 shows a data sequence in which an audio signal is modulated by the linear PCM method, and shows frame-based main data and packet-based data in which this frame-based main data is allocated to the data portion of the packet sequence. .
[0011]
Looking at the packet structure, one packet is composed of a header part and a data part. Main data is allocated to each data portion of the packet sequence of such a packet. Here, the frame length of the main data is a frame length different from the data length of the data portion, and there is a case where the main data for one frame is arranged across the packets. In the example of the figure, the frame F3 and the frame F4 are arranged across the packets.
[0012]
The header portion includes a first access unit pinter indicating the start of the main data frame of the data portion in the packet in which the header portion exists, and information related to the main data frame length (audio data information). Audio data information).
[0013]
The first access unit pointer indicates the start position of the main data in the packet by the data count number. Therefore, in the example of FIG. 2, the packet PCK1 indicates the start position of the frame F2, and the packet PCK2 indicates the start position of the frame F4. In the case of PCK3, the start position of the frame F5 is shown.
[0014]
The audio data information indicates the number of quantization bits of the main data, the number of samples in the packet, the frequency, and the like, and the amount of data (frame length) in the frame can be obtained by calculating such information.
[0015]
In addition, a presentation time stamp (PTS) is described in the header portion, and this PTS indicates time information to be output by decoding main data in the packet. This PTS is compared with the clock information in the playback apparatus, and when they match, the data output of the frame corresponding to the PTS is executed. The clock information is obtained from a counter in the apparatus, and this counter is reset or timed by the time stamp of the control information packet included in the reproduction packet and outputs absolute time information.
[0016]
Returning to FIG.
The audio packet is supplied to a first access unit
[0017]
The data number count end unit 23 latches the output data of the data number
[0018]
On the other hand, the audio packet is supplied to an audio data
[0019]
The numerical value A which is an integral multiple of the data amount of one frame of main data output from the data count counting unit 23 and the frame length information B of one frame output from the frame length
[0020]
The continuous
[0021]
When the continuity of the main data is determined using the data amount, the count value A of data that is an integral multiple of one frame is output from the data count counting unit 23, and the frame length information output unit 32 A count value B of data for one frame is output. At this time, the continuous
[0022]
In addition, the continuity of the main data can be determined using the timing pulse. In this case, the count value A is counted with a stable clock to obtain a timing pulse A1 that has been counted. This pulse is obtained at a period of 1 / integer multiple of the frame period of the main data. On the other hand, the frame
[0023]
The reason for determining whether there is continuity of the main data as described above is as follows.
That is, when the packet sequence is recorded on a recording medium, it may be partially lost due to scratches or pride. In addition, some parts may be lost due to disturbance when transmitted. In such a case, since the data is not reliable, it is necessary to display or discard the fact. In the case of audio data, if the missing part is reproduced as it is, it is output as noise. Therefore, it is possible to detect the loss and perform the mute process.
[0024]
In the embodiment described above, it is determined whether or not the main data is continuous. If a determination output indicating that the main data is discontinuous is obtained, it is possible that the audio and video that can be reproduced are out of synchronization. Therefore, it is necessary to re-synchronize audio packets in synchronization with the absolute time.
[0025]
In FIG. 3, the output timing of the audio information is corrected in order to obtain synchronization between the decoded output of the video information and the sub-picture information and the decoded output of the audio information using the above-described continuous / discontinuous determination output. The device is shown.
[0026]
That is, the audio packet separated by the
[0027]
When the reference time information matches the PTS from the
[0028]
Here, the
[0029]
However, when the
[0030]
Therefore, in this case, the
[0031]
FIG. 4 shows a specific configuration example of the
The audio packet separated by the
[0032]
An imming signal indicating the start timing of the main data frame in the packet is supplied from the first access unit
[0033]
The output of the previous audio data
[0034]
At the timing of this window pulse, the previous count value is output as a frame synchronization signal.
The memory control unit that uses the frame synchronization signal performs the following use, for example. When writing main data to the
[0035]
When the frame synchronization signal indicates a count value that is an integer multiple of the data value for one frame, for example, referring to FIG. 2, the count of the data number (F2, F3 minutes) is terminated until F4 of the packet PCK2. Next, immediately before the data count of F4 is newly started. When the frame synchronization signal is equal to a specific value, for example, the data value for one frame, it is immediately before the count of the number of data of F4 is finished and the data count of F5 of the packet PCK3 is newly started.
[0036]
FIG. 5 shows another embodiment of the present invention.
In the embodiment of FIG. 3, a
[0037]
This is because, according to this embodiment, when a disc on which only audio is recorded is reproduced, it is not necessary to establish frame synchronization. This is because if the frame synchronization is taken when data is lost, the sound breaks off, and especially in the case of music, the sound breaks off. In such a case, it is preferable to attenuate the audio output when discontinuity is detected or to perform a muting process. On the other hand, when playing back an optical disc on which video and audio are recorded, if the audio is delayed and the video and timing do not meet, the video is unnatural and it is unnatural. It is better to process.
[0038]
FIG. 6 further shows the internal configuration of the
Data is supplied to the
[0039]
In the above description, the frame length (data amount) for one frame is transmitted while being included in the header portion, and there is a dedicated frame length detection portion. However, the frame length information may be recorded in the management information area of the disc, and may be grasped and held by the system control unit as control information at the start of disc playback. If the disc to be played back or the incoming signal is known, it may be stored in advance accordingly.
[0040]
In the above description, an example in which the present invention is applied to an optical disk reproducing apparatus has been described. However, the recording medium may be a signal from various media such as a magnetic disk and a magnetic tape, and may be wireless or wired. It can also be used sufficiently for packet elementary streams sent through the transmission path.
[0041]
That is, as shown in FIG. 7, a recording signal is picked up by a pickup 63 from a medium such as an optical disk (magnetic disk) 61 or a
[0042]
Furthermore, the present invention is not limited to the above-described embodiment, and various modifications can be made. Of course, the blocks shown in FIGS. 1 and 3 to 6 may be configured as software processing blocks by using a plurality of digital signal processors.
[0043]
【The invention's effect】
As described above, according to the present invention, the main data divided by the frames having the data length that does not conform to the data length standard of the data portion constituting the basic packet for transmission or recording / reproduction is the above-mentioned Even if it is assigned to the data portion of the packet, the synchronization state of the main data is reliably obtained so that the packet can be used effectively.
[0044]
Also, the present invention ensures that frame synchronization of the audio data can be reliably obtained when the main data of the packet is particularly audio data of linear PCM system.
[Brief description of the drawings]
FIG. 1 is a diagram showing an embodiment of the present invention.
FIG. 2 is an explanatory diagram of a packet elementary stream according to the present invention.
FIG. 3 is a diagram showing another embodiment of the present invention.
FIG. 4 is a view showing still another embodiment of the present invention.
FIG. 5 is a view showing still another embodiment of the present invention.
FIG. 6 is a diagram showing another embodiment of the memory unit according to the present invention.
FIG. 7 is a diagram showing an application example of the present invention.
[Explanation of symbols]
12: Data separation unit,
21 ... First access unit
Claims (8)
前記パケット列が入力される入力部と、
前記ファーストアクセスポインタを検出した時点から、次のファーストアクセスポインタを検出する時点までのメインデータ量を計測するメインデータ量検出手段と、
前記メインデータのフレーム長を示す情報を予め取得するフレーム長情報保持手段と、
前記メインデータ量検出手段で得たメインデータ量が、前記フレーム長情報保持手段で得られたフレーム長に相当するデータ量の整数倍であるかどうかを判定し、整数倍であれば前記メインデータが連続性ありと判定し、整数倍でない場合には、前記メインデータが不連続であると判定する判定手段と、
前記判定手段の判定結果が、前記連続性ありの場合は、前記メモリの読出しを継続させ、不連続の場合は、前記プレゼンテーションタイムスタンプと内部基準時間情報との一致が得られたときを前記メモリからの読出し開始時点とする再同期手段と
を具備したことを特徴とするパケット化データの処理装置。One packet is composed of a header part and a data part, and main data is allocated to each data part of the packet sequence of such a packet, and the frame length of the main data is different from the data part length. In some cases, one frame of main data is arranged across packets, and the header portion includes a first access unit pointer that indicates the start of the main data frame in the packet in which the header portion exists. A presentation time stamp indicating when the main data in the packet is output from the memory,
An input unit to which the packet sequence is input;
Main data amount detecting means for measuring the amount of main data from the time when the first access pointer is detected to the time when the next first access pointer is detected;
Frame length information holding means for acquiring in advance information indicating the frame length of the main data;
It is determined whether the main data amount obtained by the main data amount detection means is an integer multiple of the data amount corresponding to the frame length obtained by the frame length information holding means. Is determined to be continuous, and when it is not an integer multiple, a determination means for determining that the main data is discontinuous;
When the determination result of the determination means is the continuity, reading of the memory is continued, and when the determination result is discontinuous, the time when the presentation time stamp matches the internal reference time information is obtained. And a resynchronizing means for starting reading from the packetized data processing apparatus.
前記パケット列が入力される入力部と、
前記ファーストアクセスポインタを検出した時点から、次のファーストアクセスポインタを検出する時点までのメインデータ量を計測するメインデータ量検出手段と、
前記メインデータのフレーム長を示す情報を用いて前記入力部のパケット列に含まれる前記メインデータのフレーム長を得るフレーム長検出手段と、
前記メインデータ量検出手段で得たメインデータ量が、前記フレーム長検出手段で得られたフレーム長に相当するデータ量の整数倍であるかどうかを判定し、整数倍であれば前記メインデータが連続性ありと判定し、整数倍でない場合には、前記メインデータが不連続であると判定する判定手段と、
前記判定手段の判定結果が、前記連続性ありの場合は、前記メモリの読出しを継続させ、不連続の場合は、前記プレゼンテーションタイムスタンプと内部基準時間情報との一致が得られたときを前記メモリからの読出し開始時点とする再同期手段と
を具備したことを特徴とするパケット化データの処理装置。One packet is composed of a header part and a data part, and main data is allocated to each data part of the packet sequence of such a packet, and the frame length of the main data is different from the data part length. The main data for one frame may be arranged across packets, and the header part includes a first access unit pointer indicating the start of the frame of the main data in the packet in which the header part exists. , Including information indicating the frame length of the main data, and including a presentation time stamp indicating the time when the main data in the packet is output from the memory,
An input unit to which the packet sequence is input;
Main data amount detecting means for measuring the amount of main data from the time when the first access pointer is detected to the time when the next first access pointer is detected;
Frame length detection means for obtaining the frame length of the main data included in the packet sequence of the input unit using information indicating the frame length of the main data;
The main amount of data obtained in the main data amount detecting means determines whether an integer multiple of the data amount corresponding to a frame length obtained by the frame length detecting means, wherein the main data if the integral multiple If it is determined that there is continuity and is not an integer multiple, determination means for determining that the main data is discontinuous;
When the determination result of the determination means is the continuity, reading of the memory is continued, and when the determination result is discontinuous, the time when the presentation time stamp matches the internal reference time information is obtained. And a resynchronizing means for starting reading from the packetized data processing apparatus.
前記オーディオに関するパケット列のみが前記入力部に供給されているときは、前記判定手段の判定動作を停止する手段を有したことを特徴とする請求項1又は2記載のパケット化データの処理装置。 The packet sequence includes a packet sequence related to audio and a packet sequence related to video,
3. The packetized data processing apparatus according to claim 1, further comprising means for stopping the determination operation of the determination means when only the packet sequence relating to the audio is supplied to the input unit.
前記オーディオに関するパケット列の前記メインデータを蓄積するための前記メモリと、このメモリに一定量以上の前記メインデータが取り込まれているかどうかを判定し、一定量以上が取り込まれていると判定した場合のみ前記メモリのデータを読み出す手段とを具備したことを特徴とする請求項1又は2記載のパケット化データの処理装置。 The packet sequence includes a packet sequence related to audio and a packet sequence related to video,
When the memory for storing the main data of the packet sequence related to the audio and whether or not a certain amount or more of the main data is captured are determined and it is determined that a certain amount or more is captured 3. The packetized data processing apparatus according to claim 1, further comprising: means for reading data in the memory only.
前記オーディオに関するパケット列と映像に関するパケット列が前記入力部に供給されているときに、前記判定手段をオンとする手段を有したことを特徴とする請求項1又は2記載のパケット化データの処理装置。 The packet sequence includes a packet sequence related to audio and a packet sequence related to video,
3. The packetized data processing according to claim 1, further comprising means for turning on the determination means when the packet sequence related to audio and the packet sequence related to video are supplied to the input unit. apparatus.
前記オーディオに関するパケット列のデータ部は、リニアPCM方式のオーディオデータであることを特徴とする請求項1又は2記載のパケット化データの処理装置。 The packet sequence includes a packet sequence related to audio and a packet sequence related to video,
3. The packetized data processing apparatus according to claim 1, wherein the data portion of the packet sequence related to audio is linear PCM audio data.
前記パケット列を取り込むステップと、
前記パケット列を処理し、前記ファーストアクセスポインタを検出した時点から、次のファーストアクセスポインタを検出する時点までのメインデータ量を計測するステップと、
前記メインデータの1フレーム分のフレーム長を示すフレーム長情報を予め取得するステップと、
前記メインデータ量が、前記フレーム長情報に相当するデータ量の整数倍であるかどうかを判定し、整数倍であれば前記メインデータが連続性ありと判定し、整数倍でない場合には、前記メインデータが不連続であると判定するステップと、
前記判定ステップの判定結果が、前記連続性ありの場合は、前記メモリの読出しを継続させ、不連続の場合は、前記プレゼンテーションタイムスタンプと内部基準時間情報との一致が得られたときを前記メモリからの読出し開始時点とするステップ
を具備したことを特徴とするパケット化データの処理方法。One packet is composed of a header part and a data part, and main data is allocated to each data part of the packet sequence of such a packet, and the frame length of the main data is different from the data part length. In some cases, one frame of main data is arranged across packets, and the header portion includes a first access unit pointer that indicates the start of the main data frame in the packet in which the header portion exists. A presentation time stamp indicating when the main data in the packet is output from the memory,
Capturing the packet sequence;
Processing the packet sequence and measuring the amount of main data from the time when the first access pointer is detected to the time when the next first access pointer is detected;
Obtaining in advance frame length information indicating a frame length of one frame of the main data;
It is determined whether the main data amount is an integer multiple of the data amount corresponding to the frame length information. If the main data amount is an integer multiple, the main data is determined to be continuous. Determining that the main data is discontinuous;
When the determination result of the determination step is the continuity, the reading of the memory is continued, and when the determination result is discontinuous, the time when the presentation time stamp matches the internal reference time information is obtained. A method for processing packetized data, comprising: a step of starting reading from a packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP01414996A JP3641051B2 (en) | 1996-01-30 | 1996-01-30 | Packetized data processing apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP01414996A JP3641051B2 (en) | 1996-01-30 | 1996-01-30 | Packetized data processing apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH09214478A JPH09214478A (en) | 1997-08-15 |
JP3641051B2 true JP3641051B2 (en) | 2005-04-20 |
Family
ID=11853102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP01414996A Expired - Fee Related JP3641051B2 (en) | 1996-01-30 | 1996-01-30 | Packetized data processing apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3641051B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ID25882A (en) * | 1997-10-15 | 2000-11-09 | Matsushita Electric Ind Co Ltd | OPTICAL DISK |
KR100524992B1 (en) * | 2003-11-11 | 2005-10-31 | 삼성전자주식회사 | Disk player for allotting pointers to CD frames and storing pointers and frames to memory and method for controlling reproducing data of disk player |
JP2007202156A (en) * | 2007-01-23 | 2007-08-09 | Indigita Corp | Digital video, and data recording apparatus |
JP2008113460A (en) * | 2007-12-04 | 2008-05-15 | Indigita Corp | Recording and reproducing device for audio/video data |
-
1996
- 1996-01-30 JP JP01414996A patent/JP3641051B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH09214478A (en) | 1997-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0602943B1 (en) | Apparatus for reproducing multiplexed data from a record medium | |
US8249419B2 (en) | Method for generating additional information for guaranteeing seamless playback between data streams, recording medium storing the information, and recording, editing and/or playback apparatus using the same | |
US6163646A (en) | Apparatus for a synchronized playback of audio-video signals | |
JP3047812B2 (en) | Magnetic recording / reproducing device | |
US6956869B1 (en) | Data recording and/or reproducing apparatus, method, and system and recording medium | |
EP0752703B1 (en) | Information recording apparatus and information reproducing apparatus | |
JP4439468B2 (en) | Data processing device | |
US5818547A (en) | Timing detection device and method | |
JP3641051B2 (en) | Packetized data processing apparatus and method | |
US20070058952A1 (en) | Method of automatic chapter insertion and digital versatile disc recorder thereof | |
US6940872B1 (en) | Block forming method and apparatus of digital bit stream | |
JP4288549B2 (en) | Recording apparatus and method, and reproducing apparatus and method | |
JP2001078146A (en) | Video decoding method and system | |
AU703389B2 (en) | Playback device and method of playing back a bit stream of a storage medium | |
JP4207304B2 (en) | Information input device and method, information output device and method, and recording medium | |
JP2002290910A (en) | Multimedia information recording and reproducing device | |
JPS6052505B2 (en) | PCM signal demodulator | |
KR100442279B1 (en) | Record-playback system of digital video and audio image | |
JP3923553B2 (en) | Synchronizer for video / audio processor | |
KR100677110B1 (en) | Apparatus for recording and/or editing of data ensuring seamless playback between data stream | |
JP3892759B2 (en) | Recording / reproducing apparatus, recording apparatus, reproducing apparatus, and recording / reproducing method | |
JP3004105U (en) | Compressed signal playback and synchronization device | |
KR100657262B1 (en) | Recording medium for storing additional information so as to ensure seamless playback between data stream | |
JP2786481B2 (en) | Digital signal processing equipment | |
JP4164295B2 (en) | Information recording apparatus and information recording method, information processing apparatus and information processing method, information reproducing apparatus and information reproducing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040805 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040810 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041012 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20041102 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041213 |
|
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: 20050118 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050120 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080128 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090128 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100128 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |