JP2004096767A - Decoding method and apparatus - Google Patents

Decoding method and apparatus Download PDF

Info

Publication number
JP2004096767A
JP2004096767A JP2003323701A JP2003323701A JP2004096767A JP 2004096767 A JP2004096767 A JP 2004096767A JP 2003323701 A JP2003323701 A JP 2003323701A JP 2003323701 A JP2003323701 A JP 2003323701A JP 2004096767 A JP2004096767 A JP 2004096767A
Authority
JP
Japan
Prior art keywords
code
bit
synchronization
synchronization code
bits
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
JP2003323701A
Other languages
Japanese (ja)
Other versions
JP3597850B2 (en
Inventor
Yoshihiro Kikuchi
菊池 義浩
Toshiaki Watanabe
渡邊 敏明
Takeshi Nakajo
中條 健
Takeshi Nagai
永井 剛
Kenji Datake
駄竹 健志
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2003323701A priority Critical patent/JP3597850B2/en
Publication of JP2004096767A publication Critical patent/JP2004096767A/en
Application granted granted Critical
Publication of JP3597850B2 publication Critical patent/JP3597850B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve a problem such as false synchronization or out-of-synchronization caused by erroneous detection of a synchronizing code in a decoding apparatus for an image signal. <P>SOLUTION: The decoding apparatus has: an input decoding apparatus 800 for outputting a synchronizing code detecting signal 80 at a plurality of periodically predetermined synchronizing code inserting positions in an input code stream 205' which includes a multiplexed code stream multiplexing a plurality of kinds of variable length codes each composed of code words which are generated by compression-encoding the image signal and can be decoded forwards and backwards and to which a staffing bit is inserted; a demultiplexer 811 for generating variable length codes 841 and 842 by demultiplexing the multiplexed code stream 801 in the input code stream with a position indicated by the synchronizing code detecting signal 803 as a reference; and variable length decoders 806 and 810 for outputting a reproduced image signal by decoding the variable length codes 841 and 842. <P>COPYRIGHT: (C)2004,JPO

Description

 本発明は、無線伝送路のような誤り率の高い媒体を介して情報を伝送/蓄積するシステムに係り、高能率圧縮符号化によって得られた圧縮符号列を誤り訂正/検出符号化して伝送/蓄積するのに適した復号化方法及び装置に関する。 The present invention relates to a system for transmitting / accumulating information via a medium having a high error rate such as a wireless transmission path, and performing error correction / detection encoding on a transmission / decoding code stream obtained by high-efficiency compression encoding. The present invention relates to a decoding method and apparatus suitable for storing.

 例えば、無線TV電話、携帯情報端末、デジタルTV放送システムのように、画像や音声の情報をできるだけ少ない情報量となるように高能率に圧縮符号化して無線伝送路等を介して伝送するシステムにおいては、伝送路の誤り率が高いため、得られた符号列をいかに高品質に伝送するかが重要な課題となる。 For example, in a system such as a wireless TV phone, a portable information terminal, and a digital TV broadcast system, which efficiently compresses and encodes image and audio information so that the amount of information is as small as possible and transmits the information through a wireless transmission path or the like. However, since the error rate of the transmission path is high, how to transmit the obtained code string with high quality becomes an important issue.

 このように誤り率の高い媒体を介して符号列の伝送/蓄積を行う場合に、誤り率を低減する手段として、BCH符号、RS符号、畳み込み等の誤り訂正符号が多く用いられる。また、受信側で誤り検出を可能にする手段としては、チェックサムやCRC等の誤り検出符号が用いられる。これらの誤り訂正/誤り検出は、伝送/蓄積する情報に余分なビット(冗長性)を一定の規則に従って付加し、復号の際に伝送/蓄積された符号列がこの規則に従っているかどうかを調べ、その結果によって誤りの訂正や検出を行うものである。 符号 When transmitting / accumulating a code string through a medium having a high error rate, error correction codes such as BCH codes, RS codes, and convolution are often used as means for reducing the error rate. As means for enabling error detection on the receiving side, an error detection code such as a checksum or CRC is used. In these error correction / error detection, extra bits (redundancy) are added to information to be transmitted / stored according to a certain rule, and at the time of decoding, it is checked whether a transmitted / stored code string complies with this rule. Error correction and detection are performed based on the result.

 しかし、このように高能率圧縮符号化により得られた符号列を誤り訂正/検出符号に符号化して伝送/蓄積する方法は、伝送路/媒体での符号語誤りによって生じる同期外れを回復する同期回復手法との組み合わせが難しくなることが欠点である。同期回復手法としては、一意に復号可能な同期符号と呼ばれる符号を挿入し、同期外れが生じたときは同期符号を検出した時点から復号を再開する方法が多く用いられている。 However, the method of encoding and transmitting / accumulating a code string obtained by the high-efficiency compression encoding into an error correction / detection code as described above is a method of recovering out-of-synchronization caused by a codeword error in a transmission line / medium. The disadvantage is that it is difficult to combine with a recovery technique. As a synchronization recovery method, a method is often used in which a code called a uniquely decodable synchronization code is inserted, and when synchronization is lost, decoding is restarted from the time when the synchronization code is detected.

 同期符号を一意に復号可能な符号語とするためには、他の符号語の組み合わせで同期符号と同一のビットパターンが生じないように符号語を構成する必要がある。しかし、一般に誤り訂正/検出符号化では、ある特定のビットパターンの出現を避けるように符号語を構成することは困難であり、同期符号と同一ビットパターンが出現した場合には、同期符号の誤検出により擬似同期を引き起こしてしまうことになる。 In order to make the synchronization code a code word that can be uniquely decoded, it is necessary to configure the code word such that the same bit pattern as the synchronization code does not occur in a combination of other code words. However, in error correction / detection coding, it is generally difficult to configure a code word so as to avoid the appearance of a specific bit pattern. The detection will cause pseudo-synchronization.

 この問題を避けるために、誤り訂正/検出符号化を行った後に同期符号と同一のビットパターンが符号列中に存在するか否かを判定し、同一ビットパターンが存在する場合には、そのパターン中にある規則に従ってダミービットを挿入し、復号化装置において同一の規則でダミービットを削除することにより擬似同期を防ぐ方法が用いられている。しかし、誤りが生じやすい媒体を介して符号列を伝送/蓄積する場合には、この挿入ビットにも誤りが生じる可能性があり、新たな同期外れや擬似同期を引き起こすという問題点がある。 To avoid this problem, after performing error correction / detection coding, it is determined whether or not the same bit pattern as the synchronization code exists in the code sequence. A method is used in which dummy bits are inserted according to a certain rule therein, and dummy bits are deleted according to the same rule in a decoding device, thereby preventing pseudo synchronization. However, when a code string is transmitted / stored through a medium in which an error is likely to occur, an error may also occur in the inserted bit, and there is a problem that a new loss of synchronization or a pseudo synchronization is caused.

 また、符号列を誤り訂正/検出符号化し同期符号を挿入する場合、従来では同期符号と同期符号とで挟まれた同期区間の最後の部分で、誤り訂正/検出符号化すべき情報ビットの剰余を補うために多くの挿入ビットを符号列に付加する必要があるため、符号化効率が低下するという問題点もある。 In addition, when a code string is subjected to error correction / detection coding and a synchronization code is inserted, conventionally, the remainder of information bits to be error-corrected / detection-coded at the last portion of a synchronization section sandwiched between the synchronization codes. Since a large number of insertion bits need to be added to the code string to compensate, there is also a problem that the coding efficiency is reduced.

 一方、誤り訂正/検出能力を高めるためには、伝送/蓄積する情報の冗長度を高めればよいが、こうすると同じ情報を送るのに必要なビット数は増える。このため、誤り訂正/検出能力を高めると、より伝送レートの高い伝送路が必要となったり、蓄積しなければならない情報のビット数が増加することになる。また、伝送レートや蓄積容量が同一ならば、冗長度が高いほど少ない情報しか伝送/蓄積できないことになる。画像や音声を高能率に圧縮符号化して伝送/蓄積する場合、誤り耐性を向上させるために冗長性を付加することは、伝送/蓄積レートが同一ならばより少ない情報量に圧縮符号化を行わなければならないことになり、画質や音質の低下を招くことになる。 On the other hand, in order to enhance the error correction / detection ability, the redundancy of the information to be transmitted / stored may be increased, but this increases the number of bits required to transmit the same information. For this reason, if the error correction / detection capability is enhanced, a transmission line with a higher transmission rate is required, and the number of bits of information that must be stored increases. Also, if the transmission rate and the storage capacity are the same, the higher the redundancy, the less information can be transmitted / stored. When transmitting / accumulating video and audio data with high efficiency in compression / encoding, adding redundancy to improve error resilience means compressing / encoding to a smaller amount of information if the transmission / accumulation rate is the same. And the quality of the image and the sound quality deteriorate.

 そこで、より少ない冗長度で高い誤り耐性を持たせる方法として、階層符号化と呼ばれる方法がある。これは高能率圧縮符号化された情報を誤りが画質や音質に与える大きさに応じて分類し、誤りの影響が大きい情報には冗長度が高くともより誤り訂正/検出能力の高い誤り訂正/検出符号を用い、誤りの影響があまり大きくない情報には誤り訂正/検出能力はそれほど高くないが冗長度が少ない誤り訂正/検出符号を用いることにより、全体に同一の誤り訂正/検出符号を用いる場合より同一の平均冗長度でより誤り耐性を高める方法である。 Therefore, there is a method called hierarchical coding as a method for providing high error resilience with less redundancy. This classifies highly efficient compression-encoded information according to the magnitude of the error that affects the image quality and sound quality. The same error correction / detection code is used as a whole by using an error correction / detection code that does not have a very high error correction / detection capability but has a small degree of redundancy for information that is not so greatly affected by errors by using a detection code. This is a method in which error resilience is further improved with the same average redundancy than in the case.

 例えば、動画像の高能率圧縮符号化に多く用いられている動き補償予測と直交変換を組み合わせた符号化方式、すなわち、入力される動画像信号に対して動き補償予測を行い、その予測残差をDCT(離散コサイン変換)などにより直交変換する方式においては、誤りが生じると大きな画質劣化を生じる動きベクトル情報や、予測残差信号の直交変換係数のうちの低次係数には、誤り訂正/検出能力の強い誤り訂正/検出符号を用い、誤りの影響が小さい予測残差信号の直交変換係数のうちの高次係数には、誤り訂正/検出能力の弱い誤り訂正/検出符号を用いる。 For example, a coding method that combines motion compensation prediction and orthogonal transformation, which are often used for high-efficiency compression coding of moving images, that is, performs motion compensation prediction on an input moving image signal, and calculates the prediction residual In the method of performing orthogonal transform by DCT (Discrete Cosine Transform) or the like, error correction / correction is applied to motion vector information that causes a large deterioration in image quality when an error occurs, and low-order coefficients among orthogonal transform coefficients of a prediction residual signal. An error correction / detection code having a strong detection capability is used, and an error correction / detection code having a low error correction / detection capability is used as a higher-order coefficient among orthogonal transform coefficients of a prediction residual signal having a small effect of errors.

 このような階層符号化を実現するためには、出力される符号列の途中で、誤り訂正/検出能力の異なる誤り訂正/検出符号を切り替える必要がある。誤り訂正/検出能力の異なる誤り訂正/検出符号を切り替える方法としては、誤り訂正/検出符号の種類を示すヘッダ情報を符号列に付加する方法がある。図11は、ヘッダ情報を付加して誤り訂正/検出符号を切り替えた符号列の例を示したものであり、この例では2種類の誤り訂正/検出符号FEC1およびFEC2を切り替えている。ヘッダ1101〜1104には、誤り訂正/検出符号の種類や符号語の数を示すヘッダ情報が入っている。符号化装置では、これらのヘッダ情報に続けて誤り訂正/検出符号化された符号語を並べ、復号化装置ではヘッダ情報を復号し、これに従って誤り訂正/検出符号の復号を行う。 階層 In order to realize such hierarchical coding, it is necessary to switch error correction / detection codes having different error correction / detection capabilities in the middle of an output code string. As a method of switching between error correction / detection codes having different error correction / detection capabilities, there is a method of adding header information indicating the type of error correction / detection code to a code string. FIG. 11 shows an example of a code string in which error correction / detection codes are switched by adding header information. In this example, two types of error correction / detection codes FEC1 and FEC2 are switched. Headers 1101 to 1104 contain header information indicating the type of error correction / detection code and the number of codewords. The encoding device arranges the code words subjected to the error correction / detection encoding following the header information, and the decoding device decodes the header information, and decodes the error correction / detection code according to the header information.

 しかし、このようなヘッダ情報を付加することによって誤り訂正/検出符号を切り替える方法では、ヘッダ情報の付加によって伝送/蓄積しなければならない符号列のビット数が増加するという問題がある。画像や音声を高能率圧縮符号化して伝送/蓄積する場合、ヘッダ情報にビット数が割かれることは、画像や音声の高能率圧縮符号化に用いられるビット数が減少することになり、結果的に画質や音質の劣化を招く。 However, in the method of switching the error correction / detection code by adding the header information, there is a problem that the number of bits of the code string to be transmitted / stored increases by the addition of the header information. When transmitting / accumulating an image or audio with high-efficiency compression encoding, dividing the number of bits in the header information reduces the number of bits used for high-efficiency compression encoding of the image or audio. In addition, image quality and sound quality are deteriorated.

 上述したように、動画像信号などを高能率圧縮符号化した符号列に対して誤り訂正/検出符号化を行うと、任意のビットパターンが発生するため、誤り訂正/検出符号化と、一意に復号可能な同期符号を用いる同期回復手法との組み合わせた場合には、同期符号の誤検出による擬似同期という問題点があり、ダミービットの挿入により擬似同期を避ける操作を行った場合にも挿入ビットの誤りによって新たな同期外れや擬似同期を生じてしまうという問題点があった。 As described above, when error correction / detection coding is performed on a code sequence obtained by performing high-efficiency compression coding of a moving image signal or the like, an arbitrary bit pattern is generated. When combined with a synchronization recovery method using a decodable synchronization code, there is a problem of pseudo-synchronization due to erroneous detection of a synchronization code. However, there is a problem that a new out-of-synchronization or a pseudo-synchronization is caused by the error of.

 また、符号列を誤り訂正/検出符号化し同期符号を挿入する場合、従来では同期区間の最後の部分で、誤り訂正/検出符号化すべき情報ビットの剰余を補うために多くの挿入ビットを用いる必要があるため、符号化効率が低下するという問題点があった。 Further, when a code string is subjected to error correction / detection encoding and a synchronization code is inserted, conventionally, it is necessary to use a large number of insertion bits in the last part of a synchronization section in order to compensate for the remainder of information bits to be error correction / detection encoded. Therefore, there is a problem that the coding efficiency is reduced.

 さらに、ヘッダ情報を付加することにより誤り訂正/検出能力の異なる誤り訂正/検出符号を切り替える符号化/復号化装置では、ヘッダ情報の付加により伝送/蓄積しなければならないビット数が増加するため、画像や音声を高能率圧縮符号化して伝送/蓄積する場合には、画像や音声の情報に割り当てられる情報量が減少して画質や音質の低下を招くという問題点があった。 Furthermore, in an encoding / decoding device that switches between error correction / detection codes having different error correction / detection capabilities by adding header information, the number of bits that must be transmitted / stored by adding header information increases. In the case of transmitting / accumulating an image or a sound with high-efficiency compression encoding, there is a problem that the amount of information allocated to the information of the image or the sound is reduced, and the image quality and the sound quality are reduced.

 本発明の主たる目的は、同期符号の誤検出による擬似同期や同期外れの問題を解決できる復号化方法及び装置を提供することにある。 A primary object of the present invention is to provide a decoding method and apparatus capable of solving the problem of pseudo-synchronization and loss of synchronization due to erroneous detection of a synchronization code.

 上記の課題を解決するため、本発明に係る復号化方法は、画像信号を圧縮符号化して生成される順方向及び逆方向から復号可能な符号語からなる複数種類の可変長符号を多重化した多重化符号列を含み、かつスタッフィングビットが挿入された入力符号列中の予め周期的に定められた複数の同期符号挿入位置で同期符号を検出し、前記入力符号列中の多重化符号列に対し前記同期符号検出手段により検出された同期符号の位置を基準として逆多重化を行って可変長符号を生成し、生成された可変長符号を復号化して再生画像信号を出力することを特徴とする。 In order to solve the above-described problem, the decoding method according to the present invention multiplexes a plurality of types of variable-length codes including codewords that can be decoded in the forward and reverse directions and are generated by compression-coding an image signal. A multiplexed code string is included, and a synchronization code is detected at a plurality of predetermined synchronization code insertion positions in the input code string in which stuffing bits are inserted, and a multiplexed code string in the input code string is detected. On the other hand, a variable length code is generated by performing demultiplexing on the basis of the position of the synchronization code detected by the synchronization code detection means, and the generated variable length code is decoded to output a reproduced image signal. I do.

 本発明に係る復号化装置は、画像信号を圧縮符号化して生成される順方向及び逆方向から復号可能な符号語からなる複数種類の可変長符号を多重化した多重化符号列を含み、かつスタッフィングビットが挿入された入力符号列中の予め周期的に定められた複数の同期符号挿入位置で同期符号を検出する同期符号検出手段と、入力符号列中の多重化符号列に対し前記同期符号検出手段により検出された同期符号の位置を基準として逆多重化を行って可変長符号を生成する逆多重化手段と、生成された可変長符号を復号化して再生画像信号を出力する復号化手段とを有することを特徴とする。 The decoding device according to the present invention includes a multiplexed code string obtained by multiplexing a plurality of types of variable-length codes composed of codewords that can be decoded from the forward direction and the reverse direction generated by compression-coding an image signal, and Synchronization code detecting means for detecting a synchronization code at a plurality of predetermined synchronization code insertion positions in the input code string into which the stuffing bits have been inserted; and a synchronization code for the multiplexed code string in the input code string. Demultiplexing means for performing demultiplexing on the basis of the position of the synchronization code detected by the detection means to generate a variable length code, and decoding means for decoding the generated variable length code and outputting a reproduced image signal And characterized in that:

 なお、本発明において同期符号とは符号列中に同期回復のために挿入される一意に復号可能な符号であり、例えば同期符号を挿入する符号列が、フレーム単位で入力される画像信号を圧縮符号化した複数種類の可変長符号を多重化した多重化符号列であれば、符号化フレームの区切りや、複数種類の可変長符号の区切りその他の区切りを示す符号である。 Note that, in the present invention, a synchronization code is a code that can be uniquely decoded and inserted into a code sequence for synchronization recovery. For example, a code sequence for inserting a synchronization code compresses an image signal input in frame units. In the case of a multiplexed code string in which a plurality of types of encoded variable length codes are multiplexed, it is a code indicating a break of an encoded frame, a break of a plurality of types of variable length codes, and other breaks.

 本発明によれば、符号化装置において複数種類の可変長符号を多重化した多重化符号列中に予め周期的に定められた同期符号挿入位置でのみ同期検出を行えば良く、符号列中の任意の位置に同期符号が挿入される従来方式に比べて同期符号検出の回数が削減される。 According to the present invention, it is only necessary to perform synchronization detection only at a predetermined synchronization code insertion position in a multiplexed code sequence obtained by multiplexing a plurality of types of variable length codes in an encoding device. The number of times of detecting the synchronization code is reduced as compared with the conventional method in which the synchronization code is inserted at an arbitrary position.

 また、ビット誤りによって復号化装置に入力されるビット列が同期符号と同一のビットパターンに変化してしまうことによる疑似同期の発生の確率は、この同期符号検出回数の削減に伴って減少するため、本発明によると疑似同期の発生を少なくすることができ、同期符号検出に伴う演算処理量も削減される。 In addition, the probability of occurrence of pseudo-synchronization due to the fact that the bit string input to the decoding device changes to the same bit pattern as the synchronization code due to a bit error decreases with the reduction in the number of synchronization code detections. According to the present invention, the occurrence of pseudo-synchronization can be reduced, and the amount of arithmetic processing involved in detecting a synchronization code is also reduced.

 以下、図面を参照して本発明の実施形態を説明する。 
 (第1の実施形態) 
 図1は、動き補償適応予測と直交変換符号化の一種である離散コサイン変換符号化を用いた高能率圧縮符号化装置に、本発明による誤り訂正/検出符号切り替え機能を有する符号化装置を組み合わせた動画像符号化装置の一実施形態を示すブロック図である。動き補償適応予測と離散コサイン変換符号化を組み合わせた符号化方式については、例えば文献1:安田浩編著、“マルチメディア符号化の国際標準”、丸善、(平成3年6月)等に詳しいので、動作の概略のみを説明する。また、本実施形態で用いられる誤り訂正/検出符号は、BCH符号のように情報ビットと検査ビットが分離されているものとする。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(1st Embodiment)
FIG. 1 shows a combination of a high-efficiency compression coding device using discrete cosine transform coding, which is a type of motion compensation adaptive prediction and orthogonal transform coding, with a coding device having an error correction / detection code switching function according to the present invention. 1 is a block diagram illustrating an embodiment of a moving picture encoding device. The encoding method combining motion-compensated adaptive prediction and discrete cosine transform encoding is described in, for example, Reference 1: edited by Hiroshi Yasuda, “International Standards for Multimedia Encoding”, Maruzen, (June 1991). Only the outline of the operation will be described. The error correction / detection code used in the present embodiment is assumed to have information bits and check bits separated like a BCH code.

 図1において、フレーム単位で入力される符号化対象の入力動画像信号131は、まずマクロブロック等の小領域単位で動き補償適応予測が行われる。すなわち、動き補償適応予測器101において、入力動画像信号131とフレームメモリ102中に蓄えられている既に符号化/局部復号化が行われた画像信号との間の動きベクトルが検出され、この動きベクトルに基づいて動き補償予測により予測信号132が作成される。この動き補償予測器101においては、動き補償予測符号化と、入力動画像信号131をそのまま符号化するフレーム内符号化(予測信号=0)のうち、符号化に用いて好適な方の予測モードが選択され、対応する予測信号132が出力される。 In FIG. 1, an input video signal 131 to be coded, which is input in units of frames, is first subjected to motion-compensated adaptive prediction in units of small regions such as macroblocks. That is, the motion-compensated adaptive predictor 101 detects a motion vector between the input video signal 131 and the already encoded / locally decoded video signal stored in the frame memory 102, and this motion vector is detected. A prediction signal 132 is created by motion compensation prediction based on the vector. In the motion compensation predictor 101, of the motion compensation prediction coding and the intra-frame coding (prediction signal = 0) for directly coding the input video signal 131, the prediction mode which is more suitable for coding is used. Is selected, and the corresponding prediction signal 132 is output.

 予測信号132は減算器103に入力され、入力動画像信号131から予測信号132が減算されることによって予測残差信号133が出力される。予測残差信号133は、離散コサイン変換器104において一定の大きさのブロック単位で離散コサイン変換(DCT)され、DCT係数が生成される。このDCT係数は量子化器105で量子化される。量子化器105からの量子化されたDCT係数データは2分岐され、一方は第1の可変長符号化器106で可変長符号化され、他方は逆量子化器107で逆量子化された後、逆離散コサイン変換器108で逆離散コサイン変換(逆DCT)される。逆離散コサイン変換器108からの出力は加算器109において予測信号132と加算され、局部復号信号が生成される。この局部復号信号は、フレームメモリ102に記憶される。 The prediction signal 132 is input to the subtractor 103, and the prediction signal 132 is subtracted from the input video signal 131 to output a prediction residual signal 133. The prediction residual signal 133 is subjected to discrete cosine transform (DCT) by the discrete cosine transformer 104 in units of blocks of a fixed size, and DCT coefficients are generated. This DCT coefficient is quantized by the quantizer 105. The quantized DCT coefficient data from the quantizer 105 is split into two, one of which is variable-length coded by a first variable-length encoder 106 and the other is dequantized by an inverse quantizer 107. , And an inverse discrete cosine transform (inverse DCT). The output from the inverse discrete cosine transformer 108 is added to the prediction signal 132 in an adder 109 to generate a local decoded signal. This locally decoded signal is stored in the frame memory 102.

 一方、動き補償適応予測器101において決定された予測モードおよび動きベクトルの情報は、第2の可変長符号化器110で可変長符号化される。第1、第2の可変長符号化器106,110から出力される可変長符号(圧縮符号)は、多重化器111において多重化され、多重化符号列201となる。 On the other hand, the information on the prediction mode and the motion vector determined by the motion compensation adaptive predictor 101 is subjected to variable length coding by the second variable length encoder 110. The variable-length codes (compression codes) output from the first and second variable-length encoders 106 and 110 are multiplexed by the multiplexer 111 to become a multiplexed code sequence 201.

 多重化器111からは、多重化符号列201と、これに対応する誤り訂正/検出符号の種類を示すFEC種類識別信号202および同期符号の挿入を要求する同期符号挿入要求信号203が出力される。 Multiplexer 111 outputs multiplexed code string 201, FEC type identification signal 202 indicating the type of error correction / detection code corresponding thereto, and synchronization code insertion request signal 203 requesting insertion of a synchronization code. .

 これらの符号列202、FEC種類識別信号202および同期符号挿入要求信号203は、符号列202を誤り訂正/検出能力の異なる複数種類の誤り訂正/検出符号に切り替えて符号化する出力符号化装置200に入力され、最終的な出力符号列205が生成される。本実施形態においては、出力符号化装置200が本発明に係る符号化装置に相当する。 An output coding apparatus 200 that switches the code string 202 to a plurality of types of error correction / detection codes having different error correction / detection capacities and codes the code string 202, the FEC type identification signal 202, and the synchronization code insertion request signal 203. And a final output code string 205 is generated. In the present embodiment, the output encoding device 200 corresponds to the encoding device according to the present invention.

 図2は、多重化器111における多重化の流れを示す図である。多重化は符号化フレームを単位として行われる。まず、同期符号301が多重化される。同期符号301が多重化されたときには、多重化器111から同期符号挿入要求信号203が出力され、多重化された符号語が同期符号であることが符号化装置200に知らされる。次に、多重化符号列201にその符号化フレームの各種符号化モードを示すピクチャヘッダ302が多重化される。次に、各領域における動き補償適応予測器MCにおける予測モードを示す予測モード情報303が多重化され、さらに動きベクトル情報304および予測残差信号のDCT係数(以下、これを残差DCT係数という)305が多重化される。ピクチャヘッダ302、予測モード情報303、動きベクトル情報304および残差DCT係数305を多重化するときには、それぞれに対応する誤り訂正/検出符号の種類を示すFEC種類識別信号202が出力される。 FIG. 2 is a diagram showing a flow of multiplexing in the multiplexer 111. Multiplexing is performed in units of encoded frames. First, the synchronization code 301 is multiplexed. When the synchronization code 301 is multiplexed, a synchronization code insertion request signal 203 is output from the multiplexer 111 to notify the encoding device 200 that the multiplexed codeword is a synchronization code. Next, a picture header 302 indicating various encoding modes of the encoded frame is multiplexed on the multiplexed code string 201. Next, the prediction mode information 303 indicating the prediction mode in the motion compensation adaptive predictor MC in each region is multiplexed, and further, the motion vector information 304 and the DCT coefficient of the prediction residual signal (hereinafter, referred to as a residual DCT coefficient). 305 are multiplexed. When multiplexing the picture header 302, the prediction mode information 303, the motion vector information 304, and the residual DCT coefficient 305, an FEC type identification signal 202 indicating the type of the corresponding error correction / detection code is output.

 誤りが混入すると画質が大きく劣化してしまうピクチャヘッダ302、予測モード情報303および動きベクトル情報304には、訂正/検出能力の高い誤り訂正/検出符号を用いる。一方、残差DCT係数305は、誤りが混入してもそれを検出して残差を0とすることで大きな画質劣化を防ぐことができるため、誤り訂正能力はそれほど高くする必要はなく、単に誤り検出を行うことができるようにするだけでもよい。 誤 り An error correction / detection code having a high correction / detection capability is used for the picture header 302, the prediction mode information 303, and the motion vector information 304, which degrade the image quality greatly when an error is mixed. On the other hand, the residual DCT coefficient 305 can prevent large image quality degradation by detecting an error even if it is mixed and setting the residual to 0, so that the error correction capability does not need to be so high. It may only be possible to perform error detection.

 図3は、図1中の出力符号化装置200の構成を示すブロック図である。この出力符号化装置200は、ビット挿入器211、誤り訂正/検出切替符号化器212および符号列組立器213から構成される。また、図4は出力符号化装置200で生成される出力符号列205の一例を示す図である。図4において、PSCは同期符号、PHはピクチャヘッダ、MODEは予測モード情報、MVは動きベクトル情報、CHKは誤り訂正/検出符号の検査ビット、COEFは残差DCT係数、STUFFはスタッフィングビット(挿入ビット)である。この出力符号列205は、以下のような特徴を持っている。 FIG. 3 is a block diagram showing a configuration of the output encoding device 200 in FIG. The output encoding device 200 includes a bit inserter 211, an error correction / detection switching encoder 212, and a code string assembler 213. FIG. 4 is a diagram illustrating an example of an output code string 205 generated by the output encoding device 200. In FIG. 4, PSC is a synchronization code, PH is a picture header, MODE is prediction mode information, MV is motion vector information, CHK is a check bit of an error correction / detection code, COEF is a residual DCT coefficient, and STUFF is a stuffing bit (insertion). Bit). This output code string 205 has the following features.

 (1)同期符号PSCは、一定間隔(sync_periodビットおき)に配置された矢印で示される同期符号挿入位置のいずれかにのみ挿入される。sync_periodの長さは、同期符号PSCの長さと検査ビットCHKの最大長よりも大きくとる。検査ビットCHKは、同期符号挿入位置の直前に来るように位置ずらしが行わていれる。 (1) The synchronization code PSC is inserted only at any one of the synchronization code insertion positions indicated by arrows arranged at regular intervals (every sync_period bits). The length of sync_period is larger than the length of the synchronization code PSC and the maximum length of the check bit CHK. The position of the check bit CHK is shifted so as to be immediately before the position where the synchronization code is inserted.

 (2)1フレーム、つまり同期符号PSCと次のPSCとで挟まれた1同期期間の最後の部分の誤り訂正/検出符号は、最後に残った情報ビットだけを符号化する縮退符号とし、検査ビットCHK(図4の例ではCHK6)の位置ずらしを行うために必要なビット数だけスタッフィングビットSTUFFのビット挿入を行う。 (2) The error correction / detection code of one frame, that is, the last part of one synchronization period sandwiched between the synchronization code PSC and the next PSC is a degenerate code for encoding only the last remaining information bits, and The bit insertion of the stuffing bit STUFF is performed by the number of bits necessary for shifting the position of the bit CHK (CHK6 in the example of FIG. 4).

 (3)誤り訂正/検出符号の種類や数を示すFEC種類識別信号は、図4の出力符号列205中には存在しない。 (3) The FEC type identification signal indicating the type and number of error correction / detection codes does not exist in the output code string 205 in FIG.

 この出力符号列205では、上記(1)のように検査ビットCHKの位置ずらしを行っているため、矢印で示される同期符号挿入位置には検査ビットCHKが入ることが無く、従って検査ビットCHKによって擬似同期が発生する可能性は全く無い。また、上記(2)のようにフレームの最後の誤り訂正/検出符号化を行う場合、従来の技術では多くの挿入ビット(ダミービット)を挿入することが必要であったが、本実施形態ではフレームの最後が縮退符号となっているため、挿入ビット数は少なくてすむ。また、上記(3)のように誤り訂正/検出符号の種類や数を示すヘッダ情報を出力符号列205中に含ませていないため、これによる符号量の増加は無い。 In this output code string 205, since the position of the check bit CHK is shifted as in (1) above, the check bit CHK does not enter the synchronization code insertion position indicated by the arrow. There is no possibility that pseudo-synchronization will occur. In addition, when performing error correction / detection coding at the end of a frame as in the above (2), it is necessary to insert a large number of insertion bits (dummy bits) in the related art, but in the present embodiment, Since the end of the frame is a degenerate code, the number of inserted bits is small. Further, since the header information indicating the type and number of the error correction / detection codes is not included in the output code string 205 as in the above (3), the code amount does not increase due to this.

 以下、このような出力符号列205を生成する図3の出力符号化装置200の構成と動作について、多重化器111から出力される図2の多重化符号列201および図4の出力符号列205と対応させて詳細に説明する。 Hereinafter, regarding the configuration and operation of the output encoding apparatus 200 of FIG. 3 that generates such an output code string 205, the multiplexed code string 201 of FIG. 2 output from the multiplexer 111 and the output code string 205 of FIG. This will be described in detail with reference to FIG.

 多重化器111で同期符号301が多重化されたとき、前述のように同期符号挿入要求信号203が出力される。同期符号301は、例えば図5のようにsync_0_len ビットの“0”、1ビットの“1”および同期符号301の種類を示すsync_nb_len ビットの“×××××”からなる。出力符号化装置200は、多重化器111からの同期符号301および同期符号挿入要求信号203を受けると、符号列組立器213から出力符号列205として同期符号(PSC)を出力する。 (4) When the synchronization code 301 is multiplexed by the multiplexer 111, the synchronization code insertion request signal 203 is output as described above. The synchronization code 301 includes, for example, “0” of sync_0_len bits, “1” of 1 bit, and “xxxxxx” of sync_nb_len bits indicating the type of the synchronization code 301 as shown in FIG. Upon receiving the synchronization code 301 and the synchronization code insertion request signal 203 from the multiplexer 111, the output encoding device 200 outputs a synchronization code (PSC) as an output code sequence 205 from the code sequence assembler 213.

 ここで、同期符号301は図4に示したように出力符号列205中のsync_periodビットおきに配置された同期符号挿入位置のみにしか挿入することができないようになっているため、それまでに生成された出力符号列205の最後尾が同期符号挿入位置に無い場合には、後述のようにスタッフィングビットSTUFFを挿入して、同期符号301が同期符号挿入位置に来るようにする。 Here, as shown in FIG. 4, the synchronization code 301 can be inserted only into the synchronization code insertion position arranged at every sync_period bit in the output code string 205, so that the synchronization code 301 has not been generated until then. If the end of the output code string 205 is not at the synchronization code insertion position, a stuffing bit STUFF is inserted as described later so that the synchronization code 301 comes to the synchronization code insertion position.

 同期符号301が出力符号列205に出力されると、以降ピクチャヘッダ302、予測モード情報303、動きベクトル情報304、残差DCT係数305が以下のように符号化される。まず、多重化器111から出力された多重化符号列201に対して、ビット挿入器211において擬似同期の発生を防ぐためのビット挿入が行われる。すなわち、出力符号列205中に同期符号301の符号語と同一のビットパターンがあると同期符号301を一意に復号できなくなることを防ぐために、必要に応じてビット挿入を行う。例えば、同期符号301が図5のようにsync_0_len ビットの“0”が連続する符号語ならば、同期符号301以外の符号列中にsync_0_len ビット以上“0”が連続しないように“1”を挿入すれば、擬似同期の発生を防ぐことができる。 When the synchronization code 301 is output to the output code string 205, the picture header 302, the prediction mode information 303, the motion vector information 304, and the residual DCT coefficient 305 are encoded as follows. First, in the multiplexed code string 201 output from the multiplexer 111, bit insertion is performed in the bit inserter 211 to prevent occurrence of pseudo synchronization. That is, if the same bit pattern as the code word of the synchronization code 301 is present in the output code string 205, bit insertion is performed as necessary to prevent the synchronization code 301 from being uniquely decoded. For example, if the sync code 301 is a code word in which sync_0_len bits “0” are continuous as shown in FIG. 5, “1” is inserted into a code string other than the sync code 301 so that “0” is not continuous for sync_0_len bits or more. This can prevent the occurrence of pseudo synchronization.

 前述のように同期符号301は同期符号挿入位置にしか挿入されないため、この擬似同期の発生防止のためのビット挿入操作は同期符号挿入位置だけで行えばよい。そこで、これまでに生成された出力符号列205の総ビット数を示す計数値221を符号列組立器213から出力し、ビット挿入器211で計数値221に基づいてビット挿入が必要であるか否かを判定する。計数値221、つまり既に生成された出力符号列205の総ビット数を total_len とすれば、
 0< total_len mod sync_period≦sync_0_len  
となる区間で多重化符号列201中の“1”の数を計数し、この区間に“1”が全くなければ1ビットの“1”を挿入する。ここで、Amod BはAをBで除したときの剰余を表す。
As described above, since the synchronization code 301 is inserted only at the synchronization code insertion position, the bit insertion operation for preventing the occurrence of the pseudo synchronization need only be performed at the synchronization code insertion position. Therefore, a count value 221 indicating the total number of bits of the output code string 205 generated so far is output from the code string assembler 213, and whether or not bit insertion is necessary based on the count value 221 in the bit inserter 211 is determined. Is determined. Assuming that the count value 221, that is, the total number of bits of the already generated output code string 205 is total_len,
0 <total_len mod sync_period ≦ sync_0_len
The number of “1” s in the multiplexed code string 201 is counted in the section where “1”, and if there is no “1” in this section, 1 bit “1” is inserted. Here, Amod B represents the remainder when A is divided by B.

 また、誤りによる同期符号301の誤検出の確率を低くするには、以下のようにビット挿入を行えばよい。 (4) In order to reduce the probability of erroneous detection of the synchronization code 301 due to an error, bits may be inserted as follows.

 同期符号301にnビット誤りが混入した場合にも、同期符号301を検出するためには、後述する動画像復号化装置の入力復号化装置で真の同期符号とハミング距離がn以下の符号語は同期符号と判定する必要がある。しかし、同期符号301以外の符号列をそのままにしてこのような判定を行うと、同期符号301以外の符号列中にも同期符号とハミング距離がn以下のビットパターンが存在することがあり、これが同期符号挿入位置にあると誤まって同期符号301と判定されてしまう。 Even when an n-bit error is mixed in the synchronization code 301, in order to detect the synchronization code 301, a code word whose Hamming distance is n or less in the input decoding device of the video decoding device described below is used. Must be determined as a synchronization code. However, if such a determination is made while leaving the code sequence other than the synchronization code 301 as it is, there may be a bit pattern whose Hamming distance from the synchronization code is n or less even in the code sequence other than the synchronization code 301. If it is at the position where the synchronization code is inserted, the synchronization code 301 is erroneously determined.

 そこで、ビット挿入器211で多重化符号列201に以下のようにビット挿入を行うことによって、多重化符号列201中の同期符号挿入位置にある同期符号以外の符号列を同期符号301とのハミング距離が2*n+1以上離れた値となるように変換する。具体的には、 
 0< total_len mod sync_period≦sync_0_len −(2*N+1)
となる区間での“1”の数(=n0とする)を計数し、n0が2*n+1以下であったら2*n+1−n0ビットの“1”を多重化符号列201に挿入する。
Therefore, by inserting bits into the multiplexed code sequence 201 by the bit inserter 211 as follows, a code sequence other than the synchronization code at the synchronization code insertion position in the multiplexed code sequence 201 is hammed with the synchronization code 301. Conversion is performed so that the distance becomes a value separated by 2 * n + 1 or more. In particular,
0 <total_len mod sync_period ≦ sync_0_len− (2 * N + 1)
Then, the number of “1” (= n0) is counted in the section where .times..times..times..times..times..times..times..times..times..times..tim- es..times..times..times..times..times.

 こうしてビット挿入器211でビット挿入が行われた後の符号化列222は、誤り訂正/検出符号の種類を示すFEC種類識別信号202と共に、誤り訂正/検出符号切替符号化部212に入力される。 The coded sequence 222 after bit insertion by the bit inserter 211 is input to the error correction / detection code switching coding unit 212 together with the FEC type identification signal 202 indicating the type of the error correction / detection code. .

 図6は、図3中の誤り訂正/検出符号切替符号化部212の構成を示すブロック図である。ラッチ回路603は、FEC種類識別信号202をラッチする回路であり、多重化器111から多重化符号列201への同期符号の出力が終了して同期符号挿入要求信号203が停止すると、FEC種類識別信号202をラッチし、ラッチした信号623を誤り訂正/検出符号化器604に供給する。 FIG. 6 is a block diagram showing the configuration of the error correction / detection code switching encoding unit 212 in FIG. The latch circuit 603 is a circuit that latches the FEC type identification signal 202. When the output of the synchronization code from the multiplexer 111 to the multiplexed code string 201 ends and the synchronization code insertion request signal 203 stops, the FEC type identification signal 202 is latched. The signal 202 is latched, and the latched signal 623 is supplied to the error correction / detection encoder 604.

 誤り訂正/検出符号化器604は、ラッチされた信号623に従ってビット挿入器211からの符号列222を誤り訂正/検出符号化し、情報ビット631および検査ビット632を生成して出力する。また、誤り訂正/検出符号化器604は1ブロックの誤り訂正/検出符号化が終了すると、ラッチ回路603に次のFEC種類識別信号202のラッチを指示するラッチ指示信号625を出す。ラッチ回路603は、このラッチ指示信号625に従ってラッチを行い、ラッチした信号623を誤り訂正/検出符号化器604に供給する。 The error correction / detection encoder 604 performs error correction / detection encoding on the code sequence 222 from the bit inserter 211 according to the latched signal 623, and generates and outputs information bits 631 and check bits 632. When the error correction / detection encoding of one block is completed, the error correction / detection encoder 604 outputs a latch instruction signal 625 instructing the latch circuit 603 to latch the next FEC type identification signal 202. The latch circuit 603 performs latching according to the latch instruction signal 625, and supplies the latched signal 623 to the error correction / detection encoder 604.

 出力符号化装置200では以上の動作が繰り返され、ビット挿入器211からのビット挿入後の符号列222は、誤り訂正/検出切替符号化器212で多重化器111から示されたFEC種類識別信号202に従って誤り訂正/検出符号の切り替えがなされながら、誤り訂正/検出符号化が行われる。FEC種類識別信号202は、1ブロックの誤り訂正/検出符号の符号化の終了時点でのみラッチ回路603でラッチされるため、この切り替え点までは同一の誤り訂正/検出符号が適用される。例えば、ピクチャヘッダ302はFEC1、予測モード情報303はFEC2という誤り訂正/検出符号を用いる場合、ピクチャヘッダ302のビット数がFEC1の1ブロックの情報ビット数より短い場合は、後続の予測モード情報303の誤り訂正/検出符号としては、FEC1の情報ビット数に達するまではFEC1が用いられる。 The above operation is repeated in the output encoding device 200, and the code sequence 222 after the bit insertion from the bit inserter 211 is converted by the error correction / detection switching encoder 212 into the FEC type identification signal indicated by the multiplexer 111. The error correction / detection coding is performed while the error correction / detection code is switched according to 202. Since the FEC type identification signal 202 is latched by the latch circuit 603 only at the end of the encoding of the error correction / detection code of one block, the same error correction / detection code is applied up to this switching point. For example, when an error correction / detection code called FEC1 is used for the picture header 302 and FEC2 is used for the prediction mode information 303, when the number of bits of the picture header 302 is shorter than the number of information bits of one block of the FEC1, the following prediction mode information 303 is used. FEC1 is used until the number of information bits of FEC1 is reached.

 図7は、図3中の符号列組立器213の構成を示すブロック図である。この符号列組立器213は、出力符号列205のビット数を計数するカウンタ701、検査ビット632とそのビット数を一時的に記憶するバッファ702、出力符号列205を切り替える切替器703、および切替器703を制御する切替制御器704から構成される。 FIG. 7 is a block diagram showing a configuration of the code sequence assembler 213 in FIG. The code string assembler 213 includes a counter 701 for counting the number of bits of the output code string 205, a buffer 702 for temporarily storing the check bits 632 and the number of bits, a switch 703 for switching the output code string 205, and a switch 703 is configured by a switching controller 704 for controlling 703.

 カウンタ701は、同期符号挿入要求信号203が入力すると同期符号長sync_len の値にリセットされ、同期符号の次のビットから順に次の同期符号が入力するまでカウントアップしていく。同期符号入力後、最初の検査ビット632が入力するまでは情報ビット631が出力されるように切替器703が動作する。検査ビット632が入力すると、バッファ702に記憶されると共に、そのビット数(検査ビット数)711がバッファ702から切替制御器704に出力される。 When the synchronization code insertion request signal 203 is input, the counter 701 is reset to the value of the synchronization code length sync_len, and counts up from the next bit of the synchronization code until the next synchronization code is input. After the input of the synchronization code, the switch 703 operates so that the information bit 631 is output until the first check bit 632 is input. When the check bit 632 is input, it is stored in the buffer 702 and the number of bits (the number of check bits) 711 is output from the buffer 702 to the switching controller 704.

 切替制御器704は、検査ビット数711とカウンタ701の計数値221を基に、前述のように検査ビット632が同期符号挿入位置に出力されないようにするための検査ビットずらしを行うように切替器703を制御する。例えば計数値221を bit_count 、検査ビット数711を check_len とすれば、
  bit_count mod sync_period<sync_period− check_len  
の時は情報ビット631を出力し、 
 sync_period− check_len ≦total _bits mod sync_period<sync_period 
の時には、バッファ702に記憶された検査ビット713を出力する。以降、情報ビット631と検査ビット632を入力しながら、以上の処理を繰り返す。
The switching controller 704 performs switching of the check bit based on the check bit number 711 and the count value 221 of the counter 701 so as to prevent the check bit 632 from being output to the synchronization code insertion position as described above. 703 is controlled. For example, if the count value 221 is bit_count and the check bit number 711 is check_len,
bit_count mod sync_period <sync_period- check_len
In the case of, the information bit 631 is output,
sync_period- check_len ≤ total_bits mod sync_period <sync_period
At the time of, the check bit 713 stored in the buffer 702 is output. Thereafter, the above process is repeated while inputting the information bit 631 and the check bit 632.

 出力符号化装置200は、前述のように1フレームの最後の部分では誤り訂正/検出符号として縮退符号を用いることと、検査ビットの位置ずらしを行うためにビット挿入を行うため、それ以外の部分の通常とは異なった動作を行う。すなわち、多重化器111は1フレームの多重化符号列201の出力が終了すると、次のフレームの同期符号挿入要求信号203を出力する。これに対応して、図6の誤り訂正/検出切替符号化部212内の誤り訂正/検出符号化器604は、誤り訂正/検出符号の情報ビット631の不足分は挿入ビット発生器705から出力される予め定められたビットパターンであるとみなして、縮退符号を用いた誤り訂正/検出符号化を行う。このビットパターンは、全ビットを“1”としてもよいし、“0”としてもよいし、“0101……”のような特定のパターンの繰り返しでもよい。情報ビット631には、この補われた挿入ビットは出力しない。 As described above, the output encoding apparatus 200 uses the degenerate code as the error correction / detection code in the last part of one frame, and performs bit insertion to shift the position of the check bit. Behaves differently than usual. That is, when the output of the multiplexed code string 201 of one frame is completed, the multiplexer 111 outputs the synchronization code insertion request signal 203 of the next frame. Correspondingly, the error correction / detection encoder 604 in the error correction / detection switching encoder 212 in FIG. 6 outputs the shortage of the information bits 631 of the error correction / detection code from the insertion bit generator 705. Assuming that the bit pattern is a predetermined bit pattern, error correction / detection coding using a degenerate code is performed. In this bit pattern, all bits may be “1”, “0”, or a repetition of a specific pattern such as “0101...”. This supplemented insertion bit is not output as the information bit 631.

 図7の符号列組立器213では、情報ビット631を最後まで出力した後、切替器703をビット発生器705から入力に切り替え、バッファ702に記憶されている検査ビット713が次の同期符号の直前に配置されるように挿入ビットを挿入する。この挿入ビットの数stuffing_len は、1フレームの最後の情報ビット631を出力したときのカウンタ701の計数値221を total_len とし、最後に出力する検査ビット632のビット数をlast_check _len とすれば、
 stuffing_len =sync_period−last_check _len −( total_len mod sync_period) 
となる。なお、縮退符号を用いない場合は、最後の情報ビットlast_into_len の通常の情報ビットinto_len からの不足分(into_len −last_into_len )ビットのビット挿入を行い、さらに検査ビットの位置ずらしを行うためのビット挿入を行う必要がある。このため、縮退符号を用いる場合に比べinto_len −last_into_len +(into_len −last_into_len )mod sync_periodビット多くの挿入ビットが必要となってしまう。
In the code sequence assembler 213 of FIG. 7, after outputting the information bits 631 to the end, the switch 703 is switched from the bit generator 705 to the input, and the check bits 713 stored in the buffer 702 are set immediately before the next synchronization code. Insert the insertion bit so that The number stuffing_len of the inserted bits is as follows: the count value 221 of the counter 701 when the last information bit 631 of one frame is output is defined as total_len, and the number of check bits 632 output last is defined as last_check_len.
stuffing_len = sync_period-last_check_len-(total_len mod sync_period)
It becomes. When the degenerate code is not used, a bit is inserted by a bit (into_len−last_into_len) which is a shortage of the last information bit last_into_len from the normal information bit into_len, and a bit is inserted to shift the position of the check bit. There is a need to do. For this reason, compared with the case where the degenerate code is used, more insertion bits are required for into_len−last_into_len + (into_len−last_into_len) mod sync_period bits.

 符号列組立器213は、こうして切替器703を介して情報ビット631および挿入ビットを出力符号列205に出力した後、最後に検査ビット713に切り替えて出力符号列205に出力する。 The code sequence assembler 213 outputs the information bits 631 and the insertion bits to the output code sequence 205 via the switch 703 in this way, and finally switches to the check bits 713 to output to the output code sequence 205.

 次に、本実施形態に係る動画像復号化装置について説明する。 
 図8は、図1の動画像符号化装置に対応した動画像復号化装置の構成を示すブロック図である。図1の動画像符号化装置から出力された出力符号列205は伝送/蓄積系を経た後、入力符号列205′として入力復号化装置800に入力される。本実施形態においては、入力復号化装置800が本発明に係る復号化装置に相当する。
Next, the video decoding device according to the present embodiment will be described.
FIG. 8 is a block diagram showing a configuration of a video decoding device corresponding to the video encoding device of FIG. The output code string 205 output from the video coding apparatus of FIG. 1 is input to the input decoding apparatus 800 as an input code string 205 'after passing through a transmission / storage system. In the present embodiment, the input decoding device 800 corresponds to the decoding device according to the present invention.

 入力復号化装置800では、後続の逆多重化器811からの誤り訂正/検出符号の種類を示すFEC種類識別信号802に基づいて誤り訂正/検出符号を切り替えながら、誤り訂正/検出復号化された符号列801、同期符号検出信号803および誤り検出信号804が出力される。逆多重化器811は、これらの符号列801、同期符号検出信号803および誤り検出信号804を入力し、予測残差符号841と動き補償適応予測情報符号842を分離して出力する。 The input decoding apparatus 800 performs error correction / detection decoding while switching the error correction / detection code based on the FEC type identification signal 802 indicating the type of the error correction / detection code from the subsequent demultiplexer 811. A code sequence 801, a synchronization code detection signal 803, and an error detection signal 804 are output. The demultiplexer 811 receives the code sequence 801, the synchronization code detection signal 803, and the error detection signal 804, and separates and outputs a prediction residual code 841 and a motion compensation adaptive prediction information code 842.

 予測残差符号841および動き補償適応予測情報符号842は、それぞれ第1および第2の可変長復号器806および810に入力される。第1の可変長復号器806で復号された残差DCT係数831は、逆量子化器807で逆量子化、逆DCT器808で逆離散コサイン変換という一連の処理が施された後、加算器809で動き補償適応予測器801からの出力である動き補償適応予測信号832と加算されて再生画像信号850となる。再生画像信号850は、装置外へ出力されると共に、フレームメモリ820へ記録される。第2の可変長復号化器810で復号された動き補償適応予測情報は、動き補償適応予測器801に入力され、動き補償予測信号832が生成される。 The prediction residual code 841 and the motion compensation adaptive prediction information code 842 are input to the first and second variable length decoders 806 and 810, respectively. The residual DCT coefficient 831 decoded by the first variable length decoder 806 is subjected to a series of processes such as inverse quantization by an inverse quantizer 807 and inverse discrete cosine transform by an inverse DCT unit 808, and then an adder At 809, the output is added to the motion-compensated adaptive prediction signal 832 output from the motion-compensated adaptive predictor 801 to become a reproduced image signal 850. The reproduced image signal 850 is output outside the apparatus and is recorded in the frame memory 820. The motion-compensated adaptive prediction information decoded by the second variable-length decoder 810 is input to the motion-compensated adaptive predictor 801 to generate a motion-compensated predicted signal 832.

 以上の処理は、図1の動画像符号化装置に対応して動画像を再生する処理であり、逆量子化器807、逆DCT器808、加算器809およびフレームメモリ820が行う処理は、それぞれ図1における逆量子化器107、逆DCT器108、加算器109およびフレームメモリ102のそれと実現手段は異なる場合もあるが、基本的に同一である。また、第1および第2の可変長復号器806,810、逆多重化器811および入力復号化装置800の処理は、符号列に誤りが混入した場合を除いて、それぞれ図1における可変長符号化器106,110、多重化器111および出力符号化装置200のそれと逆の処理である。 The above process is a process of reproducing a moving image corresponding to the moving image encoding device of FIG. 1. The processes performed by the inverse quantizer 807, the inverse DCT unit 808, the adder 809, and the frame memory 820 are respectively Although the realizing means may be different from those of the inverse quantizer 107, the inverse DCT unit 108, the adder 109 and the frame memory 102 in FIG. 1, they are basically the same. The processing of the first and second variable length decoders 806 and 810, the demultiplexer 811 and the input decoding device 800 is performed in the variable length code shown in FIG. The processing is the reverse of that of the encoders 106 and 110, the multiplexer 111, and the output encoder 200.

 図9は、入力復号化装置800の構成を示すブロック図である。この入力復号化装置800は、入力符号列205′中の同期符号を検出する同期検出器901、入力符号列205′のビット数を計数するカウンタ902、入力符号列205′を情報ビット912と検査ビット913に分解して出力する符号列分解器903、誤り訂正/検出復号化器904および挿入ビット除去器905から構成される。 FIG. 9 is a block diagram showing a configuration of the input decoding device 800. The input decoding apparatus 800 includes a synchronization detector 901 for detecting a synchronization code in the input code string 205 ′, a counter 902 for counting the number of bits of the input code string 205 ′, and checking the input code string 205 ′ with information bits 912. It comprises a code string decomposer 903 for decomposing and outputting bits 913, an error correction / detection decoder 904, and an insertion bit remover 905.

 同期検出器901では、カウンタ902の計数値911に基づいて同期符号挿入位置でのみ同期符号の検出を行う。例えば、同期符号挿入位置の間隔をsync_period、計数値911を bit_count とし、同期符号の長さをsync_len とすれば、 
 0< bit_count %sync_period≦sync_len  
の時のみ同期検出を行う。 
 ここで、同期符号の誤りを考慮した同期符号の検出を行っても良い。
The synchronization detector 901 detects the synchronization code only at the synchronization code insertion position based on the count value 911 of the counter 902. For example, if the interval of the synchronization code insertion position is sync_period, the count value 911 is bit_count, and the length of the synchronization code is sync_len,
0 <bit_count% sync_period ≤ sync_len
Synchronization detection is performed only when.
Here, the synchronization code may be detected in consideration of the synchronization code error.

 図3中の出力符号化装置200内のビット挿入器211において、nビット以下の誤りを考慮して同期符号とのハミング距離が2*n+1離れるようにビット挿入による符号列変換を行っていれば、真の同期符号とのハミング距離がn以下のものを同期符号と判定しても、nビット以下の誤りの混入であれば誤同期検出は起こらない。 If the bit inserter 211 in the output encoding device 200 in FIG. 3 performs code string conversion by bit insertion so that the Hamming distance from the synchronization code is 2 * n + 1 in consideration of an error of n bits or less. Even if a code having a Hamming distance from a true synchronization code of n or less is determined to be a synchronization code, erroneous synchronization detection does not occur if an error of n bits or less is mixed.

 図10は、符号列分解器903の構成を示すブロック図である。入力符号列205′は、後述する制御器1001で制御される第1の切替器1002で情報ビット1021と検査ビット913とに切り替えられる。第1の切替器1002から情報ビット1021が出力された場合、この情報ビット1021は第2の切替器1003を経てバッファ1004に情報ビット長だけ記憶される。カウンタ1005は、第2の切替器1003からの出力ビット数を計数する。このカウンタ1005の計数値1023は、比較器1006で誤り訂正/検出符号情報出力器1007から出力された情報ビット長1024と比較され、両者が一致したときにカウンタ1005がリセットされると共に、誤り訂正/検出符号の種類を示すFEC種類識別信号802がラッチ回路1008でラッチされ、さらにバッファ1004から情報ビット912が出力される。ラッチ回路1008の出力914は、誤り訂正/検出符号情報出力回路1007へ入力されると共に、図9中に示す誤り訂正/検出復号化器904に出力される。 FIG. 10 is a block diagram showing a configuration of the code sequence decomposer 903. The input code string 205 'is switched between an information bit 1021 and a check bit 913 by a first switch 1002 controlled by a controller 1001 described below. When the information bit 1021 is output from the first switch 1002, the information bit 1021 is stored in the buffer 1004 via the second switch 1003 by the information bit length. The counter 1005 counts the number of output bits from the second switch 1003. The count value 1023 of the counter 1005 is compared with the information bit length 1024 output from the error correction / detection code information output unit 1007 by the comparator 1006, and when both match, the counter 1005 is reset and the error correction is performed. The FEC type identification signal 802 indicating the type of the / detection code is latched by the latch circuit 1008, and the information bit 912 is output from the buffer 1004. The output 914 of the latch circuit 1008 is input to the error correction / detection code information output circuit 1007 and is also output to the error correction / detection decoder 904 shown in FIG.

 前述のように、誤り訂正/検出符号の検査ビットは位置ずらしが施され、符号列205中後方の誤り訂正/検出符号の情報ビットの間に入っている。制御器1001は、この位置ずらしが施された検査ビットと情報ビットが分離されるように制御を行う。1ブロックの誤り訂正/検出符号の情報ビットの入力が終了すると、比較器1006において計数値1023と情報ビット長1024が一致する。制御器1001は、この一致信号を受けて誤り訂正/検出情報出力器1007から検査ビット長1025を取り込み、次の情報ビットの間に入っている検査ビットの位置を計算する。比較器1006で一致と判定されたときの符号列205′の入力ビット数の計数値911をbit _count 、検査ビット長をcheck _len とすれば、検査ビット開始位置check _start は
 check _start =(bit _count /sync_period+1)*sync_period−check _len  
となり、検査ビット終了位置check _end は、 
 check _end =(bit _count /sync_period+1)*sync_period 
となる。制御器1001は、計数値911が check_start から check_end までの間、切替器1002を検査ビット913が出力されるように制御する。
As described above, the check bits of the error correction / detection code are shifted in position, and are included in the code string 205 between the information bits of the error correction / detection code at the rear. The controller 1001 performs control so that the inspection bits and the information bits subjected to the position shift are separated. When the input of the information bits of the error correction / detection code of one block is completed, the count value 1023 and the information bit length 1024 in the comparator 1006 match. The controller 1001 receives the coincidence signal, takes in the check bit length 1025 from the error correction / detection information output unit 1007, and calculates the position of the check bit included between the next information bits. Assuming that the count value 911 of the number of input bits of the code string 205 'when the comparator 1006 determines that they match is bit_count and the check bit length is check_len, the check bit start position check_start is check_start = (bit_count / Sync_period + 1) * sync_period-check_len
And the check bit end position check_end is
check_end = (bit_count / sync_period + 1) * sync_period
It becomes. The controller 1001 controls the switch 1002 so that the check bit 913 is output while the count value 911 is from check_start to check_end.

 1フレームの最後は縮退符号で誤り訂正/検出符号化が行われているので、特別な処理を行う。1フレームの最後に達すると、同期検出器901から次のフレームの同期符号を検出したことを示す信号803が出力される。制御器1001は、この信号803を受けてフレームの最後の誤り訂正/検出符号の検査ビットの位置および情報ビットの不足ビット数を計算する。1フレームの最後の誤り訂正/検出符号を入力し始めたときの入力される符号列205′のビット数の計数値911を pre_last_count 、1フレームの符号列205′の入力が終了した時点の計数値911を total_count 、処理時点での計数値911を bit_count 、1フレーム最後の誤り訂正/検出符号の検査ビット長をlast_check _len 、それより一つ前の誤り訂正/検出符号の検査ビット長をpre _last_check _len とする。まず、誤り訂正符号が縮退符号であることおよびビット挿入が行われていることによる情報ビットの過不足分を計算する。1フレーム最後の誤り訂正/検出符号の情報ビットのうち、出力符号列205中に含まれているビット数last_info_len は、 
 last_inf0_len = total_count −last_check _len −pre _last_count −pre _last_check _len  
である。last_info_len が誤り訂正符号の情報長info_len より短いときには縮退符号であると判定し、計数値1023がlast_info_len からinfo_len までは切替器1021を挿入ビット発生器1015から出力されるビットパターンに切り替えて、縮退による情報ビットの不足分を補う。この挿入ビット発生器1015からの出力ビットパターンは、符号化器の図7中の挿入ビット発生器705と同一のビットパターンを発生する。
Since error correction / detection coding is performed at the end of one frame using degenerate codes, special processing is performed. When the end of one frame is reached, the synchronization detector 901 outputs a signal 803 indicating that the synchronization code of the next frame has been detected. Controller 1001 receives signal 803 and calculates the position of the check bit of the last error correction / detection code of the frame and the number of missing bits of the information bit. Pre_last_count is the count value of the number of bits of the input code string 205 'when inputting the last error correction / detection code of one frame is pre_last_count, and the count value at the end of input of the code string 205' of one frame. 911 is total_count, the count value 911 at the time of processing is bit_count, the check bit length of the error correction / detection code at the end of one frame is last_check_len, and the check bit length of the error correction / detection code immediately before that is pre_last_check_len. And First, the excess or deficiency of information bits due to the fact that the error correction code is a degenerate code and that bit insertion has been performed is calculated. Among the information bits of the error correction / detection code at the end of one frame, the number of bits last_info_len included in the output code string 205 is:
last_inf0_len = total_count -last_check_len -pre _last_count -pre _last_check _len
It is. When the last_info_len is shorter than the information length of the error correction code, info_len, it is determined that the code is a degenerate code. Make up for the lack of information bits. The output bit pattern from the insertion bit generator 1015 generates the same bit pattern as that of the insertion bit generator 705 in FIG. 7 of the encoder.

 一方、last_info_len がinfo_len より長いときには、ビット挿入分と判定し計数値1023がinfo_len 以上となる部分については情報ビット912を出力しないようにする。検査ビットについては、 
 total _count −check _len <bit _count ≦total _count  
の時の出力符号列205を検査ビットとして出力するように切替器1002を制御する。
On the other hand, when the last_info_len is longer than the info_len, it is determined that the bit is inserted, and the information bit 912 is not output for a portion where the count value 1023 is equal to or more than the info_len. For check bits,
total _count −check _len <bit _count ≦ total _count
The switch 1002 is controlled so as to output the output code string 205 at the time of (1) as a check bit.

 誤り訂正/検出復号化器904は、符号列分解器903から出力された情報ビット912および検査ビット913を入力し、図10のラッチ回路1008でラッチされた誤り訂正/検出符号の種類を示すFEC種類識別信号914に基づいて誤り訂正/検出符号の復号化を行い、誤り訂正された符号列915と誤り検出信号804を出力する。 The error correction / detection decoder 904 receives the information bits 912 and the check bits 913 output from the code string decomposer 903 and receives the FEC indicating the type of the error correction / detection code latched by the latch circuit 1008 in FIG. An error correction / detection code is decoded based on the type identification signal 914, and an error corrected code string 915 and an error detection signal 804 are output.

 誤り訂正された符号列915は、挿入ビット除去器905に入力される。挿入ビット除去器905は、出力符号化装置200のビット挿入器211で挿入された擬似同期信号を防ぐための挿入ビットを取り除く処理を行う。前述のように、ビット挿入は同期挿入位置でのみ行われているため、計数器902の計数値911に基づいて同期挿入位置を判定する。 符号 The error corrected code string 915 is input to the insertion bit remover 905. The insertion bit remover 905 performs a process of removing an insertion bit for preventing a pseudo synchronization signal inserted by the bit insertion unit 211 of the output encoding device 200. As described above, since the bit insertion is performed only at the synchronous insertion position, the synchronous insertion position is determined based on the count value 911 of the counter 902.

 例えば、同期符号語が図5に示すものとし、ビット挿入器211において同期符号とのハミング距離が2*n+1以上離れるように同期符号の最初のsync_len ビットの“0000…”の部分にビット挿入が行われている場合には、同期符号挿入位置からsync_0_len −(2*n+1)ビットの“1”の数(=n0とする)を計数し、n0が2*n+1以下であったら2*n+1−n0ビット削除する。ただし、挿入ビットは“1”であると定められているため、挿入ビット除去器905で挿入ビットと判定されたビットが“0”となっていたときは、同期符号挿入区間に誤りが混入したと考えられ、この場合には誤り検出信号804を出力する。 For example, it is assumed that the synchronization code word is as shown in FIG. 5, and the bit insertion unit 211 inserts a bit into the first sync_len bit “0000...” Of the synchronization code so that the Hamming distance from the synchronization code is 2 * n + 1 or more. If so, the number of sync_0_len- (2 * n + 1) bits of "1" (= n0) is counted from the synchronization code insertion position, and if n0 is 2 * n + 1 or less, 2 * n + 1- Delete n0 bits. However, since the insertion bit is determined to be “1”, if the bit determined to be an insertion bit by the insertion bit remover 905 is “0”, an error is mixed in the synchronization code insertion section. In this case, an error detection signal 804 is output.

 以上のようにして入力復号化装置800で復号された符号列801は、逆多重化器811で逆多重化が行われる。これは図2に示したような多重化された符号語を分離して出力する操作である。この逆多重化器811は、第1および第2の可変長復号器806および810と連動して動作する。 符号 The code string 801 decoded by the input decoding device 800 as described above is demultiplexed by the demultiplexer 811. This is an operation of separating and outputting a multiplexed codeword as shown in FIG. This demultiplexer 811 operates in conjunction with the first and second variable length decoders 806 and 810.

 まず、出力復号化装置800から同期符号検出信号803が入力されると、逆多重化器811はフレーム処理の初期状態に移る。次に、誤り訂正/検出符号の種類を示すFEC種類識別信号802としてピクチャヘッダに対する誤り訂正/検出符号の種類を出力し、符号列801を入力してピクチャヘッダ302を復号しピクチャヘッダに誤りが無いか判定する。誤りが無い場合には、FEC種類識別信号802として、予測モード情報303に対する誤り訂正/検出符号の種類を出力し、符号列801を入力して予測モード情報を逆多重化し、第2の可変長復号化器810へ出力する。 First, when the synchronization code detection signal 803 is input from the output decoding device 800, the demultiplexer 811 shifts to an initial state of frame processing. Next, the type of the error correction / detection code for the picture header is output as the FEC type identification signal 802 indicating the type of the error correction / detection code, the code sequence 801 is input, and the picture header 302 is decoded. Determine if there is. If there is no error, the type of the error correction / detection code for the prediction mode information 303 is output as the FEC type identification signal 802, the code string 801 is input to demultiplex the prediction mode information, and the second variable length Output to the decoder 810.

 第2の可変長復号化器810は、全ての予測モード情報を復号すると、その旨を示す信号を逆多重化器811に出力する。これを受けて、逆多重化器811は動きベクトル情報304に対する誤り訂正/検出符号の種類を示すFEC種類識別信号を出力し、動きベクトル情報304の逆多重化を開始する。逆多重化された動きベクトル情報は第2の可変長復号器810に出力され、復号化される。全ての動きベクトル情報の復号が終了すると、第2の可変長復号器810から逆多重化器811にその旨を示す信号が出力され、これを受けて逆多重化器811は残差DCT係数305に対する誤り訂正/検出符号の種類を示すFEC種類識別信号を出力すると共に、残差DCT係数を305を逆多重化して第1の可変長復号器806に出力する。この残差DCT係数305を第1の可変長復号器806で復号する。 When the second variable length decoder 810 decodes all prediction mode information, the second variable length decoder 810 outputs a signal indicating the decoding to the demultiplexer 811. In response, the demultiplexer 811 outputs an FEC type identification signal indicating the type of the error correction / detection code for the motion vector information 304, and starts demultiplexing the motion vector information 304. The demultiplexed motion vector information is output to the second variable length decoder 810 and decoded. When decoding of all the motion vector information is completed, a signal indicating that fact is output from the second variable length decoder 810 to the demultiplexer 811, and the demultiplexer 811 receives the signal, and the residual DCT coefficient 305 is received. And outputs a FEC type identification signal indicating the type of the error correction / detection code for, and demultiplexes the residual DCT coefficient 305 to the first variable length decoder 806. The residual DCT coefficient 305 is decoded by the first variable length decoder 806.

 以上のように、誤り訂正/検出符号の種類は、逆多重化器811において出力符号化装置200と同一に定められた多重化の規則に基づいて判定される。このため、誤り訂正/検出符号の種類を示すヘッダ情報等を出力符号列205に含める必要はない。 As described above, the type of the error correction / detection code is determined in the demultiplexer 811 based on the multiplexing rule determined in the same manner as in the output encoding device 200. Therefore, it is not necessary to include header information indicating the type of error correction / detection code in the output code string 205.

 誤り訂正/検出復号化器904において、誤り検出符号により入力符号列205′に誤りが混入していることが検出されることがある。また、前述のように挿入ビット除去器905で挿入ビットの誤りが検出されることもある。これらの場合には、入力復号化装置800から誤り検出符号804が出力される。さらには、可変長復号化の処理において可変長符号語テーブルに無い符号語が検出された場合にも、誤りが混入したと判定される。また、逆多重化器811における逆多重化処理において多重化の規則に違反する部分があると判定されたときも、誤りが混入したと判定される。これらの場合、入力復号化装置800および逆多重化器811は再生画像に大きな劣化が生じないように、以下のような処理を行う。 The error correction / detection decoder 904 may detect that an error is mixed in the input code string 205 ′ by the error detection code. Further, as described above, the inserted bit remover 905 may detect an error in the inserted bit. In these cases, the error detection code 804 is output from the input decoding device 800. Furthermore, when a codeword that is not in the variable-length codeword table is detected in the variable-length decoding process, it is determined that an error has been mixed. Also, when it is determined in the demultiplexing process in the demultiplexer 811 that there is a part that violates the multiplexing rule, it is also determined that an error has been mixed. In these cases, the input decoding device 800 and the demultiplexer 811 perform the following processing so that the reproduced image does not significantly deteriorate.

 (1)残差DCT係数で誤りが検出された場合は、当該部分の残差を0とする。予測モードとしてイントラ符号化モードが選択されていた場合は、既再生フレームや周囲の領域の再生画像信号から当該領域の再生画像信号を予測してもよい。 (1) If an error is detected in the residual DCT coefficient, the residual of the relevant part is set to 0. When the intra-encoding mode is selected as the prediction mode, a reproduced image signal of the area may be predicted from a reproduced frame or a reproduced image signal of a surrounding area.

 (2)予測モード情報や動きベクトルで誤りが検出された場合は、周囲の領域の予測モード情報や動きベクトル情報から当該領域の予測モード情報や動きベクトル情報が推定できるときにはそれらを用い、それが不可能ならば既再生フレームや周囲の領域の再生画像信号から当該領域の再生画像信号を予測する。 (2) When an error is detected in the prediction mode information or the motion vector, when the prediction mode information or the motion vector information of the surrounding area can be estimated from the prediction mode information or the motion vector information of the surrounding area, it is used. If it is impossible, the reproduced image signal of the area is predicted from the reproduced frame and the reproduced image signal of the surrounding area.

 (3)ピクチャヘッダに誤りが検出された場合は、それをそのまま復号すると非常に大きな画質劣化を生じる可能性があるため、前フレームの再生画像をそのまま現フレームの再生画像とする。 (3) If an error is detected in the picture header, decoding it as it is may cause a very large deterioration in image quality. Therefore, the reproduced image of the previous frame is used as it is as the reproduced image of the current frame.

 以上の(1)(2)(3)処理において、可変長符号化を用いているために誤りが次の同期符号までの後続の符号にも波及している場合には、その部分についても同様の処理を行う。 In the above processes (1), (2), and (3), if the error has spread to the subsequent code up to the next synchronization code due to the use of variable-length coding, the same applies to that part. Is performed.

 上述の説明では、同期符号検出器901が同期符号挿入位置(sync_periodビットおき)でのみ同期符号の検出を行う例を示したが、伝送/蓄積媒体によってはビットの消失や誤ビットの挿入が起こる場合もある。このような場合は、同期符号挿入位置以外でも同期符号の検出を行い、同期符号が検出された位置を同期符号挿入位置と判定すればよい。 In the above description, an example in which the synchronization code detector 901 detects the synchronization code only at the synchronization code insertion position (every sync_period bits) has been described. However, depending on the transmission / storage medium, loss of bits or insertion of erroneous bits may occur. In some cases. In such a case, the synchronization code may be detected at a position other than the synchronization code insertion position, and the position where the synchronization code is detected may be determined as the synchronization code insertion position.

 (第2の実施形態) 
 次に、図12〜図14を参照して本発明に係る第2の実施形態について説明する。本実施形態による動画像符号化装置および動画像復号化装置は、ビット列の一部が消失してビット数が減少したり、余分なビットが付加されてビット数が増加するような伝送路/蓄積媒体で符号列の伝送/蓄積を行っても、同期検出を確実に行うことができるようにしたものである。
(Second embodiment)
Next, a second embodiment according to the present invention will be described with reference to FIGS. The moving picture encoding apparatus and the moving picture decoding apparatus according to the present embodiment provide a transmission line / storage in which a part of a bit string is lost and the number of bits is reduced, or an extra bit is added to increase the number of bits. Even when a code string is transmitted / stored in a medium, synchronization detection can be reliably performed.

 図12は、このようなビット付加/消失のある場合の同期検出の処理の原理を示すブロック図である。ここで、正しい同期符号は図12(a)に示すように、sync_0_len ビットの“0”と、1ビットの“1”からなるとする。なお、図12中の“×”は同期符号以外のビットである。 FIG. 12 is a block diagram showing the principle of the process of synchronization detection when such bit addition / erasure occurs. Here, it is assumed that the correct synchronization code is composed of “0” of sync_0_len bits and “1” of 1 bit as shown in FIG. Note that “x” in FIG. 12 is a bit other than the synchronization code.

 図12(b)〜(e)は、ビット付加/消失によって同期符号がどのように変化するかを示したものである。ここで、付加/消失するビット数(Nid)は最大1ビットとしている。(b)は同期符号より前のビット列中で1ビット削除が起きた揚合であり、同期符号全体が1ビット前にシフトしている。(c)は同期符号より前のビット列中で1ビット付加が起きた場合であり、同期符号全体が1ビット後ろにシフトしている。(d)は同期符号中でビット削除が起きた場合であり、図中矢印のビット抜け位置から後ろが1ビット前にシフトしている。さらに、(e)は同期符号中で1ビット付加が起きた場合であり、図中矢印のビット付加位置に1ビット付加が起こり、それより後ろが1ビット後ろにシフトしている。 FIGS. 12B to 12E show how the synchronization code changes due to bit addition / erasure. Here, the number of bits (Nid) to be added / erased is 1 bit at maximum. (B) shows a case where one bit is deleted in a bit string before the synchronization code, and the entire synchronization code is shifted one bit before. (C) is a case where one bit is added in the bit sequence before the synchronization code, and the entire synchronization code is shifted one bit later. (D) shows a case where a bit is deleted in the synchronous code, and the bit is shifted forward by one bit from the bit missing position indicated by the arrow in the figure. Further, (e) is a case where one bit is added in the synchronization code, and one bit is added at the bit addition position indicated by the arrow in the figure, and the bit after that is shifted by one bit.

 ビット付加/消失が起きても正しく同期を検出するためには、図12(b)〜(d)に示したビット列も同期符号と判定する必要がある。図12から分かるように、正しい同期符号挿入位置の±Nidビットの範囲に含まれる“1”の数は最大 
 sync_0_len −3*Nid 
