JP3768008B2 - Image signal reproduction device - Google Patents

Image signal reproduction device Download PDF

Info

Publication number
JP3768008B2
JP3768008B2 JP20557398A JP20557398A JP3768008B2 JP 3768008 B2 JP3768008 B2 JP 3768008B2 JP 20557398 A JP20557398 A JP 20557398A JP 20557398 A JP20557398 A JP 20557398A JP 3768008 B2 JP3768008 B2 JP 3768008B2
Authority
JP
Japan
Prior art keywords
packet
time information
reproduction
error
reproduction time
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
Application number
JP20557398A
Other languages
Japanese (ja)
Other versions
JP2000040311A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP20557398A priority Critical patent/JP3768008B2/en
Publication of JP2000040311A publication Critical patent/JP2000040311A/en
Application granted granted Critical
Publication of JP3768008B2 publication Critical patent/JP3768008B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
この発明は、ディジタル符号化された音声、映像、字幕データ等が多重化されたデータ列の同期再生を行う画像信号再生装置に関し、特に、多重符号化信号のパケット識別子、及びパケット長、ヘッダー長をもとにエラー処理を行うようにしたものに関する。
【0002】
【従来の技術】
近年、DVDやディジタルCS放送等に見られるように、画像信号,音声信号及び字幕情報等の付加情報信号をディジタル符号化、多重化したメディアが急速に普及しつつある。
【0003】
前記のような多重化されたディジタル信号の再生装置においては、符号化時もしくは伝送路で符号化ディジタルデータ中に誤りが混入される場合があり、このような場合でも再生画像、音声等の再生がスムーズで劣化の小さな再生動作が可能な装置を提供することが望まれている。
【0004】
前記ディジタルメディアでは、映像信号についてはMPEG規格で規定された符号化が一般には使用されている。音声についてはMPEG以外の符号化方式が採用されることもある。音声、映像の符号化データの多重化にはMPEGのシステム規格で定義された多重化方式で多重化が行われる。
【0005】
図8にパケットにより多重化された音声、映像、付加情報符号化データの例を示す。多重化及び符号化されたデータはバイトアライメントされている。図において、PSPはパケットスタートコード前置コード、PIDはパケット識別子、PKCはパケット長情報、PIは再生情報、VCDは映像の符号化データ、SCDは音声の符号化データ、ACDは付加情報の符号化データ、PKTはパケットであり、これらパケット識別子PID、パケット長情報PKC、再生情報PIおよび、映像の符号化データVCD,音声の符号化データSCD,付加情報の符号化データACDのいずれかの符号化データからなる。また、PKHはパックヘッダーである。PCKはパックであり、パックヘッダーPKHおよびパケットPKTからなるものである。
【0006】
音声、映像信号は専用の符号化装置によりそれぞれディジタル符号化され、多重化装置によりパケット単位で多重化される。パケットの先頭にはパケット先頭を示す同期信号としてのパケットスタートコード前置コードPSPと音声、画像のパケットの区別をするパケット識別子PID、パケット長情報PKC、画像、音声の同期再生情報等のパケットヘッダーPKHが付加される。前記パケットスタートコード前置コードPSPは多重データ中のユニークなパターンである。映像信号の符号化においては階層符号化が行われ、その階層の開始を示す符号列と階層名を示す符号列が使用される。前記階層の開始を示す符号列とパケット先頭を示すスタートコード前置コードとは同じ符号列である。
【0007】
通常、パケットのヘッダー情報に含まれるパケット長で示されるデータ単位ごとにパケットスタートコード前置コードが多重データ列に現れるため、ビデオ符号化データの階層開始コードとの混同は起こらない。
【0008】
通常、蓄積系のメディアではセクター単位でパケットが管理され、パケットの先頭にはパックスタートコードが付加され、パックスタートコードと前記スタートコードに続くヘッダー部とパケットで1つのパックが構成されている。1パックは固定長で、パケットは可変長となるのが普通である。
【0009】
図9は従来の画像信号再生装置における画像信号分離装置の一構成例を示すものである。図において、1は本画像信号再生装置に対し多重データ列を供給する多重符号化信号供給部であり、ECC等のエラー訂正が施された後のデータを蓄積している。2s1は多重符号化信号供給部1から供給された多重データ列を一旦蓄積する入力バッファ、2s2は入力バッファ2s1から出力された多重データ列を端子a,b,cに切り替えて出力するデータ切替スイッチである。2s3はデータ切替スイッチ2s2の端子aから出力されたデータのなかからユニークパターンを検出するユニークパターン検出器である。2s4はデータ切替えスイッチ2s2の端子bから出力されたデータのヘッダーを解析するヘッダー解析部である。2s5はデータ切替えスイッチ2s2の端子cから出力されたデータのバッファ転送制御を行うバッファ転送制御手段である。2s6はユニークパターン検出器2s3の検出結果に基づいてデータ切替えスイッチ2s2の切替え制御を行う入力処理制御手段である。
【0010】
また、2はこれら入力バッファ2s1,データ切替えスイッチ2s2,ユニークパターン検出器2s3,ヘッダー解析部2s4,バッファ転送制御手段2s5,入力処理制御手段2s6からなる多重信号分離部である。
【0011】
2s7はヘッダー解析部2s4により解析された再生時間情報を記憶する再生時間情報記憶手段である。2s10はバッファ転送制御手段2s5により得られた復号すべきデータを蓄える復号データバッファである。2s8は再生時間情報の読み出し制御を行う再生時間情報読み出し制御手段である。2s11は復号データバッファ2s10に蓄えられた復号データの読み出し制御を行う復号データ読み出し制御手段である。2s14は再生時間の基準となる再生基準時間をカウントする再生時間基準カウンタである。3は再生時間基準カウンタ2s14によりカウントされる再生基準時間と再生時間情報読み出し制御手段2s8により得られた再生時間情報とを比較し、これらが一致したタイミングで復号データを復号する復号部である。
【0012】
6はこれら多重信号分離部2,再生時間情報記憶手段2s7,再生時間情報読み出し制御手段2s8,復号データバッファ2s10,復号データ読み出し制御手段2s11,再生時間基準カウンタ2s14および復号部3からなる画像信号再生装置である。
【0013】
また、4は画像信号再生装置6に対する制御を行うホストCPUである。5はホストCPU4と画像信号再生装置6との間を接続するホストバスである。
【0014】
次に動作について説明する。多重符号化信号供給部1から供給される多重化データ列は入力バッファ2s1に一旦蓄積される。最初にデータ切替えスイッチ2s2は端子aに接続される。前記入力バッファ2s1に蓄積された多重データ列はデータ切替えスイッチ2s2を介してユニークパターン検出器2s3に入力され、前記多重化データのパック、パケットの区切りを示すユニークパターンの検出動作に遷移する。
【0015】
前記ユニークパターン検出器2s3はパックもしくはパケットの先頭を表すユニークパターンの検出を行うと、入力処理制御手段2s6に対し、パックもしくはパケット先頭を検出した旨を通知するとともにパック、映像、音声、字幕等のいずれのパケットを検出したかを通知する。
【0016】
前記入力処理制御手段2s6はパック、パケットの先頭が検出されたのを受けてデータ切替えスイッチ2s2を端子bに切替えるとともにヘッダー解析部2s4を起動する。
【0017】
前記入力処理制御手段2s6には、後段の復号データバッファ2s10に格納して復号を行うべきパケットの識別子が、外部のホストCPU4により予め設定されており、前記有効パケット識別子に一致しない識別子のパケットを検出した場合には、パケット中の符号データを復号データバッファ2s10に向けて転送する。
【0018】
前記ヘッダー解析部2s4は多重データ列のヘッダー中に含まれる多重信号のマルチプレックスに必要とされるパケット長、ヘッダー長、再生時間情報等の抽出を行う。パケット長もしくはヘッダー長はパケットに含まれる復号データを復号データバッファに分別するために使用される。また、該パケットが有効パケットの場合、前記再生時間情報はこれが抽出されるごとに再生時間情報記憶手段2s7に記憶される。前記再生時間情報記憶手段2s7は記憶エリアがリングバッファの形態で管理されており、入力されたデータがリングを1周するのに相当する時間、入力データの遅延を行う。
【0019】
前記ヘッダー解析部2s4によって蓄積された再生時間管理情報は、後段の復号部3により再生単位の復号が完了し出力するときの制御情報として適宜前記最生時間情報記憶手段2s7から再生時間情報読み出し制御手段2s8によって読み出される。前記パケットに含まれる復号データはパケットの種類を表すパケット識別子とヘッダー長及びパケット長を用いて復号データバッファ2s10に映像、音声、字幕等の各符号化データ種別に転送制御情報をもとにバッファ転送制御手段2s5によって転送される。前記復号部3は前記復号データバッファ2s10に含まれる音声、映像、字幕等の符号化データの復号を行い、前記再生管理情報及び再生時間基準カウンタを用いて音声、映像、字幕等のデータの同期再生を行う。
【0020】
【発明が解決しようとする課題】
従来例の画像信号再生装置は以上述べたように構成されており、データ分離に必要とされるパケット識別子、パケット長、ヘッダー長等が正確に与えられていれば再生を支障無く行うことができる。
【0021】
しかしながら、例えば蓄積系メディア等では規格を遵守しないで製作したものがあり、こうしたものを再生すると復号化時にパケット識別子、パケット長、ヘッダー長等にエラーが混入していることがある。また、伝送路上などでも誤り訂正能力を越えてエラーが発生した場合、パケット識別子、パケット長、ヘッダー長等にエラーが混入してしまうことがある。
【0022】
図10はこのようなパック、パケット層のエラー発生箇所を示すものであり、図において、E1はパケット識別子のエラー、E2はパケット長のエラー、E3はフラグのエラー、E4はヘッダー長のエラーE5は再生時間情報、マーカーのエラーである。
【0023】
このように、パケット識別子、パケット長、ヘッダー長等にエラーが混入している場合、上記で説明した従来例の画像信号再生装置では、以下のような誤動作が生じてしまうという問題が存在する。即ち、
(1)パケット識別子にエラーが発生し、このため本来存在し得ない識別子が検出された場合、これが有効パケットの識別子と一致しないため、入力処理制御手段2s6は非有効パケットの処理と同様の処理を行う。
【0024】
すなわち前記入力処理制御手段2s6はパケット識別子に続くヘッダー情報に含まれるヘッダー長、パケット長を用いて該エラーパケットの終端までのデータの読み飛ばしを行うようにバッファ転送制御手段2s5を制御し、前記バッファ転送制御手段2s5が非有効データの読み飛ばしを完了した後にユニークパターン検出器2s3を起動し、新規パックパケットの先頭を検出するモードに遷移する。
【0025】
このように、パケット識別子にエラーが発生し、これが本来は存在し得ないパケット識別子に変化してしまうと、従来例の画像信号再生装置では、その存在し得ないパケット識別子を持つパケットの末端までデータを読み飛ばしてしまうため、新規パックもしくはパケットの先頭が、前記エラーパケットの読み飛ばすデータの途中に存在していたとしてもこれが無視されてしまうため、本来のデータへの復帰点が遅くなってしまうという問題があった。
【0026】
(2)パケットのヘッダー長もしくはパケット長にエラーが混入し、パケット長がヘッダー長よりも小さくなってしまった場合、ヘッダー長情報に基づいて復号データ部の先頭を検出し、パケット長情報に基づいて復号データの復号データバッファへのデータ転送を実行しようとする。
【0027】
この場合、ヘッダー情報のすべてがエラーにより破壊されている可能性が高いため、破壊された再生時間情報もしくはヘッダーのエラーパターンが本来存在しない再生時間情報が、エラーによるエミュレーションを招いてしまい、ヘッダー解析部2s4はこのエラーにより生じたエミュレーションによる再生時間情報を再生時間情報記憶手段2s7に格納するため、前記のエラーが含まれる同期再生情報を前記再生時間情報記憶手段2s7および再生時間情報読み出し制御手段2s8を介して復号部3は読み出し、同期再生に使用するため、同期再生に誤りが発生しやすいという問題があった。
【0028】
また、パケット長が本来の値よりも大きくなっている場合、前記バッファ転送制御手段2s5がエラーの値を使用すると、相当数のパケットを誤って読み飛ばしたり、ターゲットとは異なる復号データバッファ2s10に異なる復号データを格納するため、誤りデータが復号データバッファ2s10により多く格納されてしまうという問題があった。
【0029】
この状態を図11を用いて説明する。
図11において、入力データは図9中の多重符号化信号供給1によって図11の左側より入力される。図11において、エラーにより誤ったパケット長情報をそのまま使用してパケットの読み飛ばしを行った場合、その誤ったパケット長情報が例えば1000になっており、かつ1つのパケット長が100であったとすると、約10のパケットが読み飛ばされてしまい、その分エラーからの復帰点が時間軸上で遅くなってしまう。
【0030】
(3)また、ヘッダー情報のエラーによる破壊によって、図12に示すように、本来生じうる値よりも大きな再生時間情報が生じてこれがヘッダー解析部2s4によって再生時間情報記憶手段2s7に格納された場合、復号部3が前記エラーの再生時間情報と再生時間基準カウンタ2s14のカウント値の比較を行って出力制御を行うため、前記再生時間基準カウンタ2s14が前記再生時間情報に一致するまで復号動作が一時的に停止してしまう可能性がある。
【0031】
この復号動作が一時的に停止する時間は、前記再生時間情報のエラーの程度によっては数時間程にもおよぶこともあり得るため、実動作上、ハングアップしたと錯覚するような状態となる。
【0032】
しかも、復号部3もしくは外部のホストCPU4は、この状態がスライドショー等のように、単に大きな再生時間の間隔を持って間欠的に表示を行うシーケンスの再生動作を再生装置が行っているのか、それとも上述のような表示時間情報のエラーによって生じた一時停止なのか、を正確に判定しがたいという課題があった。
【0033】
この発明は、上記のような従来のものの課題を解決するためになされたもので、符号化ディジタルデータの中に誤りが混入することがあっても、入力された符号化データのエラーに対して、エラーからのより早い復帰及び同期再生エラーの判定の正確さの向上を図ることができ、より高いエラー耐性を有する画像信号再生装置を提供することを目的をしている。
【0034】
【課題を解決するための手段】
上記従来例の課題を解決するために、本願発明は以下のような手段及び制御を新たに設けることにより、解決を図った。
即ち、本願の請求項1の発明は、ディジタル符号化された音声、映像、字幕データが多重化されたデータ列の同期再生を行う画像信号再生装置において、符号化時もしくは伝送路でのエラーが含まれるデータ列の再生を行う際に、多重データ列中に含まれる前記の各符号化データ列の区別を表すユニークパターンを識別するユニークパターン検出器と、前記ユニークパターンを先頭とするヘッダーに含まれる情報を解析するヘッダー解析器と、前記ユニークパターン検出器が抽出するユニークパターンと、前記ヘッダー解析器が抽出するパケット識別子、パケット長、ヘッダー長の少なくとも1つのパラメータをもとにパケットフォーマット情報のエラー判別を行うパケットフォーマット情報エラー判定器と、前記ヘッダー解析器が抽出したパケット長とヘッダー長とを比較し、前記ヘッダー長が前記パケット長よりも大きな場合、該パケットをエラーパケットであると判定するヘッダー情報エラー判定器と、前記ユニークパターン検出器を制御する制御部とを備え、前記制御部は、前記ヘッダー情報エラー判定器が、被判定パケットがエラーパケットであると判定した時に、新規ユニークパターンの検出動作に遷移するように前記ユニークパターン検出器を制御する、ようにしたので、エラー発生からの復帰点が早くなるとともに、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる
【0035】
また、本願の請求項2の発明は、請求項1記載の画像信号再生装置において、多重データ列が固定のパック長を持ち、前記パック内にパケットが格納される場合、前記ヘッダー解析器によって抽出されたパケット長が前記パック長よりも大きい場合、エラーパケットと前記エラー判定器が判定し、前記パックに含まれ得る最大パケット長で前記パケット長を置き換えるようにしたので、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる
【0036】
また、本願の請求項3の発明は、請求項1記載の画像信号再生装置において、多重データ中のパケットヘッダーに含まれる多重データ列の同期再生用に含まれる再生時間情報を抽出する前記ヘッダー解析器は、前記ヘッダー情報を書き込む再生時間情報記憶手段を備え、音声、映像、字幕データの復号部は前記再生時間情報記憶手段に格納された再生時間情報を読み出して再生時間の管理を行うとともに、前記ヘッダー解析器及び前記復号部の管理する再生時間情報記憶手段の書き込み、読み出し管理に加えて、前記復号部が前記読み出し、書き込みの管理情報に依存せずに自由に前記再生時間情報記憶手段に格納された再生時間情報を読み出す再生時間情報読み出し制御手段を備えるようにしたので、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる。
【0037】
また、本願の請求項4の発明は、請求項記載の画像信号再生装置において、前記復号部を、前記同期再生に使用する再生時間情報と同期再生に使用する再生基準カウンタとの差が所定のエラー判定値より大きい場合、再生時間情報読み出し制御手段により、同期再生を実行しようとしている再生単位の再生時間情報が次の再生単位の再生時間情報より小さい場合エラーと判定し、前記エラー再生時間情報を用いた同期再生を行わないものとしたので、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる。
【0038】
また、本願の請求項5の発明は、請求項記載の画像信号再生装置において、エラー判定された再生時間情報を外部ホストCPUが書き換えを行い、前記書き換えられた再生時間情報をもとに復号部が同期再生を行うものとしたので、同期再生時間情報記憶手段の任意の領域を読み出し可能なインタフェースを設けたこととなり、同期再生情報のエラーの判定の精度が向上する。
【0044】
【発明の実施の形態】
(実施の形態1)
以下、本発明の実施の形態について、図面を参照しながら説明を行う。
図1は本発明の実施の形態1による画像信号再生装置を示すブロック図である。なお、この図1は、後述する実施の形態2ないし4による画像信号再生装置において新たに追加した構成要素についても併せて示している。また、従来例と同一機能を有する構成要素には同一符号を付してその詳細な説明は省略している。
【0045】
図1において、2s12はパケットフォーマット情報のパラメータとしてのパケット識別子に生じたエラーの種類を判別するパケット識別子エラー判定器であり、本実施の形態1は図9の従来例に対しこのパケット識別子エラー判定器2s12のみを追加したものである。
また、図2は本発明の実施の形態1による画像信号再生装置の制御動作を示すフローチャートである。
【0046】
次に、図1,図2を用いて本実施の形態1の動作について説明する。入力バッファ2s1から多重データを読み出してユニークパターン検出器2s3はパック,パケットの先頭を表すユニークパターンを検出すると、ユニークパターンを検出した旨を入力処理制御手段2s6に対して通知する(図2のステップs11参照)。前記入力処理制御手段2s6はヘッダー解析部2s4を起動し(図2のステップs12,s13参照)、ユニークパターンに続くパック及びパケット識別子を解析し(図2のステップs14参照)、抽出したパケット識別子をパケット識別子エラー判定器2s12に通知する。このパケット識別子エラー判定器2s12は前記ユニークパターンとパケット識別子の組み合わせが多重データ中に本来存在し得ない場合(図2のステップs15,s16参照)、これをエラーと判定し、エラーである旨の通知を前記入力処理制御手段2s6に対して行うと同時に、前記ヘッダー解析部2s4に対しヘッダー解析の停止を通知する(図2のステップs17,s18参照)。これに対し、パケット識別子エラー判定器2s12が前記ユニークパターンとパケット識別子の組み合わせが多重データ中に存在する旨を判定した場合、パック、パケットの処理を終了し(図2のステップs20参照)、入力処理制御手段2s6によりユニークパターン検出器を起動してスタートコードのサーチを行う(図2のステップs11参照)。
【0047】
一方、前記入力処理制御手段2s6によりヘッダー解析部2s4が停止された後は(図2のステップs18参照)、前記ユニークパターン検出器2s3に対し新規のパック,パケットの先頭を示すユニークパターンの検出モードに入るように制御を行う(図2のステップs19参照)。
【0048】
このように、パケット識別子エラー判定器2s12のエラー判定により、エラーパケットのヘッダー処理を行わず、かつエラーパケットの読み飛ばしをヘッダー情報をもとに行わない,という制御を行うことにより、より迅速なエラーからの復帰動作を行うことが可能となる。
【0049】
ここで、通常同期再生は、基準となる再生基準カウンタと再生時間情報との比較を行い、その差が所定の閾値以内であれば、その再生時間情報の再生単位の出力を行う。再生時間情報が再生基準カウンタより小さい場合、該当する再生単位の出力を取り消して、次の再生単位の再生を開始する。また、逆に、再生時間情報が大きい場合、再生単位の出力を行わない。
【0050】
このように、本実施の形態1によれば、多重ストリームには本来存在し得ないパケット識別子が存在した場合、前記パケット識別子に続くパケットのヘッダー情報を無視し、ヘッダー長、パケット長によるデータの読み飛ばしを行わず、直ちに、新規のパック、パケット先頭の先頭を表すユニークパターンの検出に入るよう、入力処理制御手段がユニークパターン検出器を制御するようにしたので、エラー発生よりの復帰,が早くなるという効果がある。
【0051】
(実施の形態2)
次に本発明の実施の形態2について、図1を用いて説明を行う。
図1において、2s13はヘッダー情報に生じたエラーを判別するヘッダー情報エラー判定器であり、本実施の形態2は図の従来例に対しこのヘッダー情報エラー判定器2s13のみを追加したものである。
また、図3は本発明の実施の形態2による画像信号再生装置の制御動作を示すフローチャートである。
【0052】
次に本実施の形態2の動作について、図1,図3を用いて説明する。まず、入力処理制御手段2s6によりユニークパターン検出器2s3を起動し、スタートコードを検出する(図3のステップs21,s22参照)。そしてスタートコードが検出されると、入力処理制御手段2s6はヘッダー解析部2s4を起動し(図3のステップs23参照)、パケット長を取得した時点でヘッダー情報エラー判定器2s13によりパケットフォーマット情報のパラメータとしてのヘッダー長をチェックする(図3のステップs24参照)。そして、パケット長が本来取りうるべき最大のパケット長を越えないと判断されたときは(図3のステップs25参照)、通常処理を行い(図3のステップs27参照)、パック、パケットの処理を完了して(図3のステップs28参照)、最初の処理に戻るが、パケットフォーマット情報のパラメータとしてのパケット長が本来取りうるべき最大のパケット長を越えると判断されたときは(図3のステップs25参照)、該当する数パケットのパケット長をパケット長の閾値、すなわち入力ストリームで取り得る最大のパケット長で置き換えるとともに(図3のステップs26参照)、最初の処理に戻り、入力処理制御手段2s6によりユニークパターン検出器2s3を起動し、次のパケットのスタートコードの検出に移行する。
【0053】
このため、図4に示すように、パケット長に誤りが有るにもかかわらず、エラー処理を行わなかった場合、この誤ったパケット長で指定されたパケットデータの範囲は全て読み飛ばされてしまうか、もしくは復号データバッファ2s10に格納されてしまうのに対し、本実施の形態2によれば、パケット長に誤りが有ったとしてもそのパケットデータの範囲は本来1つのパケットがとりうる最大のパケット長で制限されてしまうため、複数のパケットにわたってデータが読み飛ばされてしまうことや、復号データバッファ2s10に格納されてしまうことはなく、従って、正確なデータの再生ができなくなってしまうことはない。
このように、本実施の形態2によれば、パケットのヘッダー長及びパケット長にエラーが混入し、パケット長が最大パケット長よりも大きい場合、エラー判定器が当該パケットをエラーパケットと判定して入力処理制御手段に通知し、再生時間情報が含まれた場合、前記再生時間情報を再生時間情報記憶手段に格納しないようにヘッダー解析器を前記入力処理制御手段が制御するようにしたので、誤った再生時間情報と使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる効果がある。
【0054】
(実施の形態3)
次に本発明の実施の形態3について、図1を用いて説明を行う。
図1において、2s13はヘッダー情報に生じたエラーを判別するヘッダー情報エラー判定器であり、本実施の形態3も、実施の形態2と同様、図9の従来例に対しこのヘッダー情報エラー判定器2s13のみを追加したものである。
また、図5は本発明の実施の形態3による画像信号再生装置の制御動作を示すフローチャートである。
次に本実施の形態の動作について、図1,図5を用いて説明する。まず、入力処理制御手段2s6によりユニークパターン検出器2s3を起動し、スタートコードを検出する(図5のステップs31,s32参照)。そしてスタートコードが検出されると、入力処理制御手段2s6はヘッダー解析部2s4を起動し(図5のステップs33参照)、ヘッダー解析部2s4によって抽出されたヘッダー長、パケット長はヘッダー情報エラー判定器2s13に通知され、そのチェックが行われる(図5のステップs34参照)。前記パケット長がパケットのヘッダー長よりも小さいと判定された場合(図5のステップs35参照)、該パケットのヘッダー情報はエラーによって破壊されていると前記ヘッダー情報エラー判定器2s13は判断し、パケット情報エラーを入力処理制御手段2s6に通知する(図5のステップs36参照)。前記入力処理制御手段2s6は再生時間情報が該ヘッダーに存在する場合、前記再生時間情報を無効化し、再生時間情報記憶手段2s7に格納しないようヘッダー解析部2s4を制御する(図5のステップs37,s38参照)。また、前記入力処理制御手段2s6は該パケットの復号データバッファ2s10への復号データの転送を行うバッファ転送制御手段2s5の起動を行わないよう制御する。加えて前記入力処理制御手段2s6は前記ユニークパターン検出器2s3を起動して、新規のパック、パケットの検出動作を行うよう制御し、新規のパック、パケット処理に入るよう制御する(図5のステップs39参照)。
【0055】
また、ヘッダー情報エラー判定器2s13により、前記パケット長がパケットのヘッダー長よりも大きいと判定された場合(図5のステップs35参照)、パック、パケットの処理を完了すると(図5のステップs40参照)、新規のパック、パケット処理に入るように制御する。
【0056】
上記制御により、上記エラーパターンの場合、エラーの含まれる再生時間情報が復号部3での同期再生に使用されることが無くなり、エラー耐性の高い同期再生を実現できる。
【0057】
また、蓄積メディアの場合、パック長が固定となっており、パケット長にエラーが認められると前記ヘッダー情報エラー判定器2s13が判定した場合、パケット長を固定長パケットで取りうる最大の長さで置き換え、前記入力処理制御手段2s6に通知し、前記入力処理制御手段2s6は、前記ヘッダー情報エラー判定器2s13が再設定したパケット長で、パケットに含まれる符号化データの復号バッファ2s10の転送もしくは読み飛ばしを行うようバッファ転送制御手段2s5を制御する。
【0058】
なお、前記ヘッダー情報エラー判定器2s13は再生時間情報に付加されたマーカ等が不正な位置で有効となっていた場合についてもエラーと判定し、再生時間情報を再生時間情報記憶手段2s7に蓄積しない。
【0059】
このように、本実施の形態によれば、パケットのヘッダー長及びパケット長にエラーが混入し、パケット長よりもヘッダー長が大きい場合、エラー判定器が当該パケットをエラーパケットと判定して入力処理制御手段に通知し、再生時間情報が含まれた場合、前記再生時間情報を再生時間情報記憶手段に格納しないようにヘッダー解析器を前記入力処理制御手段が制御するようにしたので、誤った再生時間情報と使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる効果がある。
【0060】
(実施の形態
次に、本発明の実施の形態について図1を用いて説明を行う。
図1において、2s9は再生時間情報記憶手段2s7から時間情報を読み出す再生時間情報読み出し手段であり、本実施の形態は図の従来例に対しこの再生時間情報読み出し手段2s9のみを追加したものである。
また、図6は本発明の実施の形態による画像信号再生装置の制御動作を示すフローチャートである。
【0061】
次に動作について説明する。復号部3は復号データバッファ2s10に存在する符号化データの復号を行い(図6のステップs41参照)、前記再生時間情報記憶手段2s7にエントリされた再生単位に対応した第1の再生時間情報を再生時間情報読み出し制御手段2s8を介して取得し(図6のステップs42参照)、再生時間基準カウンタと2s14との比較を行い(図6のステップs43参照)、出力タイミングの制御を行う。前記復号部3は前記再生時間情報読み出し制御手段2s8を介して読み出した再生時間情報1が想定される再生時間よりも大きい値の場合(図6のステップs44参照)、再生時間情報読み出し制御手段2s9を起動して、前記再生時間情報の次に登録されている第2の再生時間情報を読み出し(図6のステップs45参照)、前記第1の再生時間情報と前記第2の再生時間情報との値の比較を行い(図6のステップs46参照)、前記第2の再生時間情報が前記第1の再生時間情報よりも小さい場合(図6のステップs47参照)、これをエラーと判定し、前記第1の再生時間情報を使用しないような制御を行う(図6のステップs48参照)。
【0062】
そして、再生時間基準カウンタ2s14と第1の再生時間情報とを比較し、再生画像の出力タイミングを決定して、出力を行い(図6のステップs49参照)、次の再生単位に復号単位の復号動作に移行する制御を行い(図6のステップs50参照)、復号部3の復号動作に戻る。
【0063】
上記のような再生時間情報読み出し制御手段2s9を備えることにより、再生時間情報のエラーを判定でき、よりスムーズな同期再生を行うことが可能となる。
【0064】
なお、特にMPEGによる映像情報の符号化データの場合、入力符号化データにおける再生信号の順番と出力時の再生単位の順番は異なる。入力された符号化データは再生出力過程で符号化方法によって出力の順番が入れ替えられる。よって、第1の再生時間情報と比較するために読み出す第2の再生時間情報は再生時間情報記憶手段に蓄積された次のエントリの値とは限らない。出力再生時の再生単位の順番が時間的に第1の再生単位の次に来るような再生単位のエントリを再生時間情報記憶手段から読み出し、それをもって第2の再生時間情報とする。
【0065】
このように、本実施の形態によれば、リングバッファ構造を持つ再生時間情報記憶手段2s7の読み出しを行う再生時間情報読み出し制御手段2s8に加えて、前記再生時間情報読み出し制御手段2s8の管理する読み出しポインタ1と異なる前記再生時間情報記憶手段2s7内の再生時間情報を自由に任意の領域を読み出し可能な第2の読み出しポインタを持つ再生時間読み出し手段2s9を新たに備え、前記再生時間情報読み出し制御手段2s8は復号部3によって制御可能であるようにしたので、同期再生時間情報記憶手段の任意の領域を読み出し可能なインターフェースを設けることとなり、同期再生情報のエラーの判定精度を向上できる効果がある。
【0066】
(実施の形態
次に、本発明の実施の形態について図1を用いて説明を行う。
図1において、2s15は再生時間情報記憶手段2s7にエントリされている再生時間情報を外部のホストCPU4が読み出し可能にするデータバス、7は復号部3の再生時間を保持する再生時間レジスタであり、本実施の形態は図の従来例に対しこのデータバス2s15,再生時間レジスタ7および再生時間情報読み出し制御手段2s9を追加したものである。
また、図7は本発明の実施の形態による画像信号再生装置の制御動作を示すフローチャートである。
【0067】
次に、動作について説明する。復号部3は復号データバッファ2s10に含まれる復号データの復号が完了すると再生時間情報記憶手段2s7にエントリされた第1の再生時間情報を再生時間情報読み出し制御手段2s8を介して読み出し、前記第1の再生時間情報と再生時間基準カウンタ2s14のカウント値と比較し、出力制御を行う。この時前記第1の再生時間情報は外部のホストCPU4より読み出してモニタ可能となっている。外部のホストCPU4は所定の周期ごとに前記第1の再生時間情報が格納されている再生時間レジスタ7をモニタし、(図7のステップs51参照)、前記再生時間レジスタ7と再生時間基準カウンタ2s14とを比較し(図7のステップs52参照)、前記再生時間レジスタ7に格納された再生時間情報が所定の時間更新されない場合(図7のステップs53参照)、エラー発生により復号部3が停止している状態と判定し、再生時間情報読み出し制御手段2s9を起動し、前記データバス2s12を介して第1の再生時間情報の次にエントリされている第2の再生時間情報を読み出し(図7のステップs54参照)、再生時間レジスタ7と第2の再生時間情報との比較を行い(図7のステップs55参照)、前記第1の再生時間情報と第2の再生時間情報との関係が復号しているシーケンスから想定される関係から大きくはずれていた場合、即ち、再生時間レジスタ7が第2の再生時間情報より大きい場合(図7のステップs56参照)、エラーと判定して、再生時間レジスタ7を外部のホストCPU4が書き換えて(図7のステップs57参照)、通常処理に移行する(図7のステップs58参照)。
【0068】
上記のように、再生時間情報が外部のホストCPU4からも読み出し可能なインターフェースである再生時間情報読み出し制御手段2s9とホストバス5に接続されたデータバス2s15とを設けることによって、より正確なエラー判定を行うことが可能となる。
【0069】
なお、前記第1の再生時間情報が格納されている再生時間レジスタ7にホストCPU4からの書き込みアクセスが許可されている場合、外部のホストCPU4が適切な値で前記再生時間レジスタ7を書き換えることにより、前記再生時間基準カウンタ2s14との一致の成立を擬似的に発生させて前記復号部3の復号動作の停止を解除することが可能となる。また、再生時間情報記憶手段2s7を外部のホストCPU4に解放することにより、より柔軟で正確な再生装置の同期処理を実現することが可能となる。
【0070】
このように、本実施の形態によれば、外部のホストCPU4と接続されたホストバス5を経由してホストCPU4からの読み出しが可能な構成を取るようにしたので、同期再生時間情報記憶手段の任意の領域を読み出し可能なインターフェースを設けることとなり、同期再生情報のエラーの判定の精度を向上できる効果がある。
【0071】
なお、上記実施の形態1では、パケット識別子エラー判定器2s12のみを、実施の形態2,3では、ヘッダー情報エラー判定器2s13のみを、実施の形態では、再生時間情報読み出し手段2s9のみを、実施の形態では、データバス2s15,再生時間レジスタ7,再生時間情報読み出し制御手段2s9を設けるようにしたが、これらの実施の形態の2つ以上を併せ持つようにしてもよく、各実施の形態の効果を併せ持つものを得ることが可能である。
【0072】
【発明の効果】
以上のように、本願の請求項1の発明に係る画像信号再生装置によれば、ディジタル符号化された音声、映像、字幕データが多重化されたデータ列の同期再生を行う画像信号再生装置において、符号化時もしくは伝送路でのエラーが含まれるデータ列の再生を行う際に、多重データ列中に含まれる前記の各符号化データ列の区別を表すユニークパターンを識別するユニークパターン検出器と、前記ユニークパターンを先頭とするヘッダーに含まれる情報を解析するヘッダー解析器と、前記ユニークパターン検出器が抽出するユニークパターンと、前記ヘッダー解析器抽出するパケット識別子、パケット長、ヘッダー長の少なくとも1つのパラメータをもとにパケットフォーマット情報のエラー判別を行うパケットフォーマット情報エラー判定器と、前記ヘッダー解析器が抽出したパケット長とヘッダー長とを比較し、前記ヘッダー長が前記パケット長よりも大きな場合、該パケットをエラーパケットであると判定するヘッダー情報エラー判定器と、前記ユニークパターン検出器を制御する制御部とを備え、前記制御部は、前記ヘッダー情報エラー判定器が、被判定パケットがエラーパケットであると判定した時に、新規ユニークパターンの検出動作に遷移するように前記ユニークパターン検出器を制御する、ようにしたので、誤りが含まれる多重符号化データの再生に際して、エラー復帰点が早くなるとともに、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる効果がある。
【0073】
また、本願の請求項2の発明に係る画像信号再生装置によれば、請求項1記載の画像信号再生装置において、多重データ列が固定のパック長を持ち、前記パック内にパケットが格納される場合、前記ヘッダー解析器によって抽出されたパケット長が前記パック長よりも大きい場合、エラーパケットと前記エラー判定器が判定し、前記パックに含まれ得る最大パケット長で前記パケット長を置き換えるようにしたので、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる効果がある。
【0074】
また、本願の請求項3の発明に係る画像信号再生装置によれば、請求項1記載の画像信号再生装置において、多重データ中のパケットヘッダーに含まれる多重データ列の同期再生用に含まれる再生時間情報を抽出する前記ヘッダー解析器は、前記ヘッダー情報を書き込む再生時間情報記憶手段を備え、音声、映像、字幕データの復号部は前記再生時間情報記憶手段に格納された再生時間情報を読み出して再生時間の管理を行うとともに、前記ヘッダー解析器及び前記復号部の管理する再生時間情報記憶手段の書き込み、読み出し管理に加えて、前記復号部が前記読み出し、書き込みの管理情報に依存せずに自由に前記再生時間情報記憶手段に格納された再生時間情報を読み出す再生時間情報読み出し制御手段を備えるようにしたので、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる効果がある。
【0075】
また、本願の請求項4の発明に係る画像信号再生装置によれば、請求項記載の画像信号再生装置において、前記復号部を、前記同期再生に使用する再生時間情報と同期再生に使用する再生基準カウンタとの差が所定のエラー判定値より大きい場合、再生時間情報読み出し制御手段により、同期再生を実行しようとしている再生単位の再生時間情報が次の再生単位の再生時間情報より小さい場合エラーと判定し、前記エラー再生時間情報を用いた同期再生を行わないものとしたので、誤った再生時間情報を使用して同期再生を行う可能性が低くなり、よりスムーズな同期再生が可能となる効果がある。
【0076】
また、本願の請求項5の発明に係る画像信号再生装置によれば、請求項記載の画像信号再生装置において、エラー判定された再生時間情報を外部ホストCPUが書き換えを行い、前記書き換えられた再生時間情報をもとに復号部が同期再生を行うものとしたので、同期再生時間情報記憶手段の任意の領域を読み出し可能なインタフェースを設けたこととなり、同期再生情報のエラーの判定の精度が向上する効果がある。
【図面の簡単な説明】
【図1】 本発明の実施の形態1ないし実施の形態による画像信号再生装置を示すブロック図。
【図2】 本発明の実施の形態1による画像信号再生装置の制御動作を示すフローチャート図。
【図3】 本発明の実施の形態2による画像信号再生装置の制御動作を示すフローチャート図。
【図4】 パケット長にエラーが存在した場合の本発明の実施の形態2による画像信号再生装置による効果を説明するためのデータフォーマット図。
【図5】 本発明の実施の形態による画像信号再生装置の制御動作を示すフローチャート図。
【図6】 本発明の実施の形態による画像信号再生装置の制御動作を示すフローチャート図。
【図7】 本発明の実施の形態による画像信号再生装置の制御動作を示すフローチャート図。
【図8】 多重符号化データの説明図。
【図9】 従来例の画像信号再生装置を示すブロック図。
【図10】 パケットにおけるエラーの存在箇所を示すデータフォーマット図。
【図11】 パケット長にエラーが存在した場合の従来例の画像信号再生装置の動作説明図。
【図12】 再生時間情報にエラーが存在した場合の従来例の画像信号再生装置の動作説明図。
【符号の説明】
2s1 入力バッファ
2s2 データ切替えスイッチ
2s3 ユニークパターン検出器
2s4 ヘッダー解析部
2s5 バッファ転送制御手段
2s6 入力処理制御手段
2s7 再生時間情報記憶手段
2s8 再生時間情報読み出し制御手段
2s9 再生時間情報読み出し制御手段
2s10 復号データバッファ
2s11 復号データ読み出し制御手段
2s12 パケット識別子エラー判定器
2s13 ヘッダー情報エラー判定器
2s14 再生時間基準カウンタ
2s15 データバス
1 多重符号化信号供給部
2 多重信号分離部
3 復号部
4 ホストCPU
5 ホストバス
6 画像信号再生装置
7 再生時間レジスタ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image signal reproducing apparatus that performs synchronous reproduction of a data sequence in which digitally encoded audio, video, caption data, and the like are multiplexed, and more particularly to a packet identifier, packet length, and header length of a multiplexed encoded signal. It is related to the thing which made error processing based on.
[0002]
[Prior art]
In recent years, as seen in DVD, digital CS broadcasting, and the like, media in which additional information signals such as image signals, audio signals, and caption information are digitally encoded and multiplexed are rapidly spreading.
[0003]
In the multiplexed digital signal reproducing apparatus as described above, errors may be mixed in the encoded digital data at the time of encoding or on the transmission path. Even in such a case, reproduction of reproduced images, sounds, etc. Therefore, it is desired to provide an apparatus that can perform a reproduction operation that is smooth and has little deterioration.
[0004]
In the digital media, encoding defined by the MPEG standard is generally used for video signals. For audio, an encoding method other than MPEG may be employed. For multiplexing audio and video encoded data, multiplexing is performed by a multiplexing method defined in the MPEG system standard.
[0005]
FIG. 8 shows an example of audio, video, and additional information encoded data multiplexed by packets. The multiplexed and encoded data is byte aligned. In the figure, PSP is a packet start code prefix code, PID is a packet identifier, PKC is packet length information, PI is reproduction information, VCD is video encoded data, SCD is audio encoded data, and ACD is a code of additional information. Encoded data, PKT is a packet, and any one of these packet identifier PID, packet length information PKC, reproduction information PI, encoded video data VCD, encoded audio data SCD, encoded data ACD of additional information Data. PKH is a pack header. PCK is a pack, and consists of a pack header PKH and a packet PKT.
[0006]
The audio and video signals are digitally encoded by a dedicated encoding device, and are multiplexed on a packet basis by a multiplexing device. At the beginning of the packet, a packet start code prefix code PSP as a synchronization signal indicating the beginning of the packet and a packet header such as a packet identifier PID for distinguishing between voice and image packets, packet length information PKC, image and audio synchronous reproduction information, etc. PKH is added. The packet start code prefix code PSP is a unique pattern in the multiplexed data. In video signal encoding, hierarchical encoding is performed, and a code string indicating the start of the hierarchy and a code string indicating the hierarchy name are used. The code string indicating the start of the hierarchy and the start code prefix code indicating the packet head are the same code string.
[0007]
Normally, a packet start code prefix code appears in a multiplexed data sequence for each data unit indicated by the packet length included in the header information of the packet, so that confusion with the hierarchical start code of the video encoded data does not occur.
[0008]
Usually, in storage media, packets are managed in units of sectors, a pack start code is added to the head of the packet, and one pack is composed of a pack start code, a header portion following the start code, and the packet. Usually, one pack has a fixed length and a packet has a variable length.
[0009]
FIG. 9 shows an example of the configuration of an image signal separation device in a conventional image signal reproduction device. In the figure, reference numeral 1 denotes a multiplex encoded signal supply unit for supplying a multiplex data string to the image signal reproducing apparatus, and accumulates data after error correction such as ECC is performed. 2s1 is an input buffer for temporarily storing the multiplexed data sequence supplied from the multiplexed encoded signal supply unit 1, and 2s2 is a data changeover switch for switching the multiplexed data sequence output from the input buffer 2s1 to the terminals a, b, and c for output. It is. 2s3 is a unique pattern detector that detects a unique pattern from the data output from the terminal a of the data selector switch 2s2. 2s4 is a header analysis unit that analyzes the header of the data output from the terminal b of the data changeover switch 2s2. Reference numeral 2s5 denotes buffer transfer control means for performing buffer transfer control of data output from the terminal c of the data changeover switch 2s2. Reference numeral 2s6 denotes input processing control means for performing switching control of the data selector switch 2s2 based on the detection result of the unique pattern detector 2s3.
[0010]
Reference numeral 2 denotes a multiple signal demultiplexing unit including the input buffer 2s1, the data changeover switch 2s2, the unique pattern detector 2s3, the header analysis unit 2s4, the buffer transfer control unit 2s5, and the input processing control unit 2s6.
[0011]
Reference numeral 2s7 denotes reproduction time information storage means for storing reproduction time information analyzed by the header analysis unit 2s4. Reference numeral 2s10 denotes a decoded data buffer for storing data to be decoded obtained by the buffer transfer control means 2s5. Reference numeral 2s8 denotes reproduction time information reading control means for performing reproduction time information reading control. Reference numeral 2s11 denotes decoded data read control means for performing read control of the decoded data stored in the decoded data buffer 2s10. Reference numeral 2s14 denotes a reproduction time reference counter that counts a reproduction reference time serving as a reference for the reproduction time. Reference numeral 3 denotes a decoding unit that compares the reproduction reference time counted by the reproduction time reference counter 2s14 with the reproduction time information obtained by the reproduction time information read control means 2s8 and decodes the decoded data at a timing when these coincide with each other.
[0012]
6 is an image signal reproduction unit comprising the multiple signal separation unit 2, reproduction time information storage unit 2s7, reproduction time information read control unit 2s8, decoded data buffer 2s10, decoded data read control unit 2s11, reproduction time reference counter 2s14, and decoding unit 3. Device.
[0013]
A host CPU 4 controls the image signal reproducing device 6. A host bus 5 connects the host CPU 4 and the image signal reproducing device 6.
[0014]
Next, the operation will be described. The multiplexed data sequence supplied from the multiplexed encoded signal supply unit 1 is temporarily stored in the input buffer 2s1. First, the data changeover switch 2s2 is connected to the terminal a. The multiplexed data sequence stored in the input buffer 2s1 is input to the unique pattern detector 2s3 via the data changeover switch 2s2, and the operation shifts to the operation of detecting a unique pattern indicating the multiplexed data pack and packet delimiter.
[0015]
When the unique pattern detector 2s3 detects a unique pattern representing the head of a pack or packet, the unique pattern detector 2s3 notifies the input processing control means 2s6 that the head of the pack or packet has been detected and packs, video, audio, subtitles, etc. Of which packet is detected.
[0016]
The input processing control means 2s6 switches the data changeover switch 2s2 to the terminal b in response to the detection of the head of the pack or packet and activates the header analysis unit 2s4.
[0017]
In the input processing control means 2s6, the identifier of the packet to be decoded after being stored in the decoded data buffer 2s10 in the subsequent stage is set in advance by the external host CPU 4, and a packet with an identifier that does not match the valid packet identifier is received. If detected, the code data in the packet is transferred to the decoded data buffer 2s10.
[0018]
The header analysis unit 2s4 extracts the packet length, header length, reproduction time information, and the like necessary for multiplexing of the multiplexed signal included in the header of the multiplexed data sequence. The packet length or header length is used to separate the decoded data contained in the packet into a decoded data buffer. When the packet is a valid packet, the reproduction time information is stored in the reproduction time information storage unit 2s7 every time it is extracted. In the reproduction time information storage means 2s7, the storage area is managed in the form of a ring buffer, and the input data is delayed for a time corresponding to one round of the input data going around the ring.
[0019]
The reproduction time management information accumulated by the header analysis unit 2s4 is appropriately used as the most recent time information storage unit 2s7 as control information when the decoding unit 3 in the subsequent stage completes and outputs the reproduction unit.FromIt is read by the reproduction time information read control means 2s8. The decoded data included in the packet is buffered in the decoded data buffer 2s10 based on the transfer control information for each encoded data type such as video, audio, and subtitle using the packet identifier indicating the type of the packet, the header length, and the packet length. It is transferred by the transfer control means 2s5. The decoding unit 3 decodes encoded data such as audio, video, and caption included in the decoded data buffer 2s10, and synchronizes data such as audio, video, and caption using the reproduction management information and the reproduction time reference counter. Perform playback.
[0020]
[Problems to be solved by the invention]
The conventional image signal reproduction apparatus is configured as described above, and can be reproduced without any trouble if the packet identifier, packet length, header length, etc. required for data separation are accurately given. .
[0021]
However, for example, some storage media and the like are manufactured without complying with the standard, and when such media is reproduced, an error may be mixed in the packet identifier, packet length, header length, etc. at the time of decoding. Also, if an error occurs beyond the error correction capability even on the transmission path, the error may be mixed into the packet identifier, packet length, header length, and the like.
[0022]
  FIG. 10 shows such error locations of the pack and packet layer. In the figure, E1 is a packet identifier error, E2 is a packet length error, E3 is a flag error, and E4 is a header length error.,E5 is reproduction time information and marker error.
[0023]
Thus, when an error is mixed in the packet identifier, the packet length, the header length, etc., the conventional image signal reproduction apparatus described above has a problem that the following malfunction occurs. That is,
(1) When an error occurs in the packet identifier, and an identifier that cannot originally exist is detected, this does not match the identifier of the valid packet. Therefore, the input processing control means 2s6 performs the same processing as the processing of the invalid packet. I do.
[0024]
That is, the input processing control means 2s6 controls the buffer transfer control means 2s5 so as to skip data reading up to the end of the error packet using the header length and packet length included in the header information following the packet identifier, After the buffer transfer control means 2s5 completes skipping of invalid data, the unique pattern detector 2s3 is activated to shift to a mode for detecting the head of a new pack packet.
[0025]
As described above, when an error occurs in the packet identifier, and this is changed to a packet identifier that cannot originally exist, in the conventional image signal reproduction device, the end of the packet having the packet identifier that cannot be present is reached. Since the data is skipped, even if the head of the new pack or packet exists in the middle of the data to be skipped in the error packet, this is ignored and the return point to the original data is delayed. There was a problem that.
[0026]
(2) When an error is mixed in the header length or packet length of the packet and the packet length becomes smaller than the header length, the head of the decoded data part is detected based on the header length information, and based on the packet length information Thus, the data transfer of the decoded data to the decoded data buffer is attempted.
[0027]
In this case, there is a high possibility that all of the header information has been destroyed by an error. Therefore, the playback time information that has been destroyed or the playback time information that originally does not have the header error pattern causes emulation due to an error, and header analysis. The unit 2s4 stores the reproduction time information by the emulation caused by this error in the reproduction time information storage means 2s7, so that the synchronous reproduction information including the error is stored in the reproduction time information storage means 2s7 and the reproduction time information read control means 2s8. Since the decoding unit 3 is used for reading and synchronous reproduction via the receiver, there is a problem that errors are likely to occur in synchronous reproduction.
[0028]
Also, when the packet length is larger than the original value, if the buffer transfer control means 2s5 uses an error value, a considerable number of packets are erroneously skipped, or the decoded data buffer 2s10 different from the target is read. Since different pieces of decoded data are stored, there is a problem that a large amount of error data is stored in the decoded data buffer 2s10.
[0029]
This state will be described with reference to FIG.
In FIG. 11, the input data is supplied from the multiple encoded signal in FIG.Part1 is input from the left side of FIG. In FIG. 11, when a packet is skipped by using the wrong packet length information due to an error, the wrong packet length information is, for example, 1000, and one packet length is 100. About 10 packets are skipped, and the return point from the error is delayed on the time axis.
[0030]
(3) In addition, as shown in FIG. 12, due to destruction due to an error in the header information, reproduction time information larger than a value that can be originally generated is generated and stored in the reproduction time information storage unit 2s7 by the header analysis unit 2s4. Since the decoding unit 3 compares the error reproduction time information with the count value of the reproduction time reference counter 2s14 to perform output control, the decoding operation is temporarily performed until the reproduction time reference counter 2s14 matches the reproduction time information. May stop.
[0031]
The time during which the decoding operation is temporarily stopped may reach several hours depending on the degree of error in the reproduction time information.
[0032]
In addition, the decoding unit 3 or the external host CPU 4 determines whether the playback apparatus is performing a playback operation of a sequence in which this state is simply displayed intermittently with a large playback time interval as in a slide show or the like. There has been a problem that it is difficult to accurately determine whether the suspension is caused by the display time information error as described above.
[0033]
The present invention has been made to solve the above-described problems of the prior art. Even if an error may be mixed in the encoded digital data, an error of the input encoded data can be prevented. An object of the present invention is to provide an image signal reproducing apparatus that can improve the accuracy of quicker recovery from an error and determination of a synchronous reproduction error, and has higher error tolerance.
[0034]
[Means for Solving the Problems]
  In order to solve the problems of the conventional example, the present invention has been solved by newly providing the following means and control.
  That is, according to the first aspect of the present invention, in an image signal reproducing apparatus that performs synchronous reproduction of a data sequence in which digitally encoded audio, video, and caption data are multiplexed, an error in encoding or on a transmission path is present. A unique pattern detector for identifying a unique pattern representing the distinction between each encoded data sequence included in a multiplexed data sequence when reproducing the included data sequenceWhen,Header analyzer for analyzing information contained in headers starting with the unique patternAnd the unique pattern extracted by the unique pattern detector and the header analyzerError determination of packet format information is performed based on at least one parameter of packet identifier, packet length, and header length to be extracted.Packet format informationError detectorA header information error determiner that compares the packet length extracted by the header analyzer with the header length, and determines that the packet is an error packet if the header length is greater than the packet length; and the unique A control unit for controlling the pattern detector;WithThe control unit, when the header information error determiner determines that the packet to be determined is an error packet, controls the unique pattern detector to transition to a new unique pattern detection operation.As a result, the return point from the occurrence of an error is accelerated.At the same time, the possibility of synchronized playback using incorrect playback time information is reduced, enabling smoother synchronized playback..
[0035]
  Further, the invention of claim 2 of the present application is the image signal reproducing apparatus of claim 1,When a multiplexed data string has a fixed pack length and a packet is stored in the pack, an error packet and the error determiner determine if the packet length extracted by the header analyzer is larger than the pack length. And replace the packet length with the maximum packet length that can be included in the pack.I did soThe possibility of synchronized playback using incorrect playback time information is reduced, and smoother synchronized playback is possible..
[0036]
  According to a third aspect of the present invention, in the image signal reproducing device according to the first aspect,The header analyzer for extracting reproduction time information included for synchronous reproduction of a multiplexed data string included in a packet header in multiplexed data includes reproduction time information storage means for writing the header information, and includes audio, video, and caption data The decoding unit reads out the reproduction time information stored in the reproduction time information storage unit and manages the reproduction time, and also manages the writing and reading of the reproduction time information storage unit managed by the header analyzer and the decoding unit. In addition, the decoding unit includes reproduction time information reading control means for freely reading reproduction time information stored in the reproduction time information storage means without depending on the read / write management information.As a result, the possibility of performing synchronized playback using incorrect playback time information is reduced, and smoother synchronized playback is possible.
[0037]
  The invention of claim 4 of the present application3In the described image signal reproduction device,When the difference between the reproduction time information used for the synchronous reproduction and the reproduction reference counter used for the synchronous reproduction is larger than a predetermined error determination value, the decoding unit tries to execute the synchronous reproduction by the reproduction time information read control means. It is determined that an error occurs when the playback time information of a playback unit is smaller than the playback time information of the next playback unit, and synchronous playback using the error playback time information is not performed.Therefore, the possibility of performing synchronized playback using incorrect playback time information is reduced, and smoother synchronized playback is possible.
[0038]
  The invention of claim 5 of the present application4In the described image signal reproduction device,Since the external host CPU rewrites the reproduction time information determined to be error, and the decoding unit performs synchronous reproduction based on the rewritten reproduction time information, any area of the synchronous reproduction time information storage means is stored. By providing a readable interface, the accuracy of the error determination of the synchronous reproduction information is improved.
[0044]
DETAILED DESCRIPTION OF THE INVENTION
(Embodiment 1)
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing an image signal reproducing apparatus according to Embodiment 1 of the present invention. FIG. 1 also shows components newly added in the image signal reproduction apparatus according to Embodiments 2 to 4 described later. In addition, components having the same functions as those of the conventional example are denoted by the same reference numerals, and detailed description thereof is omitted.
[0045]
  In FIG. 1, 2s12 isAs a parameter of packet format informationThis is a packet identifier error determiner that determines the type of error that has occurred in the packet identifier. In the first embodiment, only the packet identifier error determiner 2s12 is added to the conventional example of FIG.
  FIG. 2 is a flowchart showing the control operation of the image signal reproducing apparatus according to Embodiment 1 of the present invention.
[0046]
Next, the operation of the first embodiment will be described with reference to FIGS. When the multiplex data is read from the input buffer 2s1 and the unique pattern detector 2s3 detects the unique pattern representing the head of the pack or packet, it notifies the input processing control means 2s6 that the unique pattern has been detected (step of FIG. 2). s11). The input processing control means 2s6 activates the header analysis unit 2s4 (see steps s12 and s13 in FIG. 2), analyzes the pack and packet identifier following the unique pattern (see step s14 in FIG. 2), and extracts the extracted packet identifier. The packet identifier error determination unit 2s12 is notified. If the combination of the unique pattern and the packet identifier cannot originally exist in the multiplexed data (see steps s15 and s16 in FIG. 2), the packet identifier error determiner 2s12 determines that this is an error and indicates that it is an error. Simultaneously with the input processing control means 2s6, the header analysis unit 2s4 is notified of the stop of header analysis (see steps s17 and s18 in FIG. 2). On the other hand, when the packet identifier error determination unit 2s12 determines that the combination of the unique pattern and the packet identifier exists in the multiplexed data, the pack and packet processing is terminated (see step s20 in FIG. 2) and input. The unique pattern detector is activated by the processing control means 2s6 to search for a start code (see step s11 in FIG. 2).
[0047]
On the other hand, after the header analysis unit 2s4 is stopped by the input processing control means 2s6 (see step s18 in FIG. 2), a new pattern and a unique pattern detection mode indicating the head of the packet for the unique pattern detector 2s3 are detected. (See step s19 in FIG. 2).
[0048]
As described above, the error determination by the packet identifier error determination unit 2s12 makes it possible to perform a quicker process by performing control such that the header processing of the error packet is not performed and the skipping of the error packet is not performed based on the header information. It is possible to perform a recovery operation from an error.
[0049]
Here, in normal synchronous reproduction, a reproduction reference counter serving as a reference is compared with reproduction time information, and if the difference is within a predetermined threshold, the reproduction unit of the reproduction time information is output. If the playback time information is smaller than the playback reference counter, the output of the corresponding playback unit is canceled and playback of the next playback unit is started. Conversely, when the reproduction time information is large, reproduction unit output is not performed.
[0050]
As described above, according to the first embodiment, when there is a packet identifier that cannot originally exist in the multiplexed stream, the header information of the packet following the packet identifier is ignored, and the data of the header length and the packet length is ignored. Since the input processing control means controls the unique pattern detector so that it can immediately enter the detection of a new pack and a unique pattern representing the head of the beginning of the packet without skipping the reading. It has the effect of becoming faster.
[0051]
(Embodiment 2)
  Next, a second embodiment of the present invention will be described with reference to FIG.
  In FIG. 1, 2s13 is a header information error determiner for determining an error that has occurred in header information.9Only the header information error determination unit 2s13 is added to the conventional example.
  Also figure3 isIt is a flowchart which shows the control operation of the image signal reproducing | regenerating apparatus by Embodiment 2 of this invention.
[0052]
  Next, the operation of the second embodiment will be described with reference to FIGS. First, the input pattern control means 2s6 activates the unique pattern detector 2s3 to detect a start code (see steps s21 and s22 in FIG. 3). When the start code is detected, the input processing control means 2s6 activates the header analysis unit 2s4 (see step s23 in FIG. 3), and when the packet length is acquired, the header information error determination unit 2s13As a parameter of packet format informationThe header length is checked (see step s24 in FIG. 3). When it is determined that the packet length does not exceed the maximum packet length that can be originally taken (see step s25 in FIG. 3), normal processing is performed (see step s27 in FIG. 3), and pack and packet processing is performed. After completion (see step s28 in FIG. 3), the process returns to the first process.As a parameter of packet format informationWhen it is determined that the packet length exceeds the maximum packet length that can be originally taken (see step s25 in FIG. 3), the packet length of the corresponding several packets is set to the packet length threshold, that is, the maximum packet that can be taken by the input stream. In addition to the replacement by the length (see step s26 in FIG. 3), the process returns to the first process, the unique pattern detector 2s3 is activated by the input process control means 2s6, and the process proceeds to the detection of the start code of the next packet.
[0053]
  For this reason, as shown in FIG. 4, if there is an error in the packet length but no error processing is performed, will the entire range of packet data specified by this incorrect packet length be skipped? Or stored in the decoded data buffer 2s10, according to the second embodiment, even if there is an error in the packet length, the range of the packet data is essentially the maximum packet that one packet can take. Since it is limited by the length, data is not skipped over a plurality of packets and is not stored in the decoded data buffer 2s10. Therefore, accurate data cannot be reproduced. .
  As described above, according to the second embodiment, when an error is mixed in the packet header length and the packet length and the packet length is larger than the maximum packet length, the error determination unit determines that the packet is an error packet. When the input processing control means is notified and the playback time information is included, the input processing control means controls the header analyzer so as not to store the playback time information in the playback time information storage means. Thus, the possibility of performing synchronized playback using the playback time information is reduced, and smoother synchronized playback is possible.
[0054]
(Embodiment 3)
  Next, Embodiment 3 of the present invention will be described with reference to FIG.
  In FIG. 1, 2s13 is a header information error determiner for determining an error occurring in the header information, and the third embodiment is similar to the second embodiment in comparison with the conventional example of FIG. Only 2s13 is added.
  FIG. 5 is a flowchart showing the control operation of the image signal reproducing apparatus according to the third embodiment of the present invention.
  Next, this embodiment3Will be described with reference to FIGS. First, the input pattern control means 2s6 activates the unique pattern detector 2s3 to detect a start code (see steps s31 and s32 in FIG. 5). When the start code is detected, the input processing control means 2s6 activates the header analysis unit 2s4 (see step s33 in FIG. 5), and the header length and packet length extracted by the header analysis unit 2s4 are the header information error determiner. 2s13 is notified and the check is performed (see step s34 in FIG. 5). When it is determined that the packet length is smaller than the packet header length (see step s35 in FIG. 5), the header information error determination unit 2s13 determines that the header information of the packet is destroyed by an error, and the packet An information error is notified to the input processing control means 2s6 (see step s36 in FIG. 5). When the playback time information exists in the header, the input processing control means 2s6 invalidates the playback time information and controls the header analysis unit 2s4 so as not to store it in the playback time information storage means 2s7 (steps s37, FIG. 5). s38). The input processing control means 2s6 controls not to activate the buffer transfer control means 2s5 for transferring the decoded data to the decoded data buffer 2s10. In addition, the input processing control means 2s6 activates the unique pattern detector 2s3 to control to detect new packs and packets, and to control to enter new packs and packet processing (step of FIG. 5). s39).
[0055]
When the header information error determiner 2s13 determines that the packet length is greater than the packet header length (see step s35 in FIG. 5), the pack and packet processing is completed (see step s40 in FIG. 5). ), Control to enter new pack and packet processing.
[0056]
By the above control, in the case of the error pattern, the reproduction time information including the error is not used for the synchronous reproduction in the decoding unit 3, and the synchronous reproduction with high error tolerance can be realized.
[0057]
In the case of storage media, the pack length is fixed, and when the header information error determination unit 2s13 determines that an error is recognized in the packet length, the packet length is the maximum length that can be taken by the fixed-length packet. The input processing control means 2s6 notifies the input processing control means 2s6, and the input processing control means 2s6 transfers or reads the encoded data included in the packet in the decoding buffer 2s10 with the packet length reset by the header information error determination unit 2s13. The buffer transfer control means 2s5 is controlled so as to skip.
[0058]
The header information error determination unit 2s13 determines that an error has occurred even when the marker added to the reproduction time information is valid at an illegal position, and does not store the reproduction time information in the reproduction time information storage unit 2s7. .
[0059]
  Thus, the present embodiment3According to the above, errors are mixed in the packet header length and packet length., PaWhen the header length is larger than the packet length, the error determination unit determines that the packet is an error packet and notifies the input processing control means. When the reproduction time information is included, the reproduction time information is stored in the reproduction time information storage means. Since the input processing control means controls the header analyzer so that it is not stored in the memory, the possibility of performing synchronized playback using incorrect playback time information is reduced, and smoother synchronized playback is possible. effective.
[0060]
(Embodiment4)
  Next, an embodiment of the present invention4Will be described with reference to FIG.
  In FIG. 1, 2s9 is reproduction time information reading means for reading time information from the reproduction time information storage means 2s7.4Is a figure9Only the reproduction time information reading means 2s9 is added to the conventional example.
  FIG. 6 shows an embodiment of the present invention.45 is a flowchart showing a control operation of the image signal reproduction device according to the above.
[0061]
  Next, the operation will be described. The decoding unit 3 decodes the encoded data existing in the decoded data buffer 2s10 (see step s41 in FIG. 6), and obtains the first reproduction time information corresponding to the reproduction unit entered in the reproduction time information storage means 2s7. Obtained via the reproduction time information read control means 2s8 (see step s42 in FIG. 6), compares the reproduction time reference counter with 2s14 (see step s43 in FIG. 6), and controls the output timing. When the reproduction time information 1 read via the reproduction time information read control means 2s8 has a value larger than the assumed reproduction time (see step s44 in FIG. 6), the decoding unit 3 reproduces the reproduction time information read control means 2s9. And the second reproduction time information registered next to the reproduction time information is read (see step s45 in FIG. 6), and the first reproduction time information and the second reproduction time information are The values are compared (see step s46 in FIG. 6), and the second reproduction time information is greater than the first reproduction time information.SmallIf this is the case (see step s47 in FIG. 6), this is determined to be an error, and control is performed so as not to use the first reproduction time information (see step s48 in FIG. 6).
[0062]
Then, the playback time reference counter 2s14 and the first playback time information are compared, the output timing of the playback image is determined and output (see step s49 in FIG. 6), and the decoding of the decoding unit is performed as the next playback unit. Control to shift to the operation is performed (see step s50 in FIG. 6), and the decoding unit 3 returns to the decoding operation.
[0063]
By providing the reproduction time information read control means 2s9 as described above, it is possible to determine an error in the reproduction time information and perform smoother synchronous reproduction.
[0064]
In particular, in the case of encoded data of video information by MPEG, the order of reproduction signals in input encoded data and the order of reproduction units at the time of output are different. The order of output of the input encoded data is changed according to the encoding method in the reproduction output process. Therefore, the second reproduction time information read for comparison with the first reproduction time information is not necessarily the value of the next entry stored in the reproduction time information storage means. An entry of a reproduction unit whose reproduction unit order at the time of output reproduction is temporally next to the first reproduction unit is read from the reproduction time information storage means, and is used as second reproduction time information.
[0065]
  Thus, the present embodiment4According to the above, in addition to the reproduction time information read control means 2s8 for reading the reproduction time information storage means 2s7 having a ring buffer structure, the reproduction time information different from the read pointer 1 managed by the reproduction time information read control means 2s8. Reproduction time reading means 2s9 having a second read pointer capable of freely reading any area of reproduction time information in the storage means 2s7 is newly provided, and the reproduction time information read control means 2s8 can be controlled by the decoding unit 3. Therefore, an interface capable of reading an arbitrary area of the synchronous reproduction time information storage means is provided, and there is an effect that the accuracy of determining the error of the synchronous reproduction information can be improved.
[0066]
(Embodiment5)
  Next, an embodiment of the present invention5Will be described with reference to FIG.
  In FIG. 1, 2s15 is a data bus that enables the external host CPU 4 to read the reproduction time information entered in the reproduction time information storage means 2s7, and 7 is a reproduction time register that holds the reproduction time of the decoding unit 3. This embodiment5Is a figure9The data bus 2s15, the reproduction time register 7 and the reproduction time information read control means 2s9 are added to the conventional example.
  FIG. 7 shows an embodiment of the present invention.55 is a flowchart showing a control operation of the image signal reproduction device according to the above.
[0067]
Next, the operation will be described. When decoding of the decoded data included in the decoded data buffer 2s10 is completed, the decoding unit 3 reads the first reproduction time information entered in the reproduction time information storage unit 2s7 through the reproduction time information read control unit 2s8, and The reproduction time information is compared with the count value of the reproduction time reference counter 2s14, and output control is performed. At this time, the first reproduction time information can be read from the external host CPU 4 and monitored. The external host CPU 4 monitors the reproduction time register 7 in which the first reproduction time information is stored every predetermined period (see step s51 in FIG. 7), and the reproduction time register 7 and the reproduction time reference counter 2s14. (See step s52 in FIG. 7), if the reproduction time information stored in the reproduction time register 7 is not updated for a predetermined time (see step s53 in FIG. 7), the decoding unit 3 stops due to the occurrence of an error. The playback time information reading control means 2s9 is activated, and the second playback time information entered next to the first playback time information is read via the data bus 2s12 (see FIG. 7). In step s54, the reproduction time register 7 is compared with the second reproduction time information (see step s55 in FIG. 7), and the first reproduction time information and the second reproduction time information are compared. When the relationship with the reproduction time information is greatly deviated from the relationship assumed from the decoding sequence, that is, when the reproduction time register 7 is larger than the second reproduction time information (see step s56 in FIG. 7). It is determined that there is an error, and the external host CPU 4 rewrites the reproduction time register 7 (see step s57 in FIG. 7), and shifts to normal processing (see step s58 in FIG. 7).
[0068]
As described above, by providing the reproduction time information read control means 2s9, which is an interface capable of reading the reproduction time information from the external host CPU 4, and the data bus 2s15 connected to the host bus 5, more accurate error determination is possible. Can be performed.
[0069]
In addition, the aboveFirstPlayback time informationNewsWhen write access from the host CPU 4 is permitted to the stored reproduction time register 7, the external host CPU 4 rewrites the reproduction time register 7 with an appropriate value, thereby matching the reproduction time reference counter 2s14. It is possible to cancel the stop of the decoding operation of the decoding unit 3 by generating the establishment of the above. Further, by releasing the reproduction time information storage unit 2s7 to the external host CPU 4, it becomes possible to realize more flexible and accurate reproduction apparatus synchronization processing.
[0070]
  Thus, the present embodiment5According to the present invention, since it is configured to be able to read from the host CPU 4 via the host bus 5 connected to the external host CPU 4, an interface capable of reading an arbitrary area of the synchronous reproduction time information storage means Thus, there is an effect that the accuracy of the error determination of the synchronous reproduction information can be improved.
