[go: up one dir, main page]

JPH06350460A - Error correction circuit for compression code - Google Patents

Error correction circuit for compression code

Info

Publication number
JPH06350460A
JPH06350460A JP16639593A JP16639593A JPH06350460A JP H06350460 A JPH06350460 A JP H06350460A JP 16639593 A JP16639593 A JP 16639593A JP 16639593 A JP16639593 A JP 16639593A JP H06350460 A JPH06350460 A JP H06350460A
Authority
JP
Japan
Prior art keywords
code
error correction
circuit
compression
compressed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP16639593A
Other languages
Japanese (ja)
Other versions
JP2956421B2 (en
Inventor
Kazuya Yamada
和也 山田
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP16639593A priority Critical patent/JP2956421B2/en
Publication of JPH06350460A publication Critical patent/JPH06350460A/en
Application granted granted Critical
Publication of JP2956421B2 publication Critical patent/JP2956421B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Error Detection And Correction (AREA)

Abstract

PURPOSE:To provide an error correction circuit for compression code which prevents the demodulation infeasibility of a compressed code from spreading over a hierarchy even when the incorrectable state of an error correction code due to an error occurs by taking the synchronism of the compressed code with the error correction code when the compressed code is transmitted. CONSTITUTION:This circuit is provided with a synchronizing signal detection circuit 3 which inputs the compression code from a compressed code generation circuit 1 via a FIFO 2 and detects the synchronizing signal of the compressed code, a counter circuit 4 which counts the code quantity of the compressed code, a data stuffing circuit 5 which compares the code quantity at every hierarchy with that of one code word of the error correction code based on the synchronizing signal and the code quantity and inserts dummy data so as to set the code quantity at every hierarchy to a value of integer times the code quantity of one code word of the error correction code, and an error correction code generating circuit 6 which generates parity sequentially on a code inputted sequentially via the data stuffing circuit 5 outputs by generating the error correction code.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、圧縮符号を伝送する際
に、伝送エラーに対応するために構成するエラー訂正符
号と圧縮符号との同期を得るための圧縮符号用エラー訂
正回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compression code error correction circuit for obtaining synchronization between an error correction code and a compression code which are configured to cope with a transmission error when transmitting a compression code.

【0002】[0002]

【従来の技術】従来より、圧縮符号に用いられている符
号化方法として、VLC(Variable Length Coding)符号
がある。この符号化方法の特徴は、事象の発生確率から
符号長を決定しているので、符号の持つエントロピーが
高くなり、圧縮信号に最適である点にある。しかし、V
LCによる符号(以下VLC符号という)は実際の情報
量と符号化された符号量、例えば、画像で言えばフレー
ム当りの画素数と符号量との間に相関性がない。このた
め、圧縮された符号に対して、エラー訂正符号を構成し
た場合、圧縮された符号とエラー訂正符号との間に符号
としての同期を取ることができず、実際にエラー訂正を
行う際に不都合が生じる。
2. Description of the Related Art Conventionally, there is a VLC (Variable Length Coding) code as an encoding method used for a compression code. The characteristic of this encoding method is that the code length is determined from the probability of occurrence of an event, so the entropy of the code is high and it is optimal for compressed signals. But V
The code by LC (hereinafter referred to as VLC code) has no correlation between the actual information amount and the encoded code amount, for example, in terms of an image, the number of pixels per frame and the code amount. For this reason, when an error correction code is formed for a compressed code, it is not possible to synchronize the compressed code and the error correction code as a code, and when actually performing error correction. Inconvenience occurs.

【0003】かかる圧縮符号とそのエラー訂正符号のフ
ォーマットについて説明する。図3は上述の圧縮符号の
フォーマットを示すものである。圧縮符号はMPEG(M
otion Picture Expert Group)規格のフォーマットで、
画像フォーマットを示している。圧縮符号は、GOP(G
roup of Picture)・ピクチャー・スライスの各階層毎に
ヘッダ(同期信号)とそれに続くVLC符号から構成さ
れており、各階層のデータ長は一定でない。
The formats of such a compression code and its error correction code will be described. FIG. 3 shows the format of the above-mentioned compression code. The compression code is MPEG (M
otion Picture Expert Group) standard format,
The image format is shown. The compression code is GOP (G
Each layer of roup of picture) picture slice is composed of a header (synchronization signal) and the following VLC code, and the data length of each layer is not constant.

【0004】最上層としてのGOP階層の情報は、必要
に応じてアプリケーションの要求に応じて挿入されるも
ので、図3(a)に示されるように、GOPヘッダとパ
ラメータデータ及びピクチャー階層のデータが設けられ
ている。各ピクチャーP0 、P1 、P2 、・・・、Pn
はヘッダとそのパラメータデータから構成されており、
ピクチャーヘッダに続くピクチャーパラメータの中にピ
クチャーの再生順序を示すリファレンス番号が存在し、
このGOP階層としては、アプリケーションの要求によ
り決められる数を基に1GOPにグループ化され、この
1GOPが繰り返されるようになっている。
The information of the GOP layer as the uppermost layer is inserted according to the request of the application as needed, and as shown in FIG. 3A, the GOP header, the parameter data and the data of the picture layer. Is provided. Each picture P 0 , P 1 , P 2 , ..., P n
Consists of a header and its parameter data,
There is a reference number that indicates the playback order of pictures in the picture parameter following the picture header,
This GOP layer is grouped into 1 GOP based on the number determined by the application request, and this 1 GOP is repeated.

【0005】また、ピクチャー階層としては、図3
(b)に示されるように、各画面は、縦方向に沿って設
けられるヘッダ(01)、(02)、・・・、(0F)
の15スライスが1ピクチャーとして構成され、各ヘッ
ダのパラメータデータはスキャン方向に沿って設けら
れ、このスライスヘッダには連続的な順番を示す番号が
存在する。さらに、最下層のスライス階層は、図3
(c)に示されるように、画面上において8ラインを1
グループとするスライスという単位で構成され、32ビ
ットのヘッダとVLC符号からなる。
The picture hierarchy is shown in FIG.
As shown in (b), each screen has headers (01), (02), ..., (0F) provided along the vertical direction.
15 slices of 1 are configured as one picture, the parameter data of each header is provided along the scanning direction, and the slice header has a number indicating a continuous order. Furthermore, the slice hierarchy of the lowest layer is as shown in FIG.
As shown in (c), 1 line is 8 lines on the screen.
It is configured in a unit called a slice as a group, and includes a 32-bit header and a VLC code.

【0006】一方、エラー訂正符号は、図2(b)に示
すフォーマットとなっている。エラー訂正符号は、伝送
すべきデータと、そのデータから生成されるパリティか
ら構成され、エラー訂正符号におけるデータ長とパリテ
ィの長さ、すなわち符号長Tは一定であり、可変にする
ことは難しい。例えば、上述のMPEG規格のうち、ス
ライス階層のフォーマットにおける圧縮符号、すなわ
ち、ヘッダとVLC符号からなる各スライス(N0) 、
(N1)、・・・の符号長T1、T2、・・・は、図2
(a)に示すようにスライス毎に異なるのに対し、エラ
ー訂正符号の符号長Tは、図2(b)に示すように一定
である。
On the other hand, the error correction code has the format shown in FIG. The error correction code is composed of data to be transmitted and a parity generated from the data, and the data length and the length of the parity in the error correction code, that is, the code length T is constant, and it is difficult to make it variable. For example, in the above-mentioned MPEG standard, a compression code in a slice hierarchy format, that is, each slice (N 0 ) consisting of a header and a VLC code,
The code lengths T 1 , T 2 , ... Of (N 1 ), ...
While it is different for each slice as shown in (a), the code length T of the error correction code is constant as shown in FIG. 2 (b).

【0007】[0007]

【発明が解決しようとする課題】従って、上述した可変
長符号の圧縮符号に対して固定長符号のエラー訂正符号
構成すると、図2(c)、(e)に示すようになる。図
2(c)に示すように、スライス(N0) のヘッダH0
位置とエラー訂正符号の符号後の先頭とを合わせ、所定
の適当なデータ長(所定の符号長T−パリティの長さ)
でエラー訂正符号を構成すると、図2(c)に示すよう
になり、各ヘッダ(同期信号)H0、H1・・・は必ずし
もエラー訂正符号ERR(N0)、ERR(N1)、・・・
の先頭には来ない。このため、仮にエラー訂正符号ER
R(N 1) が復号器側で訂正不能になり、全てのデータ
がエラーと判定された場合、エラーによる障害はスライ
ス(N0) とスライス(N1) に拡散する。このため、
1つのエラー訂正符号の訂正不能により2つのスライス
のデータが失われる。
Therefore, the above-mentioned variable
Error correction code of fixed length code to compressed code of long code
When configured, it becomes as shown in FIGS. 2 (c) and 2 (e). Figure
2 (c), the slice (N0) Header H0 of
Align the position with the beginning of the error correction code
Appropriate data length (predetermined code length T-parity length)
When the error correction code is constructed with, as shown in FIG.
And each header (sync signal) H0, H1...
Error correction code ERR (N0), ERR (N1), ...
Does not come to the beginning of. Therefore, if the error correction code ER
R (N 1) became uncorrectable on the decoder side and all data
If the error is determined to be an error, the failure due to the error is
Su (N0) And slice (N1). For this reason,
Two slices due to uncorrectable error correction code
Data is lost.

【0008】また、仮に図2(e)に示すように、例え
ばエラー訂正符号のパリティを最後尾に位置させてスラ
イス(N0) の符号長とエラー訂正符号の符号長とを合
わせるようにすると、圧縮符号は各スライス毎にその符
号長が違うので、スライス(N1) 以降の圧縮符号とエ
ラー訂正符号のフォーマットは一致せず、符号長として
同期を取ることができない。すなわち、例えばヘッダ
(同期信号)H2 はエラー訂正符号ERR(N2)の先頭
には来なく、このため、前述した図2(c)と同様に、
エラー訂正符号ERR(N2) が復号器側で訂正不能に
なり、全てのデータがエラーと判定された場合、エラー
による障害はスライス(N1) とスライス(N2) に拡
散することになり、1つのエラー訂正符号の訂正不能に
より、2つのスライスのデータが失われる。
As shown in FIG. 2 (e), if the parity of the error correction code is located at the end so that the code length of the slice (N 0 ) matches the code length of the error correction code. Since the compression code has a different code length for each slice, the formats of the compression code after the slice (N 1 ) and the error correction code do not match, and the code length cannot be synchronized. That is, for example, the header (synchronization signal) H 2 does not come to the beginning of the error correction code ERR (N 2 ), and therefore, as in the case of FIG.
If the error correction code ERR (N 2 ) becomes uncorrectable on the decoder side and all the data is judged to be in error, the fault due to the error spreads to the slice (N 1 ) and the slice (N 2 ). The data of two slices is lost due to the uncorrectability of one error correction code.

【0009】上述した説明は、スライス階層において検
討したものであるが、スライス階層とピクチャー階層及
びGOP階層の境目で構成されるエラー訂正符号で同じ
ことが生じた場合、エラーの障害は階層を超えて拡がる
ことになる。
The above description has been made in consideration of the slice hierarchy. However, when the same occurs in the error correction code formed at the boundary between the slice hierarchy, the picture hierarchy and the GOP hierarchy, the error failure exceeds the hierarchy. Will be expanded.

【0010】本発明は、上述した点に鑑みなされたもの
で、圧縮符号とエラー訂正符号の同期をとり、エラー訂
正符号がエラーにより訂正不能な状態が生じても圧縮符
号の復号不能が階層を超えて拡がらないようにすること
ができる圧縮符号用エラー訂正回路を得ることをを目的
とする。
The present invention has been made in view of the above-mentioned points, and synchronizes the compression code and the error correction code, and even if the error correction code is uncorrectable due to an error, the decoding of the compression code becomes impossible. It is an object of the present invention to obtain an error correction circuit for a compression code that can prevent it from spreading beyond.

【0011】[0011]

【課題を解決するための手段】本発明に係る圧縮符号用
エラー訂正回路は、圧縮符号の同期信号を検出する同期
信号検出回路と、前記圧縮符号の符号量をカウントする
カウンター回路と、前記同期信号検出回路から出力され
る同期信号と前記カウンター回路から出力される符号量
とに基づいて前記圧縮符号にその階層に応じた所定量の
ダミーデータを挿入するデータスタッフィング回路と、
前記データスタッフィング回路から出力される符号につ
いて順次パリティを生成してエラー訂正符号を生成し出
力するエラー訂正符号生成回路とを有するものである。
A compression code error correction circuit according to the present invention includes a synchronization signal detection circuit for detecting a synchronization signal of a compression code, a counter circuit for counting the code amount of the compression code, and the synchronization circuit. A data stuffing circuit that inserts a predetermined amount of dummy data in the compressed code according to the layer based on the synchronization signal output from the signal detection circuit and the code amount output from the counter circuit,
An error correction code generation circuit that sequentially generates parity for the code output from the data stuffing circuit to generate and output an error correction code.

【0012】[0012]

【作用】本発明に係る圧縮符号用エラー訂正回路におい
ては、データスタッフィング回路により、圧縮符号の同
期信号を検出する同期信号検出回路から出力される同期
信号と、圧縮符号の符号量をカウントするカウンター回
路から出力される符号量とに基づいて、前記圧縮符号に
その階層に応じた所定量のダミーデータが挿入され、エ
ラー訂正符号生成回路によって、前記データスタッフィ
ング回路から出力される符号について順次パリティを生
成してエラー訂正符号を生成し出力することにより、圧
縮符号の各階層の符号量とエラー訂正符号の符号量との
間で、符号としての同期を取り、圧縮符号の同期信号を
必ずエラー訂正符号の先頭に位置するようにしている。
In the compressed code error correction circuit according to the present invention, the data stuffing circuit is used to count the sync signal output from the sync signal detection circuit for detecting the sync signal of the compressed code and the counter for counting the code amount of the compressed code. Based on the code amount output from the circuit, a predetermined amount of dummy data corresponding to the layer is inserted into the compression code, and the error correction code generation circuit sequentially generates parity for the code output from the data stuffing circuit. By generating and outputting the error correction code, the code amount of each layer of the compression code and the code amount of the error correction code are synchronized, and the synchronization signal of the compression code is always error corrected. It is located at the beginning of the code.

【0013】[0013]

【実施例】以下、本発明の一実施例を図に基づいて説明
する。図1は本実施例に係る圧縮符号用エラー訂正回路
を示すブロック図である。図示構成は、圧縮信号を符号
化する回路の後段に続く回路であり、図示構成のエラー
訂正回路の後には信号の伝送系または情報記録系が続
く。また、入力される圧縮符号は、MPEGフォーマッ
トとして標準化されているものとし、実際には、VLC
符号を用いたシステムに応用できるようにしている。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a compression code error correction circuit according to the present embodiment. The illustrated configuration is a circuit that follows the circuit that encodes a compressed signal, and the error correction circuit of the illustrated configuration is followed by a signal transmission system or an information recording system. The input compression code is assumed to be standardized as an MPEG format.
It is designed to be applied to a system using codes.

【0014】図1において、本発明の構成部分の前段と
しての圧縮符号生成回路1により圧縮符号が生成され
る。すなわち、図1中一点鎖線で囲まれた部分がエラー
訂正回路に相当する。FIFO(first-in first-out)
2は圧縮符号生成回路1から入力された圧縮符号をその
記憶順に順次送出する。同期信号検出回路3はFIFO
2を介して入力される圧縮符号の同期信号を検出する。
カウンター回路4は同様にFIFO2を介して入力され
る圧縮符号の符号量をカウントし、前記同期信号検出回
路3により圧縮符号は階層毎に管理され、カウンター回
路4により各階層毎の符号量が検出される。
In FIG. 1, a compression code is generated by a compression code generation circuit 1 as a preceding stage of the constituent parts of the present invention. That is, the portion surrounded by the alternate long and short dash line in FIG. 1 corresponds to the error correction circuit. FIFO (first-in first-out)
Reference numeral 2 sequentially outputs the compression code input from the compression code generation circuit 1 in the order of storage. The sync signal detection circuit 3 is a FIFO
The sync signal of the compression code input via 2 is detected.
The counter circuit 4 similarly counts the code amount of the compressed code input via the FIFO 2, the compressed signal is managed by the synchronization signal detection circuit 3 for each layer, and the counter circuit 4 detects the code amount for each layer. To be done.

【0015】また、データスタッフィング回路5は前記
同期信号検出回路3から出力される同期信号と前記カウ
ンター回路4から出力される符号量とに基づいて圧縮符
号にその階層に応じた所定量のダミーデータを挿入する
もので、検出された階層毎の符号量と予め与えられるエ
ラー訂正符号の1符号語の符号量とを比較して、例えば
階層毎の符号量をエラー訂正符号の1符号語の符号量の
整数倍になるように、圧縮フォーマットに勘案して復号
の際問題とならないダミーデータを必要数挿入する。
The data stuffing circuit 5 is a compression code based on the sync signal output from the sync signal detection circuit 3 and the code amount output from the counter circuit 4, and a predetermined amount of dummy data corresponding to the hierarchy. By comparing the detected code amount of each layer with the code amount of one code word of the error correction code that is given in advance, and determines the code amount of each layer by the code of one code word of the error correction code. Insert the necessary number of dummy data that does not pose a problem in decoding considering the compression format so that it becomes an integer multiple of the amount.

【0016】さらに、エラー訂正符号生成回路6は前記
データスタッフィング回路5を介して順次入力される圧
縮符号に対し先頭から順次パリティを生成してエラー訂
正符号を生成し出力する。このエラー訂正符号生成回路
6から出力されるエラー訂正符号と圧縮符号の各階層の
符号量との間では、ダミーデータを挿入するため符号と
しての同期が取られ、このため、圧縮符号の同期信号
は、必ずエラー訂正符号の先頭に位置するようになる。
Further, the error correction code generation circuit 6 sequentially generates parity from the head for the compression code sequentially input through the data stuffing circuit 5 to generate and output the error correction code. The error correction code output from the error correction code generation circuit 6 and the code amount of each layer of the compression code are synchronized as a code for inserting dummy data. Therefore, the synchronization signal of the compression code is generated. Will always be located at the beginning of the error correction code.

【0017】図1の構成に係る動作をさらに詳述する
と、同期信号検出回路3は、FIFO2を介して入力さ
れた圧縮信号から階層毎に信号を分ける同期信号を検出
する。この同期信号は、実際にVLC符号を復号しなく
ても検出できる信号である。一方、カウンター回路4
は、前段の同期信号検出回路3によって検出される同期
信号に基づき階層毎にリセットされ、各階層の符号量を
検出する。
The operation according to the configuration of FIG. 1 will be described in further detail. The sync signal detection circuit 3 detects a sync signal which divides the signal for each layer from the compressed signal input via the FIFO 2. This synchronization signal is a signal that can be detected without actually decoding the VLC code. On the other hand, counter circuit 4
Is reset for each layer based on the synchronization signal detected by the synchronization signal detection circuit 3 in the previous stage, and detects the code amount of each layer.

【0018】前記同期信号検出回路3からの同期信号と
カウンター回路4からの符号量とを入力するデータスタ
ッフィング回路5では、検出された符号量とエラー訂正
符号の1符号語の符号量とを比較して、各階層の符号量
がエラー訂正符号の符号量の整数倍になるようにダミー
データを挿入する。このダミーデータとしては、復号の
際にVLC復号器に対して影響しないように、MPEG
フォーマットの規格に基づいたデータを挿入する。
In the data stuffing circuit 5 to which the sync signal from the sync signal detection circuit 3 and the code amount from the counter circuit 4 are input, the detected code amount is compared with the code amount of one code word of the error correction code. Then, dummy data is inserted so that the code amount of each layer is an integral multiple of the code amount of the error correction code. This dummy data is MPEG so that it will not affect the VLC decoder during decoding.
Insert data based on the format standard.

【0019】そして、エラー訂正符号生成回路6におい
て、前記データスタッフィング回路5を介して順次入力
される圧縮符号に対し先頭から順次バリティを生成して
エラー訂正符号を生成し出力する。このエラー訂正符号
生成回路6から出力されるエラー訂正符号と圧縮符号の
各階層の符号量との間では、ダミーデータを挿入するた
め符号としての同期が取られ、圧縮符号の同期信号は必
ずエラー訂正符号の先頭に位置するようになり、このた
め復号器側ではエラー訂正を行い、パリティを削除した
データに対してダミーデータの抜き取り処理を行わなく
ても、圧縮符号の復号器はダミーデータを含んだ圧縮符
号を復号することができる。
In the error correction code generation circuit 6, the compression codes sequentially input via the data stuffing circuit 5 are sequentially generated from the beginning to generate and output an error correction code. Between the error correction code output from the error correction code generation circuit 6 and the code amount of each layer of the compression code, synchronization is taken as a code because dummy data is inserted, and the synchronization signal of the compression code always has an error. It comes to be located at the beginning of the correction code.Therefore, the decoder of the compression code performs error correction on the decoder side and extracts the dummy data from the data from which the parity is deleted, even if the dummy data is not extracted. The included compression code can be decoded.

【0020】今、圧縮符号の各階層の符号量が一定でな
いものとする。例えば図2(a)に示すように、スライ
ス階層の符号長T0、T1、T2 ・・・が各スライス毎に
異なるとする。このままでは、前述した図2(c)、
(d)に示すように、スライス(N1)、(N2)、
(N3)のヘッダH1、H2、H3 は必ずしもエラー訂正
符号の先頭位置に来なく、エラー訂正符号との間で符号
としての同期を取ることができない。
Now, it is assumed that the code amount of each layer of the compression code is not constant. For example, as shown in FIG. 2A, it is assumed that the code lengths T 0 , T 1 , T 2, ... Of the slice hierarchy are different for each slice. In this state, as shown in FIG.
As shown in (d), slices (N 1 ), (N 2 ),
The headers H 1 , H 2 , and H 3 of (N 3 ) do not always come to the head position of the error correction code, and the code cannot be synchronized with the error correction code.

【0021】しかし、本実施例においては、同期信号検
出回路3からの情報で同期信号(ヘッダ)を基にした圧
縮信号の「切れ目」と、カウンター回路4からの出力で
各階層の符号量は検出されているので、データスタッフ
ィング回路5により、各階層毎にダミーデータをスタッ
フィングし、各階層の圧縮信号の符号量がエラー訂正符
号の符号量の整数倍になるようにしている。
However, in the present embodiment, the "quantity" of the compressed signal based on the synchronization signal (header) based on the information from the synchronization signal detection circuit 3 and the output from the counter circuit 4 give the code amount of each layer. Since it has been detected, the data stuffing circuit 5 stuffs the dummy data for each layer so that the code amount of the compressed signal of each layer becomes an integral multiple of the code amount of the error correction code.

【0022】すなわち、スライス階層の圧縮符号につい
て、スタッフィング(挿入)されてない図2(c)と比
較して示す図2(d)に示すように、エラー訂正符号E
RR(N1) とERR(N6) との位置に、それぞれス
ライス(N0) とスライス(N2) の符号量をエラー訂
正符号の符号量(符号長T)の整数倍にすべく、S0
2 バイトのダミーデータをスタッフィングすることに
より、圧縮符号のヘッダH0、H1、H2、H3 は必ずエラ
ー訂正符号の先頭位置に来ることになり、圧縮符号とエ
ラー訂正符号との間で符号としての同期が取れる。
That is, regarding the compression code of the slice hierarchy, as shown in FIG. 2D, which is shown in comparison with FIG. 2C in which stuffing (insertion) is not performed, the error correction code E
At the positions of RR (N 1 ) and ERR (N 6 ), the code amounts of the slice (N 0 ) and the slice (N 2 ) are set to integer multiples of the code amount (code length T) of the error correction code, respectively. By stuffing the dummy data of S 0 and S 2 bytes, the headers H 0 , H 1 , H 2 and H 3 of the compression code always come to the head position of the error correction code, and the compression code and the error correction code The code can be synchronized with and.

【0023】ここで、スタッフィングするデータ量は、
以下に示す式により求まる。スライス(N)の符号長
(バイト数)をnとし、エラー訂正符号の符号長をeと
するとき、挿入すべきダミーデータのデータ長Sは、 S=e−(n mod e) if(n mod e) then S=0 なお、(n mod e)の演算式はnをeで割った余
りで、余りがないときは、データ長Sは0であることを
意味する。で求まる。
Here, the amount of data to be stuffed is
It is obtained by the formula shown below. When the code length (the number of bytes) of the slice (N) is n and the code length of the error correction code is e, the data length S of the dummy data to be inserted is S = e- (n mod e) if (n mod e) then S = 0 The arithmetic expression of (n mod e) is the remainder obtained by dividing n by e. When there is no remainder, it means that the data length S is 0. Can be obtained with.

【0024】このように、Sで示す量のダミーデータを
スタッフィングすることにより、圧縮符号とエラー訂正
符号の符号としての同期を取ることができ、これによ
り、あるエラー訂正符号が訂正不能になっても、それを
含む圧縮符号はエラーを含むが、圧縮符号の階層を超え
てエラーが拡散することを防ぐことができる。例えば、
ERR(N1) がエラーにより訂正不能になっても、ス
ライス(N0)のデータにエラーが生じるだけで、従来
例の様にスライス(N1) に拡がることはない。
In this way, by stuffing the dummy data of the amount indicated by S, the compression code and the error correction code can be synchronized with each other, whereby a certain error correction code becomes uncorrectable. Also, although the compression code including it includes an error, it is possible to prevent the error from spreading beyond the hierarchy of the compression code. For example,
Even if ERR (N 1 ) becomes uncorrectable due to an error, an error occurs only in the data of the slice (N 0 ) and does not extend to the slice (N 1 ) as in the conventional example.

【0025】従って、上記実施例によれば、圧縮符号の
各階層の符号量とエラー訂正符号の符号量との間では、
ダミーデータを挿入するため、符号としての同期を取る
ことができ、圧縮符号の同期信号は、必ずエラー訂正符
号の先頭に位置するようになるので、圧縮符号に対する
エラー訂正符号において、データエラーが生じても圧縮
符号の階層を超えてエラーが拡散することはない。な
お、実施例のエラー訂正符号の生成は、MPEG規格の
フォーマットに限らず、同期信号を持ち各データ長が異
なるシステムに広く応用することができるのは勿論であ
る。
Therefore, according to the above embodiment, between the code amount of each layer of the compression code and the code amount of the error correction code,
Since dummy data is inserted, synchronization can be achieved as a code, and the synchronization signal of the compression code is always located at the beginning of the error correction code, so a data error occurs in the error correction code for the compression code. However, the error does not spread beyond the compression code hierarchy. The error correction code generation according to the embodiment is not limited to the MPEG standard format, and can of course be widely applied to systems having a synchronization signal and having different data lengths.

【0026】[0026]

【発明の効果】以上説明したように、本発明によれば圧
縮符号の同期信号と符号量とに基づいて圧縮符号にその
階層に応じた所定量のダミーデータを挿入してエラー訂
正符号を生成するようにしたので、圧縮符号の同期信号
をエラー訂正符号の先頭に位置させて圧縮符号の各階層
の符号量とエラー訂正符号の符号量との間で符号として
の同期を取ることができ、データエラーが生じても圧縮
符号の階層を超えてエラーが拡散することはないという
効果を奏する。
As described above, according to the present invention, an error correction code is generated by inserting a predetermined amount of dummy data according to the hierarchy into the compression code based on the synchronization signal of the compression code and the code amount. As a result, the synchronization signal of the compression code can be positioned at the head of the error correction code, and the code amount of each layer of the compression code and the code amount of the error correction code can be synchronized as a code. Even if a data error occurs, there is an effect that the error does not spread beyond the hierarchy of the compression code.

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

【図1】本発明の一実施例に係る圧縮符号用エラー訂正
回路を示す構成図である。
FIG. 1 is a configuration diagram showing an error correction circuit for a compression code according to an embodiment of the present invention.

【図2】圧縮符号及びエラー訂正符号のフォーマットと
圧縮符号に対するエラー訂正符号生成時の説明図であ
る。
FIG. 2 is an explanatory diagram of formats of a compression code and an error correction code and an error correction code when the compression code is generated.

【図3】MPEG規格による画像圧縮符号のフォーマッ
ト図である。
FIG. 3 is a format diagram of an image compression code according to the MPEG standard.

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

3 同期信号検出回路 4 カウンター回路 5 データスタッフィング回路 6 エラー訂正符号生成回路 3 sync signal detection circuit 4 counter circuit 5 data stuffing circuit 6 error correction code generation circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 圧縮符号の同期信号を検出する同期信号
検出回路と、前記圧縮符号の符号量をカウントするカウ
ンター回路と、前記同期信号検出回路から出力される同
期信号と前記カウンター回路から出力される符号量とに
基づいて前記圧縮符号にその階層に応じた所定量のダミ
ーデータを挿入するデータスタッフィング回路と、前記
データスタッフィング回路から出力される符号について
順次パリティを生成してエラー訂正符号を生成し出力す
るエラー訂正符号生成回路とを有する圧縮符号用エラー
訂正回路。
1. A sync signal detection circuit for detecting a sync signal of a compressed code, a counter circuit for counting the code amount of the compressed code, a sync signal output from the sync signal detection circuit, and an output from the counter circuit. A data stuffing circuit that inserts a predetermined amount of dummy data into the compressed code according to the layer based on the code amount, and an error correction code by sequentially generating parity for the code output from the data stuffing circuit. And an error correction code generation circuit for outputting the compressed error code.
JP16639593A 1993-06-11 1993-06-11 Error correction circuit for compression code Expired - Lifetime JP2956421B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16639593A JP2956421B2 (en) 1993-06-11 1993-06-11 Error correction circuit for compression code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16639593A JP2956421B2 (en) 1993-06-11 1993-06-11 Error correction circuit for compression code

Publications (2)

Publication Number Publication Date
JPH06350460A true JPH06350460A (en) 1994-12-22
JP2956421B2 JP2956421B2 (en) 1999-10-04

Family

ID=15830628

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16639593A Expired - Lifetime JP2956421B2 (en) 1993-06-11 1993-06-11 Error correction circuit for compression code

Country Status (1)

Country Link
JP (1) JP2956421B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001063938A1 (en) * 2000-02-28 2001-08-30 Kabushiki Kaisha Toshiba Video encoding apparatus and video encoding method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001063938A1 (en) * 2000-02-28 2001-08-30 Kabushiki Kaisha Toshiba Video encoding apparatus and video encoding method
US6819712B2 (en) 2000-02-28 2004-11-16 Kabushiki Kaisha Toshiba Video encoding apparatus and video encoding method

Also Published As

Publication number Publication date
JP2956421B2 (en) 1999-10-04

Similar Documents

Publication Publication Date Title
US7051247B2 (en) Coding system and decoding system
US5742623A (en) Error detection and recovery for high rate isochronous data in MPEG-2 data streams
US7023926B2 (en) Stream converting apparatus that converts data stream of first format possibly containing error into correct data stream of second format
US5396497A (en) Synchronization of audio/video information
US5903324A (en) Transport processor interface for a digital television system
US6081650A (en) Transport processor interface and video recorder/playback apparatus in a field structured datastream suitable for conveying television information
EP0618728B1 (en) Synchronization of audio/video information
US7274862B2 (en) Information processing apparatus
EP0653889A2 (en) Transport apparatus for compressed video signal
CA2249540C (en) Coding system and decoding system
EP0768010B1 (en) Transport processor interface and video recorder/playback apparatus for a digital television system
EP0753954B1 (en) Transmission of high rate isochronous data in MPEG-2 data streams
JPH06350460A (en) Error correction circuit for compression code
KR100449183B1 (en) A method for handling errors in isochronous data, and a decoder for receiving and processing the errors
JPH10178419A (en) Error correcting method and its device
KR0181082B1 (en) PT encoding system of MPEG system
US6970514B1 (en) Signal processing device, signal processing method, decoding device, decoding method and recording medium
US6684360B1 (en) Transmission apparatus, reception apparatus, transmission method and reception method, each for efficiently transmitting error information
GB2225519A (en) Teletext data encoding/decoding method
EP1225770B1 (en) Error detection and recovery for high rate isochronous data in mpeg-2 data streams
MXPA97003396A (en) Detection and recovery of error for high speed isocron data in mpe data currents

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990622

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

Free format text: PAYMENT UNTIL: 20080723

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080723

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090723

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090723

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100723

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110723

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120723

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20120723

Year of fee payment: 13

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20120723

Year of fee payment: 13

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20120723

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20130723

Year of fee payment: 14

EXPY Cancellation because of completion of term