ビットである。従って、復号側で同期符号挿入位置の±Nidビットの範囲で同期検出を行い、この区間に含まれる“1”の数が上記の値以下だったらば同期符号と判定すればよい。また、符号化装置では図12(b)〜(d)のビットパターンが生じないように符号列の変換を行う。
In order to correctly detect synchronization even if bit addition / erasure occurs, the bit strings shown in FIGS. 12B to 12D also need to be determined as a synchronization code. As can be seen from FIG. 12, the number of “1” s included in the range of ± Nid bits at the correct synchronization code insertion position is maximum.
sync_0_len -3 * Nid
Is a bit. Therefore, on the decoding side, synchronization detection is performed within the range of ± Nid bits of the synchronization code insertion position, and if the number of “1” s included in this section is equal to or less than the above value, it may be determined that the synchronization code is used. Further, the encoding apparatus converts the code string so that the bit patterns of FIGS. 12B to 12D do not occur.

 以下、このような符号化装置/復号化装置を第1の実施形態との差異を中心に説明する。 Hereinafter, such an encoding device / decoding device will be described focusing on differences from the first embodiment.

 第2の実施形態に係る動画像符号化装置は、第1の実施形態に係る動画像符号化装置と全体構成は同じであるが、図3中のビット挿入器211の動作が異なっている。図13に、ビット挿入器211の動作を示す。すなわち、第1の実施形態のビット挿入器211では、同期符号挿入区間でのみビット挿入操作を行っていたが、第2の実施形態におけるビット挿入器211では、最大Nidビットのビット付加/消失が起きても同期符号と同一のビットパターンが生じないようにするため、同期符号挿入区間±Nidビットの区間でビット挿入を行う。 動 The video encoding device according to the second embodiment has the same overall configuration as the video encoding device according to the first embodiment, but differs in the operation of the bit inserter 211 in FIG. FIG. 13 shows the operation of the bit inserter 211. That is, in the bit inserter 211 of the first embodiment, the bit insertion operation is performed only in the synchronization code insertion section. However, in the bit inserter 211 of the second embodiment, bit addition / erasure of the maximum Nid bit is not performed. In order to prevent the occurrence of the same bit pattern as the synchronization code even if it occurs, the bit insertion is performed in the synchronization code insertion section ± Nid bit section.

 図3における計数値221を total_len 、同期符号挿入位置の間隔をsync_preriod とすれば、ビット挿入器211は 
 total _len mod sync_period=sync_period−Nid 
  (mod:剰余演算) 
から、 
  total_len mod sync_period=sync_0_len −1−3*Nid 
の区間での“1”の数(=n0とする)を計数し、n0が3*Nid+1未満であったら3*Nid+1−n0ビットの“1”を挿入する。
Assuming that the count value 221 in FIG. 3 is total_len and the interval between the synchronization code insertion positions is sync_preriod, the bit inserter 211
total _len mod sync_period = sync_period-Nid
(Mod: remainder operation)
From
total_len mod sync_period = sync_0_len -1-3 * Nid
, The number of “1” (= n0) in the section is counted, and if n0 is less than 3 * Nid + 1, 3 * Nid + 1−n0 bit “1” is inserted.

 図13では、sync_period=12、sync_0_len =9、Nid=1の場合のビット挿入器211の動作例を示している。この例ではn0=2であるので、3*Nid+1−n0=2ビットの“1”を挿入する。 FIG. 13 shows an operation example of the bit inserter 211 when sync_period = 12, sync_0_len = 9, and Nid = 1. Since n0 = 2 in this example, 3 * Nid + 1−n0 = 2 bits “1” is inserted.

 このようにビット挿入を行うことにより、同期符号挿入区間±Nidビットの“0”の数は3*Nidビット以上であることが保証され、同期符号と一意に識別することが可能である。 ビ ッ ト By performing the bit insertion as described above, it is guaranteed that the number of “0” of the synchronization code insertion section ± Nid bit is 3 * Nid bits or more, and it is possible to uniquely identify the synchronization code from the synchronization code.

 一方、第2の実施形態に係る動画像復号化装置は、第1の実施形態と全体構成は同一であるが、図9中の同期検出器901および挿入ビット除去器905の動作が異なっている。図14に、挿入ビット除去器905の動作を示す。 On the other hand, the moving picture decoding apparatus according to the second embodiment has the same overall configuration as that of the first embodiment, but differs in the operation of the synchronization detector 901 and the inserted bit remover 905 in FIG. . FIG. 14 shows the operation of the insertion bit remover 905.

 すなわち、同期検出器901では最大Nidビットのビット付加/消失が起きても同期を検出するために、同期符号挿入位置の前後±Nidビットの範囲で同期符号の検出を行う。 That is, the synchronization detector 901 detects the synchronization code within a range of ± Nid bits before and after the synchronization code insertion position in order to detect the synchronization even if the maximum Nid bit addition / erasure occurs.

 まず、同期符号挿入位置毎に同期符号が存在するかを判定する。すなわち、カウンタ902の計数値911を bit_count すると、 
  bit_count mod sync_period=sync_period−Nid 
から、 
  bit_count mod sync_period=sync_0_len −1+Nid 
の間の“0”の数(=ns0とする)をカウントし、n0が3*Nid以下であたら、この区間に同期符号があると判定する。
First, it is determined whether or not a synchronization code exists for each synchronization code insertion position. That is, when the count value 911 of the counter 902 is set to bit_count,
bit_count mod sync_period = sync_period-Nid
From
bit_count mod sync_period = sync_0_len -1 + Nid
And count the number of “0” (= ns0) between them. If n0 is 3 * Nid or less, it is determined that a synchronization code exists in this section.

 図14の動作例では、sync_period=12、sync_0_len =9、Nid=1の場合の例を示している。この例では( bit_count mod sync_period)が“11”から“8”の間で“0”の数をカウントする。図14の例ではns0=2であるので、同期符号と判定する。 動作 The operation example of FIG. 14 shows an example in which sync_period = 12, sync_0_len = 9, and Nid = 1. In this example, (bit_count mod sync_period) counts the number of “0” between “11” and “8”. In the example of FIG. 14, since ns0 = 2, it is determined to be a synchronization code.

 次に、同期符号があると判定された同期符号挿入区間で、ビット付加/消失によって符号列が何ビットシフトしているかを判定する。図14のようなsync_0_len ビットの場合、最後の“1”の位置からシフト量を判定する。具体的には、同期符号判定区間の最初からsync_0_len +1ビット目から見て最初にある “1”を探索し、この同期符号判定区間の最初から何ビット目にあるか(= first_1_pos ビットとする)を基に、 
 シフトビット数= first_1_pos −(sync_0_len +1+Nid) 
 (負の場合は前方シフト、正の場合は後方シフト) 
として求める。図14の例では first_1_pos =10であるから、 
 シフトビット数=10−(9+1+1)=−1 
となり、前方に1ビットシフトしていることが分かる。
Next, it is determined how many bits of the code string are shifted due to bit addition / erasure in the synchronization code insertion section where it is determined that there is a synchronization code. In the case of sync_0_len bits as shown in FIG. 14, the shift amount is determined from the last “1” position. More specifically, the first “1” is searched from the sync_0_len + 1 bit from the beginning of the synchronization code determination section, and the bit number from the beginning of this synchronization code determination section (= first_1_pos bits) Based on
Number of shift bits = first_1_pos-(sync_0_len +1 + Nid)
(Shift forward if negative, shift backward if positive)
Asking. In the example of FIG. 14, since first_1_pos = 10,
Number of shift bits = 10− (9 + 1 + 1) = − 1
It can be seen that the data is shifted forward by one bit.

 挿入ビット除去器905では、第1の実施形態と異なり、同期符号挿入位置±Nidビットの区間で挿入ビット除去処理を行う。すなわち、 
  bit_count mod sync_period=sync_period−Nid 
から、 
  bit_count mod sync_period=sync_0_len −1−3*Nid 
の区間での“1”の数(=n0とする)を計数し、n0が3*Nid+1以下であったら、3*Nid+1−n0ビットの“1”を除去する。
Unlike the first embodiment, the insertion bit removal unit 905 performs insertion bit removal processing in the section of the synchronization code insertion position ± Nid bits. That is,
bit_count mod sync_period = sync_period-Nid
From
bit_count mod sync_period = sync_0_len -1-3 * Nid
, The number of “1” (= n0) is counted, and if n0 is 3 * Nid + 1 or less, “1” of 3 * Nid + 1−n0 bits is removed.

 第2の実施形態において、伝送路や蓄積媒体でのビット付加/消失が起きた区間を何らかの形で判定できる場合、ビット付加/消失を考慮した同期検出処理やビット挿入処理、ビット除去処理は、その区間でのみ行うようにしてもよい。 In the second embodiment, when it is possible to determine in some form a section where bit addition / loss has occurred in a transmission path or a storage medium, a synchronization detection process, a bit insertion process, and a bit removal process in consideration of the bit addition / loss are: It may be performed only in that section.

 なお、前述した第1の実施形態に係る動画像復号化装置においても、伝送路や蓄積媒体でのビット付加/消失に対応した同期検出を行うために、同期検出器901では第2の実施形態と同様に同期符号挿入区間±Nidビットの区間で同期検出を行うようにしてもよい。この場合、同期符号以外の部分を誤って同期符号と判定する疑似同期が生じる可能性があるが、ビット付加/消失の起きやすい伝送路/蓄積媒体では同期検出ミスによる復号画像の品質劣化を抑えることができ、画質が向上する。 In the moving picture decoding apparatus according to the first embodiment, the synchronization detector 901 uses the second embodiment in order to perform synchronization detection corresponding to bit addition / loss in a transmission path or a storage medium. Similarly to the above, the synchronization detection may be performed in a synchronization code insertion section ± Nid bit section. In this case, there is a possibility that pseudo-synchronization in which a portion other than the synchronization code is erroneously determined as the synchronization code may occur. However, in a transmission line / storage medium in which bit addition / erasure is likely to occur, deterioration of the quality of a decoded image due to synchronization detection error is suppressed. Image quality can be improved.

 また、伝送路や蓄積媒体でのビット付加/消失が起きた区間を何らかの形で判定できる場合は、この処理はその区間でのみ行い、それ以外の区間では通常の同期検出を行うようにしてもよい。 If it is possible to determine in some form the section where bit addition / loss has occurred in the transmission path or storage medium, this processing is performed only in that section, and normal synchronization detection is performed in other sections. Good.

 さらに、上述した第1および第2の実施形態において、フレームの長さを示す情報(以下、フレーム長情報という)を用いて同期をさらに保護するようにしてもよい。図15、図16および図17は、フレーム長情報POINTERを用いた場合の符号列の例を示したものである。 In the first and second embodiments, synchronization may be further protected by using information indicating the length of a frame (hereinafter, referred to as frame length information). FIGS. 15, 16 and 17 show examples of code strings when the frame length information POINTER is used.

 図15の例では、同期符号PSCの直後にフレーム長情報POINTERと、このフレーム長情報POINTERを保護する誤り訂正/検出符号のチェックビットCHKPが続いている。フレーム長情報POINTERには前フレームのビット数、すなわち前フレームの同期符号から現フレームの同期符号までのビット数を示す情報が記録されている。 In the example of FIG. 15, immediately after the synchronization code PSC, frame length information POINTER and an error correction / detection code check bit CHKP for protecting the frame length information POINTER follow. In the frame length information POINTER, information indicating the number of bits of the previous frame, that is, information indicating the number of bits from the synchronization code of the previous frame to the synchronization code of the current frame is recorded.

 符号化装置では、1フレームの符号列ビット数をカウントして、これをフレーム長情報POINTERに変換し、さらに誤り訂正/検出符号化を行ってチェックビットCHKPを生成する。そして、これらを図15に示すように次フレームの同期符号の直後に続けて符号列を生成する。 The encoding apparatus counts the number of code string bits in one frame, converts this into frame length information POINTER, and performs error correction / detection encoding to generate a check bit CHKP. Then, as shown in FIG. 15, a code string is generated immediately after the synchronization code of the next frame.

 一方、復号化装置では、第1および第2の実施形態に述べたのと同様の方法で同期符号の検出を行った後、それに続くフレーム長情報POINTERとチェックビットCHKPを符号列から取り出し、誤り訂正/検出復号を行ってフレーム長情報POINTERを復号する。そして、復号されたフレーム長情報POINTERと、1つ前に検出された同期符号から現在の同期符号の位置までのビット数をカウントして求めた値(フレーム長カウント値)を比較し、同期符号の誤検出が無いかをチェックする。 On the other hand, in the decoding device, after detecting the synchronization code in the same manner as described in the first and second embodiments, the subsequent frame length information POINTER and check bit CHKP are extracted from the code string, and The frame length information POINTER is decoded by performing correction / detection decoding. Then, the decoded frame length information POINTER is compared with a value (frame length count value) obtained by counting the number of bits from the synchronization code detected immediately before to the position of the current synchronization code (frame length count value). Check for false detection of.

 もし、フレーム長カウント値がフレーム長情報POINTERに示された前フレームの符号長と異なる場合には、同期符号の誤検出が起こった可能性があるため、フレーム長情報POINTERを用いて誤検出された同期符号の再検出を行う。すなわち、現在の同期符号からフレーム長情報POINTERで示されたビット数だけ前方に検出できなかった同期符号があると見なすこととする。この場合、1つ前に検出された同期符号から現在の同期符号までの区間は、1つ前の同期符号からフレーム長情報POINTERで示される位置までの区間と、そこから現在の同期符号までの区間の二つのフレームに分割して復号処理を行う。 If the frame length count value is different from the code length of the previous frame indicated in the frame length information POINTER, there is a possibility that an erroneous detection of the synchronization code has occurred. The synchronization code is re-detected. That is, it is assumed that there is a synchronization code that cannot be detected ahead of the current synchronization code by the number of bits indicated by the frame length information POINTER. In this case, the section from the previously detected synchronization code to the current synchronization code includes a section from the previous synchronization code to the position indicated by the frame length information POINTER, and a section from the preceding synchronization code to the current synchronization code. The decoding process is performed by dividing the frame into two frames.

 ただし、フレーム長情報POINTERで示されるビット数が、1つ前に検出された同期符号から現在の同期符号の位置までのビット数よりも多い場合には、フレーム長情報POINTERが誤っているものと見なし、上記の同記再検出処理は行わない。 However, if the number of bits indicated by the frame length information POINTER is larger than the number of bits from the previously detected synchronization code to the position of the current synchronization code, it is determined that the frame length information POINTER is incorrect. Regarding this, the above-mentioned re-detection processing is not performed.

 フレーム長情報POINTERおよびチェックビットCHKPのビット数が多い場合には、図16に示すように同期符号PSC、フレーム長情報POINTER、チェックビットCHKPが複数の同期区間にわたるようにしてもよい。この場合、同期符号以外の符号列が同期符号と一定のハミング距離を保つようにするための符号化装置でのビット挿入処理および復号化装置でのビット削除処理は、フレーム長情報POINTERおよびチェックビットCHKPが存在する区間では行わないようにしてもよい。 When the number of bits of the frame length information POINTER and the check bit CHKP is large, the synchronization code PSC, the frame length information POINTER, and the check bit CHKP may extend over a plurality of synchronization sections as shown in FIG. In this case, the bit insertion process in the encoding device and the bit deletion process in the decoding device for maintaining the code string other than the synchronization code at a constant Hamming distance from the synchronization code include frame length information POINTER and check bit. It may not be performed in a section where CHKP exists.

 図15および図16の例において、同期符号PSCの後半にその同期符号の種類を示す情報(フレーム同期符号、GOB同期符号の区別等)が含まれている場合、フレーム長情報POINTERだけでなく、同期符号PSCの後半ビットを誤り訂正符号で保護するようにしてもよい。これにより、同期符号の位置だけでなくその種類も正確に検出できるため、誤りに対する耐性がさらに向上する。 In the examples of FIGS. 15 and 16, when information indicating the type of the synchronization code (such as the distinction between the frame synchronization code and the GOB synchronization code) is included in the latter half of the synchronization code PSC, not only the frame length information POINTER but also The latter bit of the synchronization code PSC may be protected by an error correction code. As a result, not only the position of the synchronization code but also its type can be accurately detected, so that the resistance to errors is further improved.

 図17の例では、フレーム長情報POINTERおよびチェックビットCHKPをフレームの最後(次のフレームの同期符号の直前)に置く例である。この場合、復号化装置では、次のフレームの同期符号を検出した後にその直前のフレーム長情報POINTERおよびチェックビットCHKPを取り出して誤り訂正/検出復号を行い、図15および図16と同様の処理により同期符号の再検出を行う。 In the example of FIG. 17, the frame length information POINTER and the check bit CHKP are placed at the end of the frame (immediately before the synchronization code of the next frame). In this case, after detecting the synchronization code of the next frame, the decoding apparatus extracts the immediately preceding frame length information POINTER and check bit CHKP to perform error correction / detection decoding, and performs the same processing as in FIGS. The synchronization code is detected again.

 図15の例においては、同期符号は同期符号挿入位置にのみ存在するので、フレーム長情報POINTERはフレームのビット数を同期符号挿入問隔(=sync_periodビット)で割った値を記録してもよい。これにより、フレーム長を少ないビット数で表すことができる。 In the example of FIG. 15, since the synchronization code exists only at the synchronization code insertion position, the frame length information POINTER may record a value obtained by dividing the number of bits of the frame by the synchronization code insertion interval (= sync_period bits). . Thereby, the frame length can be represented by a small number of bits.

 また、第1および第2の実施形態では、誤り訂正/検出符号を符号化する情報の重要度に応じて変化させる階層符号化を行う例を示したが、フレーム内で同一の誤り訂正/検出符号を用いるようにしてもよいし、誤り訂正/検出符号を用いなくともよい。そのような場合でも、本実施形態で示したような同期符号以外の符号列が同期符号と予め定められた値以上のハミング距離を保つためのビット挿入処理、およびこれに対応した同期符号検出処理によって、同期を検出する能力は従来方式より向上する。 In the first and second embodiments, an example has been described in which hierarchical coding is performed in which an error correction / detection code is changed in accordance with the importance of information to be encoded. However, the same error correction / detection is performed within a frame. A code may be used, or an error correction / detection code may not be used. Even in such a case, bit insertion processing for maintaining a hamming distance of a code string other than the synchronization code as described in the present embodiment with the synchronization code and a predetermined value or more, and synchronization code detection processing corresponding thereto Accordingly, the ability to detect synchronization is improved over the conventional method.

 また、以上の各実施形態の説明では動画像信号を高能率圧縮符号化して伝送/蓄積する例を示したが、本発明は静止画像や音声、データ等の伝送/蓄積にも応用することが可能である。例えば、静止画像信号を直交変換を用いて高能率圧縮符号化する場合には、変換係数の低域成分をより強く誤り保護するように誤り訂正/検出符号を切り替えて用いればよい。音声を駆動源と声道フィルタにモデル化して符号化する方法では、ピッチ周期や声道パラメータ等を強く誤り保護するように誤り訂正/検出符号を切り替えれば良い。 In the description of each of the above embodiments, an example has been described in which a moving image signal is transmitted / stored with high-efficiency compression coding, but the present invention can also be applied to transmission / storage of still images, audio, data, and the like. It is possible. For example, when a still image signal is subjected to high-efficiency compression encoding using orthogonal transform, the error correction / detection code may be switched and used so as to more strongly protect the low-frequency component of the transform coefficient from error protection. In a method of coding a speech by modeling it into a driving source and a vocal tract filter, the error correction / detection code may be switched so as to strongly protect a pitch period, a vocal tract parameter, and the like.

 (第3の実施形態) 
 次に、本発明に係る第3の実施形態について説明する。本実施形態は、誤り訂正/検出符号を用いないことが第1および第2の実施形態と異なる。
(Third embodiment)
Next, a third embodiment according to the present invention will be described. This embodiment is different from the first and second embodiments in that no error correction / detection code is used.

 図18は、本実施形態に係る動画像符号化装置のブロック図である。図1と相対応する部分に同一符号を付して第1の実施形態との相違点を中心に説明すると、本実施形態では出力符号化装置200の構成および動作が異なる。また、多重化器111は、基本動作は図1の多重化器111と同一であるが、誤り訂正/検出符号を用いないことに伴って、多重化符号列201および同期符号挿入要求信号203のみを出力する。 FIG. 18 is a block diagram of the video encoding device according to the present embodiment. The same reference numerals are given to portions corresponding to those in FIG. 1 to explain mainly the differences from the first embodiment. In this embodiment, the configuration and operation of the output encoding device 200 are different. The multiplexer 111 has the same basic operation as the multiplexer 111 of FIG. 1, but with no error correction / detection code, only the multiplexed code string 201 and the synchronization code insertion request signal 203 are provided. Is output.

 図19は、図18中の出力符号化装置200の構成を示すブロック図である。この出力符号化装置200は、出力符号列205のビット数を計数するカウンタ1701、出力符号列205を切り替える切替器1703、切替器1703を制御する切替制御器1704、およびスタッフィングビットを発生するスタッフィングビット発生器1705から構成される。 FIG. 19 is a block diagram showing a configuration of the output encoding device 200 in FIG. The output encoding apparatus 200 includes a counter 1701 for counting the number of bits of the output code string 205, a switch 1703 for switching the output code string 205, a switch controller 1704 for controlling the switch 1703, and a stuffing bit for generating a stuffing bit. It comprises a generator 1705.

 図20は、図19の出力符号化装置200で生成される出力符号列205の一例を示す図である。図4の出力符号列と相対応する符号語には同一記号を用いて表記してある。図4と同様に同期符号PSCは周期的に、つまり一定区間(sync_periodビット)おきに配置された矢印で示される同期符号挿入位置のいずれかのみに挿入されている。図20では、誤り訂正/検出符号の検査ビットCHKが含まれないところが図4と異なる。出力符号列205の1フレームの最後の部分には、同期符号PSCが同期符号挿入位置に挿入されるように、スタッフィングビットSTUFFが挿入される。スタッフィングビットSTUFFのビット数は、sync_periodビット以下となる。 FIG. 20 is a diagram illustrating an example of the output code string 205 generated by the output encoding device 200 in FIG. The code words corresponding to the output code string in FIG. 4 are denoted by the same symbols. Similar to FIG. 4, the synchronization code PSC is inserted periodically, that is, only at one of the synchronization code insertion positions indicated by arrows arranged at regular intervals (sync_period bits). FIG. 20 differs from FIG. 4 in that the check bit CHK of the error correction / detection code is not included. A stuffing bit STUFF is inserted into the last part of one frame of the output code string 205 so that the synchronization code PSC is inserted at the synchronization code insertion position. The number of bits of the stuffing bit STUFF is equal to or less than sync_period bits.

 以下、このような出力符号列205を生成する図19の出力符号化装置200の構成と動作について詳細に説明する。 Hereinafter, the configuration and operation of the output encoding device 200 of FIG. 19 that generates such an output code string 205 will be described in detail.

 カウンタ1701は、多重化器111から同期符号挿入要求信号203が入力され、多重化符号列201として同期符号301の最初のビットが入力されると“1”にセットされ、同期符号301の全ビットが入力されると同期符号長sync_len にセットされる。その後、カウンタ1701は同期符号301の次のビットから順に次の同期符号の直前のビットが出力されるまでカウントアップしてゆく。 The counter 1701 is set to “1” when the synchronization code insertion request signal 203 is input from the multiplexer 111 and the first bit of the synchronization code 301 is input as the multiplexed code string 201, and all bits of the synchronization code 301 are set. Is set to the sync code length sync_len. Thereafter, the counter 1701 counts up from the next bit of the synchronization code 301 until the bit immediately before the next synchronization code is output.

 切替制御器1704は、多重化符号列201として同期符号の最初のビットから次の同期符号の前のビットまでが入力されている時は、切替器1703を多重化符号列201の側に切り替え、多重化符号列201が出力符号列205として出力されるように制御する。 The switching controller 1704 switches the switch 1703 to the side of the multiplexed code string 201 when the bits from the first bit of the synchronization code to the bit before the next synchronization code are input as the multiplexed code string 201, Control is performed so that the multiplexed code string 201 is output as the output code string 205.

 そして、1フレームの最後の部分では、次の同期符号が同期符号挿入位置に挿入されるようにするためのビット挿入(ビットスタッフィング)を行う。多重化器111は、1フレームの多重化符号列201の出力が終了すると、次のフレームの同期符号挿入要求信号203を出力する。これを受けて切替制御器1704は、切替器1703をスタッフィングビット発生器1705の側に切り替え、スタッフィングビット1223を出力符号列205として出力する。このスタッフィングビット1223は全ビットを“1”としてもよいし、“0”としてもよいし、“0101…”のような特定のパターンとしてもよい。 {At the end of one frame, bit insertion (bit stuffing) is performed so that the next synchronization code is inserted at the synchronization code insertion position. When the output of the multiplexed code string 201 for one frame is completed, the multiplexer 111 outputs a synchronization code insertion request signal 203 for the next frame. In response to this, the switching controller 1704 switches the switch 1703 to the stuffing bit generator 1705 and outputs the stuffing bit 1223 as the output code string 205. All of the stuffing bits 1223 may be “1”, “0”, or a specific pattern such as “0101...”.

 次に、本実施形態に係る動画像復号化装置について説明する。 
 図21は、図18の動画像符号化装置に対応した動画像復号化装置の構成を示すブロック図である。図8と相対応する部分に同一符号を付して第1の実施形態との相違点を中心に説明すると、本実施形態では入力符号化装置800の構成および動作が異なる。また、入力復号化装置800から逆多重器811に入力される信号は符号列801および同期符号検出信号803のみであり、逆多重器811から入力復号化装置800に入力される信号が無い。
Next, the video decoding device according to the present embodiment will be described.
FIG. 21 is a block diagram showing a configuration of a video decoding device corresponding to the video encoding device of FIG. The parts corresponding to those in FIG. 8 are denoted by the same reference numerals, and a description will be given focusing on differences from the first embodiment. In this embodiment, the configuration and operation of the input encoding device 800 are different. The signals input from the input decoding device 800 to the demultiplexer 811 are only the code string 801 and the synchronization code detection signal 803, and there are no signals input from the demultiplexer 811 to the input decoding device 800.

 図22は、入力復号化装置800の構成を示すブロック図である。この入力復号化装置800は、入力符号列205′中の同期符号を検出する同期検出器1901と、入力符号列205′のビット数を計数するカウンタ1902から構成される。 FIG. 22 is a block diagram showing the configuration of the input decoding device 800. The input decoding device 800 includes a synchronization detector 1901 for detecting a synchronization code in the input code string 205 ', and a counter 1902 for counting the number of bits of the input code string 205'.

 カウンタ1902は、復号化の最初の段階では“0”にリセットされており、入力符号列205′が1ビット入力される度に計数値1911を“1”ずつカウントアップしていく。 The counter 1902 is reset to "0" at the initial stage of decoding, and counts up the count value 1911 by "1" every time one bit of the input code string 205 'is input.

 同期検出器1901では、カウンタ1902の計数値1911に基づいて同期符号挿入位置でのみ同期符号の検出を行う。例えば、同期符号挿入間隔をsync_period、計数値1911を bit_count とし、同期符号の長さをsync_len とすれば、 
 0< bit_count mod sync_period≦sync_len  
の時のみ同期検出を行う。ここで、A mod BはAをBで除したときの剰余を表す。同期検出器1901は、同期符号を検出すると同期符号検出信号803を出力する。
The synchronization detector 1901 detects the synchronization code only at the synchronization code insertion position based on the count value 1911 of the counter 1902. For example, if the synchronization code insertion interval is sync_period, the count value 1911 is bit_count, and the length of the synchronization code is sync_len,
0 <bit_count mod sync_period ≦ sync_len
Synchronization detection is performed only when. Here, A mod B represents a remainder when A is divided by B. When detecting the synchronization code, the synchronization detector 1901 outputs a synchronization code detection signal 803.

 入力復号化装置からの符号列801は、入力符号列205′がそのまま出力され、逆多重化器811に入力される。以降、図21の動画像復号化装置と同様に逆多重化、復号化の処理が行われる。 符号 As for the code sequence 801 from the input decoding device, the input code sequence 205 ′ is output as it is and input to the demultiplexer 811. Thereafter, demultiplexing and decoding are performed in the same manner as in the moving picture decoding apparatus of FIG.

 フレームの最後のスタッフィングビットSTUFFを予め定められたビットパターンとした場合、逆多重化器811においてこのスタッフィングビットSTUFFが予め定められたパターンと一致するか判定し、一致しなかった場合には入力符号列205′中に誤りがあったと判定して、第1の実施形態で示した動画像符号化装置で述べたような画質劣化が大きくならないようにするための処理を行ってもよい。 When the last stuffing bit STUFF of the frame is a predetermined bit pattern, the demultiplexer 811 determines whether the stuffing bit STUFF matches the predetermined pattern. It may be determined that there is an error in the column 205 ', and a process for preventing the image quality degradation from increasing as described in the moving picture coding apparatus shown in the first embodiment may be performed.

 (第4の実施形態) 
 次に、本発明に係る第4の実施形態について説明する。 
 本実施形態に係る動画像符号化装置はその全体構成は図18の動画像符号化装置と同一であり、出力符号化装置の動作が第3の実施形態と異なる。
(Fourth embodiment)
Next, a fourth embodiment according to the present invention will be described.
The overall configuration of the video encoding device according to the present embodiment is the same as that of the video encoding device in FIG. 18, and the operation of the output encoding device differs from that of the third embodiment.

 図23は、図18中の出力符号化装置200の構成を示すブロック図である。図19の出力符号化装置と相対応する部分に同一の符号を付してその差異を中心に説明すると、疑似同期符号を防止するためのビットスタッフィング処理を行うビット挿入器1211が追加されている。 FIG. 23 is a block diagram showing a configuration of the output encoding device 200 in FIG. The parts corresponding to those of the output encoding apparatus of FIG. 19 are given the same reference numerals and the differences will be mainly described. A bit inserter 1211 for performing a bit stuffing process for preventing a pseudo-synchronous code is added. .

 ビット挿入器1211において、多重化符号列201に対して疑似同期の発生の防ぐためのビット挿入が行われる。これは、出力符号列205中に同期符号と同一のビットパターンがあると同期符号を一意に復号できなくなるため、これを防ぐための処理である。例えば、同期符号が図5に示すようにsync_0_len ビットの“0”、1ビットの“1”および同期符号の種類を示すsync_nb_len ビットの“×××××”からなる場合、同期符号以外の符号列中にsync_0_len ビット以上“0”が連続しないように“1”を挿入すれば疑似同期の発生を防ぐことができる。 In the bit inserter 1211, bit insertion is performed on the multiplexed code string 201 to prevent occurrence of pseudo synchronization. This is a process for preventing the synchronization code from being uniquely decoded if the same bit pattern as the synchronization code exists in the output code string 205. For example, when the synchronization code is composed of “0” of sync_0_len bits, “1” of 1 bit, and “xxxxxx” of sync_nb_len bits indicating the type of synchronization code as shown in FIG. If "1" is inserted in the column so that "0" does not continue for more than sync_0_len bits, occurrence of pseudo synchronization can be prevented.

 同期符号は同期符号挿入装置にしか挿入されない。従って、疑似同期発生防止のためのビット挿入操作は同期符号挿入位置だけで行えばよい。そこで、出力符号列205の総ビット数を示す計数値1221に基づいてビット挿入が必要であるかを判定する。計数値1221を total_len とすれば、 
 0< total_len _ mod_sync_period≦sync_0_len  
となる区間で多重化符号列201中の“1”の数を計数し、この区間に“1”が全く無くなければ1ビットの“1”を挿入する。ここで、A mod BはAをBで除したときの剰余を表す。
The synchronization code is inserted only into the synchronization code insertion device. Therefore, the bit insertion operation for preventing the occurrence of the pseudo-synchronization may be performed only at the synchronization code insertion position. Therefore, it is determined whether bit insertion is necessary based on the count value 1221 indicating the total number of bits of the output code string 205. Assuming that the count value 1221 is total_len,
0 <total_len_mod_sync_period ≦ sync_0_len
Then, the number of “1” in the multiplexed code string 201 is counted in the section where .times., And if there is no “1” in this section, 1 bit “1” is inserted. Here, A mod B represents a remainder when A is divided by B.

 また、誤りによる同期符号の誤検出の確率を低くするためには、以下のようにビット挿入を行えばよい。 ビ ッ ト Also, in order to lower the probability of erroneous detection of a synchronization code due to an error, bit insertion may be performed as follows.

 同期符号にnビット誤りが混入した場合にも同期符号を検出するためには、後述する動画像符号化装置の入力符号化装置で真の同期符号とハミング距離がn以下の符号語は同期符号と判定する必要がある。しかし、同期符号以外の符号列をそのままにしてこのような判定を行うと、同期符号以外の符号列中にも同期符号とハミング距離がn以下のビットパターンが存在することがあり、これが同期符号挿入位置にあると誤って同期符号と判定されてしまう。 In order to detect a synchronization code even when an n-bit error is mixed in the synchronization code, a code word whose Hamming distance is n or less than a true synchronization code in an input coding device of a moving image coding device described later is a synchronization code. It is necessary to judge. However, if such a determination is made while leaving the code sequence other than the synchronization code as it is, a bit pattern whose Hamming distance from the synchronization code is n or less may exist in the code sequence other than the synchronization code. If it is at the insertion position, it is erroneously determined to be a synchronization code.

 そこで、ビット挿入器211で多重化符号列201に以下のようにビット挿入を行うことによって、多重化符号列201中の同期符号挿入位置にある同期符号以外の符号列を同期符号とのハミング距離が2×n+1以上離れるように変換する。具体的には、
 0< total_len _ mod_sync_period≦sync_0_len −(2×n+1)
となる区間での“1”の数(=n0とする)を計数し、n0が2×n+1未満であったら2×n+1−n0ビットの“1”を多重化符号列201に挿入する。
Therefore, by inserting bits into the multiplexed code sequence 201 by the bit inserter 211 as described below, a code sequence other than the synchronization code at the synchronization code insertion position in the multiplexed code sequence 201 is inserted into the hamming distance with the synchronization code. Are converted so as to be separated by 2 × n + 1 or more. In particular,
0 <total_len_mod_sync_period ≦ sync_0_len− (2 × n + 1)
Then, the number of “1” (= n0) in the section where is calculated is counted. If n0 is less than 2 × n + 1, “1” of 2 × n + 1−n0 bits is inserted into the multiplexed code sequence 201.

 こうしてビット挿入が行われた後の符号列1222は、図19の出力符号化装置と同様にフレームの最後の区間のビット挿入(図20中STUFF)が行われ、出力符号列205として出力される。 The code sequence 1222 after the bit insertion has been performed is subjected to bit insertion (STUFF in FIG. 20) in the last section of the frame, as in the output encoding device of FIG. 19, and is output as an output code sequence 205. .

 次に、本実施形態に係る動画像復号化装置について説明する。動画像復号化装置の全体構成は図21の動画像復号化装置と同一であり、入力符号化装置800の動作が第3の実施形態と異なる。 Next, the moving picture decoding apparatus according to the present embodiment will be described. The overall configuration of the video decoding device is the same as that of the video decoding device of FIG. 21, and the operation of the input encoding device 800 is different from that of the third embodiment.

 図24は入力復号化装置800の構成を示すブロック図である。図22の入力復号化装置と相対応する部分に同一の符号を付して第3の実施形態との差異を中心に説明するビット除去器1905が追加されている。 FIG. 24 is a block diagram showing a configuration of the input decoding device 800. A part corresponding to that of the input decoding device of FIG. 22 is denoted by the same reference numeral, and a bit remover 1905 is added to mainly describe differences from the third embodiment.

 入力符号列205′は、挿入ビット除去器1905に入力され、図23の出力符号化装置のビット挿入器1211で挿入された疑似同期符号を防ぐための挿入ビットを取り除く処理を行う。前述のように、ビット挿入は同期符号挿入位置でのみ行われているため、計数器1902の計数値1911に基づいて同期符号挿入位置を判定する。 The input code string 205 ′ is input to the insertion bit remover 1905, and performs processing of removing insertion bits for preventing the pseudo-synchronous code inserted by the bit insertion unit 1211 of the output encoding apparatus of FIG. As described above, since the bit insertion is performed only at the synchronization code insertion position, the synchronization code insertion position is determined based on the count value 1911 of the counter 1902.

 例えば、同期符号が図5に示す符号語であるものとし、ビット挿入器1211において同期符号とのハミング距離が2×n+1以上離れるように同期符号の最初の“0000…”の部分にビット挿入が行われている場合には、同期符号挿入位置からsync_0_len −(2×n+1)ビットの“1”の数を計数し、n0が2×n+1未満であったら2×n+1−n0ビット削除する。 For example, it is assumed that the synchronization code is the code word shown in FIG. 5, and bit insertion is performed in the first “0000...” Portion of the synchronization code in the bit inserter 1211 so that the Hamming distance from the synchronization code is at least 2 × n + 1. If so, the number of sync_0_len− (2 × n + 1) bits “1” is counted from the synchronization code insertion position, and if n0 is less than 2 × n + 1, 2 × n + 1−n0 bits are deleted.

 ここで、挿入ビットは“1”と定められているため、挿入ビットと判定されたビットが“0”となっていたときは、同期符号挿入区間に誤りが混入したと考えられる。この場合は、図示しない誤り検出信号を逆多重化器811に出力し、第1の実施形態で述べたのと同様に、再生画像に大きな劣化が生じないような処理を行ってもよい。 Here, since the insertion bit is defined as “1”, if the bit determined to be an insertion bit is “0”, it is considered that an error has been mixed in the synchronization code insertion section. In this case, an error detection signal (not shown) may be output to the demultiplexer 811 and processing similar to that described in the first embodiment may be performed so that the reproduced image does not significantly deteriorate.

 図23のビット挿入器1211でのビット挿入処理は、同期符号以外の全ての同期符号挿入区間にあらかじめ定められたビット数の挿入ビットを挿入するようにしてもよい。25はこのようなビット挿入処理を行ったときの出力符号列205の一例を示したものである。図中SBが挿入されたビットを示している。 In the bit insertion processing by the bit insertion unit 1211 in FIG. 23, a predetermined number of bits may be inserted into all synchronization code insertion sections other than the synchronization code. 25 shows an example of the output code string 205 when such a bit insertion process is performed. In the figure, SB indicates the inserted bit.

 例えば、同期符号が図5に示すようにsync_0_len ビットの“0”、1ビットの“1”および同期符号の種類を示すsync_nb_len ビットの“xxxxx”からなる場合、同期符号挿入区間の最初からsync_0_len ビットの区間の予め定められた位置に1ビットの挿入ビットSBを挿入する。 For example, when the synchronization code is composed of “0” of sync_0_len bits, “1” of 1 bit, and “xxxxxx” of sync_nb_len bits indicating the type of synchronization code as shown in FIG. Is inserted at a predetermined position in the section (1).

 挿入ビットSBは、常に“1”としてもよい。また、同期符号挿入区間の最初からsync_0_len ビットの区間のビットパターンに応じて、その区間の“1”の数が1個以上となるように適応的に挿入ビットSBを決定してもよい。 The insertion bit SB may always be “1”. Further, according to the bit pattern of the section of sync_0_len bits from the beginning of the synchronization code insertion section, the insertion bit SB may be adaptively determined so that the number of “1” in the section becomes one or more.

 さらに、挿入ビットSBを同期符号挿入区間の最初からsync_0_len ビットの区間の奇パリティとすることにより、同期符号と同一のビットパターンの出現を避けると共に、このビットパターンに混入した誤りの検出をも行うことが可能である。 Further, by setting the insertion bit SB as an odd parity in a section of sync_0_len bits from the beginning of the synchronization code insertion section, the appearance of the same bit pattern as the synchronization code is avoided, and an error mixed in this bit pattern is also detected. It is possible.

 図25(b)は、このようなビット挿入処理を行った出力符号列を示している。この例では、同期符号挿入位置から最初の部分に1ビットの挿入ビットSBを挿入している。この挿入ビットSBは、これと次のビットからsync_0_len −1ビットを合わせた区間の“1”の数が必ず奇数となるように決定する。例えば、図25(b)の左側の例では、挿入ビットSBは“1”となる。また、図25 (b)の右側の例では、挿入ビットSBの次のビットからsync_0_len −1ビットの区間が全て“0”であっても挿入ビットSBが“1”になるため、同期符号挿入区間に必ず1ビット以上の“1”が入ることになり、同期符号と同一のビットパターンは生じない。また、挿入ビットSBはパリティチェックビットとしても働くため、この区間に混入したビット誤りを検出することが可能である。 FIG. 25B shows an output code string that has undergone such a bit insertion process. In this example, a one-bit insertion bit SB is inserted into the first part from the synchronization code insertion position. The insertion bit SB is determined such that the number of "1" in the section obtained by adding the sync_0_len -1 bit from the next bit is always an odd number. For example, in the example on the left side of FIG. 25B, the insertion bit SB is “1”. Also, in the example on the right side of FIG. 25B, even if all the sections of sync_0_len-1 bits from the bit following the insertion bit SB are “0”, the insertion bit SB becomes “1”. One or more bits of "1" always enter the section, and the same bit pattern as the synchronization code does not occur. Also, since the insertion bit SB also functions as a parity check bit, it is possible to detect a bit error mixed in this section.

 また、挿入ビットSBを次の同期符号挿入位置までの全ビットの奇パリティチェックビットとしてもよい。但し、挿入ビットのSB次のビットからsync_0_len −1ビットが全て“0”の場合のみ同期符号と同一のビットパターンの出現を避けるために、挿入ビットSBを必ず“1”とする。これにより、全ビットのパリティチェックによる誤り検出を行うことが可能である。 {Circle around (2)} The insertion bit SB may be an odd parity check bit of all bits up to the next synchronization code insertion position. However, the insert bit SB is always set to “1” in order to avoid the appearance of the same bit pattern as the synchronization code only when all of the sync_0_len−1 bits from the bit next to the SB of the insert bit are “0”. Thereby, it is possible to perform error detection by parity check of all bits.

 誤りによる同期符号の誤検出の確率を低くするためには、より多くのビット数を挿入することが望ましい。例えば、nビットの誤りが入っても同期を正しく検出するためには、この区間の予め定められた位置に2×n+1ビットの“1”を挿入する。 In order to lower the probability of erroneous detection of a synchronization code due to an error, it is desirable to insert a larger number of bits. For example, in order to correctly detect synchronization even if an n-bit error occurs, 2 × n + 1-bit “1” is inserted at a predetermined position in this section.

 本実施形態では、上述のビット挿入器1211の動作に対応して、図24のビット除去器1905の動作も異なったものになる。すなわち、ビット除去器1905ではビット挿入器1211でビット挿入を行った予め定められた位置の挿入ビットSBを削除する処理を行う。 In the present embodiment, the operation of the bit remover 1905 in FIG. 24 is different from the operation of the bit inserter 1211 described above. That is, the bit remover 1905 performs a process of deleting the insertion bit SB at a predetermined position where the bit insertion has been performed by the bit inserter 1211.

 ここで、挿入ビットSBを常に“1”とした場合には、入力符号列205′中のビット挿入位置にあるビットが“0”であったときビット誤りと判定して、誤り検出信号(図示しない)を逆多重化器811に出力し、復号画像に大きな劣化を生じないようにするための処理を行ってもよい。 Here, if the insertion bit SB is always “1”, if the bit at the bit insertion position in the input code string 205 ′ is “0”, it is determined that a bit error has occurred and an error detection signal (shown in FIG. No) may be output to the demultiplexer 811 to perform processing for preventing the decoded image from being significantly degraded.

 第1〜第4の実施形態においては、多重化器111における多重化は図2のように予測モード情報303、動きベクトル情報304、および、残差DCT計数305を符号化フレームを単位としてまとめて多重化する例を示したが、図26のように符号化領域(例えばマクロブロック、GOB等)単位に予測モード情報303、動きベクトル情報304、残差DCT計数305をまとめるように多重化してもよい。この場合、ピクチャヘッダ302と、それ以外の情報とで異なる誤り訂正/検出符号を用いてもよいし、同一の誤り訂正/検出符号を用いてもよい。あるいは、ピクチャヘッダのみに誤り訂正/検出符号を用いてもよいし、各フレームの予め定められたビット数の一部の符号列に誤り訂正/検出符号を用いてもよいし、誤り訂正/検出符号を全く用いなくともよい。 In the first to fourth embodiments, the multiplexing in the multiplexer 111 is performed by combining the prediction mode information 303, the motion vector information 304, and the residual DCT count 305 in units of encoded frames as shown in FIG. Although an example of multiplexing has been described, as shown in FIG. 26, even if multiplexing is performed such that the prediction mode information 303, the motion vector information 304, and the residual DCT count 305 are grouped in units of coding regions (for example, macroblocks, GOBs, etc.). Good. In this case, different error correction / detection codes may be used for the picture header 302 and other information, or the same error correction / detection code may be used. Alternatively, an error correction / detection code may be used only for a picture header, an error correction / detection code may be used for a part of a predetermined number of bits in each frame, or an error correction / detection code may be used. The sign need not be used at all.

 また、フレーム(ピクチャ)単位だけでなく、フレーム内の部分領域や、複数のフレームをまとめたレイヤ単位で多重化を行い、これらの多重化単位(レイヤ単位)毎に同期符号を挿入してもよい。 Also, multiplexing is performed not only on a frame (picture) basis but also on a partial area in a frame or on a layer basis in which a plurality of frames are put together, and a synchronization code is inserted for each of these multiplexing units (layer units). Good.

 図28は、このような多重化の例を示したものである。この図28の例では、複数の符号化ブロックをまとめたマクロブロック、複数のマクロブロックをまとめたGOB、ピクチャ(フレーム)、複数のピクチャをまとめたセッションの4つのレイヤ毎に多重化を行う。これらのうち、セッション、ピクチャ、GOBの各レイヤは、それぞれの同期符号(図中SSC,SEC,PSC,GSC)を用いる。SSC,SEC,PSC,GSCにはそれぞれ異なる符号を用い、どのレイヤの同期符号が検出されたかを区別できるようにする。図5のような同期符号を用いる場合、同期符号の種類を示すsync_nb_len ビットの部分でこれらの同期符号の区別を行えばよい。 FIG. 28 shows an example of such multiplexing. In the example of FIG. 28, multiplexing is performed for each of four layers: a macroblock in which a plurality of encoded blocks are combined, a GOB in which a plurality of macroblocks are combined, a picture (frame), and a session in which a plurality of pictures are combined. Of these, each layer of session, picture, and GOB uses respective synchronization codes (SSC, SEC, PSC, GSC in the figure). Different codes are used for SSC, SEC, PSC, and GSC, respectively, so that it is possible to distinguish which layer's synchronization code has been detected. In the case of using the synchronization codes as shown in FIG. 5, the synchronization codes may be distinguished from each other by the sync_nb_len bits indicating the types of the synchronization codes.

 このような多重化を行った場合も、セッション、ピクチャ、GOBの同期符号の一部ないしは全てに対して前述の実施形態におけるフレーム同期符号と同様の処理を行ってもよい。図29は、このような処理を行った出力符号列の一例を示したものである。同図に示されるように、PSC,GSCの前にスタッフィングビットSTUFFが挿入されており、SSC,PSC,GSCは図中矢印の同期符号挿入位置に挿入されている。このため、前述の実施形態でフレーム同期符号PSCについて説明したのと同様に、各同期符号の検出精度が向上する。 Even when such multiplexing is performed, the same processing as the frame synchronization code in the above-described embodiment may be performed on some or all of the synchronization codes of the session, picture, and GOB. FIG. 29 shows an example of an output code string that has undergone such processing. As shown in the figure, a stuffing bit STUFF is inserted before PSC and GSC, and SSC, PSC and GSC are inserted at the synchronization code insertion positions indicated by arrows in the figure. For this reason, the detection accuracy of each synchronization code is improved as in the case of the frame synchronization code PSC described in the above embodiment.

 図15、図16および図17のフレーム長情報POINTERと同様の長さ情報をセッション、ピクチャ、GOBの各同期符号に付加することも可能である。図15および図16のように、フレーム長情報POINTERに対して誤り訂正/検出符号による保護を行っている場合、フレーム長情報POINTERのみでなく、同期符号の種類を示すsync_nb_len ビットの部分に対しても併せて誤り訂正/検出符号を用いることにより、同期符号の位置のみでなく、その種類も正しく検出できる確率が向上する。また、セッション、ピクチャ、GOBのヘッダ情報(図中SH,PH,GF)の一部または全部も併せて誤り訂正/検出符号を用いて保護を行ってもよく、これによって各ヘッダ情報の誤り耐性も向上する。 の 長 It is also possible to add the same length information as the frame length information POINTER in FIGS. 15, 16 and 17 to each synchronization code of session, picture and GOB. As shown in FIGS. 15 and 16, when the frame length information POINTER is protected by the error correction / detection code, not only the frame length information POINTER but also the sync_nb_len bit portion indicating the type of the synchronization code is used. In addition, by using the error correction / detection code, the probability that not only the position of the synchronization code but also its type can be correctly detected is improved. Further, a part or all of the header information (SH, PH, GF in the figure) of the session, the picture, and the GOB may be protected by using an error correction / detection code. Also improve.

 本実施形態のように疑似同期符号を防止するためのスタッフィング処理を行う場合、以下のような処理を行って同期符号挿入間隔sync_periodを同期符号の長さ以下にすることも可能である。 In the case where stuffing processing for preventing a pseudo-synchronous code is performed as in the present embodiment, the following processing may be performed to make the synchronous code insertion interval sync_period less than or equal to the length of the synchronous code.

 まず、動画像符号化装置の出力符号化装量における処理について説明する。ここで、同期符号は図5に示すようにsync_0_len ビットの“0”と1ビットの“1”からなる符号語とする。図23の出力符号化装置において、ビット挿入器1211から出力したビット数を示す計数値1221を total_len とすれば、 total_len を同期符号挿入間隔sync_periodで除した剰余が、同期符号の最初の“0”のビット数sync_0_len から1を引いた値をsync_periodで除した剰余と一致したとき、すなわち、 
  total_len mod sync_period 
  =(sync_0_len −1)mod sync_period      (1) 
となったとき、そのときの出力ビットから(sync_0_len −1)ビット前までの出力ビット中の“1”の数(n1とする)を計数し、“1”が全くなかったら(すなわち、n1=0であったら)1ビットの“1”を挿入する。
First, the processing in the output coding amount of the moving picture coding apparatus will be described. Here, as shown in FIG. 5, the synchronization code is a code word composed of “0” of sync_0_len bits and “1” of 1 bit. In the output coding apparatus of FIG. 23, if the count value 1221 indicating the number of bits output from the bit inserter 1211 is defined as total_len, the remainder obtained by dividing total_len by the synchronization code insertion interval sync_period is the first “0” of the synchronization code. When the value obtained by subtracting 1 from the number of bits of sync_0_len of 1 matches the remainder obtained by dividing by sync_period, that is,
total_len mod sync_period
= (Sync_0_len -1) mod sync_period (1)
, The number of “1” s in the output bits from the current output bit to (sync_0_len−1) bits before (n1) is counted, and if there is no “1” at all (that is, n1 = If it is 0) 1-bit "1" is inserted.

 図33(a)に、このような処理を行った出力符号列の例を示す。図中、下向きの矢印が同期符号挿入位置を示しており、同期符号は23ビットの“0”(すなわち、sync_0_len =23)と、1ビットの“1”からなる。図の例では同期符号挿入間隔sync_perod は同期符号の長さ(=24ビット)よりも短い8である。 FIG. 33A shows an example of an output code string that has undergone such processing. In the figure, the downward arrow indicates the synchronization code insertion position, and the synchronization code is composed of 23-bit “0” (that is, sync_0_len = 23) and 1-bit “1”. In the example of the figure, the synchronization code insertion interval sync_perod is 8, which is shorter than the length of the synchronization code (= 24 bits).

 図中、区間1〜4は前述のn1を計数する区間を示している。各区間で順次 “1”の数n1を計数し、n1=0であったらば、その区間の次のビットにスタッフィングビットを挿入する。区間1ではn1>0なので、スタッフィングの必要はない。区間2ではn1=0となるので、この区間の次に1ビットのスタッフィングビット3301を挿入する。区間3ではスタッフィング3301が挿入されたことにより、n1=1となるため、スタッフィングビットを挿入する必要はない。 区間 In the figure, sections 1 to 4 indicate sections for counting the above-mentioned n1. The number n1 of “1” is sequentially counted in each section, and if n1 = 0, a stuffing bit is inserted into the next bit of the section. Since n1> 0 in section 1, there is no need for stuffing. Since n1 = 0 in section 2, one stuffing bit 3301 is inserted after this section. In section 3, since stuffing 3301 has been inserted, n1 = 1, so there is no need to insert a stuffing bit.

 以上のようなビットスタッフィング処理を行うことにより、出力符号列中の同期符号以外の部分で同期符号と同一のビットパターンが無くなるため、疑似同期を生じることが無くなる。 By performing the bit stuffing process as described above, the same bit pattern as the synchronization code in the portion other than the synchronization code in the output code string is eliminated, so that pseudo synchronization does not occur.

 一方、伝送路誤りによる同期符号の誤検出の確率を低くするためには、以下のようにビット挿入を行えばよい。 On the other hand, in order to lower the probability of erroneous detection of a synchronization code due to a transmission line error, bits may be inserted as follows.

 同期符号にnビット誤りが混入した場合にも、同期符号を正しく検出するためには、ビット挿入1211において、出力符号列中の同期符号以外の部分と同期符号とのハミング距離が2×n+1以上になるようにビット挿入処理を行えばよい。 Even if an n-bit error is mixed in the synchronization code, in order to correctly detect the synchronization code, in the bit insertion 1211, the Hamming distance between the portion other than the synchronization code in the output code sequence and the synchronization code is 2 × n + 1 or more. The bit insertion processing may be performed so that

 これは、図23における出力符号列205の総ビット数を示す計数値1221 total_len を同期符号挿入間隔sync_periodで除した剰余が、同期符号の最初の“0”のビット数sync_0_len から2×n+1を引いた値をsync_periodで除した剰余と一致したとき、すなわち、
  total_len mod sync_period
  =(sync_0_len −(2×n+1))mod sync_period (2) 
となったとき、そのときの出力ビットから(sync_0_len −(2×n+1))ビット前までの出力ビット中の“1”の数(n1とする)を計数し、“1”の数が(2×n+1)未満、すなわち 
  n1<2×n+1 
であったら、(2×n+1−n1)ビット“1”を挿入する。
This is because the remainder obtained by dividing the count value 1221 total_len indicating the total number of bits of the output code string 205 in FIG. 23 by the synchronization code insertion interval sync_period subtracts 2 × n + 1 from the first synchronization bit number “0” of the synchronization code, sync_0_len. Value equal to the remainder obtained by dividing the value by sync_period, that is,
total_len mod sync_period
= (Sync_0_len- (2 × n + 1)) mod sync_period (2)
, The number of “1” s (referred to as n1) in the output bits up to (sync_0_len− (2 × n + 1)) bits before the output bit at that time is counted, and the number of “1” s becomes (2 × n + 1), that is,
n1 <2 × n + 1
Then, (2 × n + 1−n1) bits “1” are inserted.

 図5に示したような複数ビットの“0”から始まる同期符号を用いる場合、同期符号の直前のビット列中の“1”の数が少ないとこの部分で同期誤検出が起こることがある。これを防ぐために、同期符号からその直前の同期符号挿入位置までのsync_periodビットの区間の“1”のビット数が2×n+1ビット以上になるように、フレームの最後の区間のビット挿入(図20中、STUFF)を出力するようにしても良い。 (5) When using a synchronization code starting from a plurality of bits “0” as shown in FIG. 5, if the number of “1” s in the bit string immediately before the synchronization code is small, an erroneous synchronization detection may occur in this part. In order to prevent this, the bit insertion in the last section of the frame (FIG. 20) is performed so that the number of “1” bits in the section of the sync_period bit from the synchronization code to the immediately preceding synchronization code insertion position is 2 × n + 1 bits or more. (Medium, STUFF) may be output.

 これには、必ず2×n+1ビット以上の“1”が含まれるSTUFFを用いてもよいし、あるいは出力符号列に応じてSTUFFを決定するようにしてもよい。すなわち、STUFFを含めた出力狩号列中の、同期符号の直前のsync_periodビットの“1”のビット数が2×n+1ビット以上になるように、STUFFを決定してもよい。 For this, a STUFF that always includes “1” of 2 × n + 1 bits or more may be used, or the STUFF may be determined according to an output code string. That is, the STUFF may be determined such that the number of “1” bits of the sync_period bit immediately before the synchronization code in the output signal sequence including the STUFF is 2 × n + 1 bits or more.

 図33(b)に、このような処理を行った出力符号列の例を示す。図中、区間1〜4は前述のn1を計数する区間を示している。各区聞で順次“1”の数をn1を計数し、n1<2×n+1であったらその区間の次のビットにスタッフィングビットを挿入する。区間2ではn1=1となるので、この区間の次に(2×n+1)−1=2ビットのスタッフィングビット3311を挿入する。区間3ではスタッフィング3311が挿入されたことによりn1=3となるため、スタッフィングビットを挿入する必要は無い。 FIG. 33B shows an example of an output code string that has undergone such processing. In the figure, sections 1 to 4 indicate sections for counting the above-mentioned n1. In each section, the number of "1" s is counted as n1, and if n1 <2 × n + 1, a stuffing bit is inserted into the next bit in the section. Since n1 = 1 in section 2, a stuffing bit 3311 of (2 × n + 1) -1 = 2 bits is inserted after this section. In section 3, since stuffing 3311 has been inserted, n1 = 3, so there is no need to insert a stuffing bit.

 さらに、同期符号の直前の部分での同期符号誤検出を防ぐために、以下のようにSTUFFを決定する。STUFFの直前のビットを3312とする。このビット3312の直前の同期符号挿入位置から直後の同期符号挿入位置までのsync_periodビット間(区間5)の“1”の数は1ビットしかないため、図5のような複数の“0”が連続する同期符号を用いる場合にはこの部分で同期誤検出を生じる可能性がある。このため、同期符号を挿入する位置を次の同期符号挿入位置までずらし、多くの“1”を含むSTUFF3313を出力する。これにより、同期符号の直前のsync_periodビット区間(区間6)には2×n+1ビット以上の“1”が含まれるようになるため、同期誤検出を防止することができる。 Further, in order to prevent false detection of the synchronization code in the part immediately before the synchronization code, STUFF is determined as follows. The bit immediately before STUFF is set to 3312. Since there is only one bit of “1” between sync_period bits (section 5) from the synchronization code insertion position immediately before this bit 3312 to the synchronization code insertion position immediately after this bit 3312, a plurality of “0” as shown in FIG. When a continuous synchronization code is used, there is a possibility that a synchronization error is detected in this portion. Therefore, the position where the synchronization code is inserted is shifted to the next synchronization code insertion position, and STUFF 3313 including many “1” s is output. As a result, the sync_period bit section (section 6) immediately before the synchronization code includes “1” of 2 × n + 1 bits or more, so that erroneous detection of synchronization can be prevented.

 以上のようなビットスタッフィング処理を行うことにより、出力符号列中の同期符号以外の部分で同期符号とのハミング距離を2×n+1以上にすることができるため、同期誤検出の確率が減少する。 By performing the bit stuffing process as described above, the hamming distance from the synchronization code in a portion other than the synchronization code in the output code string can be set to 2 × n + 1 or more, so that the probability of synchronization error detection is reduced.

 次に、動画像復号化装置の入力復号化装置における処理について説明する。図24のビット除去器1905において、入力した符号列のビット数を示す計数値1905を total_len とすれば、 total_len が1の条件を満たす値になった時点で、そのときの入力ビットから(sync_0_len −1)ビット前までの入力ビット中の“1”の数(n1とする)を計数し、“1”が全くなかったら、すなわち、n1=0であったら、1ビット削除する。 Next, processing in the input decoding device of the video decoding device will be described. In the bit remover 1905 in FIG. 24, if the count value 1905 indicating the number of bits of the input code string is defined as total_len, when the total_len becomes a value satisfying the condition of 1, from the input bits at that time, (sync_0_len − 1) Count the number of "1" (n1) in the input bits up to the bit before, and if there is no "1", that is, if n1 = 0, delete one bit.

 同期符号にnビット誤りが混入した場合にも同期符号を検出するために、ビット挿入器1211で出力符号列中の同期符号以外の部分と同期符号とのハミング距離力2×n+1以上になるようにビット挿入処理を行った場合には、次のような処理を行えばよい。 total_len が式(2)を満たす値になった時点で、そのときの入力ビットから(sync_0_len −(2×n+1))ビット前までの出力ビット中の“1”の数(n1とする)を計数し、“1”の数が(2×n+1)未満、すなわち 
  n1<(2×n+1) 
であったら(2×n+1−n1)ビット削除する。
In order to detect a synchronization code even when an n-bit error is mixed in the synchronization code, the bit inserter 1211 controls the Hamming distance between the portion other than the synchronization code in the output code sequence and the synchronization code to be 2 × n + 1 or more. When the bit insertion processing is performed on the first bit, the following processing may be performed. When the total_len becomes a value satisfying the expression (2), the number of “1” s (referred to as n1) in the output bits from the input bit at that time to (sync_0_len− (2 × n + 1)) bits before is counted. And the number of “1” is less than (2 × n + 1), that is,
n1 <(2 × n + 1)
Then, (2 × n + 1−n1) bits are deleted.

 出力符号化装置および入力復号化装置において以上のような処理を行って、同期符号挿入間隔sync_periodを同期符号の長さ以下の短いビット数とすることにより、スタッフィングブットSTUFFのビット数が削減され、符号化効率力が向上する。特に、同期符号の長さが長い場合や、多くの同期符号が挿入される場合には、このスタッフィングビットSTUFFのビット数削減による符号化効率向上の度合いが大きい。例えば、動画像符号化におけるGOB/スライスのように、画面を1ないし複数のマクロブロック、あるいはマクロブロックライン毎に区切り、その単位毎に同期符号を挿入する方式においては、多くの同期符号が挿入されるため、STUFFのビット数削減による符号化効率の度合いがより大きくなる。 By performing the above processing in the output encoding device and the input decoding device, and by setting the synchronization code insertion interval sync_period to a short number of bits equal to or less than the length of the synchronization code, the number of bits of the stuffing bit STUFF is reduced, Encoding efficiency is improved. In particular, when the length of the synchronization code is long or when many synchronization codes are inserted, the degree of improvement in coding efficiency by reducing the number of stuffing bits STUFF is large. For example, in a system in which a screen is divided into one or a plurality of macroblocks or macroblock lines and a synchronization code is inserted for each unit, such as GOB / slice in video coding, many synchronization codes are inserted. Therefore, the degree of coding efficiency by reducing the number of bits of STUFF is further increased.

 また、図28のように複数のレイヤ構造の多重化を行う場合には、レイヤに応じで異なる長さの同期符号を用いるようにしても良い。 In addition, when multiplexing a plurality of layer structures as shown in FIG. 28, a synchronization code having a different length may be used depending on the layer.

 図34(a)は、このような同期符号の例を示したものである。4種類の同期符号のうち、SSC,SEC,PSCはいずれも23ビットの“0”、1ビットの“1”、および同期符号の種類を示す8ビットの合計32ビットからなる。一方、GOBレイヤの同期符号GSCは、16ビットの“0”と1ビットの“1”からなる17ビットの同期符号であり、他の同期符号より短い符号語である。 FIG. 34 (a) shows an example of such a synchronization code. Of the four types of synchronization codes, SSC, SEC, and PSC each consist of a total of 32 bits of 23 bits “0”, 1 bit “1”, and 8 bits indicating the type of synchronization code. On the other hand, the synchronization code GSC of the GOB layer is a 17-bit synchronization code composed of 16-bit "0" and 1-bit "1", and is a shorter codeword than other synchronization codes.

 このようにGSCのみを短い符号語としたのは、GOBは1ないし複数のマクロブロック(MB)からなる、画面内を小領域に区切った符号化単位であることから、一般にGOBレイヤの同期符号は他の同期符号に比べて数が多く、同期符号語長を短くすることで、出力符号列の符号量を削減することができるためである。また、このようにすると、同じ符号量ならばより多くのGSCを出力することができ、画面内をより細かなGOB領域に区切って符号化することが可能になるため、伝送路誤りが発生したときの再生画像の品質が向上する。 The reason why only the GSC is a short codeword is that the GOB is a coding unit which is composed of one or a plurality of macroblocks (MB) and is divided into small areas in the screen. This is because the number is larger than other synchronization codes, and the code amount of the output code string can be reduced by shortening the synchronization code word length. Further, in this case, if the same code amount is used, more GSCs can be output, and it becomes possible to divide the screen into finer GOB areas and perform coding, so that a transmission path error occurs. The quality of the reproduced image at the time is improved.

 第4の実施形態で説明したような疑似同期を防止するための処理、すなわち、同期符号以外の符号列中に同期符号と同一のビットパターンを生じないようにするビットスタッフィング処埋を行うようにしてもよい。伝送路誤りによる同期符号の誤検出の確率を低くするためのビットスタッフィング処理、例えば、ビット長の長い同期符号(図34(a)の例ではSSC,SEC,PSC)と同一のビットパターンが生じないことだけが保証されているビット列に対しても、最も短い同期符号(図34(a)の例ではGSC)と同一のパターンが生じないようにビットスタッフィング処理を行えば、全ての同期符号と同一のビットパターンが生じないようにすることができる。この処理は、全レイヤの符号列に対して行ってもよいし、最も短い符号を用いるレイヤより下位のレイヤ(図の例ではGOBレイヤ、マクロブロックレイヤ)の符号列に対して行ってもよいし、そのレイヤよりも一つ上のレイヤ以下のレイヤ(ピクチャレイヤ、GOBレイヤ、マクロブロックレイヤ)の符号列に対して行ってもよい。さらに、この処理を予め定められたレイヤの符号列に対してのみ行ってもよい。 The processing for preventing the pseudo synchronization as described in the fourth embodiment, that is, the bit stuffing processing for preventing the same bit pattern as the synchronization code from being generated in a code string other than the synchronization code is performed. You may. Bit stuffing processing to reduce the probability of erroneous detection of a synchronization code due to a transmission line error, for example, the same bit pattern as a synchronization code having a long bit length (SSC, SEC, PSC in the example of FIG. 34A) occurs. Even for a bit string that is guaranteed only to be non-existent, if bit stuffing processing is performed so that the same pattern as the shortest synchronization code (GSC in the example of FIG. 34A) does not occur, all synchronization codes can be used. The same bit pattern can be prevented from occurring. This process may be performed on the code sequence of all layers, or may be performed on the code sequence of a layer lower than the layer using the shortest code (GOB layer, macro block layer in the example in the figure). However, the processing may be performed on a code string of a layer (a picture layer, a GOB layer, a macroblock layer) below the layer one layer above the layer. Further, this processing may be performed only on a code sequence of a predetermined layer.

 伝送路誤りが生じても長さの異なる同期符号同土を識別しやすくするために、同期符号語およびその前後の処理を以下のようにしてもよい。 (4) In order to make it easy to identify synchronous codes having different lengths even when a transmission line error occurs, the synchronous codeword and the processing before and after the synchronous codeword may be performed as follows.

 (i) 複数ビットの“0”と、それに続く“1”からなる同期符号を用いる場合には、長い符号語と短い符号語で、この“1”の同期符号挿入位置から見た相対位置が異なるようにしてもよい。図34(b)の例では、PSCの“1”3411と、GSCの“1”3412は異なる位置にあり、別の同期符号中の同位量のビット(3411に対する3413、および3412に対する3414)はいずれも“0”である。このようにする事によリ同期符号およびその部分列のハミング距離が大きくなるため、伝送路誤りが生じても異なる同期符号同士を識別しやすくなる。 (i) When using a synchronization code consisting of a plurality of bits “0” followed by a “1”, the relative position of the long code word and the short code word as viewed from the synchronization code insertion position of the “1” is It may be different. In the example of FIG. 34B, the “1” 3411 of the PSC and the “1” 3412 of the GSC are at different positions, and the bits of the same amount (3413 for 3411 and 3414 for 3412) in another synchronization code are Both are "0". By doing so, the Hamming distance between the re-synchronization code and the partial sequence thereof increases, so that even when a transmission line error occurs, different synchronization codes can be easily distinguished from each other.

 (ii)長さの短い同期符号の前にスタッフィングビットを挿入しても良い。例えば、図中3401のように長さの短いGSCの前に1ないし複数の“1”からなるスタッフィングビット3401を挿入することにより、OSCと他の同期符号の部分列とのハミング距離を大きくすることができる。 (Ii) A stuffing bit may be inserted before the short synchronization code. For example, by inserting a stuffing bit 3401 consisting of one or a plurality of "1s" before a GSC having a short length as shown in FIG. 3401, the hamming distance between the OSC and the sub-sequence of another synchronization code is increased. be able to.

 (iii) 長さの短い同期符号の後ろにスタッフィングビットを挿入してもよい。例えば、長い同期符号中の同期符号の種類を識別する部分とのハミング距離が大きくなるように、GSCの後ろにビット挿入3402を行ってもよい。 (Iii) A stuffing bit may be inserted after the short-length synchronization code. For example, the bit insertion 3402 may be performed after the GSC so that the Hamming distance from the part for identifying the type of the synchronization code in the long synchronization code is increased.

 (第5の実施形態) 
 次に、本発明に係る第5の実施形態について説明する。 
 本実施形態による動画像符号化装置および動画像復号化装置の全体の構成は第1の実施形態と同様であり、出力符号化装置200および入力復号化装置800の1同期区間の最初および最後の部分での処理がこれまでの実施形態と異なっている。
(Fifth embodiment)
Next, a fifth embodiment according to the present invention will be described.
The overall configuration of the moving picture coding apparatus and the moving picture decoding apparatus according to the present embodiment is the same as that of the first embodiment, and the first and last of one synchronization section of the output coding apparatus 200 and the input decoding apparatus 800. The processing in the part is different from the previous embodiments.

 図27(a)(b)(c)は、本実施形態における動画像符号化装置からの出力符号列205の一例を示す図である。この出力符号列205は、同期符号PSCの後に前フレーム(フレームn−1)の符号列の一部2701が入っており、この符号列2701と現フレーム(nフレーム)の符号列との境界2703(現フレームの符号列のスタートポイント)、言い換えれば多重化符号列の境界を示すポインタ情報2702(SA)があり、これに伴い1フレームの最後のスタッフィングビット(図4中STUFF)が無くなっていることが図4の出力符号列と異なっている。 FIGS. 27A, 27B, and 27C are diagrams illustrating an example of an output code string 205 from the video encoding device according to the present embodiment. The output code string 205 includes a part 2701 of the code string of the previous frame (frame n-1) after the synchronization code PSC, and a boundary 2703 between the code string 2701 and the code string of the current frame (n frame). There is (start point of the code string of the current frame), in other words, pointer information 2702 (SA) indicating the boundary of the multiplexed code string, and accordingly, the last stuffing bit of one frame (STUFF in FIG. 4) is lost. This is different from the output code string of FIG.

 動画像符号化装置内の出力符号化装置200においては、各同期符号挿入位置においてそのフレームの残りの符号列のビット数 resid_bit をチェックする。 resid_bit と同期符号PSCとポインタ情報SAのビット数の和が同期符号挿入間隔sync_periodビットよりも少ない場合には、そのフレームの残りの符号列を出力符号列205中に出力する前に、同期符号PSCを出力する。次に、ポインタ情報SA(この場合、 resid_bit を表す)を出力し、その後に残りの符号列2701を出力する。その後、次のフレームの符号列を出力していく。 The output coding device 200 in the video coding device checks the number of bits resid_bit of the remaining code string of the frame at each synchronization code insertion position. If the sum of the resid_bit, the synchronization code PSC, and the bit number of the pointer information SA is smaller than the synchronization code insertion interval sync_period bits, the synchronization code PSC is output before the remaining code sequence of the frame is output to the output code sequence 205. Is output. Next, pointer information SA (in this case, representing resid_bit) is output, and thereafter, the remaining code string 2701 is output. After that, the code sequence of the next frame is output.

 動画像復号化装置内の入力符号化装置800においては、各同期符号挿入位置において同期符号の検出を行い、同期符号が検出された場合にはその後ろにポインタ情報SAとフレームの残りの情報が続いているものとして処理を行う。 In the input encoding device 800 in the video decoding device, the synchronization code is detected at each synchronization code insertion position, and when the synchronization code is detected, the pointer information SA and the remaining information of the frame are placed behind the synchronization code. The processing is performed assuming that it is continued.

 図27中のフレームn−1とフレームnの境界部を例に説明すると、同期符号PSCの直前2704までの復号処理を終えた後、その後ろの同期符号挿入区間で同期符号を検出し、同期符号が検出された場合には、次にポインタ情報2702の復号化し、フレームn−1の符号列があと何ビットあるかを求める。これを基にして、ポインタ情報の直後の符号列からポインタ情報で示されるビット数を取り出し(図27中2703まで)、これが2704に続くものとして符号列801を出力する。その後ろの符号列(図27中2703から)は次のフレーム、すなわちフレームnとして処理を行う。 Taking the boundary part between frame n-1 and frame n in FIG. 27 as an example, after the decoding processing up to 2704 immediately before the synchronization code PSC is completed, the synchronization code is detected in the synchronization code insertion section after that, If a code is detected, the pointer information 2702 is decoded next to determine how many more bits are left in the code string of frame n-1. Based on this, the number of bits indicated by the pointer information is extracted from the code sequence immediately after the pointer information (up to 2703 in FIG. 27), and the code sequence 801 is output assuming that this follows 2704. The subsequent code string (from 2703 in FIG. 27) is processed as the next frame, that is, frame n.

 本実施形態においては、図27(a)に示すように出力符号列の一部または全てに対して誤り訂正/検出符号化を行ってもよい。この場合、誤り訂正/検出符号の種類は全て同じでもよいし、異なるものを用いてもよい。 In the present embodiment, as shown in FIG. 27A, error correction / detection coding may be performed on part or all of an output code string. In this case, the types of error correction / detection codes may be the same, or different types may be used.

 また、図27(b)に示すように、誤り訂正/検出符号化を行わないようにしてもよい。 誤 り Alternatively, as shown in FIG. 27B, error correction / detection coding may not be performed.

 さらに、図27(c)のように、図15や図16に示したような1フレームの符号列ビット数を示すフレーム長情報POINTERを挿入してもよい。この場合、フレーム長情報POINTERは、そのフレームの同期符号PSCから次のフレームの同期符号PSCまでのビット数を表すようにしてもよい。 {Circle around (4)} Further, as shown in FIG. 27C, frame length information POINTER indicating the number of code string bits of one frame as shown in FIGS. 15 and 16 may be inserted. In this case, the frame length information POINTER may indicate the number of bits from the synchronization code PSC of the frame to the synchronization code PSC of the next frame.

 図27(a)のように誤り訂正/検出符号化を行う場合、同期符号PSCから次の検査ビットCHKまでの部分の誤り訂正/検出符号化は、ポインタ情報SA、フレームn−1の残りの符号列2701および、2703以降のフレームnの符号列をまとめてひとつの情報ビットとして誤り訂正/検出符号を行う。 When error correction / detection coding is performed as shown in FIG. 27A, error correction / detection coding of a portion from the synchronization code PSC to the next check bit CHK is performed by the pointer information SA and the remaining of the frame n-1. The error correction / detection code is performed by combining the code strings 2701 and the code strings of frame n after 2703 as one information bit.

 ポインタ情報SAは誤り訂正/検出符号化を行った情報としてもよい。この場合、同期符号PSC(あるいはその一部)、フレーム長情報POINTERとポインタ情報を合わせて誤り訂正/検出符号化を行うようにしてもよい。 The pointer information SA may be information obtained by performing error correction / detection encoding. In this case, error correction / detection coding may be performed by combining the synchronization code PSC (or a part thereof), the frame length information POINTER, and the pointer information.

 次に、スタッフィングビットSTUFFの具体例を説明する。 Next, a specific example of the stuffing bit STUFF will be described.

 図30(a)(b)は、上述したスタッフィングビットSTUFFの具体例としてのスタッフィングビットSTUFFの符号表の例を示した図である。図30(a)(b)のいずれも、出力符号列の逆方向から一意に復号できることが特徴であり、これによってスタッフィングビットSTUFFの開始位置を一意に特定できる。従って、スタッフィングビットSTUFFの直前の符号列の復号終了位置と、スタッフィングビットSTUFFの開始位置を比較することにより、符号列中に混入した誤りを検出できると共に、同期符号から逆方向に復号を行う符号化方式に用いた場合に逆方向復号の開始地点を特定することができる。 FIGS. 30A and 30B are diagrams showing an example of a code table of the stuffing bit STUFF as a specific example of the stuffing bit STUFF described above. Each of FIGS. 30 (a) and 30 (b) is characterized in that it can be uniquely decoded from the reverse direction of the output code string, whereby the start position of the stuffing bit STUFF can be uniquely specified. Therefore, by comparing the decoding end position of the code string immediately before the stuffing bit STUFF with the start position of the stuffing bit STUFF, it is possible to detect an error mixed in the code string and to perform decoding in the reverse direction from the synchronization code. In this case, it is possible to specify the starting point of the backward decoding when used in the decoding scheme.

 さらに、図30(a)(b)の符号表に示すスタッフィングビットSTUFFは、その最初のビットが必ず“0”になっており、後述のような簡易的な復号による誤り検出が可能である。 Further, the first bit of the stuffing bit STUFF shown in the code table of FIGS. 30A and 30B is always “0”, and error detection can be performed by simple decoding as described later.

 図31は、図30(a)(b)の符号表に示したスタッフィングビットSTUFFを含む符号列の復号処理の例を示したものである。図31では、同期符号挿入位置の直前のスタッフィングビットの例を示しているが、これ以外の任意の同期符号挿入位置の直前にスタッフィングビットビットを挿入して同様の処理を行うことも可能である。図31中、矢印3101〜3103は順方向に復号化を行った場合のスタッフィングビットSTUFFの直前の符号列(“×××…”で示す)の復号終了位置の例であり、矢印の右端が復号終了位置を表す。符号列に誤りが混入しておらず、正常に復号化が行われた場合には、矢印3101のようにスタッフィングビットSTUFFの直前の符号列の復号終了位置とスタッフィングビットSTUFFの開始位置は一致する。 FIG. 31 shows an example of a decoding process of a code string including the stuffing bits STUFF shown in the code tables of FIGS. 30 (a) and 30 (b). FIG. 31 shows an example of the stuffing bits immediately before the synchronization code insertion position. However, similar processing can be performed by inserting stuffing bit bits immediately before any other synchronization code insertion position. . In FIG. 31, arrows 3101 to 3103 are examples of the decoding end position of the code string (indicated by “xxx ...”) immediately before the stuffing bit STUFF when decoding is performed in the forward direction. Indicates the decoding end position. If no error is mixed in the code string and decoding is performed normally, the decoding end position of the code string immediately before the stuffing bit STUFF matches the start position of the stuffing bit STUFF as indicated by an arrow 3101. .

 一方、符号列に誤りが混入した場合には、スタッフィングビットSTUFFの直前の符号列の復号終了位置は矢印3102、3103のようにスタッフィングビットSTUFFの開始位置とずれる。このような場合には、符号列に誤りがあったと判定する。 On the other hand, when an error is mixed in the code string, the decoding end position of the code string immediately before the stuffing bit STUFF is shifted from the start position of the stuffing bit STUFF as shown by arrows 3102 and 3103. In such a case, it is determined that there is an error in the code string.

 復号化装置においては、スタッフィングビットSTUFFの直前の符号列の復号化が終了すると、次の同期符号挿入位置までスタッフィングビットSTUFFを読み込み、それが図30(a)(b)に示した符号表の符号に合致するかどうかを判定する。もし、スタッフィングビットSTUFFが符号表のいずれの符号にも合致しない場合は、誤りがあったと判定する。 When the decoding apparatus finishes decoding the code string immediately before the stuffing bit STUFF, the decoding apparatus reads the stuffing bit STUFF up to the next synchronization code insertion position, and reads the stuffing bit STUFF from the code table shown in FIGS. Determine if the code matches. If the stuffing bit STUFF does not match any of the codes in the code table, it is determined that an error has occurred.

 スタッフィングビットSTUFFと符号表との合致を判定する場合、少数のビットの誤りを許容するようにしてもよい。こうすることにより、スタッフィングビットSTUFFそのものに誤りが入った場合の誤りの誤検出を低減することができる。 When determining whether the stuffing bit STUFF matches the code table, a small number of bit errors may be allowed. By doing so, it is possible to reduce erroneous detection of an error when an error enters the stuffing bit STUFF itself.

 図30(a)の符号表は、必ず“0”で始まり後続のビットが“1”である。従って、スタッフィングビットSTUFFの直前の符号列の復号終了位置の次のビットが“0”であるか否かだけを判定して誤り検出を行ってもよいし、あるいは、最初の“0”と後続のいくつかの“1”のみから誤り検出を行ってもよい。このようにすると、誤り検出精度は若干低下するものの、復号化に要する処理量が削減される。このように全てのスタッフィングビットSTUFFが特定のビットないしは複数ビットからなる特定のビットパターンから始まる符号表を用いる場合には、復号化処理の簡略化を図ることができる。 符号 The code table in FIG. 30A always starts with “0” and the subsequent bits are “1”. Therefore, error detection may be performed only by determining whether the bit next to the decoding end position of the code string immediately before the stuffing bit STUFF is “0”, or the first “0” and the subsequent Error detection may be performed from only some of the "1" s. By doing so, the amount of processing required for decoding is reduced, although the accuracy of error detection is slightly reduced. As described above, when all the stuffing bits STUFF use a code table starting from a specific bit or a specific bit pattern including a plurality of bits, the decoding process can be simplified.

 さらに、図30(a)(b)の符号表に示されるスタッフィングビットSTUFFは、“1”のビットを多く含んでおり、図5のように“0”が多く含まれる同期符号およびその一部分とのハミング距離が離れているため、疑似同期が発生する確率が低いという利点がある。具体的には、図30(a)の符号表ではスタッフィングビットSTUFFの最初のビットのみが全て“0”で、それ以外のビットは全て“1”であるため、オール“0”である同期符号およびその一部とのハミング距離は(スタッフィングビットSTUFFの長さ−1)となる。また、図30(b)の符号表ではスタッフィングビットSTUFFの最初と最後のビットのみが“0”で、それ以外のビットは全て“1”であるため、同期符号およびその一部とのハミング距離は(スタッフィングビットSTUFFの長さ−2)となる。このようにスタッフィングビットSTUFFと同期符号およびその一部分とのハミング距離を所定値以上、例えば(スタッフィングビットSTUFFの長さ−2)以上に選ぶことにより、符号列に誤りが混入しても疑似同期符号が発生しにくい。 Further, the stuffing bits STUFF shown in the code tables of FIGS. 30 (a) and 30 (b) contain many bits of “1”, and as shown in FIG. Since the hamming distances are long, there is an advantage that the probability of occurrence of pseudo synchronization is low. Specifically, in the code table of FIG. 30A, only the first bit of the stuffing bit STUFF is all “0” and all other bits are “1”, so that the synchronization code of all “0” is used. And a hamming distance to a part thereof is (length of stuffing bit STUFF-1). Also, in the code table of FIG. 30B, only the first and last bits of the stuffing bit STUFF are “0”, and all other bits are “1”. Is (length of stuffing bit STUFF−2). As described above, by selecting the Hamming distance between the stuffing bit STUFF and the synchronization code and a part thereof to a predetermined value or more, for example, (length of the stuffing bit STUFF-2) or more, even if an error is mixed in the code string, the pseudo synchronization code Is less likely to occur.

 この効果について、図32を用いて説明する。図32(a−0)、(b−0)はそれぞれ通常のスタッフィングビット(全てのビットが“0”)および図30(a)の符号表に示すスタッフィングビットSTUFFを用いたときの符号列の例を示したものであり、(a−1)、(b−1)はそれぞれ(a−0)、(b−0)に1ビットの誤りが混入したときの例を示したものである。図32(a−1)から分かるように、全てのビットが“0”である通常のスタッフィングビットでは1ビットの誤りが混入しただけで、(a−1)の破線で示すように同期符号と同一のビットパターンが生じるため、疑似同期が発生してしまう。これに対し、図30(a)の符号表に示すスタッフィングビットSTUFFは、図32(b−2)に示すように誤りが混入しても同期符号と同一のパターンにならないため、疑似同期が発生しない。 効果 This effect will be described with reference to FIG. FIGS. 32 (a-0) and (b-0) respectively show a normal stuffing bit (all bits are "0") and a stuffing bit STUFF shown in the code table of FIG. 30 (a). (A-1) and (b-1) show examples in which one bit error is mixed in (a-0) and (b-0), respectively. As can be seen from FIG. 32 (a-1), in the normal stuffing bit in which all bits are "0", only one bit error is mixed, and as shown by the broken line in FIG. Since the same bit pattern is generated, pseudo synchronization occurs. On the other hand, the stuffing bit STUFF shown in the code table of FIG. 30A does not have the same pattern as the synchronization code even if an error is mixed as shown in FIG. do not do.

 このように本実施形態によるスタッフィングビットは、符号列の誤りを容易に検出できると共に、符号列に誤りが混入しても疑似同期符号が発生しにくく、強い誤り耐性を持つという利点がある。 As described above, the stuffing bit according to the present embodiment has an advantage that an error in a code string can be easily detected, a pseudo-synchronous code is less likely to be generated even if an error is mixed in the code string, and the stuffing bit has a strong error resistance.

 また、本実施形態によるスタッフィングビットは逆方向から一意に復号が可能であり、その開始位置すなわちスタッフィングビットビットSTUFFの直前の符号列の終了位置を特定できるため、情報符号列が順方向からも逆方向からも復号可能な符号語の場合、図31の矢印3104で示すようにSTUFFの直前の符号列を逆方向から復号することができる。 In addition, the stuffing bit according to the present embodiment can be uniquely decoded from the reverse direction, and its start position, that is, the end position of the code string immediately before the stuffing bit bit STUFF can be specified. In the case of a code word that can be decoded also from the direction, the code string immediately before STUFF can be decoded from the reverse direction as shown by an arrow 3104 in FIG.

 上述の実施形態において、スタッフィングビットSTUFFは、以下のように定めてもよい。 に お い て In the above embodiment, the stuffing bit STUFF may be determined as follows.

 (1)同期符号に図5に示したようにsync_0_len ビットの“0”が含まれる場合、スタッフィングビットSTUFFの全てないしは少なくとも同期符号挿入位置の全ビットを“1”とすることにより、同期符号の“0”の部分とスタッフィングビットSTUFFのハミング距離を離すことができる。従って、このようにすることにより、スタッフィングビットSTUFFに誤りが混入して擬似同期が発生する確率を減少させることができる。 (1) When the sync code includes “0” of the sync_0_len bits as shown in FIG. 5, all of the stuffing bits STUFF or at least all bits at the sync code insertion position are set to “1”, whereby the sync code The hamming distance between the “0” portion and the stuffing bit STUFF can be increased. Therefore, by doing so, it is possible to reduce the probability that pseudo-synchronization occurs due to an error mixed in the stuffing bit STUFF.

 (2)スタッフィングビットSTUFFは、その長さを表す符号語としてもよい。復号化装置において、スタッフィングビットSTUFF以外の符号列の復号が終了した地点より、STUFFの長さを判定すると共に、STUFFの復号を行ってSTUFFの長さ情報を復号する。この場合、もし両者が一致しなかった場合には符号列中に誤りが混入したと判定することができる。 (2) The stuffing bit STUFF may be a codeword representing its length. The decoding apparatus determines the length of the STUFF from the point where decoding of the code string other than the stuffing bit STUFF is completed, and decodes the STUFF to decode the STUFF length information. In this case, if they do not match, it can be determined that an error has been mixed in the code string.

 また、スタッフィングビットSTUFFの符号語は、その長さを2進数表現したものでもよい。例えば、STUFFが5ビットの場合、“5”を2進数表現した“00101”としてもよい。あるいは、2進数表現したものの“1”の補数や“2”の補数をとった値をスタッフィングビットSTUFFの符号語としてもよく、それによりSTUFF中の“0”のビットの数が減少するため、(1)で述べたのと同様に擬似同期の発生を抑えることができる。 The code word of the stuffing bit STUFF may be represented by a binary representation of its length. For example, when the STUFF has 5 bits, “00101” may be represented by expressing “5” in a binary number. Alternatively, a value obtained by taking the complement of “1” or the complement of “2” in a binary number may be used as the code word of the stuffing bit STUFF, and the number of “0” bits in STUFF is reduced. As described in (1), the occurrence of pseudo synchronization can be suppressed.

 (3)順方向だけでなく、逆方向からも復号可能な符号語を用いて符号化を行った場合、復号装置においてフレームの終了地点からスタッフィングビットSTUFFを逆方向に復号して、その開始地点(STUFFと他の符号語との境界地点)を知る必要がある。そのような場合には、例えばSTUFFを“01111111”のように、1ビットないしは複数ビットの“0”で始まり残りが“1”の符号語として定めればよい。これにより、STUFFを逆方向から復号して “0”がある位置を探せば、その地点をSTUFFの開始地点と一意に判定することができる。また、この例ではスタッフィングビットSTUFFの最初の部分以外のビットは“1”であり、(1)で述べたと同様に擬似同期が発生する確率が減少する。 (3) When encoding is performed using a codeword that can be decoded not only in the forward direction but also in the backward direction, the stuffing bit STUFF is decoded in the decoding device in the backward direction from the end point of the frame, and the start point is decoded. (A boundary point between STUFF and another codeword). In such a case, for example, STUFF may be defined as a code word starting with one or a plurality of bits “0” such as “01111111” and remaining as “1”. As a result, if STUFF is decoded in the reverse direction and a position where “0” is located is found, that position can be uniquely determined as the start position of STUFF. In this example, bits other than the first part of the stuffing bit STUFF are "1", and the probability of occurrence of pseudo synchronization is reduced as described in (1).

 (4)スタッフィングビットSTUFFは出力符号列の一部または全てのビットの誤り訂正/検出符号の検査ビットや、パリティチェックビット等としてもよい。これにより、出力符号列中に混入したビット誤りの訂正/検出を行うことが可能である。 (4) The stuffing bit STUFF may be an error correction / detection code check bit for some or all bits of the output code string, a parity check bit, or the like. This makes it possible to correct / detect a bit error mixed in the output code string.

 以上の例のように、スタッフィングビットSTUFFを予め定められた規則に従って生成することにより、復号装置において入力符号列中のスタッフィング誤ットSTUFFをその生成規則と照合し、もしその生成規則に反すると判定された場合には、入力符号列中に誤りが混入したと判定することが可能である。これにより、動画像復号化装置において再生画像に大きな劣化が生じないような処理を行って、入力符号列中に誤りが混入したときの再生画像の品質を向上させることができる。 By generating the stuffing bit STUFF in accordance with a predetermined rule as in the above example, the decoding apparatus checks the stuffing error STUFF in the input code string against the generation rule, and if the generation rule is violated. When it is determined, it is possible to determine that an error has been mixed in the input code string. As a result, it is possible to improve the quality of the reproduced image when an error is mixed in the input code string by performing processing in the moving image decoding apparatus such that the reproduced image does not significantly deteriorate.

 さらに、上記実施形態において同期符号挿入間隔sync_periodは、以下のように定めてもよい。 Further, in the above embodiment, the synchronization code insertion interval sync_period may be determined as follows.

 (1)誤り訂正/検出符号を用いる場合、同期符号挿入間隔sync_periodは復号化装置で同期検出を行う最小のビット数、すなわち同期符号の長さと誤り訂正/検出符号の検査ビットの最大値の和以上にとれば十分である。フレームの最後のスタッフィングビットSTUFFのビット数の平均値はsync_period/2であるので、sync_periodをこの同期検出可能な最小ビットにとることにより、スタッフィングビットSTUFFのビット数が削減され、符号化効率が向上する。 (1) When an error correction / detection code is used, the synchronization code insertion interval sync_period is the minimum number of bits for performing synchronization detection in the decoding device, that is, the sum of the length of the synchronization code and the maximum value of check bits of the error correction / detection code. That is enough. Since the average value of the number of bits of the stuffing bit STUFF at the end of the frame is sync_period / 2, the number of stuffing bit STUFF bits is reduced by taking sync_period as the minimum bit that can be synchronously detected, thereby improving coding efficiency. I do.

 (2)誤り訂正/検出符号を用いない場合、同期符号挿入間隔sync_periodは復号化装置で同期検出を行う最小のビット数、すなわち同期符号の長さ以上あれば十分である。フレームの最後のスタッフィングビットSTUFFのビット数の平均はsync_period/2であるので、sync_periodをこの同期検出可能な最小ビットにとることにより、スタッフィングビットSTUFFのビット数が削減され、符号化効率が向上する。 (2) In the case where the error correction / detection code is not used, it is sufficient that the synchronization code insertion interval sync_period is equal to or longer than the minimum number of bits for performing synchronization detection in the decoding device, that is, the length of the synchronization code. Since the average number of bits of the last stuffing bit STUFF of the frame is sync_period / 2, the number of stuffing bit STUFF bits is reduced by taking sync_period as the minimum bit that can be synchronously detected, thereby improving coding efficiency. .

 (3)図15、図16、図17および図27に示されるように、フレーム長情報POINTERを用いる場合には、同期符号挿入間隔sync_periodを同期符号の長さより短くしてもよい。これにより、スタッフィングビットSTUFFのビット数が削減され、符号化効率が向上する。 (3) As shown in FIGS. 15, 16, 17 and 27, when the frame length information POINTER is used, the synchronization code insertion interval sync_period may be shorter than the length of the synchronization code. As a result, the number of stuffing bits STUFF is reduced, and coding efficiency is improved.

 (4)伝送路や蓄積媒体において定められた間隔のパケットやセルに区切って伝送/蓄積を行う場合、同期符号挿入間隔sync_periodをパケットやセルの間隔に合わせるか、その間隔の約数になるようにしてもよい。これにより、パケットやセルの先頭は必ず同期符号挿入位置になるため、パケットロスやセルロスによりパケットやセルが起きた場合にも同期符号を検出することが可能である。 (4) When transmission / storage is performed by dividing into packets or cells at a predetermined interval in a transmission path or a storage medium, the synchronization code insertion interval sync_period is adjusted to the interval between packets or cells, or is set to a divisor of the interval. It may be. As a result, the beginning of the packet or cell is always at the position where the synchronization code is inserted. Therefore, even when a packet or cell occurs due to packet loss or cell loss, the synchronization code can be detected.

 (5)同期符号挿入間隔sync_periodは、1フレームの最小必要ビット数より短くすることが好ましい。これにより、スタッフィングビットSTUFFのビット数が削減され、符号化効率が向上する。 (5) It is preferable that the synchronization code insertion interval sync_period be shorter than the minimum required number of bits of one frame. As a result, the number of stuffing bits STUFF is reduced, and coding efficiency is improved.

 (第6の実施形態) 
 次に、本発明に係る第6の実施形態について説明する。 
 図35は、本実施形態における動画像符号化装置の出力符号列の一例を示す図である。この出力符号列では、誤りによる同期符号の誤検出確率を低くするために、前述の実旅例で述べたようなビット挿入処理を行っている。また、予め定められた位置、あるいは同期符号から相対的にみて予め定められた位置に、ヘッダ情報等の情報が入っている。
(Sixth embodiment)
Next, a sixth embodiment according to the present invention will be described.
FIG. 35 is a diagram illustrating an example of an output code string of the video encoding device according to the present embodiment. In this output code string, the bit insertion processing as described in the above-described actual travel example is performed in order to reduce the probability of false detection of a synchronization code due to an error. Further, information such as header information is stored at a predetermined position or a predetermined position relative to the synchronization code.

 図35の(a)はビット挿入処理を行う前の符号列であり、(b)はビット挿入処理を行った後の出力符号列である。図中、斜線の部分3201,3202,3261,3262が定められた位量(同期符号から相対的に見て定められた位置)に入れる情報であり、白抜きの矢印3211、3212がその情報を入れる位置である。図35(b)中の符号列の情報3261、3262が(a)の符号列の情報3201、3202にそれぞれ相当し、場合によっては符号列(a)から符号列(b)への変換に際して、これらの情報に対しても変換(すなわち、情報3201から情報3261への変換および情報3202から情報3262への変換)が施されることがある。 (A) of FIG. 35 shows a code string before performing the bit insertion processing, and (b) of FIG. 35 shows an output code string after performing the bit insertion processing. In the figure, hatched portions 3201, 3202, 3261, and 3262 are information to be put in a predetermined amount (a position relatively viewed from the synchronization code), and white arrows 3211 and 3212 indicate the information. It is the position to put. The code sequence information 3261 and 3262 in FIG. 35B correspond to the code sequence information 3201 and 3202 in FIG. 35A, respectively. In some cases, when converting the code sequence (a) into the code sequence (b), Conversion may be performed on these pieces of information (that is, conversion of information 3201 into information 3261 and conversion of information 3202 into information 3262).

 図35(b)中の3203は、ビット挿入処理によって挿入されたビットである。このビット挿入処理により、挿入ビットに後続するビット列は後方にずれてしまうため、定められた位置に入れる情報が定位置に入るように、その情報直前の符号列の一部を後方に移す処理を行う。例えば、情報3201の一つ前の同期符号3205からの挿入ビットの数の合計をNs1とすれば、情報3201の直前の図35(a)中の記号3221に示すNs1ビットを情報3201の直後の図35(b)中の記号3231の部分に移せばよい。 {Circle around (3)} 3203 in FIG. 35B indicates bits inserted by the bit insertion process. Due to this bit insertion process, the bit sequence following the insertion bit is shifted backward. Do. For example, assuming that the total number of insertion bits from the synchronization code 3205 immediately before the information 3201 is Ns1, the Ns1 bit indicated by the symbol 3221 in FIG. What is necessary is just to move to the part of the symbol 3231 in FIG.35 (b).

 情報3201,3202中に、符号列中の特定の位置を示すポインタ等の情報が含まれている場合には、これを変換する処理を行ってもよい。具体的には、例えば情報3201中に矢印3241で示す位置を示す情報が含まれている場合、この位置よりも挿入ビットの数Ns1だけ後ろの矢印3251で示す位置を指すように、情報3261中の位置を示す情報を変換するようにする。 If the information 3201 and 3202 include information such as a pointer indicating a specific position in a code string, a process of converting the information may be performed. Specifically, for example, when the information 3201 includes information indicating the position indicated by the arrow 3241, the information 3261 in the information 3261 is pointed to the position indicated by the arrow 3251 behind the position by the number Ns1 of insertion bits. The information indicating the position of is converted.

本発明の第1および第2の実施形態に係る動画像符号化装置の構成を示すブロック図FIG. 1 is a block diagram illustrating a configuration of a moving image encoding device according to first and second embodiments of the present invention. 図1の動画像符号化装置における多重化器での多重化の規則を示す図FIG. 2 is a diagram showing a multiplexing rule in a multiplexer in the moving picture coding apparatus of FIG. 図1の動画像符号化装置における出力符号化装置の構成を示すブロック図FIG. 2 is a block diagram showing a configuration of an output encoding device in the video encoding device of FIG. 図1の動画像符号化装置からの出力符号列の例を示す図FIG. 2 is a diagram illustrating an example of an output code string from the video encoding device in FIG. 1. 同期符号の例を示す図Diagram showing examples of synchronization codes 図3の出力符号化装置における誤り訂正/検出切替符号化部の構成を示すブロック図FIG. 3 is a block diagram showing a configuration of an error correction / detection switching encoder in the output encoder of FIG. 図3の出力符号化装置における符号列組立器の構成を示すブロック図FIG. 3 is a block diagram showing a configuration of a code sequence assembler in the output encoding device of FIG. 本発明の第1および第2の実施形態に係る動画像復号化装置の構成を示すブロック図FIG. 1 is a block diagram illustrating a configuration of a video decoding device according to first and second embodiments of the present invention. 図8の動画像復号化装置における入力復号化装置の構成を示すブロック図8 is a block diagram showing a configuration of an input decoding device in the video decoding device of FIG. 図9の入力復号化装置における符号列分解器の構成を示すブロック図FIG. 9 is a block diagram showing a configuration of a code string decomposer in the input decoding device of FIG. 従来の誤り訂正/検出符号切替符号化装置で得られる符号列の例を示す図FIG. 3 is a diagram showing an example of a code string obtained by a conventional error correction / detection code switching coding apparatus. 本発明の第2の実施形態を説明するための伝送路のビット付加/消失によって誤りが生じた同期符号の例を示す図FIG. 7 is a diagram illustrating an example of a synchronization code in which an error occurs due to bit addition / erasure of a transmission line for describing a second embodiment of the present invention. 第2の実施形態における図3中のビット挿入器の動作を説明するための図FIG. 10 is a diagram for explaining the operation of the bit inserter in FIG. 3 according to the second embodiment. 第2の実施形態における図9中の同期検出器および挿入ビット除去器の動作を説明するための図FIG. 9 is a diagram for explaining the operation of the synchronization detector and the insertion bit remover in FIG. 9 according to the second embodiment. 第1および第2の実施形態においてフレーム長情報を用いて同期保護を行うようにした符号列の例を示す図FIG. 6 is a diagram illustrating an example of a code string in which synchronization protection is performed using frame length information in the first and second embodiments. 第1および第2の実施形態においてフレーム長情報を用いて同期保護を行うようにした符号列の他の例を示す図FIG. 10 is a diagram illustrating another example of a code string in which synchronization protection is performed using frame length information in the first and second embodiments. 第1および第2の実施形態においてフレーム長情報を用いて同期保護を行うようにした符号列のさらに別の例を示す図FIG. 11 is a diagram showing still another example of a code string in which synchronization protection is performed using frame length information in the first and second embodiments. 本発明の第3および第4の実施形態に係る動画像符号化装置の構成を示すブロック図FIG. 9 is a block diagram illustrating a configuration of a moving image encoding device according to third and fourth embodiments of the present invention. 本発明の第3の実施形態に係る動画像符号化装置の出力符号化装置の構成を示すブロック図FIG. 13 is a block diagram illustrating a configuration of an output encoding device of a video encoding device according to a third embodiment of the present invention. 本発明の第3の実施形態に係る動画像符号化装置からの出力符号列の例を示すブロック図FIG. 14 is a block diagram illustrating an example of an output code string from a video encoding device according to a third embodiment of the present invention. 本発明の第3および第4の実施形態に係る動画像復号化装置の構成を示すブロック図FIG. 14 is a block diagram showing a configuration of a moving picture decoding apparatus according to the third and fourth embodiments of the present invention. 本発明の第3の実施形態に係る動画像復号化装置の入力復号化装置の構成を示すブロック図FIG. 14 is a block diagram showing a configuration of an input decoding device of a video decoding device according to a third embodiment of the present invention. 本発明の第4の実施形態に係る動画像符号化装置の出力符号化装置の構成を示すブロック図FIG. 14 is a block diagram illustrating a configuration of an output encoding device of a video encoding device according to a fourth embodiment of the present invention. 本発明の第4の実施形態に係る動画像復号化装置の入力復号化装置の構成を示すブロック図FIG. 14 is a block diagram illustrating a configuration of an input decoding device of a video decoding device according to a fourth embodiment of the present invention. 本発明の第4の実施形態に係る動画像符号化装置からの出力符号列の例を示すブロック図FIG. 14 is a block diagram illustrating an example of an output code string from a video encoding device according to a fourth embodiment of the present invention. 動画像符号化装置における多重化器での多重化の規則を示す図The figure which shows the rule of the multiplexing in the multiplexer in the moving image coding apparatus 本発明の第5の実施形態に係る動画像符号化装置からの出力符号列の例を示すブロック図FIG. 16 is a block diagram illustrating an example of an output code string from a video encoding device according to a fifth embodiment of the present invention. 動画像符号化装置における多重化器での多重化の他の例を示す図The figure which shows the other example of the multiplexing in the multiplexer in the moving image coding apparatus. 図28で示される多重化を行った場合の各同期符号に対して処理を行った出力符号列を示す図FIG. 28 is a diagram illustrating an output code string processed for each synchronization code when the multiplexing illustrated in FIG. 28 is performed. 本発明で用いるスタッフィングビットの例を説明するための符号表を示す図FIG. 4 is a diagram showing a code table for explaining an example of a stuffing bit used in the present invention. 図30のスタッフィングビットを用いた場合の復号化装置の処理を説明するための図30 is a view for explaining the processing of the decoding apparatus when the stuffing bits of FIG. 30 are used. 図30のスタッフィングビットの特徴を説明するための図The figure for demonstrating the characteristic of the stuffing bit of FIG. 同期符号挿入間隔を同期符号より短くした場合の出力符号列の例を示す図The figure which shows the example of the output code string when the synchronous code insertion interval is shorter than the synchronous code 異なる長さの同期符号を用いる例を示す図Diagram showing an example of using synchronization codes of different lengths 本発明の第6の実施形態に係る動画像符号化装置からの出力符号列を示す図The figure which shows the output code string from the moving image coding apparatus which concerns on 6th Embodiment of this invention.

符号の説明Explanation of reference numerals

 101…動き補償適応予測器
 102…フレームメモリ
 104…離散コサイン変換器
 105…量子化器
 107…逆量子化器
 108…逆離散コサイン変換器
 111…多重化器
 131…入力動画像信号
 200…出力符号化装置
 201…多重化符号列
 205…出力符号列
 301…同期符号
 302…ピクチャヘッダ
 303…予測モード情報
 304…動きベクトル情報
 305…予測残差信号のDCT係数
 402…同期符号挿入位置
 212…ビット挿入器
 211…符号列組立器
 603…ラッチ回路
 604…誤り訂正/検出符号化器
 701…カウンタ
 702…バッファ
 705…挿入ビット発生器
 801…動き補償適応予測器
 820…フレームメモリ
 807…逆量子化器
 808…逆離散コサイン変換器
 811…逆多重化器
 800…入力復号化装置
 850…再生画像信号
 901,1901…同期符号検出器
 902,1902…カウンタ
 903…符号列分解器
 904…誤り訂正/検出符号復号化器
 905,1905…挿入ビット除去器
 1005…カウンタ
 1006…比較器
 1015…挿入ビット発生器
 1101〜1104…ヘッダ情報
 1211…ビット挿入器
101: Motion Compensation Adaptive Predictor 102: Frame Memory 104: Discrete Cosine Transformer 105: Quantizer 107: Inverse Quantizer 108: Inverse Discrete Cosine Transformer 111: Multiplexer 131 ... Input Video Signal 200: Output Code Device 201 multiplexed code sequence 205 output code sequence 301 synchronization code 302 picture header 303 prediction mode information 304 motion vector information 305 DCT coefficient of prediction residual signal 402 synchronization code insertion position 212 bit insertion Device 211 code string assembler 603 latch circuit 604 error correction / detection encoder 701 counter 702 buffer 705 inserted bit generator 801 motion adaptive adaptive predictor 820 frame memory 807 inverse quantizer 808 ... Inverse discrete cosine transformer 811 ... Demultiplexer 800 ... Input decoding Device 850: Reproduced image signal 901, 1901: Synchronous code detector 902, 1902: Counter 903: Code string decomposer 904: Error correction / detection code decoder 905, 1905: Inserted bit remover 1005: Counter 1006: Comparator 1015: insertion bit generator 1101-1104: header information 1211: bit insertion device

Claims (9)

 画像信号を圧縮符号化して生成される順方向及び逆方向から復号可能な符号語からなる複数種類の可変長符号を多重化した多重化符号列を含み、かつスタッフィングビットが挿入された入力符号列中の予め周期的に定められた複数の同期符号挿入位置で同期符号を検出し、前記入力符号列中の多重化符号列に対し前記同期符号検出手段により検出された同期符号の位置を基準として逆多重化を行って可変長符号を生成し、生成された可変長符号を復号化して再生画像信号を出力することを特徴とする復号化方法。 An input code string including a multiplexed code string obtained by multiplexing a plurality of types of variable length codes composed of codewords that can be decoded in the forward and reverse directions generated by compression-encoding an image signal, and in which stuffing bits are inserted. The synchronization code is detected at a plurality of synchronization code insertion positions predetermined in advance periodically, and the position of the synchronization code detected by the synchronization code detection means for the multiplexed code string in the input code string is used as a reference. A decoding method, comprising: generating a variable-length code by performing demultiplexing; decoding the generated variable-length code; and outputting a reproduced image signal.  画像信号を圧縮符号化して生成される順方向及び逆方向から復号可能な符号語からなる複数種類の可変長符号を多重化した多重化符号列を含み、かつスタッフィングビットが挿入された入力符号列中の予め周期的に定められた複数の同期符号挿入位置で同期符号を検出する同期符号検出手段と、
 前記入力符号列中の多重化符号列に対し前記同期符号検出手段により検出された同期符号の位置を基準として逆多重化を行って可変長符号を生成する逆多重化手段と、
 生成された可変長符号を復号化して再生画像信号を出力する復号化手段とを有することを特徴とする復号化装置。
An input code string including a multiplexed code string obtained by multiplexing a plurality of types of variable length codes composed of codewords that can be decoded in the forward and reverse directions generated by compression-encoding an image signal, and in which stuffing bits are inserted. Synchronization code detection means for detecting a synchronization code at a plurality of synchronization code insertion positions predetermined in advance,
Demultiplexing means for demultiplexing the multiplexed code string in the input code string based on the position of the synchronization code detected by the synchronization code detection means to generate a variable length code,
Decoding means for decoding the generated variable-length code and outputting a reproduced image signal.
 前記多重化符号列は、前記可変長符号が前記画像信号のフレーム単位で多重化されており、
 前記逆多重化手段は、前記多重化符号列を前記フレーム単位で逆多重化することを特徴とする請求項2に記載の復号化装置。
In the multiplexed code sequence, the variable-length code is multiplexed in frame units of the image signal,
3. The decoding apparatus according to claim 2, wherein the demultiplexing unit demultiplexes the multiplexed code string on a frame-by-frame basis.
 前記多重化符号列は、前記可変長符号が前記画像信号のフレームの部分領域単位で多重化されており、
 前記逆多重化手段は、前記多重化符号列を前記部分領域単位で逆多重化することを特徴とする請求項2に記載の復号化装置。
In the multiplexed code sequence, the variable-length code is multiplexed in units of partial regions of a frame of the image signal,
The decoding apparatus according to claim 2, wherein the demultiplexing unit demultiplexes the multiplexed code string in units of the partial areas.
 前記多重化符号列は、前記可変長符号が前記画像信号のフレーム単位で多重化されており、
 前記同期符号検出手段は、前記多重化符号列の前記フレーム単位で多重化された各多重化単位の終りの部分の直前または直後に位置する同期符号挿入位置で前記同期符号を検出し、
 前記逆多重化手段は、前記多重化符号列を前記フレーム単位で逆多重化することを特徴とする請求項2に記載の復号化装置。
In the multiplexed code sequence, the variable-length code is multiplexed in frame units of the image signal,
The synchronization code detection means detects the synchronization code at a synchronization code insertion position located immediately before or immediately after the end of each multiplex unit multiplexed in frame units of the multiplex code sequence,
3. The decoding apparatus according to claim 2, wherein the demultiplexing unit demultiplexes the multiplexed code string on a frame-by-frame basis.
 前記多重化符号列は、前記可変長符号が前記画像信号のフレームの部分領域単位で多重化されており、
 前記同期符号検出手段は、前記多重化符号列の前記部分領域単位で多重化された各多重化単位の終りの部分の直前または直後に位置する同期符号挿入位置で前記同期符号を検出し、
 前記逆多重化手段は、前記多重化符号列を前記部分領域単位で逆多重化することを特徴とする請求項2に記載の復号化装置。
In the multiplexed code sequence, the variable-length code is multiplexed in units of partial regions of a frame of the image signal,
The synchronization code detection means detects the synchronization code at a synchronization code insertion position located immediately before or immediately after the end portion of each multiplex unit multiplexed in the partial area unit of the multiplex code sequence,
The decoding apparatus according to claim 2, wherein the demultiplexing unit demultiplexes the multiplexed code string in units of the partial areas.
 前記入力符号列の前記同期符号挿入位置において前記同期符号とのハミング距離が予め定められた値以上となるように変換された該同期符号以外の符号列を元の符号列に変換する符号列変換手段をさらに有することを特徴とする請求項2乃至6のいずれか1項に記載の復号化装置。 Code string conversion for converting a code string other than the synchronization code converted so that the Hamming distance with the synchronization code at the synchronization code insertion position of the input code string becomes a predetermined value or more to an original code string. The decoding device according to claim 2, further comprising a unit.  前記入力符号列は、該入力符号列の逆方向から一意に復号可能で、かつ前記同期符号およびその一部との間のハミング距離が予め定められた値以上であるスタッフィングビットが挿入されていることを特徴とする請求項2に記載の復号化装置。 The input code string is inserted with a stuffing bit that is uniquely decodable from the reverse direction of the input code string and that has a Hamming distance between the synchronization code and a part thereof equal to or greater than a predetermined value. 3. The decoding device according to claim 2, wherein:  前記スタッフィングビットは、前記入力符号列中の前記同期符号の直前に配置されていることを特徴とする請求項8に記載の復号化装置。 The decoding apparatus according to claim 8, wherein the stuffing bits are arranged immediately before the synchronization code in the input code string.
JP2003323701A 1995-09-29 2003-09-16 Decoding method and apparatus Expired - Lifetime JP3597850B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003323701A JP3597850B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP27699395 1995-09-29
JP6145096 1996-03-18
JP16308296 1996-06-24
JP23236296 1996-09-02
JP2003323701A JP3597850B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP24388396A Division JP3597647B2 (en) 1995-09-29 1996-09-13 Encoding method and apparatus

Publications (2)

Publication Number Publication Date
JP2004096767A true JP2004096767A (en) 2004-03-25
JP3597850B2 JP3597850B2 (en) 2004-12-08

Family

ID=32034428

Family Applications (42)

Application Number Title Priority Date Filing Date
JP24388396A Expired - Fee Related JP3597647B2 (en) 1995-09-29 1996-09-13 Encoding method and apparatus
JP2003323700A Expired - Lifetime JP3597849B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323699A Expired - Lifetime JP3597848B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323690A Expired - Fee Related JP3597840B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323698A Expired - Lifetime JP3597847B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323694A Expired - Lifetime JP3597843B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323701A Expired - Lifetime JP3597850B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323704A Expired - Fee Related JP3597853B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323703A Expired - Lifetime JP3597852B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323697A Expired - Lifetime JP3597846B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323691A Expired - Lifetime JP3631488B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323696A Expired - Fee Related JP3597845B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323693A Expired - Fee Related JP3597842B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323695A Expired - Fee Related JP3597844B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323702A Expired - Lifetime JP3597851B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323692A Expired - Fee Related JP3597841B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2004324418A Expired - Fee Related JP3657960B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324430A Expired - Fee Related JP3657972B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324412A Expired - Lifetime JP3657954B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324431A Expired - Fee Related JP3657973B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324422A Expired - Fee Related JP3657964B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324415A Expired - Lifetime JP3657957B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324434A Expired - Fee Related JP3657976B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324433A Expired - Fee Related JP3657975B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324413A Expired - Lifetime JP3657955B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324436A Expired - Lifetime JP3657978B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324419A Expired - Fee Related JP3657961B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324423A Expired - Lifetime JP3657965B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324427A Expired - Lifetime JP3657969B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324435A Expired - Fee Related JP3657977B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324414A Expired - Lifetime JP3657956B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324428A Expired - Lifetime JP3657970B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324416A Expired - Fee Related JP3657958B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324426A Expired - Lifetime JP3657968B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324425A Expired - Lifetime JP3657967B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324417A Expired - Fee Related JP3657959B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324424A Expired - Fee Related JP3657966B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324420A Expired - Fee Related JP3657962B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324421A Expired - Fee Related JP3657963B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324432A Expired - Fee Related JP3657974B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324429A Expired - Fee Related JP3657971B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324411A Expired - Fee Related JP3657953B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus

Family Applications Before (6)

Application Number Title Priority Date Filing Date
JP24388396A Expired - Fee Related JP3597647B2 (en) 1995-09-29 1996-09-13 Encoding method and apparatus
JP2003323700A Expired - Lifetime JP3597849B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323699A Expired - Lifetime JP3597848B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323690A Expired - Fee Related JP3597840B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323698A Expired - Lifetime JP3597847B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323694A Expired - Lifetime JP3597843B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus

Family Applications After (35)

Application Number Title Priority Date Filing Date
JP2003323704A Expired - Fee Related JP3597853B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323703A Expired - Lifetime JP3597852B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323697A Expired - Lifetime JP3597846B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323691A Expired - Lifetime JP3631488B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323696A Expired - Fee Related JP3597845B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323693A Expired - Fee Related JP3597842B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2003323695A Expired - Fee Related JP3597844B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323702A Expired - Lifetime JP3597851B2 (en) 1995-09-29 2003-09-16 Encoding method and apparatus
JP2003323692A Expired - Fee Related JP3597841B2 (en) 1995-09-29 2003-09-16 Decoding method and apparatus
JP2004324418A Expired - Fee Related JP3657960B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324430A Expired - Fee Related JP3657972B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324412A Expired - Lifetime JP3657954B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324431A Expired - Fee Related JP3657973B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324422A Expired - Fee Related JP3657964B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324415A Expired - Lifetime JP3657957B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324434A Expired - Fee Related JP3657976B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324433A Expired - Fee Related JP3657975B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324413A Expired - Lifetime JP3657955B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324436A Expired - Lifetime JP3657978B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324419A Expired - Fee Related JP3657961B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324423A Expired - Lifetime JP3657965B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324427A Expired - Lifetime JP3657969B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324435A Expired - Fee Related JP3657977B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324414A Expired - Lifetime JP3657956B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324428A Expired - Lifetime JP3657970B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324416A Expired - Fee Related JP3657958B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324426A Expired - Lifetime JP3657968B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324425A Expired - Lifetime JP3657967B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324417A Expired - Fee Related JP3657959B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324424A Expired - Fee Related JP3657966B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324420A Expired - Fee Related JP3657962B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324421A Expired - Fee Related JP3657963B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus
JP2004324432A Expired - Fee Related JP3657974B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324429A Expired - Fee Related JP3657971B2 (en) 1995-09-29 2004-11-08 Decoding method and apparatus
JP2004324411A Expired - Fee Related JP3657953B2 (en) 1995-09-29 2004-11-08 Encoding method and apparatus

Country Status (1)

Country Link
JP (42) JP3597647B2 (en)

Families Citing this family (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1174868A (en) 1996-09-02 1999-03-16 Toshiba Corp Information transmission method, coder/decoder in information transmission system adopting the method, coding multiplexer/decoding inverse multiplexer
KR100377939B1 (en) * 1998-09-01 2003-06-12 삼성전자주식회사 Frame Composition Device and Method for Subframe Transmission in Mobile Communication System
KR100673692B1 (en) * 2000-03-16 2007-01-23 엘지엔시스(주) Method for restoring error using parity block code
JP2003061095A (en) * 2001-08-08 2003-02-28 Matsushita Electric Ind Co Ltd Image encoder and image-encoding method
CN1618235A (en) 2002-01-22 2005-05-18 微软公司 Methods and systems for start code emulation prevention and data stuffing
KR20040042935A (en) * 2002-11-14 2004-05-22 엘지전자 주식회사 Code block segmentation apparatus and method for mobile communication system
EP1713193A4 (en) * 2004-01-28 2012-02-22 Nec Corp Content distribution method, encoding method, reception/reproduction method and device, and program
JP2007195156A (en) * 2005-12-21 2007-08-02 Matsushita Electric Ind Co Ltd Error controller and program
US8331609B2 (en) 2006-07-18 2012-12-11 Thomson Licensing Method and system for temporal synchronization
JP2008042288A (en) * 2006-08-02 2008-02-21 Fujitsu Ltd Signal processor and processing method
EP2146343A1 (en) * 2008-07-16 2010-01-20 Deutsche Thomson OHG Method and apparatus for synchronizing highly compressed enhancement layer data
US9002322B2 (en) 2011-09-29 2015-04-07 Apple Inc. Authentication with secondary approver
US8769624B2 (en) 2011-09-29 2014-07-01 Apple Inc. Access control utilizing indirect authentication
JP2015500587A (en) * 2011-11-30 2015-01-05 サムスン エレクトロニクス カンパニー リミテッド Broadcast data transmitting / receiving apparatus and method
CN103650398B (en) 2011-12-08 2016-10-19 三菱电机株式会社 Frame generating method, light delivery and light conveying system
WO2014143776A2 (en) 2013-03-15 2014-09-18 Bodhi Technology Ventures Llc Providing remote interactions with host device using a wireless device
US9483763B2 (en) 2014-05-29 2016-11-01 Apple Inc. User interface for payments
US9967401B2 (en) 2014-05-30 2018-05-08 Apple Inc. User interface for phone call routing among devices
KR102201095B1 (en) 2014-05-30 2021-01-08 애플 인크. Transition from use of one device to another
US10339293B2 (en) 2014-08-15 2019-07-02 Apple Inc. Authenticated device used to unlock another device
WO2016036603A1 (en) 2014-09-02 2016-03-10 Apple Inc. Reduced size configuration interface
US10216351B2 (en) 2015-03-08 2019-02-26 Apple Inc. Device configuration user interface
US20160358133A1 (en) 2015-06-05 2016-12-08 Apple Inc. User interface for loyalty accounts and private label accounts for a wearable device
DK179186B1 (en) 2016-05-19 2018-01-15 Apple Inc REMOTE AUTHORIZATION TO CONTINUE WITH AN ACTION
DK201670622A1 (en) 2016-06-12 2018-02-12 Apple Inc User interfaces for transactions
JP6734152B2 (en) * 2016-08-29 2020-08-05 京セラ株式会社 Electronic device, control device, control program, and operating method of electronic device
US10271069B2 (en) 2016-08-31 2019-04-23 Microsoft Technology Licensing, Llc Selective use of start code emulation prevention
US11431836B2 (en) 2017-05-02 2022-08-30 Apple Inc. Methods and interfaces for initiating media playback
US10992795B2 (en) 2017-05-16 2021-04-27 Apple Inc. Methods and interfaces for home media control
US20220279063A1 (en) 2017-05-16 2022-09-01 Apple Inc. Methods and interfaces for home media control
CN111343060B (en) 2017-05-16 2022-02-11 苹果公司 Method and interface for home media control
EP4274286A3 (en) 2018-01-22 2023-12-27 Apple Inc. Secure login with authentication based on a visual representation of data
US11010121B2 (en) 2019-05-31 2021-05-18 Apple Inc. User interfaces for audio media control
WO2020243691A1 (en) 2019-05-31 2020-12-03 Apple Inc. User interfaces for audio media control
US11392291B2 (en) 2020-09-25 2022-07-19 Apple Inc. Methods and interfaces for media control with dynamic feedback
US11847378B2 (en) 2021-06-06 2023-12-19 Apple Inc. User interfaces for audio routing

Also Published As

Publication number Publication date
JP2005102288A (en) 2005-04-14
JP2004080808A (en) 2004-03-11
JP3631488B2 (en) 2005-03-23
JP3657965B2 (en) 2005-06-08
JP2005102291A (en) 2005-04-14
JP2004104814A (en) 2004-04-02
JP3657959B2 (en) 2005-06-08
JP3597841B2 (en) 2004-12-08
JP3657974B2 (en) 2005-06-08
JP3597647B2 (en) 2004-12-08
JP2004080809A (en) 2004-03-11
JP2005110301A (en) 2005-04-21
JP3657971B2 (en) 2005-06-08
JP3597850B2 (en) 2004-12-08
JP3657975B2 (en) 2005-06-08
JP3657968B2 (en) 2005-06-08
JP2005102303A (en) 2005-04-14
JP3597848B2 (en) 2004-12-08
JP2004080812A (en) 2004-03-11
JP2005102296A (en) 2005-04-14
JP2005110297A (en) 2005-04-21
JP2004104813A (en) 2004-04-02
JP2004104811A (en) 2004-04-02
JP2005102306A (en) 2005-04-14
JP3657976B2 (en) 2005-06-08
JP3597845B2 (en) 2004-12-08
JP3657972B2 (en) 2005-06-08
JP2005102295A (en) 2005-04-14
JP3657954B2 (en) 2005-06-08
JP2005102290A (en) 2005-04-14
JP2004104812A (en) 2004-04-02
JP2005102298A (en) 2005-04-14
JP3597847B2 (en) 2004-12-08
JP3597846B2 (en) 2004-12-08
JPH10126389A (en) 1998-05-15
JP3657960B2 (en) 2005-06-08
JP2004080806A (en) 2004-03-11
JP3597853B2 (en) 2004-12-08
JP3597842B2 (en) 2004-12-08
JP3657973B2 (en) 2005-06-08
JP2005102302A (en) 2005-04-14
JP3657964B2 (en) 2005-06-08
JP2005102299A (en) 2005-04-14
JP3657962B2 (en) 2005-06-08
JP3657978B2 (en) 2005-06-08
JP2005110300A (en) 2005-04-21
JP3597849B2 (en) 2004-12-08
JP3657953B2 (en) 2005-06-08
JP2005102292A (en) 2005-04-14
JP3657956B2 (en) 2005-06-08
JP3657958B2 (en) 2005-06-08
JP3657963B2 (en) 2005-06-08
JP3657969B2 (en) 2005-06-08
JP3597844B2 (en) 2004-12-08
JP2005102300A (en) 2005-04-14
JP2005102287A (en) 2005-04-14
JP3597852B2 (en) 2004-12-08
JP3597840B2 (en) 2004-12-08
JP2005102293A (en) 2005-04-14
JP2005110299A (en) 2005-04-21
JP2005102289A (en) 2005-04-14
JP2004080805A (en) 2004-03-11
JP3597843B2 (en) 2004-12-08
JP3597851B2 (en) 2004-12-08
JP2005110298A (en) 2005-04-21
JP3657966B2 (en) 2005-06-08
JP2005102301A (en) 2005-04-14
JP2005102305A (en) 2005-04-14
JP2004112799A (en) 2004-04-08
JP3657957B2 (en) 2005-06-08
JP3657977B2 (en) 2005-06-08
JP2005102304A (en) 2005-04-14
JP3657967B2 (en) 2005-06-08
JP2005110296A (en) 2005-04-21
JP2004080810A (en) 2004-03-11
JP2004080807A (en) 2004-03-11
JP3657970B2 (en) 2005-06-08
JP3657955B2 (en) 2005-06-08
JP3657961B2 (en) 2005-06-08
JP2004096766A (en) 2004-03-25
JP2005102297A (en) 2005-04-14
JP2004080811A (en) 2004-03-11
JP2005102294A (en) 2005-04-14

Similar Documents

Publication Publication Date Title
JP3597850B2 (en) Decoding method and apparatus

Legal Events

Date Code Title Description
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: 20040907

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040909

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

Free format text: PAYMENT UNTIL: 20070917

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20080917

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080917

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090917

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090917

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100917

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110917

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110917

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120917

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120917

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130917

Year of fee payment: 9

EXPY Cancellation because of completion of term