[0071]
  In the first embodiment, only the packet identifier error determiner 2s12 is replaced with the second embodiment., 3Then, only the header information error determination unit 2s13 is used in the embodiment.4Then, only the reproduction time information reading means 2s9 is used in the embodiment.5Then, the data bus 2s15, the reproduction time register 7, and the reproduction time information read control means 2s9 are provided. However, two or more of these embodiments may be combined, and the effects of the embodiments are combined. It is possible to get things.
[0072]
【The invention's effect】
  As described above, according to the image signal reproduction device of the first aspect of the present invention, in the image signal reproduction device that performs synchronous reproduction of a data sequence in which digitally encoded audio, video, and caption data are multiplexed. A unique pattern detector for identifying a unique pattern representing a distinction between each encoded data sequence included in a multiplexed data sequence when encoding or reproducing a data sequence including an error in a transmission pathWhen,Header analyzer for analyzing information contained in headers starting with the unique patternAnd a unique pattern extracted by the unique pattern detector,Header analyzerButError determination of packet format information is performed based on at least one parameter of packet identifier, packet length, and header length to be extracted.Packet format informationError detectorA header information error determiner that compares the packet length extracted by the header analyzer with the header length, and determines that the packet is an error packet if the header length is greater than the packet length; and the unique A control unit for controlling the pattern detector;WithThe control unit, when the header information error determiner determines that the packet to be determined is an error packet, controls the unique pattern detector to transition to a new unique pattern detection operation.As a result, the error return point becomes faster when reproducing multi-encoded data including errors.At the same time, the possibility of synchronized playback using incorrect playback time information is reduced, enabling smoother synchronized playback.effective.
[0073]
  According to the image signal reproducing device of the present invention, the image signal reproducing device according to claim 1,When a multiplexed data string has a fixed pack length and a packet is stored in the pack, an error packet and the error determiner determine if the packet length extracted by the header analyzer is larger than the pack length. In addition, since the packet length is replaced with the maximum packet length that can be included in the pack, the possibility of performing synchronized playback using incorrect playback time information is reduced, and smoother synchronized playback is possible.effective.
[0074]
  According to the image signal reproduction device of the invention of claim 3 of the present application, in the image signal reproduction device of claim 1,The header analyzer for extracting reproduction time information included for synchronous reproduction of a multiplexed data string included in a packet header in multiplexed data includes reproduction time information storage means for writing the header information, and includes audio, video, and caption data The decoding unit reads out the reproduction time information stored in the reproduction time information storage unit and manages the reproduction time, and also manages the writing and reading of the reproduction time information storage unit managed by the header analyzer and the decoding unit. In addition, the decoding unit includes reproduction time information reading control means for freely reading reproduction time information stored in the reproduction time information storage means without depending on the read / write management information.So that incorrect playback time informationIs less likely to use synchronized playback,This has the effect of enabling smoother synchronized playback.
[0075]
  According to the image signal reproducing device of the invention of claim 4 of the present application,3In the described image signal reproduction device,When the difference between the reproduction time information used for the synchronous reproduction and the reproduction reference counter used for the synchronous reproduction is larger than a predetermined error determination value, the decoding unit tries to execute the synchronous reproduction by the reproduction time information read control means. It is determined that an error occurs when the playback time information of a playback unit is smaller than the playback time information of the next playback unit, and synchronous playback using the error playback time information is not performed.Incorrect playback time informationIs less likely to use synchronized playbackThus, there is an effect that smoother synchronized playback is possible.
[0076]
  AlsoAccording to the image signal reproducing device of the invention of claim 5 of the present application,4In the described image signal reproduction device,Since the external host CPU rewrites the reproduction time information determined to be error, and the decoding unit performs synchronous reproduction based on the rewritten reproduction time information, any area of the synchronous reproduction time information storage means is stored. By providing a readable interface, the accuracy of error determination in synchronized playback information is improved.effective.
[Brief description of the drawings]
FIG. 1 is a first embodiment of the present invention.5FIG. 2 is a block diagram showing an image signal reproduction device according to FIG.
FIG. 2 is a flowchart showing a control operation of the image signal reproduction device according to the first embodiment of the present invention.
FIG. 3 is a flowchart showing a control operation of an image signal reproduction apparatus according to Embodiment 2 of the present invention.
FIG. 4 is a data format diagram for explaining the effect of the image signal reproduction device according to the second embodiment of the present invention when an error exists in the packet length.
FIG. 5 shows an embodiment of the present invention.3The flowchart figure which shows the control operation | movement of the image signal reproducing | regenerating apparatus by.
FIG. 6 shows an embodiment of the present invention.4The flowchart figure which shows the control operation | movement of the image signal reproducing | regenerating apparatus by.
FIG. 7 shows an embodiment of the present invention.5The flowchart figure which shows the control operation | movement of the image signal reproducing | regenerating apparatus by.
FIG. 8 is an explanatory diagram of multiplex encoded data.
FIG. 9 is a block diagram showing a conventional image signal reproduction apparatus.
FIG. 10 is a data format diagram showing an error location in a packet.
FIG. 11 is a diagram for explaining the operation of the conventional image signal reproducing apparatus when there is an error in the packet length.
FIG. 12 is a diagram for explaining the operation of the conventional image signal reproducing apparatus when there is an error in the reproduction time information.
[Explanation of symbols]
  2s1 input buffer
  2s2 data selector switch
  2s3 unique pattern detector
  2s4 header analysis unit
  2s5 buffer transfer control means
  2s6 input processing control means
  2s7 playback time information storage means
  2s8 Playback time information read control means
  2s9 Playback time information read control means
  2s10 decoded data buffer
  2s11 Decoded data read control means
  2s12 packet identifier error determiner
  2s13 Header information error determiner
  2s14 Playback time reference counter
  2s15 data bus
  1 Multiple encoded signal supply unit
  2 Multiplex signal separator
  3 Decryption unit
  4 Host CPU
  5 Host bus
  6 Image signal playback device
  7 Playback time register

Claims (5)

ディジタル符号化された音声、映像、字幕データが多重化されたデータ列の同期再生を行う画像信号再生装置において、
符号化時もしくは伝送路でのエラーが含まれるデータ列の再生を行う際に、多重データ列中に含まれる前記の各符号化データ列の区別を表すユニークパターンを識別するユニークパターン検出器と、
前記ユニークパターンを先頭とするヘッダーに含まれる情報を解析するヘッダー解析器と、
前記ユニークパターン検出器が抽出するユニークパターンと、前記ヘッダー解析器抽出するパケット識別子、パケット長、ヘッダー長の少なくとも1つのパラメータをもとにパケットフォーマット情報のエラー判別を行うパケットフォーマット情報エラー判定器と、
前記ヘッダー解析器が抽出したパケット長とヘッダー長とを比較し、前記ヘッダー長が前記パケット長よりも大きな場合、該パケットをエラーパケットであると判定するヘッダー情報エラー判定器と、
前記ユニークパターン検出器を制御する制御部とを備え、
前記制御部は、前記ヘッダー情報エラー判定器が、被判定パケットがエラーパケットであると判定した時に、新規ユニークパターンの検出動作に遷移するように前記ユニークパターン検出器を制御する、
ことを特徴とする画像信号再生装置。
In an image signal reproduction device that performs synchronous reproduction of a data sequence in which digitally encoded audio, video, and caption data are multiplexed,
A unique pattern detector for identifying a unique pattern representing a distinction between each encoded data sequence included in a multiplexed data sequence when encoding or reproducing a data sequence including an error in a transmission path ;
A header analyzer that analyzes information included in the header starting with the unique pattern;
A unique pattern of the unique pattern detector extracts, before Kihe Dda packet identifier analyzer extracts, packet length, packet format information errors for which the error determination packet format information based on the at least one parameter of the header length A determiner ;
A header information error determiner that compares the packet length extracted by the header analyzer with a header length, and determines that the packet is an error packet if the header length is greater than the packet length;
A controller for controlling the unique pattern detector ,
The control unit, when the header information error determiner determines that the packet to be determined is an error packet, controls the unique pattern detector to transition to a new unique pattern detection operation.
An image signal reproducing apparatus characterized by that.
請求項1記載の画像信号再生装置において、
多重データ列が固定のパック長を持ち、前記パック内にパケットが格納される場合、前記ヘッダー解析器によって抽出されたパケット長が前記パック長よりも大きい場合、エラーパケットと前記エラー判定器が判定し、前記パックに含まれ得る最大パケット長で前記パケット長を置き換えることを特徴とする画像信号再生装置。
The image signal reproducing apparatus according to claim 1, wherein
When a multiplexed data string has a fixed pack length and a packet is stored in the pack, an error packet and the error determiner determine if the packet length extracted by the header analyzer is larger than the pack length. An image signal reproducing apparatus that replaces the packet length with a maximum packet length that can be included in the pack.
請求項1記載の画像信号再生装置において、
多重データ中のパケットヘッダーに含まれる多重データ列の同期再生用に含まれる再生時間情報を抽出する前記ヘッダー解析器は、前記ヘッダー情報を書き込む再生時間情報記憶手段を備え、音声、映像、字幕データの復号部は前記再生時間情報記憶手段に格納された再生時間情報を読み出して再生時間の管理を行うとともに、
前記ヘッダー解析器及び前記復号部の管理する再生時間情報記憶手段の書き込み、読み出し管理に加えて、
前記復号部が前記読み出し、書き込みの管理情報に依存せずに自由に前記再生時間情報記憶手段に格納された再生時間情報を読み出す再生時間情報読み出し制御手段を備えたことを特徴とする画像信号再生装置。
The image signal reproducing apparatus according to claim 1, wherein
The header analyzer for extracting reproduction time information included for synchronous reproduction of a multiplexed data string included in a packet header in multiplexed data includes reproduction time information storage means for writing the header information, and includes audio, video, and caption data The decoding unit reads out the reproduction time information stored in the reproduction time information storage means and manages the reproduction time,
In addition to write / read management of playback time information storage means managed by the header analyzer and the decoding unit,
Image signal reproduction characterized in that the decoding unit comprises reproduction time information read control means for freely reading reproduction time information stored in the reproduction time information storage means without depending on the read / write management information apparatus.
請求項記載の画像信号再生装置において、
前記復号部を、前記同期再生に使用する再生時間情報と同期再生に使用する再生基準カウンタとの差が所定のエラー判定値より大きい場合、再生時間情報読み出し制御手段により、同期再生を実行しようとしている再生単位の再生時間情報が次の再生単位の再生時間情報より小さい場合エラーと判定し、前記エラー再生時間情報を用いた同期再生を行わないものとしたことを特徴とする画像信号再生装置。
The image signal reproducing apparatus according to claim 3 , wherein
When the difference between the reproduction time information used for the synchronous reproduction and the reproduction reference counter used for the synchronous reproduction is larger than a predetermined error determination value, the decoding unit tries to execute the synchronous reproduction by the reproduction time information read control means. An image signal reproduction apparatus characterized in that an error is determined when reproduction time information of a given reproduction unit is smaller than reproduction time information of a next reproduction unit, and synchronous reproduction using the error reproduction time information is not performed.
請求項記載の画像信号再生装置において、
エラー判定された再生時間情報を外部ホストCPUが書き換えを行い、前記書き換えられた再生時間情報をもとに復号部が同期再生を行うことを特徴とする画像信号再生装置。
The image signal reproducing apparatus according to claim 4 , wherein
An image signal reproducing apparatus, wherein an external host CPU rewrites reproduction time information determined to have an error, and a decoding unit performs synchronous reproduction based on the rewritten reproduction time information.
JP20557398A 1998-07-21 1998-07-21 Image signal reproduction device Expired - Fee Related JP3768008B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20557398A JP3768008B2 (en) 1998-07-21 1998-07-21 Image signal reproduction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20557398A JP3768008B2 (en) 1998-07-21 1998-07-21 Image signal reproduction device

Publications (2)

Publication Number Publication Date
JP2000040311A JP2000040311A (en) 2000-02-08
JP3768008B2 true JP3768008B2 (en) 2006-04-19

Family

ID=16509136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20557398A Expired - Fee Related JP3768008B2 (en) 1998-07-21 1998-07-21 Image signal reproduction device

Country Status (1)

Country Link
JP (1) JP3768008B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100971456B1 (en) * 2002-05-14 2010-07-26 코닌클리케 필립스 일렉트로닉스 엔.브이. Device and method for recording information
JP4750730B2 (en) 2006-02-28 2011-08-17 パナソニック株式会社 Data analysis apparatus and data analysis method
JP5044687B2 (en) 2010-09-16 2012-10-10 株式会社東芝 Video processing apparatus and file management method
CN108028949B (en) * 2015-09-16 2021-05-11 索尼公司 Transmission device, transmission method, reproduction device, and reproduction method
CN108292964B (en) * 2015-11-27 2020-04-21 索尼公司 Receiving apparatus and method, and communication system
JP6656193B2 (en) * 2017-03-07 2020-03-04 三菱電機株式会社 Content playback device and content playback program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07230364A (en) * 1994-02-18 1995-08-29 Sanyo Electric Co Ltd Cd-rom decoder
JPH07230363A (en) * 1994-02-18 1995-08-29 Sanyo Electric Co Ltd Cd-rom decoder
JP3499280B2 (en) * 1994-03-28 2004-02-23 株式会社東芝 Recording medium and reproducing apparatus therefor
JPH0944929A (en) * 1995-07-25 1997-02-14 Dainippon Printing Co Ltd Time code inspecting device
JPH1098699A (en) * 1996-09-20 1998-04-14 Fujitsu Ltd Separator

Also Published As

Publication number Publication date
JP2000040311A (en) 2000-02-08

Similar Documents

Publication Publication Date Title
US6504994B2 (en) Data reproduction apparatus and data storage medium
EP1039756B1 (en) Apparatus and method for encoding digital video data
KR100405249B1 (en) Decoding and reverse playback apparatus and method
US5737479A (en) Apparatus and method for inserting rating code into the digital video signal
EP0602943B1 (en) Apparatus for reproducing multiplexed data from a record medium
KR100276205B1 (en) Recording/reproducing apparatus
US20030142752A1 (en) Error concealment for MPEG decoding with personal video recording functionality
JPH09275544A (en) Decoder and decoding method
JP3768008B2 (en) Image signal reproduction device
US6647202B1 (en) Video signal reproducing apparatus capable of reproducing bitstreams and video signal reproducing method
EP0904585A2 (en) Recording of a digital information signal on a record carrier
JPH06343065A (en) Decoding system, demultiplex method and signal processing method
JP3564145B2 (en) Coded signal reproduction device
JP2003339019A (en) Recording and reproducing apparatus and recording and reproducing method
JP3042607B2 (en) Sync detection circuit
JP3916615B2 (en) Multiple encoded signal reproduction apparatus
JP2001268518A (en) Data recording and reproducing device
JP3517463B2 (en) Playback device
JP4207304B2 (en) Information input device and method, information output device and method, and recording medium
JP3004105U (en) Compressed signal playback and synchronization device
JP4410375B2 (en) Image signal reproducing apparatus and image signal reproducing method
US20040223728A1 (en) Method and apparatus for determining entry points
JP2006005955A (en) Motion picture recording and reproducing apparatus and recording medium
JP2000106669A (en) Apparatus and method for image signal reproduction
JP2002044603A (en) Apparatus and method for processing video identification signal

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050425

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050809

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050920

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051121

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: 20060124

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060131

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100210

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100210

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110210

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees