JP3854697B2 - Receiver - Google Patents

Receiver Download PDF

Info

Publication number
JP3854697B2
JP3854697B2 JP25062697A JP25062697A JP3854697B2 JP 3854697 B2 JP3854697 B2 JP 3854697B2 JP 25062697 A JP25062697 A JP 25062697A JP 25062697 A JP25062697 A JP 25062697A JP 3854697 B2 JP3854697 B2 JP 3854697B2
Authority
JP
Japan
Prior art keywords
data
error
circuit
packet
block data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP25062697A
Other languages
Japanese (ja)
Other versions
JPH1188840A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP25062697A priority Critical patent/JP3854697B2/en
Publication of JPH1188840A publication Critical patent/JPH1188840A/en
Application granted granted Critical
Publication of JP3854697B2 publication Critical patent/JP3854697B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ディジタルビデオカメラに用いて好適な受信装置関する。
【0002】
【従来の技術】
近年、ディジタル技術の発展に伴い、膨大なデータ量の各種データを符号化することによりデータ量を削減して、比較的低い伝送レートで伝送し得るようにするための各種装置が開発されている。例えば、画像データを磁気テープ等の記憶媒体に記録するディジタルVTRにおいても、124Mbps程度の入力画像データを5分の1の25Mbps程度に圧縮して磁気テープ上に記録し、再生するための規格が制定されている。
【0003】
このような規格に基づくディジタルVTRにおいては、入力データをDCT変換した後に量子化し、この量子化データをハフマン符号化等により可変長符号化することによってデータの圧縮を行っており、さらに量子化する際の量子化ステップを各種のパラメータに基づいて可変したり、可変長符号化された後のデータ量が一定になるようにレート制御が行われたりする。上記処理されたデータは、メモリを介して例えばリード・ソロモン符号を用いたエラー検出/訂正のための処理が行われ、内符号と外符号が付加されて、磁気テープ等の記憶媒体に記録される。
【0004】
また、上記ディジタルVTRでは、IEEEにおいて制定されたディジタルデータの転送フォーマット(以下、IEEE1394と記す)を用いたディジタルダビングが可能である。その構成について図5を用いて説明する。図5において、ディジタルダビングにおける送信側のディジタルVTR(以下、DVCR1と記す)200は、上記可変長符号化された後のデータ量が一定になるようにレート制御されたディジタルデータをディジタルインターフェース部(以下、DIF1と記す)202へ出力する。これらのデータは、図6に示すように、77バイトの有効データに対して3バイトのIDデータが付加された80バイトで1ブロックを構成する。図6において、ID0はデータタイプ(ヘッダ、サブコード、ビデオAUX、オーディオ、ビデオデータの何れかを示す)、ID1はトラック番号(NTSCは0〜9、PALは0〜11)、ID2はブロック番号が付される。
【0005】
有効データ77バイトの最初の1バイトは、上位4ビットにエラー訂正及びエラー修整の状態を示すSTAフラグ、下位4ビットに量子化レベルを表すQNo.が書き込まれる。これらのデータは、1トラック毎に1個のヘッダブロック、2個のサブコードブロック、3個のビデオAUXブロック、9個のオーディオブロック、135個のビデオブロックで構成されている。通常、送信側のDVCR1(200)は、例えば上記ブロックデータをDIFブロックとして、順次その6DIFブロック(480バイト)を1パケットとしてDIF1(200)へ送信する。
【0006】
送信側DIF1(200)においては、所定の通信サイクル(125us)で通信が行われ、上記ヘッダデータ、サブコードデータ、ビデオAUXデータ、ビデオデータ、オーディオデータのような時間軸を持ったデータは一定のデータレートで転送帯域が保証されたisochronous(同期)通信され、制御コマンドのような制御データは必要に応じて不定期にasynchronous(非同期)通信される。
【0007】
上記isochronous(同期)転送のパケットフォーマットは、図7に示すような合計で12+4×Nバイトで構成される。aは長さフィールドであり、ヘッダの後に続くデータ・フィールドのバイト長を規定する。bはチャンネル番号フィールドであり、8ビットの値を使ってパケットデータの転送に論理的な番号を与える。受信側ではチャンネル番号を参照して必要なisochronousデータを取り込む。cはtCodeフィールドであり、このパケットがisochronous(同期)転送であることを示す。dはsyフィールドであり、アプリケーション・ソフトウエアが利用するソースとデスティネーションとの間で同期情報のやり取りを行うために使用する。
【0008】
eはヘッダCRCフィールドであり、上記a、b、c、dに対するエラー検出コードである。fはデータフィールドであり、上記isochronousデータ及びCIPヘッダと呼ぶヘッダデータを格納する。gはデータCRCであり、パケットのエラー検出コードである。このようにパケット化されたデータは、図5のIEEE1394ケーブル204を用いて、受信側にシリアル転送される。受信側のディジタルインターフェース部(以下、DIF2と記す)206は、上記isochronousデータを受信し、所定の処理を施した後、図7のデータフィールドから上記ビデオデータ等を抜き出し、受信側のディジタルVTR(以下、DVCR2と記す)208に出力する。DVCR2(208)では、受信データに対してエラー訂正符号を付加し、磁気記憶媒体へ記録する。
【0009】
図8は上記受信側の詳細な回路構成である。Aは図5に示したDIF2(206)であり、BはDVCR2(208)である。1はIEEE1394ケーブル204からのシリアルデータ入力端子、3は上記シリアルデータをパラレルデータに変換するS/P変換回路であり、その変換のタイミングは第1制御回路13により制御される。5はランダムアクセスメモリであり、第1制御回路13からのライトイネーブル制御によってS/P変換回路3から出力される受信データが上記パケット単位に書き込まれる。7は上記受信データのエラー検出回路であり、図7のgに示した4ビットのCRCデータを用いてエラー検出を行う。9は上記エラー検出の結果を当該パケットデータが読み出されるタイミングに同期させるための遅延回路である。11は、第1制御回路13から出力されたライトイネーブルを上記当該パケットデータの書き込みが完了するまでの間、遅延させる遅延回路である。13はメインマイコン15により制御されて回路Aを制御する第1制御回路である。15はメインマイコンであり、システム全体を制御する。
【0010】
17はラッチで、遅延回路11から供給された信号を1サイクル分遅延してランダムアクセスメモリ5にリードイネーブルとして供給し、かつランダムアクセスメモリ23のライトイネーブルとしてマスク回路19へ供給する。マスク回路19は、遅延回路9からエラー信号も同時に供給されており、図示せずもランダムアクセスメモリ5から読み出されたパケットデータにエラーがある場合には、ランダムアクセスメモリ23のライトイネーブルをマスクし、ランダムアクセスメモリ23への書き込みを禁止する。21はランダムアクセスメモリ5から送出されるデータと上記マスク回路19から供給されるライトイネーブルのタイミングを合わせるためのラッチである。
【0011】
ランダムアクセスメモリ23は、例えば3フレーム分の容量を持ち、書き込みと読み出しが追い越し等を起こさないように第2制御回路25によりバンク制御されている。第2制御回路25は、第1制御回路13と同様にメインマイコン15によって制御される。27は記録再生処理回路であり、第2制御回路25により制御され、ランダムアクセスメモリ23へリードイネーブルを供給しデータを読み出す。この読み出されたデータはDIF転送されたデータであり、既に圧縮符号化済みのデータであるために、新たな符号化処理はしない。但し、図示せずもエラー検出訂正のための符号化、及び記録のためのフォーマット化、24/25変調、電磁変換処理等を記録再生処理回路27で行い、磁気テープ29へ記録する。
【0012】
ここで、図9及び図10を用いてDIF転送されたデータがランダムアクセスメモリ23に書き込まれる動作を説明する。図9は、画面イメージであって、水平方向に5分割(i=0、1、2、3、4)、垂直方向に10分割(j=0、1、2、…、9)している。ここで、jは記録テープ上のトラック番号を表している。上記分割した各ブロックは、スーパーマクロブロック(以下、SMBと記す)と呼び、その詳細な構成を図10に示す。
【0013】
図10においてSMBは、IDデータを除く27個のDIFブロック(k=0、1、2、…、26)で構成される。従って、図9における各DIFブロックの位置は、B(i,j,k)というマクロブロックで表すことができる。ここで、DIF転送されたデータは、圧縮符号化時にシャフリングされた順序になっているために、例えば、{B(2,2,0),B(1,6,0),B(3,8,0),B(0,0,0),B(4,4,0)}の順で図9の黒部分に書込みが行われる。以下、{B(2,2,1),B(1,6,1),B(3,8,1),B(0,0,1),B(4,4,1)}、…と言う順に5DIFブロック単位にアクセスされる。このように書き込まれたデータは、シャフリングをせずにトラック番号順に読み出され、記録再生処理回路27により処理されて磁気テープ29に記録される。
【0014】
一方、再生時の構成及び動作を図11に示す。図11においては図8と同一の構成要素には同一番号を付してある。図8において、磁気テープ29からの再生データを記録再生処理回路27に供給する。記録再生処理回路27は、デフォーマット化、25/24復調を行い、第2制御回路25により制御されてランダムアクセスメモリ23に書き込みを行う。復号処理回路31は再生された圧縮データの伸長/復号化処理を行う。ここでの処理は図9で説明したように、圧縮/符号化処理時と同一のシャフリング規則に準拠した順序で得られる連続した5マクロブロック単位に行われる。上記伸長/復号化処理を施されたデータは、画像データ出力端子33から外部出力装置に供給される。メインマイコン15は上述のようにシステム全体を制御する。
【0015】
【発明が解決しようとする課題】
上記従来例において前述したように、DIF送受信データの処理単位が6DIFブロックであるのに対して、復号化のための処理単位は5マクロブロック(5DIFブロックに相当する)である。このため、伝送路にエラーが混入した場合、エラーが検出されたことによるランダムアクセスメモリ23の書込み制御によって下記のような問題が発生する。
【0016】
図12はこの問題が発生する動作を説明するものである。iは、DIF受信データ、又は一旦記録されその後再生された時の再生データに対する復号化処理単位、jは、DIF受信データ、又は記録/再生データである。kは、DIF受信データの処理単位であり、mは、上記DIF受信データに対して1パケット単位のCRCエラーチェックをした結果のエラーフラグであり、“L”でエラーが混入していることを示す。この場合、データ0から5までは最新データであり、ランダムアクセスメモリ23のデータは更新されるが、データ6から11まではエラーパケットであるために、ランダムアクセスメモリ23への書込みは禁止され、少なくとも数フレーム前の古いデータが更新されずに残る。このため、復号化処理単位iによって復号化処理を行うと、復号化周期Dec1、Dec2において、新しいデータと古いデータとが混在することになり、符号化/復号化の連続性がなくなり、復号化された画像データが著しく劣化する原因になっている。
【0018】
【課題を解決するための手段】
本発明に係る受信装置は、例えば、エラー訂正の状態を示す第1のデータを含むブロックデータを複数個有するパケットを受信する受信手段と前記受信手段により受信された前記パケットのエラーを検出する検出手段と、前記受信手段により受信された前記パケットにエラーが発生しているか否かに応じて、前記受信手段により受信された前記パケットに含まれるブロックデータ内の前記第1のデータを第2のデータに置換する置換手段と、前記パケットに含まれるブロックデータの数とは異なる数のブロックデータを用いて復号化処理を行う復号化手段とを有し、前記復号化手段では、前記復号化処理に必要な複数個のブロックデータの少なくとも1つのブロックデータに前記第2のデータが含まれている場合、前記復号化処理に必要な複数個のブロックデータの代わりに他の複数個のブロックデータを用いて前記復号化処理を行うことを特徴とする。
【0021】
【発明の実施の形態】
以下、本発明の実施の形態を図面と共に説明する。
図1は本発明の実施の形態を示すもので、図8と同一のものには同一番号を付してあり、同一の動作をするので説明は省略する。
まず、35で示すSTA置換回路は、本発明の特徴を最も良く表す回路であり、回路AからのDIF受信データと、エラーフラグ、リードイネーブルが供給される。次に、図2を用いてSTA置換回路35の構成及び動作を説明する。図2において、端子3051は、図1のラッチ17を経由して供給されるリードイネーブル信号端子であり、このイネーブル信号は、エッジ検出回路3503に供給される。エッジ検出回路3503は、上記イネーブル信号の立ち下がりエッジを検出し、カウンタ3505へ供給する。カウンタ3505は内部クロックで動作し、上記イネーブル信号の立ち下がりエッジに同期してリセットされるものである。
【0022】
デコーダ3507は、上記カウンタ値をデコードし、入力データ列における図6のSTAの位置を示す信号を出力し、OR回路3511に供給する。端子3509は、1パケット単位の転送エラーフラグ信号の入力端子であり、このフラグ信号はOR回路3511へ入力される。OR回路3511は、転送エラーがあり、かつデータ列におけるSTAの位置である時のみ、“L”信号を出力するように構成され、その出力はスイッチ3515に供給される。その供給される信号が“L”レベルの時は、受信データ1バイトにおいてSTA位置に当たるbit7からbit4の上位4ビットをエラーありを示すパターン、例えば“1110”に置き換えた1バイトデータを選択し(スイッチ3515はb側に接続される)、それ以外(スイッチ3515はa側に接続される)は受信データそのものが選択されるように動作する。その選択されたデータは、データ出力端子3517へ供給される。
【0023】
図3は、図2で説明した動作のタイミングチャートである。
図3において、aは内部クロックである。bは図1のラッチ17から供給されるイネーブル信号で、1パケット単位に“L”にアサートされるものである。cは1クロック幅を有する上記イネーブル信号の立ち下がりエッジであり、エッジ検出回路3503から出力される。dはカウンタ3505のカウンタ値であり、1DIFブロックの80バイトを繰り返し、6DIFブロック分カウントする。eは、上記カウンタ値をデコーダ3507によりデコードし、DIFブロック毎のSTAデータ位置を検出し、“L”を出力するタイミングを示す。
【0024】
fはエラー信号であり、1パケット単位にエラーの有り/無しが判定される。fは“H”でエラー無し、“L”でエラー有りを示す。hは上記エラーが発生した時に図2のデータ出力端子3517に供給されるデータを表したもので、図中RPと記されているところがSTA位置であり、エラーが発生しているためにエラーパターンを示すSTAデータと置換されている。
上記のように処理されたデータは、当然のことながら一旦記録された後、再生されても同一のデータであるために、伸長/復号化処理の動作としては同様の処理が施される。
【0025】
次に、上記データの伸長/復号化処理部の構成及び動作について図4を用いて説明する。
図4において、端子1201は、図2のデータ出力端子3517から出力されたデータが入力される入力端子である。この入力データは復号化処理回路1205及びSTAチェック回路1203に供給される。また、第3制御回路1207は図1のランダムアクセスメモリ23に対してデータ読み出しのためのリクエストを発行して図1の第2制御回路25に供給し、他の処理回路からのリクエストを含めアービトレーションされ、ランダムアクセスメモリ23へのアセスが供給された時に限り、アクノリッジ(以下、Ackと記す)が返されてくる。端子1213はそのAck入力端子である。
【0026】
第3制御回路1207は、返されたAckからデータの到着タイミングが一定であるためにSTAチェックのタイミングを知ることができる。そのSTAチェックタイミングをSTAチェック回路1203に供給することによりSTAチェックが実行される。このSTAチェック結果は、復号化処理回路1205及び第3制御回路1207へ供給される。復号化処理回路1205は、連続する5マクロブロックの何れかのマクロブッロックのSTAがエラーパターンになっていた場合は、復号化処理回路1205の動作を停止し、次の5マクロブロックデータの入力を待つ。第3制御回路1207は、STAがエラーパターンになっていた場合は、前フレーム又はフィールドの同一場所を示すアドレスを発生し直して、再度ランダムアクセスメモリ23をアクセスするためのリクエストを発行する。これにより、前フレーム又はフィールドの5マクロブロックデータで補間されることになる。
【0027】
尚、当然のことながら、本実施の形態においては、エラー有りの場合に、DIF受信データのSTAをエラーパターンに置換し、その後ランダムアクセスメモリ23に対してDIFブロック単位に全てのデータを書き込む動作をするが、書込み時の当該メモリエリアのDIFブロックデータに相当するブロックデータのSTAデータのみを書き換えるように構成しても、上記と同様の効果を得ることができる。
【0028】
また、STA置換回路35からランダムアクセスメモリ23に書き込まれたデータは、記録再生することなく直接に読み出して復号化処理を行うこともできる。
【0029】
尚、図1、図2、図4における各回路等の機能ブロックは、ハード的に構成してもよく、各図のようにCPUやメモリ等から成るマイクロコンピュータシステムに構成してもよい。マイクロコンピュータシステムに構成する場合、上記メモリは本発明による記憶媒体を構成し、この記憶媒体には前述した各ブロックの処理を実行するためのプログラムが記憶される。
また、この記憶媒体としては、ROM、RAM等の半導体メモリや、光ディスク、光磁気ディスク、磁気媒体等を用いてよく、これらをCD−ROM、フロッピディスク、磁気テープ、不揮発のメモリカード等として用いてもよい。
【0030】
以上説明したように、本発明の実施の形態によれば、情報データと前記情報データのエラー状態を示すエラーデータとを含むパケットデータを入力し、パケットデータの伝送エラーを検出し、その検出結果に応じて前記パケットデータ内の前記エラーデータを所定のエラーパターンのデータに変換するので、エラーの有るパケットを知ることができる。これによって、データ処理を適切に行うことができる。例えば、エラーの有るパケットの処理は行わない等の適切な処置をとることにより、信号品質の劣化を軽減することができる。特に、前記パケットデータが所定の複数個の固定長のブロックデータから成り、各ブロックデータに前記エラーデータが含まれている場合に、データ処理を前記パケットより短いデータ長単位で行う場合に有効である。また、例えば、情報データとして画像データを扱う場合、入力された画像データにエラーパターンが検出されたときは、前フレーム又はフィールド期間の画像データにより処理するようにし、伝送エラーによる画像劣化を防止するようなことができる。
【図面の簡単な説明】
【図1】本発明の実施の形態を示すブロック図である。
【図2】図1のSTA置換回路の構成図である。
【図3】STA置換回路の動作を示すタイミングチャートである。
【図4】復号化処理部の構成を示すブロック図である。
【図5】従来のディジタルインターフェースを介してディジタルデータを送受信するVTRのダビングシステムの構成を示すブロック図である。
【図6】ブロックデータの構成図である。
【図7】シリアスバス上の転送フォーマットを示す構成図である。
【図8】上記システムにおける受信側の構成を示すブロック図である。
【図9】圧縮/伸長時の画面イメージにおけるシャフリング順序を説明するための構成図である。
【図10】スーパーマクロブロックの構成とDIF受信データの書き込み処理タイミングを示す構成図である。
【図11】上記システムにおける再生処理部の構成を示すブロック図である。
【図12】送受信データの処理単位と復号化処理の処理単位を説明するための構成図である。
【符号の説明】
15 メインマイコン
23 ランダムアクセスメモリ
25 第2制御回路
27 記録再生処理回路
29 磁気テープ
35 STA置換回路
1203 STAチェック回路
1205 復号化処理回路
1207 第3制御回路
3503 エッジ検出回路
3505 カウンタ
3507 デコーダ
3511 OR回路
3515 スイッチ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a preferred receiving apparatus used in a digital video camera.
[0002]
[Prior art]
2. Description of the Related Art In recent years, with the development of digital technology, various devices have been developed to reduce the data amount by encoding various types of data and transmit at a relatively low transmission rate. . For example, in a digital VTR that records image data on a storage medium such as a magnetic tape, there is a standard for compressing input image data of about 124 Mbps to about 1/5 of 25 Mbps, and recording and reproducing the data on the magnetic tape. It has been enacted.
[0003]
In a digital VTR based on such a standard, the input data is quantized after DCT conversion, and the quantized data is subjected to variable length coding by Huffman coding or the like, thereby compressing the data and further quantizing the data. The quantization step at that time is varied based on various parameters, or rate control is performed so that the amount of data after variable length coding is constant. The processed data is subjected to error detection / correction processing using, for example, a Reed-Solomon code, via a memory, and an inner code and an outer code are added and recorded on a storage medium such as a magnetic tape. The
[0004]
The digital VTR can perform digital dubbing using a digital data transfer format established in IEEE (hereinafter referred to as IEEE 1394). The configuration will be described with reference to FIG. In FIG. 5, a transmission-side digital VTR (hereinafter referred to as DVCR1) 200 in digital dubbing receives digital data whose rate is controlled so that the amount of data after the variable length coding is constant as a digital interface unit ( (Hereinafter referred to as DIF1) 202. As shown in FIG. 6, these data constitute one block of 80 bytes in which 3-byte ID data is added to 77-byte valid data. In FIG. 6, ID0 is a data type (header, subcode, video AUX, audio, or video data), ID1 is a track number (0 to 9 for NTSC, 0 to 11 for PAL), and ID2 is a block number. Is attached.
[0005]
The first 1 byte of the valid data 77 bytes includes a STA flag indicating error correction and error correction status in the upper 4 bits, and a QNo. Indicating the quantization level in the lower 4 bits. Is written. These data are composed of one header block, two subcode blocks, three video AUX blocks, nine audio blocks, and 135 video blocks for each track. Usually, the DVCR1 (200) on the transmission side transmits, for example, the block data as a DIF block and sequentially transmits the 6DIF block (480 bytes) as one packet to the DIF1 (200).
[0006]
In the transmission side DIF1 (200), communication is performed in a predetermined communication cycle (125 us), and data having a time axis such as the header data, subcode data, video AUX data, video data, and audio data is constant. Isochronous (synchronous) communication in which the transfer bandwidth is guaranteed at the data rate, and control data such as a control command is asynchronously (asynchronously) communicated irregularly as necessary.
[0007]
The packet format of the isochronous transfer is composed of 12 + 4 × N bytes in total as shown in FIG. a is a length field, which defines the byte length of the data field following the header. Reference numeral b denotes a channel number field, which gives a logical number to packet data transfer using an 8-bit value. On the receiving side, necessary isochronous data is fetched by referring to the channel number. c is a tCode field indicating that this packet is an isochronous transfer. d is a sy field, which is used for exchanging synchronization information between the source and destination used by the application software.
[0008]
e is a header CRC field, which is an error detection code for a, b, c, and d. f is a data field that stores the isochronous data and header data called a CIP header. g is a data CRC, which is a packet error detection code. The packetized data is serially transferred to the receiving side using the IEEE 1394 cable 204 of FIG. A receiving-side digital interface unit (hereinafter referred to as DIF2) 206 receives the isochronous data, performs predetermined processing, extracts the video data from the data field of FIG. (Hereinafter referred to as DVCR2) 208. In DVCR2 (208), an error correction code is added to the received data and recorded on the magnetic storage medium.
[0009]
FIG. 8 shows a detailed circuit configuration on the receiving side. A is DIF2 (206) shown in FIG. 5, and B is DVCR2 (208). Reference numeral 1 denotes a serial data input terminal from the IEEE 1394 cable 204, 3 denotes an S / P conversion circuit for converting the serial data into parallel data, and the conversion timing is controlled by the first control circuit 13. Reference numeral 5 denotes a random access memory, in which received data output from the S / P conversion circuit 3 is written in units of packets by the write enable control from the first control circuit 13. Reference numeral 7 denotes an error detection circuit for the received data, which performs error detection using the 4-bit CRC data shown in g of FIG. Reference numeral 9 denotes a delay circuit for synchronizing the error detection result with the timing at which the packet data is read out. A delay circuit 11 delays the write enable output from the first control circuit 13 until the packet data writing is completed. A first control circuit 13 is controlled by the main microcomputer 15 to control the circuit A. A main microcomputer 15 controls the entire system.
[0010]
Reference numeral 17 denotes a latch which delays the signal supplied from the delay circuit 11 by one cycle and supplies the signal to the random access memory 5 as a read enable and supplies the random access memory 23 as a write enable to the mask circuit 19. The mask circuit 19 is supplied with an error signal from the delay circuit 9 at the same time, and if there is an error in the packet data read from the random access memory 5 (not shown), the write enable of the random access memory 23 is masked. Then, writing to the random access memory 23 is prohibited. Reference numeral 21 denotes a latch for matching the data sent from the random access memory 5 with the write enable timing supplied from the mask circuit 19.
[0011]
The random access memory 23 has a capacity of, for example, three frames, and is bank-controlled by the second control circuit 25 so that writing and reading do not cause overtaking. The second control circuit 25 is controlled by the main microcomputer 15 similarly to the first control circuit 13. A recording / reproduction processing circuit 27 is controlled by the second control circuit 25 and supplies a read enable to the random access memory 23 to read data. Since the read data is DIF-transferred data and has already been compression-encoded, no new encoding process is performed. Although not shown, encoding for error detection and correction, formatting for recording, 24/25 modulation, electromagnetic conversion processing, and the like are performed by the recording / reproducing processing circuit 27 and recorded on the magnetic tape 29.
[0012]
Here, the operation of writing the data transferred by DIF into the random access memory 23 will be described with reference to FIGS. FIG. 9 shows a screen image, which is divided into five (i = 0, 1, 2, 3, 4) in the horizontal direction and 10 (j = 0, 1, 2,..., 9) in the vertical direction. . Here, j represents the track number on the recording tape. Each of the divided blocks is called a super macro block (hereinafter referred to as SMB), and its detailed configuration is shown in FIG.
[0013]
In FIG. 10, the SMB is composed of 27 DIF blocks (k = 0, 1, 2,..., 26) excluding ID data. Therefore, the position of each DIF block in FIG. 9 can be represented by a macroblock B (i, j, k). Here, since the DIF-transferred data is in the order of shuffling at the time of compression encoding, for example, {B (2, 2, 0), B (1, 6, 0), B (3 , 8, 0), B (0, 0, 0), B (4, 4, 0)} are written in the black portion of FIG. Hereinafter, {B (2, 2, 1), B (1, 6, 1), B (3, 8, 1), B (0, 0, 1), B (4, 4, 1)}, ... Are accessed in units of 5 DIF blocks. The data thus written is read in the order of track numbers without being shuffled, processed by the recording / reproducing processing circuit 27, and recorded on the magnetic tape 29.
[0014]
On the other hand, FIG. 11 shows the configuration and operation during playback. In FIG. 11, the same components as those in FIG. In FIG. 8, the reproduction data from the magnetic tape 29 is supplied to the recording / reproduction processing circuit 27. The recording / playback processing circuit 27 performs deformatting and 25/24 demodulation, and writes to the random access memory 23 under the control of the second control circuit 25. The decoding processing circuit 31 performs decompression / decoding processing of the reproduced compressed data. As described with reference to FIG. 9, the processing here is performed in units of five consecutive macroblocks obtained in the order in accordance with the same shuffling rules as in the compression / encoding processing. The data subjected to the decompression / decoding process is supplied from the image data output terminal 33 to the external output device. The main microcomputer 15 controls the entire system as described above.
[0015]
[Problems to be solved by the invention]
As described above in the conventional example, the processing unit for DIF transmission / reception data is 6 DIF blocks, whereas the processing unit for decoding is 5 macroblocks (corresponding to 5 DIF blocks). For this reason, when an error is mixed in the transmission path, the following problem occurs due to the write control of the random access memory 23 when the error is detected.
[0016]
FIG. 12 explains the operation in which this problem occurs. i is the DIF reception data or the decoding processing unit for the reproduction data once recorded and then reproduced, and j is the DIF reception data or recording / reproduction data. k is a processing unit of the DIF reception data, m is an error flag obtained as a result of CRC error check of the DIF reception data in units of one packet, and “L” indicates that an error is mixed. Show. In this case, data 0 to 5 is the latest data, and the data in the random access memory 23 is updated. However, since data 6 to 11 is an error packet, writing to the random access memory 23 is prohibited. Old data at least several frames ago remains unupdated. For this reason, when the decoding process is performed in the decoding processing unit i, new data and old data are mixed in the decoding periods Dec1 and Dec2, and the continuity of encoding / decoding is lost, and decoding is performed. This causes the image data to deteriorate significantly.
[0018]
[Means for Solving the Problems]
Receiving apparatus according to the present invention, for example, to detect an error in the packets received and receiving means, by said receiving means for receiving a packet having a plurality of block data including the first data indicating the state of the error correction The first data in the block data included in the packet received by the receiving means is determined in accordance with whether or not an error has occurred in the packet received by the detecting means and the receiving means . Replacement means for replacing the data with the data, and decoding means for performing decoding processing using a number of block data different from the number of block data included in the packet, wherein the decoding means When the second data is included in at least one block data of a plurality of block data necessary for processing, it is necessary for the decoding processing And performing said decoding using the other plurality of block data in place of several block data.
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 shows an embodiment of the present invention. The same components as those in FIG. 8 are denoted by the same reference numerals and the same operations are performed, so that the description thereof is omitted.
First, the STA replacement circuit indicated by 35 is a circuit that best represents the feature of the present invention, and is supplied with DIF reception data from the circuit A, an error flag, and a read enable. Next, the configuration and operation of the STA replacement circuit 35 will be described with reference to FIG. In FIG. 2, a terminal 3051 is a read enable signal terminal supplied via the latch 17 in FIG. 1, and this enable signal is supplied to the edge detection circuit 3503. An edge detection circuit 3503 detects the falling edge of the enable signal and supplies it to the counter 3505. The counter 3505 operates with an internal clock and is reset in synchronization with the falling edge of the enable signal.
[0022]
The decoder 3507 decodes the counter value, outputs a signal indicating the position of the STA in FIG. 6 in the input data string, and supplies the signal to the OR circuit 3511. A terminal 3509 is an input terminal for a transfer error flag signal for each packet, and this flag signal is input to the OR circuit 3511. The OR circuit 3511 is configured to output the “L” signal only when there is a transfer error and the position of the STA in the data string, and the output is supplied to the switch 3515. When the supplied signal is at the “L” level, a pattern indicating that there is an error in the upper 4 bits of bit 7 to bit 4 corresponding to the STA position in the received data 1 byte is selected, for example, 1 byte data in which “1110” is replaced ( The switch 3515 is connected to the b side), and the others (the switch 3515 is connected to the a side) operate so that the received data itself is selected. The selected data is supplied to the data output terminal 3517.
[0023]
FIG. 3 is a timing chart of the operation described in FIG.
In FIG. 3, a is an internal clock. b is an enable signal supplied from the latch 17 of FIG. 1, and is asserted to "L" in units of one packet. c is a falling edge of the enable signal having a width of 1 clock, and is output from the edge detection circuit 3503. d is a counter value of the counter 3505, and 80 bytes of one DIF block are repeated and counted for 6 DIF blocks. e indicates the timing at which the above-described counter value is decoded by the decoder 3507, the STA data position for each DIF block is detected, and "L" is output.
[0024]
f is an error signal, and the presence / absence of an error is determined for each packet. f indicates “H” indicating no error and “L” indicating an error. h represents the data supplied to the data output terminal 3517 in FIG. 2 when the above error occurs, where RP is the STA position, and the error pattern because an error has occurred. STA data indicating
Since the data processed as described above is naturally the same data once recorded and then reproduced, the same processing is performed as the operation of the expansion / decoding processing.
[0025]
Next, the configuration and operation of the data decompression / decryption processing unit will be described with reference to FIG.
In FIG. 4, a terminal 1201 is an input terminal to which data output from the data output terminal 3517 of FIG. 2 is input. This input data is supplied to the decryption processing circuit 1205 and the STA check circuit 1203. Further, the third control circuit 1207 issues a request for reading data to the random access memory 23 of FIG. 1 and supplies the request to the second control circuit 25 of FIG. 1, and arbitration including requests from other processing circuits is performed. Only when the access to the random access memory 23 is supplied, an acknowledge (hereinafter referred to as Ack) is returned. Terminal 1213 is the Ack input terminal.
[0026]
The third control circuit 1207 can know the timing of the STA check because the data arrival timing is constant from the returned Ack. By supplying the STA check timing to the STA check circuit 1203, the STA check is executed. This STA check result is supplied to the decryption processing circuit 1205 and the third control circuit 1207. The decoding processing circuit 1205 stops the operation of the decoding processing circuit 1205 and inputs the next 5 macroblock data when the STA of any of the macroblocks in the consecutive 5 macroblocks has an error pattern. Wait for. If the STA has an error pattern, the third control circuit 1207 regenerates an address indicating the same location of the previous frame or field and issues a request to access the random access memory 23 again. As a result, interpolation is performed with 5 macroblock data of the previous frame or field.
[0027]
Of course, in this embodiment, when there is an error, the STA of the DIF received data is replaced with an error pattern, and then all data is written to the random access memory 23 in units of DIF blocks. However, the same effect as described above can be obtained even if only the STA data of the block data corresponding to the DIF block data in the memory area at the time of writing is rewritten.
[0028]
Further, the data written from the STA replacement circuit 35 to the random access memory 23 can be directly read and decoded without being recorded or reproduced.
[0029]
The functional blocks such as the circuits in FIGS. 1, 2, and 4 may be configured in hardware, or may be configured in a microcomputer system including a CPU, a memory, and the like as illustrated in the drawings. When configured in a microcomputer system, the memory constitutes a storage medium according to the present invention, and a program for executing the processing of each block described above is stored in the storage medium.
As the storage medium, a semiconductor memory such as ROM or RAM, an optical disk, a magneto-optical disk, a magnetic medium, or the like may be used, and these are used as a CD-ROM, a floppy disk, a magnetic tape, a nonvolatile memory card, or the like. May be.
[0030]
As described above, according to the embodiment of the present invention , packet data including information data and error data indicating an error state of the information data is input, a packet data transmission error is detected, and the detection result Accordingly, the error data in the packet data is converted into data of a predetermined error pattern, so that a packet having an error can be known. Thereby, data processing can be performed appropriately. For example, by taking appropriate measures such as not processing a packet with an error, it is possible to reduce degradation of signal quality. This is particularly effective when data processing is performed in units of data length shorter than that of the packet when the packet data is composed of a plurality of predetermined fixed-length block data and each block data includes the error data. is there. Also, for example, when image data is handled as information data, if an error pattern is detected in the input image data, processing is performed with the image data of the previous frame or field period to prevent image deterioration due to transmission errors. You can
[Brief description of the drawings]
FIG. 1 is a block diagram showing an embodiment of the present invention.
FIG. 2 is a configuration diagram of the STA replacement circuit in FIG. 1;
FIG. 3 is a timing chart showing the operation of the STA replacement circuit.
FIG. 4 is a block diagram illustrating a configuration of a decoding processing unit.
FIG. 5 is a block diagram showing a configuration of a dubbing system of a VTR that transmits / receives digital data via a conventional digital interface.
FIG. 6 is a block diagram of block data.
FIG. 7 is a configuration diagram showing a transfer format on a serious bus.
FIG. 8 is a block diagram showing a configuration of a receiving side in the system.
FIG. 9 is a configuration diagram for explaining a shuffling order in a screen image at the time of compression / decompression.
FIG. 10 is a configuration diagram showing a configuration of a super macroblock and a write processing timing of DIF received data.
FIG. 11 is a block diagram illustrating a configuration of a reproduction processing unit in the system.
FIG. 12 is a configuration diagram for explaining a processing unit for transmission / reception data and a processing unit for decoding processing;
[Explanation of symbols]
15 Main microcomputer 23 Random access memory 25 Second control circuit 27 Recording / reproduction processing circuit 29 Magnetic tape 35 STA replacement circuit 1203 STA check circuit 1205 Decoding processing circuit 1207 Third control circuit 3503 Edge detection circuit 3505 Counter 3507 Decoder 3511 OR circuit 3515 switch

Claims (4)

エラー訂正の状態を示す第1のデータを含むブロックデータを複数個有するパケットを受信する受信手段と
前記受信手段により受信された前記パケットのエラーを検出する検出手段と、
前記受信手段により受信された前記パケットにエラーが発生しているか否かに応じて、前記受信手段により受信された前記パケットに含まれるブロックデータ内の前記第1のデータを第2のデータに置換する置換手段と、
前記パケットに含まれるブロックデータの数とは異なる数のブロックデータを用いて復号化処理を行う復号化手段とを有し、
前記復号化手段では、前記復号化処理に必要な複数個のブロックデータの少なくとも1つのブロックデータに前記第2のデータが含まれている場合、前記復号化処理に必要な複数個のブロックデータの代わりに他の複数個のブロックデータを用いて前記復号化処理を行うことを特徴とする受信装置。
Receiving means for receiving a packet having a plurality of block data including first data indicating an error correction state;
Detecting means for detecting an error in the packet received by the receiving means ;
Depending on whether or not an error in the packet received is generated by the receiving means, replacing said first data in the block data included in the packet received by the receiving means to the second data Replacement means to
Decoding means for performing a decoding process using a number of block data different from the number of block data included in the packet;
In the decoding means, when the second data is included in at least one block data of a plurality of block data necessary for the decoding process, a plurality of block data necessary for the decoding process are stored. Instead, the decoding apparatus performs the decoding process using a plurality of other block data.
前記第1のデータは、STAフラグであることを特徴とする請求項1に記載の受信装置。  The receiving apparatus according to claim 1, wherein the first data is a STA flag. 前記第2のデータは、エラーありを示すことを特徴とする請求項1または2に記載の受信装置。It said second data receiving device according to claim 1 or 2, characterized in that indicating that there is error. 前記他の複数個のブロックデータは、他のフレームまたはフィールドのブロックデータであることを特徴とする請求項1から3のいずれか記載の受信装置。Said another plurality of block data, the receiving apparatus according to either the claim 1, wherein 3 in that also other frames is a block data field.
JP25062697A 1997-09-16 1997-09-16 Receiver Expired - Fee Related JP3854697B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25062697A JP3854697B2 (en) 1997-09-16 1997-09-16 Receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25062697A JP3854697B2 (en) 1997-09-16 1997-09-16 Receiver

Publications (2)

Publication Number Publication Date
JPH1188840A JPH1188840A (en) 1999-03-30
JP3854697B2 true JP3854697B2 (en) 2006-12-06

Family

ID=17210660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25062697A Expired - Fee Related JP3854697B2 (en) 1997-09-16 1997-09-16 Receiver

Country Status (1)

Country Link
JP (1) JP3854697B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850342B1 (en) * 2004-12-28 2012-12-05 International Business Machines Corporation INFORMATION RECORDING DEVICE and DATA-FLOW CONTROLLER FOR THE DEVICE
JP5335912B2 (en) * 2008-10-30 2013-11-06 ジーブイビービー ホールディングス エス.エイ.アール.エル. Image encoding apparatus, image encoding method, and image encoding program

Also Published As

Publication number Publication date
JPH1188840A (en) 1999-03-30

Similar Documents

Publication Publication Date Title
US6618396B1 (en) Data transmitting device, data receiving device, and data recording device
KR100811962B1 (en) Recording apparatus and method, reproducing apparatus and method, and recording media thereof
JP3004252B2 (en) Digital recording / reproducing apparatus and method with improved error correction capability
EP0702879B1 (en) Recording and reproducing an mpeg information signal on/from a record carrier
US8472531B2 (en) Error concealment for MPEG decoding with personal video recording functionality
JP3047812B2 (en) Magnetic recording / reproducing device
US7369756B2 (en) Method for decoding non-DV data stored in a DV format
JP3158740B2 (en) Digital video signal transmission method and dubbing method
JP3558983B2 (en) Digital broadcast recording and playback device
JP3854697B2 (en) Receiver
JP2002142192A (en) Apparatus and method for signal processing and for recording
US6289427B1 (en) Controlling a read address or a write address based on the quantity of data read from or written into a memory
JP4004147B2 (en) Data transmitting device, data receiving device, and data recording device
JP4288549B2 (en) Recording apparatus and method, and reproducing apparatus and method
JP3167663B2 (en) Encoding / decoding method of error correction code
JP4075360B2 (en) Data transfer control device and electronic device
JPH04255187A (en) Information recording device
JP2004241885A (en) System, method, and program for information transfer, and program recording medium
JPH1153832A (en) Transmission device, reception device and data processor
JP2696950B2 (en) Data transmission equipment
JP2697290B2 (en) Video signal recording device and playback device, recording method and processing device
KR100241951B1 (en) Method of selecting reproduced track data in d-vhs
JP3282551B2 (en) Digital information recording method and recording apparatus
KR100230009B1 (en) Method for recording track data in a digital vhs
JPH11196373A (en) Information processing unit, information processing method and computer readable storage medium

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040618

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040618

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060613

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060811

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060911

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100915

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100915

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110915

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110915

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120915

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120915

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130915

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees