JPH0723384A - Encoding and decoding device - Google Patents
Encoding and decoding deviceInfo
- Publication number
- JPH0723384A JPH0723384A JP14589693A JP14589693A JPH0723384A JP H0723384 A JPH0723384 A JP H0723384A JP 14589693 A JP14589693 A JP 14589693A JP 14589693 A JP14589693 A JP 14589693A JP H0723384 A JPH0723384 A JP H0723384A
- Authority
- JP
- Japan
- Prior art keywords
- information
- error
- segment
- data area
- decoding
- 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
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Image Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
(57)【要約】
【目的】 記録再生あるいは送受信の単位であるシンク
ブロック内に誤りが生じても、所定の範囲内に誤り伝播
を抑え、復号画像の画質劣化が少ない符号化および復号
化装置を提供することを目的とする。
【構成】 入力映像信号を可変長符号化する符号化手段
2の出力をシンクブロック毎に分割し、そのシンクブロ
ック内にセグメントの境界が存在する場合に、その位置
を示す位置情報を付加する分割手段3と、付加された位
置情報の数をヘッダ情報内に付加するヘッダ情報付加手
段4とを有し、復号時には、位置情報と位置情報内およ
びヘッダ情報内の誤り情報とにより、誤りの存在するセ
グメントを検出し、そのセグメントの復号を禁止する復
号化禁止情報を出力する合成手段11を有することで、
誤り伝播を1セグメント以内に抑える。
(57) [Abstract] [Purpose] Even if an error occurs in a sync block which is a unit of recording / reproducing or transmission / reception, the error propagation is suppressed within a predetermined range, and the image quality of a decoded image is less deteriorated. The purpose is to provide. [Structure] An output of a coding means 2 for variable-length coding an input video signal is divided for each sync block, and when a boundary of a segment exists in the sync block, position information indicating its position is added. It has a means 3 and a header information adding means 4 for adding the number of the added position information to the header information, and at the time of decoding, the presence of an error is caused by the position information and the error information in the position information and the header information. By including the synthesizing unit 11 that detects the segment to be decoded and outputs the decoding prohibition information that prohibits the decoding of the segment,
Reduce error propagation to within 1 segment.
Description
【0001】[0001]
【産業上の利用分野】本発明は、映像信号を可変長符号
化を含む符号化を行い、記録再生あるいは送受信する際
に用いられる符号化および復号化装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoding / decoding device used for recording / reproducing or transmitting / receiving a video signal by performing encoding including variable length encoding.
【0002】[0002]
【従来の技術】映像信号を符号化し、記録再生あるいは
送受信する符号化および復号化装置において、その符号
化手段として、アダーマル変換や離散コサイン変換(D
CT)などの直交変換を用い、さらに、直交変換して得
られたデータの値の発生頻度に応じて符号長の異なる符
号語を割り当てる可変長符号化を用いる方法がある。2. Description of the Related Art In a coding / decoding apparatus for coding a video signal and recording / reproducing or transmitting / receiving the signal, an adheral transform or a discrete cosine transform (D
For example, there is a method using an orthogonal transform such as CT) and variable length coding that assigns codewords having different code lengths according to the occurrence frequency of the value of the data obtained by the orthogonal transform.
【0003】符号化および復号化装置の従来例として、
直交変換符号化によって削減されたデータを可変長符号
化して得た可変長符号化データを磁気記録媒体上に記録
する場合について説明する。磁気記録媒体上の記録再生
時における最小同期単位としての一定のデータ量から成
るシンクブロックに、可変長符号化データを分割して記
録する場合を示す。As a conventional example of the encoding and decoding device,
A case will be described in which variable length coded data obtained by variable length coding the data reduced by the orthogonal transform coding is recorded on the magnetic recording medium. A case where variable length coded data is divided and recorded in a sync block having a fixed amount of data as a minimum synchronization unit at the time of recording / reproducing on a magnetic recording medium is shown.
【0004】図8に上記シンクブロックの内のデータ配
置を示す。同図において、シンクブロックは、同期信
号、シンクブロックのトラック上の位置などを記録する
識別情報、ヘッダ情報、可変長符号化データを記録する
データ領域、シンクブロック内の誤り訂正用の符号語で
ある誤り訂正符号により構成される。今、可変長符号化
データを所定のブロック分を集めた記録制御単位をセグ
メントとする。各セグメントの符号量は、入力映像信号
により、その符号量が異なる。よって、このセグメント
とシンクブロックとは非同期であり、シンクブロック内
に何番目のセグメントが記録されているかの情報が必要
となる。そのために、ヘッダ情報に、そのシンクブロッ
クにおいてセグメントの先頭から記録が開始される最初
のセグメント(以下、新セグメントと呼ぶ)の固有のセ
グメント番号を記録する。さらに、新セグメントのデー
タ領域での記録開始位置を位置情報として、ヘッダ情報
に記録する。FIG. 8 shows the data arrangement in the sync block. In the figure, the sync block is a sync signal, identification information for recording the position of the sync block on a track, header information, a data area for recording variable-length encoded data, and a code word for error correction in the sync block. It is composed of a certain error correction code. A recording control unit, which is a collection of predetermined blocks of variable-length coded data, is a segment. The code amount of each segment varies depending on the input video signal. Therefore, this segment and the sync block are asynchronous, and it is necessary to have information on which segment is recorded in the sync block. Therefore, in the header information, a unique segment number of the first segment (hereinafter referred to as a new segment) where recording is started from the beginning of the segment in the sync block is recorded. Further, the recording start position in the data area of the new segment is recorded in the header information as position information.
【0005】以上の様なシンクブロックを構成すること
で、符号量の異なるセグメント毎の符号化データを固定
長のシンクブロックに分割して記録することができる。
さらに、あるシンクブロックに誤りが発生し、かつ、そ
の誤りが誤り訂正符号を用いても訂正不可能な場合、そ
の次のシンクブロックのヘッダ情報内のセグメント番号
と位置情報とにより、前のシンクブロックからの誤り伝
播を止めることができる。By configuring the sync block as described above, the coded data for each segment having a different code amount can be divided into fixed length sync blocks and recorded.
Further, when an error occurs in a sync block and the error cannot be corrected by using an error correction code, the segment number and position information in the header information of the next sync block are used to detect the previous sync block. You can stop the error propagation from the block.
【0006】なお、この従来例に関しては、特開平4−
220889号公報、「画像符号化装置」に詳しい。Regarding this conventional example, Japanese Unexamined Patent Publication No.
Details are disclosed in Japanese Patent No. 220889, “Image Coding Device”.
【0007】[0007]
【発明が解決しようとする課題】しかしながら、上記の
従来の符号化および復号化装置では、あるシンクブロッ
クに3つ以上のセグメントが存在し、その2番目のセグ
メント内に誤りが発生し、かつ、その誤りが誤り訂正符
号を用いても訂正不可能な場合、データ領域に記録され
た2番目のセグメントの終わり(つまり、3番目のセグ
メントの初め)が識別出来ずに、後に続く3番目のセグ
メントに誤りが伝播してしまう。However, in the above-mentioned conventional coding and decoding apparatus, there are three or more segments in a sync block, an error occurs in the second segment, and If the error cannot be corrected using an error correction code, the end of the second segment recorded in the data area (that is, the beginning of the third segment) cannot be identified, and the third segment that follows is detected. The error is propagated to.
【0008】本発明は上記従来の問題点を解決するもの
で、所定の領域(セグメント内)に誤り伝播を抑え、か
つ、次のシンクブロックへのデータの連続性を保証する
ことができる符号化および復号化装置を提供することを
目的とする。The present invention solves the above-mentioned conventional problems, and is an encoding method capable of suppressing error propagation in a predetermined area (within a segment) and guaranteeing the continuity of data to the next sync block. Another object of the present invention is to provide a decoding device.
【0009】[0009]
【課題を解決するための手段】この目的を達成するため
に本発明の符号化および復号化装置は、映像信号を可変
長符号化を含む符号化手段により可変長符号化データに
変換し、この可変長符号化データからセグメントを構成
し、このセグメントを固定長のシンクブロックの並びに
分割して記録再生あるいは送受信を行う符号化および復
号化装置であって、前記シンクブロックは、同期信号、
シンクブロックの識別情報、ヘッダ情報、データ領域お
よび誤り訂正符号で構成し、セグメントを分割してデー
タ領域へ割り当てる際に、セグメント間の境界がデータ
領域に存在する場合、その境界のデータ領域内での位置
を示す位置情報をデータ領域の最後に付加する分割手段
と、付加された位置情報の数をヘッダ情報内に位置情報
数として付加するヘッダ情報付加手段とを持つ。また、
位置情報内の1ビットに、その位置情報が示す位置から
データ領域に割り当てたセグメントの内に誤りの存在の
有無を示す誤り情報を設け、ヘッダ情報内の1ビット
に、データ領域の先頭から割り当てたセグメントの内に
誤りの存在の有無を示す誤り情報を設け、さらに、ヘッ
ダ情報内にヘッダ情報あるいは位置情報に誤りの存在の
有無を示すステータス情報を設ける。In order to achieve this object, an encoding and decoding device of the present invention converts a video signal into variable length encoded data by an encoding means including variable length encoding, A coding and decoding device that constitutes a segment from variable-length coded data, divides this segment into fixed-length sync blocks, and performs recording / reproduction or transmission / reception, wherein the sync block is a sync signal,
It is composed of sync block identification information, header information, data area and error correction code. When dividing a segment and assigning it to the data area, if the boundary between the segments exists in the data area, within the data area of the boundary And a header information adding unit that adds the number of the added position information as the number of position information in the header information. Also,
Error information indicating whether or not there is an error in the segment allocated to the data area from the position indicated by the position information is provided in 1 bit in the position information, and 1 bit in the header information is allocated from the beginning of the data area. Error information indicating the presence or absence of an error is provided in each segment, and status information indicating the presence or absence of an error is provided in the header information or the position information in the header information.
【0010】[0010]
【作用】本発明は上記した方法により、あるシンクブロ
ック内で訂正不可能な誤りが生じた場合、位置情報内の
誤り情報とヘッダ情報内の誤り情報とで、誤りの存在す
るセグメントを求めることが可能と成る。According to the present invention, when an uncorrectable error occurs in a certain sync block, the above method is used to obtain a segment in which an error exists from the error information in the position information and the error information in the header information. Is possible.
【0011】[0011]
【実施例】以下、本発明の実施例について、図面を参照
しながら説明する。図1は本発明の一実施例における符
号化および復号化装置のブロック図である。図1におい
て、端子1から入力された映像信号は、符号化手段2に
おいて、複数画素から成るブロック(例えば、8画素×
8画素)単位で離散コサイン変換を行い、変換されたデ
ータをその値に応じて符号長の異なる符号語に変換する
可変長符号化により可変長符号化データに変換され、整
数ブロック分の可変長符号化データを単位とするセグメ
ントを構成して、分割手段3に入力される。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an encoding and decoding device according to an embodiment of the present invention. In FIG. 1, the video signal input from the terminal 1 is, in the encoding means 2, a block composed of a plurality of pixels (for example, 8 pixels ×).
It is converted to variable-length coded data by variable-length coding that performs discrete cosine transformation in units of 8 pixels) and transforms the transformed data into codewords with different code lengths according to the value, and a variable length for integer blocks. A segment having encoded data as a unit is configured and input to the dividing means 3.
【0012】分割手段3は、セグメント単位の可変長符
号化データを、固定長の同期単位であるシンクブロック
の中のデータ領域に分割して割り当てる。図2に、分割
手段3の構成例を示す。図2において、端子20から入
力された可変長符号化データは、アドレス発生手段21
および割当手段22に入力される。アドレス発生手段2
1において、セグメントと映像信号の画面上の位置との
関係を示すアドレス情報を発生する。また、割当手段2
2において、データ領域にセグメントを順次割り当て
る。この割当手段22の動作を図3を用いて説明する。The dividing means 3 divides the variable length coded data in segment units into data areas in the sync block which is a fixed length synchronization unit and allocates them. FIG. 2 shows a configuration example of the dividing means 3. In FIG. 2, the variable length coded data input from the terminal 20 is the address generating means 21.
And is input to the allocation means 22. Address generating means 2
At 1, the address information indicating the relationship between the segment and the position of the video signal on the screen is generated. Also, the allocation means 2
In 2, the segments are sequentially allocated to the data area. The operation of the allocating means 22 will be described with reference to FIG.
【0013】図3の(a)は、データ領域内において、
セグメント(k)の割り当てがそのセグメントの途中か
ら始まり、途中で終わる場合を示す。この場合、セグメ
ントの境界が存在しない。図3の(b)は、セグメント
(k−1)の割り当てがそのセグメントの途中から始ま
り、データ領域内で終了し、次のセグメント(k)がデ
ータ領域内の位置P1から始まる場合を示す。この場
合、セグメントの境界は、位置P1に存在する。この
時、セグメント(k)は、アドレス情報を付加する領域
(位置P1の後)と位置情報を付加する領域(データ領
域の最後)とを確保した残りの領域に割り当てられる。
図3の(c)は、セグメント(k−1)の割り当てがそ
のセグメントの途中から始まり、データ領域内で終了
し、次のセグメント(k)がデータ領域内の位置P1か
ら始まり、データ領域内で終了し、さらに、セグメント
(k+1)がデータ領域内の位置P2から始まる場合を
示す。この場合、セグメントの境界は、位置P1と位置
P2とに存在する。この時、セグメント(k)は、アド
レス情報を付加する領域(位置P1の後)を確保した後
に割り当てられ、セグメント(k+1)は、アドレス情
報を付加する領域(位置P2の後)と2つの位置情報を
付加する領域(データ領域の最後)とを確保した残りの
領域に割り当てられる。FIG. 3A shows that in the data area,
The case where the allocation of the segment (k) starts in the middle of the segment and ends in the middle of the segment is shown. In this case, there is no segment boundary. FIG. 3B shows a case where the allocation of the segment (k-1) starts in the middle of the segment, ends in the data area, and the next segment (k) starts from the position P1 in the data area. In this case, the boundary of the segment exists at the position P1. At this time, the segment (k) is allocated to the remaining area which secures the area to which the address information is added (after the position P1) and the area to which the position information is added (the end of the data area).
In (c) of FIG. 3, the allocation of the segment (k-1) starts in the middle of the segment and ends in the data area, and the next segment (k) starts from the position P1 in the data area and ends in the data area. And the segment (k + 1) starts from the position P2 in the data area. In this case, the boundary of the segment exists at the position P1 and the position P2. At this time, the segment (k) is allocated after securing an area (after the position P1) to which address information is added, and the segment (k + 1) is allocated to an area (after the position P2) to which address information is added and two positions. The area to which information is added (the end of the data area) and the remaining area are secured.
【0014】割当手段22において、図3の(b)およ
び(c)に示す様に、データ領域内にセグメントの境界
が発生する場合、位置情報発生手段23により、その位
置データを発生し、付加手段24に出力する。この位置
情報発生手段23により発生される位置情報内には、1
ビットの誤り情報を持ち、発生時における誤り情報は、
誤りが存在しないことを示す情報(例えば、0)であ
る。In the allocating means 22, when a segment boundary occurs in the data area as shown in FIGS. 3B and 3C, the position information generating means 23 generates the position data and adds it. It is output to the means 24. In the position information generated by this position information generating means 23, 1
It has bit error information, and the error information at the time of occurrence is
It is information (for example, 0) indicating that there is no error.
【0015】割当手段22の出力のセグメントを割り当
てたデータ領域単位のデータは、付加手段24におい
て、アドレス発生手段21の出力であるアドレス情報と
位置情報発生手段23の出力である位置情報とが付加さ
れ、端子26からヘッダ情報付加手段4に出力される。
また、位置情報発生手段23で発生した位置情報の数を
位置情報数発生手段25で生成し、位置情報数として、
端子27からヘッダ情報付加手段4に出力される。The data in units of data areas to which the segments of the output of the allocating means 22 are allocated are added by the adding means 24 with the address information output from the address generating means 21 and the position information output from the position information generating means 23. And output from the terminal 26 to the header information adding means 4.
Further, the number of pieces of position information generated by the position information generating means 23 is generated by the position information number generating means 25, and as the number of position information,
It is output from the terminal 27 to the header information adding means 4.
【0016】ヘッダ情報付加手段4において、ヘッダ情
報を発生し、データ領域の前に付加し、パリティ付加回
路5に出力する。ヘッダ情報は、シンクブロック内の状
態を示すステータス情報(STA)、1ビットの誤り情
報(E0)、および分割手段3の出力である位置情報数
(NP)を持つ。ここで、ステータス情報(STA)
は、シンクブロック内に何も問題が無いことを示す情報
(例えば、00)を発生し、誤り情報(E0)は、誤り
が存在しないことを示す情報(例えば、0)を発生す
る。The header information adding means 4 generates header information, adds it to the front of the data area, and outputs it to the parity adding circuit 5. The header information has status information (STA) indicating the state in the sync block, 1-bit error information (E0), and the number of position information (NP) output from the dividing unit 3. Here, status information (STA)
Generates information (for example, 00) indicating that there is no problem in the sync block, and the error information (E0) generates information (for example, 0) indicating that no error exists.
【0017】ヘッダ情報付加手段4の出力は、パリティ
付加回路5に入力され、誤り訂正符号をデータ領域の後
ろに付加する。パリティ付加回路5の出力は、同期信号
付加回路6に入力され、再生あるいは受信時に同期を取
るための同期信号およびシンクブロックの番号などを示
す識別情報をヘッダ情報の前に付加された後、磁気記録
再生手段あるいは送受信手段7に入力される。ここで、
磁気記録再生手段あるいは送受信手段7に入力されるシ
ンクブロックの構成を図4に示す。The output of the header information adding means 4 is input to the parity adding circuit 5 to add an error correction code after the data area. The output of the parity addition circuit 5 is input to the synchronization signal addition circuit 6, and after the identification information indicating the synchronization signal and sync block number for synchronizing the reproduction or reception is added before the header information, the It is input to the recording / reproducing means or the transmitting / receiving means 7. here,
FIG. 4 shows the structure of a sync block input to the magnetic recording / reproducing means or the transmitting / receiving means 7.
【0018】図4において、シンクブロックは、同期信
号付加回路6により付加された同期信号および識別情
報、ヘッダ情報付加手段4により付加されたヘッダ情
報、分割手段3によりセグメントが割り当てられたデー
タ領域、およびパリティ付加回路5により付加された誤
り訂正符号から構成される。この様に構成されたシンク
ブロック単位に、磁気記録再生手段あるいは送受信手段
7から、再生あるいは受信された後、同期信号検出回路
8に入力される。In FIG. 4, a sync block is a sync signal and identification information added by the sync signal adding circuit 6, header information added by the header information adding means 4, a data area to which a segment is assigned by the dividing means 3, And the error correction code added by the parity adding circuit 5. The sync block unit thus constructed is reproduced or received from the magnetic recording / reproducing means or the transmitting / receiving means 7 and then inputted to the sync signal detecting circuit 8.
【0019】同期信号検出回路8において、同期信号お
よび識別情報により、再生信号をシンクブロック単位の
データとして再構成し、誤り訂正手段9に出力する。誤
り訂正手段9の構成例を図5に示す。図5において、同
期信号検出回路8の出力が端子40から入力され、誤り
訂正回路41において、誤り訂正符号を用いてシンクブ
ロック内のデータ(ヘッダ情報とデータ領域)に対する
誤り訂正を行う。この段階で、誤りが検出できたが訂正
不可能な場合が存在する可能性がある。よって、誤り位
置検出手段42において、訂正不可能な誤りの位置を検
出する。検出された誤り位置が、ヘッダ情報あるいは位
置情報である場合に、ヘッダ情報内のステータス情報を
ステータス変更手段43で変更する。例えば、00を1
1に変更する。また、検出された誤り位置が、ヘッダ情
報および位置情報以外の場合にもステータス情報を変更
する。例えば、01に変更する。そして、端子44から
ヘッダ情報およびデータ領域のデータを、端子45から
誤り位置を、付加情報変更手段10に出力する。The sync signal detection circuit 8 reconstructs the reproduced signal as sync block unit data based on the sync signal and the identification information, and outputs it to the error correction means 9. FIG. 5 shows a configuration example of the error correction means 9. In FIG. 5, the output of the sync signal detection circuit 8 is input from the terminal 40, and the error correction circuit 41 performs error correction on the data (header information and data area) in the sync block using the error correction code. At this stage, there may be a case where an error can be detected but cannot be corrected. Therefore, the error position detecting means 42 detects the position of an uncorrectable error. When the detected error position is header information or position information, the status changing unit 43 changes the status information in the header information. For example, 00 to 1
Change to 1. The status information is also changed when the detected error position is other than the header information and the position information. For example, change it to 01. Then, the header information and the data in the data area are output from the terminal 44 and the error position is output to the additional information changing unit 10 from the terminal 45.
【0020】付加情報変更手段10の構成例を図6に示
す。図6において、端子50からヘッダ情報およびデー
タ領域のデータを、端子51から誤り位置を入力する。
位置情報検出手段52において、ヘッダ情報内の位置情
報数(NP)からデータ領域内に存在するセグメント数
を検出し、存在するセグメントの境界位置を位置情報か
ら検出し、誤り情報発生手段53に入力する。誤り情報
発生手段53において、端子51からの誤り位置と位置
情報検出手段52からの位置情報とにより、対応するセ
グメントに誤りが存在するか否かを判定して、誤り情報
を発生して誤り情報変更手段54に出力する。誤り情報
変更手段54で、対応するセグメントに誤りが存在する
場合に誤り情報を0から1に変更する。図3の(c)を
用いて、この付加情報変更手段10の動作を説明する。FIG. 6 shows an example of the structure of the additional information changing means 10. In FIG. 6, header information and data in the data area are input from a terminal 50, and an error position is input from a terminal 51.
The position information detecting means 52 detects the number of segments existing in the data area from the number of position information (NP) in the header information, detects the boundary position of the existing segment from the position information, and inputs it to the error information generating means 53. To do. In the error information generating means 53, it is judged from the error position from the terminal 51 and the position information from the position information detecting means 52 whether or not an error exists in the corresponding segment, and the error information is generated to generate the error information. Output to the changing unit 54. The error information changing means 54 changes the error information from 0 to 1 when there is an error in the corresponding segment. The operation of the additional information changing unit 10 will be described with reference to FIG.
【0021】今、図3の(c)のセグメント(k−1)
の中に誤りが存在する場合に、誤り訂正手段9の出力の
誤り位置とデータ領域内の位置情報(P1)とによりセ
グメント(k−1)の中に誤りが存在することが判定で
き、ヘッダ情報内の誤り情報(E0)を誤りが存在する
ことを示すものに変更する。セグメント(k)の中に誤
りが存在する場合は、誤り訂正手段9の出力の誤り位置
とデータ領域内の位置情報(P1とP2)とによりセグ
メント(k)の中に誤りが存在することが判定でき、P
1を示す位置情報内の誤り情報(E1)を誤りが存在す
ることを示すものに変更する。また、セグメント(k+
1)の中に誤りが存在する場合は、誤り訂正手段9の出
緑の誤り位置とデータ領域内の位置情報(P2)とによ
りセグメント(k+1)の中に誤りが存在することが判
定でき、P2を示す位置情報内の誤り情報(E2)を誤
りが存在することを示すものに変更する。Now, the segment (k-1) in FIG.
If there is an error in the segment, it can be determined from the error position of the output of the error correction means 9 and the position information (P1) in the data area that there is an error in the segment (k-1), and the header The error information (E0) in the information is changed to one indicating that an error exists. When an error exists in the segment (k), the error may exist in the segment (k) due to the error position of the output of the error correction means 9 and the position information (P1 and P2) in the data area. Can be judged, P
The error information (E1) in the position information indicating 1 is changed to that indicating that an error exists. In addition, the segment (k +
If there is an error in 1), it can be determined that an error exists in the segment (k + 1) based on the green error position of the error correction means 9 and the position information (P2) in the data area. The error information (E2) in the position information indicating P2 is changed to that indicating that an error exists.
【0022】付加情報変更手段10の出力は、合成手段
11に入力され、各シンクブロックのデータ領域から、
セグメント単位のデータに合成する。合成手段11の構
成例を図7に示し、同図を用いて動作を説明する。図7
において、端子60から入力された付加情報変更手段1
0の出力は、セグメント合成手段61により、分割して
データ領域に割り当てられたセグメントを合成し端子6
4から復号化手段12に出力する。この時、各セグメン
トの先頭にはアドレス情報が付加されているので、位置
情報を用いて、アドレス情報検出手段62で検出し、端
子65から復号化手段12に出力する。また、ヘッダ情
報内のステータス情報と誤り情報、および位置情報内の
誤り情報は、ステータス・誤り情報検出手段63で検出
し、端子66から復号化禁止情報として、復号化手段1
2に出力する。The output of the additional information changing means 10 is inputted to the synthesizing means 11, and from the data area of each sync block,
Synthesize to segment data. A configuration example of the synthesizing means 11 is shown in FIG. 7, and the operation will be described with reference to FIG. Figure 7
In addition, the additional information changing means 1 input from the terminal 60
The output of 0 is divided by the segment synthesizing means 61 to synthesize the segments assigned to the data area, and the terminal 6
4 to the decoding means 12. At this time, since the address information is added to the head of each segment, the position information is used to be detected by the address information detecting means 62 and output from the terminal 65 to the decoding means 12. The status information and error information in the header information, and the error information in the position information are detected by the status / error information detecting means 63, and the decoding means 1 outputs the decoding prohibition information from the terminal 66.
Output to 2.
【0023】復号化手段12において、符号化手段2で
施された可変長符号化の逆処理の復号化、および、離散
コサイン変換の逆処理を行い、復号映像信号として、端
子13より出力される。ここで、復号化手段12におい
て、可変長符号化データが誤りのため復号できない場合
の動作について、図3の(c)を用いて説明する。In the decoding means 12, the inverse processing of the variable length coding performed in the encoding means 2 and the inverse processing of the discrete cosine transform are performed, and the decoded video signal is output from the terminal 13. . Here, the operation of the decoding means 12 when variable-length coded data cannot be decoded due to an error will be described with reference to FIG.
【0024】図3の(c)のセグメント(k)の中に誤
りが存在した場合は、位置情報内の誤り情報はE1=1
となっているので、ステータス・誤り情報検出手段63
の出力の復号化禁止情報も同じ情報が出力される。つま
り、セグメント(k)には、誤りが存在して、その復号
が保証されない。よって、このセグメント(k)の復号
を誤り情報(E1)でもって禁止する。また、ヘッダ情
報内の誤り情報および位置情報内の誤り情報がE0=E
2=0ならば、セグメント(k−1)およびセグメント
(k+1)は復号してもよい。その時、セグメント
(k)を飛び越して、セグメント(k+1)が復号化手
段12に入力されるが、アドレス情報検出手段62によ
って、セグメント(k+1)のアドレス情報も入力され
るのでなんら問題はない。When an error exists in the segment (k) of FIG. 3C, the error information in the position information is E1 = 1.
Therefore, the status / error information detection means 63
The same information is output as the decryption prohibition information of the output. That is, the segment (k) has an error, and its decoding is not guaranteed. Therefore, the decoding of this segment (k) is prohibited with the error information (E1). Further, the error information in the header information and the error information in the position information are E0 = E
If 2 = 0, segment (k-1) and segment (k + 1) may be decoded. At that time, the segment (k + 1) is skipped and the segment (k + 1) is input to the decoding means 12, but there is no problem because the address information detecting means 62 also inputs the address information of the segment (k + 1).
【0025】また、ステータス情報が、ヘッダ情報に誤
りが存在することを示すとき、そのシンクブロック内の
データ全てを復号禁止にする必要があり、その制御もス
テータス・誤り情報検出手段63の出力でもって復号化
禁止情報を出力することで行うことができる。その時
は、後に続くシンクブロック内の位置情報によって、誤
り伝播が止まる。When the status information indicates that an error exists in the header information, it is necessary to prohibit all the data in the sync block, and the control is also performed by the output of the status / error information detecting means 63. This can be done by outputting the decryption prohibition information. At that time, the error propagation is stopped by the position information in the subsequent sync block.
【0026】以上のように、本実施例によれば、ヘッダ
情報内および位置情報内の誤り情報は、(セグメントの
境界数)=(位置情報数)との関係で、区切られた領域
内に誤りが存在するか否かを示すものであり、シンクブ
ロック内に存在する位置情報で、誤り伝播を止めること
が可能となり、その位置情報は、セグメントの境界を示
すので、セグメント単位で誤り伝播を止めることを意味
する。As described above, according to this embodiment, the error information in the header information and the position information is stored in the divided area in the relation of (segment boundary number) = (position information number). It indicates whether or not there is an error.It is possible to stop the error propagation with the position information existing in the sync block. Since the position information indicates the boundary of the segment, the error propagation can be performed in the unit of segment. Means to stop.
【0027】なお、本実施例において、誤りの存在する
セグメントの復号を禁止するとしたが、禁止するだけで
なく、誤りの存在するセグメントを修整することは容易
である。In the present embodiment, the decoding of the segment having an error is prohibited, but it is easy to correct the segment having an error as well as prohibiting the decoding.
【0028】[0028]
【発明の効果】以上のように本発明は、符号長が不定の
符号化データを、セグメント単位の境界がデータ領域内
に存在する時、その境界を示す位置情報をデータ領域の
後ろより付加し、その位置情報と位置情報内およびヘッ
ダ情報内の誤り情報とにより、誤りが存在するセグメン
トの復号を禁止することで、1セグメント以内に誤り伝
播を抑えることができ、その効果は非常に大きいもので
ある。As described above, according to the present invention, when the segment unit boundary exists in the data area of the encoded data having an undefined code length, the position information indicating the boundary is added from the rear of the data area. , The position information and the error information in the position information and the header information prohibit the decoding of the segment in which the error exists, so that the error propagation can be suppressed within one segment, and the effect is very large. Is.
【図1】本発明の実施例における符号化装置の構成を示
すブロック図FIG. 1 is a block diagram showing a configuration of an encoding device according to an embodiment of the present invention.
【図2】同実施例における分割手段3の内部構成を示す
ブロック図FIG. 2 is a block diagram showing an internal configuration of a dividing unit 3 in the same embodiment.
【図3】同実施例における分割手段3の動作説明のため
のデータ領域内の信号配置図FIG. 3 is a signal arrangement diagram in a data area for explaining the operation of the dividing means 3 in the embodiment.
【図4】同実施例における一同期単位であるシンクブロ
ック内の信号配置図FIG. 4 is a signal arrangement diagram in a sync block which is one synchronization unit in the embodiment.
【図5】同実施例における誤り訂正手段9の内部構成を
示すブロック図FIG. 5 is a block diagram showing an internal configuration of error correction means 9 in the same embodiment.
【図6】同実施例における付加情報変更手段10の内部
構成を示すブロック図FIG. 6 is a block diagram showing an internal configuration of an additional information changing unit 10 in the embodiment.
【図7】同実施例における合成手段11の内部構成を示
すブロック図FIG. 7 is a block diagram showing an internal configuration of a synthesizing means 11 in the embodiment.
【図8】従来の符号化装置を説明するための一同期単位
であるシンクブロック内の信号配置図FIG. 8 is a signal arrangement diagram in a sync block which is one synchronization unit for explaining a conventional encoding device.
2 符号化手段 3 分割手段 4 ヘッダ情報付加手段 5 パリティ付加回路 6 同期信号付加回路 7 記録再生手段あるいは送受信手段 8 同期信号検出回路 9 誤り訂正手段 10 付加情報変更手段 11 合成手段 12 復号化手段 2 encoding means 3 dividing means 4 header information adding means 5 parity adding circuit 6 sync signal adding circuit 7 recording / reproducing means or transmitting / receiving means 8 sync signal detecting circuit 9 error correcting means 10 additional information changing means 11 combining means 12 decoding means
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/41 B 9070−5C 5/92 7734−5C H04N 5/92 H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 1/41 B 9070-5C 5/92 7734-5C H04N 5/92 H
Claims (7)
位で可変長符号化を含む符号化手段により可変長符号化
データに変換し、整数ブロック分の前記可変長符号化デ
ータを単位とするセグメントを構成し、前記セグメント
を固定長の同期単位であるシンクブロックの並びに分割
して記録再生あるいは送受信を行う符号化および復号化
装置であって、 前記シンクブロックは、同期信号、シンクブロックの識
別情報、ヘッダ情報、データ領域および誤り訂正符号で
構成し、 前記セグメントを分割して、前記データ領域へ割り当て
る際に、セグメント間の境界がデータ領域に存在する場
合、その境界のデータ領域内での位置を示す位置情報を
データ領域の最後に付加する分割手段と、 前記位置情報の付加された数をヘッダ情報内に位置情報
数として付加するヘッダ情報付加手段とを備えた符号化
および復号化装置。1. A segment in which a video signal is converted into variable-length coded data by a coding unit including variable-length coding in units of blocks composed of a plurality of pixels, and a segment in which the variable-length coded data corresponding to an integer block is used as a unit An encoding and decoding device configured to divide the segment into sync blocks that are fixed-length synchronization units and perform recording / reproduction or transmission / reception, wherein the sync block is a sync signal, sync block identification information, It is composed of header information, a data area, and an error correction code, and when dividing the segment and assigning to the data area, if a boundary between the segments exists in the data area, the position of the boundary in the data area is set. A dividing means for adding the position information shown at the end of the data area, and the number of the position information added as the position information number in the header information. And a header information adding means for adding the information.
報が示す位置からデータ領域に割り当てたセグメントの
内に誤りの存在の有無を示す誤り情報を設けることを特
徴とする請求項1記載の符号化および復号化装置。2. The error information indicating presence / absence of an error in a segment assigned to a data area from a position indicated by the position information is provided in one bit of the position information. Encoding and decoding device.
域の先頭から割り当てたセグメントの内に誤りの存在の
有無を示す誤り情報を設けることを特徴とする請求項1
記載の符号化および復号化装置。3. The error information indicating whether or not there is an error in the segment allocated from the beginning of the data area is provided in one bit of the header information.
Encoding and decoding device as described.
置情報に誤りの存在の有無を示すステータス情報を設け
ることを特徴とする請求項1記載の符号化および復号化
装置。4. The encoding / decoding apparatus according to claim 1, wherein status information indicating presence / absence of an error in header information or position information is provided in the header information.
当てる分割手段において、前記セグメントの先頭に前記
セグメントと映像信号の画面上の位置との関係を示すア
ドレス情報を付加することを特徴とする請求項1記載の
符号化および復号化装置。5. The dividing means for dividing a segment and allocating it to a data area adds address information indicating the relationship between the segment and the position of the video signal on the screen at the beginning of the segment. 1. The encoding and decoding device according to 1.
する際に、前記シンクブロック内の訂正不可能な誤り位
置を検出する誤り訂正手段と、 データ領域に付加された位置情報を検出し、前記誤り位
置と前記位置情報とにより、誤りの存在するセグメント
に対して誤りが存在することを示す誤り情報を付加する
付加情報変更手段と、 前記誤り情報により誤りが存在するデータ領域内のセグ
メントの復号を禁止する復号化手段とを備えた請求項2
および3記載の符号化および復号化装置。6. An error correction means for detecting an uncorrectable error position in the sync block when an error exists in the sync block at the time of decoding, and position information added to a data area is detected, Additional information changing means for adding error information indicating that an error exists to a segment in which an error exists based on the error position and the position information, and decoding of a segment in a data area in which an error exists due to the error information Decryption means for prohibiting
And the encoding and decoding device described in 3.
あるいは位置情報に訂正不可能な誤りが存在する際に、
ステータス情報に誤りが存在することを示す情報を付加
する誤り訂正手段と、 前記付加された情報によって該当シンクブロックの復号
を禁止する復号化手段とを備えた請求項4記載の符号化
および復号化装置。7. When an uncorrectable error exists in header information or position information in a sync block at the time of decoding,
The encoding and decoding according to claim 4, further comprising: an error correction unit that adds information indicating that an error is present in the status information, and a decoding unit that prohibits decoding of the corresponding sync block by the added information. apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14589693A JP3003460B2 (en) | 1993-06-17 | 1993-06-17 | Encoding and decoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14589693A JP3003460B2 (en) | 1993-06-17 | 1993-06-17 | Encoding and decoding device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0723384A true JPH0723384A (en) | 1995-01-24 |
| JP3003460B2 JP3003460B2 (en) | 2000-01-31 |
Family
ID=15395563
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14589693A Expired - Fee Related JP3003460B2 (en) | 1993-06-17 | 1993-06-17 | Encoding and decoding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3003460B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH10276404A (en) * | 1997-03-28 | 1998-10-13 | Sanyo Electric Co Ltd | Digital video recorder |
| WO2003036988A1 (en) * | 2001-10-25 | 2003-05-01 | Matsushita Electric Industrial Co., Ltd. | Media separating method, image decoding method and image decoding device |
| JP2015149084A (en) * | 2007-01-31 | 2015-08-20 | トムソン ライセンシングThomson Licensing | Method and apparatus for automatically classifying potential shot and scene detection information |
-
1993
- 1993-06-17 JP JP14589693A patent/JP3003460B2/en not_active Expired - Fee Related
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH10276404A (en) * | 1997-03-28 | 1998-10-13 | Sanyo Electric Co Ltd | Digital video recorder |
| WO2003036988A1 (en) * | 2001-10-25 | 2003-05-01 | Matsushita Electric Industrial Co., Ltd. | Media separating method, image decoding method and image decoding device |
| JP2015149084A (en) * | 2007-01-31 | 2015-08-20 | トムソン ライセンシングThomson Licensing | Method and apparatus for automatically classifying potential shot and scene detection information |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3003460B2 (en) | 2000-01-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0533947B1 (en) | Encoder and decoder | |
| JP3134424B2 (en) | Variable length encoding method and apparatus | |
| EP0665653B1 (en) | Apparatus and method for decoding variable-length code | |
| EP0453229A2 (en) | Method for transmission of variable length code | |
| EP0539155B1 (en) | Image transmitting method | |
| KR100538607B1 (en) | Encoding method, encoder and recording medium, and decoding method, decoder and recording medium | |
| JPH0746536A (en) | Data coding and its equipment | |
| US4258392A (en) | Coding method for facsimile signal | |
| JPH04221465A (en) | recording device | |
| US5995171A (en) | Coding and/or decoding apparatus for decoding variable-length coded image information | |
| EP0493129B1 (en) | Image processing method and apparatus | |
| JP3003460B2 (en) | Encoding and decoding device | |
| US6526224B1 (en) | Digital video signal processing apparatus and method thereof, and digital video signal reproducing apparatus | |
| JP3287582B2 (en) | Image transmission apparatus and image transmission method | |
| US7035336B2 (en) | Coding/decoding apparatus in accordance with an order opposite to the inputting order | |
| KR100321300B1 (en) | Signal Encoding Device, Signal Decoding Device, Signal Encoding Method, Signal Decoding Method | |
| JP3063675B2 (en) | Video signal playback device | |
| JP3084415B2 (en) | Video signal recording and playback device | |
| JP3530548B2 (en) | Image decoding apparatus and method | |
| WO1997026760A1 (en) | Picture encoding, recording, and reproducing device | |
| US6539057B1 (en) | Coding apparatus providing improved access to selected coded data | |
| JP3407891B2 (en) | Error correction coding device | |
| JP3070336B2 (en) | Video signal modification device | |
| JP3262341B2 (en) | Image processing apparatus and method | |
| JP3158603B2 (en) | Digital image signal transmission equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071119 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081119 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091119 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091119 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101119 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111119 Year of fee payment: 12 |
|
| LAPS | Cancellation because of no payment of annual fees |